1 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
4 and explain why in a comment.
6 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
8 * config/arc/arc.md (cpu_facility): Add fpx variant.
9 (subdf3): Prohibit use reverse sub when assist operations option
11 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
12 instructions only when FPX is enabled.
13 * testsuite/gcc.target/arc/trsub.c: New test.
15 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18 mult_operator when calculating "type" attribute.
19 (*fop_<mode>_1_i387): Ditto.
20 (*fop_xf_1_i387): Ditto.
21 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
22 Use std::swap to swap operands. Use RTL expressions to generate
25 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26 Joern Rennecke <joern.rennecke@embecosm.com>
28 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
30 (emit_pic_move): Remove.
31 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
32 * config/arc/arc.c (emit_pic_move): Removed.
33 (TARGET_HAVE_TLS): Define.
34 (arc_conditional_register_usage): Test for arc_tp_regno.
35 (arc_print_operand, arc_print_operand_address): Handle TLS
37 (arc_needs_pcl_p): New function.
38 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
39 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
40 (arc_raw_symbolic_reference_mentioned_p): Likewise.
41 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
42 (arc_legitimize_tls_address): Likewise.
43 (DTPOFF_ZERO_SYM): Define.
44 (arc_legitimize_pic_address): Make it static, handle TLS cases.
45 (arc_output_pic_addr_const): Print TLS unspecs.
46 (prepare_pic_move): New function, replaces emit_pic_move.
47 (arc_legitimate_constant_p): Handle TLS unspecs.
48 (arc_legitimate_address_p): Likewise.
49 (arc_rewrite_small_data_p): Use assert for TLS constants.
50 (prepare_move_operands): Use prepare_pic_move.
51 (arc_legitimize_address): Legitimize tls addresses.
52 (arc_epilogue_uses): Check for arc_tp_regno.
53 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
54 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
56 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
58 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
59 %(arc_tls_extra_start_spec).
60 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
61 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
63 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
64 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
65 (UNSPEC_TLS_OFF): Add.
67 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
68 (get_thread_pointersi): New patterns.
69 * config/arc/arc.opt (mtp-regno): New option.
70 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
71 (move_dest_operand): Likewise.
72 * configure: Regenerate.
73 * configure.ac: Add arc*-*-* case to test for tls.
74 * doc/invoke.texi (ARC options): Document mtp-regno.
76 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
78 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
79 the new ARC HS SIMD instructions.
80 (arc_preferred_simd_mode): New function.
81 (arc_autovectorize_vector_sizes): Likewise.
82 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
83 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
84 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
85 (arc_init_builtins): Add new SIMD builtin types.
86 (arc_split_move): Handle 64 bit vector moves.
87 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
88 (TARGET_PLUS_QMACW): Define.
89 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
90 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
91 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
92 (VSUBADD4H): New builtins.
93 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
94 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
96 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
97 Matthias Klose <doko@debian.org>
99 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
101 2016-04-28 Richard Biener <rguenther@suse.de>
104 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
107 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
109 * common/config/sh/sh-common.c: Remove SH5 support.
110 * config/sh/constraints.md: Likewise.
111 * config/sh/config/sh/elf.h: Likewise.
112 * config/sh/linux.h: Likewise.
113 * config/sh/netbsd-elf.h: Likewise.
114 * config/sh/predicates.md: Likewise.
115 * config/sh/sh-c.c: Likewise.
116 * config/sh/sh-protos.h: Likewise.
117 * config/sh/sh.c: Likewise.
118 * config/sh/sh.h: Likewise.
119 * config/sh/sh.md: Likewise.
120 * config/sh/sh.opt: Likewise.
121 * config/sh/sync.md: Likewise.
122 * config/sh/sh64.h: Delete.
123 * config/sh/shmedia.h: Likewise.
124 * config/sh/shmedia.md: Likewise.
125 * config/sh/sshmedia.h: Likewise.
126 * config/sh/t-netbsd-sh5-64: Likewise.
127 * config/sh/t-sh64: Likewise.
128 * config/sh/ushmedia.h: Likewise.
130 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
132 * config/i386/i386.md (sign_extend to memory peephole2s): Use
133 general_reg_operand instead of register_operand predicate.
135 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
137 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
139 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
141 * match.pd (A - B > A, A + B < A): New transformations.
143 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
145 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
146 which defaults to true. Emit an outer pair of parentheses only if
147 EMIT_PARENS. When continuing a chain of && or || (or & or |),
148 don't emit parentheses for the right-hand operand.
150 2016-04-27 Jeff Law <law@redhat.com>
152 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
154 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
156 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
157 (altivec_lvx_<mode>_internal): Document.
158 (altivec_lvx_<mode>_2op): New define_insn.
159 (altivec_lvx_<mode>_1op): Likewise.
160 (altivec_lvx_<mode>_2op_si): Likewise.
161 (altivec_lvx_<mode>_1op_si): Likewise.
162 (altivec_stvx_<mode>): Remove.
163 (altivec_stvx_<mode>_internal): Document.
164 (altivec_stvx_<mode>_2op): New define_insn.
165 (altivec_stvx_<mode>_1op): Likewise.
166 (altivec_stvx_<mode>_2op_si): Likewise.
167 (altivec_stvx_<mode>_1op_si): Likewise.
168 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
169 Expand vec_ld and vec_st during parsing.
170 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
172 (altivec_expand_stvx_be): Likewise.
173 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
174 address-masking behavior in RTL.
175 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
176 address-masking behavior in RTL.
177 (altivec_expand_builtin): Change builtin code arguments for calls
178 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
179 (insn_is_swappable_p): Avoid incorrect swap optimization in the
180 presence of lvx/stvx patterns.
181 (alignment_with_canonical_addr): New function.
182 (alignment_mask): Likewise.
183 (find_alignment_op): Likewise.
184 (recombine_lvx_pattern): Likewise.
185 (recombine_stvx_pattern): Likewise.
186 (recombine_lvx_stvx_patterns): Likewise.
187 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
188 stvx patterns from expand.
189 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
191 (vector_altivec_store_<mode>): Likewise.
193 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
195 * config/aarch64/aarch64.md
196 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
197 remove the "fp" attributes.
198 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
199 add the "simd" attributes.
200 (*movdf_aarch64): Likewise.
201 (*movtf_aarch64): Remove the "fp" attributes.
202 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
203 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
205 2016-04-27 David Malcolm <dmalcolm@redhat.com>
207 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
208 rtx to rtx_code_label *.
209 * rtl.h (maybe_set_first_label_num): Likewise.
211 2016-04-27 David Malcolm <dmalcolm@redhat.com>
213 * df-core.c (df_add_problem): Make the problem param be const.
214 (df_remove_problem): Make local "problem" be const.
215 * df-problems.c (problem_RD): Make const.
216 (problem_LR): Likewise.
217 (problem_LIVE): Likewise.
218 (problem_MIR): Likewise.
219 (problem_CHAIN): Likewise.
220 (problem_WORD_LR): Likewise.
221 (problem_NOTE): Likewise.
222 (problem_MD): Likewise.
223 * df-scan.c (problem_SCAN): Likewise.
224 * df.h (struct df_problem): Make field "dependent_problem" be
226 (struct dataflow): Likewise for field "problem".
227 (df_add_problem): Make param const.
229 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
231 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
232 inter-unit moves to/from vector registers are enabled. Do not disable
235 2016-04-27 David Malcolm <dmalcolm@redhat.com>
237 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
238 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
240 (enum df_problem_id): ...this new enum.
241 (struct df_problem): Convert field "id" from "int" to
244 2016-04-27 David Malcolm <dmalcolm@redhat.com>
246 * rtl.def: Update comment for "things in the instruction chain" to
247 reflect the removal of the leading "i" field for INSN_UID in
248 r210360. Fix bogus apostrophe.
250 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
252 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
253 inter-unit moves to/from vector registers are enabled. Do not disable
256 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
258 * config/i386/i386.md
259 (lea arith with mem operand + setcc peephole2): Set operator mode.
261 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
264 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
265 (dimode_scalar_to_vector_candidate_p): This.
266 (timode_scalar_to_vector_candidate_p): New function.
267 (scalar_to_vector_candidate_p): Likewise.
268 (timode_check_non_convertible_regs): Likewise.
269 (timode_remove_non_convertible_regs): Likewise.
270 (remove_non_convertible_regs): Likewise.
271 (remove_non_convertible_regs): Renamed to ...
272 (dimode_remove_non_convertible_regs): This.
273 (scalar_chain::~scalar_chain): Make it virtual.
274 (scalar_chain::compute_convert_gain): Make it pure virtual.
275 (scalar_chain::mark_dual_mode_def): Likewise.
276 (scalar_chain::convert_insn): Likewise.
277 (scalar_chain::convert_registers): Likewise.
278 (scalar_chain::add_to_queue): Make it protected.
279 (scalar_chain::emit_conversion_insns): Likewise.
280 (scalar_chain::replace_with_subreg): Likewise.
281 (scalar_chain::replace_with_subreg_in_insn): Likewise.
282 (scalar_chain::convert_op): Likewise.
283 (scalar_chain::convert_reg): Likewise.
284 (scalar_chain::make_vector_copies): Likewise.
285 (scalar_chain::convert_registers): New pure virtual function.
286 (class dimode_scalar_chain): New class.
287 (class timode_scalar_chain): Likewise.
288 (scalar_chain::mark_dual_mode_def): Renamed to ...
289 (dimode_scalar_chain::mark_dual_mode_def): This.
290 (timode_scalar_chain::mark_dual_mode_def): New function.
291 (timode_scalar_chain::convert_insn): Likewise.
292 (dimode_scalar_chain::convert_registers): Likewise.
293 (scalar_chain::compute_convert_gain): Renamed to ...
294 (dimode_scalar_chain::compute_convert_gain): This.
295 (scalar_chain::replace_with_subreg): Renamed to ...
296 (dimode_scalar_chain::replace_with_subreg): This.
297 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
298 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
299 (scalar_chain::make_vector_copies): Renamed to ...
300 (dimode_scalar_chain::make_vector_copies): This.
301 (scalar_chain::convert_reg): Renamed to ...
302 (dimode_scalar_chain::convert_reg ): This.
303 (scalar_chain::convert_op): Renamed to ...
304 (dimode_scalar_chain::convert_op): This.
305 (scalar_chain::convert_insn): Renamed to ...
306 (dimode_scalar_chain::convert_insn): This.
307 (scalar_chain::convert): Call convert_registers.
308 (convert_scalars_to_vector): Change to scalar_chain pointer to
309 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
310 in 32-bit mode. Delete scalar_chain pointer. Call
311 free_dominance_info in 64-bit mode.
312 (pass_stv::gate): Remove TARGET_64BIT check.
313 (ix86_option_override): Put the 64-bit STV pass before the CSE
316 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
318 * dwarf2out.h (struct dw_loc_descr_node): Remove the
319 dw_loc_frame_offset field.
320 * dwarf2out.c (new_loc_descr): Likewise.
321 (resolve_args_picking_1): Turn the VISITED hash set into a
322 FRAME_OFFSET hash map. Use it to associate a frame offset to
323 visited nodes. Remove uses of the CHECKING_P macro.
324 (resolve_args_picking): Update call to resolve_args_picking_1.
326 2016-04-27 Martin Liska <mliska@suse.cz>
328 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
329 (free_loop_data): Release vuses of groups.
331 2016-04-27 Bin Cheng <bin.cheng@arm.com>
333 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
334 instead of redundant use_id and boolean have_use_for.
335 (struct iv_use): Change sub_id into group_id. Remove field next.
336 Move fields: related_cands, n_map_members, cost_map and selected
338 (struct iv_group): ... here. New structure.
339 (struct iv_common_cand): Use structure declaration directly.
340 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
341 (MAX_CONSIDERED_USES): Rename macro to ...
342 (MAX_CONSIDERED_GROUPS): ... here.
343 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
344 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
345 (dump_uses): Rename to ...
346 (dump_groups): ... here. Update all uses.
347 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
348 (find_induction_variables): Refactor format of dump information.
349 (record_sub_use): Delete.
350 (record_use): Update all uses.
351 (record_group): New function.
352 (record_group_use, find_interesting_uses_op): Call above functions.
354 (find_interesting_uses_cond): Ditto.
355 (group_compare_offset): New function.
356 (split_all_small_groups): Rename to ...
357 (split_small_address_groups_p): ... here. Update all uses.
358 (split_address_groups): Update all uses.
359 (find_interesting_uses): Refactor format of dump information.
360 (add_candidate_1): Update all uses. Remove redundant check on iv,
362 (add_candidate, record_common_cand): Remove redundant assert.
363 (add_iv_candidate_for_biv): Update use.
364 (add_iv_candidate_derived_from_uses): Update all uses.
365 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
366 (alloc_use_cost_map): Ditto.
367 (set_use_iv_cost, get_use_iv_cost): Rename to ...
368 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
369 (determine_use_iv_cost_generic): Ditto.
370 (determine_group_iv_cost_generic): Ditto.
371 (determine_use_iv_cost_address): Ditto.
372 (determine_group_iv_cost_address): Ditto.
373 (determine_use_iv_cost_condition): Ditto.
374 (determine_group_iv_cost_cond): Ditto.
375 (determine_use_iv_cost): Ditto.
376 (determine_group_iv_cost): Ditto.
377 (set_autoinc_for_original_candidates): Update all uses.
378 (find_iv_candidates): Update all uses. Refactor dump information.
379 (determine_use_iv_costs): Ditto.
380 (determine_iv_costs): Ditto.
381 (iv_ca_cand_for_use): Rename to ...
382 (iv_ca_cand_for_group): ... here. Update all uses.
383 (iv_ca_add_use, iv_ca_add_group): Ditto.
384 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
385 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
386 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
387 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
388 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
389 (create_new_iv, adjust_iv_update_pos): Ditto.
390 (rewrite_use_address): Delete.
391 (rewrite_use_address_1): Rename to ...
392 (rewrite_use_address): ... here.
393 (rewrite_use_compare): Update all uses.
394 (rewrite_use): Delete.
395 (rewrite_uses): Rename to ...
396 (rewrite_groups): ... here. Update all uses.
397 (remove_unused_ivs, free_loop_data): Update all uses.
398 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
400 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 * rtlanal.c (nonzero_bits1): Convert preprocessor check
403 for WORD_REGISTER_OPERATIONS to runtime check.
405 2016-04-27 Richard Biener <rguenther@suse.de>
408 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
409 aggregate_value_p to determine if a function result is
410 returned by reference.
411 (ipa_pta_execute): Functions having their address taken are
412 not automatically nonlocal.
414 2016-04-27 Jakub Jelinek <jakub@redhat.com>
417 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
418 * fold-const.c (operand_equal_p): If flag_checking and
419 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
420 and if it returns non-zero, assert iterative_hash_expr on both
423 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
425 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
427 2016-04-27 Nick Clifton <nickc@redhat.com>
430 * varasm.c (merge_weak): Generate an error if an attempt is made
431 to convert a non-weak static function into a weak, public function.
433 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
435 * params.def (MAX_PARTITION_SIZE): New param.
436 * doc/invoke.texi: Document lto-max-partition.
438 2016-04-27 Richard Biener <rguenther@suse.de>
441 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
442 function cummulating used_from_other_partition, externally_visible
443 and force_output from aliases.
444 (refered_from_nonlocal_var): Likewise.
445 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
448 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
450 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
451 (-Wmemset-elt-size): New item.
453 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
456 * stor-layout.h (internal_reference_types): Delete.
457 * stor-layout.c (reference_types_internal): Likewise.
458 (internal_reference_types): Likewise.
459 (layout_type) <REFERENCE_TYPE>: Adjust.
461 2016-04-27 Jakub Jelinek <jakub@redhat.com>
464 * tree.h (inchash::add_expr): Add FLAGS argument.
465 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
466 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
467 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
468 Formatting fix. Adjust recursive calls. For tcc_comparison,
469 if swap_tree_comparison (code) is smaller than code, hash that
470 and arguments in the other order. Hash CONVERT_EXPR the same
471 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
472 of ADDR_EXPR of decl as the decl itself. Add or remove
473 OEP_ADDRESS_OF from recursive flags as needed. For
474 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
475 operands commutatively and only the third one normally.
476 For internal CALL_EXPR hash in CALL_EXPR_IFN.
478 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
480 * config/rtems.h (LIB_SPEC): Add -latomic.
482 2016-04-27 Joel Sherrill <joel@rtems.org>
484 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
485 xilink.ld and flags not relevant to RTEMS.
487 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
489 * toplev.c (backend_init_target): Avoid calling init_reload when using
492 2016-04-26 Jakub Jelinek <jakub@redhat.com>
494 * reorg.c (try_merge_delay_insns): Declare i and j inside the
495 for loops rather than one for the whole function.
497 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
499 * match.pd (X + CST CMP X): New transformation.
501 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
503 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
504 * fold-const.c (fold_binary_loc): Remove 2 transformations
505 superseded by match.pd.
506 * match.pd (x+x -> x*2): Generalize to integers.
508 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
510 * config/i386/i386.md (operation on memory peephole): Duplicate an
511 existing peephole and adapt it to match lea rather than an operation
514 PR rtl-optimization/57193
515 * opts.c (default_options_table): Add OPT_frename_registers at -O2
517 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
519 2016-04-26 Bin Cheng <bin.cheng@arm.com>
521 * tree-if-conv.c (any_pred_load_store): New static variable.
522 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
523 any_pred_load_store instead of and_mask_load_store.
524 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
525 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
526 (combine_blocks, tree_if_conversion): Ditto.
528 2016-04-26 Bin Cheng <bin.cheng@arm.com>
530 PR tree-optimization/70771
531 PR tree-optimization/70775
532 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
533 virtual PHI nodes. Delete parameter.
534 (if_convertible_loop_p_1): Delete argument to above function.
535 (predicate_all_scalar_phis): Delete code handling single-argument
537 (tree_if_conversion): Mark and update virtual SSA.
539 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
542 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
543 (x86_elf_aligned_common): Rename to ...
544 (x86_elf_aligned_decl_common): ... this.
545 Add decl arg. Switch to .lbss for largecomm object. Use
546 LARGECOMM_SECTION_ASM_OP.
547 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
549 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
550 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
552 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
553 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
555 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558 * config/i386/i386.c (SECTION_LARGE): Define.
559 (x86_64_elf_select_section): Set it for large data/bss sections.
560 Only clear SECTION_WRITE for .lrodata.
561 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
563 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
564 * varasm.c (default_elf_asm_named_section): Grow flagchars.
565 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
567 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
568 * doc/tm.texi: Regenerate.
570 2016-04-26 Jakub Jelinek <jakub@redhat.com>
573 * configure.ac (--enable-checking): Document extra flag, for
574 non-release builds default to --enable-checking=yes,extra.
575 If misc checking and extra checking, define CHECKING_P to 2 instead
577 * common.opt (fchecking=): Add.
578 * doc/invoke.texi (-fchecking=): Document.
579 * doc/install.texi: Document --enable-checking changes.
580 * configure: Regenerated.
581 * config.in: Regenerated.
583 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
585 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
586 attribute instead of which_alternative.
587 * config/i386/sse.md (*mov<mode>_internal): Ditto.
588 Use EXT_REX_SSE_REG_P where appropriate.
590 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/predicates.md (const0_operand): Do not match
594 (const1_operand): Ditto.
596 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
598 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
599 for SSE constm1 operands and TARGET_AVX512VL.
600 (*movti_internal): Ditto.
601 (*mov<mode>_or): Use constm1_operand predicate.
602 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
603 for SSE vector_all_ones operands and TARGET_AVX512VL.
604 * config/i386/predicates.md (constm1_operand): New predicate.
605 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
606 emission of constant -1 load.
608 2016-04-25 Jason Merrill <jason@redhat.com>
610 * gdbinit.in: Skip is-a.h.
612 * attribs.c (register_scoped_attributes): Fix logic.
613 * attribs.h: Declare register_scoped_attributes.
615 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
617 * config/rs6000/rs6000-builtin.def: Correct pasto error for
618 stxvd2x and stxvw4x built-in functions.
620 2016-04-25 DJ Delorie <dj@redhat.com>
622 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
626 2016-04-25 Richard Biener <rguenther@suse.de>
628 PR tree-optimization/70780
629 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
631 (compute_antic): Mark blocks with abnormal preds as visited as
632 they have a final empty antic-in solution already.
634 2016-04-25 Michael Collison <michael.collison@linaro.org>
636 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
638 2016-04-25 Michael Collison <michael.collison@linaro.org>
640 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
641 mode is VQI to improve mixed mode vectorization.
642 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
643 define_insn to match low half of signed vaddw.
644 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
645 define_insn to match high half of signed vaddw.
646 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
647 define_insn to match low half of unsigned vaddw.
648 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
649 define_insn to match high half of unsigned vaddw.
650 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
651 (arm_simd_check_vect_par_cnst_half_p): Likewise.
652 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
654 (arm_simd_check_vect_par_cnst_half_p): Likewise.
655 * config/arm/predicates.md (vect_par_constant_high): Support
656 big endian and simplify by calling
657 arm_simd_check_vect_par_cnst_half
658 (vect_par_constant_low): Likewise.
660 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
662 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
663 predicate for operand 2.
665 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
666 H.J. Lu <hongjiu.lu@intel.com>
668 * config/i386/i386-protos.h (standard_sse_constant_p): Add
669 machine_mode argument.
670 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
671 constm1_rtx operands. For VOIDmode constants, get mode from
672 pred_mode. Check mode size if the mode is supported by ABI.
673 (standard_sse_constant_opcode): Do not use standard_constant_p.
674 Strictly check ABI support for all-ones operands.
675 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
676 immediates. Update calls to standard_sse_constant_p.
677 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
678 (ix86_rtx_costs): Ditto.
679 * config/i386/i386.md (*movxi_internal_avx512f): Use
680 nonimmediate_or_sse_const_operand instead of vector_move_operand.
681 Use (v,BC) alternative instead of (v,C). Use register_operand
682 checks instead of MEM_P.
683 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
684 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
685 isa attribute. Use register_operand checks instead of MEM_P.
686 (*movti_internal): Use nonimmediate_or_sse_const_operand for
687 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
688 alternative and corresponding sse2 isa attribute.
689 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
690 to standard_sse_constant_p.
691 (FP constant splitters): Ditto.
692 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
694 * config/i386/predicates.md (constm1_operand): Remove.
695 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
696 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
697 vector_all_ones_operand instead of constm1_operand.
699 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
701 * print-rtl.c (print_rtx_insn_vec): New function.
702 * print-rtl.h: New prototype.
703 * store-motion.c (struct st_expr): Make avail_stores a vector.
704 (st_expr_entry): Adjust.
705 (free_st_expr_entry): Likewise.
706 (print_store_motion_mems): Likewise.
707 (find_moveable_store): Likewise.
708 (compute_store_table): Likewise.
709 (delete_store): Likewise.
710 (build_store_vectors): Likewise.
712 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
714 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
716 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
718 * vec.h (vec_safe_contains): New function.
719 (vec::contains): Likewise.
720 (vec::begin): Likewise.
721 (vec::end): Likewise.
723 2016-04-23 Jakub Jelinek <jakub@redhat.com>
726 * cfgexpand.c (expand_stack_vars): Fix typo.
728 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
730 * system.h (list, map, set, vector): Include conditionally.
731 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
732 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
733 * ipa-icf.c (INCLUDE_LIST): Define.
734 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
735 * config/sh/sh.c (INCLUDE_VECTOR): Define.
736 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
737 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
738 * cp/logic.cc (INCLUDE_LIST): Define.
739 * fortran/trans-common.c (INCLUDE_MAP): Define.
741 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
743 * auto-profile.c: Remove <string.h> include.
744 * ipa-icf-gimple.c: Remove <list> include.
745 * diagnostic.c: Remove <new> include.
746 * genmatch.c: Likewise.
747 * pretty-print.c: Likewise.
749 * c/c-objc-common.c: Likewise.
750 * cp/error.c: Likewise.
751 * fortran/error.c: Likewise.
753 2016-04-22 Richard Biener <rguenther@suse.de>
755 * lto-streamer-in.c (input_ssa_names): Do not allocate
756 GIMPLE_NOP for all SSA names.
757 * lto-streamer-out.c (output_ssa_names): Do not output
758 SSA names that should have been released.
760 2016-04-22 Richard Biener <rguenther@suse.de>
762 PR tree-optimization/70740
763 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
766 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
769 * config/i386/predicates.md (call_insn_operand): Replace
770 sibcall_memory_operand with memory_operand.
772 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
774 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
775 has_single_use() tests.
776 (register_edge_assert_for_1): Likewise.
777 (find_assert_locations_1): Check the liveness bitmap instead of
778 checking has_single_use().
780 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
783 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
784 Extract AVX-512BW constraint from AVX.
786 2016-04-21 Richard Biener <rguenther@suse.de>
788 PR tree-optimization/70725
789 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
790 for phi_convertible_by_degenerating_args.
791 (predicate_all_scalar_phis): Handle single-argument PHIs.
793 2016-04-21 Richard Biener <rguenther@suse.de>
796 * fold-const.c (fold_comparison): Return properly typed
799 2016-04-21 Bin Cheng <bin.cheng@arm.com>
801 PR tree-optimization/70715
802 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
803 after expanding BASE using expand_simple_operations.
805 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
807 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
810 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
812 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
814 2016-04-20 Jan Hubicka <jh@suse.cz>
816 * ipa-inline.c (can_inline_edge_p): Pass caller info to
817 ultiimate_alias_target.
818 (update_callee_keys): Likewise.
819 (lookup_recursive_calls): Likewise.
820 (speculation_useful_p): Likewise.
822 2016-04-20 Jan Hubicka <jh@suse.cz>
825 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
826 (set_nothrow_flag_1): ... this; handle interposition correctly;
827 recurse on aliases and thunks.
828 (cgraph_node::set_nothrow_flag): New.
829 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
830 functions compiled with non-call exceptions that binds to current
832 (propagate_nothrow): Be safe WRT interposition.
833 * cgraph.h (set_nothrow_flag): Update prototype.
835 2016-04-18 Jan Hubicka <jh@suse.cz>
837 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
838 max_loop_iterations_int.
839 (tree_unswitch_outer_loop): Likewise.
841 2016-04-20 Bin Cheng <bin.cheng@arm.com>
843 PR tree-optimization/69489
844 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
845 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
847 (if_convertible_bb_p): Remove check on edge count of basic block's
850 2016-04-20 Bin Cheng <bin.cheng@arm.com>
852 PR tree-optimization/56625
853 PR tree-optimization/69489
854 * tree-data-ref.h (DR_INNERMOST): New macro.
855 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
856 hashing struct innermost_loop_behavior.
857 (ref_DR_map): Remove.
858 (innermost_DR_map): New map.
859 (baseref_DR_map): Revise comment.
860 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
861 to innermost_DR_map accroding to its innermost loop behavior.
862 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
863 to its innermost loop behavior.
864 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
865 Add initialization for innermost_DR_map. Record memory reference
866 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
867 have innermost loop behavior.
868 (if_convertible_loop_p): Remove release for ref_DR_map. Release
871 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
873 * config/i386/i386.md (*lea<mode>_general_1): Rename from
874 *lea_general_1. Use explicit SWI12 mode interator.
875 (*lea<mode>_general_2): Rename from *lea_general_2.
876 Use explicit SWI12 mode interator.
877 (*lea<mode>_general_3): Rename from *lea_general_3.
878 Use explicit SWI12 mode interator.
879 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
880 Use explicit SWI12 mode interator.
881 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
882 Use explicit SWI48 mode interator.
884 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
886 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
887 Short-cut unaligned load and store cases. Handle all integer
889 (ix86_expand_vector_move_misalign): Short-cut unaligned load
890 and store cases. Call ix86_avx256_split_vector_move_misalign
891 directly without checking mode class.
893 2016-04-20 Andrew Pinski <apinski@cavium.com>
894 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
897 * config/aarch64/aarch64.md (sibcall): Force call
898 address to be DImode for ILP32.
899 (sibcall_value): Likewise.
901 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
903 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
905 2016-04-20 Richard Biener <rguenther@suse.de>
907 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
908 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
909 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
910 (maybe_push_res_to_seq): Adjust.
911 * gimple-fold.c (maybe_build_generic_op): Likewise.
913 2016-04-20 Marek Polacek <polacek@redhat.com>
915 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
918 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
920 * config/i386/sse.md (vec_unpacks_lo_hi): Always
921 use kmovw to support AVX512F target.
923 2016-04-20 Bin Cheng <bin.cheng@arm.com>
925 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
927 2016-04-20 Marek Polacek <polacek@redhat.com>
929 PR tree-optimization/70725
930 * tree-if-conv.c (is_false_predicate): New function.
931 (predicate_mem_writes): Use it.
933 2016-04-20 Richard Biener <rguenther@suse.de>
935 PR tree-optimization/70726
936 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
937 shift amounts from a pattern stmt operand.
939 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
942 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
943 stack_restore_from_fpr pattern when restoring r15.
944 (s390_optimize_prologue): Strip away the memory barrier in the
945 parallel when trying to get rid of restore insns.
946 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
947 definition for loading the stack pointer from an FPR. Compared to
948 the normal move insn this pattern includes a full memory barrier.
950 2016-04-19 Jakub Jelinek <jakub@redhat.com>
953 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
954 implicitly linear or lastprivate iterator on the outer context.
956 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
958 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
960 * config/i386/i386.md (ssememalign): Removed.
961 * config/i386/sse.md: Remove ssememalign attribute from patterns.
963 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
966 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
967 const short * to __builtin_ia32_loaddquhi512_mask.
968 (_mm512_maskz_loadu_epi16): Likewise.
969 (_mm512_mask_storeu_epi16): Pass short * to
970 __builtin_ia32_storedquhi512_mask.
971 (_mm512_mask_loadu_epi8): Pass const char * to
972 __builtin_ia32_loaddquqi512_mask.
973 (_mm512_maskz_loadu_epi8): Likewise.
974 (_mm512_mask_storeu_epi8): Pass char * to
975 __builtin_ia32_storedquqi512_mask.
976 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
977 const double * to __builtin_ia32_loadupd512_mask.
978 (_mm512_mask_loadu_pd): Likewise.
979 (_mm512_maskz_loadu_pd): Likewise.
980 (_mm512_storeu_pd): Pass double * to
981 __builtin_ia32_storeupd512_mask.
982 (_mm512_mask_storeu_pd): Likewise.
983 (_mm512_loadu_ps): Pass const float * to
984 __builtin_ia32_loadups512_mask.
985 (_mm512_mask_loadu_ps): Likewise.
986 (_mm512_maskz_loadu_ps): Likewise.
987 (_mm512_storeu_ps): Pass float * to
988 __builtin_ia32_storeups512_mask.
989 (_mm512_mask_storeu_ps): Likewise.
990 (_mm512_mask_loadu_epi64): Pass const long long * to
991 __builtin_ia32_loaddqudi512_mask.
992 (_mm512_maskz_loadu_epi64): Likewise.
993 (_mm512_mask_storeu_epi64): Pass long long *
994 to __builtin_ia32_storedqudi512_mask.
995 (_mm512_loadu_si512): Pass const int * to
996 __builtin_ia32_loaddqusi512_mask.
997 (_mm512_mask_loadu_epi32): Likewise.
998 (_mm512_maskz_loadu_epi32): Likewise.
999 (_mm512_storeu_si512): Pass int * to
1000 __builtin_ia32_storedqusi512_mask.
1001 (_mm512_mask_storeu_epi32): Likewise.
1002 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1003 char * to __builtin_ia32_storedquqi256_mask.
1004 (_mm_mask_storeu_epi8): Likewise.
1005 (_mm256_mask_loadu_epi16): Pass const short * to
1006 __builtin_ia32_loaddquhi256_mask.
1007 (_mm256_maskz_loadu_epi16): Likewise.
1008 (_mm_mask_loadu_epi16): Pass const short * to
1009 __builtin_ia32_loaddquhi128_mask.
1010 (_mm_maskz_loadu_epi16): Likewise.
1011 (_mm256_mask_loadu_epi8): Pass const char * to
1012 __builtin_ia32_loaddquqi256_mask.
1013 (_mm256_maskz_loadu_epi8): Likewise.
1014 (_mm_mask_loadu_epi8): Pass const char * to
1015 __builtin_ia32_loaddquqi128_mask.
1016 (_mm_maskz_loadu_epi8): Likewise.
1017 (_mm256_mask_storeu_epi16): Pass short * to.
1018 __builtin_ia32_storedquhi256_mask.
1019 (_mm_mask_storeu_epi16): Pass short * to.
1020 __builtin_ia32_storedquhi128_mask.
1021 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1022 const double * to __builtin_ia32_loadupd256_mask.
1023 (_mm256_maskz_loadu_pd): Likewise.
1024 (_mm_mask_loadu_pd): Pass onst double * to
1025 __builtin_ia32_loadupd128_mask.
1026 (_mm_maskz_loadu_pd): Likewise.
1027 (_mm256_mask_storeu_pd): Pass double * to
1028 __builtin_ia32_storeupd256_mask.
1029 (_mm_mask_storeu_pd): Pass double * to
1030 __builtin_ia32_storeupd128_mask.
1031 (_mm256_mask_loadu_ps): Pass const float * to
1032 __builtin_ia32_loadups256_mask.
1033 (_mm256_maskz_loadu_ps): Likewise.
1034 (_mm_mask_loadu_ps): Pass const float * to
1035 __builtin_ia32_loadups128_mask.
1036 (_mm_maskz_loadu_ps): Likewise.
1037 (_mm256_mask_storeu_ps): Pass float * to
1038 __builtin_ia32_storeups256_mask.
1039 (_mm_mask_storeu_ps): ass float * to
1040 __builtin_ia32_storeups128_mask.
1041 (_mm256_mask_loadu_epi64): Pass const long long * to
1042 __builtin_ia32_loaddqudi256_mask.
1043 (_mm256_maskz_loadu_epi64): Likewise.
1044 (_mm_mask_loadu_epi64): Pass const long long * to
1045 __builtin_ia32_loaddqudi128_mask.
1046 (_mm_maskz_loadu_epi64): Likewise.
1047 (_mm256_mask_storeu_epi64): Pass long long * to
1048 __builtin_ia32_storedqudi256_mask.
1049 (_mm_mask_storeu_epi64): Pass long long * to
1050 __builtin_ia32_storedqudi128_mask.
1051 (_mm256_mask_loadu_epi32): Pass const int * to
1052 __builtin_ia32_loaddqusi256_mask.
1053 (_mm256_maskz_loadu_epi32): Likewise.
1054 (_mm_mask_loadu_epi32): Pass const int * to
1055 __builtin_ia32_loaddqusi128_mask.
1056 (_mm_maskz_loadu_epi32): Likewise.
1057 (_mm256_mask_storeu_epi32): Pass int * to
1058 __builtin_ia32_storedqusi256_mask.
1059 (_mm_mask_storeu_epi32): Pass int * to
1060 __builtin_ia32_storedqusi128_mask.
1061 * config/i386/i386-builtin-types.def (PCSHORT): New.
1063 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1064 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1065 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1066 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1067 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1068 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1069 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1070 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1071 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1072 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1073 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1074 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1075 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1076 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1077 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1078 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1079 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1080 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1081 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1082 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1083 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1084 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1085 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1086 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1087 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1088 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1089 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1090 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1091 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1092 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1093 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1094 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1095 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1096 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1097 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1098 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1099 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1100 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1101 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1102 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1103 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1104 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1105 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1106 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1107 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1108 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1109 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1110 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1111 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1113 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1114 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1116 (ix86_expand_vector_move_misalign): Likewise.
1117 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1118 to scalar function prototype for unaligned load/store builtins.
1119 (ix86_expand_special_args_builtin): Updated.
1120 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1121 (UNSPEC_STOREU): Likewise.
1122 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1123 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1124 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1125 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1126 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1127 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1128 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1129 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1130 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1131 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1132 (<avx512>_storedqu<mode>_mask): Likewise.
1133 (*sse4_2_pcmpestr_unaligned): Likewise.
1134 (*sse4_2_pcmpistr_unaligned): Likewise.
1135 (*mov<mode>_internal): Renamed to ...
1136 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1137 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1138 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1139 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1141 2016-04-19 Richard Biener <rguenther@suse.de>
1143 PR tree-optimization/70171
1144 * tree-ssa-phiprop.c: Include stor-layout.h.
1145 (phiprop_insert_phi): Handle the aggregate copy case.
1146 (propagate_with_phi): Likewise.
1148 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1150 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1151 instead of simplify_gen_subreg (... , 0).
1152 (ix86_delegitimize_address): Ditto.
1153 (ix86_split_divmod): Ditto.
1154 (ix86_split_copysign_const): Ditto.
1155 (ix86_split_copysign_var): Ditto.
1156 (ix86_expand_args_builtin): Ditto.
1157 (ix86_expand_round_builtin): Ditto.
1158 (ix86_expand_special_args_builtin): Ditto.
1159 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1160 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1161 (udivmodqi4): Ditto.
1162 (absneg splitters): Ditto.
1163 (*jcc_bt<mode>_1): Ditto.
1165 2016-04-19 Richard Biener <rguenther@suse.de>
1167 PR tree-optimization/70724
1168 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1169 restoring out from ...
1170 (free_scc_vn): ... here.
1171 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1172 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1174 (pass_fre::execute): Restore SSA info.
1176 2016-04-19 Richard Biener <rguenther@suse.de>
1178 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1179 * gimple-walk.c (walk_gimple_op): Initialize it.
1180 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1181 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1182 remapping SSA names of defs.
1183 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1186 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1189 * lra-constraints.c (equiv_substition_p): New.
1190 (process_alt_operands): Use it.
1191 (swap_operands): Swap it.
1192 (curr_insn_transform): Update it.
1194 2016-04-18 Michael Matz <matz@suse.de>
1196 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1197 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1198 * tree-core.h (tree_type_common.align): Use bit-field.
1199 (tree_type_common.spare): New.
1200 (tree_decl_common.off_align): Make smaller.
1201 (tree_decl_common.align): Use bit-field.
1203 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1204 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1205 (scan_sharing_clauses): Ditto.
1206 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1207 (omp_finish_file): Ditto.
1208 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1209 (layout_decl): Ditto.
1210 (relayout_decl): Ditto.
1211 (finalize_record_size): Use SET_TYPE_ALIGN.
1212 (finalize_type_size): Ditto.
1213 (finish_builtin_struct): Ditto.
1214 (layout_type): Ditto.
1215 (initialize_sizetypes): Ditto.
1216 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1217 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1218 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1219 (get_chain_field): Ditto.
1220 (get_trampoline_type): Ditto.
1221 (get_nl_goto_field): Ditto.
1222 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1224 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1225 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1226 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1227 (build_qualified_type): Use SET_TYPE_ALIGN.
1228 (build_aligned_type, build_range_type_1): Ditto.
1229 (build_atomic_base): Ditto.
1230 (build_common_tree_nodes): Ditto.
1231 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1232 (expand_one_stack_var_at): Ditto.
1233 * coverage.c (build_var): Use SET_DECL_ALIGN.
1234 * except.c (init_eh): Ditto.
1235 * function.c (assign_parm_setup_block): Ditto.
1236 * symtab.c (increase_alignment_1): Ditto.
1237 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1238 * tree-vect-stmts.c (ensure_base_align): Ditto.
1239 * varasm.c (align_variable): Ditto.
1240 (assemble_variable): Ditto.
1241 (build_constant_desc): Ditto.
1242 (output_constant_def_contents): Ditto.
1244 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1245 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1246 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1247 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1248 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1250 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1253 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1254 replace %vmovsd with "%vmovq".
1255 (vec_concatv2df): Likewise.
1257 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1259 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1260 (*vec_extractv2si_0): Ditto.
1261 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1262 (zero_extended_scalar_load_operand splitters): Ditto.
1263 (vec_extract splitters): Ditto.
1264 (*vec_extractv4si_0_zext): Ditto.
1265 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1267 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1268 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1269 (*sse4_1_extractps): Use lowpart_subreg.
1271 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1273 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1275 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1276 Mention Solaris 11 packaging changes.
1277 Update gas and gld requirements.
1278 Remove reference to pre-Solaris 10 bug.
1279 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1281 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1284 2016-04-17 Jan Hubicka <jh@suse.cz>
1286 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1287 max_loop_iterations_int.
1289 2016-04-18 Richard Biener <rguenther@suse.de>
1291 PR tree-optimization/43434
1292 * tree-ssa-structalias.c (struct vls_data): New.
1293 (visit_loadstore): Handle all pointer-based accesses.
1294 (compute_dependence_clique): Compute a bitmap of restrict tags
1295 assigned bases and pass it to visit_loadstore.
1297 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
1300 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1301 armv8.1-a and armv8.1-a+crc.
1303 2016-04-18 Richard Biener <rguenther@suse.de>
1305 PR tree-optimization/70701
1306 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1307 references after translating through a memcpy.
1309 2016-04-18 Richard Biener <rguenther@suse.de>
1311 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1312 (compute_antic): ... here. For partial antic use regular
1313 postorder and scrap iteration.
1314 (compute_partial_antic_aux): Remove unused return value.
1315 (init_pre): Do not allocate postorder.
1316 (fini_pre): Do not free postorder.
1318 2016-04-18 Richard Biener <rguenther@suse.de>
1321 * expmed.c (extract_bit_field_1): Remove broken case
1322 using a wider MODE_INT mode.
1324 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1326 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1327 unless compiling with at least GCC-4.8.
1329 2016-04-17 Jan Hubicka <jh@suse.cz>
1332 * graphite.c (graphite_finalize): Update call to
1333 tree_estimate_probability.
1334 * predict.h (tree_estimate_probability): Update prototype.
1336 2016-04-17 Jan Hubicka <jh@suse.cz>
1338 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1339 (tree_estimate_probability): Likewise.
1340 (pass_profile::execute): Update.
1341 (report_predictor_hitrates): New function.
1342 * profile.c (compute_branch_probabilities): Use it.
1343 * predict.h (report_predictor_hitrates): Declare.
1345 2016-04-17 Jan Hubicka <jh@suse.cz>
1348 * cgraph.h (cgraph_node::set_const_flag,
1349 cgraph_node::set_pure_flag): Update prototype to return bool;
1351 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1352 of interposable symbol are interposable, too.
1353 (cgraph_set_const_flag_1): Rename to ...
1354 (set_const_flag_1): ... this one; change to self recursive function
1355 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1356 clearnig the flag in all variants and also virtual thunks of const
1357 functions are pure; track if any change was done.
1358 (cgraph_node::set_const_flag): Update.
1359 (struct set_pure_flag_info): New struct.
1360 (cgraph_set_pure_flag_1): Rename to ...
1361 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1362 rather than pointer encoded flags; track if any changes was done;
1363 handle correctly clearning flag and setting flag of aliases already
1365 (cgraph_node::set_pure_flag): Update.
1366 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1368 2016-04-17 Tom de Vries <tom@codesourcery.com>
1371 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1374 2016-04-17 Tom de Vries <tom@codesourcery.com>
1376 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1377 '{}<> ' as escape-for-record.
1379 2016-04-17 Tom de Vries <tom@codesourcery.com>
1381 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1384 2016-04-17 Tom de Vries <tom@codesourcery.com>
1387 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1388 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1389 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1390 * passes.c (finish_optimization_passes): Only call
1391 finish_graph_dump_file if dfi->graph_dump_initialized.
1392 (execute_function_dump, pass_init_dump_file): Use
1393 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1395 2016-04-17 Tom de Vries <tom@codesourcery.com>
1397 PR tree-optimization/70256
1398 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1399 (debug_varmap): New function.
1401 2016-04-17 Tom de Vries <tom@codesourcery.com>
1404 * passes.c (pass_manager::register_pass): Propagate pflags.
1406 2016-04-17 Tom de Vries <tom@codesourcery.com>
1409 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1410 * passes.c (pass_manager::pass_manager): Declare and init p_start in
1411 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
1412 check if it's equal to p_start.
1413 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1415 2016-04-15 Jan Hubicka <jh@suse.cz>
1418 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1419 function does not bind to current def.
1420 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1421 handle conservatively calls to functions that does not need to bind
1423 (check_call): Update call of worse_state.
1424 (ignore_edge_for_nothrow): Update.
1425 (ignore_edge_for_pure_const): Likewise.
1426 (propagate_pure_const): Update calls to worse_state.
1427 (skip_function_for_local_pure_const): Reformat comments.
1429 2016-04-15 Jan Hubicka <jh@suse.cz>
1432 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1433 (cgraph_node::function_symbol): Likewise.
1434 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1435 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1436 (symtab_node::ultimate_alias_target): Add REF parameter.
1437 (symtab_node::binds_to_current_def_p): Declare.
1438 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1439 (cgraph_node::function_symbol): Likewise.
1440 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1441 (cgraph_node::get_availability): Likewise.
1442 (cgraph_edge::binds_to_current_def_p): New inline function.
1443 (varpool_node::get_availability): Add REF parameter.
1444 (varpool_node::ultimate_alias_target): Likewise.
1445 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1446 (symtab_node::binds_to_current_def_p): Likewise.
1447 * varpool.c (varpool_node::get_availability): Likewise.
1449 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1452 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1453 Fix mode size check.
1455 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1457 * BASE-VER: Set to 7.0.0.
1459 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
1461 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1463 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1465 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1466 architecture revisions.
1468 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
1470 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1471 * config/i386/i386.c (ix86_using_red_zone): No longer static.
1472 * config/i386/i386.md (stack decrement to push peepholes): Guard
1473 with !x86_using_red_zone ().
1475 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1478 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1479 to dump_generic_node.
1480 (NIY): Pass also flags to do_niy.
1482 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
1484 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1485 (simd_clone_vector_of_formal_parm_types)
1486 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1487 (simd_clone_mangle, simd_clone_create)
1488 (simd_clone_adjust_return_type, create_tmp_simd_array)
1489 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1490 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1491 (ipa_simd_modify_function_body, simd_clone_linear_addend)
1492 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1493 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1494 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1495 * omp-simd-clone.c: ... this new file.
1496 (simd_clone_vector_of_formal_parm_types): Make it static.
1497 * Makefile.in (OBJS): Add omp-simd-clone.o.
1499 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1502 * config/i386/sse.md: Use proper memory operand modifiers.
1505 2016-04-15 Richard Biener <rguenther@suse.de>
1506 Alan Modra <amodra@gmail.com>
1508 PR tree-optimization/70130
1509 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1510 when alignment stays not the same and no not use the realign
1513 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1516 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1517 direct move handlers for KFmode. Change TFmode handlers test from
1518 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1520 2016-04-14 Jakub Jelinek <jakub@redhat.com>
1523 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1524 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1525 (inlined_polymorphic_ctor_dtor_block_p): Use it.
1526 * tree-ssa-live.c (remove_unused_scope_block_p): When
1527 in_ctor_dtor_block, avoid discarding not just BLOCKs with
1528 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1529 block_ultimate_origin is FUNCTION_DECL.
1530 (remove_unused_locals): If current_function_decl is
1531 polymorphic_ctor_dtor_p, pass initial true to
1532 remove_unused_scope_block_p' is_ctor_dtor_block.
1534 2016-04-14 Martin Sebor <msebor@redhat.com>
1539 * doc/extend.texi (Variable Length): Revert.
1541 2016-04-14 Marek Polacek <polacek@redhat.com>
1542 Jan Hubicka <hubicka@ucw.cz>
1545 * tree.c (verify_type): Disable the canonical type of main variant
1548 2016-04-14 Jason Merrill <jason@redhat.com>
1550 * cfgexpand.c, expr.c: Revert previous change.
1552 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1555 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1556 when building a mem ref for the incoming reduction variable.
1558 2016-04-14 Richard Biener <rguenther@suse.de>
1560 PR tree-optimization/70614
1561 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1562 loop if the evolution dropped to chrec_dont_know.
1563 (interpret_condition_phi): Likewise.
1565 2016-04-14 Richard Biener <rguenther@suse.de>
1567 PR tree-optimization/70623
1568 * tree-ssa-pre.c (changed_blocks): Make global ...
1569 (compute_antic): ... local here. Move and fix worklist
1570 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1571 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
1572 worklist handling, dump when ANTIC_IN changed.
1573 (compute_partial_antic_aux): Remove worklist handling.
1574 (init_pre): Do not compute post dominators. Add a comment about
1575 the CFG order chosen.
1576 (fini_pre): Do not free post dominators.
1578 2016-04-13 Martin Sebor <msebor@redhat.com>
1583 * doc/extend.texi (Variable Length): Document C++ specifics.
1585 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1588 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1589 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
1590 eh edges have been purged.
1593 * tree-sra.c (create_access_replacement,
1594 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1596 * tree-pretty-print.c (dump_fancy_name): New function.
1597 (dump_decl_name, dump_generic_node): Use it.
1599 2016-04-13 Jason Merrill <jason@redhat.com>
1601 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1602 * expr.c (expand_expr_real_1): Likewise.
1604 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
1606 * config/i386/i386.md (kunpckhi): Swap operands.
1607 (kunpcksi): Likewise.
1608 (kunpckdi): Likewise.
1609 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1610 (vec_pack_trunc_<mode>): Likewise.
1612 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1615 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1618 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1619 gimplification turns some element into non-constant.
1622 * rtl.h (convert_memory_address_addr_space_1): New prototype.
1623 * explow.c (convert_memory_address_addr_space_1): No longer static,
1624 add NO_EMIT argument and don't call convert_modes if true, pass
1625 it down recursively, remove break after return.
1626 (convert_memory_address_addr_space): Adjust caller.
1627 * simplify-rtx.c (simplify_unary_operation_1): Call
1628 convert_memory_address_addr_space_1 instead of convert_memory_address,
1629 if it returns NULL, don't simplify.
1631 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
1634 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
1636 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1638 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1639 Bump the upper SIMDLEN limits, so that if the return type or
1640 characteristic type if the return type is void can be passed in
1641 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
1644 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1647 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
1648 Do not use "=" constraint on an input constraint.
1649 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1650 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1651 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
1652 generates (neg (abs ...)) instead of (abs ...).
1654 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1656 PR rtl-optimization/70596
1657 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
1658 just invalidate LRA data and reset them. Adjust dump wording.
1660 2016-04-12 Martin Liska <mliska@suse.cz>
1663 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1665 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1667 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1668 max_loop_iterations_int.
1669 (tree_unswitch_outer_loop): Likewise.
1670 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1671 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1673 2016-04-12 Tom de Vries <tom@codesourcery.com>
1675 PR tree-optimization/68756
1676 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
1677 instead of new_name.
1679 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1681 PR tree-optimization/70602
1682 * tree-sra.c (generate_subtree_copies): Don't write anything into
1683 constant pool decls.
1685 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
1686 regardless whether there are depend clauses or not.
1688 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1691 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
1692 target attribute and pragma from changing the -mfloat128
1693 and -mfloat128-hardware options.
1695 * doc/extend.texi (Additional Floating Types): Document PowerPC
1696 __float128 restrictions.
1698 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1701 * config/aarch64/driver-aarch64.c
1702 (aarch64_get_extension_string_for_isa_flags): New.
1703 (arch_extension): Rename to...
1704 (aarch64_arch_extension): ...This.
1705 (ext_to_feat_string): Rename to...
1706 (aarch64_extensions): ...This.
1707 (aarch64_core_data): Keep track of architecture extension flags.
1708 (cpu_data): Rename to...
1709 (aarch64_cpu_data): ...This.
1710 (aarch64_arch_driver_info): Keep track of architecture extension
1712 (get_arch_name_from_id): Rename to...
1713 (get_arch_from_id): ...This, change return type.
1714 (host_detect_local_cpu): Update and reformat for renames, handle
1715 extensions through common infrastructure.
1717 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1720 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
1721 track of a canonical flag name.
1722 (all_extensions): Likewise.
1723 (arch_to_arch_name): Also track extension flags enabled by the arch.
1724 (all_architectures): Likewise.
1725 (aarch64_parse_extension): Move to here.
1726 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
1728 (aarch64_rewrite_selected_cpu): Update for above change.
1729 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
1730 are handled, such that the single explicit value enabled by an
1731 extension is kept seperate from the implicit values it also enables.
1732 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
1734 (aarch64_parse_extension): New.
1735 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
1736 here to config/aarch64/aarch64-protos.h.
1737 (aarch64_parse_extension): Move from here to
1738 common/config/aarch64/aarch64-common.c.
1739 (aarch64_option_print): Update.
1740 (aarch64_declare_function_name): Likewise.
1741 (aarch64_start_file): Likewise.
1742 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
1743 the canonical flag for extensions.
1744 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
1747 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1749 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
1752 2016-04-09 Tom de Vries <tom@codesourcery.com>
1754 PR tree-optimization/68953
1755 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
1756 first to last subscript.
1758 2016-04-09 Jakub Jelinek <jakub@redhat.com>
1760 PR tree-optimization/70586
1761 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
1764 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1768 PR tree-optimization/70373
1772 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
1773 clauses for acc parallel reductions as necessary. Error on those
1775 * omp-low.c (scan_sharing_clauses): Don't install variables which
1776 are used in acc parallel reductions.
1777 (lower_rec_input_clauses): Remove dead code.
1778 (lower_oacc_reductions): Add support for reference reductions.
1779 (lower_reduction_clauses): Remove dead code.
1780 (lower_omp_target): Don't remap variables appearing in acc parallel
1782 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
1784 2016-04-08 Jakub Jelinek <jakub@redhat.com>
1787 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
1788 with multiple SSA_NAME defs, force the outputs other than first
1789 to be live before calling live_track_process_def on each output.
1791 PR rtl-optimization/70574
1792 * fwprop.c (forward_propagate_and_simplify): Don't add
1793 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
1794 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
1795 paradoxical subregs within *loc.
1797 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
1799 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
1800 -ftree-parallelize-loops={0,1}.
1801 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1802 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1803 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1804 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1805 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1807 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
1810 * asan.c (instrument_derefs): If we get unknown location, extract it
1812 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
1814 2016-04-08 Tom de Vries <tom@codesourcery.com>
1816 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
1817 implicit firstprivate clause.
1819 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1822 * config/arm/thumb2.md (tst + branch-> lsls + branch
1823 peephole below *orsi_not_shiftsi_si): Require that condition
1824 register is dead after the peephole.
1825 (second peephole after the above): Likewise.
1827 2016-04-08 Alan Modra <amodra@gmail.com>
1830 * builtins.c (fold_builtin_classify): For IBM extended precision,
1831 look at just the high-order double to test for NaN.
1832 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
1833 test just the high double for Inf but both doubles for subnormal
1836 2016-04-07 Jakub Jelinek <jakub@redhat.com>
1838 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
1839 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
1840 node->simdclone->mask_mode != VOIDmode masks.
1841 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
1842 earlier, use it instead of node->simdclone.
1843 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1844 Set clonei->mask_mode.
1846 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1849 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
1850 Pass it through to cp_parser_already_scoped_statement.
1851 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
1852 it through to cp_parser_statement.
1853 (cp_parser_statement): Pass IF_P through to
1854 cp_parser_iteration_statement.
1855 (cp_parser_pragma): Adjust call to
1856 cp_parser_iteration_statement.
1858 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1861 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
1862 resolve a future -Wparentheses warning.
1863 * omp-low.c (scan_sharing_clauses): Likewise.
1864 * tree-parloops.c (eliminate_local_variables): Likewise.
1866 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
1868 PR rtl-optimization/70398
1869 * lra-constraints.c (process_address_1): Check zero scale and code
1870 for reloading with zero scale.
1872 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
1874 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
1875 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
1877 2016-04-06 Jakub Jelinek <jakub@redhat.com>
1879 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1880 Add support for AVX512F clones, include them by default for
1881 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
1882 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
1886 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
1887 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
1888 firstprivate clauses.
1889 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
1890 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
1891 (lower_omp_target): Set TREE_NO_WARNING for
1892 non-addressable possibly uninitialized vars which are copied into
1893 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
1895 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
1897 * config/pa/predicates.md (integer_store_memory_operand): Accept
1898 REG+D operands with a large offset when reload_in_progress is true.
1899 (floating_point_store_memory_operand): Likewise.
1901 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1904 * match.pd (nested int casts): Limit to GIMPLE.
1906 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
1909 * ipa-devirt.c (maybe_record_node): Fix comment; use
1910 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
1912 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1914 PR rtl-optimization/70542
1915 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
1916 if there are any uses other than insn or debug insns.
1918 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
1919 Jakub Jelinek <jakub@redhat.com>
1921 PR tree-optimization/70509
1922 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
1923 Shift HOST_WIDE_INT_1U instead of 1.
1925 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
1927 PR tree-optimization/70509
1928 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
1929 of the vector base type for index.
1931 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
1934 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
1936 2016-04-05 Richard Biener <rguenther@suse.de>
1938 PR tree-optimization/70526
1939 * tree-sra.c (build_ref_for_offset): Use prev_base to
1940 extract the alias pointer type.
1942 2016-04-05 Richard Biener <rguenther@suse.de>
1944 * dse.c (struct store_info): Remove alias_set member.
1945 (struct read_info_type): Likewise.
1946 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
1947 spill_deleted, clear_alias_set_lookup): Remove.
1948 (get_group_info): Remove dead base == NULL_RTX case.
1949 (dse_step0): Remove initialization of removed variables.
1950 (delete_dead_store_insn): Reomve alias set dumping.
1951 (free_read_records): Remove alias_set handling.
1952 (canon_address): Remove alias_set_out parameter.
1953 (record_store): Remove spill_alias_set, it's always zero.
1954 (check_mem_read_rtx): Likewise.
1955 (dse_step2): Rename from ...
1956 (dse_step2_nospill): ... this. Adjust.
1957 (scan_stores): Rename from ...
1958 (scan_stores_nospill): ... this.
1959 (scan_reads): Rename from ...
1960 (scan_reads_nospill): ... this.
1961 (scan_stores_spill, scan_reads_spill): Remove.
1962 (dse_step3_scan): Remove for_spills argument which is always false.
1963 (dse_step3): Likewise.
1964 (dse_step5): Rename from ...
1965 (dse_step5_nospill): ... this. Remove alias_set handling.
1966 (rest_of_handle_dse): Adjust.
1968 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1971 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
1972 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
1973 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
1974 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
1976 2016-04-05 Richard Biener <rguenther@suse.de>
1979 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
1980 non-register type temporaries into SSA.
1982 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
1985 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
1986 calls when sanitizing.
1987 (possible_polymorphic_call_target_p): Fix formatting.
1989 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1990 Jakub Jelinek <jakub@redhat.com>
1993 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
1994 to ensure a call statement is compatible with a built-in's
1996 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
1999 2016-04-04 Richard Biener <rguenther@suse.de>
2001 PR rtl-optimization/70484
2002 * rtl.h (canon_output_dependence): Declare.
2003 * alias.c (canon_output_dependence): New function.
2004 * dse.c (record_store): Use canon_output_dependence rather
2005 than canon_true_dependence.
2007 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2010 * cgraph.h (symtab_node::copy_visibility_from): New function.
2011 * symtab.c (symtab_node::copy_visibility_from): New function.
2012 * ipa-visibility.c (optimize_weakref): New function.
2013 (function_and_variable_visibility): Use it.
2015 2016-04-04 Martin Liska <mliska@suse.cz>
2018 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2019 value that is really in range handled by SBR instruction.
2020 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2021 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2022 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2024 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
2028 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2029 set, but not for SP_REG operands.
2031 2016-04-02 Martin Sebor <msebor@redhat.com>
2034 * fold-const.c (maybe_nonzero_address): New function.
2035 (fold_comparison): Call it. Fold equality and relational
2036 expressions involving null pointers.
2037 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2039 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
2041 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2042 the "Y" constraint (scalar FP 0.0 immediate).
2044 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2045 Add the "const_double" to the list of operand constraints.
2047 2016-04-01 Jakub Jelinek <jakub@redhat.com>
2049 PR rtl-optimization/70467
2050 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2051 If low word of the last operand is 0, just emit addition/subtraction
2054 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2057 * config/s390/s390.c (s390_expand_insv): Check for everything
2058 constant instead of just VOIDmode stuff.
2060 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2063 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2065 2016-04-01 Nathan Sidwell <nathan@acm.org>
2067 * tree.def (TRY_CATCH_EXPR): Correct documentation.
2069 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
2071 PR rtl-optimization/70461
2072 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2075 2016-03-31 Martin Liska <mliska@suse.cz>
2078 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2079 a tree value or an immediate integer value to a buffer
2080 that is eventually copied to a BRIG section.
2081 (emit_immediate_operand): Call the function here.
2082 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2083 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2084 of class' fields that are removed.
2085 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2086 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2087 m_brig_repr_size fields.
2089 2016-03-31 Martin Liska <mliska@suse.cz>
2092 * hsa-gen.c (hsa_function_representation::update_dominance): New
2094 (convert_addr_to_flat_segment): Likewise.
2095 (gen_hsa_memory_set): New alignment argument.
2096 (gen_hsa_ctor_assignment): Likewise.
2097 (gen_hsa_insns_for_single_assignment): Provide alignment
2098 to gen_hsa_ctor_assignment.
2099 (gen_hsa_insns_for_direct_call): Add new argument.
2100 (expand_lhs_of_string_op): New function.
2101 (expand_string_operation_builtin): Likewise.
2102 (expand_memory_copy): New function.
2103 (expand_memory_set): New function.
2104 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2105 (convert_switch_statements): Change signature.
2106 (generate_hsa): Use a return value of the function.
2107 (pass_gen_hsail::execute): Do not call
2108 convert_switch_statements here.
2109 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2110 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2111 (hsa_function_representation::update_dominance): New function.
2113 2016-03-31 Martin Liska <mliska@suse.cz>
2116 * hsa-brig.c (emit_directive_variable): Emit alignment
2117 according to hsa_symbol::m_align.
2118 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2119 (dump_hsa_symbol): Dump alignment of HSA symbols.
2120 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2121 (gen_hsa_addr_with_align): New function.
2122 (hsa_bitmemref_alignment): Use newly added function.
2123 (gen_hsa_insns_for_load): Likewise.
2124 (gen_hsa_insns_for_store): Likewise.
2125 (gen_hsa_memory_copy): New argument added.
2126 (gen_hsa_insns_for_single_assignment): Respect
2127 alignment for assignments processed via gen_hsa_memory_copy.
2128 (gen_hsa_insns_for_direct_call): Likewise.
2129 (gen_hsa_insns_for_return): Likewise.
2130 (gen_function_def_parameters): Set default alignment.
2131 * hsa.c (hsa_object_alignment): New function.
2132 (hsa_byte_alignment): Pasted function.
2133 * hsa.h (hsa_symbol::m_align): New field.
2135 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2137 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2138 scratch field for goto case.
2140 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2142 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2144 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2147 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2148 (scalar_chain::convert_insn): Call convert_op for reg
2149 moves to handle undefined registers.
2151 2016-03-31 Nathan Sidwell <nathan@acm.org>
2154 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2155 Assert we don't want to move backwards.
2157 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2160 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2162 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2164 PR rtl-optimization/70460
2165 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2166 with operand from REG_LABEL_OPERAND, instead substitute
2167 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2168 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2170 2016-03-31 Martin Liska <mliska@suse.cz>
2172 * passes.c (execute_one_pass): Do not call
2173 todo_after for a discarded function.
2175 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2177 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2178 (no_cost, infinite_cost): Initialize the new field.
2179 (get_computation_cost_at): Record setup cost.
2180 (determine_use_iv_cost_address): Skip cost computation for sub
2181 uses if we can estimate it without losing accuracy.
2183 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2185 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2187 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2188 max_loop_iterations_int.
2189 (tree_unswitch_outer_loop): Likewise.
2190 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2191 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2193 2016-03-30 Richard Biener <rguenther@suse.de>
2196 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2198 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2201 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2202 in gen_blendm expander.
2204 2016-03-30 Nick Clifton <nickc@redhat.com>
2207 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2208 case where we are already provided with an SImode SUBREG.
2210 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2213 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2214 conflict between DRAP register and __builtin_eh_return.
2216 2016-03-30 Michael Matz <matz@suse.de>
2217 Richard Biener <rguenther@suse.de>
2220 * ipa-polymorphic-call.c (struct type_change_info): Change
2221 speculative to an unsigned allowing to limit the work we do.
2222 (csftc_abort_walking_p): New inline function..
2223 (check_stmt_for_type_change): Limit the number of may-defs
2224 skipped for speculative devirtualization to
2225 max-speculative-devirt-maydefs.
2226 * params.def (max-speculative-devirt-maydefs): New param.
2227 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2229 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2232 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2235 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2237 PR tree-optimization/59124
2238 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2239 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2241 2016-03-29 Jeff Law <law@redhat.com>
2243 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2245 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2247 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2250 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2252 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2253 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2254 gcrt0.o if linking dynamically.
2256 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2259 * ipa-devirt.c (methods_equal_p): New function.
2260 (compare_virtual_tables): Use it.
2261 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2262 * cgraphclones.c (clone_function_name_1): Use
2263 symbol_table::symbol_suffix_separator.
2264 * coverage.c (build_var): Likewise.
2265 * symtab.c (symbol_table::symbol_suffix_separator): New.
2267 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2269 PR rtl-optimization/70429
2270 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2271 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2272 mode != result_mode.
2275 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2277 PR tree-optimization/70405
2278 * ssa-iterators.h (num_imm_uses): Add missing braces.
2280 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
2282 PR rtl-optimization/68695
2283 * ira-color.c (allocno_copy_cost_saving): New.
2284 (improve_allocation): Use it.
2286 2016-03-29 Richard Henderson <rth@redhat.com>
2289 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2291 2016-03-29 Richard Biener <rguenther@suse.de>
2294 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2295 use alignment returned by get_pointer_alignment_1 if it is
2296 bigger than BITS_PER_UNIT.
2297 * builtins.c (get_pointer_alignment_1): Do not return true
2298 for alignment extracted from SSA info.
2300 2016-03-28 James Bowman <james.bowman@ftdichip.com>
2302 * config/ft32/ft32.opt (mnodiv): New.
2303 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2304 * doc/invoke.texi (FT32 Options -mnodiv): New.
2306 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
2309 * config/i386/i386.md (define_split, andn): Fix modes.
2311 2016-03-26 Richard Biener <rguenther@suse.de>
2312 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2315 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2317 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2318 as 2nd argument to cl_optimization_restore().
2320 2016-03-25 Richard Henderson <rth@redhat.com>
2323 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2324 * config/aarch64/aarch64-protos.h: Declare it.
2325 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2327 2016-03-25 Alan Modra <amodra@gmail.com>
2330 * config/rs6000/constraints.md (j): Simplify.
2331 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2333 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2334 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2335 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2336 in all constraint alternatives.
2337 (movtd_64bit_nodm): Delete "j" constraint alternative.
2339 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2341 * tree-ssa-propagate.c: Enhance docs for
2342 SSA_PROP_NOT_INTERESTING.
2344 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2346 * doc/extend.texi: Fix typo in documentation to pure attribute.
2348 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2351 * config/pa/pa.md (bswapdi2): Use a scratch register.
2353 2016-03-24 Richard Henderson <rth@redhat.com>
2356 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2359 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2361 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2362 using ix86_expand_binary_operator instead of gen_andsi3.
2364 2016-03-24 Richard Biener <rguenther@suse.de>
2366 PR tree-optimization/70396
2367 * tree-vect-stmts.c (vectorizable_comparison): Use
2368 get_vectype_for_scalar_type.
2370 2016-03-24 Richard Biener <rguenther@suse.de>
2373 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2374 with register bases.
2376 2016-03-24 Richard Biener <rguenther@suse.de>
2378 PR tree-optimization/70372
2379 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2380 build_all_ones_cst to also handle vector types correctly.
2382 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2385 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2388 2016-03-23 Marek Polacek <polacek@redhat.com>
2391 * doc/invoke.texi: Document -Wignored-attributes.
2393 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2395 PR tree-optimization/69042
2396 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2397 parameter from 30 to 40.
2399 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2401 PR tree-optimization/69042
2402 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2403 for use with constant offset stripped in base.
2405 2016-03-23 Richard Biener <rguenther@suse.de>
2408 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2409 mode compatibility check.
2410 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2412 2016-03-23 Jeff Law <law@redhat.com>
2414 PR tree-optimization/64058
2415 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2417 (struct ssa_conflicts): Move up earlier in the file.
2418 (conflicts_, var_map_): New static variables.
2419 (initialize_conflict_count): New function to initialize the
2420 CONFLICT_COUNT field for each conflict pair.
2421 (compare_pairs): Lazily initialize the conflict count and use it
2422 as the first tie-breaker.
2423 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
2424 and wipe conflicts_ and map_ around the call to qsort. Remove
2425 special case for 2 coalesce pairs.
2426 * bitmap.c (bitmap_count_unique_bits): New function.
2427 (bitmap_count_bits_in_word): New function, extracted from
2429 (bitmap_count_bits): Use bitmap_count_bits_in_word.
2430 * bitmap.h (bitmap_count_unique_bits): Declare it.
2432 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2435 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2436 transparent alias chain for decl assembler name.
2437 * config/sol2.c (solaris_assemble_visibility): Likewise.
2439 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2441 * config/arm/arm1020e.md (1020call_op): Reduce reservation
2443 (v10_fdivs): Likewise.
2444 (v10_fdivd): Likewise.
2446 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2449 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2450 to not call fclose twice on file.
2452 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2454 PR tree-optimization/70354
2455 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2456 oprnd0 is wider than oprnd1 and there is a cast from the wider
2457 type to oprnd1, mask it with the mask of the narrower type.
2460 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2461 Optimize TARGET_STV splitters, if high or low word of last argument
2464 2016-03-22 Jeff Law <law@redhat.com>
2467 tree-ssa-threadbackward.c
2468 (fsm_find_control_statement_thread_paths): Correctly distinguish
2469 between old style jump threads vs FSM jump threads.
2471 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2474 * config/i386/i386.c (scalar_chain::convert_op): Support
2475 uninitialized register usage case.
2477 2016-03-22 Richard Biener <rguenther@suse.de>
2480 * genmatch.c (gen_transform): Adjust last parameter to a three-state
2482 (capture::gen_transform): ... to change behavior when substituting
2483 a condition into cond or not-cond expr context.
2484 (dt_simplify::gen_1): Adjust.
2485 * gimple-match-head.c: Include gimplify.h for unshare_expr.
2486 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2487 last change and instead change to
2488 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2489 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2491 2016-03-22 Anthony Green <green@moxielogic.com>
2493 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
2494 issue for moxiebox targets.
2495 (CC1PLUS_SPEC): Ditto.
2497 2016-03-22 Richard Biener <rguenther@suse.de>
2500 * fold-const.c (extract_muldiv_1): Properly perform multiplication
2503 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2505 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2507 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2510 * config/i386/i386.c (def_builtin): Handle
2511 OPTION_MASK_ISA_AVX512VL to be and-ed with other
2513 (const struct builtin_description bdesc_special_args[]):
2514 Remove duplicate ISA bits.
2516 2016-03-22 Jakub Jelinek <jakub@redhat.com>
2519 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2520 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
2521 in a way that works also for AVX512BW.
2524 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2525 instead of source if operands[1] is xmm16 and above and
2526 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
2527 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2530 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2531 on assign if (*from_p) is a comparison, set it to
2532 TREE_NO_WARNING (*from_p).
2534 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2537 * lra.c (restore_scratches): Ignore deleted insns.
2539 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
2540 Jakub Jelinek <jakub@redhat.com>
2542 PR tree-optimization/70317
2543 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2546 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
2549 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2550 of ix86_expand_move.
2552 (movti): Use general_operand for operand 1 predicate.
2554 2016-03-21 Martin Liska <mliska@suse.cz>
2556 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2558 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2560 2016-03-21 Martin Liska <mliska@suse.cz>
2563 * ipa-icf.c (sem_function::parse): Skip static
2564 constructors and destructors.
2566 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2569 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2570 function-like macro, peek following token(s) if it is followed
2571 by CPP_OPEN_PAREN token with optional padding in between, and
2572 if not, don't treat it like a macro.
2574 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
2575 Alexander Monakov <amonakov@ispras.ru>
2577 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2578 for the stabs debug format.
2580 2016-03-21 Richard Biener <rguenther@suse.de>
2582 PR tree-optimization/70310
2583 * tree-vect-generic.c (expand_vector_condition): Fold the built
2586 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
2589 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2590 Block third alternative for AVX-512VL target,
2592 2016-03-21 Martin Liska <mliska@suse.cz>
2595 * hsa-brig.c (emit_function_directives): Mark unemitted
2596 global variables for emission.
2597 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2598 (get_symbol_for_decl): Likewise.
2599 * hsa.h (struct hsa_symbol): New flag.
2601 2016-03-21 Richard Biener <rguenther@suse.de>
2603 PR tree-optimization/70288
2604 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2605 we do not estimate unsimplified all-constant conditionals or
2606 switches as optimized away.
2608 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
2610 PR rtl-optimization/69102
2611 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2612 when we have a readonly dependency context.
2614 2016-03-18 Jeff Law <law@redhat.com>
2616 PR rtl-optimization/70263
2617 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2618 (update_equiv_regs): When trying to move a store to after the insn
2619 that sets the source of the store, make sure the store occurs after
2620 the insn that sets the source of the store. When successful note
2621 the REG_EQUIV note created in the dump file.
2623 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
2624 Bernd Schmidt <bschmidt@redhat.com>
2626 * doc/extend.texi: Document more potential problems with basic asms.
2628 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
2630 PR rtl-optimization/70278
2631 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
2634 2016-03-18 Jason Merrill <jason@redhat.com>
2636 * calls.c (load_register_parameters): Fix zero size sibcall logic.
2638 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
2640 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
2641 values to 128b regs.
2643 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2645 PR tree-optimization/70252
2646 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
2647 boolean vector has a proper number of elements.
2648 (supportable_narrowing_operation): Likewise.
2650 2016-03-18 Tom de Vries <tom@codesourcery.com>
2653 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
2655 2016-03-18 Jakub Jelinek <jakub@redhat.com>
2657 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
2658 instead of replace_rtx for DEBUG_INSNs.
2660 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2662 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
2663 load type reservations.
2665 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
2668 * config/pa/constraints.md: Revert 2015-02-13 change. Use
2669 define_constraint for "Q" and "T" constraints.
2671 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
2673 Tweak the pipeline model for Exynos M1
2675 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
2678 2016-03-17 David Malcolm <dmalcolm@redhat.com>
2681 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
2682 where one or both locations aren't within a line_map.
2684 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
2687 * opts.c (finish_options): Don't set flag_pie to the default if
2688 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
2691 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
2693 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
2694 true as ALL_REGS argument to replace_rtx.
2696 2016-03-17 Richard Biener <rguenther@suse.de>
2699 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
2702 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2705 * rtl.h (replace_rtx): Add ALL_REGS argument.
2706 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
2707 equality and assert mode is the same, instead of just rtx pointer
2709 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
2710 true as ALL_REGS argument to replace_rtx.
2712 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2714 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
2715 for boolean vector with vector mode only.
2716 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2718 2016-03-17 Nick Clifton <nickc@redhat.com>
2721 * config/rx/rx.c (rx_print_integer): Print negative constants in
2724 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2727 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
2729 2016-03-16 Richard Henderson <rth@redhat.com>
2730 Richard Biener <rguenth@suse.de>
2735 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
2736 first operand as is_gimple_condexpr.
2741 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
2742 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
2743 Do not gimplify the result.
2744 (do_unop): Adjust call to tree_vec_extract.
2745 (do_binop): Likewise.
2746 (do_compare): Likewise.
2747 (do_plus_minus): Likewise.
2748 (do_negate): Likewise.
2749 (expand_vector_condition): Likewise.
2750 (do_cond): Likewise.
2752 2016-03-16 Richard Henderson <rth@redhat.com>
2755 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
2756 (aarch64_classify_address): Use it.
2757 (aarch64_legitimize_address): Force all subexpressions of PLUS
2758 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
2760 2016-03-16 Jakub Jelinek <jakub@redhat.com>
2761 Richard Biener <rguenth@suse.de>
2764 * rtlanal.c (replace_rtx): For REG, if from is a REG,
2765 return to even if only REGNO is equal, and assert
2768 2016-03-11 Jeff Law <law@redhat.com>
2770 PR rtl-optimization/70224
2771 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
2773 2016-03-16 Richard Henderson <rth@redhat.com>
2776 * function.h (struct function): Add has_forced_label_in_static.
2777 * gimplify.c (force_labels_r): Set it.
2778 * lto-streamer-in.c (input_struct_function_base): Read it.
2779 * lto-streamer-out.c (output_struct_function_base): Write it.
2780 * tree-inline.c (has_label_address_in_static_1): Remove.
2781 (copy_forbidden): Remove fndecl parameter; test
2782 has_forced_label_in_static.
2783 (inline_forbidden_p): Update call to copy_forbidden.
2784 (tree_versionable_function_p): Likewise.
2785 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
2786 (chkp_versioning): Likewise.
2787 * tree-inline.h (copy_forbidden): Update decl.
2789 2016-03-16 Marek Polacek <polacek@redhat.com>
2792 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
2793 function being thunked if the result type doesn't have fixed size.
2794 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
2795 doesn't have fixed size.
2797 2016-03-16 Bin Cheng <bin.cheng@arm.com>
2799 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
2800 reporting malformed loop nest.
2802 2016-03-16 Tom de Vries <tom@codesourcery.com>
2805 * ipa-devirt.c (possible_polymorphic_call_targets): Move
2806 nodes.length () == 1 test to before first nodes[0] access.
2808 2016-03-16 Tom de Vries <tom@codesourcery.com>
2810 PR tree-optimization/68715
2811 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
2814 2016-03-16 Tom de Vries <tom@codesourcery.com>
2816 PR tree-optimization/68809
2817 * graphite-scop-detection.c (same_close_phi_node): Test if result types
2820 2016-03-16 Carlos O'Donell <carlos@redhat.com>
2821 Sandra Loosemore <sandra@codesourcery.com>
2823 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
2824 on leaf attribute. Mention ELF interposition problems.
2826 2016-03-16 Alan Modra <amodra@gmail.com>
2828 PR rtl-optimization/69195
2829 PR rtl-optimization/47992
2830 * ira.c (indirect_jump_optimize): Ignore artificial defs.
2833 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
2836 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
2838 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2840 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
2842 2016-03-15 Jakub Jelinek <jakub@redhat.com>
2844 PR rtl-optimization/70222
2845 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
2846 optimization if mode is different from result_mode, queue up masking
2847 of the result in outer_op. Formatting fix.
2850 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
2853 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2855 PR rtl-optimization/69032
2856 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
2857 looping backwards over basic block insns.
2859 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2862 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
2863 to non-speculative when propagating trap bits.
2865 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2867 PR rtl-optimization/63384
2868 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
2871 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2874 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
2875 factored out from ...
2876 (sched_analyze_insn): ... here.
2877 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
2878 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
2879 get_implicit_reg_pending_clobbers in it.
2880 (setup_id_reg_sets): Use setup_id_implicit_regs.
2881 (deps_init_id): Ditto.
2883 2016-03-15 Tom de Vries <tom@codesourcery.com>
2886 * cgraph.c (cgraph_node::get_body): Save, reset and restore
2888 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
2889 execute_function_dump.
2890 (execute_one_pass): Don't dump function if it will be dumped after ipa
2893 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
2895 * genrecog.c (match_pattern_2): If pred is NULL don't call
2896 safe_predicate_mode on it.
2898 2016-03-14 Jakub Jelinek <jakub@redhat.com>
2901 * lra-constraints.c (delete_move_and_clobber): Change assertion
2902 to also allow dregno == 0.
2904 2016-03-14 Richard Henderson <rth@redhat.com>
2907 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
2908 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
2909 (reassociate_bb): Use optimize_vec_cond_expr; avoid
2910 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
2913 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
2916 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
2918 (lra_create_live_ranges_1): initialize hard register biggest_mode to
2920 * lra-constraints.c (split_reg): For hard regs, try to find the
2921 biggest single-register mode used in the function.
2923 2016-03-14 Richard Biener <rguenther@suse.de>
2925 PR tree-optimization/56365
2926 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
2927 constants to compare against.
2929 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
2932 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2933 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
2934 (define_split for the GPR case): Use int_reg_operand instead of
2935 gpc_reg_operand for the output.
2937 2016-03-14 Tom de Vries <tom@codesourcery.com>
2939 PR tree-optimization/70045
2940 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
2941 create_empty_if_region_on_edge argument.
2943 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
2945 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
2946 (STACK_CHECK_PROTECT): Likewise.
2947 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2948 (STACK_CHECK_PROTECT): Likewise.
2949 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2950 (STACK_CHECK_PROTECT): Likewise.
2951 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
2952 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2953 (STACK_CHECK_PROTECT): Likewise.
2955 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
2957 PR rtl-optimization/69307
2958 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
2959 registers in modes that span more than one register.
2961 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
2964 * lra-constraints.c (delete_move_and_clobber): New.
2965 (remove_inheritance_pseudos): Use it.
2967 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
2970 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
2971 the libcall is LCT_THROW.
2972 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
2973 for the checking routine.
2975 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2978 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
2979 optimization if we have direct move.
2980 (roundu32<mode>2_fprs): Likewise.
2982 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
2985 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
2987 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
2988 Arguments swapped. All callers changed. Take reg_renumber into
2989 account, and Calculate and compare register ranges for hard regs.
2991 2016-03-11 Jeff Law <law@redhat.com>
2993 PR tree-optimization/70190
2994 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2995 Handle cases where we can not extract the taken edge, even though we
2996 found a constant value.
2998 PR tree-optimization/64058
2999 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3000 (num_coalesce_pairs): Move up earlier in file.
3001 (find_coalesce_pair): Initialize the INDEX field for each pair
3003 (compare_pairs): No longer sort on the elements in each pair.
3004 Instead break ties with the index of the coalesce pair.
3006 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3009 * config/aarch64/aarch64-protos.h
3010 (aarch64_save_restore_target_globals): New prototype.
3011 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3012 Call the above when popping pragma.
3013 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3015 (aarch64_set_current_function): Rewrite using the above.
3017 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3019 PR tree-optimization/70177
3020 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3021 (extract_ops_from_tree): ... this. In the 2 argument
3022 overload remove _1 suffix.
3023 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3024 (extract_ops_from_tree): ... this.
3025 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3027 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3028 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3029 extract_ops_from_tree instead of 2 operand one.
3031 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
3033 PR tree-optimization/70013
3034 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3035 for constant-pool entries.
3037 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3039 PR rtl-optimization/70174
3040 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3041 followed by gen_lowpart on force_reg instead of just gen_lowpart.
3043 PR tree-optimization/70169
3044 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3045 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
3048 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3049 Jakub Jelinek <jakub@redhat.com>
3052 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3053 of uninitialized values.
3055 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3057 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3059 ("*trunctddd2"): New pattern definition.
3060 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3063 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3065 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3066 definitions for BFP and DFP rounding modes.
3067 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3068 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3069 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3070 ("fix_trunctf<mode>2"): Use the new constants instead of magic
3073 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3075 * config/s390/constraints.md: Adjust comment.
3076 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
3077 s390_decompose_addrstyle_without_index.
3078 * config/s390/predicates.md (shift_count_or_setmem_operand):
3079 Rename to setmem_operand.
3080 * config/s390/s390-protos.h
3081 (s390_decompose_shift_count): Rename to
3082 s390_decompose_addrstyle_without_index.
3083 * config/s390/s390.c (s390_decompose_shift_count)
3084 (s390_mem_constraint, print_shift_count_operand)
3085 (print_operand_address, print_operand): Rename
3086 s390_decompose_shift_count to
3087 s390_decompose_addrstyle_without_index and rename
3088 print_shift_count_operand to print_addrstyle_operand troughout the
3090 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3091 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3092 Rename shift_count_or_setmem_operand to setmem_operand.
3093 * config/s390/vx-builtins.md ("vec_insert<mode>")
3094 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3097 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3100 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3101 Handle overlapping retval and newval.
3103 2016-03-10 Nick Clifton <nickc@redhat.com>
3106 * config/aarch64/aarch64.c
3107 (aarch64_override_options_after_change_1): When forcing
3108 flag_omit_frame_pointer to be true, use a special value that can
3109 be detected if this function is called again, thus preventing
3110 flag_omit_leaf_frame_pointer from being forced to be false.
3112 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3114 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3115 Set x_flag_omit_leaf_frame_pointer when handling
3116 -momit-leaf-frame-pointer.
3118 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3121 * cgraph.c (cgraph_node::dump): Dump split_part and
3122 indirect_call_target.
3123 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3124 * ipa.c (has_addr_references_p): Cleanup.
3125 (is_indirect_call_target_p): New.
3126 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3127 called indirectly as local.
3128 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3130 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3133 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3134 on cxa_pure_virtual.
3136 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3139 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3141 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3144 * tree.c (need_assembler_name_p): Only record main variant type names.
3146 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3149 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3150 Always define to 0 or 1.
3151 (TARGET_FIX_ERR_A53_843419): New macro.
3152 * config/aarch64/aarch64-elf-raw.h
3153 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3154 * config/aarch64/aarch64-linux.h: Likewise.
3155 * config/aarch64/aarch64.c
3156 (aarch64_override_options_after_change_1): Do not default
3157 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3159 (aarch64_attributes): Handle fix-cortex-a53-843419.
3160 (aarch64_can_inline_p): Likewise.
3161 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3163 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3164 Jakub Jelinek <jakub@redhat.com>
3166 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3167 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3168 DECL_COMMONS if flag_unconstrained_commons is set.
3169 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3170 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3171 (funconstrained-commons): Document.
3173 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3175 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3176 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3178 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3180 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3181 has a proper number of elements.
3183 2016-03-10 Alan Modra <amodra@gmail.com>
3185 PR rtl-optimization/69195
3186 PR rtl-optimization/47992
3187 * ira.c (recorded_label_ref): Delete.
3188 (update_equiv_regs): Return void.
3189 (indirect_jump_optimize): New function.
3190 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3191 before regstat_compute_ri. Don't rebuild_jump_labels here.
3192 Delete update_regstat.
3194 2016-03-10 Richard Biener <rguenther@suse.de>
3196 PR tree-optimization/70128
3197 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3198 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3200 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3202 PR tree-optimization/70152
3203 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3204 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3207 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3208 instead of gen_sse2_loadlpd.
3209 * config/i386/sse.md (*vec_concatv2df): Rename to...
3210 (vec_concatv2df): ... this.
3212 PR tree-optimization/70127
3213 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3215 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3219 * diagnostic-show-locus.c (compatible_locations_p): New function.
3220 (layout::layout): Sanitize ranges using compatible_locations_p.
3222 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3226 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3227 location_range param with three const expanded_locations * and a
3229 (layout::layout): Replace call to
3230 rich_location::lazily_expand_location with get_expanded_location.
3231 Extract the range and perform location expansion here, passing
3232 the results to the layout_range ctor.
3233 * diagnostic.c (source_range::debug): Delete.
3234 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3235 of rich_location::get_expanded_location.
3236 * gcc-rich-location.c (get_range_for_expr): Delete.
3237 (gcc_rich_location::add_expr): Reimplement to avoid the
3238 rich_location::add_range overload that took a location_range,
3239 passing a location_t instead.
3241 2016-03-09 Richard Biener <rguenther@suse.de>
3242 Jakub Jelinek <jakub@redhat.com>
3244 PR tree-optimization/70138
3245 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3246 Also skip vect_double_reduction_def.
3248 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3251 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3252 if the operand is "m".
3254 2016-03-09 Nathan Sidwell <nathan@acm.org>
3256 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3258 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3260 * config/i386/i386.c (processor_target_table): Fix cost table
3261 intialization order for znver1.
3263 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3265 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3266 - becuase -> because.
3267 * ipa-reference.c (ignore_module_statics): Likewise.
3268 * cgraph.c (cgraph_node::get_body): Likewise.
3269 * ipa-inline.c (early_inliner): Likewise.
3270 * ipa-devirt.c (types_same_for_odr): Likewise.
3271 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3272 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3274 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3276 * tree-ssa-math-opts.c: Fix typo in comment.
3278 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3281 * config/i386/i386.c (scalar_chain::make_vector_copies,
3282 scalar_chain::convert_reg): Call end_sequence in between
3283 get_insns and emit_conversion_insns rather than after both
3286 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
3289 * config/i386/i386.h (machine_function): Add
3290 pc_thunk_call_expanded flag.
3291 (ix86_pc_thunk_call_expanded): New define.
3292 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3293 (*set_got): Rename insn pattern from set_got.
3294 (*set_got_labelled): Rename inst pattern from set_got_labelled.
3295 * config/i386/i386.c (ix86_compute_frame_layout): Use
3296 ix86_pc_thunk_call_expanded to prevent red-zone.
3298 2016-03-07 Martin Jambor <mjambor@suse.cz>
3300 * hsa.h (hsa_get_ctor_statements): Declare.
3301 (hsa_get_dtor_statements): Likewise.
3302 (hsa_get_kernel_dispatch_type): Likewise.
3303 * hsa.c (hsa_get_ctor_statements): New function.
3304 (hsa_get_dtor_statements): Likewise.
3305 (hsa_get_kernel_dispatch_type): Likewise.
3306 * hsa-brig.c (hsa_cdtor_statements): Removed.
3307 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3308 hsa_get_dtor_statements.
3309 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3310 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3312 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3314 * config/arm/arm-cores.def (cortex-r8): New.
3315 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3316 * config/arm/arm-tune.md: Likewise.
3317 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3319 2016-03-07 Martin Sebor <msebor@redhat.com>
3321 PR rtl-optimization/19705
3322 * doc/invoke.texi (Options That Control Optimization): Clarify
3323 -fno-branch-count-reg.
3325 2016-02-26 Richard Biener <rguenther@suse.de>
3326 Jeff Law <law@redhat.com>
3328 PR tree-optimization/69740
3329 * cfghooks.c (remove_edge): Request loop fixups if we delete
3330 an edge that might turn an irreducible loop into a natural
3332 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3333 Move after definition of loops_state_clear.
3335 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3337 PR rtl-optimization/69052
3338 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3341 2016-03-07 Tom de Vries <tom@codesourcery.com>
3343 PR tree-optimization/70116
3344 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3345 is_tm_ending stmts and ubsan/asan internal functions.
3346 (find_duplicate): Use it. Don't test is_tm_ending here.
3348 2016-03-07 Richard Biener <rguenther@suse.de>
3350 PR tree-optimization/70115
3351 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3352 (propagate_constants_for_unrolling): Use replace_uses_by.
3354 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3357 * omp-low.c (struct oacc_loop): Add ifns.
3358 (new_oacc_loop_raw): Initialize it.
3359 (finish_oacc_loop): Clear mask & flags if no ifns.
3360 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3361 (oacc_loop_xform_loop): Add ifns arg & adjust.
3362 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3364 2016-03-07 Richard Henderson <rth@redhat.com>
3367 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3368 (insert_value_copy_on_edge): Likewise.
3370 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3372 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3374 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3377 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3379 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3381 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3383 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3385 Fix sseimul type attribute.
3386 * config/i386/znver1.md
3387 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3388 znver1_sseimul_avx256_load) : Fix the type attribute.
3389 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3390 pipe usage and latency.
3392 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3395 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3396 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3399 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3402 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3404 PR rtl-optimization/69941
3405 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3406 the reg share its mode.
3408 2016-03-04 Jeff Law <law@redhat.com>
3410 PR tree-optimization/69196
3411 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3412 If the both SSA_NAMEs are anonymous, then consider them unassociated
3413 and include the PHI in the statement count.
3415 2016-03-05 Tom de Vries <tom@codesourcery.com>
3417 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3418 construct in oacc routine. Check for oacc region in oacc routine.
3420 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3423 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
3424 2016-02-22 changes, instead don't recurse if RECUR is already true.
3425 Don't change *dynamic_check if RECUR. Adjust recursive caller
3426 to pass true to the new argument.
3427 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3430 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3431 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3433 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
3435 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3437 PR rtl-optimization/57676
3438 * lra-assigns.c (lra_assign): Guard test for maximum iterations
3441 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
3443 * tree-vect-patterns.c (search_type_for_mask): Handle
3444 comparison of booleans.
3446 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3448 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3452 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3453 all other ops that have dw_val_class_die_ref operands,
3454 and DW_OP_GNU_entry_value.
3456 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3458 PR rtl-optimization/69904
3459 * config/arm/arm.c (arm_cannot_copy_insn_p):
3460 Return true for load-exclusive instructions.
3462 2016-03-03 Jakub Jelinek <jakub@redhat.com>
3465 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3466 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3467 the pattern no matter if it is used just by non-pattern, pattern
3469 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3470 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3471 oprnd1 def_stmt is in pattern, don't look through it.
3473 2016-03-03 Marek Polacek <polacek@redhat.com>
3476 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3478 2016-03-03 Martin Liska <mliska@suse.cz>
3480 PR tree-optimization/70043
3481 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3482 previous statement if we see a debug statement.
3484 2016-03-03 Richard Biener <rguenther@suse.de>
3486 PR tree-optimization/55936
3487 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3488 parameter and guard unsafe equivalence use.
3489 (vrp_evaluate_conditional_warnv_with_ops): Always use
3490 safe equivalences but not via the quadratic compare_names
3493 2016-03-03 Michael Collison <michael.collison@linaro.org>
3496 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3497 for operand 1 to s_register_operand. Change predicate for operand
3498 2 to arm_not_immediate_operand.
3500 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3502 * doc/tm.texi: Regenerated.
3504 2016-03-02 Richard Henderson <rth@redhat.com>
3507 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3508 simplification when all args are positive non-fixed registers.
3510 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3512 * target.def (lra_p): Specify that new ports should use LRA.
3514 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3517 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3518 gimplify_type_sizes the type they refer to.
3519 (omp_notice_variable): Handle reference vars to VLAs.
3520 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3521 reference to VLA decls in the second pass instead of first pass.
3523 2016-03-02 Tom de Vries <tom@codesourcery.com>
3525 PR tree-optimization/68659
3526 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3527 new_expr == NULL_TREE.
3528 (get_new_name): Handle ADDR_EXPR.
3530 2016-03-02 Bin Cheng <bin.cheng@arm.com>
3532 PR rtl-optimization/69052
3533 * loop-invariant.c (canonicalize_address): New function.
3534 (inv_can_prop_to_addr_use): Check validity of address expression
3535 which is canonicalized by above function.
3537 2016-03-02 Alan Modra <amodra@gmail.com>
3540 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3543 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3546 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3547 (*movhi_internal): Put mask moves from and to memory separately
3548 from moves from/to GPRs.
3550 2016-03-02 Richard Biener <rguenther@suse.de>
3552 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3553 GENERIC expressions in GIMPLE.
3555 2016-03-02 Richard Biener <rguenther@suse.de>
3557 * config/i386/i386.c (type_natural_mode): Fix typo.
3559 2016-03-02 Nick Clifton <nickc@redhat.com>
3561 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3563 2016-03-02 Richard Biener <rguenther@suse.de>
3564 Uros Bizjak <ubizjak@gmail.com>
3567 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3569 2016-03-02 Richard Biener <rguenther@suse.de>
3572 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3574 2016-03-02 Marek Polacek <polacek@redhat.com>
3577 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3578 "is promoted to" warning.
3580 2016-03-01 DJ Delorie <dj@redhat.com>
3582 * config.gcc: Deprecate mep-*.
3584 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
3587 * lra-constraints.c (regno_val_use_in): New.
3588 (match_reload): Use it instead of regno_use_in.
3590 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3592 PR rtl-optimization/70007
3593 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3594 references present in REG_EQUAL notes attached to non-SET patterns.
3596 2016-03-01 Jeff Law <law@redhat.com>
3598 PR tree-optimization/69196
3599 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3600 Appropriately clamp the number of statements to copy when the
3601 thread path does not traverse a loop backedge.
3603 PR tree-optimization/69196
3604 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3605 Do count some PHIs in the thread path against the insn count. Decrease
3606 final statement count by one as the control statement in the last
3607 block will get removed. Remove special cased code for handling PHIs
3610 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3614 asm dialect alternatives to explicit GOTPCREL calls.
3616 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3619 * ira.c (do_reload): Issue warning for generic stack checking here...
3620 * reload1.c (reload): ...instead of here and streamline it.
3622 2016-03-01 Nick Clifton <nickc@redhat.com>
3624 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
3626 2016-03-01 Richard Biener <rguenther@suse.de>
3628 PR tree-optimization/69983
3629 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
3630 types and fall back to operand_equal_p.
3632 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3635 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3637 * config/s390/constraints.md ("jm8"): New constraint.
3638 * config/s390/predicates.md ("const_int_8bitset_operand"): New
3640 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
3642 ("*setmem_long<setmem_and>"): New pattern.
3643 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
3645 ("*setmem_long_31z<setmem_and>"): New pattern.
3646 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
3647 New substitution rules with the required attributes.
3650 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3653 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3655 * gensupport.c (process_substs_on_one_elem): Split loop to
3656 complete mark_operands_used_in_match_dup on all expressions in the
3658 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3659 and remove function.
3661 2016-03-01 Richard Biener <rguenther@suse.de>
3664 * fold-const.c (fold_indirect_ref_1): Fix range checking for
3665 vector BIT_FIELD_REF extract.
3667 2016-03-01 Richard Biener <rguenther@suse.de>
3669 PR tree-optimization/69994
3670 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
3672 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3674 PR tree-optimization/69956
3675 * tree-vect-stmts.c (supportable_widening_operation): Support
3676 multi-step conversion of boolean vectors.
3677 (supportable_narrowing_operation): Likewise.
3679 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3681 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
3684 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3686 * config/s390/subst.md (DSI_VI): New mode iterator.
3687 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
3688 * config/s390/vector.md ("vec_set<mode>"): Move expander before
3689 the insn definition.
3690 ("*vec_set<mode>"): Change predicate and add alternative to
3691 support only either register or const_int operands as element
3693 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
3695 ("vec_extract<mode>"): New expander.
3696 ("*vec_extract<mode>"): New insn definition supporting reg and
3697 const_int element selectors.
3698 ("*vec_extract<mode>_plus"): New insn definition supporting
3699 reg+const_int element selectors.
3700 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
3701 following expander+insn definition.
3702 ("<vec_shifts_name><mode>3"): New expander.
3703 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
3705 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3707 * config/s390/s390.md ("*tabort_1"): Change predicate to
3708 nonmemory_operand. Add a second alternative to cover
3709 register as well as const int operands.
3710 ("*tabort_1_plus"): New pattern definition.
3712 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3714 * config/s390/s390.md ("*ashrdi3_cc_31")
3715 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
3716 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
3717 Merge insn definitions into ...
3718 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3719 New pattern definition.
3720 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
3721 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
3722 ("*ashr<mode>3_and"): Merge insn definitions into ...
3723 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3724 New pattern definition.
3725 * config/s390/subst.md ("addr_style_op_cc_subst")
3726 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
3727 substitutions patterns plus attributes.
3728 Add ashiftrt to SUBST iterator.
3730 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3732 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
3733 op2 to nonmemory_operand.
3734 ("*<shift>di3_31", "*<shift>di3_31_and"):
3735 Merge into single pattern definition ...
3736 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
3737 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
3738 pattern definition ...
3739 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
3740 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
3743 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3745 * config/s390/predicates.md (const_int_6bitset_operand): New
3747 * config/s390/s390.md: Include subst.md.
3748 ("rotl<mode>3"): New expander.
3749 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
3751 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
3752 * config/s390/subst.md: New file.
3754 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3756 * config/s390/s390.md ("op_type", "atype", "length" attributes):
3757 Remove RRR type. It doesn't really exist.
3758 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
3760 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
3761 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
3762 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
3763 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
3764 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
3765 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
3766 `enabled' attribute.
3768 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3770 * gensupport.c (process_substs_on_one_elem): Split loop to
3771 complete mark_operands_used_in_match_dup on all expressions in the
3773 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3774 and remove function.
3776 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3779 * config/sparc/sparc.c (NWORDS_UP): Rename to...
3780 (CEIL_NWORDS): ...this. Use CEIL macro.
3781 (compute_fp_layout): Adjust to above renaming.
3782 (function_arg_union_value): Likewise.
3783 (sparc_arg_partial_bytes): Likewise.
3784 (sparc_function_arg_advance): Likewise.
3786 2016-02-29 Jeff Law <law@redhat.com>
3788 PR tree-optimization/70005
3789 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
3790 where an object with a boolean range is compared against a value
3793 PR tree-optimization/69999
3794 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
3795 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
3798 2016-02-29 Richard Biener <rguenther@suse.de>
3800 PR tree-optimization/69994
3801 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
3802 (get_unary_op): Look through nop conversions.
3803 (ops_equal_values_p): New function, look for equality diregarding
3805 (eliminate_plus_minus_pair): Use ops_equal_values_p
3806 (repropagate_negates): Do not use get_unary_op here.
3808 2016-02-29 Martin Liska <mliska@suse.cz>
3810 * system.h: Poison ENABLE_CHECKING macro.
3812 2016-02-29 Martin Liska <mliska@suse.cz>
3814 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
3815 is presented in dump flags.
3816 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3817 (hsa_regalloc): Likewise.
3819 2016-02-19 Richard Biener <rguenther@suse.de>
3821 PR tree-optimization/69980
3822 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
3823 permutation of those we need to keep.
3825 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3828 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
3829 (NWORDS_UP): ...this
3830 (init_cumulative_args): Minor tweaks.
3831 (sparc_promote_function_mode): Likewise.
3832 (scan_record_type): Delete.
3833 (traverse_record_type): New function template.
3834 (classify_data_t): New structure type.
3835 (classify_registers): New inline function.
3836 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
3837 exhausted. Instantiate traverse_record_type on classify_registers and
3838 deal with the case of a structure passed in slot #15 with no FP field
3840 (assign_data_t): New structure type.
3841 (compute_int_layout): New static function.
3842 (compute_fp_layout): Likewise.
3843 (count_registers): New inline function.
3844 (assign_int_registers): New static function.
3845 (assign_fp_registers): Likewise.
3846 (assign_registers): New inline function.
3847 (function_arg_record_value_1): Delete.
3848 (function_arg_record_value_2): Likewise.
3849 (function_arg_record_value_3): Likewise.
3850 (function_arg_record_value): Adjust to above changes. Instantiate
3851 traverse_record_type on count_registers to first count the number of
3852 registers to be used and then on assign_registers to assign them.
3853 (function_arg_union_value): Adjust to above renaming.
3854 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
3855 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
3856 case of a structure passed in slot #15
3857 (sparc_function_arg_advance): Likewise.
3858 (function_arg_padding): Minor tweak.
3860 2016-02-29 Richard Biener <rguenther@suse.de>
3862 PR tree-optimization/69720
3863 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
3864 the adjustment_def path for possibly vectorized defs.
3865 (vect_create_epilog_for_reduction): Handle vectorized initial
3868 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
3870 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
3872 2016-02-27 Jeff Law <law@redhat.com>
3875 2016-02-26 Richard Biener <rguenther@suse.de>
3876 Jeff Law <law@redhat.com>
3878 PR tree-optimization/69740
3879 * cfghooks.c (remove_edge): Request loop fixups if we delete
3880 an edge that might turn an irreducible loop into a natural
3883 2016-02-27 Jakub Jelinek <jakub@redhat.com>
3885 PR rtl-optimization/69896
3886 * tree-vect-generic.c (get_compute_type): Avoid single element
3889 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
3891 Rename the AArch64 tuning option and related functions to enable the
3892 Newton series for the reciprocal square root to reflect its
3893 approximative characteristic.
3895 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
3896 function to "aarch64_emit_approx_rsqrt".
3897 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
3898 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
3899 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
3900 (xgene1_tunings): Likewise.
3901 (use_rsqrt_p): Likewise.
3902 (aarch64_emit_swrsqrt): Use new function name.
3903 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
3904 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
3905 text explaining this option.
3906 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
3908 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3911 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3912 complain about -mallow-movmisalign without -mvsx if
3913 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
3915 2016-02-26 Joel Sherrill <joel@rtems.org>
3917 * config.gcc: Add x86_64-*-rtems*.
3918 * gcc/config/i386/rtems-64.h: New file.
3920 2016-02-26 Joel Sherrill <joel@rtems.org>
3922 * config.gcc: Add aarch64-*-rtems*.
3923 * gcc/config/aarch64/rtems.h: New file.
3925 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
3928 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
3929 shift amount using %h. Add comment.
3931 2016-02-26 Richard Biener <rguenther@suse.de>
3932 Jeff Law <law@redhat.com>
3934 PR tree-optimization/69740
3935 * cfghooks.c (remove_edge): Request loop fixups if we delete
3936 an edge that might turn an irreducible loop into a natural
3939 2016-02-26 Martin Jambor <mjambor@suse.cz>
3942 * tree-sra.c (sra_modify_assign): Do not remove loads of
3943 uninitialized aggregates to SSA_NAMEs.
3945 2016-02-26 Richard Henderson <rth@redhat.com>
3948 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
3949 pseudo in case the target rtx matches the source of the left
3952 2016-02-26 Martin Jambor <mjambor@suse.cz>
3955 * hsa.h (hsa_type_packed_p): Declare.
3956 * hsa.c (hsa_type_packed_p): New function.
3957 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
3959 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
3960 * hsa-brig.c (emit_basic_insn): Likewise.
3962 2016-02-26 Martin Jambor <mjambor@suse.cz>
3965 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
3967 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
3969 2016-02-26 Martin Jambor <mjambor@suse.cz>
3971 * hsa.h (is_a_helper): New overload for hsa_op_immed for
3972 hsa_op_with_type operands.
3973 (hsa_unsigned_type_for_type): Declare.
3974 * hsa.c (hsa_unsigned_type_for_type): New function.
3975 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
3976 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
3977 the finalizer. Do not emit extra move.
3979 2016-02-26 Martin Jambor <mjambor@suse.cz>
3981 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
3982 atomic operations in private segment.
3984 2016-02-26 Martin Jambor <mjambor@suse.cz>
3986 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
3987 statements to wi->info. Also disallow omp simd constructs.
3988 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
3989 for not gridifying. Dump special string for omp_for.
3991 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3994 * config/aarch64/aarch64.c (aarch64_set_current_function):
3995 Save/restore target globals when switching to
3996 target_option_default_node.
3998 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4001 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4002 Return 0 if !SHIFT_COUNT_TRUNCATED.
4004 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4005 Eric Botcazou <ebotcazou@adacore.com>
4007 PR rtl-optimization/69891
4008 * dse.c (scan_insn): If we can't figure out memset arguments
4009 or they are non-constant, call clear_rhs_from_active_local_stores.
4011 2016-02-26 Martin Liska <mliska@suse.cz>
4013 * doc/extend.texi: Mention clog10, clog10f an clog10l
4014 in Builtins section.
4016 2016-02-26 Martin Liska <mliska@suse.cz>
4018 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4020 (resolve_args_picking_1): Likewise.
4021 * dwarf2out.h (struct GTY): Likewise.
4023 2016-02-26 Martin Liska <mliska@suse.cz>
4025 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4027 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4029 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
4030 Martin Liska <mliska@suse.cz>
4032 * doc/install.texi: Mention --enable-valgrind-annotations.
4034 2016-02-26 Richard Biener <rguenther@suse.de>
4036 PR tree-optimization/69551
4037 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4038 looking through aliases adjust DECL_PT_UID to refer to the
4039 ultimate alias target.
4041 2016-02-25 Martin Liska <mliska@suse.cz>
4044 * alloc-pool.c (after_memory_report): New variable.
4045 * alloc-pool.h (base_pool_allocator ::release): Do not use
4046 the infrastructure if after_memory_report.
4047 * toplev.c (toplev::main): Mark after memory report.
4049 2016-02-25 Richard Biener <rguenther@suse.de>
4051 PR tree-optimization/48795
4052 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4054 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4057 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
4058 offloading is enabled and -fopenacc or -fopenmp is specified.
4059 (CRTOFFLOADEND): Likewise.
4060 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4061 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4062 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4063 (offload_objects_file_name): New static var.
4064 (tool_cleanup): Remove offload_objects_file_name file.
4065 (find_offloadbeginend): Replace with ...
4066 (find_crtoffloadtable): ... this.
4067 (run_gcc): Remove offload_argc and offload_argv.
4068 Get offload_objects_file_name from -foffload-objects=... option.
4069 Read names of object files with offload from this file, pass them to
4070 compile_images_for_offload_targets. Don't call find_offloadbeginend and
4071 don't pass offloadbegin and offloadend to the linker. Don't pass
4072 offload non-LTO files to the linker, because now they're not claimed.
4074 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
4077 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4078 on builtin_unreachable.
4080 2016-02-25 Jakub Jelinek <jakub@redhat.com>
4082 PR rtl-optimization/69896
4083 * regcprop.c: Include cfgrtl.h.
4084 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4085 than remembered mode, either delete it (if noop_move_p), or
4086 treat like copy_p but not noop_p instruction.
4088 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4091 * dwarf2out.c (gen_variable_die): Work around buggy LTO
4092 - allow NULL decl for Fortran DW_TAG_common_block variables.
4094 2016-02-24 Jason Merrill <jason@redhat.com>
4096 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4098 2016-02-24 Richard Biener <rguenther@suse.de>
4099 Jakub Jelinek <jakub@redhat.com>
4102 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4103 conditionally executed ops to well-defined overflow behavior.
4105 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4108 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4111 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4113 PR rtl-optimization/69886
4114 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4115 argument. Use it when checking validity of set instructions.
4116 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4117 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4119 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4120 * store-motion.c (find_moveable_store): Update
4121 can_assign_to_reg_without_clobbers_p callsite.
4123 2016-02-24 Richard Biener <rguenther@suse.de>
4126 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4128 (record_nonwrapping_iv): Do not fall back to the low/high bound
4129 for non-constant IV bases if the stmt is not always executed.
4131 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4133 * config/arm/arm-cores.def (cortex-a32): New entry.
4134 * config/arm/arm-tables.opt: Regenerate.
4135 * config/arm/arm-tune.md: Regenerate.
4136 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4137 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4138 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4139 for -mcpu and -mtune.
4141 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4144 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4145 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4146 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4147 (atomic_loaddi_1): Delete.
4148 (atomic_loaddi): Rewrite expander using the above changes.
4150 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4153 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4156 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4157 Richard Biener <rguenth@suse.de>
4160 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4161 set_mem_attributes if tem is SSA_NAME which got expanded
4164 2016-02-24 Richard Biener <rguenther@suse.de>
4166 PR tree-optimization/69907
4167 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4168 end of permutations for BB vectorization.
4170 2016-02-24 Christian Bruel <christian.bruel@st.com>
4172 * config/arm/arm-c.c (arm_option_override): Initialize
4173 target_option_current_node.
4174 * config/arm/arm.c (arm_pragma_target_parse): Replace
4175 build_target_option_node call by target_option_current_node.
4176 Set target_option_current_node.
4179 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4182 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4183 define_insn_and_split to define_insn.
4184 (zero_extendqi<mode>2_dot2): Same.
4185 (extendqi<mode>2_dot): Same.
4186 (extendqi<mode>2_dot2): Same.
4188 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4190 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4191 and add bypass for AES{D,E} and AESMC pairs.
4192 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4195 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4197 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4198 series for reciprocal square root in Exynos M1.
4200 2016-02-23 Martin Sebor <msebor@redhat.com>
4203 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4204 __builtin_alloca_with_align.
4206 2016-02-23 Richard Henderson <rth@redhat.com>
4208 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4209 (ix86_register_pragmas): Remove __seg_tls.
4210 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4211 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4212 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4213 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4214 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4215 * doc/extend.texi (__seg_tls): Remove item.
4217 2016-02-23 Richard Biener <rguenther@suse.de>
4219 * alloc-pool.h (struct allocation_object): Make id member
4220 conditional on CHECKING_P again.
4221 (get_instance): Adjust.
4222 (base_pool_allocator): Likewise.
4224 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4226 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4227 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4229 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4231 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4233 2016-02-23 Richard Biener <rguenther@suse.de>
4235 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4236 * bitmap.h (struct bitmap_usage): Likewise.
4237 (bitmap_move): Declare.
4238 * bitmap.c (register_overhead): Take size_t argument.
4239 (bitmap_move): New function.
4240 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4241 to properly account overhead.
4242 * tree.c (free_node): Use tree_size.
4244 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4247 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4248 when inverting comparison.
4251 * common.opt (Wunreachable-code): Add Warning flag.
4253 2016-02-23 Mark Wielaard <mjw@redhat.com>
4254 Jakub Jelinek <jakub@redhat.com>
4257 * cgraphunit.c (check_global_declaration): Check main_input_filename
4258 and DECL_SOURCE_FILE are not NULL.
4260 2016-02-23 Martin Jambor <mjambor@suse.cz>
4262 PR tree-optimization/69666
4263 * tree-sra.c (sra_modify_assign): Do not attempt to create
4264 default_def replacements for unscalarizable regions.
4266 2016-02-20 Mark Wielaard <mjw@redhat.com>
4269 * cgraphunit.c (check_global_declaration): Check level of
4270 warn_unused_const_variable and main_input_filename.
4271 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4272 (-Wunused-variable): For C implies -Wunused-const-variable=1.
4273 (-Wunused-const-variable): Explain levels 1 and 2.
4275 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4278 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4279 identical arguments. Formatting and spelling fixes.
4282 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4287 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4288 and m68k-devices.def.
4289 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4290 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4292 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4294 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4295 and HImode registers.
4297 2016-02-22 Richard Biener <rguenther@suse.de>
4299 PR tree-optimization/69882
4300 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4301 preserve permutations present because of gaps.
4302 (vect_supported_load_permutation_p): Always continue checking
4303 permutations after vect_attempt_slp_rearrange_stmts.
4305 2016-02-22 Bin Cheng <bin.cheng@arm.com>
4307 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4308 min_profitable_estimate, rather than min_profitable_iters.
4310 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4313 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4314 SImode for last match_operand.
4316 2016-02-22 Martin Liska <mliska@suse.cz>
4318 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4319 return bitsize - 1 as the return value.
4321 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4325 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4326 Handle negative shift counts.
4327 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4328 force_reg on the shift constant.
4329 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4330 (lshrsi3_d): Handle negative shift counts.
4332 2016-02-22 Richard Biener <rguenther@suse.de>
4333 Tom de Vries <tom@codesourcery.com>
4335 * graph.c: Include dumpfile.h.
4336 (print_graph_cfg): Split into three overloads.
4337 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4339 2016-02-22 Tom de Vries <tom@codesourcery.com>
4341 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4344 2016-02-22 Richard Biener <rguenther@suse.de>
4347 * ipa-inline-transform.c (inline_call): When not updating
4348 overall summaries adjust self size by the growth estimate.
4349 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4350 hash-set, do not update overall summaries here. Renamed from ...
4351 (inline_to_all_callers): ... this which is now wrapping the
4352 above and performing delayed overall summary update.
4353 (early_inline_small_functions): Delay updating of the overall
4356 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4358 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4361 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4364 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4365 :%* in %:gt() argument.
4366 (greater_than_spec_func): Adjust for expecting only numbers,
4367 if there are more than two numbers, compare the last two.
4369 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4371 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4372 -Wnarrowing with -std.
4374 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4377 * expr.c (store_field): Don't use bit-field path if exp is
4378 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4379 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4380 and the assignment can be performed by bitwise copy. Formatting
4384 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4385 call copy_reg_eh_region_note_forward on before and/or after sequences
4386 and remove note from insn if it no longer can throw.
4389 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4392 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4394 * config/s390/vector.md: Add missing commutative operand markers
4395 to the patterns which qualify for one.
4396 * config/s390/vx-builtins.md: Likewise.
4398 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4400 * config/s390/vector.md (VI, VI_QHS): Add single element vector
4401 types to mode iterators.
4402 (vec_double): ... and mode attribute.
4403 * config/s390/vx-builtins.md (non_vec_int): Likewise.
4405 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4407 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4408 Change the predicate of op2 from nonimmediate to general and let
4409 reload fix it if necessary.
4411 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4413 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4415 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4417 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4420 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4422 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4423 * config/s390/s390.c (s390_expand_vec_movstr): New function.
4424 * config/s390/s390.md ("movstr<P:mode>"): Call
4425 s390_expand_vec_movstr.
4427 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4429 * config/s390/s390.md: Add missing output modifier for operand 1
4430 to print it as address properly.
4432 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4434 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4435 * config/s390/2964.md: New file.
4436 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4437 of insn grouping attributes depending on the CPU level.
4438 (s390_get_unit_mask): New function.
4439 (s390_sched_score): Remove the OOO from the scheduling macros.
4440 Add loop to calculate a score for the instruction mix.
4441 (s390_sched_reorder): Likewise plus improve debug output.
4442 (s390_sched_variable_issue): Rename macros as above. Calculate
4443 the unit distances after actually scheduling an insn. Improve
4445 (s390_sched_init): Clear last_scheduled_unit_distance array.
4446 * config/s390/s390.md: Include 2964.md.
4448 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4451 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4452 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4453 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4454 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4455 *avx512f_<code>v8div16qi2_mask_1): New insns.
4457 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4460 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4463 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4464 earlyclobber from target. Use wF constraint for fused memory
4466 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4468 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4469 Martin Liska <mliska@suse.cz>
4472 * cfgexpand.c (asan_sanitize_stack_p): New function.
4473 (partition_stack_vars): Use the function.
4474 (expand_stack_vars): Likewise.
4475 (defer_stack_allocation): Likewise.
4476 (expand_used_vars): Likewise.
4478 2016-02-18 Richard Biener <rguenther@suse.de>
4481 * fold-const.c (operand_equal_p): Properly compare offsets for
4482 IMAGPART_EXPR and ARRAY_REF.
4484 2016-02-18 Nick Clifton <nickc@redhat.com>
4488 * config/arm/arm.c (arm_option_override_internal): Disable
4489 interworking if the target does not support thumb instructions.
4490 (arm_reload_in_hi): Handle the case where a register to register
4491 move needs reloading because there is no simple pattern to handle
4493 (arm_reload_out_hi): Likewise.
4495 2016-02-18 Richard Biener <rguenther@suse.de>
4498 * match.pd: Don't use fold_binary or fold_unary for folding
4501 2016-02-17 Jakub Jelinek <jakub@redhat.com>
4504 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4505 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4506 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4507 warn on gimple_no_warning_p statements.
4509 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
4511 * doc/extend.texi (C++ Attributes): Correct description of
4512 warn_unused type attribute.
4514 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4516 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4517 correct instruction.
4519 2016-02-17 Richard Biener <rguenther@suse.de>
4521 PR rtl-optimization/69609
4522 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4523 (find_traces_1_round): When ending a trace update cached priority
4525 (bb_to_key): Use cached priority when available.
4526 (copy_bb): Initialize cached priority.
4527 (reorder_basic_blocks_software_trace_cache): Likewise.
4529 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4532 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4534 (aarch64_comparison_operator): Break overly long line into two.
4535 (aarch64_comparison_operation): Likewise.
4536 * config/aarch64/aarch64.md (cstorecc4): Use
4537 aarch64_comparison_operator_mode instead of
4538 aarch64_comparison_operator.
4539 (cstore<mode>4): Likewise.
4540 (aarch64_cstore<mode>): Likewise.
4541 (*cstoresi_insn_uxtw): Likewise.
4542 (cstore<mode>_neg): Likewise.
4543 (*cstoresi_neg_uxtw): Likewise.
4545 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4548 * config/arm/predicates.md (arm_comparison_operator_mode):
4550 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4551 instead of arm_comparison_operator.
4552 (*mov_negscc): Likewise.
4553 (*mov_notscc): Likewise.
4554 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4555 (*thumb2_mov_negscc): Likewise.
4556 (*thumb2_mov_negscc_strict_it): Likewise.
4557 (*thumb2_mov_notscc): Likewise.
4558 (*thumb2_mov_notscc_strict_it): Likewise.
4560 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
4562 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4565 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
4567 * config/visium/visium.c (machine_libfunc_index): New enum.
4568 (machine_libfuncs): New structure.
4569 (visium_libfuncs): New static variable.
4570 (TARGET_INIT_LIBFUNCS): Define to...
4571 (visium_init_libfuncs): ...this. New function.
4572 (expand_block_move_4): Use the appropriate libfunc.
4573 (expand_block_move_2): Likewise.
4574 (expand_block_move_1): Likewise.
4575 (expand_block_set_4): Likewise.
4576 (expand_block_set_2): Likewise.
4577 (expand_block_set_1): Likewise.
4578 (visium_trampoline_init): Likewise.
4580 2016-02-17 Nick Clifton <nickc@redhat.com>
4582 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4583 TI's devices.csv file as of March 2016.
4585 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
4588 * opts-global.c (handle_common_deferred_options): Introduce and
4589 initialize two global variables to remember command-line options
4590 specifying a stack-limiting register.
4591 * opts.h: Add extern declarations of the two new global variables.
4592 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4593 variable based on the values of the two new global variables.
4595 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4598 * common.opt (Wnonnull-compare): New warning.
4599 * doc/invoke.texi (-Wnonnull): Remove text about comparison
4600 of arguments against NULL.
4601 (-Wnonnull-compare): Document.
4602 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4603 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4604 * passes.def (pass_warn_nonnull_compare): Add.
4605 * gimple-ssa-nonnull-compare.c: New file.
4607 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4609 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4610 AARCH64_EXTRA_TUNE_RECIP_SQRT.
4612 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4614 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4615 reciprocal sqrt for -mlow-precision-recip-sqrt.
4617 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4618 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4620 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
4621 always use lane loads to construct non-constant vectors.
4623 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4625 * config/aarch64/aarch64.md
4626 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
4627 constraints for operand 3.
4628 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
4630 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4631 Richard Biener <rguenther@suse.de>
4633 PR tree-optimization/69820
4634 * tree-vect-patterns.c (type_conversion_p): Return false if
4635 *orig_type is unsigned single precision or boolean.
4636 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
4639 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4641 PR rtl-optimization/69764
4642 PR rtl-optimization/69771
4643 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
4644 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
4646 2016-02-16 Richard Biener <rguenther@suse.de>
4648 PR tree-optimization/69776
4649 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
4651 (indirect_refs_may_alias_p): Likewise.
4652 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
4653 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
4654 according to tbaa_p.
4655 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
4656 (optimize_stmt): For redundant store discovery do not allow tbaa.
4658 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
4660 PR tree-optimization/69714
4661 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
4662 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
4664 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4666 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
4667 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
4668 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
4669 * config/arc/arc.c (arc_init): Check FPU options.
4670 (get_arc_condition_code): Handle new CC_FPU* modes.
4671 (arc_select_cc_mode): Likewise.
4672 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
4673 register pair only. Allow access for ARCv2 accumulator.
4674 (gen_compare_reg): Whenever we have FPU support use FPU compare
4676 (arc_reorg): Don't generate brcc insns when FPU compare
4677 instructions are involved.
4678 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
4679 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
4680 floating point emulation.
4681 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
4682 (REVERSE_CONDITION): Add new CC_FPU* modes.
4683 (TARGET_FP_SP_BASE): Define.
4684 (TARGET_FP_DP_BASE): Likewise.
4685 (TARGET_FP_SP_FUSED): Likewise.
4686 (TARGET_FP_DP_FUSED): Likewise.
4687 (TARGET_FP_SP_CONV): Likewise.
4688 (TARGET_FP_DP_CONV): Likewise.
4689 (TARGET_FP_SP_SQRT): Likewise.
4690 (TARGET_FP_DP_SQRT): Likewise.
4691 (TARGET_FP_DP_AX): Likewise.
4692 * config/arc/arc.md (ARCV2_ACC): New constant.
4693 (type): New fpu type attribute.
4694 (SDF): Conditional iterator.
4695 (cstore<mode>, cbranch<mode>): Change expand condition.
4696 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
4697 handles FPU/FPX cases as well.
4698 * config/arc/arc.opt (mfpu): New option.
4699 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
4701 (adddf3, muldf3, subdf3): Removed.
4702 * config/arc/predicates.md (proper_comparison_operator): Recognize
4704 * config/arc/fpu.md: New file.
4705 * doc/invoke.texi (ARC Options): Document mfpu option.
4707 2016-02-16 Richard Biener <rguenther@suse.de>
4709 PR rtl-optimization/69291
4710 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
4711 noce_operand_ok check.
4713 2016-02-16 Tom de Vries <tom@codesourcery.com>
4716 * omp-low.c (simd_clone_create): Remove call to
4717 symtab->call_cgraph_insertion_hooks.
4719 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4721 PR tree-optimization/69802
4722 * tree-ssa-reassoc.c (update_range_test): If op is
4723 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
4724 op == 1 test of precision 1 integral op, otherwise handle
4725 that case as op itself. Fix up formatting.
4726 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
4729 2016-02-16 Richard Biener <rguenther@suse.de>
4731 PR tree-optimization/69586
4732 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
4733 types for conversion sources.
4735 2016-02-16 Richard Biener <rguenther@suse.de>
4738 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
4739 mask OEP_ADDRESS_OF.
4741 2016-02-16 Alan Modra <amodra@gmail.com>
4744 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
4745 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
4746 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
4748 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
4749 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
4750 (p8_fmrgow_<mode>): Likewise.
4751 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
4753 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
4754 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
4755 to use movdi_internal64. Remove op0_di.
4756 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
4758 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
4760 Add support for the FCCMP insn types
4762 * config/aarch64/aarch64.md (fccmp): Change insn type.
4764 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
4765 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
4766 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
4767 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
4768 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
4769 * config/arm/types.md (fccmps): Add new insn type.
4772 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4774 * alias.c (get_alias_set): Fix a typo in comment.
4776 2016-02-15 Richard Biener <rguenther@suse.de>
4778 PR tree-optimization/69595
4779 * match.pd: Complete range test simplification to true.
4781 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
4783 PR rtl-optimization/69648
4784 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
4785 pic_offset_table_rtx.
4787 PR rtl-optimization/69752
4788 * ira.c (update_equiv_regs): When looking for more than a single SET,
4789 also take other side effects into account.
4791 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4793 * config/s390/s390.c (s390_function_profiler): Add a new sequence
4794 for z900+ CPUs in 31-bit mode.
4796 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4798 * common/config/s390/s390-common.c (s390_supports_split_stack):
4800 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
4801 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
4802 * config/s390/s390.c (struct machine_function): New field
4803 split_stack_varargs_pointer.
4804 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
4805 in s390_emit_prologue.
4806 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
4808 (morestack_ref): New global.
4809 (SPLIT_STACK_AVAILABLE): New macro.
4810 (s390_expand_split_stack_prologue): New function.
4811 (s390_live_on_entry): New function.
4812 (s390_va_start): Use split-stack vararg pointer if appropriate.
4813 (s390_asm_file_end): Emit the split-stack note sections.
4814 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
4815 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
4816 (UNSPECV_SPLIT_STACK_CALL): New unspec.
4817 (UNSPECV_SPLIT_STACK_DATA): New unspec.
4818 (split_stack_prologue): New expand.
4819 (split_stack_space_check): New expand.
4820 (split_stack_data): New insn.
4821 (split_stack_call): New expand.
4822 (split_stack_call_*): New insn.
4823 (split_stack_cond_call): New expand.
4824 (split_stack_cond_call_*): New insn.
4826 2016-02-15 Richard Biener <rguenther@suse.de>
4828 PR tree-optimization/69783
4829 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4830 Add trivially correct cases.
4832 2016-02-15 Tom de Vries <tom@codesourcery.com>
4835 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
4837 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
4839 2016-02-15 Richard Biener <rguenther@suse.de>
4841 PR tree-optimization/69776
4842 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4843 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
4844 indicate whether we can use TBAA to disambiguate against stores.
4845 Use alias-set zero if not.
4846 (visit_reference_op_store): Do not use TBAA when looking up
4848 * tree-ssa-pre.c (compute_avail): Use TBAA here.
4849 (eliminate_dom_walker::before_dom_children): But not when looking
4850 up redundant stores.
4852 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
4854 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
4856 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4858 * config/i386/znver1.md
4859 (znver1_pop, znver1_pop_mem,
4860 znver1_load_imov_double_store,
4861 znver1_load_imov_direct_store,
4862 znver1_load_imov_direct_load,
4863 znver1_load_imov_double_load): Add new.
4864 (znver1_insn, znver1_insn_load): Add icmov type.
4866 znver1_sseavx_fma_load,
4868 znver1_avx256_fma_load): Fix pipe usage.
4870 2016-02-14 Alan Modra <amodra@gmail.com>
4873 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
4874 with an invalid hard reg, reload just the reg not the entire
4875 pre/post-inc/dec address expression.
4877 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4880 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
4881 fixed R1_REG scratch reg.
4882 (sibcall_value_pcrel_fdpic): Likewise.
4884 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4888 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
4890 2016-02-12 Walter Lee <walt@tilera.com>
4892 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
4893 * config/tilegx/t-tilegx: Likewise.
4895 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4898 * diagnostic-show-locus.c (struct line_span): New struct.
4899 (layout::get_first_line): Delete.
4900 (layout::get_last_line): Delete.
4901 (layout::get_num_line_spans): New member function.
4902 (layout::get_line_span): Likewise.
4903 (layout::print_heading_for_line_span_index_p): Likewise.
4904 (layout::get_expanded_location): Likewise.
4905 (layout::calculate_line_spans): Likewise.
4906 (layout::m_first_line): Delete.
4907 (layout::m_last_line): Delete.
4908 (layout::m_line_spans): New field.
4909 (layout::layout): Update comment. Replace m_first_line and
4910 m_last_line with m_line_spans, replacing their initialization
4911 with a call to calculate_line_spans.
4912 (diagnostic_show_locus): When printing source lines and
4913 annotations, rather than looping over a single span
4914 of lines, instead loop over each line_span within
4915 the layout, with an inner loop over the lines within them.
4916 Call the context's start_span callback when changing line spans.
4917 * diagnostic.c (diagnostic_initialize): Initialize start_span.
4918 (diagnostic_build_prefix): Break out the building of the location
4919 part of the string into...
4920 (diagnostic_get_location_text): ...this new function, rewriting
4921 it from nested ternary expressions to a sequence of "if"
4923 (default_diagnostic_start_span_fn): New function.
4924 * diagnostic.h (diagnostic_start_span_fn): New typedef.
4925 (diagnostic_context::start_span): New field.
4926 (default_diagnostic_start_span_fn): New prototype.
4928 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4931 * gcc.c (driver::finalize): Fix cleanup of "specs".
4933 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4937 * gcc.c (driver::driver): Initialize m_option_suggestions.
4938 (driver::~driver): Clean up m_option_suggestions.
4939 (suggest_option): Convert to...
4940 (driver::suggest_option): ...this, and split out into
4941 driver::build_option_suggestions and find_closest_string.
4942 (driver::build_option_suggestions): New function, from
4943 first half of suggest_option. Special-case
4944 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
4945 the sanitizer_opts array. For options of enum types, add the
4946 various enum values to the candidate strings.
4947 (driver::handle_unrecognized_options): Remove "const".
4948 * gcc.h (driver::handle_unrecognized_options): Likewise.
4949 (driver::build_option_suggestions): New decl.
4950 (driver::suggest_option): New decl.
4951 (driver::m_option_suggestions): New field.
4952 * opts-common.c (add_misspelling_candidates): New function.
4953 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
4954 and make non-static.
4955 * opts.h (sanitizer_opts): New array decl.
4956 (add_misspelling_candidates): New function decl.
4957 * spellcheck.c (find_closest_string): New function.
4958 * spellcheck.h (find_closest_string): New function decl.
4960 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4962 PR rtl-optimization/69764
4963 PR rtl-optimization/69771
4964 * optabs.c (expand_binop_directly): For shift_optab_p, force
4965 convert_modes with VOIDmode if xop1 has VOIDmode.
4967 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4970 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
4971 to correctly determine instrumentation thunks.
4973 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4976 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
4977 type by reference, force lhs on the call.
4980 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
4981 Compute retval and retbnd early in all cases if split_part_return_p
4982 and return_bb is not EXIT. Remove all clobber stmts and reset
4983 all debug stmts that refer to SSA_NAMEs defined in split part,
4984 except if it is retval, in that case replace the old retval with the
4985 lhs of the call to the split part.
4987 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4990 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4993 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4994 whose result is used in PHI.
4995 (maybe_optimize_range_tests): Likewise.
4996 (final_range_test_p): Likweise.
4998 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5001 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5002 whose result is used in PHI.
5003 (maybe_optimize_range_tests): Likewise.
5004 (final_range_test_p): Likweise.
5006 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5008 * cgraph.c: Spelling fixes - behaviour -> behavior and
5009 neighbour -> neighbor.
5010 * target.def: Likewise.
5011 * sel-sched.c: Likewise.
5012 * config/mips/mips.c: Likewise.
5013 * config/arc/arc.md: Likewise.
5014 * config/arm/cortex-a57.md: Likewise.
5015 * config/arm/arm.c: Likewise.
5016 * config/arm/neon.md: Likewise.
5017 * config/arm/arm-c.c: Likewise.
5018 * config/vms/vms-c.c: Likewise.
5019 * config/s390/s390.c: Likewise.
5020 * config/i386/znver1.md: Likewise.
5021 * config/i386/i386.c: Likewise.
5022 * config/ia64/hpux-unix2003.h: Likewise.
5023 * config/msp430/msp430.md: Likewise.
5024 * config/rx/rx.c: Likewise.
5025 * config/rx/rx.md: Likewise.
5026 * config/aarch64/aarch64-simd.md: Likewise.
5027 * config/aarch64/aarch64.c: Likewise.
5028 * config/nvptx/nvptx.c: Likewise.
5029 * config/bfin/bfin.c: Likewise.
5030 * config/cris/cris.opt: Likewise.
5031 * config/rs6000/rs6000.c: Likewise.
5032 * target.h: Likewise.
5033 * spellcheck.c: Likewise.
5034 * ira-build.c: Likewise.
5035 * tree-inline.c: Likewise.
5036 * builtins.c: Likewise.
5037 * lra-constraints.c: Likewise.
5038 * explow.c: Likewise.
5039 * hwint.h: Likewise.
5040 * targhooks.c: Likewise.
5041 * tree-vect-data-refs.c: Likewise.
5043 * doc/tm.texi: Likewise.
5044 * doc/extend.texi: Likewise.
5045 * doc/install.texi: Likewise.
5046 * doc/md.texi: Likewise.
5047 * tree-ssa-tail-merge.c: Likewise.
5048 * sched-int.h: Likewise.
5049 * match.pd: Likewise.
5050 * sched-ebb.c: Likewise.
5051 * target.def (omit_struct_return_reg): Likewise.
5052 * gimple-ssa-isolate-paths.c: Likewise.
5053 (find_implicit_erroneous_behaviour): Renamed to...
5054 (find_implicit_erroneous_behavior): ... this.
5055 (find_explicit_erroneous_behaviour): Renamed to...
5056 (find_explicit_erroneous_behavior): ... this.
5057 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5059 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
5061 PR rtl-optimization/64682
5062 PR rtl-optimization/69567
5063 PR rtl-optimization/69737
5064 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5065 in I2 as well, just lose it.
5067 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5069 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5071 (aarch64_last_printed_tune_string): Likewise.
5072 (aarch64_declare_function_name): Only output .arch assembler
5073 directive if it will be different from the previously output
5074 directive. Same for .tune comment but only if -dA is set.
5075 (aarch64_start_file): New function.
5076 (TARGET_ASM_FILE_START): Define.
5078 2016-02-11 David Malcolm <dmalcolm@redhat.com>
5081 * Makefile.in (PLUGIN_HEADERS): Add params.list.
5083 2016-02-11 Jakub Jelinek <jakub@redhat.com>
5086 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5087 -Wmaybe-uninitialized warning.
5089 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
5092 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5094 2016-02-11 Richard Biener <rguenther@suse.de>
5096 PR rtl-optimization/69291
5097 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5098 subexpressions affected by changing the result.
5100 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5103 * lra-constraints.c (curr_insn_transform): Find in/out operands
5104 for secondary memory moves. Update dups.
5106 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5108 PR tree-optimization/69652
5109 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5110 to nested loop, did source re-formatting, skip debug statements,
5111 add check on statement with volatile operand, remove dead scalar
5114 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5115 Patrick Palka <ppalka@gcc.gnu.org>
5119 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5120 calls if the return type is TREE_ADDRESSABLE.
5121 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5122 * ipa-split.c (split_function): Fix doubled "we" in comment.
5123 Use void return type for the split part even if
5124 !split_point->split_part_set_retval.
5126 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5128 PR tree-optimization/68021
5129 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5130 when computing the value of biv cand by itself.
5132 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5134 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5135 (cortexa57_tunings): Likewise.
5136 (cortexa72_tunings): Likewise.
5137 (arch_macro_fusion_pair_p): Add support for AES fusion.
5138 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5139 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5140 Allow virtual registers before reload so early scheduling works.
5141 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5142 correct latency and pipeline.
5143 (cortex_a57_crypto_complex): Likewise.
5144 (cortex_a57_crypto_xor): Likewise.
5145 (define_bypass): Add AES bypass.
5147 2016-02-10 Richard Biener <rguenther@suse.de>
5149 PR tree-optimization/69726
5150 * passes.def: Add DCE pass before late uninit.
5151 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5152 really fixup if-conversions job.
5154 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5156 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5157 (arm_cortex_a57_tune): Likewise.
5158 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5159 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5161 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5163 * timevar.def (TV_PHASE_DBGINFO): Delete.
5164 (TV_PHASE_CHECK_DBGINFO): Likewise.
5165 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5167 2016-02-10 Richard Biener <rguenther@suse.de>
5169 PR tree-optimization/69719
5170 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5171 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5173 2016-02-09 Andrew Pinski <apinski@cavium.com>
5176 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5177 get_vcond_mask_icode returns false.
5179 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5182 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5183 an ADDIS that adds a pointer to a large constant that sets the
5184 upper16 bits with a load operation.
5186 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5189 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5191 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5193 (vzipq_s16): Likewise.
5194 (vzipq_s32): Likewise.
5195 (vzipq_f32): Likewise.
5196 (vzipq_u8): Likewise.
5197 (vzipq_u16): Likewise.
5198 (vzipq_u32): Likewise.
5199 (vzipq_p8): Likewise.
5200 (vzipq_p16): Likewise.
5202 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5205 * config/arm/arm.c (neon_endian_lane_map): New function.
5206 (neon_vector_pair_endian_lane_map): New function.
5207 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5208 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5210 (vuzpq_s16): Likewise.
5211 (vuzpq_s32): Likewise.
5212 (vuzpq_f32): Likewise.
5213 (vuzpq_u8): Likewise.
5214 (vuzpq_u16): Likewise.
5215 (vuzpq_u32): Likewise.
5216 (vuzpq_p8): Likewise.
5217 (vuzpq_p16): Likewise.
5219 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5222 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5225 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5227 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5228 truncate const_int operand 1 to QImode.
5230 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5232 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5233 corresponding to an abnormal edge.
5235 2016-02-09 Tom de Vries <tom@codesourcery.com>
5237 PR tree-optimization/69599
5238 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5240 (find_func_aliases_for_builtin_call, find_func_clobbers)
5241 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5244 2016-02-09 Richard Biener <rguenther@suse.de>
5246 PR tree-optimization/69715
5247 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5248 LHS on calls as non-rewritable.
5250 2016-02-09 Tom de Vries <tom@codesourcery.com>
5253 * lto-wrapper.c (append_diag_options): New function.
5254 (compile_offload_image): Call append_diag_options.
5256 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5259 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5260 Minor copy-edit to fix verb tenses.
5262 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5264 PR tree-optimization/69209
5265 * ipa-split.c (split_function): If split part is not
5266 returning retval, retval has gimple type but is not
5267 gimple value, force it into a SSA_NAME first.
5269 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5271 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5274 2016-02-08 Jason Merrill <jason@redhat.com>
5277 * convert.c (convert_to_integer_1): Check dofold on truncation
5279 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5280 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5281 Rename from *_nofold.
5282 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5283 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5285 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
5288 * tree.c (build_common_tree_nodes): Remove short_double argument.
5289 All callers changed.
5290 * tree.h (build_common_tree_nodes): Adjust declaration.
5291 * doc/invoke.texi (-fshort-double): Remove documentation.
5292 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5293 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5294 * lto-wrapper.c (merge_and_complain, append_compiler_options)
5295 (append_linker_options): Don't handle OPT_fshort_double.
5297 PR rtl-optimization/68730
5298 * lra-remat.c (insn_to_cand_activation): New static variable.
5299 (lra_remat): Allocate and free it.
5300 (create_cand): New arg activation. Initialize a field in
5301 insn_to_cand_activation if it is nonnull.
5302 (create_cands): Pass the activation insn to create_cand when making
5303 a candidate involving an output reload. Reorganize code a little.
5304 (do_remat): Keep track of active status of candidates in a separate
5307 2016-02-08 Richard Biener <rguenther@suse.de>
5309 PR tree-optimization/69719
5310 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5311 Properly use absolute of the difference of the two offsets to
5312 compare or adjust the segment length.
5314 2016-02-08 Richard Biener <rguenther@suse.de>
5315 Jeff Law <law@redhat.com>
5318 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5319 types for anonymous SSA names.
5321 2016-02-08 Richard Biener <rguenther@suse.de>
5323 PR rtl-optimization/69274
5324 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5326 2016-02-08 Jeff Law <law@redhat.com>
5328 PR tree-optimization/65917
5329 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5330 equivalences from if (x == y) style conditionals.
5331 (loop_depth_of_name): Remove.
5332 (record_equality): Remove loop depth check.
5333 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5334 (const_and_copies::record_const_or_copy_raw): New member function.
5335 * tree-ssa-scopedtables.c
5336 (const_and_copies::record_const_or_copy_raw): New, factored out of
5337 (const_and_copies::record_const_or_copy): Call new member function.
5339 2016-02-05 Jeff Law <law@redhat.com>
5341 PR tree-optimization/68541
5342 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5343 (count_stmts_in_block): New function.
5344 (poor_ifcvt_candidate_code): Likewise.
5345 (is_feasible_trace): Add some heuristics to determine when path
5346 splitting is profitable.
5347 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5348 is a diamond with a single exit.
5350 2016-02-05 Martin Sebor <msebor@redhat.com>
5353 * doc/invoke.texi: Update -Wplacement-new to take an optional
5356 2016-02-06 Richard Henderson <rth@redhat.com>
5359 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5360 out of non-standard address spaces.
5362 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5364 PR rtl-optimization/69691
5365 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5367 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5369 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5370 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5371 (*ieee128_mfvsrd_64bit): Likewise.
5372 (*ieee128_mfvsrd_32bit): Likewise.
5374 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5378 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5380 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5381 instrumented_version.
5383 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5385 * doc/invoke.texi (Optimize Options): In table of --param options
5386 rename second occurrence of tracer-min-branch-ratio to
5387 tracer-min-branch-probability, rename
5388 tracer-min-branch-ratio-feedback to
5389 tracer-min-branch-probability-feedback and clarify description,
5390 rename sched-spec-state-edge-prob-cutoff to
5391 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5392 to selsched-insns-to-rename, rename lto-minpartition to
5393 lto-min-partition, delete reorder-blocks-duplicate and
5394 reorder-blocks-duplicate-feedback.
5396 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5398 * config/s390/s390.c (s390_register_info_set_ranges): Remove
5401 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5403 * doc/extend.texi: S/390: Correct some typos.
5405 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5407 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5409 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5412 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5413 (s390_register_info_gprtofpr): Use new macros above.
5414 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5416 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5417 its name. Adjust restore and save gpr ranges.
5418 (s390_register_info_set_ranges): New function.
5419 (s390_register_info): Use new macros above. Call
5420 s390_register_info_set_ranges.
5421 (s390_optimize_register_info): Likewise.
5422 (s390_hard_regno_rename_ok): Use new macros.
5423 (s390_hard_regno_scratch_ok): Likewise.
5424 (s390_emit_epilogue): Likewise.
5425 (s390_can_use_return_insn): Likewise.
5426 (s390_optimize_prologue): Likewise.
5427 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5429 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5432 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5434 (ix86_option_override_internal): Disable TARGET_STV even for
5435 -m{incoming,preferred}-stack-boundary=3.
5437 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5439 * config.gcc: Mark deprecated rtems targets as obsolete.
5441 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
5443 PR rtl-optimization/64682
5444 PR rtl-optimization/69567
5445 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5446 before I2 only if the register is both used and set in I2.
5448 2016-02-04 DJ Delorie <dj@redhat.com>
5450 * config/msp430/msp430.c (msp430_start_function): Add function type.
5452 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5455 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5457 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
5459 PR rtl-optimization/69577
5461 2015-10-29 Richard Henderson <rth@redhat.com>
5465 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5466 sse check to the exact conditions of PR 67609.
5468 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5471 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5472 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5473 not allowed into the traditional Altivec registers.
5474 (movtd_64bit_nodm): Likewise.
5475 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5477 2016-02-04 David Malcolm <dmalcolm@redhat.com>
5479 * config/aarch64/cortex-a57-fma-steering.c
5480 (aarch64_register_fma_steering): Remove "static" from arguments
5483 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
5486 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5489 2016-02-04 Mike Frysinger <vapier@gentoo.org>
5491 * doc/invoke.texi: Delete -mno-fma4.
5493 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
5495 PR rtl-optimization/69577
5496 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5497 (find_subregs_of_mode): Update accordingly. Iterate over partial
5500 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
5502 * config/arm/arm-protos.h (neon_reinterpret): Remove.
5503 * config/arm/arm.c (neon_reinterpret): Remove.
5504 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5505 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5506 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5507 vreinterpretti): Remove.
5508 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5509 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5510 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5511 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5512 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5513 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5514 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5515 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5516 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5517 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5518 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5519 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5520 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5521 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5522 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5523 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5524 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5525 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5526 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5527 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5528 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5529 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5530 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5531 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5532 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5533 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5534 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5535 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5536 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5537 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5538 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5539 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5540 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5541 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5542 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5543 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5544 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5545 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5546 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5547 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5548 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5549 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5550 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5551 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5552 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5553 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5554 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5555 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5556 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5557 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5558 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5559 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5560 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5561 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5562 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5563 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5564 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5565 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5566 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5567 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5568 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5569 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5570 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5571 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5572 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5573 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5574 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5575 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5576 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5577 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5578 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5579 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5580 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5581 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5582 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5583 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5584 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5585 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5586 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5587 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5588 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5589 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5590 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5591 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5592 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5593 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5594 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5595 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5596 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5597 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5598 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5599 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5600 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5601 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5602 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5603 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5604 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5605 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5606 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5607 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5608 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5609 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5610 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5612 2016-02-04 Martin Liska <mliska@suse.cz>
5615 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5616 that are gimple_store_p.
5617 (maybe_instrument_call): Likewise.
5619 2016-02-04 Bin Cheng <bin.cheng@arm.com>
5621 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
5622 register scaling out of memory reference and comment why.
5624 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5628 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
5629 folding the source of a SET.
5631 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5635 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
5636 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
5638 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
5642 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
5645 2016-02-04 Christian Bruel <christian.bruel@st.com>
5647 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
5648 * config/arm/arm.c (arm_set_current_function): Likewise.
5650 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5651 Ilya Enkovich <enkovich.gnu@gmail.com>
5652 H.J. Lu <hongjiu.lu@intel.com>
5655 * config/i386/i386.c (convert_scalars_to_vector): Remove
5656 stack alignment fixes.
5657 (ix86_option_override_internal): Disable TARGET_STV if stack
5658 might not be aligned enough.
5659 (ix86_minimum_alignment): Assert that TARGET_STV is false.
5661 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
5663 * gcc/config/i386/x86-tune.def: Disable default prefetching
5666 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5667 Vladimir Makarov <vmakarov@redhat.com>
5670 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
5671 in validating fused toc addresses.
5673 2016-02-03 Jakub Jelinek <jakub@redhat.com>
5676 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
5677 range->m_caret fields if range->m_show_caret_p is false.
5680 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5681 Force oldval into register if it does not satisfy reg_or_short_operand
5682 predicate. Fix up formatting.
5684 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
5685 Alexandre Oliva <aoliva@redhat.com>
5688 * lra-constraints.c (simplify_operand_subreg): Check additionally
5689 address validity after potential reloading.
5690 (process_address_1): Check insns validity. In case of failure do
5693 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
5696 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
5699 2016-02-02 Jakub Jelinek <jakub@redhat.com>
5701 * wide-int.cc (canonize_uhwi): New function.
5702 (wi::divmod_internal): Use it.
5704 2016-02-02 James Norris <jnorris@codesourcery.com
5706 * gimplify.c (omp_notice_variable): Add usage check.
5708 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5710 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
5711 like LE, GE, LT, GT when emitting relational operator.
5713 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5715 * ira-costs.c (find_costs_and_classes): Add extra argument.
5716 * target.def (ira_change_pseudo_allocno_class): Add parameter.
5717 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
5718 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
5719 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
5720 Add best_class parameter, and return it if not ALL_REGS.
5721 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
5723 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
5726 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5728 * config/aarch64/aarch64.c
5729 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
5730 (aarch64_ira_change_pseudo_allocno_class): New function.
5732 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
5735 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
5737 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5739 * config/avr/avr.c (avr_option_override): Set
5740 PARAM_ALLOW_STORE_DATA_RACES to 1.
5742 2016-02-02 Richard Biener <rguenther@suse.de>
5744 PR tree-optimization/69595
5745 * match.pd: Add range test simplifications to true/false.
5747 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5749 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
5750 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5753 2016-02-02 Richard Biener <rguenther@suse.de>
5755 PR tree-optimization/69606
5756 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
5757 info on the result before moving a stmt.
5759 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
5762 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
5763 branch with vector comparison.
5764 * config/i386/sse.md (VI48_AVX): New mode iterator.
5765 (define_expand "cbranch<mode>4): Add support for conditional branch
5766 with vector comparison.
5767 * tree-vect-loop.c (optimize_mask_stores): New function.
5768 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
5769 has_mask_store field of vect_info.
5770 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
5771 vectorized loops having masked stores after vec_info destroy.
5772 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
5773 correspondent macros.
5774 (optimize_mask_stores): Add prototype.
5776 2016-02-02 Alan Modra <amodra@gmail.com>
5779 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
5782 2016-02-02 Alan Modra <amodra@gmail.com>
5785 * config/rs6000/rs6000.c (need_toc_init): New var, set it
5786 whenever toc_label_name used.
5787 (rs6000_file_start): Don't set up toc section here,
5788 (rs6000_output_function_epilogue): do so here instead,
5789 (rs6000_xcoff_file_start): and here.
5790 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
5791 (load_toc_aix_di): Likewise.
5793 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5795 PR rtl-optimization/69592
5796 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
5797 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
5798 (num_sign_bit_copies_binary_arith_p): New inline function.
5799 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
5801 2016-02-01 Jeff Law <law@redhat.com>
5803 PR tree-optimization/69580
5804 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
5805 * tree-ssa-threadbackward.c
5806 (fsm_find_control_statement_thread_paths): Do not try to walk
5807 through large PHI nodes.
5809 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5811 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
5812 when count is incremented above limit, don't analyze further
5815 * omp-low.c (oacc_parse_default_dims): Avoid
5816 -Wsign-compare warning, make sure value fits into int
5817 rather than just unsigned int.
5819 2016-02-01 Bin Cheng <bin.cheng@arm.com>
5821 PR tree-optimization/67921
5822 * fold-const.c (split_tree): New parameters. Convert pointer
5823 type variable part to proper type before negating.
5824 (fold_binary_loc): Pass new arguments to split_tree.
5826 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5828 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
5829 (nvptx_goacc_validate_dims): Extend to handle global defaults.
5830 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
5831 * doc/tm.texti: Rebuilt.
5832 * doc/invoke.texi (fopenacc-dim): Document.
5833 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
5834 (append_compiler_options): Likewise.
5835 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
5836 (oacc_parse_default_dims): New.
5837 (oacc_validate_dims): Add USED arg. Select non-unity default when
5839 (oacc_loop_fixed_partitions): Return mask of used partitions.
5840 (oacc_loop_auto_partitions): Emit dump info.
5841 (oacc_loop_partition): Return mask of used partitions.
5842 (execute_oacc_device_lower): Parse default dimension arg. Adjust
5843 loop partitioning and validation calls.
5845 2016-02-01 Richard Biener <rguenther@suse.de>
5848 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
5850 2016-02-01 Richard Biener <rguenther@suse.de>
5852 PR tree-optimization/69574
5853 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
5854 of asserting return chrec_dont_know.
5856 2016-02-01 Martin Liska <mliska@suse.cz>
5858 * mem-stats-traits.h: Add copyright header.
5859 * mem-stats.h: Likewise.
5861 2016-02-01 Richard Biener <rguenther@suse.de>
5863 PR tree-optimization/69579
5864 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
5865 Do not propagate through abnormal PHI results.
5867 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
5869 * postreload.c (reload_cse_simplify): Remove dead code.
5871 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5873 PR rtl-optimization/69570
5874 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
5875 if there is more than one set, not if there is a single set.
5877 2016-02-01 Richard Henderson <rth@redhat.com>
5880 * combine.c (make_compound_operation): When looking through a
5881 subreg, make sure to re-extend to the width of the outer mode.
5883 2016-01-30 Jakub Jelinek <jakub@redhat.com>
5885 PR tree-optimization/69546
5886 * wide-int.cc (wi::divmod_internal): For unsigned division
5887 where both operands fit into uhwi, if o1 is 1 and o0 has
5888 msb set, if divident_prec is larger than bits per hwi,
5889 clear another quotient word and return 2 instead of 1.
5890 Similarly for remainder with msb in HWI set, if dividend_prec
5891 is larger than bits per hwi.
5893 2016-01-29 Martin Jambor <mjambor@suse.cz>
5895 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
5896 Use short lowercase names.
5897 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
5898 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
5899 acq_rel one. Protect warning agains segfaults if
5900 get_memory_order_name returns NULL.
5901 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
5902 with release semantics. Do not warn if get_memory_order already did.
5903 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
5904 semantics. Fix check for relaxed or acquire semantics. Do not warn
5905 if get_memory_order already did.
5907 2016-01-29 Sebastian Pop <s.pop@samsung.com>
5909 * doc/install.texi: Document that isl-0.16 is supported.
5911 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
5914 * config/i386/constraints.md (Bm): Describe as special memory
5916 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
5917 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5918 * genpreds.c (struct constraint_data): Add is_special_memory.
5919 (have_special_memory_constraints, special_memory_start): New
5921 (special_memory_end): Ditto.
5922 (add_constraint): Add new arg is_special_memory. Add code to
5923 process its true value. Update have_special_memory_constraints.
5924 (process_define_constraint): Pass the new arg.
5925 (process_define_register_constraint): Ditto.
5926 (choose_enum_order): Process special memory.
5927 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
5928 function insn_extra_special_memory_constraint.
5929 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5930 * gensupport.c (process_rtx): Process
5931 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5932 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
5933 * ira-lives.c (single_reg_class): Use
5934 insn_extra_special_memory_constraint.
5935 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
5936 * lra-constraints.c (process_alt_operands): Ditto.
5937 (curr_insn_transform): Use insn_extra_special_memory_constraint.
5938 * recog.c (asm_operand_ok, preprocess_constraints): Process
5940 * reload.c (find_reloads): Ditto.
5941 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
5942 * stmt.c (parse_input_constraint): Use
5943 insn_extra_special_memory_constraint.
5945 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5948 * lra-splill.c (lra_final_code_change): Revert r229087 by
5949 removing all sub-registers.
5951 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
5954 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
5956 2016-01-29 Jakub Jelinek <jakub@redhat.com>
5959 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
5960 SSE1, copy target into the temporary reg first before recursing
5963 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5965 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
5968 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5970 * ginclude/stdarg.h: Test __cplusplus instead of
5971 __GXX_EXPERIMENTAL_CXX0X__.
5973 2016-01-29 Richard Biener <rguenther@suse.de>
5975 PR tree-optimization/69547
5976 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
5977 Do not mark clobbers necessary.
5978 (mark_all_reaching_defs_necessary_1): Likewise.
5980 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5982 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
5983 declaration name with %qs and print it in both error messages.
5984 Also fix indentation.
5986 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5989 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
5990 trailing blank line from error message.
5992 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5995 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
5998 2016-01-29 Richard Biener <rguenther@suse.de>
6001 * match.pd: Allow all integral types when simplifying a
6002 widening or sign-changing conversion.
6004 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6006 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6007 back to setting codegen_error to fail codegen.
6009 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
6012 * config/i386/constraints.md (C): Only accept constant zero operand.
6013 (BC): New constraint.
6014 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6015 instead of C constraint.
6016 * doc/md.texi (Machine Constraints): Update description
6019 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
6022 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6024 2016-01-28 Jakub Jelinek <jakub@redhat.com>
6027 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6030 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
6032 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6033 branches if using guessed profile.
6035 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
6037 * graphite-optimize-isl.c (optimize_isl): Fix dump.
6039 2016-01-28 Richard Henderson <rth@redhat.com>
6042 * config/aarch64/aarch64-modes.def (CC_Cmode): New
6043 * config/aarch64/aarch64-protos.h: Update.
6044 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6045 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6046 (aarch64_get_condition_code_1): Handle CC_Cmode.
6047 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6048 (*add<mode>3_compareC_cconly_imm): New.
6049 (*add<mode>3_compareC_cconly): New.
6050 (*add<mode>3_compareC_imm): New.
6051 (add<mode>3_compareC): New.
6052 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6053 to be first. Use aarch64_carry_operation.
6054 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6055 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6056 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6057 (subti3): Use subdi3_compare1.
6058 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6059 (sub<mode>3_compare1): New.
6060 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6061 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6062 (*subsi3_carryin_uxtw): Likewise.
6063 (*ngc<mode>, *ngcsi_uxtw): Likewise.
6064 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6065 * config/aarch64/iterators.md (DWI): New.
6066 * config/aarch64/predicates.md (aarch64_carry_operation): New.
6067 (aarch64_borrow_operation): New.
6069 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6071 * graphite-optimize-isl.c (optimize_isl): Print a different debug
6072 message when isl does not return a valid schedule.
6074 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6076 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6077 Remove comments from class declarations: they are already in the code
6080 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6082 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6084 (ternary_op_to_tree): Same.
6085 (unary_op_to_tree): Same.
6086 (nary_op_to_tree): Same.
6087 (gcc_expression_from_isl_expr_op): Same.
6088 (gcc_expression_from_isl_expression): Same.
6089 (graphite_create_new_loop): Same.
6090 (graphite_create_new_loop_guard): Same.
6091 (build_iv_mapping): Same.
6092 (graphite_create_new_guard): Same.
6093 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6094 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6096 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6098 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6099 instead of setting codegen_error to fail codegen.
6101 2016-01-28 Jason Merrill <jason@redhat.com>
6103 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6105 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6107 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6108 Remove CONST_INT_P check in CCMP cost calculation.
6110 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6112 * config/aarch64/aarch64.c (generic_vector_cost):
6113 Set vec_permute_cost.
6114 (cortexa57_vector_cost): Likewise.
6115 (exynosm1_vector_cost): Likewise.
6116 (xgene1_vector_cost): Likewise.
6117 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6118 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6119 Add vec_permute_cost entry.
6121 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6123 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6125 (add<mode>3_compare0): Likewise.
6126 (addsi3_compare0_uxtw): Likewise.
6127 (add<mode>3nr_compare0): Likewise.
6128 (compare_neg<mode>): Likewise.
6129 (<optab><mode>3): Likewise.
6131 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6133 * tree-vect-stmts.c (vectorizable_comparison): Add
6134 NULL check for vectype.
6136 2016-01-28 Richard Biener <rguenther@suse.de>
6138 PR tree-optimization/69466
6139 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6140 Account for PHIs we couldn't duplicate.
6142 2016-01-28 Martin Liska <mliska@suse.cz>
6145 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6146 instead of ENABLE_VALGRIND_CHECKING.
6148 2016-01-27 Richard Henderson <rth@redhat.com>
6151 * lra-remat.c (subreg_regs): New.
6152 (dump_candidates_and_remat_bb_data): Dump it.
6153 (operand_to_remat): Reject if operand in subreg_regs.
6154 (set_bb_regs): Collect subreg_regs.
6155 (lra_remat): Init and free subreg_regs. Compute
6156 calculate_local_reg_remat_bb_data before create_cands.
6158 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6161 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6162 change stack_alignment_needed for __tls_get_addr call.
6164 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6166 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6168 2016-01-27 Jeff Law <law@redhat.com>
6170 PR tree-optimization/68398
6171 PR tree-optimization/69196
6172 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6173 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6174 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6175 Only count PHIs in the last block in the path. The others will
6176 const/copy propagate away. Add heuristic to allow more irreducible
6177 subloops to be created when it is likely profitable to do so.
6179 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6180 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6181 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6183 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6186 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6187 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6188 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6189 * tree-streamer-in.c: Include asan.h.
6190 (streamer_get_builtin_tree): For builtins in sanitizer
6191 range call initialize_sanitizer_builtins and retry.
6193 2016-01-27 Ian Lance Taylor <iant@google.com>
6195 * common.opt (fkeep-gc-roots-live): New undocumented option.
6196 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6197 -fkeep-gc-roots-live, skip pointers.
6198 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6201 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6204 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6205 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6207 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6210 * configure.ac: NetBSD provides SSP in its C library.
6211 * configure: Updated.
6213 2016-01-27 Richard Biener <rguenther@suse.de>
6215 PR tree-optimization/69166
6216 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6217 reduction code for commutativity / associativity.
6219 2016-01-27 Martin Jambor <mjambor@suse.cz>
6221 PR tree-optimization/69355
6222 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6223 total_scalarization fails.
6225 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6227 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6230 2016-01-27 Christian Bruel <christian.bruel@st.com>
6233 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6234 Move arm_reset_previous_fndecl and set_target_option_current_node in
6235 the conditional part. Call save_restore_target_globals.
6236 * config/arm/arm.c (arm_set_current_function):
6237 Refactor to better support #pragma target and attribute mix.
6238 Call save_restore_target_globals.
6239 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6241 2016-01-27 Martin Liska <mliska@suse.cz>
6243 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6244 reference for an HSA kernel and its host function.
6246 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6248 PR tree-optimization/69399
6249 * wide-int.h (wi::lrshift): For larger precisions, only
6250 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6252 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6254 * config/arc/predicates.md (proper_comparison_operator): Reject
6255 constant-constant comparison.
6257 2016-01-26 Tom de Vries <tom@codesourcery.com>
6259 PR tree-optimization/69110
6260 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6261 DR_NUM_DIMENSIONS == 0.
6263 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6264 Sebastian Pop <s.pop@samsung.com>
6266 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6267 isl_ast_op_cond and isl_ast_op_select.
6268 (gcc_expression_from_isl_expr_op): Same.
6270 2016-01-26 Jason Merrill <jason@redhat.com>
6273 * tree.c (recompute_constructor_flags): Split out from
6275 (verify_constructor_flags): New.
6276 * tree.h: Declare them.
6278 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
6280 PR rtl-optimization/69217
6281 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6282 are no TYPE_FIELDS set for the record type.
6284 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6287 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6288 toc_label_name unconditionally.
6289 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6290 SYMBOL_REF string. Use toc_label_name instead of constructing
6292 (rs6000_elf_declare_function_name): Use toc_label_name instead of
6293 constructing LCTOC1.
6295 2016-01-26 Martin Sebor <msebor@redhat.com>
6298 * doc/extend.texi (Common Type Attributes): Move text that talks about
6299 attribute packed from attribute aligned to the section discussing
6300 the former attribute for clarity.
6302 2016-01-26 Richard Henderson <rth@redhat.com>
6305 * trans-mem.c (tm_region_init): Mark entry block as visited.
6307 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6310 * diagnostic-show-locus.c (layout::print_source_line): Replace
6311 call to pp_newline with call to layout::print_newline.
6312 (layout::print_annotation_line): Likewise.
6313 (layout::move_to_column): Likewise.
6314 (layout::print_any_fixits): After printing any fixits, print a
6315 trailing newline, if necessary.
6316 (layout::print_newline): New method, resetting any colorization
6318 (diagnostic_show_locus): Move the pp_newline to before the
6319 early bailout. Remove dummy block enclosing the layout instance.
6320 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6321 of pp_newline_and_flush with pp_flush.
6322 (diagnostic_append_note): Delete use of pp_newline.
6323 (diagnostic_append_note_at_rich_loc): Delete.
6324 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6325 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6326 when newline characters are added to the buffer.
6328 2016-01-26 Michael Matz <matz@suse.de>
6330 * configure.ac (ac_cv_std_swap_in_utility): New test.
6331 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6332 * configure: Regenerate.
6333 * config.in: Regenerate.
6335 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6337 * config/arc/arc.md (cstoresi4): Force operand into register.
6338 (arcset<code>): Fix predicate.
6339 (arcsetltu): Likewise.
6340 (arcsetgeu): Likewise.
6341 (arcsethi): Likewise.
6342 (arcsetls): Likewise.
6344 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6346 PR tree-optimization/69483
6347 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6348 if base has error_mark_node type.
6350 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6353 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6354 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6356 (vget_lane_f16): Handle big-endian.
6357 (vgetq_lane_f16): Likewise.
6358 (vset_lane_f16): Likewise.
6359 (vsetq_lane_f16): Likewise.
6360 * config/arm/iterators.md (VQXMOV): Add V8HF.
6361 (VDQ): Add V4HF and V8HF.
6362 (V_reg): Handle V4HF and V8HF.
6363 (Is_float_mode): Likewise.
6364 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6365 neon_vdup_nv8hf): New patterns.
6366 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6367 Use VD_LANE iterator.
6368 (neon_vld1_dup<mode>): Use VQ2 iterator.
6370 2016-01-26 Nathan Sidwell <nathan@acm.org>
6372 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6373 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6374 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6375 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6376 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6377 (oacc_validate_dims): Add LEVEL arg, don't return level.
6378 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6380 (execute_oacc_device_lower): Adjust, add more dump output.
6381 * tree-ssa-loop.c (gate_oacc_kernels): Use
6382 oacc_fn_attrib_kernels_p.
6383 * tree-parloops.c (create_parallel_loop): Adjust
6384 set_oacc_fn_attrib call.
6386 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6389 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6390 (append_compiler_options): Handle -fcilkplus.
6391 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6393 2016-01-26 Nick Clifton <nickc@redhat.com>
6396 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6397 been marked as DECL_ONE_ONLY but we do not the means to make it
6398 so, then do not allow it to bind locally.
6400 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6403 * opts.h (parse_sanitizer_options): New prototype.
6404 * opts.c (sanitizer_opts): New array.
6405 (parse_sanitizer_options): New function.
6406 (common_handle_option): Use parse_sanitizer_options.
6408 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
6411 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6412 alignment adjustment to ...
6413 (ix86_update_stack_boundary): Here. Don't over-align stack for
6415 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6416 if __tls_get_addr is called.
6418 2016-01-26 Christian Bruel <christian.bruel@st.com>
6420 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6422 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
6424 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6426 2016-01-26 Richard Biener <rguenther@suse.de>
6429 * match.pd: Guard X * CST CMP 0 pattern with single_use.
6431 2016-01-26 Richard Biener <rguenther@suse.de>
6433 PR tree-optimization/69452
6434 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6435 (move_computations_dom_walker::before_dom_children): Rename
6437 (move_computations_worker): This.
6438 (move_computations): Perform an RPO rather than a DOM walk.
6440 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6443 * combine.c (combine_instructions): For REG_EQUAL note with
6444 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6445 to the underlying register.
6446 * doc/rtl.texi (REG_EQUAL): Document the behavior of
6447 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6449 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
6452 * config/aarch64/aarch64-builtins.c
6453 (aarch64_init_simd_builtin_types): Do not set structural
6454 equality to __Poly{8,16,64,128}_t types.
6456 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
6458 PR tree-optimization/69400
6459 * wide-int.cc (wi_pack): Take the precision as argument and
6460 perform canonicalization here rather than in the callers.
6461 Use the main loop to handle all full-width HWIs. Add a
6462 zero HWI if in_len isn't a full result.
6463 (wi::divmod_internal): Update accordingly.
6464 (wi::mul_internal): Likewise. Simplify.
6466 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6467 Sebastian Pop <s.pop@samsung.com>
6469 * graphite-poly.c (apply_poly_transforms): Simplify.
6470 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6471 (print_isl_map): Same.
6472 (print_isl_union_map): Same.
6473 (print_isl_schedule): New.
6474 (debug_isl_schedule): New.
6475 * graphite-dependences.c (scop_get_reads): Do not call
6476 isl_union_map_add_map that is undocumented isl functionality.
6477 (scop_get_must_writes): Same.
6478 (scop_get_may_writes): Same.
6479 (scop_get_original_schedule): Remove.
6480 (scop_get_dependences): Do not call isl_union_map_compute_flow that
6481 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
6482 (compute_deps): Remove.
6483 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6484 (debug_schedule_ast): New.
6485 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6486 set_separate_option.
6487 (graphite_regenerate_ast_isl): Add dump.
6488 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6489 from scop->transformed_schedule.
6490 (graphite_regenerate_ast_isl): Add more dump.
6491 * graphite-optimize-isl.c (optimize_isl): Set
6492 scop->transformed_schedule. Check whether schedules are equal.
6493 (apply_poly_transforms): Move here.
6494 * graphite-poly.c (apply_poly_transforms): ... from here.
6495 (free_poly_bb): Static.
6496 (free_scop): Static.
6497 (pbb_number_of_iterations_at_time): Remove.
6498 (print_isl_ast): New.
6499 (debug_isl_ast): New.
6500 (debug_scop_pbb): New.
6501 * graphite-scop-detection.c (print_edge): Move.
6503 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6504 (build_scop_scattering): Remove.
6505 (create_pw_aff_from_tree): Assert instead of bailing out.
6506 (add_condition_to_pbb): Remove unused code, do not fail.
6507 (add_conditions_to_domain): Same.
6508 (add_conditions_to_constraints): Remove.
6509 (build_scop_context): New.
6510 (add_iter_domain_dimension): New.
6511 (build_iteration_domains): Initialize pbb->iterators.
6512 Call add_conditions_to_domain.
6515 (index_outermost_in_loop): New.
6516 (index_pbb_in_loop): New.
6517 (outermost_pbb_in): New.
6518 (add_in_sequence): New.
6519 (add_outer_projection): New.
6520 (outer_projection_mupa): New.
6521 (add_loop_schedule): New.
6522 (build_schedule_pbb): New.
6523 (build_schedule_loop): New.
6524 (embed_in_surrounding_loops): New.
6525 (build_schedule_loop_nest): New.
6526 (build_original_schedule): New.
6527 (build_poly_scop): Call build_original_schedule.
6528 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6529 (free_poly_dr): Remove.
6530 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
6531 (free_poly_bb): Remove.
6532 (debug_loop_vec): Remove.
6533 (print_isl_ast): Declare.
6534 (debug_isl_ast): Declare.
6535 (scop_do_interchange): Remove.
6536 (scop_do_strip_mine): Remove.
6537 (scop_do_block): Remove.
6538 (flatten_all_loops): Remove.
6539 (optimize_isl): Remove.
6540 (pbb_number_of_iterations_at_time): Remove.
6541 (debug_scop_pbb): Declare.
6542 (print_schedule_ast): Declare.
6543 (debug_schedule_ast): Declare.
6544 (struct scop): Remove schedule. Add original_schedule,
6545 transformed_schedule.
6546 (free_gimple_poly_bb): Remove.
6547 (print_generated_program): Remove.
6548 (debug_generated_program): Remove.
6549 (unify_scattering_dimensions): Remove.
6550 * sese.c (print_edge): ... here.
6551 (print_sese): ... here.
6552 (debug_edge): ... here.
6553 (debug_sese): ... here.
6554 * sese.h (print_edge): Declare.
6555 (print_sese): Declare.
6556 (dump_edge): Declare.
6557 (dump_sese): Declare.
6559 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6560 Sebastian Pop <s.pop@samsung.com>
6562 * Makefile.in: Set ISLVER in site.exp.
6564 2016-01-25 Jakub Jelinek <jakub@redhat.com>
6566 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6567 DECL_VALUE_EXPR of new_var even for the non-array case. Look
6568 through DECL_VALUE_EXPR for expansion.
6570 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6572 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6573 the frame info after reload completed.
6575 2016-01-25 Jeff Law <law@redhat.com>
6577 PR tree-optimization/69196
6578 PR tree-optimization/68398
6579 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6580 tree-ssa-threadupdate.c.
6581 (determine_bb_domination_status): Prototype
6582 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6583 (determine_bb_domination_status): No longer static.
6584 (valid_jump_thread_path): Remove code to detect characteristics
6585 of the jump thread path not associated with correctness.
6586 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6587 Correct test for thread path length. Count PHIs for real operands as
6588 statements that need to be copied. Do not count ASSERT_EXPRs.
6589 Look at all the blocks in the thread path. Compute and selectively
6590 filter thread paths based on threading through the latch, threading
6591 a multiway branch or crossing a multiway branch.
6593 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6595 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
6596 decl with __attribute__ ((unused)) annotation.
6598 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
6601 * tree-vect-stmts.c (vectorizable_condition): Check vectype
6602 of operands is compatible with a statement vectype.
6604 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
6606 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6607 improve wording for mixed storage order support.
6609 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
6611 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6612 (vcvt_u64_f64): Likewise.
6613 (vcvta_s64_f64): Likewise.
6614 (vcvta_u64_f64): Likewise.
6615 (vcvtm_s64_f64): Likewise.
6616 (vcvtm_u64_f64): Likewise.
6617 (vcvtn_s64_f64): Likewise.
6618 (vcvtn_u64_f64): Likewise.
6619 (vcvtp_s64_f64): Likewise.
6620 (vcvtp_u64_f64): Likewise.
6622 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
6624 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
6625 (arc_init): Check validity mll64 option.
6626 (arc_save_restore): Use double load/store instruction.
6627 (arc_expand_movmem): Likewise.
6628 (arc_split_move): Don't split if we have double load/store
6629 instructions. Returns a boolean.
6630 (arc_process_double_reg_moves): Change function to return boolean
6631 instead of a sequence of instructions.
6632 (arc_dwarf_register_span): New function.
6633 * config/arc/arc-protos.h (arc_split_move): Change prototype.
6634 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
6635 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
6636 (*movdf_insn): Likewise.
6637 * config/arc/arc.opt (mll64): New option.
6638 * config/arc/predicates.md (even_register_operand): New predicate.
6639 * doc/invoke.texi (ARC Options): Add mll64 documentation.
6641 2016-01-25 Richard Biener <rguenther@suse.de>
6644 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
6645 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
6647 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
6649 2016-01-25 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/69376
6652 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
6654 (VN_INFO_ANTI_RANGE_P): New inline.
6655 (VN_INFO_RANGE_TYPE): Likewise.
6656 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
6657 SSA_NAME_ANTI_RANGE_P.
6658 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
6659 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6660 Properly query VN_INFO_RANGE_TYPE.
6662 2016-01-25 Nick Clifton <nickc@redhat.com>
6665 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
6667 2016-01-23 Tom de Vries <tom@codesourcery.com>
6669 PR tree-optimization/69426
6670 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
6673 2016-01-23 Jakub Jelinek <jakub@redhat.com>
6675 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
6676 "the the" with "the" in the comments.
6677 * ipa-devirt.c (build_type_inheritance_graph,
6678 update_type_inheritance_graph): Likewise.
6679 * tree.c (build_function_type_list_1): Likewise.
6680 * cfgloopmanip.c (scale_loop_profile): Likewise.
6681 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
6682 * gimple-ssa-split-paths.c
6683 (find_block_to_duplicate_for_splitting_paths): Likewise.
6684 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
6685 * expr.c (convert_move): Likewise.
6686 * var-tracking.c (vt_stack_adjustments): Likewise.
6687 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6688 * tree-vrp.c (test_for_singularity): Likewise.
6690 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
6691 directly instead of building a temporary tree.
6694 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
6695 remove <algorithm> include.
6697 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6700 * config/i386/i386.c: Include dojump.h.
6701 (expand_small_movmem_or_setmem,
6702 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
6704 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
6705 if dynamic_check != -1.
6707 2016-01-21 Jeff Law <law@redhat.com>
6710 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
6711 record_temporary_equivalences. Rewritten to avoid unnecessary calls
6712 into dominated_by_p.
6713 (cprop_into_successor_phis): Avoid unnecessary tests.
6715 2016-01-22 Richard Henderson <rth@redhat.com>
6718 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
6719 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
6721 2016-01-22 Michael Matz <matz@suse.de>
6723 * system.h (string, algorithm): Include only conditionally.
6724 (new): Include always under C++.
6725 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
6726 * final.c (toplevel): Ditto.
6727 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
6728 * genconditions.c (write_header): Make gencondmd.c define
6730 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
6732 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
6733 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
6735 2016-01-22 Christian Bruel <christian.bruel@st.com>
6738 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
6740 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6743 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
6744 define_insn_and_split. Ensure operands[1] and operands[0] do not
6745 get assigned the same register.
6747 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6749 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
6751 2016-01-22 Christian Bruel <christian.bruel@st.com>
6753 * config/arm/arm-c.c (arm_pragma_target_parse):
6754 Remove warn_builtin_macro_redefined overwrite.
6756 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6758 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
6759 flag_non_call_exceptions compatibility.
6761 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6764 * dwarf2out.c (add_child_die_after): New function.
6765 (dwarf_qual_info_t): New type.
6766 (dwarf_qual_info): New variable.
6767 (qualified_die_p): New function.
6768 (modified_type_die): For -fdebug-types-section, ensure
6769 canonical order of qualifiers. Put qualified DIEs adjacent
6770 to the corresponding non-qualified type DIE and search there
6771 for existing qualified DIEs.
6773 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6775 * doc/extend.texi (scalar_storage_order type attribute): Document
6776 restriction on type punning and aliasing, and remove future tense.
6778 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
6781 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
6784 2016-01-21 Jeff Law <law@redhat.com>
6787 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
6788 useless call to record_temporary_equivalences.
6789 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
6790 allocate 10 slots in the bb_path vector and let it grow as needed.
6791 (fsm_find_control_statement_thread_paths): Similarly for the next_path
6794 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6796 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6798 * configure: Regenerate.
6800 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
6802 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
6803 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
6805 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
6808 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
6809 drop EXPAND_INITIALIZER.
6810 * rtl.h (contains_symbolic_reference_p): Declare.
6811 * rtlanal.c (contains_symbolic_reference_p): New function.
6812 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
6813 a subtraction into a NOT if symbolic constants are involved.
6815 2016-01-21 Anton Blanchard <anton@samba.org>
6816 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6819 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
6821 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
6824 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6826 * config/microblaze/microblaze.c
6827 (get_branch_target): New.
6828 (insert_wic_for_ilb_runout): New.
6830 (microblaze_machine_dependent_reorg): New.
6831 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
6832 * config/microblaze/microblaze.md
6833 (UNSPEC_IPREFETCH): Define.
6834 (iprefetch): New pattern
6835 * config/microblaze/microblaze.opt
6836 (mxl-prefetch): New flag.
6838 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6840 * config/microblaze/microblaze.h
6841 (FIXED_REGISTERS): Update in macro.
6842 (CALL_USED_REGISTERS): Update in macro.
6844 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
6846 PR rtl-optimization/68920
6847 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
6850 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
6852 PR rtl-optimization/68990
6853 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
6854 pseudo instead of inheritance ones.
6856 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6857 Nick Clifton <nickc@redhat.com>
6861 * config/mips/mips.c (mips_compute_frame_info): Initialise
6862 args_size and hard_frame_pointer_offset fields of the frame
6863 structure before calling mips_global_pointer.
6865 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6867 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
6869 * configure: Regenerate.
6871 2016-01-21 Richard Biener <rguenther@suse.de>
6873 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
6875 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6877 * config/s390/s390.c (s390_asm_declare_function_size): Add code
6878 to actually emit the .size directive.
6880 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
6881 Jakub Jelinek <jakub@redhat.com>
6885 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
6886 args array size by one to avoid buffer overflow.
6888 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6890 * config/s390/s390.md (pool_section_start): Use switch_to_section
6891 to select proper read-only data section instead of hardcoding
6893 (pool_section_end): Use switch_to_section to match the above.
6895 2016-01-21 Richard Biener <rguenther@suse.de>
6897 PR tree-optimization/69378
6898 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
6899 (set_ssa_val_to): Use it for dominance checks taking into
6900 account not executable edges.
6902 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6905 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
6906 for bitsize instead of GET_MODE_PRECISION (mode).
6908 2016-01-20 Martin Sebor <msebor@redhat.com>
6911 * extend.texi (__sync Builtins): Clarify the semantics of
6912 __sync_fetch_and_OP built-ins on pointers.
6913 (__atomic Builtins): Same.
6915 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6916 Sebastian Pop <s.pop@samsung.com>
6918 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
6919 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
6920 (is_valid_rename): Same.
6921 (translate_isl_ast_to_gimple::get_rename): Same.
6922 (translate_isl_ast_to_gimple::rename_all_uses): Same.
6923 (translate_isl_ast_to_gimple::rename_uses): Same.
6924 (get_new_name): Check for close_phi nodes.
6925 (copy_loop_phi_args): Use phi_node_kind.
6926 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
6927 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
6929 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6930 Sebastian Pop <s.pop@samsung.com>
6932 Revert commit r229783.
6933 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6934 Remove use of parameter_rename_map.
6936 (copy_internal_parameters): Remove.
6937 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6938 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6939 (free_sese_info): Do not free parameter_rename_map.
6940 (set_rename): Do not use parameter_rename_map.
6941 (rename_uses): Update call to set_rename.
6942 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6943 * sese.h (parameter_rename_map_t): Remove.
6944 (struct sese_info_t): Remove field parameter_rename_map.
6946 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6947 Sebastian Pop <s.pop@samsung.com>
6949 * graphite-isl-ast-to-gimple.c: Fix comment.
6950 * graphite-scop-detection.c (defined_in_loop_p): New.
6951 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
6952 names defined in loop.
6954 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6955 Sebastian Pop <s.pop@samsung.com>
6957 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6958 Discard unstructured if-then-else regions.
6960 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6961 Sebastian Pop <s.pop@samsung.com>
6963 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
6964 (cleanup_loop_iter_dom): Remove.
6965 (build_loop_iteration_domains): Remove.
6966 (build_scop_context): Remove.
6967 (build_scop_iteration_domain): Remove.
6968 (add_loop_constraints): New.
6969 (build_iteration_domains): New.
6970 (build_poly_scop): Call build_iteration_domains.
6972 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6973 Sebastian Pop <s.pop@samsung.com>
6975 * graphite-scop-detection.c
6976 (scop_detection::harmful_loop_in_region): Free dom and loops.
6977 (scop_detection::loop_body_is_valid_scop): Free bbs.
6979 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6980 Sebastian Pop <s.pop@samsung.com>
6982 * graphite-scop-detection.c (record_loop_in_sese): New.
6983 (gather_bbs::before_dom_children): Call record_loop_in_sese.
6984 (build_scops): Remove call to build_sese_loop_nests.
6985 * sese.c (sese_record_loop): Remove.
6986 (build_sese_loop_nests): Remove.
6987 (new_sese_info): Remove region->loops.
6988 (free_sese_info): Same.
6989 * sese.h (sese_contains_loop): Same.
6990 (build_sese_loop_nests): Remove.
6991 (sese_contains_loop): Remove.
6993 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6994 Sebastian Pop <s.pop@samsung.com>
6996 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
6997 loop_is_valid_in_scop.
6998 (scop_detection::harmful_stmt_in_region): Renamed
6999 harmful_loop_in_region.
7000 Call loop_is_valid_in_scop.
7002 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7003 Sebastian Pop <s.pop@samsung.com>
7005 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7008 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7009 Sebastian Pop <s.pop@samsung.com>
7011 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7012 * graphite.h (struct poly_bb): Remove field is_reduction.
7013 (PBB_IS_REDUCTION): Remove.
7015 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7016 Sebastian Pop <s.pop@samsung.com>
7018 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7019 (add_pdr_constraints): Same.
7020 (scop_get_reads): Same.
7021 (scop_get_must_writes): Same.
7022 (scop_get_may_writes): Same.
7023 (scop_get_original_schedule): Same.
7024 (extend_schedule): Same.
7025 (apply_schedule_on_deps): Same.
7026 (carries_deps): Same.
7027 (compute_deps): Same.
7028 (scop_get_dependences): Same.
7029 * graphite-isl-ast-to-gimple.c
7030 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7031 * graphite-optimize-isl.c (get_schedule_for_band): Same.
7032 (get_schedule_for_band_list): Same.
7033 (get_schedule_map): Same.
7034 (apply_schedule_map_to_scop): Same.
7035 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7036 (build_loop_iteration_domains): Same.
7037 (add_condition_to_pbb): Same.
7038 (add_param_constraints): Same.
7039 (pdr_add_memory_accesses): Same.
7040 (pdr_add_data_dimensions): Same.
7042 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7044 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7047 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7049 * common.opt (feliminate-dwarf2-dups): Replace references to
7050 "DWARF 2" with just "DWARF".
7051 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7052 * doc/extend.texi: Likewise.
7053 * doc/cpp.texi: Likewise.
7054 * doc/invoke.texi: Likewise.
7055 (Option Summary): Add -gdwarf to list of Debugging Options.
7056 (Debugging Options): Document -gdwarf.
7057 * doc/contrib.texi: Spell "DWARF" like that.
7059 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7061 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7062 warning. Fix up formatting.
7065 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7066 attempt to mark memory input operand addressable and
7067 call prepare_gimple_addressable in that case. Don't adjust
7068 input_location for diagnostics, use error_at instead.
7070 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
7072 * config/rs6000/ppc-auxv.h: New file.
7073 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7075 (cpu_supports): Likewise.
7076 * config/rs6000/rs6000.c: include "ppc-auxv.h".
7077 (cpu_is_info): New variable.
7078 (cpu_supports_info): Likewise.
7079 (tcb_verification_symbol): Likewise.
7080 (cpu_builtin_p): Likewise.
7081 (cpu_expand_builtin): New function.
7082 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7083 (rs6000_init_builtins): Likewise.
7084 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7085 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7086 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7087 * configure: Regenerate.
7088 * config.in: Likewise.
7089 * doc/extend.texi (PowerPC Built-in Functions): Document
7090 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7092 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7095 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7097 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7100 2016-01-20 Richard Henderson <rth@redhat.com>
7106 * tree.c (tm_define_builtin): New.
7107 (find_tm_vector_type): New.
7108 (build_tm_vector_builtins): New.
7109 (build_common_builtin_nodes): Call it.
7111 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7113 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7114 (arm_fp_ok): Likewise.
7116 (arm_crypto): Likewise.
7118 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7119 Richard Biener <rguenther@suse.de>
7121 PR tree-optimization/69328
7122 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7123 vectors have same number of elements.
7124 (vectorizable_condition): Fix masked version recognition.
7126 2016-01-20 Richard Biener <rguenther@suse.de>
7128 PR tree-optimization/69345
7129 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7130 (VN_INFO_PTR_INFO): Likewise.
7131 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7132 info when it is equal between non-dominating SSA names.
7133 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7134 Make sure to look at original SSA infos.
7136 2016-01-20 Jeff Law <law@redhat.com>
7139 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7141 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7142 (pc_or_label_operand): New predicate.
7143 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7144 tests for small integers that are 2^n - 1.
7146 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7148 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7150 2016-01-19 Jeff Law <law@redhat.com>
7153 * tree-ssa-threadbackwards.c
7154 (fsm_find_control_statement_thread_paths): Do not try to lookup
7155 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7157 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7159 * doc/lto.texi: Remove text that says only Gold has linker plugin
7162 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7164 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7165 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7166 the DIE accordingly.
7167 (modified_type_die): Add REVERSE parameter and pass it recursively,
7168 as well as to base_type_die. Adjust presence check accordingly.
7169 (base_type_for_mode): Adjust call to modified_type_die.
7170 (add_type_attribute): Add REVERSE parameter and pass it to
7172 (generic_parameter_die): Adjust call to add_type_attribute.
7173 (add_scalar_info): Likewise.
7174 (add_subscript_info): Likewise.
7175 (gen_array_type_die): Likewise.
7176 (gen_descr_array_type_die): Likewise.
7177 (gen_entry_point_die): Likewise.
7178 (gen_enumeration_type_die): Likewise.
7179 (gen_formal_parameter_die): Likewise.
7180 (gen_subprogram_die): Likewise.
7181 (gen_variable_die ): Likewise.
7182 (gen_const_die): Likewise.
7183 (gen_field_die): Likewise.
7184 (gen_pointer_type_die): Likewise.
7185 (gen_reference_type_die): Likewise.
7186 (gen_ptr_to_mbr_type_die): Likewise.
7187 (gen_inheritance_die): Likewise.
7188 (gen_subroutine_type_die): Likewise.
7189 (gen_typedef_die): Likewise.
7190 (force_type_die): Adjust call to modified_type_die.
7192 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7194 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7195 flow throughout the file. Fix broken link to Objective-C 2.0
7197 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7200 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7202 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7204 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7207 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7208 (maybe_record_node): Record cxa_pure_virtual as the only possible
7209 target if there are not ohter candidates.
7210 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7212 2016-01-19 Richard Biener <rguenther@suse.de>
7214 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7215 (get_memory_order): Likewise.
7217 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7219 * tree-vect-stmts.c (vectorizable_store): Check
7222 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7225 * gcc.c (driver::decode_argv): Add call to
7226 init_opts_obstack before init_options_struct.
7227 * opts.c (init_opts_obstack): Remove idempotency.
7228 (init_options_struct): Replace call to init_opts_obstack
7229 with a gcc_assert to verify that it has already been called.
7230 * toplev.c (toplev::main): Add call to init_opts_obstack before
7231 calls to init_options_struct.
7232 (toplev::finalize): Move cleanup of opts_obstack next to
7233 cleanup of save_decoded_options, clearing the latter, and
7234 save_decoded_options_count.
7236 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7239 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7240 attribute to unconditional. Remove %? from output template.
7242 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7243 Jiong Wang <jiong.wang@arm.com>
7245 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7246 generated from different expand order.
7248 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7250 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7251 Add support for CCMP costing.
7253 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7255 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7256 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7257 (fccmpe<mode>): Likewise.
7258 (fcmp): Rename to fcmp and globalize pattern.
7260 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7261 (aarch64_gen_ccmp_next): Add FP support.
7263 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7265 * target.def (gen_ccmp_first): Update documentation.
7266 (gen_ccmp_next): Likewise.
7267 * doc/tm.texi (gen_ccmp_first): Update documentation.
7268 (gen_ccmp_next): Likewise.
7269 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7270 expand_ccmp_expr_1. Improve comments.
7271 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7272 (ccmp_ior<mode>): Remove pattern.
7273 (cmp<mode>): Remove expand.
7274 (cmp): Globalize pattern.
7275 (cstorecc4): Use cc_register.
7276 (mov<mode>cc): Remove ccmp_cc_register check.
7277 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7278 Simplify after removal of CC_DNE/* modes.
7279 (aarch64_ccmp_mode_to_code): Remove.
7280 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
7281 In 'k' case use integer as condition.
7282 (aarch64_nzcv_codes): Remove inverted cases.
7283 (aarch64_code_to_ccmode): Remove.
7284 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
7285 comparison with CC register to be used in folowing CCMP/branch/CSEL.
7286 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7287 pattern. Return the comparison with CC register. Invert conditions
7289 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7290 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7292 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7294 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7295 instrumented_version.
7297 2016-01-19 Richard Biener <rguenther@suse.de>
7299 PR tree-optimization/69336
7300 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7301 handled components with get_ref_base_and_extent.
7302 (equal_mem_array_ref_p): Adjust.
7304 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7307 * shrink-wrap.c: Include valtrack.h.
7308 (move_insn_for_shrink_wrap): Add DEBUG argument. If
7309 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7310 in between insn and where it will be moved to. Call
7311 dead_debug_insert_temp.
7312 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
7313 first and dead_debug_local_finish at the end.
7314 For uses and defs bitmap, handle all regs in between REGNO and
7315 END_REGNO, not just the first one.
7317 2016-01-19 Richard Biener <rguenther@suse.de>
7319 PR tree-optimization/69352
7320 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7321 (equal_mem_array_ref_p): Constrain size and max size properly.
7322 Compare the reverse flag.
7324 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7326 * ira.c (ira): Update regstat data if we deleted insns.
7328 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7330 PR rtl-optimization/68955
7331 PR rtl-optimization/64557
7332 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7333 here. Fix up formatting.
7334 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7336 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7339 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7340 assume that the node has body.
7341 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7344 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7346 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7349 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7351 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7352 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7354 2016-01-19 Martin Jambor <mjambor@suse.cz>
7355 Martin Liska <mliska@suse.cz>
7356 Michael Matz <matz@suse.de>
7358 * Makefile.in (OBJS): Add new source files.
7359 (GTFILES): Add hsa.c.
7360 * common.opt (disable_hsa): New variable.
7361 (-Whsa): New warning.
7362 * config.in (ENABLE_HSA): New.
7363 * configure.ac: Treat hsa differently from other accelerators.
7364 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7366 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7367 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7368 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7370 * doc/invoke.texi (-Whsa): Document.
7371 (hsa-gen-debug-stores): Likewise.
7372 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7373 to invoke offload compiler for hsa acclerator.
7374 * opts.c (common_handle_option): Determine whether HSA offloading
7375 should be performed.
7376 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7377 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7378 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7379 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7380 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7381 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7382 GF_OMP_FOR_KIND_GRID_LOOP.
7383 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7384 (pp_gimple_stmt_1): Likewise.
7385 * gimple-walk.c (walk_gimple_stmt): Likewise.
7386 * gimple.c (gimple_build_omp_grid_body): New function.
7387 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7388 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7389 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7390 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7391 GF_OMP_TEAMS_GRID_PHONY.
7392 (gimple_statement_omp_single_layout): Updated comments.
7393 (gimple_build_omp_grid_body): New function.
7394 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7395 (gimple_omp_for_grid_phony): New function.
7396 (gimple_omp_for_set_grid_phony): Likewise.
7397 (gimple_omp_parallel_grid_phony): Likewise.
7398 (gimple_omp_parallel_set_grid_phony): Likewise.
7399 (gimple_omp_teams_grid_phony): Likewise.
7400 (gimple_omp_teams_set_grid_phony): Likewise.
7401 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7402 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7403 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7404 (BUILT_IN_GOMP_TARGET): Updated type.
7405 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7406 (adjust_for_condition): New function.
7407 (get_omp_for_step_from_incr): Likewise.
7408 (extract_omp_for_data): Moved parts to adjust_for_condition and
7409 get_omp_for_step_from_incr.
7410 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7411 (fixup_child_record_type): Bail out if receiver_decl is NULL.
7412 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7413 (scan_omp_parallel): Do not create child functions for phony
7415 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7416 (scan_omp_1_op): Checking assert we are not remapping to
7417 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
7418 (parallel_needs_hsa_kernel_p): New function.
7419 (expand_parallel_call): Register apprpriate parallel child
7420 functions as HSA kernels.
7421 (grid_launch_attributes_trees): New type.
7422 (grid_attr_trees): New variable.
7423 (grid_create_kernel_launch_attr_types): New function.
7424 (grid_insert_store_range_dim): Likewise.
7425 (grid_get_kernel_launch_attributes): Likewise.
7426 (get_target_argument_identifier_1): Likewise.
7427 (get_target_argument_identifier): Likewise.
7428 (get_target_argument_value): Likewise.
7429 (push_target_argument_according_to_value): Likewise.
7430 (get_target_arguments): Likewise.
7431 (expand_omp_target): Call get_target_arguments instead of looking
7432 up for teams and thread limit.
7433 (grid_expand_omp_for_loop): New function.
7434 (grid_arg_decl_map): New type.
7435 (grid_remap_kernel_arg_accesses): New function.
7436 (grid_expand_target_kernel_body): New function.
7437 (expand_omp): Call it.
7438 (lower_omp_for): Do not emit phony constructs.
7439 (lower_omp_taskreg): Do not emit phony constructs but create for them
7440 a temporary variable receiver_decl.
7441 (lower_omp_taskreg): Do not emit phony constructs.
7442 (lower_omp_teams): Likewise.
7443 (lower_omp_grid_body): New function.
7444 (lower_omp_1): Call it.
7445 (grid_reg_assignment_to_local_var_p): New function.
7446 (grid_seq_only_contains_local_assignments): Likewise.
7447 (grid_find_single_omp_among_assignments_1): Likewise.
7448 (grid_find_single_omp_among_assignments): Likewise.
7449 (grid_find_ungridifiable_statement): Likewise.
7450 (grid_target_follows_gridifiable_pattern): Likewise.
7451 (grid_remap_prebody_decls): Likewise.
7452 (grid_copy_leading_local_assignments): Likewise.
7453 (grid_process_kernel_body_copy): Likewise.
7454 (grid_attempt_target_gridification): Likewise.
7455 (grid_gridify_all_targets_stmt): Likewise.
7456 (grid_gridify_all_targets): Likewise.
7457 (execute_lower_omp): Call grid_gridify_all_targets.
7458 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7459 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7460 (tree_omp_clause): Added union field dimension.
7461 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7462 * tree.c (omp_clause_num_ops): Added number of arguments of
7463 OMP_CLAUSE__GRIDDIM_.
7464 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7465 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7466 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7467 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7468 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7469 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7470 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7471 * tree-pass.h (make_pass_gen_hsail): Declare.
7472 (make_pass_ipa_hsa): Likewise.
7473 * ipa-hsa.c: New file.
7474 * lto-section-in.c (lto_section_name): Add hsa section name.
7475 * lto-streamer.h (lto_section_type): Add hsa section.
7476 * timevar.def (TV_IPA_HSA): New.
7477 * hsa-brig-format.h: New file.
7478 * hsa-brig.c: New file.
7479 * hsa-dump.c: Likewise.
7480 * hsa-gen.c: Likewise.
7483 * toplev.c (compile_file): Call hsa_output_brig.
7484 * hsa-regalloc.c: New file.
7486 2016-01-18 Jeff Law <law@redhat.com>
7488 PR tree-optimization/69320
7489 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7490 ranged object, do nothing if the RHS constant is not [0..1].
7491 (optimize_stmt): Comparing a boolean ranged object against a
7492 constant outside [0..1] results in a compile-time constant.
7494 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7497 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
7499 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7500 (Option Summary): Update to reflect new section and moved options.
7501 (C++ Dialect Options): Move -fstats to new section.
7502 (Debugging Options): Move all dump, statistics, and other GCC
7503 developer options to new section. Rewrite section introduction
7504 and re-order remaining options to put the more basic ones first.
7505 (Optimization Options): Move -fira-verbose and -flto-report* to
7507 (Developer Options): New section incorporating moved options.
7508 * doc/cppopts.texi (-dM): Update cross-reference.
7510 2016-01-18 Richard Henderson <rth@redhat.com>
7513 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7514 operands to pseudo only if CSE is expected. Split long immediate
7515 operands only after reload, and for the stack pointer.
7516 (*add<GPI>3_pluslong): Remove.
7517 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7518 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
7519 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7520 (*add<GPI>3 peepholes): New.
7521 (*add<GPI>3 splitters): New.
7522 * config/aarch64/constraints.md (Upl): New.
7523 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7525 2016-01-18 Richard Biener <rguenther@suse.de>
7527 PR tree-optimization/69297
7528 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7530 (vect_bb_vectorization_profitable_p): Clear visited flag again.
7532 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7535 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7536 of mixind vector and scalar types.
7537 (fold_relational_const): Add handling of vector
7538 comparison with boolean result.
7539 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7540 comparison of vector operands with boolean result for EQ/NE only.
7541 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7542 (verify_gimple_cond): Likewise.
7543 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7546 2016-01-18 Joseph Myers <joseph@codesourcery.com>
7548 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7551 2016-01-18 Richard Biener <rguenther@suse.de>
7554 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7556 2016-01-18 Tom de Vries <tom@codesourcery.com>
7558 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7560 2016-01-18 Tom de Vries <tom@codesourcery.com>
7562 * omp-low.c (set_oacc_fn_attrib): Make extern.
7563 * omp-low.h (set_oacc_fn_attrib): Declare.
7564 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7565 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7566 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7567 Add and handle function parameter oacc_kernels_p.
7568 (find_reduc_addr, get_omp_data_i_param): New function.
7569 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7570 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7571 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7572 Calculate dominance info. Skip loops that are not in a kernels region
7573 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
7574 (pass_parallelize_loops::execute): Call parallelize_loops with
7575 oacc_kernels_p argument.
7576 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7577 New member function.
7578 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7579 * passes.def: Add argument to pass_parallelize_loops instantation.
7581 2016-01-18 Tom de Vries <tom@codesourcery.com>
7583 * tree-parloops.c (pass_parallelize_loops::execute): Allow
7584 pass_parallelize_loops to be run outside the loop pipeline.
7586 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7588 * tree-scalar-evolution.c (follow_copies_to_constant): New.
7589 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7591 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7594 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7595 using get_ref_base_and_extent.
7596 (equal_mem_array_ref_p): New.
7597 (hashable_expr_equal_p): Add call to previous.
7599 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7602 * tree-sra.c (disqualified_constants, constant_decl_p): New.
7603 (sra_initialize): Allocate disqualified_constants.
7604 (sra_deinitialize): Free disqualified_constants.
7605 (disqualify_candidate): Update disqualified_constants when appropriate.
7606 (create_access): Scan for constant-pool entries as we go along.
7607 (scalarizable_type_p): Add check against type_contains_placeholder_p.
7608 (maybe_add_sra_candidate): Allow constant-pool entries.
7609 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7610 (initialize_constant_pool_replacements): New.
7611 (sra_modify_assign): Avoid mangling assignments created by previous,
7612 and don't generate writes into constant pool.
7613 (sra_modify_function_body): Call initialize_constant_pool_replacements.
7615 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7617 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7619 (scalar_chain::convert_op): Likewise.
7620 * config/i386/i386.md (*andndi3_doubleword): New.
7622 2016-01-18 Richard Biener <rguenther@suse.de>
7624 PR tree-optimization/69170
7625 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
7626 building a vector from scalar results of a pattern stmt.
7628 2016-01-18 Jakub Jelinek <jakub@redhat.com>
7630 * haifa-sched.c (autopref_multipass_init): Work around
7631 -Wmaybe-uninitialized warning.
7633 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7635 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
7636 against the constant 0.
7638 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7640 PR tree-optimization/68799
7641 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
7642 look up phi candidates in the statement-candidate map.
7643 (phi_add_costs): Likewise.
7644 (record_phi_increments): Likewise.
7645 (phi_incr_cost): Likewise.
7646 (ncd_with_phi): Likewise.
7647 (all_phi_incrs_profitable): Likewise.
7649 2016-01-17 Jakub Jelinek <jakub@redhat.com>
7651 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
7652 -Wmaybe-uninitialized warning.
7654 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
7656 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7657 (Option Summary): Update to reflect new section and moved options.
7658 (C++ Dialect Options): Move -fvtable-verify and related options.
7659 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
7660 and profiling-related options.
7661 (Optimization Options): Move profile generation options and
7662 -fstack-protector and related options.
7663 (Instrumentation Options): New section incorporating moved options.
7664 (Code Generation Options): Move -finstrument-functions and
7665 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
7667 2016-01-16 Tom de Vries <tom@codesourcery.com>
7669 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
7671 2016-01-16 Tom de Vries <tom@codesourcery.com>
7673 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
7675 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
7677 * hash-table.h (hash_table::empty): Turn into an inline wrapper
7678 that checks whether the table is already empty. Rename the
7679 original implementation to...
7680 (hash_table::empty_slot): ...this new private function.
7682 2016-01-15 David Malcolm <dmalcolm@redhat.com>
7685 * diagnostic-show-locus.c (layout::print_source_line): Move x
7686 offset of line until after call to
7687 get_line_width_without_trailing_whitespace.
7689 2016-01-15 Jeff Law <law@redhat.com>
7691 PR tree-optimization/69270
7692 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
7693 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
7694 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
7695 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
7696 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7697 ssa_name_has_boolean_range and constant_boolean_node.
7699 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
7701 PR rtl-optimization/69030
7702 * lra-spills.c (remove_pseudos): Check nrefs and make the function
7704 (spill_pseudos): Delete debug insn for dead pseudo.
7705 (lra_spill): Initiate spill_hard_reg and slots memory separately.
7707 2016-01-15 Jiong Wang <jiong.wang@arm.com>
7709 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
7711 (TYPES_UNOPUS): Likewise.
7712 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
7713 builtin type, from UNOP to UNOPUS.
7714 (lbtruncuv4sf): Likewise.
7715 (lbtruncuv2df): Likewise.
7716 (lrounduv2sf): Likewise.
7717 (lrounduv4sf): Likewise.
7718 (lrounduv2df): Likewise.
7719 (lroundusf): Likewise.
7720 (lroundusf): Likewise.
7721 (lceiluv2sf): Likewise.
7722 (lceiluv4sf): Likewise.
7723 (lceiluv2df): Likewise.
7724 (lceilusf): Likewise.
7725 (lceiludf): Likewise.
7726 (lflooruv2sf): Likewise.
7727 (lflooruv4sf): Likewise.
7728 (lflooruv2df): Likewise.
7729 (lfloorusf): Likewise.
7730 (lfloorudf): Likewise.
7731 (lfrintnuv2sf): Likewise.
7732 (lfrintnuv4sf): Likewise.
7733 (lfrintnuv2df): Likewise.
7734 (lfrintnusf): Likewise.
7735 (lfrintnudf): Likewise.
7736 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
7738 (vcvtq_u32_f32): Likewise.
7739 (vcvtq_u64_f64): Likewise.
7740 (vcvta_u32_f32): Likewise.
7741 (vcvtaq_u32_f32): Likewise.
7742 (vcvtaq_u64_f64): Likewise.
7743 (vcvtm_u32_f32): Likewise.
7744 (vcvtmq_u32_f32): Likewise.
7745 (vcvtmq_u64_f64): Likewise.
7746 (vcvtn_u32_f32): Likwise.
7747 (vcvtnq_u32_f32): Likewise.
7748 (vcvtnq_u64_f64): Likewise.
7749 (vcvtp_u32_f32): Likewise.
7750 (vcvtpq_u32_f32): Likewise.
7751 (vcvtpq_u64_f64): Likewise.
7752 (vcvtmd_u64_f64): Likewise.
7753 (vcvtms_u32_f32): Likewise.
7754 (vcvtad_u64_f64): Likewise.
7755 (vcvtas_u32_f32): Likewise.
7756 (vcvtnd_u64_f64): Likewise.
7757 (vcvtns_u32_f32): Likewise.
7758 (vcvtpd_u64_f64): Likewise.
7759 (vcvtps_u32_f32): Likewise.
7761 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7763 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
7764 CSEL of zero_extended registers.
7766 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7768 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7769 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
7771 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7773 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
7774 false when argument string is not found in the attributes table
7777 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
7780 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
7781 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
7782 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
7785 2016-01-15 Richard Biener <rguenther@suse.de>
7787 PR tree-optimization/66856
7788 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
7789 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
7790 (vect_create_new_slp_node): Increment stmt reference count.
7791 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
7792 an SLP tree before swapping operands.
7793 (vect_build_slp_tree): Likewise.
7794 (destroy_bb_vec_info): Free stmt info after SLP instances.
7795 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
7796 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
7797 (STMT_VINFO_NUM_SLP_USES): New macro.
7799 2016-01-15 Richard Biener <rguenther@suse.de>
7802 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
7803 (add_linkage_name): ... here.
7804 (gen_typedef_die): Use add_linkage_name_raw instead of
7805 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
7808 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7810 * gimplify.c (oacc_default_clause): Decode reference and pointer
7811 types for both kernels and parallel regions.
7813 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
7816 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
7818 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7820 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
7821 (convert_scalars_to_vector): Likewise.
7823 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
7825 * doc/extend.texi (Type Traits): Fix grammar.
7827 2016-01-15 Martin Jambor <mjambor@suse.cz>
7829 * tree-inline.c (remap_decl): Use existing dclarations if
7830 remapping a type and prevent_decl_creation_for_types.
7831 (replace_locals_stmt): Do an initial remapping of non-VLA typed
7832 decls first. Do real remapping with
7833 prevent_decl_creation_for_types set.
7834 * tree-inline.h (copy_body_data): New field
7835 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
7838 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7840 * config/s390/s390.opt (mmvcle): More verbose help text.
7842 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7844 * config/s390/s390.opt: Add period to -mzvector option text.
7846 2016-01-15 Richard Biener <rguenther@suse.de>
7848 PR tree-optimization/68961
7849 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
7850 of invariants in stores again.
7852 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7854 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
7856 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7858 * config/i386/i386.c (ix86_expand_branch): Don't split
7859 DI mode xor instruction to SI mode.
7861 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7864 * ipa-icf.c (sem_function::merge): Virtual functions may become
7865 reachable even if they address is not taken and there are no
7868 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7870 * lto-streamer-out.c (subtract_estimated_size): New function.
7871 (get_symbol_initial_value): Use it.
7873 2016-01-15 Christian Bruel <christian.bruel@st.com>
7876 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
7877 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
7878 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
7879 use add_builtin_function_ext_scope instead of add_builtin_function.
7880 (neon_set_p, neon_crypto_set_p): Remove.
7881 (arm_init_builtins): Always call arm_init_neon_builtins and
7882 arm_init_crypto_builtins.
7883 (arm_expand_builtin): Check that builtins are allowed for the arch.
7884 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
7885 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
7886 arm_init_neon_builtins call.
7888 2016-01-15 Richard Biener <rguenther@suse.de>
7890 PR tree-optimization/69117
7891 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
7892 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
7893 of the leader conservatively.
7894 (free_scc_vn): Restore original SSA name infos.
7896 2016-01-14 Jeff Law <law@redhat.com>
7898 PR tree-optimization/69270
7899 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
7900 single bit of precision, verify it's also unsigned.
7901 (record_edge_info): Use constant_boolean_node rather than fold_convert
7902 to convert boolean_true/boolean_false to the right type.
7904 2016-01-14 Richard Henderson <rth@redhat.com>
7907 * loop-doloop.c (record_reg_sets): New.
7908 (doloop_optimize): Reject the transform if the sequence
7909 clobbers registers live at the end of the loop block.
7910 (doloop_optimize_loops): Enable df_live if needed.
7912 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7914 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
7915 * gcc/config/rs6000/rs6000.c: Likewise.
7916 * gcc/config/rs6000/rs6000.h: Likewise.
7917 * gcc/config/rs6000/rs6000.md: Likewise.
7918 * gcc/doc/extend.texi: Likewsie.
7920 2016-01-14 Jeff Law <law@redhat.com>
7922 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
7925 2016-01-14 Richard Henderson <rth@redhat.com>
7929 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
7930 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
7931 instead of builtin_decl_declared_p to test for declaration.
7933 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
7935 * doc/loop.texi (Loop Analysis and Representation): Document
7936 loop_depth function.
7938 2016-01-14 Tom de Vries <tom@codesourcery.com>
7940 PR tree-optimization/68773
7941 * omp-low.c (expand_omp_target): Don't set force_output.
7942 * varpool.c (varpool_node::get_create): Same.
7943 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
7944 offload_funcs with force_output.
7946 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7949 * lra-eliminations.c (move_plus_up): Don't change anything if either
7950 the outer or inner subreg mode is not MODE_INT.
7951 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
7952 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
7954 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7956 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
7957 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
7958 reduc_uplus_@var{m}): Remove.
7959 * expr.c (expand_expr_real_2): Remove expansion path for
7960 reduc_[us](min|max|plus) optabs.
7961 * optabs-tree.c (scalar_reduc_to_vector): Remove.
7962 * optabs-tree.h (scalar_reduc_to_vector): Remove.
7963 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
7964 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
7965 * tree-vect-loop.c (vectorizable_reduction): Remove test for
7966 reduc_[us](min|max|plus) optabs.
7968 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7970 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
7971 (reduc_plus_scal_v2sf): New.
7972 (reduc_smax_v2sf): Rename to...
7973 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
7974 (reduc_smin_v2sf): Rename to...
7975 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
7977 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
7979 * alias.c (compare_base_symbol_refs): New function.
7980 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
7983 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7986 PR tree-optimization/69155
7987 * tree-complex.c: Include cfganal.h.
7988 (phis_to_revisit): New variable.
7989 (extract_component): Add phiarg_p argument. Assert that returned
7990 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
7991 (update_phi_components): Partly rewrite to use loop over real/imag
7992 components instead of code duplication. If extract_component returns
7993 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
7994 create_tmp_reg into the PHI node instead, and mention the phi triplet
7996 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
7997 in phis_to_revisit at the end.
7999 2016-01-14 Richard Biener <rguenther@suse.de>
8001 PR tree-optimization/68060
8002 * tree-vect-loop.c (vect_is_simple_reduction): Check the
8003 outer loop reduction is only used in the inner loop before
8004 detecting a double reduction.
8006 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8009 * combine.c (expand_field_assignment): Punt if compute_mode is
8010 unsupported scalar mode.
8012 2016-01-14 Richard Biener <rguenther@suse.de>
8014 PR tree-optimization/66856
8015 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8016 SLP node only if it built successfully.
8017 (vect_analyze_slp_instance): Adjust.
8019 2016-01-14 Jeff Law <law@redhat.com>
8021 PR tree-optimization/69270
8022 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8023 (record_edge_info): Use it. Convert boolean_{true,false}_node
8026 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
8029 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8030 use block_ultimate_origin
8031 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8033 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8035 * doc/invoke.texi (Submodel Options): Rename section to
8036 "Machine-Dependent Options" to better reflect its content.
8037 Rewrite introductory text to remove archaic CPU names.
8040 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8042 * doc/invoke.texi (Code Gen Options): Move section up in file,
8043 before target-specific options. Update menu and option summary
8044 to reflect the new section ordering.
8046 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8048 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8049 (C++ Dialect Options): Add cross-reference to -std option.
8050 * doc/standards.texi (C++ Language): Document C++14 support.
8052 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8054 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8055 for pack/unpack functions for __ibm128.
8056 (PACK_IF): Likewise.
8057 (UNPACK_IF): Likewise.
8059 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8060 support for __ibm128 pack/unpack functions.
8061 (rs6000_invalid_builtin): Likewise.
8062 (rs6000_init_builtins): Likewise.
8063 (rs6000_opt_masks): Likewise.
8065 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8066 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8068 (RS6000_BTM_COMMON): Likewise.
8070 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8071 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8072 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8073 128-bit floating point. Add support for the double values to be
8074 in Altivec registers for TF/IF packing and unpacking, but restrict
8075 TD packing sub-fields to be FPR registers. Don't allow overlapped
8076 register support for packing. Allow pack inputs to be memory
8077 locations. Don't build generator functions for unpack<mode>_dm
8078 and unpack<mode>_nodm.
8079 (unpack<mode>_dm): Likewise.
8080 (unpack<mode>_nodm): Likewise.
8081 (pack<mode>): Likewise.
8083 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8084 built-in functions to pack/unpack explicit __ibm128 values.
8085 (__builtin_unpack_ibm128): Likewise.
8087 * doc/extend.texi (PowerPC Built-in Functions): Document
8088 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8090 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
8093 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8094 Add new arg loc and pass it down as context.
8095 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8096 to the location to use for the warning.
8097 (check_function_arguments): New arg loc. All callers changed. Pass
8098 it to check_function_nonnull.
8099 * c-common.h (check_function_arguments): Adjust declaration.
8101 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8103 PR tree-optimization/69156
8104 * gimple.c (validate_type): Removed.
8105 (gimple_builtin_call_types_compatible_p): Use
8106 useless_type_conversion_p instead of validate_type.
8107 * value-prof.c (gimple_stringop_fixed_value): Fold
8108 icall_size to correct type.
8110 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8112 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8115 2016-01-13 Richard Henderson <rth@redhat.com>
8118 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8119 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8120 (ix86_builtin_tm_store): Remove.
8121 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8122 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8123 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8124 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8125 * doc/tm.texi: Rebuild.
8127 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8128 (BUILT_IN_TM_MEMCPY_RTWN): New.
8129 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8130 fallback from vector to integer helpers.
8131 (build_tm_load): Handle vector types directly, instead of
8133 (build_tm_store): Likewise.
8134 (expand_assign_tm): Prepare for register types not handled by
8135 the above. Copy them to memory and use memcpy.
8136 * tree.c (tm_define_builtin): New.
8137 (find_tm_vector_type): New.
8138 (build_tm_vector_builtins): New.
8139 (build_common_builtin_nodes): Call it.
8141 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8143 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8144 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8146 2016-01-13 Tom de Vries <tom@codesourcery.com>
8148 PR tree-optimization/69169
8149 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8150 handled_struct_type param.
8151 (create_variable_info_for, intra_create_variable_infos): Call
8152 create_variable_info_for_1 with extra arg.
8154 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8156 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8157 and "armv8.1-a+crc" entries.
8159 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8162 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8163 Change first operand predicate from register_or_constm1_operand
8164 to register_operand.
8165 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8166 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8167 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8168 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8169 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8170 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8171 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8172 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8173 comparison with constm1_rtx from vec_prefetch_gen part.
8175 2016-01-13 Richard Biener <rguenther@suse.de>
8177 PR tree-optimization/69013
8178 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8179 Exchange assert for a test.
8181 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8184 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8186 2016-01-13 Richard Biener <rguenther@suse.de>
8188 PR tree-optimization/69242
8189 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8190 assert with a check.
8192 2016-01-13 Richard Biener <rguenther@suse.de>
8194 PR tree-optimization/69186
8195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8196 Properly guard vect_update_misalignment_for_peel call.
8198 2016-01-12 Jeff Law <law@redhat.com>
8200 PR tree-optimization/pr67755
8201 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8202 "need_profile_correction".
8203 (thread_block_1): Initialize new field to false by default. If we
8204 have multiple thread paths through a common joiner to different
8205 final targets, then set new field to true.
8206 (compute_path_counts): Only do count adjustment when it's really
8209 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8211 * doc/invoke.texi (Spec Files): Move section down in file, past
8212 all command-line option descriptions.
8214 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8217 * doc/gty.texi: Remove documentation of mark_hook.
8218 * gengtype.c (struct write_types_data): Remove code to support
8219 mark_hook attribute.
8220 (walk_type): Likewise.
8221 (write_func_for_structure): Likewise.
8223 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8225 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8226 Directory Options, and -specs= to Overall Options.
8227 (Overall Options): Adjust similarly. Reorder to group related
8228 options together. Make -specs= cross-reference the spec file details.
8229 (Directory Options): Adjust similarly.
8231 2016-01-12 Jeff Law <law@redhat.com>
8233 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8235 2016-01-12 Olivier Hainque <hainque@adacore.com>
8237 * gcc.c (spec_undefvar_allowed): New global.
8238 (process_command): Set to true when running for --version or --help,
8240 (getenv_spec_function): When the variable is not defined, use the
8241 variable name as the variable value if we're allowed not to issue
8244 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8246 PR tree-optimization/68911
8247 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8248 information computed for expression "init + nit * step".
8250 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8252 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8253 about name of GCC executable. Remove deleted node from menu.
8254 (Directory Options) <-B>: Remove cross-reference to deleted node.
8255 (Target Options): Delete section.
8257 2016-01-12 Christian Bruel <christian.bruel@st.com>
8260 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8261 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8263 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8266 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8267 aligned_mem is properly set for AVX512-VL floating point masked
8271 * ifcvt.c (cond_exec_process_if_block): When removing the last
8272 insn from then_bb, remove also any possible barriers that follow it.
8274 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
8278 * config/i386/iamcu.h (SIZE_TYPE): New macro.
8279 (PTRDIFF_TYPE): Likewise.
8280 (WCHAR_TYPE): Likewise.
8281 (WCHAR_TYPE_SIZE): Likewise.
8282 (STDINT_LONG32): Likewise.
8284 2016-01-12 Richard Biener <rguenther@suse.de>
8286 PR tree-optimization/69053
8287 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8288 convert initial value for cond reductions.
8290 2016-01-12 Richard Biener <rguenther@suse.de>
8292 PR tree-optimization/69007
8293 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8294 widen_sum after dot_prod and sad.
8296 2016-01-12 Richard Biener <rguenther@suse.de>
8298 PR tree-optimization/69168
8299 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8300 pattern stmt SLP type.
8301 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8302 end up unused so cope with that case.
8304 2016-01-12 Richard Biener <rguenther@suse.de>
8306 PR tree-optimization/69157
8307 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8308 stmts def type only during analyze phase.
8309 (vectorizable_call): Likewise.
8310 (vectorizable_simd_clone_call): Likewise.
8311 (vectorizable_conversion): Likewise.
8312 (vectorizable_assignment): Likewise.
8313 (vectorizable_shift): Likewise.
8314 (vectorizable_operation): Likewise.
8315 (vectorizable_store): Likewise.
8316 (vectorizable_load): Likewise.
8318 2016-01-12 Richard Biener <rguenther@suse.de>
8320 PR tree-optimization/69174
8321 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8323 (vectorizable_load): Properly compute the number of loads needed
8324 for permuted strided SLP loads and do not spuriously assign
8325 to SLP_TREE_VEC_STMTS.
8327 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8329 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8330 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8331 (MD_EXEC_PREFIX): Remove.
8332 (MD_STARTFILE_PREFIX) Removee.
8333 (FILE_NAME_ABSOLUTE_P): Remove.
8334 (CPP_SPEC): Do not read macros from sys/version.h.
8335 (LINK_COMMAND_SPEC): Remove.
8336 (LOCAL_INCLUDE_DIR): Remove.
8337 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8338 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8339 (POST_LINK_SPEC): Define to invoke stubify after linker
8340 (LIBSTDCXX): Remove define
8341 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8342 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8343 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8344 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8345 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8346 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8347 (i386_djgpp_asm_named_section): Add propotype of new procedure
8349 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8350 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8351 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8352 in config/i386/djgpp.h).
8353 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8354 STANDARD_STARTFILE_PREFIX_1.
8355 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8356 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8357 installation errors.
8358 (MAX_OFILE_ALIGNMENT): Define to 128.
8359 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8361 * config/i386/djgpp.c: New file. Add implementation of
8362 i386_djgpp_asm_named_section.
8364 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8366 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8367 Add rule for building djgpp.o.
8369 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8371 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8372 (rtx_is_swappable_p): Reductions are swappable.
8373 (insn_is_swappable_p): V2DF reductions are swappable.
8375 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8377 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8378 reloads for other unsupported memory operands.
8380 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8381 Jim Wilson <jim.wilson@linaro.org>
8384 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8385 copy_to_mode_reg instead of force_reg.
8387 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8390 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8391 TARGET_80387 is true.
8393 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8396 * lra-eliminations.c (move_plus_up): Only move plus up
8397 if subreg of the constant can be simplified into constant
8398 and use the simplified subreg of the constant instead of
8399 the original constant.
8401 * fold-const.c (fold_convertible_p): Don't return true
8402 for conversion of VECTOR_TYPE to same sized integral type.
8403 (fold_convert_loc): Fix up formatting. Fold conversion of
8404 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8405 instead of NOP_EXPR.
8407 PR tree-optimization/69214
8408 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8409 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8412 PR tree-optimization/69207
8413 * tree-vect-slp.c (vect_get_constant_vectors): For
8414 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8415 fold_convertible_p to vector_type's element type, and always
8416 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8418 2016-01-11 Richard Biener <rguenther@suse.de>
8420 PR tree-optimization/69173
8421 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8422 fixup the cycle if all stmts are in a pattern.
8424 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
8427 * alias.c (base_alias_check): Move check for addresses with
8428 alignment ANDs before the call for compare_base_decls.
8429 (memrefs_conflict_p): Return -1 for different decls
8430 that went through alignment adjustments.
8432 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8434 PR rtl-optimization/68796
8435 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8436 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8437 and QImode comparisons against zero with CC_NZmode.
8438 * config/aarch64/iterators.md (short_mask): New mode_attr.
8440 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8442 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8443 (<avx512>_store<mode>_mask): Likewise.
8445 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
8446 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8448 PR rtl-optimization/68841
8449 * ifcvt.c (struct noce_if_info): Add orig_x field.
8450 (bbs_ok_for_cmove_arith): Add to_rename parameter.
8451 Don't record conflicts on to_rename if it's present.
8452 Allow memory destinations in sets.
8453 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8454 blocks, passing orig_x to the checks.
8455 (noce_process_if_block): Set if_info->orig_x appropriately.
8457 2016-01-11 Tom de Vries <tom@codesourcery.com>
8459 PR tree-optimization/69069
8460 * tree-parloops.c (create_parallel_loop): Add missing phi args.
8462 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8464 PR rtl-optimization/68920
8465 * config/i386/i386.c (ix86_option_override_internal): Restrict number
8466 of conditional moves for RTL if-conversion to 1 for
8467 TARGET_ONE_IF_CONV_INSN.
8468 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8469 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8470 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8471 parameter to restirct number of conditional moves for
8473 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8474 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8477 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
8480 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8481 onepart vars. Fix typo in comment. Fix reversed condition in
8483 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8486 * var-tracking.c (dump_onepart_variable_differences): New.
8487 (dataflow_set_different): If a detailed dump is requested,
8488 delay early returns and dump differences between onepart
8489 variables present before and after, and added variables.
8491 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8494 * expr.c (expand_expr_real_1): For boolean vector constants
8495 with a scalar mode use const_scalar_mask_from_tree.
8496 (const_scalar_mask_from_tree): New.
8497 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8498 assigned to a mask type to handle constants.
8500 2016-01-11 Martin Jambor <mjambor@suse.cz>
8503 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8504 useless parameters if we cannot change function signature.
8506 2016-01-11 Martin Jambor <mjambor@suse.cz>
8509 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8512 2016-01-11 Tom de Vries <tom@codesourcery.com>
8514 PR tree-optimization/69109
8515 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8518 2016-01-11 Tom de Vries <tom@codesourcery.com>
8520 PR tree-optimization/69108
8521 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8522 res is not used in a phi.
8524 2016-01-11 Yury Gribov <y.gribov@samsung.com>
8527 * common.opt (frandom-seed): Fix parameter name.
8528 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8530 2016-01-11 Tom de Vries <tom@codesourcery.com>
8532 PR tree-optimization/69058
8533 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8536 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
8538 * config/arc/arc.opt (mdiv-rem): Add period to the end.
8539 (mcode-density): Likewise.
8541 2016-01-10 Tom de Vries <tom@codesourcery.com>
8543 PR tree-optimization/69062
8544 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8545 (parallelize_loops): Don't paralelize loop that has phi with address
8548 2016-01-10 Tom de Vries <tom@codesourcery.com>
8550 PR tree-optimization/69039
8551 * tree-parloops.c (try_create_reduction_list): Only allow single exit
8554 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
8557 * match.pd: Require target has function_c99_misc before doing
8558 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8560 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
8562 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8564 * configure: Regenerate.
8566 2016-01-09 Jakub Jelinek <jakub@redhat.com>
8569 PR tree-optimization/69097
8570 * fold-const.h (expr_not_equal_to): New prototype.
8571 * fold-const.c: Include stringpool.h and tree-ssanames.h.
8572 (expr_not_equal_to): New function.
8573 * match.pd (X % -Y is the same as X % Y): Don't optimize
8574 unless X is known not to be equal to minimum or Y is known
8575 not to be equal to -1.
8576 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8577 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8578 (simplify_stmt_using_ranges): Adjust caller.
8579 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8580 substitute_and_fold.
8582 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
8584 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8587 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8589 PR tree-optimization/69167
8590 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8591 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8593 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8595 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8596 Richard Biener <rguenther@suse.de>
8598 PR tree-optimization/68707
8599 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8600 instances that can be handled via vect_load_lanes.
8602 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
8604 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8605 if we can't determine address equivalence.
8606 * alias.c (compare_base_decl): Update for changed return value of
8607 symtab_node::equal_address_to.
8609 2016-01-08 Jason Merrill <jason@redhat.com>
8613 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8614 * expr.c (store_field): Not here.
8615 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8616 call with TREE_ADDRESSABLE type.
8617 * tree-cfg.c (verify_gimple_call): Adjust.
8619 2016-01-08 Olivier Hainque <hainque@adacore.com>
8621 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
8624 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8626 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
8627 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
8628 (reduc_smin_v2sf): Rename to...
8629 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
8630 (reduc_splus_v2sf): Rename to...
8631 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
8633 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8635 PR tree-optimization/69162
8636 * gimplify.c (gimplify_va_arg_expr): Encode original type of
8637 valist argument in another argument.
8638 (gimplify_modify_expr): Adjust for the above change. Cleanup.
8639 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
8640 to determine the va_list type, build a MEM_REF instead of
8641 build_fold_indirect_ref.
8643 PR tree-optimization/69172
8644 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
8647 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
8649 PR tree-optimization/67781
8650 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
8651 and cmpnop in two steps: first the ones not accessed in original
8652 gimple expression in a endian independent way and then the ones not
8653 accessed in the final result in an endian-specific way.
8655 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8657 PR tree-optimization/69083
8658 * tree-vect-slp.c (vect_get_constant_vectors): For
8659 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
8660 element type. If op is fold_convertible_p to vector_type's element
8661 type, use NOP_EXPR instead of VCE.
8663 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
8665 PR rtl-optimization/67778
8666 PR rtl-optimization/68634
8667 PR rtl-optimization/68909
8668 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
8669 block from the stack until done with it. Remove a superfluous
8670 bitmap set. Remove a superfluous bitmap test.
8672 2016-01-07 Martin Sebor <msebor@redhat.com>
8675 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
8676 constraint on the type of arguments.
8678 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
8680 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
8681 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
8682 unaligned_access on the gcc_options set.
8683 * config/arm/arm.c (arm_option_override_internal): Use
8684 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
8686 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8689 * config/i386/i386.c (ix86_frame_pointer_required): Enable
8690 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
8692 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8695 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8698 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8699 depending on frame_pointer_needed before remaining integer and SSE
8700 registers are saved.
8702 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
8705 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
8707 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
8710 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
8711 Use the "xBm" constraint.
8712 (float<sseintvecmodelower><mode>2<mask_name><round_name):
8714 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
8715 (sse_cvtsi2ssq<round_name>): Likewise.
8716 (sse_cvtss2si<round_name>): Likewise.
8717 (sse_cvtss2siq<round_name>): Likewise.
8718 (sse2_cvtsi2sdq<round_name>): Likewise.
8719 (sse2_cvtsd2si<round_name>): Likewise.
8720 (sse2_cvtsd2siq<round_name>): Likewise.
8721 * config/i386/subst.md (round_nimm_scalar_predicate): New
8724 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
8727 * varasm.c (make_decl_rtl): Mark invalid register vars as
8730 PR rtl-optimization/66206
8731 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
8732 All callers changed.
8734 2016-01-07 Jakub Jelinek <jakub@redhat.com>
8736 PR tree-optimization/69141
8737 * tree-ssa-pre.c: Include langhooks.h.
8738 (eliminate_dom_walker::before_dom_children): Use
8739 lang_hooks.decl_printable_name instead of
8740 cgraph_node::get ()->name ().
8743 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
8744 it and DECL_ALIGN too.
8746 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
8748 * config/mips/mips-ftypes.def: Sort to lexicographical order.
8750 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8753 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8754 depending on frame_pointer_needed before remaining integer and SSE
8755 registers are saved.
8757 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8759 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
8760 mode iterator with VSX_M2.
8761 (*p9_vecstore_<mode>): Likewise.
8762 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
8763 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
8764 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
8765 (define_split for VSX_LE128 stores): Likewise.
8766 (define_peephole2 for TImode LE swaps): Likewise.
8767 (define_split for VSX_LE128 post-reload stores): Likewise.
8769 2016-01-06 Marek Polacek <polacek@redhat.com>
8772 * convert.c (convert_to_integer_1): Adjust call to
8773 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
8774 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
8775 EXPR instead of ARG.
8776 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
8778 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8781 * doc/extend.texi (RL78 Variable Attributes): New section.
8783 2016-01-05 Marek Polacek <polacek@redhat.com>
8786 * builtins.c (get_memmodel): Use expansion point location rather than
8787 the input location. Call warning_at rather than warning.
8788 (expand_builtin_atomic_compare_exchange): Likewise.
8789 (expand_builtin_atomic_load): Likewise.
8790 (expand_builtin_atomic_store): Likewise.
8791 (expand_builtin_atomic_clear): Likewise.
8793 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8796 * config/i386/i386.c (ix86_expand_vector_logical_operator):
8797 Replace nonimmediate_operand with vector_operand.
8798 * config/i386/predicates.md (vector_operand): New predicate.
8799 (general_vector_operand): Replace nonimmediate_operand with
8801 * config/i386/sse.md: Replace nonimmediate_operand with
8802 vector_operand and m constraint with Bm constraint on SSE
8803 patterns with 16-byte memory operand.
8804 * config/i386/subst.md (round_nimm_predicate): Replace
8805 nonimmediate_operand with vector_operand.
8806 (round_saeonly_nimm_predicate): Likewise.
8807 (round_saeonly_nimm_scalar_predicate): New.
8809 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8812 * config/i386/constraints.md (Bm): New constraint.
8813 * config/i386/predicates.md (vector_memory_operand): New
8815 * config/i386/sse.md: Replace xm with xBm in plusminus and
8818 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8821 * doc/extend.texi (V850 Function Attributes): New section.
8822 (V850 Variable Attributes): New section.
8824 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8827 * doc/extend.texi (MicroBlaze Function Attributes): Document
8828 interrupt_handler and fast_interrupt attributes.
8830 2016-01-05 Sergei Trofimovich <siarheit@google.com>
8833 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
8834 for local symbolic operands.
8835 * config/ia64/predicates.md (local_symbolic_operand64): New
8838 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8840 PR rtl-optimization/68651
8841 * combine.c (combine_simplify_rtx): Canonicalize x + x into
8844 2016-01-05 Nathan Sidwell <nathan@acm.org>
8846 * alias.c (compare_base_decls): Use symtab_node::get.
8848 2016-01-05 Nick Clifton <nickc@redhat.com>
8851 * ira-costs.c (copy_cost): Initialise the t_icode field of the
8852 secondary_reload_info structure.
8855 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
8856 decls if weak support is available.
8858 2016-01-04 Martin Sebor <msebor@redhat.com>
8860 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
8862 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
8864 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8865 OPTION_MASK_P9_DFORM.
8867 * config/rs6000/constraints.md (wo constraint): New constraint for
8870 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
8872 (rs6000_init_hard_regno_mode_ok): Likewise.
8874 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
8877 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
8878 expanders not to have constraints. Add support for ISA 3.0 xxperm
8879 instruction. Add support for fusing xxlor with xxperm.
8880 (altivec_vperm_<mode>_internal): Likewise.
8881 (altivec_vperm_v8hiv16qi): Likewise.
8882 (altivec_vperm_<mode>v16q): Likewise.
8883 (altivec_vperm_<mode>_uns): Likewise.
8884 (vperm_v8hiv4si): Likewise.
8885 (vperm_v16qiv8hi): Likewise.
8887 * doc/md.texi (RS/6000 constraints): Document wo constraint.
8889 2016-01-04 Jakub Jelinek <jakub@redhat.com>
8891 Update copyright years.
8893 * gcc.c (process_command): Update copyright notice dates.
8894 * gcov-dump.c (print_version): Ditto.
8895 * gcov.c (print_version): Ditto.
8896 * gcov-tool.c (print_version): Ditto.
8897 * gengtype.c (create_file): Ditto.
8898 * doc/cpp.texi: Bump @copying's copyright year.
8899 * doc/cppinternals.texi: Ditto.
8900 * doc/gcc.texi: Ditto.
8901 * doc/gccint.texi: Ditto.
8902 * doc/gcov.texi: Ditto.
8903 * doc/install.texi: Ditto.
8904 * doc/invoke.texi: Ditto.
8906 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8908 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
8909 modes larger than TImode as TImode if NEON is not enabled.
8911 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8914 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
8915 mode for %f0-%f31 only if TARGET_FPU.
8917 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8920 * config/sparc/sparc.c (scan_record_type): Take into account subfields
8921 to compute the PACKED_P predicate.
8922 (function_arg_record_value): Minor tweaks.
8924 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8926 * doc/install.texi (--with-multilib-list): Describe the meaning of the
8927 option for arm*-*-* targets.
8929 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
8931 * doc/extend.texi (Common Function Attributes): Move docs for
8932 MSP430-specific attributes to....
8933 (MSP430 Function Attributes): ...here. Delete the redundant
8934 entries and copy-edit the remaining text.
8935 (MSP430 Variable Attributes): Use uniform format for index
8936 entries and add a cross-reference to the corresponding function
8939 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
8941 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
8943 (x86 Options): Likewise.
8945 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8949 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
8950 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
8951 to corresponding attribute.
8953 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8955 * doc/extend.texi (Common Function Attributes) <noplt>: Move
8956 to correct alphabetization of table. Copy-edit and correct
8958 <stack_protect>: Likewise.
8959 <target_clones>: Likewise.
8961 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
8962 Correct punctuation.
8963 (Code Gen Options) <-fno-plt>: Copy-edit.
8965 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8968 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
8969 SI values. Explicitly convert SI to DI and vice-versa.
8971 2016-01-01 Jakub Jelinek <jakub@redhat.com>
8973 PR tree-optimization/69070
8974 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
8975 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
8978 * ubsan.c (ubsan_instrument_float_cast): Call
8979 initialize_sanitizer_builtins.
8982 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
8984 Copyright (C) 2016 Free Software Foundation, Inc.
8986 Copying and distribution of this file, with or without modification,
8987 are permitted in any medium without royalty provided the copyright
8988 notice and this notice are preserved.