1 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2 Matthias Klose <doko@debian.org>
4 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
6 2016-04-28 Richard Biener <rguenther@suse.de>
9 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
12 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
14 * common/config/sh/sh-common.c: Remove SH5 support.
15 * config/sh/constraints.md: Likewise.
16 * config/sh/config/sh/elf.h: Likewise.
17 * config/sh/linux.h: Likewise.
18 * config/sh/netbsd-elf.h: Likewise.
19 * config/sh/predicates.md: Likewise.
20 * config/sh/sh-c.c: Likewise.
21 * config/sh/sh-protos.h: Likewise.
22 * config/sh/sh.c: Likewise.
23 * config/sh/sh.h: Likewise.
24 * config/sh/sh.md: Likewise.
25 * config/sh/sh.opt: Likewise.
26 * config/sh/sync.md: Likewise.
27 * config/sh/sh64.h: Delete.
28 * config/sh/shmedia.h: Likewise.
29 * config/sh/shmedia.md: Likewise.
30 * config/sh/sshmedia.h: Likewise.
31 * config/sh/t-netbsd-sh5-64: Likewise.
32 * config/sh/t-sh64: Likewise.
33 * config/sh/ushmedia.h: Likewise.
35 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
37 * config/i386/i386.md (sign_extend to memory peephole2s): Use
38 general_reg_operand instead of register_operand predicate.
40 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
44 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
46 * match.pd (A - B > A, A + B < A): New transformations.
48 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
50 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
51 which defaults to true. Emit an outer pair of parentheses only if
52 EMIT_PARENS. When continuing a chain of && or || (or & or |),
53 don't emit parentheses for the right-hand operand.
55 2016-04-27 Jeff Law <law@redhat.com>
57 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
59 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
61 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
62 (altivec_lvx_<mode>_internal): Document.
63 (altivec_lvx_<mode>_2op): New define_insn.
64 (altivec_lvx_<mode>_1op): Likewise.
65 (altivec_lvx_<mode>_2op_si): Likewise.
66 (altivec_lvx_<mode>_1op_si): Likewise.
67 (altivec_stvx_<mode>): Remove.
68 (altivec_stvx_<mode>_internal): Document.
69 (altivec_stvx_<mode>_2op): New define_insn.
70 (altivec_stvx_<mode>_1op): Likewise.
71 (altivec_stvx_<mode>_2op_si): Likewise.
72 (altivec_stvx_<mode>_1op_si): Likewise.
73 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
74 Expand vec_ld and vec_st during parsing.
75 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
77 (altivec_expand_stvx_be): Likewise.
78 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
79 address-masking behavior in RTL.
80 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
81 address-masking behavior in RTL.
82 (altivec_expand_builtin): Change builtin code arguments for calls
83 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
84 (insn_is_swappable_p): Avoid incorrect swap optimization in the
85 presence of lvx/stvx patterns.
86 (alignment_with_canonical_addr): New function.
87 (alignment_mask): Likewise.
88 (find_alignment_op): Likewise.
89 (recombine_lvx_pattern): Likewise.
90 (recombine_stvx_pattern): Likewise.
91 (recombine_lvx_stvx_patterns): Likewise.
92 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
93 stvx patterns from expand.
94 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
96 (vector_altivec_store_<mode>): Likewise.
98 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
100 * config/aarch64/aarch64.md
101 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
102 remove the "fp" attributes.
103 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
104 add the "simd" attributes.
105 (*movdf_aarch64): Likewise.
106 (*movtf_aarch64): Remove the "fp" attributes.
107 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
108 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
110 2016-04-27 David Malcolm <dmalcolm@redhat.com>
112 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
113 rtx to rtx_code_label *.
114 * rtl.h (maybe_set_first_label_num): Likewise.
116 2016-04-27 David Malcolm <dmalcolm@redhat.com>
118 * df-core.c (df_add_problem): Make the problem param be const.
119 (df_remove_problem): Make local "problem" be const.
120 * df-problems.c (problem_RD): Make const.
121 (problem_LR): Likewise.
122 (problem_LIVE): Likewise.
123 (problem_MIR): Likewise.
124 (problem_CHAIN): Likewise.
125 (problem_WORD_LR): Likewise.
126 (problem_NOTE): Likewise.
127 (problem_MD): Likewise.
128 * df-scan.c (problem_SCAN): Likewise.
129 * df.h (struct df_problem): Make field "dependent_problem" be
131 (struct dataflow): Likewise for field "problem".
132 (df_add_problem): Make param const.
134 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
136 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
137 inter-unit moves to/from vector registers are enabled. Do not disable
140 2016-04-27 David Malcolm <dmalcolm@redhat.com>
142 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
143 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
145 (enum df_problem_id): ...this new enum.
146 (struct df_problem): Convert field "id" from "int" to
149 2016-04-27 David Malcolm <dmalcolm@redhat.com>
151 * rtl.def: Update comment for "things in the instruction chain" to
152 reflect the removal of the leading "i" field for INSN_UID in
153 r210360. Fix bogus apostrophe.
155 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
157 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
158 inter-unit moves to/from vector registers are enabled. Do not disable
161 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
163 * config/i386/i386.md
164 (lea arith with mem operand + setcc peephole2): Set operator mode.
166 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
169 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
170 (dimode_scalar_to_vector_candidate_p): This.
171 (timode_scalar_to_vector_candidate_p): New function.
172 (scalar_to_vector_candidate_p): Likewise.
173 (timode_check_non_convertible_regs): Likewise.
174 (timode_remove_non_convertible_regs): Likewise.
175 (remove_non_convertible_regs): Likewise.
176 (remove_non_convertible_regs): Renamed to ...
177 (dimode_remove_non_convertible_regs): This.
178 (scalar_chain::~scalar_chain): Make it virtual.
179 (scalar_chain::compute_convert_gain): Make it pure virtual.
180 (scalar_chain::mark_dual_mode_def): Likewise.
181 (scalar_chain::convert_insn): Likewise.
182 (scalar_chain::convert_registers): Likewise.
183 (scalar_chain::add_to_queue): Make it protected.
184 (scalar_chain::emit_conversion_insns): Likewise.
185 (scalar_chain::replace_with_subreg): Likewise.
186 (scalar_chain::replace_with_subreg_in_insn): Likewise.
187 (scalar_chain::convert_op): Likewise.
188 (scalar_chain::convert_reg): Likewise.
189 (scalar_chain::make_vector_copies): Likewise.
190 (scalar_chain::convert_registers): New pure virtual function.
191 (class dimode_scalar_chain): New class.
192 (class timode_scalar_chain): Likewise.
193 (scalar_chain::mark_dual_mode_def): Renamed to ...
194 (dimode_scalar_chain::mark_dual_mode_def): This.
195 (timode_scalar_chain::mark_dual_mode_def): New function.
196 (timode_scalar_chain::convert_insn): Likewise.
197 (dimode_scalar_chain::convert_registers): Likewise.
198 (scalar_chain::compute_convert_gain): Renamed to ...
199 (dimode_scalar_chain::compute_convert_gain): This.
200 (scalar_chain::replace_with_subreg): Renamed to ...
201 (dimode_scalar_chain::replace_with_subreg): This.
202 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
203 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
204 (scalar_chain::make_vector_copies): Renamed to ...
205 (dimode_scalar_chain::make_vector_copies): This.
206 (scalar_chain::convert_reg): Renamed to ...
207 (dimode_scalar_chain::convert_reg ): This.
208 (scalar_chain::convert_op): Renamed to ...
209 (dimode_scalar_chain::convert_op): This.
210 (scalar_chain::convert_insn): Renamed to ...
211 (dimode_scalar_chain::convert_insn): This.
212 (scalar_chain::convert): Call convert_registers.
213 (convert_scalars_to_vector): Change to scalar_chain pointer to
214 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
215 in 32-bit mode. Delete scalar_chain pointer. Call
216 free_dominance_info in 64-bit mode.
217 (pass_stv::gate): Remove TARGET_64BIT check.
218 (ix86_option_override): Put the 64-bit STV pass before the CSE
221 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
223 * dwarf2out.h (struct dw_loc_descr_node): Remove the
224 dw_loc_frame_offset field.
225 * dwarf2out.c (new_loc_descr): Likewise.
226 (resolve_args_picking_1): Turn the VISITED hash set into a
227 FRAME_OFFSET hash map. Use it to associate a frame offset to
228 visited nodes. Remove uses of the CHECKING_P macro.
229 (resolve_args_picking): Update call to resolve_args_picking_1.
231 2016-04-27 Martin Liska <mliska@suse.cz>
233 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
234 (free_loop_data): Release vuses of groups.
236 2016-04-27 Bin Cheng <bin.cheng@arm.com>
238 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
239 instead of redundant use_id and boolean have_use_for.
240 (struct iv_use): Change sub_id into group_id. Remove field next.
241 Move fields: related_cands, n_map_members, cost_map and selected
243 (struct iv_group): ... here. New structure.
244 (struct iv_common_cand): Use structure declaration directly.
245 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
246 (MAX_CONSIDERED_USES): Rename macro to ...
247 (MAX_CONSIDERED_GROUPS): ... here.
248 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
249 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
250 (dump_uses): Rename to ...
251 (dump_groups): ... here. Update all uses.
252 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
253 (find_induction_variables): Refactor format of dump information.
254 (record_sub_use): Delete.
255 (record_use): Update all uses.
256 (record_group): New function.
257 (record_group_use, find_interesting_uses_op): Call above functions.
259 (find_interesting_uses_cond): Ditto.
260 (group_compare_offset): New function.
261 (split_all_small_groups): Rename to ...
262 (split_small_address_groups_p): ... here. Update all uses.
263 (split_address_groups): Update all uses.
264 (find_interesting_uses): Refactor format of dump information.
265 (add_candidate_1): Update all uses. Remove redundant check on iv,
267 (add_candidate, record_common_cand): Remove redundant assert.
268 (add_iv_candidate_for_biv): Update use.
269 (add_iv_candidate_derived_from_uses): Update all uses.
270 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
271 (alloc_use_cost_map): Ditto.
272 (set_use_iv_cost, get_use_iv_cost): Rename to ...
273 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
274 (determine_use_iv_cost_generic): Ditto.
275 (determine_group_iv_cost_generic): Ditto.
276 (determine_use_iv_cost_address): Ditto.
277 (determine_group_iv_cost_address): Ditto.
278 (determine_use_iv_cost_condition): Ditto.
279 (determine_group_iv_cost_cond): Ditto.
280 (determine_use_iv_cost): Ditto.
281 (determine_group_iv_cost): Ditto.
282 (set_autoinc_for_original_candidates): Update all uses.
283 (find_iv_candidates): Update all uses. Refactor dump information.
284 (determine_use_iv_costs): Ditto.
285 (determine_iv_costs): Ditto.
286 (iv_ca_cand_for_use): Rename to ...
287 (iv_ca_cand_for_group): ... here. Update all uses.
288 (iv_ca_add_use, iv_ca_add_group): Ditto.
289 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
290 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
291 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
292 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
293 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
294 (create_new_iv, adjust_iv_update_pos): Ditto.
295 (rewrite_use_address): Delete.
296 (rewrite_use_address_1): Rename to ...
297 (rewrite_use_address): ... here.
298 (rewrite_use_compare): Update all uses.
299 (rewrite_use): Delete.
300 (rewrite_uses): Rename to ...
301 (rewrite_groups): ... here. Update all uses.
302 (remove_unused_ivs, free_loop_data): Update all uses.
303 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
305 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
307 * rtlanal.c (nonzero_bits1): Convert preprocessor check
308 for WORD_REGISTER_OPERATIONS to runtime check.
310 2016-04-27 Richard Biener <rguenther@suse.de>
313 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
314 aggregate_value_p to determine if a function result is
315 returned by reference.
316 (ipa_pta_execute): Functions having their address taken are
317 not automatically nonlocal.
319 2016-04-27 Jakub Jelinek <jakub@redhat.com>
322 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
323 * fold-const.c (operand_equal_p): If flag_checking and
324 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
325 and if it returns non-zero, assert iterative_hash_expr on both
328 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
330 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
332 2016-04-27 Nick Clifton <nickc@redhat.com>
335 * varasm.c (merge_weak): Generate an error if an attempt is made
336 to convert a non-weak static function into a weak, public function.
338 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
340 * params.def (MAX_PARTITION_SIZE): New param.
341 * doc/invoke.texi: Document lto-max-partition.
343 2016-04-27 Richard Biener <rguenther@suse.de>
346 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
347 function cummulating used_from_other_partition, externally_visible
348 and force_output from aliases.
349 (refered_from_nonlocal_var): Likewise.
350 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
353 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
355 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
356 (-Wmemset-elt-size): New item.
358 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
361 * stor-layout.h (internal_reference_types): Delete.
362 * stor-layout.c (reference_types_internal): Likewise.
363 (internal_reference_types): Likewise.
364 (layout_type) <REFERENCE_TYPE>: Adjust.
366 2016-04-27 Jakub Jelinek <jakub@redhat.com>
369 * tree.h (inchash::add_expr): Add FLAGS argument.
370 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
371 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
372 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
373 Formatting fix. Adjust recursive calls. For tcc_comparison,
374 if swap_tree_comparison (code) is smaller than code, hash that
375 and arguments in the other order. Hash CONVERT_EXPR the same
376 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
377 of ADDR_EXPR of decl as the decl itself. Add or remove
378 OEP_ADDRESS_OF from recursive flags as needed. For
379 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
380 operands commutatively and only the third one normally.
381 For internal CALL_EXPR hash in CALL_EXPR_IFN.
383 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
385 * config/rtems.h (LIB_SPEC): Add -latomic.
387 2016-04-27 Joel Sherrill <joel@rtems.org>
389 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
390 xilink.ld and flags not relevant to RTEMS.
392 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
394 * toplev.c (backend_init_target): Avoid calling init_reload when using
397 2016-04-26 Jakub Jelinek <jakub@redhat.com>
399 * reorg.c (try_merge_delay_insns): Declare i and j inside the
400 for loops rather than one for the whole function.
402 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
404 * match.pd (X + CST CMP X): New transformation.
406 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
408 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
409 * fold-const.c (fold_binary_loc): Remove 2 transformations
410 superseded by match.pd.
411 * match.pd (x+x -> x*2): Generalize to integers.
413 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
415 * config/i386/i386.md (operation on memory peephole): Duplicate an
416 existing peephole and adapt it to match lea rather than an operation
419 PR rtl-optimization/57193
420 * opts.c (default_options_table): Add OPT_frename_registers at -O2
422 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
424 2016-04-26 Bin Cheng <bin.cheng@arm.com>
426 * tree-if-conv.c (any_pred_load_store): New static variable.
427 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
428 any_pred_load_store instead of and_mask_load_store.
429 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
430 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
431 (combine_blocks, tree_if_conversion): Ditto.
433 2016-04-26 Bin Cheng <bin.cheng@arm.com>
435 PR tree-optimization/70771
436 PR tree-optimization/70775
437 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
438 virtual PHI nodes. Delete parameter.
439 (if_convertible_loop_p_1): Delete argument to above function.
440 (predicate_all_scalar_phis): Delete code handling single-argument
442 (tree_if_conversion): Mark and update virtual SSA.
444 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
447 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
448 (x86_elf_aligned_common): Rename to ...
449 (x86_elf_aligned_decl_common): ... this.
450 Add decl arg. Switch to .lbss for largecomm object. Use
451 LARGECOMM_SECTION_ASM_OP.
452 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
454 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
455 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
457 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
458 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
460 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
463 * config/i386/i386.c (SECTION_LARGE): Define.
464 (x86_64_elf_select_section): Set it for large data/bss sections.
465 Only clear SECTION_WRITE for .lrodata.
466 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
468 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
469 * varasm.c (default_elf_asm_named_section): Grow flagchars.
470 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
472 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
473 * doc/tm.texi: Regenerate.
475 2016-04-26 Jakub Jelinek <jakub@redhat.com>
478 * configure.ac (--enable-checking): Document extra flag, for
479 non-release builds default to --enable-checking=yes,extra.
480 If misc checking and extra checking, define CHECKING_P to 2 instead
482 * common.opt (fchecking=): Add.
483 * doc/invoke.texi (-fchecking=): Document.
484 * doc/install.texi: Document --enable-checking changes.
485 * configure: Regenerated.
486 * config.in: Regenerated.
488 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
490 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
491 attribute instead of which_alternative.
492 * config/i386/sse.md (*mov<mode>_internal): Ditto.
493 Use EXT_REX_SSE_REG_P where appropriate.
495 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
497 * config/i386/predicates.md (const0_operand): Do not match
499 (const1_operand): Ditto.
501 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
503 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
504 for SSE constm1 operands and TARGET_AVX512VL.
505 (*movti_internal): Ditto.
506 (*mov<mode>_or): Use constm1_operand predicate.
507 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
508 for SSE vector_all_ones operands and TARGET_AVX512VL.
509 * config/i386/predicates.md (constm1_operand): New predicate.
510 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
511 emission of constant -1 load.
513 2016-04-25 Jason Merrill <jason@redhat.com>
515 * gdbinit.in: Skip is-a.h.
517 * attribs.c (register_scoped_attributes): Fix logic.
518 * attribs.h: Declare register_scoped_attributes.
520 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
522 * config/rs6000/rs6000-builtin.def: Correct pasto error for
523 stxvd2x and stxvw4x built-in functions.
525 2016-04-25 DJ Delorie <dj@redhat.com>
527 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
531 2016-04-25 Richard Biener <rguenther@suse.de>
533 PR tree-optimization/70780
534 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
536 (compute_antic): Mark blocks with abnormal preds as visited as
537 they have a final empty antic-in solution already.
539 2016-04-25 Michael Collison <michael.collison@linaro.org>
541 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
543 2016-04-25 Michael Collison <michael.collison@linaro.org>
545 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
546 mode is VQI to improve mixed mode vectorization.
547 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
548 define_insn to match low half of signed vaddw.
549 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
550 define_insn to match high half of signed vaddw.
551 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
552 define_insn to match low half of unsigned vaddw.
553 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
554 define_insn to match high half of unsigned vaddw.
555 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
556 (arm_simd_check_vect_par_cnst_half_p): Likewise.
557 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
559 (arm_simd_check_vect_par_cnst_half_p): Likewise.
560 * config/arm/predicates.md (vect_par_constant_high): Support
561 big endian and simplify by calling
562 arm_simd_check_vect_par_cnst_half
563 (vect_par_constant_low): Likewise.
565 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
567 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
568 predicate for operand 2.
570 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
571 H.J. Lu <hongjiu.lu@intel.com>
573 * config/i386/i386-protos.h (standard_sse_constant_p): Add
574 machine_mode argument.
575 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
576 constm1_rtx operands. For VOIDmode constants, get mode from
577 pred_mode. Check mode size if the mode is supported by ABI.
578 (standard_sse_constant_opcode): Do not use standard_constant_p.
579 Strictly check ABI support for all-ones operands.
580 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
581 immediates. Update calls to standard_sse_constant_p.
582 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
583 (ix86_rtx_costs): Ditto.
584 * config/i386/i386.md (*movxi_internal_avx512f): Use
585 nonimmediate_or_sse_const_operand instead of vector_move_operand.
586 Use (v,BC) alternative instead of (v,C). Use register_operand
587 checks instead of MEM_P.
588 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
589 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
590 isa attribute. Use register_operand checks instead of MEM_P.
591 (*movti_internal): Use nonimmediate_or_sse_const_operand for
592 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
593 alternative and corresponding sse2 isa attribute.
594 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
595 to standard_sse_constant_p.
596 (FP constant splitters): Ditto.
597 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
599 * config/i386/predicates.md (constm1_operand): Remove.
600 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
601 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
602 vector_all_ones_operand instead of constm1_operand.
604 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
606 * print-rtl.c (print_rtx_insn_vec): New function.
607 * print-rtl.h: New prototype.
608 * store-motion.c (struct st_expr): Make avail_stores a vector.
609 (st_expr_entry): Adjust.
610 (free_st_expr_entry): Likewise.
611 (print_store_motion_mems): Likewise.
612 (find_moveable_store): Likewise.
613 (compute_store_table): Likewise.
614 (delete_store): Likewise.
615 (build_store_vectors): Likewise.
617 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
619 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
621 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
623 * vec.h (vec_safe_contains): New function.
624 (vec::contains): Likewise.
625 (vec::begin): Likewise.
626 (vec::end): Likewise.
628 2016-04-23 Jakub Jelinek <jakub@redhat.com>
631 * cfgexpand.c (expand_stack_vars): Fix typo.
633 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
635 * system.h (list, map, set, vector): Include conditionally.
636 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
637 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
638 * ipa-icf.c (INCLUDE_LIST): Define.
639 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
640 * config/sh/sh.c (INCLUDE_VECTOR): Define.
641 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
642 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
643 * cp/logic.cc (INCLUDE_LIST): Define.
644 * fortran/trans-common.c (INCLUDE_MAP): Define.
646 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
648 * auto-profile.c: Remove <string.h> include.
649 * ipa-icf-gimple.c: Remove <list> include.
650 * diagnostic.c: Remove <new> include.
651 * genmatch.c: Likewise.
652 * pretty-print.c: Likewise.
654 * c/c-objc-common.c: Likewise.
655 * cp/error.c: Likewise.
656 * fortran/error.c: Likewise.
658 2016-04-22 Richard Biener <rguenther@suse.de>
660 * lto-streamer-in.c (input_ssa_names): Do not allocate
661 GIMPLE_NOP for all SSA names.
662 * lto-streamer-out.c (output_ssa_names): Do not output
663 SSA names that should have been released.
665 2016-04-22 Richard Biener <rguenther@suse.de>
667 PR tree-optimization/70740
668 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
671 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
674 * config/i386/predicates.md (call_insn_operand): Replace
675 sibcall_memory_operand with memory_operand.
677 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
679 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
680 has_single_use() tests.
681 (register_edge_assert_for_1): Likewise.
682 (find_assert_locations_1): Check the liveness bitmap instead of
683 checking has_single_use().
685 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
688 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
689 Extract AVX-512BW constraint from AVX.
691 2016-04-21 Richard Biener <rguenther@suse.de>
693 PR tree-optimization/70725
694 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
695 for phi_convertible_by_degenerating_args.
696 (predicate_all_scalar_phis): Handle single-argument PHIs.
698 2016-04-21 Richard Biener <rguenther@suse.de>
701 * fold-const.c (fold_comparison): Return properly typed
704 2016-04-21 Bin Cheng <bin.cheng@arm.com>
706 PR tree-optimization/70715
707 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
708 after expanding BASE using expand_simple_operations.
710 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
712 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
715 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
717 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
719 2016-04-20 Jan Hubicka <jh@suse.cz>
721 * ipa-inline.c (can_inline_edge_p): Pass caller info to
722 ultiimate_alias_target.
723 (update_callee_keys): Likewise.
724 (lookup_recursive_calls): Likewise.
725 (speculation_useful_p): Likewise.
727 2016-04-20 Jan Hubicka <jh@suse.cz>
730 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
731 (set_nothrow_flag_1): ... this; handle interposition correctly;
732 recurse on aliases and thunks.
733 (cgraph_node::set_nothrow_flag): New.
734 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
735 functions compiled with non-call exceptions that binds to current
737 (propagate_nothrow): Be safe WRT interposition.
738 * cgraph.h (set_nothrow_flag): Update prototype.
740 2016-04-18 Jan Hubicka <jh@suse.cz>
742 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
743 max_loop_iterations_int.
744 (tree_unswitch_outer_loop): Likewise.
746 2016-04-20 Bin Cheng <bin.cheng@arm.com>
748 PR tree-optimization/69489
749 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
750 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
752 (if_convertible_bb_p): Remove check on edge count of basic block's
755 2016-04-20 Bin Cheng <bin.cheng@arm.com>
757 PR tree-optimization/56625
758 PR tree-optimization/69489
759 * tree-data-ref.h (DR_INNERMOST): New macro.
760 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
761 hashing struct innermost_loop_behavior.
762 (ref_DR_map): Remove.
763 (innermost_DR_map): New map.
764 (baseref_DR_map): Revise comment.
765 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
766 to innermost_DR_map accroding to its innermost loop behavior.
767 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
768 to its innermost loop behavior.
769 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
770 Add initialization for innermost_DR_map. Record memory reference
771 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
772 have innermost loop behavior.
773 (if_convertible_loop_p): Remove release for ref_DR_map. Release
776 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
778 * config/i386/i386.md (*lea<mode>_general_1): Rename from
779 *lea_general_1. Use explicit SWI12 mode interator.
780 (*lea<mode>_general_2): Rename from *lea_general_2.
781 Use explicit SWI12 mode interator.
782 (*lea<mode>_general_3): Rename from *lea_general_3.
783 Use explicit SWI12 mode interator.
784 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
785 Use explicit SWI12 mode interator.
786 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
787 Use explicit SWI48 mode interator.
789 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
791 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
792 Short-cut unaligned load and store cases. Handle all integer
794 (ix86_expand_vector_move_misalign): Short-cut unaligned load
795 and store cases. Call ix86_avx256_split_vector_move_misalign
796 directly without checking mode class.
798 2016-04-20 Andrew Pinski <apinski@cavium.com>
799 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
802 * config/aarch64/aarch64.md (sibcall): Force call
803 address to be DImode for ILP32.
804 (sibcall_value): Likewise.
806 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
808 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
810 2016-04-20 Richard Biener <rguenther@suse.de>
812 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
813 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
814 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
815 (maybe_push_res_to_seq): Adjust.
816 * gimple-fold.c (maybe_build_generic_op): Likewise.
818 2016-04-20 Marek Polacek <polacek@redhat.com>
820 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
823 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
825 * config/i386/sse.md (vec_unpacks_lo_hi): Always
826 use kmovw to support AVX512F target.
828 2016-04-20 Bin Cheng <bin.cheng@arm.com>
830 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
832 2016-04-20 Marek Polacek <polacek@redhat.com>
834 PR tree-optimization/70725
835 * tree-if-conv.c (is_false_predicate): New function.
836 (predicate_mem_writes): Use it.
838 2016-04-20 Richard Biener <rguenther@suse.de>
840 PR tree-optimization/70726
841 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
842 shift amounts from a pattern stmt operand.
844 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
847 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
848 stack_restore_from_fpr pattern when restoring r15.
849 (s390_optimize_prologue): Strip away the memory barrier in the
850 parallel when trying to get rid of restore insns.
851 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
852 definition for loading the stack pointer from an FPR. Compared to
853 the normal move insn this pattern includes a full memory barrier.
855 2016-04-19 Jakub Jelinek <jakub@redhat.com>
858 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
859 implicitly linear or lastprivate iterator on the outer context.
861 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
863 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
865 * config/i386/i386.md (ssememalign): Removed.
866 * config/i386/sse.md: Remove ssememalign attribute from patterns.
868 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
871 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
872 const short * to __builtin_ia32_loaddquhi512_mask.
873 (_mm512_maskz_loadu_epi16): Likewise.
874 (_mm512_mask_storeu_epi16): Pass short * to
875 __builtin_ia32_storedquhi512_mask.
876 (_mm512_mask_loadu_epi8): Pass const char * to
877 __builtin_ia32_loaddquqi512_mask.
878 (_mm512_maskz_loadu_epi8): Likewise.
879 (_mm512_mask_storeu_epi8): Pass char * to
880 __builtin_ia32_storedquqi512_mask.
881 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
882 const double * to __builtin_ia32_loadupd512_mask.
883 (_mm512_mask_loadu_pd): Likewise.
884 (_mm512_maskz_loadu_pd): Likewise.
885 (_mm512_storeu_pd): Pass double * to
886 __builtin_ia32_storeupd512_mask.
887 (_mm512_mask_storeu_pd): Likewise.
888 (_mm512_loadu_ps): Pass const float * to
889 __builtin_ia32_loadups512_mask.
890 (_mm512_mask_loadu_ps): Likewise.
891 (_mm512_maskz_loadu_ps): Likewise.
892 (_mm512_storeu_ps): Pass float * to
893 __builtin_ia32_storeups512_mask.
894 (_mm512_mask_storeu_ps): Likewise.
895 (_mm512_mask_loadu_epi64): Pass const long long * to
896 __builtin_ia32_loaddqudi512_mask.
897 (_mm512_maskz_loadu_epi64): Likewise.
898 (_mm512_mask_storeu_epi64): Pass long long *
899 to __builtin_ia32_storedqudi512_mask.
900 (_mm512_loadu_si512): Pass const int * to
901 __builtin_ia32_loaddqusi512_mask.
902 (_mm512_mask_loadu_epi32): Likewise.
903 (_mm512_maskz_loadu_epi32): Likewise.
904 (_mm512_storeu_si512): Pass int * to
905 __builtin_ia32_storedqusi512_mask.
906 (_mm512_mask_storeu_epi32): Likewise.
907 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
908 char * to __builtin_ia32_storedquqi256_mask.
909 (_mm_mask_storeu_epi8): Likewise.
910 (_mm256_mask_loadu_epi16): Pass const short * to
911 __builtin_ia32_loaddquhi256_mask.
912 (_mm256_maskz_loadu_epi16): Likewise.
913 (_mm_mask_loadu_epi16): Pass const short * to
914 __builtin_ia32_loaddquhi128_mask.
915 (_mm_maskz_loadu_epi16): Likewise.
916 (_mm256_mask_loadu_epi8): Pass const char * to
917 __builtin_ia32_loaddquqi256_mask.
918 (_mm256_maskz_loadu_epi8): Likewise.
919 (_mm_mask_loadu_epi8): Pass const char * to
920 __builtin_ia32_loaddquqi128_mask.
921 (_mm_maskz_loadu_epi8): Likewise.
922 (_mm256_mask_storeu_epi16): Pass short * to.
923 __builtin_ia32_storedquhi256_mask.
924 (_mm_mask_storeu_epi16): Pass short * to.
925 __builtin_ia32_storedquhi128_mask.
926 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
927 const double * to __builtin_ia32_loadupd256_mask.
928 (_mm256_maskz_loadu_pd): Likewise.
929 (_mm_mask_loadu_pd): Pass onst double * to
930 __builtin_ia32_loadupd128_mask.
931 (_mm_maskz_loadu_pd): Likewise.
932 (_mm256_mask_storeu_pd): Pass double * to
933 __builtin_ia32_storeupd256_mask.
934 (_mm_mask_storeu_pd): Pass double * to
935 __builtin_ia32_storeupd128_mask.
936 (_mm256_mask_loadu_ps): Pass const float * to
937 __builtin_ia32_loadups256_mask.
938 (_mm256_maskz_loadu_ps): Likewise.
939 (_mm_mask_loadu_ps): Pass const float * to
940 __builtin_ia32_loadups128_mask.
941 (_mm_maskz_loadu_ps): Likewise.
942 (_mm256_mask_storeu_ps): Pass float * to
943 __builtin_ia32_storeups256_mask.
944 (_mm_mask_storeu_ps): ass float * to
945 __builtin_ia32_storeups128_mask.
946 (_mm256_mask_loadu_epi64): Pass const long long * to
947 __builtin_ia32_loaddqudi256_mask.
948 (_mm256_maskz_loadu_epi64): Likewise.
949 (_mm_mask_loadu_epi64): Pass const long long * to
950 __builtin_ia32_loaddqudi128_mask.
951 (_mm_maskz_loadu_epi64): Likewise.
952 (_mm256_mask_storeu_epi64): Pass long long * to
953 __builtin_ia32_storedqudi256_mask.
954 (_mm_mask_storeu_epi64): Pass long long * to
955 __builtin_ia32_storedqudi128_mask.
956 (_mm256_mask_loadu_epi32): Pass const int * to
957 __builtin_ia32_loaddqusi256_mask.
958 (_mm256_maskz_loadu_epi32): Likewise.
959 (_mm_mask_loadu_epi32): Pass const int * to
960 __builtin_ia32_loaddqusi128_mask.
961 (_mm_maskz_loadu_epi32): Likewise.
962 (_mm256_mask_storeu_epi32): Pass int * to
963 __builtin_ia32_storedqusi256_mask.
964 (_mm_mask_storeu_epi32): Pass int * to
965 __builtin_ia32_storedqusi128_mask.
966 * config/i386/i386-builtin-types.def (PCSHORT): New.
968 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
969 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
970 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
971 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
972 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
973 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
974 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
975 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
976 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
977 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
978 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
979 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
980 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
981 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
982 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
983 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
984 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
985 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
986 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
987 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
988 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
989 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
990 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
991 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
992 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
993 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
994 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
995 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
996 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
997 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
998 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
999 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1000 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1001 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1002 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1003 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1004 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1005 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1006 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1007 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1008 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1009 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1010 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1011 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1012 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1013 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1014 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1015 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1016 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1018 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1019 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1021 (ix86_expand_vector_move_misalign): Likewise.
1022 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1023 to scalar function prototype for unaligned load/store builtins.
1024 (ix86_expand_special_args_builtin): Updated.
1025 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1026 (UNSPEC_STOREU): Likewise.
1027 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1028 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1029 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1030 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1031 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1032 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1033 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1034 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1035 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1036 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1037 (<avx512>_storedqu<mode>_mask): Likewise.
1038 (*sse4_2_pcmpestr_unaligned): Likewise.
1039 (*sse4_2_pcmpistr_unaligned): Likewise.
1040 (*mov<mode>_internal): Renamed to ...
1041 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1042 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1043 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1044 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1046 2016-04-19 Richard Biener <rguenther@suse.de>
1048 PR tree-optimization/70171
1049 * tree-ssa-phiprop.c: Include stor-layout.h.
1050 (phiprop_insert_phi): Handle the aggregate copy case.
1051 (propagate_with_phi): Likewise.
1053 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1055 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1056 instead of simplify_gen_subreg (... , 0).
1057 (ix86_delegitimize_address): Ditto.
1058 (ix86_split_divmod): Ditto.
1059 (ix86_split_copysign_const): Ditto.
1060 (ix86_split_copysign_var): Ditto.
1061 (ix86_expand_args_builtin): Ditto.
1062 (ix86_expand_round_builtin): Ditto.
1063 (ix86_expand_special_args_builtin): Ditto.
1064 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1065 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1066 (udivmodqi4): Ditto.
1067 (absneg splitters): Ditto.
1068 (*jcc_bt<mode>_1): Ditto.
1070 2016-04-19 Richard Biener <rguenther@suse.de>
1072 PR tree-optimization/70724
1073 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1074 restoring out from ...
1075 (free_scc_vn): ... here.
1076 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1077 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1079 (pass_fre::execute): Restore SSA info.
1081 2016-04-19 Richard Biener <rguenther@suse.de>
1083 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1084 * gimple-walk.c (walk_gimple_op): Initialize it.
1085 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1086 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1087 remapping SSA names of defs.
1088 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1091 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1094 * lra-constraints.c (equiv_substition_p): New.
1095 (process_alt_operands): Use it.
1096 (swap_operands): Swap it.
1097 (curr_insn_transform): Update it.
1099 2016-04-18 Michael Matz <matz@suse.de>
1101 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1102 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1103 * tree-core.h (tree_type_common.align): Use bit-field.
1104 (tree_type_common.spare): New.
1105 (tree_decl_common.off_align): Make smaller.
1106 (tree_decl_common.align): Use bit-field.
1108 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1109 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1110 (scan_sharing_clauses): Ditto.
1111 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1112 (omp_finish_file): Ditto.
1113 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1114 (layout_decl): Ditto.
1115 (relayout_decl): Ditto.
1116 (finalize_record_size): Use SET_TYPE_ALIGN.
1117 (finalize_type_size): Ditto.
1118 (finish_builtin_struct): Ditto.
1119 (layout_type): Ditto.
1120 (initialize_sizetypes): Ditto.
1121 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1122 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1123 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1124 (get_chain_field): Ditto.
1125 (get_trampoline_type): Ditto.
1126 (get_nl_goto_field): Ditto.
1127 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1129 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1130 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1131 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1132 (build_qualified_type): Use SET_TYPE_ALIGN.
1133 (build_aligned_type, build_range_type_1): Ditto.
1134 (build_atomic_base): Ditto.
1135 (build_common_tree_nodes): Ditto.
1136 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1137 (expand_one_stack_var_at): Ditto.
1138 * coverage.c (build_var): Use SET_DECL_ALIGN.
1139 * except.c (init_eh): Ditto.
1140 * function.c (assign_parm_setup_block): Ditto.
1141 * symtab.c (increase_alignment_1): Ditto.
1142 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1143 * tree-vect-stmts.c (ensure_base_align): Ditto.
1144 * varasm.c (align_variable): Ditto.
1145 (assemble_variable): Ditto.
1146 (build_constant_desc): Ditto.
1147 (output_constant_def_contents): Ditto.
1149 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1150 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1151 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1152 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1153 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1155 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1158 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1159 replace %vmovsd with "%vmovq".
1160 (vec_concatv2df): Likewise.
1162 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1164 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1165 (*vec_extractv2si_0): Ditto.
1166 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1167 (zero_extended_scalar_load_operand splitters): Ditto.
1168 (vec_extract splitters): Ditto.
1169 (*vec_extractv4si_0_zext): Ditto.
1170 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1172 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1173 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1174 (*sse4_1_extractps): Use lowpart_subreg.
1176 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1178 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1180 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1181 Mention Solaris 11 packaging changes.
1182 Update gas and gld requirements.
1183 Remove reference to pre-Solaris 10 bug.
1184 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1186 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1189 2016-04-17 Jan Hubicka <jh@suse.cz>
1191 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1192 max_loop_iterations_int.
1194 2016-04-18 Richard Biener <rguenther@suse.de>
1196 PR tree-optimization/43434
1197 * tree-ssa-structalias.c (struct vls_data): New.
1198 (visit_loadstore): Handle all pointer-based accesses.
1199 (compute_dependence_clique): Compute a bitmap of restrict tags
1200 assigned bases and pass it to visit_loadstore.
1202 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
1205 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1206 armv8.1-a and armv8.1-a+crc.
1208 2016-04-18 Richard Biener <rguenther@suse.de>
1210 PR tree-optimization/70701
1211 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1212 references after translating through a memcpy.
1214 2016-04-18 Richard Biener <rguenther@suse.de>
1216 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1217 (compute_antic): ... here. For partial antic use regular
1218 postorder and scrap iteration.
1219 (compute_partial_antic_aux): Remove unused return value.
1220 (init_pre): Do not allocate postorder.
1221 (fini_pre): Do not free postorder.
1223 2016-04-18 Richard Biener <rguenther@suse.de>
1226 * expmed.c (extract_bit_field_1): Remove broken case
1227 using a wider MODE_INT mode.
1229 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1231 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1232 unless compiling with at least GCC-4.8.
1234 2016-04-17 Jan Hubicka <jh@suse.cz>
1237 * graphite.c (graphite_finalize): Update call to
1238 tree_estimate_probability.
1239 * predict.h (tree_estimate_probability): Update prototype.
1241 2016-04-17 Jan Hubicka <jh@suse.cz>
1243 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1244 (tree_estimate_probability): Likewise.
1245 (pass_profile::execute): Update.
1246 (report_predictor_hitrates): New function.
1247 * profile.c (compute_branch_probabilities): Use it.
1248 * predict.h (report_predictor_hitrates): Declare.
1250 2016-04-17 Jan Hubicka <jh@suse.cz>
1253 * cgraph.h (cgraph_node::set_const_flag,
1254 cgraph_node::set_pure_flag): Update prototype to return bool;
1256 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1257 of interposable symbol are interposable, too.
1258 (cgraph_set_const_flag_1): Rename to ...
1259 (set_const_flag_1): ... this one; change to self recursive function
1260 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1261 clearnig the flag in all variants and also virtual thunks of const
1262 functions are pure; track if any change was done.
1263 (cgraph_node::set_const_flag): Update.
1264 (struct set_pure_flag_info): New struct.
1265 (cgraph_set_pure_flag_1): Rename to ...
1266 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1267 rather than pointer encoded flags; track if any changes was done;
1268 handle correctly clearning flag and setting flag of aliases already
1270 (cgraph_node::set_pure_flag): Update.
1271 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1273 2016-04-17 Tom de Vries <tom@codesourcery.com>
1276 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1279 2016-04-17 Tom de Vries <tom@codesourcery.com>
1281 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1282 '{}<> ' as escape-for-record.
1284 2016-04-17 Tom de Vries <tom@codesourcery.com>
1286 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1289 2016-04-17 Tom de Vries <tom@codesourcery.com>
1292 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1293 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1294 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1295 * passes.c (finish_optimization_passes): Only call
1296 finish_graph_dump_file if dfi->graph_dump_initialized.
1297 (execute_function_dump, pass_init_dump_file): Use
1298 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1300 2016-04-17 Tom de Vries <tom@codesourcery.com>
1302 PR tree-optimization/70256
1303 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1304 (debug_varmap): New function.
1306 2016-04-17 Tom de Vries <tom@codesourcery.com>
1309 * passes.c (pass_manager::register_pass): Propagate pflags.
1311 2016-04-17 Tom de Vries <tom@codesourcery.com>
1314 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1315 * passes.c (pass_manager::pass_manager): Declare and init p_start in
1316 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
1317 check if it's equal to p_start.
1318 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1320 2016-04-15 Jan Hubicka <jh@suse.cz>
1323 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1324 function does not bind to current def.
1325 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1326 handle conservatively calls to functions that does not need to bind
1328 (check_call): Update call of worse_state.
1329 (ignore_edge_for_nothrow): Update.
1330 (ignore_edge_for_pure_const): Likewise.
1331 (propagate_pure_const): Update calls to worse_state.
1332 (skip_function_for_local_pure_const): Reformat comments.
1334 2016-04-15 Jan Hubicka <jh@suse.cz>
1337 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1338 (cgraph_node::function_symbol): Likewise.
1339 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1340 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1341 (symtab_node::ultimate_alias_target): Add REF parameter.
1342 (symtab_node::binds_to_current_def_p): Declare.
1343 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1344 (cgraph_node::function_symbol): Likewise.
1345 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1346 (cgraph_node::get_availability): Likewise.
1347 (cgraph_edge::binds_to_current_def_p): New inline function.
1348 (varpool_node::get_availability): Add REF parameter.
1349 (varpool_node::ultimate_alias_target): Likewise.
1350 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1351 (symtab_node::binds_to_current_def_p): Likewise.
1352 * varpool.c (varpool_node::get_availability): Likewise.
1354 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1357 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1358 Fix mode size check.
1360 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1362 * BASE-VER: Set to 7.0.0.
1364 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
1366 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1368 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1370 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1371 architecture revisions.
1373 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
1375 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1376 * config/i386/i386.c (ix86_using_red_zone): No longer static.
1377 * config/i386/i386.md (stack decrement to push peepholes): Guard
1378 with !x86_using_red_zone ().
1380 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1383 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1384 to dump_generic_node.
1385 (NIY): Pass also flags to do_niy.
1387 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
1389 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1390 (simd_clone_vector_of_formal_parm_types)
1391 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1392 (simd_clone_mangle, simd_clone_create)
1393 (simd_clone_adjust_return_type, create_tmp_simd_array)
1394 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1395 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1396 (ipa_simd_modify_function_body, simd_clone_linear_addend)
1397 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1398 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1399 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1400 * omp-simd-clone.c: ... this new file.
1401 (simd_clone_vector_of_formal_parm_types): Make it static.
1402 * Makefile.in (OBJS): Add omp-simd-clone.o.
1404 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1407 * config/i386/sse.md: Use proper memory operand modifiers.
1410 2016-04-15 Richard Biener <rguenther@suse.de>
1411 Alan Modra <amodra@gmail.com>
1413 PR tree-optimization/70130
1414 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1415 when alignment stays not the same and no not use the realign
1418 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1421 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1422 direct move handlers for KFmode. Change TFmode handlers test from
1423 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1425 2016-04-14 Jakub Jelinek <jakub@redhat.com>
1428 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1429 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1430 (inlined_polymorphic_ctor_dtor_block_p): Use it.
1431 * tree-ssa-live.c (remove_unused_scope_block_p): When
1432 in_ctor_dtor_block, avoid discarding not just BLOCKs with
1433 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1434 block_ultimate_origin is FUNCTION_DECL.
1435 (remove_unused_locals): If current_function_decl is
1436 polymorphic_ctor_dtor_p, pass initial true to
1437 remove_unused_scope_block_p' is_ctor_dtor_block.
1439 2016-04-14 Martin Sebor <msebor@redhat.com>
1444 * doc/extend.texi (Variable Length): Revert.
1446 2016-04-14 Marek Polacek <polacek@redhat.com>
1447 Jan Hubicka <hubicka@ucw.cz>
1450 * tree.c (verify_type): Disable the canonical type of main variant
1453 2016-04-14 Jason Merrill <jason@redhat.com>
1455 * cfgexpand.c, expr.c: Revert previous change.
1457 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1460 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1461 when building a mem ref for the incoming reduction variable.
1463 2016-04-14 Richard Biener <rguenther@suse.de>
1465 PR tree-optimization/70614
1466 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1467 loop if the evolution dropped to chrec_dont_know.
1468 (interpret_condition_phi): Likewise.
1470 2016-04-14 Richard Biener <rguenther@suse.de>
1472 PR tree-optimization/70623
1473 * tree-ssa-pre.c (changed_blocks): Make global ...
1474 (compute_antic): ... local here. Move and fix worklist
1475 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1476 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
1477 worklist handling, dump when ANTIC_IN changed.
1478 (compute_partial_antic_aux): Remove worklist handling.
1479 (init_pre): Do not compute post dominators. Add a comment about
1480 the CFG order chosen.
1481 (fini_pre): Do not free post dominators.
1483 2016-04-13 Martin Sebor <msebor@redhat.com>
1488 * doc/extend.texi (Variable Length): Document C++ specifics.
1490 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1493 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1494 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
1495 eh edges have been purged.
1498 * tree-sra.c (create_access_replacement,
1499 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1501 * tree-pretty-print.c (dump_fancy_name): New function.
1502 (dump_decl_name, dump_generic_node): Use it.
1504 2016-04-13 Jason Merrill <jason@redhat.com>
1506 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1507 * expr.c (expand_expr_real_1): Likewise.
1509 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
1511 * config/i386/i386.md (kunpckhi): Swap operands.
1512 (kunpcksi): Likewise.
1513 (kunpckdi): Likewise.
1514 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1515 (vec_pack_trunc_<mode>): Likewise.
1517 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1520 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1523 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1524 gimplification turns some element into non-constant.
1527 * rtl.h (convert_memory_address_addr_space_1): New prototype.
1528 * explow.c (convert_memory_address_addr_space_1): No longer static,
1529 add NO_EMIT argument and don't call convert_modes if true, pass
1530 it down recursively, remove break after return.
1531 (convert_memory_address_addr_space): Adjust caller.
1532 * simplify-rtx.c (simplify_unary_operation_1): Call
1533 convert_memory_address_addr_space_1 instead of convert_memory_address,
1534 if it returns NULL, don't simplify.
1536 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
1539 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
1541 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1543 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1544 Bump the upper SIMDLEN limits, so that if the return type or
1545 characteristic type if the return type is void can be passed in
1546 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
1549 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1552 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
1553 Do not use "=" constraint on an input constraint.
1554 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1555 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1556 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
1557 generates (neg (abs ...)) instead of (abs ...).
1559 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1561 PR rtl-optimization/70596
1562 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
1563 just invalidate LRA data and reset them. Adjust dump wording.
1565 2016-04-12 Martin Liska <mliska@suse.cz>
1568 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1570 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1572 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1573 max_loop_iterations_int.
1574 (tree_unswitch_outer_loop): Likewise.
1575 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1576 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1578 2016-04-12 Tom de Vries <tom@codesourcery.com>
1580 PR tree-optimization/68756
1581 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
1582 instead of new_name.
1584 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1586 PR tree-optimization/70602
1587 * tree-sra.c (generate_subtree_copies): Don't write anything into
1588 constant pool decls.
1590 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
1591 regardless whether there are depend clauses or not.
1593 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1596 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
1597 target attribute and pragma from changing the -mfloat128
1598 and -mfloat128-hardware options.
1600 * doc/extend.texi (Additional Floating Types): Document PowerPC
1601 __float128 restrictions.
1603 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1606 * config/aarch64/driver-aarch64.c
1607 (aarch64_get_extension_string_for_isa_flags): New.
1608 (arch_extension): Rename to...
1609 (aarch64_arch_extension): ...This.
1610 (ext_to_feat_string): Rename to...
1611 (aarch64_extensions): ...This.
1612 (aarch64_core_data): Keep track of architecture extension flags.
1613 (cpu_data): Rename to...
1614 (aarch64_cpu_data): ...This.
1615 (aarch64_arch_driver_info): Keep track of architecture extension
1617 (get_arch_name_from_id): Rename to...
1618 (get_arch_from_id): ...This, change return type.
1619 (host_detect_local_cpu): Update and reformat for renames, handle
1620 extensions through common infrastructure.
1622 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1625 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
1626 track of a canonical flag name.
1627 (all_extensions): Likewise.
1628 (arch_to_arch_name): Also track extension flags enabled by the arch.
1629 (all_architectures): Likewise.
1630 (aarch64_parse_extension): Move to here.
1631 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
1633 (aarch64_rewrite_selected_cpu): Update for above change.
1634 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
1635 are handled, such that the single explicit value enabled by an
1636 extension is kept seperate from the implicit values it also enables.
1637 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
1639 (aarch64_parse_extension): New.
1640 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
1641 here to config/aarch64/aarch64-protos.h.
1642 (aarch64_parse_extension): Move from here to
1643 common/config/aarch64/aarch64-common.c.
1644 (aarch64_option_print): Update.
1645 (aarch64_declare_function_name): Likewise.
1646 (aarch64_start_file): Likewise.
1647 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
1648 the canonical flag for extensions.
1649 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
1652 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1654 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
1657 2016-04-09 Tom de Vries <tom@codesourcery.com>
1659 PR tree-optimization/68953
1660 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
1661 first to last subscript.
1663 2016-04-09 Jakub Jelinek <jakub@redhat.com>
1665 PR tree-optimization/70586
1666 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
1669 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1673 PR tree-optimization/70373
1677 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
1678 clauses for acc parallel reductions as necessary. Error on those
1680 * omp-low.c (scan_sharing_clauses): Don't install variables which
1681 are used in acc parallel reductions.
1682 (lower_rec_input_clauses): Remove dead code.
1683 (lower_oacc_reductions): Add support for reference reductions.
1684 (lower_reduction_clauses): Remove dead code.
1685 (lower_omp_target): Don't remap variables appearing in acc parallel
1687 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
1689 2016-04-08 Jakub Jelinek <jakub@redhat.com>
1692 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
1693 with multiple SSA_NAME defs, force the outputs other than first
1694 to be live before calling live_track_process_def on each output.
1696 PR rtl-optimization/70574
1697 * fwprop.c (forward_propagate_and_simplify): Don't add
1698 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
1699 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
1700 paradoxical subregs within *loc.
1702 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
1704 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
1705 -ftree-parallelize-loops={0,1}.
1706 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1707 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1708 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1709 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1710 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1712 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
1715 * asan.c (instrument_derefs): If we get unknown location, extract it
1717 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
1719 2016-04-08 Tom de Vries <tom@codesourcery.com>
1721 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
1722 implicit firstprivate clause.
1724 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1727 * config/arm/thumb2.md (tst + branch-> lsls + branch
1728 peephole below *orsi_not_shiftsi_si): Require that condition
1729 register is dead after the peephole.
1730 (second peephole after the above): Likewise.
1732 2016-04-08 Alan Modra <amodra@gmail.com>
1735 * builtins.c (fold_builtin_classify): For IBM extended precision,
1736 look at just the high-order double to test for NaN.
1737 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
1738 test just the high double for Inf but both doubles for subnormal
1741 2016-04-07 Jakub Jelinek <jakub@redhat.com>
1743 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
1744 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
1745 node->simdclone->mask_mode != VOIDmode masks.
1746 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
1747 earlier, use it instead of node->simdclone.
1748 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1749 Set clonei->mask_mode.
1751 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1754 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
1755 Pass it through to cp_parser_already_scoped_statement.
1756 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
1757 it through to cp_parser_statement.
1758 (cp_parser_statement): Pass IF_P through to
1759 cp_parser_iteration_statement.
1760 (cp_parser_pragma): Adjust call to
1761 cp_parser_iteration_statement.
1763 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1766 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
1767 resolve a future -Wparentheses warning.
1768 * omp-low.c (scan_sharing_clauses): Likewise.
1769 * tree-parloops.c (eliminate_local_variables): Likewise.
1771 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
1773 PR rtl-optimization/70398
1774 * lra-constraints.c (process_address_1): Check zero scale and code
1775 for reloading with zero scale.
1777 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
1779 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
1780 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
1782 2016-04-06 Jakub Jelinek <jakub@redhat.com>
1784 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1785 Add support for AVX512F clones, include them by default for
1786 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
1787 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
1791 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
1792 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
1793 firstprivate clauses.
1794 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
1795 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
1796 (lower_omp_target): Set TREE_NO_WARNING for
1797 non-addressable possibly uninitialized vars which are copied into
1798 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
1800 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
1802 * config/pa/predicates.md (integer_store_memory_operand): Accept
1803 REG+D operands with a large offset when reload_in_progress is true.
1804 (floating_point_store_memory_operand): Likewise.
1806 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1809 * match.pd (nested int casts): Limit to GIMPLE.
1811 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
1814 * ipa-devirt.c (maybe_record_node): Fix comment; use
1815 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
1817 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1819 PR rtl-optimization/70542
1820 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
1821 if there are any uses other than insn or debug insns.
1823 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
1824 Jakub Jelinek <jakub@redhat.com>
1826 PR tree-optimization/70509
1827 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
1828 Shift HOST_WIDE_INT_1U instead of 1.
1830 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
1832 PR tree-optimization/70509
1833 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
1834 of the vector base type for index.
1836 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
1839 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
1841 2016-04-05 Richard Biener <rguenther@suse.de>
1843 PR tree-optimization/70526
1844 * tree-sra.c (build_ref_for_offset): Use prev_base to
1845 extract the alias pointer type.
1847 2016-04-05 Richard Biener <rguenther@suse.de>
1849 * dse.c (struct store_info): Remove alias_set member.
1850 (struct read_info_type): Likewise.
1851 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
1852 spill_deleted, clear_alias_set_lookup): Remove.
1853 (get_group_info): Remove dead base == NULL_RTX case.
1854 (dse_step0): Remove initialization of removed variables.
1855 (delete_dead_store_insn): Reomve alias set dumping.
1856 (free_read_records): Remove alias_set handling.
1857 (canon_address): Remove alias_set_out parameter.
1858 (record_store): Remove spill_alias_set, it's always zero.
1859 (check_mem_read_rtx): Likewise.
1860 (dse_step2): Rename from ...
1861 (dse_step2_nospill): ... this. Adjust.
1862 (scan_stores): Rename from ...
1863 (scan_stores_nospill): ... this.
1864 (scan_reads): Rename from ...
1865 (scan_reads_nospill): ... this.
1866 (scan_stores_spill, scan_reads_spill): Remove.
1867 (dse_step3_scan): Remove for_spills argument which is always false.
1868 (dse_step3): Likewise.
1869 (dse_step5): Rename from ...
1870 (dse_step5_nospill): ... this. Remove alias_set handling.
1871 (rest_of_handle_dse): Adjust.
1873 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1876 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
1877 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
1878 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
1879 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
1881 2016-04-05 Richard Biener <rguenther@suse.de>
1884 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
1885 non-register type temporaries into SSA.
1887 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
1890 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
1891 calls when sanitizing.
1892 (possible_polymorphic_call_target_p): Fix formatting.
1894 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1895 Jakub Jelinek <jakub@redhat.com>
1898 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
1899 to ensure a call statement is compatible with a built-in's
1901 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
1904 2016-04-04 Richard Biener <rguenther@suse.de>
1906 PR rtl-optimization/70484
1907 * rtl.h (canon_output_dependence): Declare.
1908 * alias.c (canon_output_dependence): New function.
1909 * dse.c (record_store): Use canon_output_dependence rather
1910 than canon_true_dependence.
1912 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1915 * cgraph.h (symtab_node::copy_visibility_from): New function.
1916 * symtab.c (symtab_node::copy_visibility_from): New function.
1917 * ipa-visibility.c (optimize_weakref): New function.
1918 (function_and_variable_visibility): Use it.
1920 2016-04-04 Martin Liska <mliska@suse.cz>
1923 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
1924 value that is really in range handled by SBR instruction.
1925 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
1926 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
1927 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
1929 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
1933 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
1934 set, but not for SP_REG operands.
1936 2016-04-02 Martin Sebor <msebor@redhat.com>
1939 * fold-const.c (maybe_nonzero_address): New function.
1940 (fold_comparison): Call it. Fold equality and relational
1941 expressions involving null pointers.
1942 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
1944 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
1946 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
1947 the "Y" constraint (scalar FP 0.0 immediate).
1949 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
1950 Add the "const_double" to the list of operand constraints.
1952 2016-04-01 Jakub Jelinek <jakub@redhat.com>
1954 PR rtl-optimization/70467
1955 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
1956 If low word of the last operand is 0, just emit addition/subtraction
1959 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1962 * config/s390/s390.c (s390_expand_insv): Check for everything
1963 constant instead of just VOIDmode stuff.
1965 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1968 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
1970 2016-04-01 Nathan Sidwell <nathan@acm.org>
1972 * tree.def (TRY_CATCH_EXPR): Correct documentation.
1974 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
1976 PR rtl-optimization/70461
1977 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
1980 2016-03-31 Martin Liska <mliska@suse.cz>
1983 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
1984 a tree value or an immediate integer value to a buffer
1985 that is eventually copied to a BRIG section.
1986 (emit_immediate_operand): Call the function here.
1987 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
1988 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
1989 of class' fields that are removed.
1990 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
1991 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
1992 m_brig_repr_size fields.
1994 2016-03-31 Martin Liska <mliska@suse.cz>
1997 * hsa-gen.c (hsa_function_representation::update_dominance): New
1999 (convert_addr_to_flat_segment): Likewise.
2000 (gen_hsa_memory_set): New alignment argument.
2001 (gen_hsa_ctor_assignment): Likewise.
2002 (gen_hsa_insns_for_single_assignment): Provide alignment
2003 to gen_hsa_ctor_assignment.
2004 (gen_hsa_insns_for_direct_call): Add new argument.
2005 (expand_lhs_of_string_op): New function.
2006 (expand_string_operation_builtin): Likewise.
2007 (expand_memory_copy): New function.
2008 (expand_memory_set): New function.
2009 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2010 (convert_switch_statements): Change signature.
2011 (generate_hsa): Use a return value of the function.
2012 (pass_gen_hsail::execute): Do not call
2013 convert_switch_statements here.
2014 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2015 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2016 (hsa_function_representation::update_dominance): New function.
2018 2016-03-31 Martin Liska <mliska@suse.cz>
2021 * hsa-brig.c (emit_directive_variable): Emit alignment
2022 according to hsa_symbol::m_align.
2023 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2024 (dump_hsa_symbol): Dump alignment of HSA symbols.
2025 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2026 (gen_hsa_addr_with_align): New function.
2027 (hsa_bitmemref_alignment): Use newly added function.
2028 (gen_hsa_insns_for_load): Likewise.
2029 (gen_hsa_insns_for_store): Likewise.
2030 (gen_hsa_memory_copy): New argument added.
2031 (gen_hsa_insns_for_single_assignment): Respect
2032 alignment for assignments processed via gen_hsa_memory_copy.
2033 (gen_hsa_insns_for_direct_call): Likewise.
2034 (gen_hsa_insns_for_return): Likewise.
2035 (gen_function_def_parameters): Set default alignment.
2036 * hsa.c (hsa_object_alignment): New function.
2037 (hsa_byte_alignment): Pasted function.
2038 * hsa.h (hsa_symbol::m_align): New field.
2040 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2042 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2043 scratch field for goto case.
2045 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2047 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2049 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2052 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2053 (scalar_chain::convert_insn): Call convert_op for reg
2054 moves to handle undefined registers.
2056 2016-03-31 Nathan Sidwell <nathan@acm.org>
2059 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2060 Assert we don't want to move backwards.
2062 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2065 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2067 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2069 PR rtl-optimization/70460
2070 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2071 with operand from REG_LABEL_OPERAND, instead substitute
2072 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2073 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2075 2016-03-31 Martin Liska <mliska@suse.cz>
2077 * passes.c (execute_one_pass): Do not call
2078 todo_after for a discarded function.
2080 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2082 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2083 (no_cost, infinite_cost): Initialize the new field.
2084 (get_computation_cost_at): Record setup cost.
2085 (determine_use_iv_cost_address): Skip cost computation for sub
2086 uses if we can estimate it without losing accuracy.
2088 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2090 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2092 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2093 max_loop_iterations_int.
2094 (tree_unswitch_outer_loop): Likewise.
2095 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2096 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2098 2016-03-30 Richard Biener <rguenther@suse.de>
2101 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2103 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2106 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2107 in gen_blendm expander.
2109 2016-03-30 Nick Clifton <nickc@redhat.com>
2112 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2113 case where we are already provided with an SImode SUBREG.
2115 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2118 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2119 conflict between DRAP register and __builtin_eh_return.
2121 2016-03-30 Michael Matz <matz@suse.de>
2122 Richard Biener <rguenther@suse.de>
2125 * ipa-polymorphic-call.c (struct type_change_info): Change
2126 speculative to an unsigned allowing to limit the work we do.
2127 (csftc_abort_walking_p): New inline function..
2128 (check_stmt_for_type_change): Limit the number of may-defs
2129 skipped for speculative devirtualization to
2130 max-speculative-devirt-maydefs.
2131 * params.def (max-speculative-devirt-maydefs): New param.
2132 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2134 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2137 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2140 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2142 PR tree-optimization/59124
2143 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2144 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2146 2016-03-29 Jeff Law <law@redhat.com>
2148 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2150 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2152 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2155 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2157 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2158 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2159 gcrt0.o if linking dynamically.
2161 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2164 * ipa-devirt.c (methods_equal_p): New function.
2165 (compare_virtual_tables): Use it.
2166 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2167 * cgraphclones.c (clone_function_name_1): Use
2168 symbol_table::symbol_suffix_separator.
2169 * coverage.c (build_var): Likewise.
2170 * symtab.c (symbol_table::symbol_suffix_separator): New.
2172 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2174 PR rtl-optimization/70429
2175 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2176 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2177 mode != result_mode.
2180 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2182 PR tree-optimization/70405
2183 * ssa-iterators.h (num_imm_uses): Add missing braces.
2185 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
2187 PR rtl-optimization/68695
2188 * ira-color.c (allocno_copy_cost_saving): New.
2189 (improve_allocation): Use it.
2191 2016-03-29 Richard Henderson <rth@redhat.com>
2194 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2196 2016-03-29 Richard Biener <rguenther@suse.de>
2199 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2200 use alignment returned by get_pointer_alignment_1 if it is
2201 bigger than BITS_PER_UNIT.
2202 * builtins.c (get_pointer_alignment_1): Do not return true
2203 for alignment extracted from SSA info.
2205 2016-03-28 James Bowman <james.bowman@ftdichip.com>
2207 * config/ft32/ft32.opt (mnodiv): New.
2208 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2209 * doc/invoke.texi (FT32 Options -mnodiv): New.
2211 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
2214 * config/i386/i386.md (define_split, andn): Fix modes.
2216 2016-03-26 Richard Biener <rguenther@suse.de>
2217 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2220 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2222 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2223 as 2nd argument to cl_optimization_restore().
2225 2016-03-25 Richard Henderson <rth@redhat.com>
2228 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2229 * config/aarch64/aarch64-protos.h: Declare it.
2230 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2232 2016-03-25 Alan Modra <amodra@gmail.com>
2235 * config/rs6000/constraints.md (j): Simplify.
2236 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2238 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2239 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2240 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2241 in all constraint alternatives.
2242 (movtd_64bit_nodm): Delete "j" constraint alternative.
2244 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2246 * tree-ssa-propagate.c: Enhance docs for
2247 SSA_PROP_NOT_INTERESTING.
2249 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2251 * doc/extend.texi: Fix typo in documentation to pure attribute.
2253 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2256 * config/pa/pa.md (bswapdi2): Use a scratch register.
2258 2016-03-24 Richard Henderson <rth@redhat.com>
2261 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2264 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2266 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2267 using ix86_expand_binary_operator instead of gen_andsi3.
2269 2016-03-24 Richard Biener <rguenther@suse.de>
2271 PR tree-optimization/70396
2272 * tree-vect-stmts.c (vectorizable_comparison): Use
2273 get_vectype_for_scalar_type.
2275 2016-03-24 Richard Biener <rguenther@suse.de>
2278 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2279 with register bases.
2281 2016-03-24 Richard Biener <rguenther@suse.de>
2283 PR tree-optimization/70372
2284 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2285 build_all_ones_cst to also handle vector types correctly.
2287 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2290 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2293 2016-03-23 Marek Polacek <polacek@redhat.com>
2296 * doc/invoke.texi: Document -Wignored-attributes.
2298 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2300 PR tree-optimization/69042
2301 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2302 parameter from 30 to 40.
2304 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2306 PR tree-optimization/69042
2307 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2308 for use with constant offset stripped in base.
2310 2016-03-23 Richard Biener <rguenther@suse.de>
2313 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2314 mode compatibility check.
2315 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2317 2016-03-23 Jeff Law <law@redhat.com>
2319 PR tree-optimization/64058
2320 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2322 (struct ssa_conflicts): Move up earlier in the file.
2323 (conflicts_, var_map_): New static variables.
2324 (initialize_conflict_count): New function to initialize the
2325 CONFLICT_COUNT field for each conflict pair.
2326 (compare_pairs): Lazily initialize the conflict count and use it
2327 as the first tie-breaker.
2328 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
2329 and wipe conflicts_ and map_ around the call to qsort. Remove
2330 special case for 2 coalesce pairs.
2331 * bitmap.c (bitmap_count_unique_bits): New function.
2332 (bitmap_count_bits_in_word): New function, extracted from
2334 (bitmap_count_bits): Use bitmap_count_bits_in_word.
2335 * bitmap.h (bitmap_count_unique_bits): Declare it.
2337 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2340 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2341 transparent alias chain for decl assembler name.
2342 * config/sol2.c (solaris_assemble_visibility): Likewise.
2344 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2346 * config/arm/arm1020e.md (1020call_op): Reduce reservation
2348 (v10_fdivs): Likewise.
2349 (v10_fdivd): Likewise.
2351 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2354 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2355 to not call fclose twice on file.
2357 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2359 PR tree-optimization/70354
2360 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2361 oprnd0 is wider than oprnd1 and there is a cast from the wider
2362 type to oprnd1, mask it with the mask of the narrower type.
2365 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2366 Optimize TARGET_STV splitters, if high or low word of last argument
2369 2016-03-22 Jeff Law <law@redhat.com>
2372 tree-ssa-threadbackward.c
2373 (fsm_find_control_statement_thread_paths): Correctly distinguish
2374 between old style jump threads vs FSM jump threads.
2376 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2379 * config/i386/i386.c (scalar_chain::convert_op): Support
2380 uninitialized register usage case.
2382 2016-03-22 Richard Biener <rguenther@suse.de>
2385 * genmatch.c (gen_transform): Adjust last parameter to a three-state
2387 (capture::gen_transform): ... to change behavior when substituting
2388 a condition into cond or not-cond expr context.
2389 (dt_simplify::gen_1): Adjust.
2390 * gimple-match-head.c: Include gimplify.h for unshare_expr.
2391 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2392 last change and instead change to
2393 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2394 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2396 2016-03-22 Anthony Green <green@moxielogic.com>
2398 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
2399 issue for moxiebox targets.
2400 (CC1PLUS_SPEC): Ditto.
2402 2016-03-22 Richard Biener <rguenther@suse.de>
2405 * fold-const.c (extract_muldiv_1): Properly perform multiplication
2408 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2410 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2412 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2415 * config/i386/i386.c (def_builtin): Handle
2416 OPTION_MASK_ISA_AVX512VL to be and-ed with other
2418 (const struct builtin_description bdesc_special_args[]):
2419 Remove duplicate ISA bits.
2421 2016-03-22 Jakub Jelinek <jakub@redhat.com>
2424 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2425 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
2426 in a way that works also for AVX512BW.
2429 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2430 instead of source if operands[1] is xmm16 and above and
2431 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
2432 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2435 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2436 on assign if (*from_p) is a comparison, set it to
2437 TREE_NO_WARNING (*from_p).
2439 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2442 * lra.c (restore_scratches): Ignore deleted insns.
2444 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
2445 Jakub Jelinek <jakub@redhat.com>
2447 PR tree-optimization/70317
2448 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2451 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
2454 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2455 of ix86_expand_move.
2457 (movti): Use general_operand for operand 1 predicate.
2459 2016-03-21 Martin Liska <mliska@suse.cz>
2461 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2463 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2465 2016-03-21 Martin Liska <mliska@suse.cz>
2468 * ipa-icf.c (sem_function::parse): Skip static
2469 constructors and destructors.
2471 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2474 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2475 function-like macro, peek following token(s) if it is followed
2476 by CPP_OPEN_PAREN token with optional padding in between, and
2477 if not, don't treat it like a macro.
2479 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
2480 Alexander Monakov <amonakov@ispras.ru>
2482 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2483 for the stabs debug format.
2485 2016-03-21 Richard Biener <rguenther@suse.de>
2487 PR tree-optimization/70310
2488 * tree-vect-generic.c (expand_vector_condition): Fold the built
2491 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
2494 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2495 Block third alternative for AVX-512VL target,
2497 2016-03-21 Martin Liska <mliska@suse.cz>
2500 * hsa-brig.c (emit_function_directives): Mark unemitted
2501 global variables for emission.
2502 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2503 (get_symbol_for_decl): Likewise.
2504 * hsa.h (struct hsa_symbol): New flag.
2506 2016-03-21 Richard Biener <rguenther@suse.de>
2508 PR tree-optimization/70288
2509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2510 we do not estimate unsimplified all-constant conditionals or
2511 switches as optimized away.
2513 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
2515 PR rtl-optimization/69102
2516 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2517 when we have a readonly dependency context.
2519 2016-03-18 Jeff Law <law@redhat.com>
2521 PR rtl-optimization/70263
2522 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2523 (update_equiv_regs): When trying to move a store to after the insn
2524 that sets the source of the store, make sure the store occurs after
2525 the insn that sets the source of the store. When successful note
2526 the REG_EQUIV note created in the dump file.
2528 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
2529 Bernd Schmidt <bschmidt@redhat.com>
2531 * doc/extend.texi: Document more potential problems with basic asms.
2533 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
2535 PR rtl-optimization/70278
2536 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
2539 2016-03-18 Jason Merrill <jason@redhat.com>
2541 * calls.c (load_register_parameters): Fix zero size sibcall logic.
2543 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
2545 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
2546 values to 128b regs.
2548 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2550 PR tree-optimization/70252
2551 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
2552 boolean vector has a proper number of elements.
2553 (supportable_narrowing_operation): Likewise.
2555 2016-03-18 Tom de Vries <tom@codesourcery.com>
2558 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
2560 2016-03-18 Jakub Jelinek <jakub@redhat.com>
2562 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
2563 instead of replace_rtx for DEBUG_INSNs.
2565 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2567 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
2568 load type reservations.
2570 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
2573 * config/pa/constraints.md: Revert 2015-02-13 change. Use
2574 define_constraint for "Q" and "T" constraints.
2576 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
2578 Tweak the pipeline model for Exynos M1
2580 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
2583 2016-03-17 David Malcolm <dmalcolm@redhat.com>
2586 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
2587 where one or both locations aren't within a line_map.
2589 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
2592 * opts.c (finish_options): Don't set flag_pie to the default if
2593 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
2596 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
2598 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
2599 true as ALL_REGS argument to replace_rtx.
2601 2016-03-17 Richard Biener <rguenther@suse.de>
2604 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
2607 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2610 * rtl.h (replace_rtx): Add ALL_REGS argument.
2611 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
2612 equality and assert mode is the same, instead of just rtx pointer
2614 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
2615 true as ALL_REGS argument to replace_rtx.
2617 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2619 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
2620 for boolean vector with vector mode only.
2621 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2623 2016-03-17 Nick Clifton <nickc@redhat.com>
2626 * config/rx/rx.c (rx_print_integer): Print negative constants in
2629 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2632 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
2634 2016-03-16 Richard Henderson <rth@redhat.com>
2635 Richard Biener <rguenth@suse.de>
2640 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
2641 first operand as is_gimple_condexpr.
2646 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
2647 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
2648 Do not gimplify the result.
2649 (do_unop): Adjust call to tree_vec_extract.
2650 (do_binop): Likewise.
2651 (do_compare): Likewise.
2652 (do_plus_minus): Likewise.
2653 (do_negate): Likewise.
2654 (expand_vector_condition): Likewise.
2655 (do_cond): Likewise.
2657 2016-03-16 Richard Henderson <rth@redhat.com>
2660 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
2661 (aarch64_classify_address): Use it.
2662 (aarch64_legitimize_address): Force all subexpressions of PLUS
2663 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
2665 2016-03-16 Jakub Jelinek <jakub@redhat.com>
2666 Richard Biener <rguenth@suse.de>
2669 * rtlanal.c (replace_rtx): For REG, if from is a REG,
2670 return to even if only REGNO is equal, and assert
2673 2016-03-11 Jeff Law <law@redhat.com>
2675 PR rtl-optimization/70224
2676 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
2678 2016-03-16 Richard Henderson <rth@redhat.com>
2681 * function.h (struct function): Add has_forced_label_in_static.
2682 * gimplify.c (force_labels_r): Set it.
2683 * lto-streamer-in.c (input_struct_function_base): Read it.
2684 * lto-streamer-out.c (output_struct_function_base): Write it.
2685 * tree-inline.c (has_label_address_in_static_1): Remove.
2686 (copy_forbidden): Remove fndecl parameter; test
2687 has_forced_label_in_static.
2688 (inline_forbidden_p): Update call to copy_forbidden.
2689 (tree_versionable_function_p): Likewise.
2690 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
2691 (chkp_versioning): Likewise.
2692 * tree-inline.h (copy_forbidden): Update decl.
2694 2016-03-16 Marek Polacek <polacek@redhat.com>
2697 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
2698 function being thunked if the result type doesn't have fixed size.
2699 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
2700 doesn't have fixed size.
2702 2016-03-16 Bin Cheng <bin.cheng@arm.com>
2704 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
2705 reporting malformed loop nest.
2707 2016-03-16 Tom de Vries <tom@codesourcery.com>
2710 * ipa-devirt.c (possible_polymorphic_call_targets): Move
2711 nodes.length () == 1 test to before first nodes[0] access.
2713 2016-03-16 Tom de Vries <tom@codesourcery.com>
2715 PR tree-optimization/68715
2716 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
2719 2016-03-16 Tom de Vries <tom@codesourcery.com>
2721 PR tree-optimization/68809
2722 * graphite-scop-detection.c (same_close_phi_node): Test if result types
2725 2016-03-16 Carlos O'Donell <carlos@redhat.com>
2726 Sandra Loosemore <sandra@codesourcery.com>
2728 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
2729 on leaf attribute. Mention ELF interposition problems.
2731 2016-03-16 Alan Modra <amodra@gmail.com>
2733 PR rtl-optimization/69195
2734 PR rtl-optimization/47992
2735 * ira.c (indirect_jump_optimize): Ignore artificial defs.
2738 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
2741 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
2743 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2745 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
2747 2016-03-15 Jakub Jelinek <jakub@redhat.com>
2749 PR rtl-optimization/70222
2750 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
2751 optimization if mode is different from result_mode, queue up masking
2752 of the result in outer_op. Formatting fix.
2755 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
2758 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2760 PR rtl-optimization/69032
2761 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
2762 looping backwards over basic block insns.
2764 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2767 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
2768 to non-speculative when propagating trap bits.
2770 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2772 PR rtl-optimization/63384
2773 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
2776 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2779 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
2780 factored out from ...
2781 (sched_analyze_insn): ... here.
2782 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
2783 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
2784 get_implicit_reg_pending_clobbers in it.
2785 (setup_id_reg_sets): Use setup_id_implicit_regs.
2786 (deps_init_id): Ditto.
2788 2016-03-15 Tom de Vries <tom@codesourcery.com>
2791 * cgraph.c (cgraph_node::get_body): Save, reset and restore
2793 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
2794 execute_function_dump.
2795 (execute_one_pass): Don't dump function if it will be dumped after ipa
2798 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
2800 * genrecog.c (match_pattern_2): If pred is NULL don't call
2801 safe_predicate_mode on it.
2803 2016-03-14 Jakub Jelinek <jakub@redhat.com>
2806 * lra-constraints.c (delete_move_and_clobber): Change assertion
2807 to also allow dregno == 0.
2809 2016-03-14 Richard Henderson <rth@redhat.com>
2812 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
2813 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
2814 (reassociate_bb): Use optimize_vec_cond_expr; avoid
2815 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
2818 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
2821 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
2823 (lra_create_live_ranges_1): initialize hard register biggest_mode to
2825 * lra-constraints.c (split_reg): For hard regs, try to find the
2826 biggest single-register mode used in the function.
2828 2016-03-14 Richard Biener <rguenther@suse.de>
2830 PR tree-optimization/56365
2831 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
2832 constants to compare against.
2834 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
2837 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2838 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
2839 (define_split for the GPR case): Use int_reg_operand instead of
2840 gpc_reg_operand for the output.
2842 2016-03-14 Tom de Vries <tom@codesourcery.com>
2844 PR tree-optimization/70045
2845 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
2846 create_empty_if_region_on_edge argument.
2848 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
2850 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
2851 (STACK_CHECK_PROTECT): Likewise.
2852 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2853 (STACK_CHECK_PROTECT): Likewise.
2854 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2855 (STACK_CHECK_PROTECT): Likewise.
2856 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
2857 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2858 (STACK_CHECK_PROTECT): Likewise.
2860 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
2862 PR rtl-optimization/69307
2863 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
2864 registers in modes that span more than one register.
2866 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
2869 * lra-constraints.c (delete_move_and_clobber): New.
2870 (remove_inheritance_pseudos): Use it.
2872 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
2875 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
2876 the libcall is LCT_THROW.
2877 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
2878 for the checking routine.
2880 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2883 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
2884 optimization if we have direct move.
2885 (roundu32<mode>2_fprs): Likewise.
2887 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
2890 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
2892 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
2893 Arguments swapped. All callers changed. Take reg_renumber into
2894 account, and Calculate and compare register ranges for hard regs.
2896 2016-03-11 Jeff Law <law@redhat.com>
2898 PR tree-optimization/70190
2899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2900 Handle cases where we can not extract the taken edge, even though we
2901 found a constant value.
2903 PR tree-optimization/64058
2904 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
2905 (num_coalesce_pairs): Move up earlier in file.
2906 (find_coalesce_pair): Initialize the INDEX field for each pair
2908 (compare_pairs): No longer sort on the elements in each pair.
2909 Instead break ties with the index of the coalesce pair.
2911 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2914 * config/aarch64/aarch64-protos.h
2915 (aarch64_save_restore_target_globals): New prototype.
2916 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
2917 Call the above when popping pragma.
2918 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
2920 (aarch64_set_current_function): Rewrite using the above.
2922 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2924 PR tree-optimization/70177
2925 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
2926 (extract_ops_from_tree): ... this. In the 2 argument
2927 overload remove _1 suffix.
2928 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
2929 (extract_ops_from_tree): ... this.
2930 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
2932 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2933 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
2934 extract_ops_from_tree instead of 2 operand one.
2936 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
2938 PR tree-optimization/70013
2939 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
2940 for constant-pool entries.
2942 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2944 PR rtl-optimization/70174
2945 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
2946 followed by gen_lowpart on force_reg instead of just gen_lowpart.
2948 PR tree-optimization/70169
2949 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
2950 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
2953 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2954 Jakub Jelinek <jakub@redhat.com>
2957 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
2958 of uninitialized values.
2960 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2962 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
2964 ("*trunctddd2"): New pattern definition.
2965 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
2968 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2970 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
2971 definitions for BFP and DFP rounding modes.
2972 ("fixuns_truncdddi2", "fixuns_trunctddi2")
2973 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
2974 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
2975 ("fix_trunctf<mode>2"): Use the new constants instead of magic
2978 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2980 * config/s390/constraints.md: Adjust comment.
2981 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
2982 s390_decompose_addrstyle_without_index.
2983 * config/s390/predicates.md (shift_count_or_setmem_operand):
2984 Rename to setmem_operand.
2985 * config/s390/s390-protos.h
2986 (s390_decompose_shift_count): Rename to
2987 s390_decompose_addrstyle_without_index.
2988 * config/s390/s390.c (s390_decompose_shift_count)
2989 (s390_mem_constraint, print_shift_count_operand)
2990 (print_operand_address, print_operand): Rename
2991 s390_decompose_shift_count to
2992 s390_decompose_addrstyle_without_index and rename
2993 print_shift_count_operand to print_addrstyle_operand troughout the
2995 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
2996 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
2997 Rename shift_count_or_setmem_operand to setmem_operand.
2998 * config/s390/vx-builtins.md ("vec_insert<mode>")
2999 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3002 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3005 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3006 Handle overlapping retval and newval.
3008 2016-03-10 Nick Clifton <nickc@redhat.com>
3011 * config/aarch64/aarch64.c
3012 (aarch64_override_options_after_change_1): When forcing
3013 flag_omit_frame_pointer to be true, use a special value that can
3014 be detected if this function is called again, thus preventing
3015 flag_omit_leaf_frame_pointer from being forced to be false.
3017 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3019 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3020 Set x_flag_omit_leaf_frame_pointer when handling
3021 -momit-leaf-frame-pointer.
3023 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3026 * cgraph.c (cgraph_node::dump): Dump split_part and
3027 indirect_call_target.
3028 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3029 * ipa.c (has_addr_references_p): Cleanup.
3030 (is_indirect_call_target_p): New.
3031 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3032 called indirectly as local.
3033 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3035 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3038 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3039 on cxa_pure_virtual.
3041 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3044 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3046 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3049 * tree.c (need_assembler_name_p): Only record main variant type names.
3051 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3054 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3055 Always define to 0 or 1.
3056 (TARGET_FIX_ERR_A53_843419): New macro.
3057 * config/aarch64/aarch64-elf-raw.h
3058 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3059 * config/aarch64/aarch64-linux.h: Likewise.
3060 * config/aarch64/aarch64.c
3061 (aarch64_override_options_after_change_1): Do not default
3062 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3064 (aarch64_attributes): Handle fix-cortex-a53-843419.
3065 (aarch64_can_inline_p): Likewise.
3066 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3068 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3069 Jakub Jelinek <jakub@redhat.com>
3071 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3072 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3073 DECL_COMMONS if flag_unconstrained_commons is set.
3074 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3075 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3076 (funconstrained-commons): Document.
3078 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3080 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3081 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3083 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3085 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3086 has a proper number of elements.
3088 2016-03-10 Alan Modra <amodra@gmail.com>
3090 PR rtl-optimization/69195
3091 PR rtl-optimization/47992
3092 * ira.c (recorded_label_ref): Delete.
3093 (update_equiv_regs): Return void.
3094 (indirect_jump_optimize): New function.
3095 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3096 before regstat_compute_ri. Don't rebuild_jump_labels here.
3097 Delete update_regstat.
3099 2016-03-10 Richard Biener <rguenther@suse.de>
3101 PR tree-optimization/70128
3102 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3103 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3105 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3107 PR tree-optimization/70152
3108 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3109 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3112 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3113 instead of gen_sse2_loadlpd.
3114 * config/i386/sse.md (*vec_concatv2df): Rename to...
3115 (vec_concatv2df): ... this.
3117 PR tree-optimization/70127
3118 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3120 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3124 * diagnostic-show-locus.c (compatible_locations_p): New function.
3125 (layout::layout): Sanitize ranges using compatible_locations_p.
3127 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3131 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3132 location_range param with three const expanded_locations * and a
3134 (layout::layout): Replace call to
3135 rich_location::lazily_expand_location with get_expanded_location.
3136 Extract the range and perform location expansion here, passing
3137 the results to the layout_range ctor.
3138 * diagnostic.c (source_range::debug): Delete.
3139 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3140 of rich_location::get_expanded_location.
3141 * gcc-rich-location.c (get_range_for_expr): Delete.
3142 (gcc_rich_location::add_expr): Reimplement to avoid the
3143 rich_location::add_range overload that took a location_range,
3144 passing a location_t instead.
3146 2016-03-09 Richard Biener <rguenther@suse.de>
3147 Jakub Jelinek <jakub@redhat.com>
3149 PR tree-optimization/70138
3150 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3151 Also skip vect_double_reduction_def.
3153 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3156 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3157 if the operand is "m".
3159 2016-03-09 Nathan Sidwell <nathan@acm.org>
3161 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3163 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3165 * config/i386/i386.c (processor_target_table): Fix cost table
3166 intialization order for znver1.
3168 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3170 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3171 - becuase -> because.
3172 * ipa-reference.c (ignore_module_statics): Likewise.
3173 * cgraph.c (cgraph_node::get_body): Likewise.
3174 * ipa-inline.c (early_inliner): Likewise.
3175 * ipa-devirt.c (types_same_for_odr): Likewise.
3176 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3177 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3179 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3181 * tree-ssa-math-opts.c: Fix typo in comment.
3183 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3186 * config/i386/i386.c (scalar_chain::make_vector_copies,
3187 scalar_chain::convert_reg): Call end_sequence in between
3188 get_insns and emit_conversion_insns rather than after both
3191 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
3194 * config/i386/i386.h (machine_function): Add
3195 pc_thunk_call_expanded flag.
3196 (ix86_pc_thunk_call_expanded): New define.
3197 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3198 (*set_got): Rename insn pattern from set_got.
3199 (*set_got_labelled): Rename inst pattern from set_got_labelled.
3200 * config/i386/i386.c (ix86_compute_frame_layout): Use
3201 ix86_pc_thunk_call_expanded to prevent red-zone.
3203 2016-03-07 Martin Jambor <mjambor@suse.cz>
3205 * hsa.h (hsa_get_ctor_statements): Declare.
3206 (hsa_get_dtor_statements): Likewise.
3207 (hsa_get_kernel_dispatch_type): Likewise.
3208 * hsa.c (hsa_get_ctor_statements): New function.
3209 (hsa_get_dtor_statements): Likewise.
3210 (hsa_get_kernel_dispatch_type): Likewise.
3211 * hsa-brig.c (hsa_cdtor_statements): Removed.
3212 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3213 hsa_get_dtor_statements.
3214 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3215 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3217 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3219 * config/arm/arm-cores.def (cortex-r8): New.
3220 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3221 * config/arm/arm-tune.md: Likewise.
3222 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3224 2016-03-07 Martin Sebor <msebor@redhat.com>
3226 PR rtl-optimization/19705
3227 * doc/invoke.texi (Options That Control Optimization): Clarify
3228 -fno-branch-count-reg.
3230 2016-02-26 Richard Biener <rguenther@suse.de>
3231 Jeff Law <law@redhat.com>
3233 PR tree-optimization/69740
3234 * cfghooks.c (remove_edge): Request loop fixups if we delete
3235 an edge that might turn an irreducible loop into a natural
3237 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3238 Move after definition of loops_state_clear.
3240 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3242 PR rtl-optimization/69052
3243 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3246 2016-03-07 Tom de Vries <tom@codesourcery.com>
3248 PR tree-optimization/70116
3249 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3250 is_tm_ending stmts and ubsan/asan internal functions.
3251 (find_duplicate): Use it. Don't test is_tm_ending here.
3253 2016-03-07 Richard Biener <rguenther@suse.de>
3255 PR tree-optimization/70115
3256 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3257 (propagate_constants_for_unrolling): Use replace_uses_by.
3259 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3262 * omp-low.c (struct oacc_loop): Add ifns.
3263 (new_oacc_loop_raw): Initialize it.
3264 (finish_oacc_loop): Clear mask & flags if no ifns.
3265 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3266 (oacc_loop_xform_loop): Add ifns arg & adjust.
3267 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3269 2016-03-07 Richard Henderson <rth@redhat.com>
3272 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3273 (insert_value_copy_on_edge): Likewise.
3275 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3277 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3279 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3284 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3286 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3288 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3290 Fix sseimul type attribute.
3291 * config/i386/znver1.md
3292 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3293 znver1_sseimul_avx256_load) : Fix the type attribute.
3294 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3295 pipe usage and latency.
3297 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3300 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3301 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3304 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3307 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3309 PR rtl-optimization/69941
3310 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3311 the reg share its mode.
3313 2016-03-04 Jeff Law <law@redhat.com>
3315 PR tree-optimization/69196
3316 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3317 If the both SSA_NAMEs are anonymous, then consider them unassociated
3318 and include the PHI in the statement count.
3320 2016-03-05 Tom de Vries <tom@codesourcery.com>
3322 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3323 construct in oacc routine. Check for oacc region in oacc routine.
3325 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3328 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
3329 2016-02-22 changes, instead don't recurse if RECUR is already true.
3330 Don't change *dynamic_check if RECUR. Adjust recursive caller
3331 to pass true to the new argument.
3332 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3335 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3336 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3338 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
3340 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3342 PR rtl-optimization/57676
3343 * lra-assigns.c (lra_assign): Guard test for maximum iterations
3346 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
3348 * tree-vect-patterns.c (search_type_for_mask): Handle
3349 comparison of booleans.
3351 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3353 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3357 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3358 all other ops that have dw_val_class_die_ref operands,
3359 and DW_OP_GNU_entry_value.
3361 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3363 PR rtl-optimization/69904
3364 * config/arm/arm.c (arm_cannot_copy_insn_p):
3365 Return true for load-exclusive instructions.
3367 2016-03-03 Jakub Jelinek <jakub@redhat.com>
3370 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3371 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3372 the pattern no matter if it is used just by non-pattern, pattern
3374 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3375 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3376 oprnd1 def_stmt is in pattern, don't look through it.
3378 2016-03-03 Marek Polacek <polacek@redhat.com>
3381 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3383 2016-03-03 Martin Liska <mliska@suse.cz>
3385 PR tree-optimization/70043
3386 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3387 previous statement if we see a debug statement.
3389 2016-03-03 Richard Biener <rguenther@suse.de>
3391 PR tree-optimization/55936
3392 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3393 parameter and guard unsafe equivalence use.
3394 (vrp_evaluate_conditional_warnv_with_ops): Always use
3395 safe equivalences but not via the quadratic compare_names
3398 2016-03-03 Michael Collison <michael.collison@linaro.org>
3401 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3402 for operand 1 to s_register_operand. Change predicate for operand
3403 2 to arm_not_immediate_operand.
3405 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3407 * doc/tm.texi: Regenerated.
3409 2016-03-02 Richard Henderson <rth@redhat.com>
3412 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3413 simplification when all args are positive non-fixed registers.
3415 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3417 * target.def (lra_p): Specify that new ports should use LRA.
3419 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3422 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3423 gimplify_type_sizes the type they refer to.
3424 (omp_notice_variable): Handle reference vars to VLAs.
3425 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3426 reference to VLA decls in the second pass instead of first pass.
3428 2016-03-02 Tom de Vries <tom@codesourcery.com>
3430 PR tree-optimization/68659
3431 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3432 new_expr == NULL_TREE.
3433 (get_new_name): Handle ADDR_EXPR.
3435 2016-03-02 Bin Cheng <bin.cheng@arm.com>
3437 PR rtl-optimization/69052
3438 * loop-invariant.c (canonicalize_address): New function.
3439 (inv_can_prop_to_addr_use): Check validity of address expression
3440 which is canonicalized by above function.
3442 2016-03-02 Alan Modra <amodra@gmail.com>
3445 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3448 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3451 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3452 (*movhi_internal): Put mask moves from and to memory separately
3453 from moves from/to GPRs.
3455 2016-03-02 Richard Biener <rguenther@suse.de>
3457 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3458 GENERIC expressions in GIMPLE.
3460 2016-03-02 Richard Biener <rguenther@suse.de>
3462 * config/i386/i386.c (type_natural_mode): Fix typo.
3464 2016-03-02 Nick Clifton <nickc@redhat.com>
3466 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3468 2016-03-02 Richard Biener <rguenther@suse.de>
3469 Uros Bizjak <ubizjak@gmail.com>
3472 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3474 2016-03-02 Richard Biener <rguenther@suse.de>
3477 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3479 2016-03-02 Marek Polacek <polacek@redhat.com>
3482 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3483 "is promoted to" warning.
3485 2016-03-01 DJ Delorie <dj@redhat.com>
3487 * config.gcc: Deprecate mep-*.
3489 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
3492 * lra-constraints.c (regno_val_use_in): New.
3493 (match_reload): Use it instead of regno_use_in.
3495 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3497 PR rtl-optimization/70007
3498 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3499 references present in REG_EQUAL notes attached to non-SET patterns.
3501 2016-03-01 Jeff Law <law@redhat.com>
3503 PR tree-optimization/69196
3504 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3505 Appropriately clamp the number of statements to copy when the
3506 thread path does not traverse a loop backedge.
3508 PR tree-optimization/69196
3509 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3510 Do count some PHIs in the thread path against the insn count. Decrease
3511 final statement count by one as the control statement in the last
3512 block will get removed. Remove special cased code for handling PHIs
3515 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
3518 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3519 asm dialect alternatives to explicit GOTPCREL calls.
3521 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3524 * ira.c (do_reload): Issue warning for generic stack checking here...
3525 * reload1.c (reload): ...instead of here and streamline it.
3527 2016-03-01 Nick Clifton <nickc@redhat.com>
3529 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
3531 2016-03-01 Richard Biener <rguenther@suse.de>
3533 PR tree-optimization/69983
3534 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
3535 types and fall back to operand_equal_p.
3537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3540 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3542 * config/s390/constraints.md ("jm8"): New constraint.
3543 * config/s390/predicates.md ("const_int_8bitset_operand"): New
3545 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
3547 ("*setmem_long<setmem_and>"): New pattern.
3548 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
3550 ("*setmem_long_31z<setmem_and>"): New pattern.
3551 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
3552 New substitution rules with the required attributes.
3555 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3560 * gensupport.c (process_substs_on_one_elem): Split loop to
3561 complete mark_operands_used_in_match_dup on all expressions in the
3563 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3564 and remove function.
3566 2016-03-01 Richard Biener <rguenther@suse.de>
3569 * fold-const.c (fold_indirect_ref_1): Fix range checking for
3570 vector BIT_FIELD_REF extract.
3572 2016-03-01 Richard Biener <rguenther@suse.de>
3574 PR tree-optimization/69994
3575 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
3577 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3579 PR tree-optimization/69956
3580 * tree-vect-stmts.c (supportable_widening_operation): Support
3581 multi-step conversion of boolean vectors.
3582 (supportable_narrowing_operation): Likewise.
3584 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3586 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
3589 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3591 * config/s390/subst.md (DSI_VI): New mode iterator.
3592 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
3593 * config/s390/vector.md ("vec_set<mode>"): Move expander before
3594 the insn definition.
3595 ("*vec_set<mode>"): Change predicate and add alternative to
3596 support only either register or const_int operands as element
3598 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
3600 ("vec_extract<mode>"): New expander.
3601 ("*vec_extract<mode>"): New insn definition supporting reg and
3602 const_int element selectors.
3603 ("*vec_extract<mode>_plus"): New insn definition supporting
3604 reg+const_int element selectors.
3605 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
3606 following expander+insn definition.
3607 ("<vec_shifts_name><mode>3"): New expander.
3608 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
3610 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3612 * config/s390/s390.md ("*tabort_1"): Change predicate to
3613 nonmemory_operand. Add a second alternative to cover
3614 register as well as const int operands.
3615 ("*tabort_1_plus"): New pattern definition.
3617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3619 * config/s390/s390.md ("*ashrdi3_cc_31")
3620 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
3621 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
3622 Merge insn definitions into ...
3623 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3624 New pattern definition.
3625 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
3626 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
3627 ("*ashr<mode>3_and"): Merge insn definitions into ...
3628 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3629 New pattern definition.
3630 * config/s390/subst.md ("addr_style_op_cc_subst")
3631 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
3632 substitutions patterns plus attributes.
3633 Add ashiftrt to SUBST iterator.
3635 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3637 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
3638 op2 to nonmemory_operand.
3639 ("*<shift>di3_31", "*<shift>di3_31_and"):
3640 Merge into single pattern definition ...
3641 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
3642 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
3643 pattern definition ...
3644 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
3645 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
3648 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3650 * config/s390/predicates.md (const_int_6bitset_operand): New
3652 * config/s390/s390.md: Include subst.md.
3653 ("rotl<mode>3"): New expander.
3654 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
3656 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
3657 * config/s390/subst.md: New file.
3659 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3661 * config/s390/s390.md ("op_type", "atype", "length" attributes):
3662 Remove RRR type. It doesn't really exist.
3663 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
3665 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
3666 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
3667 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
3668 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
3669 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
3670 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
3671 `enabled' attribute.
3673 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3675 * gensupport.c (process_substs_on_one_elem): Split loop to
3676 complete mark_operands_used_in_match_dup on all expressions in the
3678 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3679 and remove function.
3681 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3684 * config/sparc/sparc.c (NWORDS_UP): Rename to...
3685 (CEIL_NWORDS): ...this. Use CEIL macro.
3686 (compute_fp_layout): Adjust to above renaming.
3687 (function_arg_union_value): Likewise.
3688 (sparc_arg_partial_bytes): Likewise.
3689 (sparc_function_arg_advance): Likewise.
3691 2016-02-29 Jeff Law <law@redhat.com>
3693 PR tree-optimization/70005
3694 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
3695 where an object with a boolean range is compared against a value
3698 PR tree-optimization/69999
3699 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
3700 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
3703 2016-02-29 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/69994
3706 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
3707 (get_unary_op): Look through nop conversions.
3708 (ops_equal_values_p): New function, look for equality diregarding
3710 (eliminate_plus_minus_pair): Use ops_equal_values_p
3711 (repropagate_negates): Do not use get_unary_op here.
3713 2016-02-29 Martin Liska <mliska@suse.cz>
3715 * system.h: Poison ENABLE_CHECKING macro.
3717 2016-02-29 Martin Liska <mliska@suse.cz>
3719 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
3720 is presented in dump flags.
3721 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3722 (hsa_regalloc): Likewise.
3724 2016-02-19 Richard Biener <rguenther@suse.de>
3726 PR tree-optimization/69980
3727 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
3728 permutation of those we need to keep.
3730 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3733 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
3734 (NWORDS_UP): ...this
3735 (init_cumulative_args): Minor tweaks.
3736 (sparc_promote_function_mode): Likewise.
3737 (scan_record_type): Delete.
3738 (traverse_record_type): New function template.
3739 (classify_data_t): New structure type.
3740 (classify_registers): New inline function.
3741 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
3742 exhausted. Instantiate traverse_record_type on classify_registers and
3743 deal with the case of a structure passed in slot #15 with no FP field
3745 (assign_data_t): New structure type.
3746 (compute_int_layout): New static function.
3747 (compute_fp_layout): Likewise.
3748 (count_registers): New inline function.
3749 (assign_int_registers): New static function.
3750 (assign_fp_registers): Likewise.
3751 (assign_registers): New inline function.
3752 (function_arg_record_value_1): Delete.
3753 (function_arg_record_value_2): Likewise.
3754 (function_arg_record_value_3): Likewise.
3755 (function_arg_record_value): Adjust to above changes. Instantiate
3756 traverse_record_type on count_registers to first count the number of
3757 registers to be used and then on assign_registers to assign them.
3758 (function_arg_union_value): Adjust to above renaming.
3759 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
3760 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
3761 case of a structure passed in slot #15
3762 (sparc_function_arg_advance): Likewise.
3763 (function_arg_padding): Minor tweak.
3765 2016-02-29 Richard Biener <rguenther@suse.de>
3767 PR tree-optimization/69720
3768 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
3769 the adjustment_def path for possibly vectorized defs.
3770 (vect_create_epilog_for_reduction): Handle vectorized initial
3773 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
3775 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
3777 2016-02-27 Jeff Law <law@redhat.com>
3780 2016-02-26 Richard Biener <rguenther@suse.de>
3781 Jeff Law <law@redhat.com>
3783 PR tree-optimization/69740
3784 * cfghooks.c (remove_edge): Request loop fixups if we delete
3785 an edge that might turn an irreducible loop into a natural
3788 2016-02-27 Jakub Jelinek <jakub@redhat.com>
3790 PR rtl-optimization/69896
3791 * tree-vect-generic.c (get_compute_type): Avoid single element
3794 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
3796 Rename the AArch64 tuning option and related functions to enable the
3797 Newton series for the reciprocal square root to reflect its
3798 approximative characteristic.
3800 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
3801 function to "aarch64_emit_approx_rsqrt".
3802 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
3803 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
3804 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
3805 (xgene1_tunings): Likewise.
3806 (use_rsqrt_p): Likewise.
3807 (aarch64_emit_swrsqrt): Use new function name.
3808 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
3809 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
3810 text explaining this option.
3811 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
3813 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3817 complain about -mallow-movmisalign without -mvsx if
3818 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
3820 2016-02-26 Joel Sherrill <joel@rtems.org>
3822 * config.gcc: Add x86_64-*-rtems*.
3823 * gcc/config/i386/rtems-64.h: New file.
3825 2016-02-26 Joel Sherrill <joel@rtems.org>
3827 * config.gcc: Add aarch64-*-rtems*.
3828 * gcc/config/aarch64/rtems.h: New file.
3830 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
3833 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
3834 shift amount using %h. Add comment.
3836 2016-02-26 Richard Biener <rguenther@suse.de>
3837 Jeff Law <law@redhat.com>
3839 PR tree-optimization/69740
3840 * cfghooks.c (remove_edge): Request loop fixups if we delete
3841 an edge that might turn an irreducible loop into a natural
3844 2016-02-26 Martin Jambor <mjambor@suse.cz>
3847 * tree-sra.c (sra_modify_assign): Do not remove loads of
3848 uninitialized aggregates to SSA_NAMEs.
3850 2016-02-26 Richard Henderson <rth@redhat.com>
3853 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
3854 pseudo in case the target rtx matches the source of the left
3857 2016-02-26 Martin Jambor <mjambor@suse.cz>
3860 * hsa.h (hsa_type_packed_p): Declare.
3861 * hsa.c (hsa_type_packed_p): New function.
3862 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
3864 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
3865 * hsa-brig.c (emit_basic_insn): Likewise.
3867 2016-02-26 Martin Jambor <mjambor@suse.cz>
3870 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
3872 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
3874 2016-02-26 Martin Jambor <mjambor@suse.cz>
3876 * hsa.h (is_a_helper): New overload for hsa_op_immed for
3877 hsa_op_with_type operands.
3878 (hsa_unsigned_type_for_type): Declare.
3879 * hsa.c (hsa_unsigned_type_for_type): New function.
3880 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
3881 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
3882 the finalizer. Do not emit extra move.
3884 2016-02-26 Martin Jambor <mjambor@suse.cz>
3886 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
3887 atomic operations in private segment.
3889 2016-02-26 Martin Jambor <mjambor@suse.cz>
3891 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
3892 statements to wi->info. Also disallow omp simd constructs.
3893 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
3894 for not gridifying. Dump special string for omp_for.
3896 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3899 * config/aarch64/aarch64.c (aarch64_set_current_function):
3900 Save/restore target globals when switching to
3901 target_option_default_node.
3903 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3906 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
3907 Return 0 if !SHIFT_COUNT_TRUNCATED.
3909 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3910 Eric Botcazou <ebotcazou@adacore.com>
3912 PR rtl-optimization/69891
3913 * dse.c (scan_insn): If we can't figure out memset arguments
3914 or they are non-constant, call clear_rhs_from_active_local_stores.
3916 2016-02-26 Martin Liska <mliska@suse.cz>
3918 * doc/extend.texi: Mention clog10, clog10f an clog10l
3919 in Builtins section.
3921 2016-02-26 Martin Liska <mliska@suse.cz>
3923 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
3925 (resolve_args_picking_1): Likewise.
3926 * dwarf2out.h (struct GTY): Likewise.
3928 2016-02-26 Martin Liska <mliska@suse.cz>
3930 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
3932 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3934 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
3935 Martin Liska <mliska@suse.cz>
3937 * doc/install.texi: Mention --enable-valgrind-annotations.
3939 2016-02-26 Richard Biener <rguenther@suse.de>
3941 PR tree-optimization/69551
3942 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
3943 looking through aliases adjust DECL_PT_UID to refer to the
3944 ultimate alias target.
3946 2016-02-25 Martin Liska <mliska@suse.cz>
3949 * alloc-pool.c (after_memory_report): New variable.
3950 * alloc-pool.h (base_pool_allocator ::release): Do not use
3951 the infrastructure if after_memory_report.
3952 * toplev.c (toplev::main): Mark after memory report.
3954 2016-02-25 Richard Biener <rguenther@suse.de>
3956 PR tree-optimization/48795
3957 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
3959 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3962 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
3963 offloading is enabled and -fopenacc or -fopenmp is specified.
3964 (CRTOFFLOADEND): Likewise.
3965 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
3966 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
3967 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
3968 (offload_objects_file_name): New static var.
3969 (tool_cleanup): Remove offload_objects_file_name file.
3970 (find_offloadbeginend): Replace with ...
3971 (find_crtoffloadtable): ... this.
3972 (run_gcc): Remove offload_argc and offload_argv.
3973 Get offload_objects_file_name from -foffload-objects=... option.
3974 Read names of object files with offload from this file, pass them to
3975 compile_images_for_offload_targets. Don't call find_offloadbeginend and
3976 don't pass offloadbegin and offloadend to the linker. Don't pass
3977 offload non-LTO files to the linker, because now they're not claimed.
3979 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
3982 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3983 on builtin_unreachable.
3985 2016-02-25 Jakub Jelinek <jakub@redhat.com>
3987 PR rtl-optimization/69896
3988 * regcprop.c: Include cfgrtl.h.
3989 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
3990 than remembered mode, either delete it (if noop_move_p), or
3991 treat like copy_p but not noop_p instruction.
3993 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3996 * dwarf2out.c (gen_variable_die): Work around buggy LTO
3997 - allow NULL decl for Fortran DW_TAG_common_block variables.
3999 2016-02-24 Jason Merrill <jason@redhat.com>
4001 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4003 2016-02-24 Richard Biener <rguenther@suse.de>
4004 Jakub Jelinek <jakub@redhat.com>
4007 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4008 conditionally executed ops to well-defined overflow behavior.
4010 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4013 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4016 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4018 PR rtl-optimization/69886
4019 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4020 argument. Use it when checking validity of set instructions.
4021 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4022 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4024 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4025 * store-motion.c (find_moveable_store): Update
4026 can_assign_to_reg_without_clobbers_p callsite.
4028 2016-02-24 Richard Biener <rguenther@suse.de>
4031 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4033 (record_nonwrapping_iv): Do not fall back to the low/high bound
4034 for non-constant IV bases if the stmt is not always executed.
4036 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4038 * config/arm/arm-cores.def (cortex-a32): New entry.
4039 * config/arm/arm-tables.opt: Regenerate.
4040 * config/arm/arm-tune.md: Regenerate.
4041 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4042 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4043 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4044 for -mcpu and -mtune.
4046 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4049 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4050 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4051 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4052 (atomic_loaddi_1): Delete.
4053 (atomic_loaddi): Rewrite expander using the above changes.
4055 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4058 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4061 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4062 Richard Biener <rguenth@suse.de>
4065 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4066 set_mem_attributes if tem is SSA_NAME which got expanded
4069 2016-02-24 Richard Biener <rguenther@suse.de>
4071 PR tree-optimization/69907
4072 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4073 end of permutations for BB vectorization.
4075 2016-02-24 Christian Bruel <christian.bruel@st.com>
4077 * config/arm/arm-c.c (arm_option_override): Initialize
4078 target_option_current_node.
4079 * config/arm/arm.c (arm_pragma_target_parse): Replace
4080 build_target_option_node call by target_option_current_node.
4081 Set target_option_current_node.
4084 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4087 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4088 define_insn_and_split to define_insn.
4089 (zero_extendqi<mode>2_dot2): Same.
4090 (extendqi<mode>2_dot): Same.
4091 (extendqi<mode>2_dot2): Same.
4093 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4095 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4096 and add bypass for AES{D,E} and AESMC pairs.
4097 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4100 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4102 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4103 series for reciprocal square root in Exynos M1.
4105 2016-02-23 Martin Sebor <msebor@redhat.com>
4108 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4109 __builtin_alloca_with_align.
4111 2016-02-23 Richard Henderson <rth@redhat.com>
4113 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4114 (ix86_register_pragmas): Remove __seg_tls.
4115 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4116 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4117 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4118 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4119 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4120 * doc/extend.texi (__seg_tls): Remove item.
4122 2016-02-23 Richard Biener <rguenther@suse.de>
4124 * alloc-pool.h (struct allocation_object): Make id member
4125 conditional on CHECKING_P again.
4126 (get_instance): Adjust.
4127 (base_pool_allocator): Likewise.
4129 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4131 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4132 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4134 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4136 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4138 2016-02-23 Richard Biener <rguenther@suse.de>
4140 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4141 * bitmap.h (struct bitmap_usage): Likewise.
4142 (bitmap_move): Declare.
4143 * bitmap.c (register_overhead): Take size_t argument.
4144 (bitmap_move): New function.
4145 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4146 to properly account overhead.
4147 * tree.c (free_node): Use tree_size.
4149 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4152 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4153 when inverting comparison.
4156 * common.opt (Wunreachable-code): Add Warning flag.
4158 2016-02-23 Mark Wielaard <mjw@redhat.com>
4159 Jakub Jelinek <jakub@redhat.com>
4162 * cgraphunit.c (check_global_declaration): Check main_input_filename
4163 and DECL_SOURCE_FILE are not NULL.
4165 2016-02-23 Martin Jambor <mjambor@suse.cz>
4167 PR tree-optimization/69666
4168 * tree-sra.c (sra_modify_assign): Do not attempt to create
4169 default_def replacements for unscalarizable regions.
4171 2016-02-20 Mark Wielaard <mjw@redhat.com>
4174 * cgraphunit.c (check_global_declaration): Check level of
4175 warn_unused_const_variable and main_input_filename.
4176 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4177 (-Wunused-variable): For C implies -Wunused-const-variable=1.
4178 (-Wunused-const-variable): Explain levels 1 and 2.
4180 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4183 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4184 identical arguments. Formatting and spelling fixes.
4187 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4192 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4193 and m68k-devices.def.
4194 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4195 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4197 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4199 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4200 and HImode registers.
4202 2016-02-22 Richard Biener <rguenther@suse.de>
4204 PR tree-optimization/69882
4205 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4206 preserve permutations present because of gaps.
4207 (vect_supported_load_permutation_p): Always continue checking
4208 permutations after vect_attempt_slp_rearrange_stmts.
4210 2016-02-22 Bin Cheng <bin.cheng@arm.com>
4212 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4213 min_profitable_estimate, rather than min_profitable_iters.
4215 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4218 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4219 SImode for last match_operand.
4221 2016-02-22 Martin Liska <mliska@suse.cz>
4223 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4224 return bitsize - 1 as the return value.
4226 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4230 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4231 Handle negative shift counts.
4232 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4233 force_reg on the shift constant.
4234 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4235 (lshrsi3_d): Handle negative shift counts.
4237 2016-02-22 Richard Biener <rguenther@suse.de>
4238 Tom de Vries <tom@codesourcery.com>
4240 * graph.c: Include dumpfile.h.
4241 (print_graph_cfg): Split into three overloads.
4242 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4244 2016-02-22 Tom de Vries <tom@codesourcery.com>
4246 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4249 2016-02-22 Richard Biener <rguenther@suse.de>
4252 * ipa-inline-transform.c (inline_call): When not updating
4253 overall summaries adjust self size by the growth estimate.
4254 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4255 hash-set, do not update overall summaries here. Renamed from ...
4256 (inline_to_all_callers): ... this which is now wrapping the
4257 above and performing delayed overall summary update.
4258 (early_inline_small_functions): Delay updating of the overall
4261 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4263 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4266 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4269 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4270 :%* in %:gt() argument.
4271 (greater_than_spec_func): Adjust for expecting only numbers,
4272 if there are more than two numbers, compare the last two.
4274 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4276 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4277 -Wnarrowing with -std.
4279 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4282 * expr.c (store_field): Don't use bit-field path if exp is
4283 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4284 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4285 and the assignment can be performed by bitwise copy. Formatting
4289 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4290 call copy_reg_eh_region_note_forward on before and/or after sequences
4291 and remove note from insn if it no longer can throw.
4294 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4297 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4299 * config/s390/vector.md: Add missing commutative operand markers
4300 to the patterns which qualify for one.
4301 * config/s390/vx-builtins.md: Likewise.
4303 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4305 * config/s390/vector.md (VI, VI_QHS): Add single element vector
4306 types to mode iterators.
4307 (vec_double): ... and mode attribute.
4308 * config/s390/vx-builtins.md (non_vec_int): Likewise.
4310 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4312 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4313 Change the predicate of op2 from nonimmediate to general and let
4314 reload fix it if necessary.
4316 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4318 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4320 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4322 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4325 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4327 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4328 * config/s390/s390.c (s390_expand_vec_movstr): New function.
4329 * config/s390/s390.md ("movstr<P:mode>"): Call
4330 s390_expand_vec_movstr.
4332 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4334 * config/s390/s390.md: Add missing output modifier for operand 1
4335 to print it as address properly.
4337 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4339 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4340 * config/s390/2964.md: New file.
4341 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4342 of insn grouping attributes depending on the CPU level.
4343 (s390_get_unit_mask): New function.
4344 (s390_sched_score): Remove the OOO from the scheduling macros.
4345 Add loop to calculate a score for the instruction mix.
4346 (s390_sched_reorder): Likewise plus improve debug output.
4347 (s390_sched_variable_issue): Rename macros as above. Calculate
4348 the unit distances after actually scheduling an insn. Improve
4350 (s390_sched_init): Clear last_scheduled_unit_distance array.
4351 * config/s390/s390.md: Include 2964.md.
4353 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4356 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4357 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4358 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4359 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4360 *avx512f_<code>v8div16qi2_mask_1): New insns.
4362 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4365 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4368 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4369 earlyclobber from target. Use wF constraint for fused memory
4371 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4373 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4374 Martin Liska <mliska@suse.cz>
4377 * cfgexpand.c (asan_sanitize_stack_p): New function.
4378 (partition_stack_vars): Use the function.
4379 (expand_stack_vars): Likewise.
4380 (defer_stack_allocation): Likewise.
4381 (expand_used_vars): Likewise.
4383 2016-02-18 Richard Biener <rguenther@suse.de>
4386 * fold-const.c (operand_equal_p): Properly compare offsets for
4387 IMAGPART_EXPR and ARRAY_REF.
4389 2016-02-18 Nick Clifton <nickc@redhat.com>
4393 * config/arm/arm.c (arm_option_override_internal): Disable
4394 interworking if the target does not support thumb instructions.
4395 (arm_reload_in_hi): Handle the case where a register to register
4396 move needs reloading because there is no simple pattern to handle
4398 (arm_reload_out_hi): Likewise.
4400 2016-02-18 Richard Biener <rguenther@suse.de>
4403 * match.pd: Don't use fold_binary or fold_unary for folding
4406 2016-02-17 Jakub Jelinek <jakub@redhat.com>
4409 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4410 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4411 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4412 warn on gimple_no_warning_p statements.
4414 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
4416 * doc/extend.texi (C++ Attributes): Correct description of
4417 warn_unused type attribute.
4419 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4421 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4422 correct instruction.
4424 2016-02-17 Richard Biener <rguenther@suse.de>
4426 PR rtl-optimization/69609
4427 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4428 (find_traces_1_round): When ending a trace update cached priority
4430 (bb_to_key): Use cached priority when available.
4431 (copy_bb): Initialize cached priority.
4432 (reorder_basic_blocks_software_trace_cache): Likewise.
4434 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4437 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4439 (aarch64_comparison_operator): Break overly long line into two.
4440 (aarch64_comparison_operation): Likewise.
4441 * config/aarch64/aarch64.md (cstorecc4): Use
4442 aarch64_comparison_operator_mode instead of
4443 aarch64_comparison_operator.
4444 (cstore<mode>4): Likewise.
4445 (aarch64_cstore<mode>): Likewise.
4446 (*cstoresi_insn_uxtw): Likewise.
4447 (cstore<mode>_neg): Likewise.
4448 (*cstoresi_neg_uxtw): Likewise.
4450 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4453 * config/arm/predicates.md (arm_comparison_operator_mode):
4455 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4456 instead of arm_comparison_operator.
4457 (*mov_negscc): Likewise.
4458 (*mov_notscc): Likewise.
4459 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4460 (*thumb2_mov_negscc): Likewise.
4461 (*thumb2_mov_negscc_strict_it): Likewise.
4462 (*thumb2_mov_notscc): Likewise.
4463 (*thumb2_mov_notscc_strict_it): Likewise.
4465 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
4467 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4470 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
4472 * config/visium/visium.c (machine_libfunc_index): New enum.
4473 (machine_libfuncs): New structure.
4474 (visium_libfuncs): New static variable.
4475 (TARGET_INIT_LIBFUNCS): Define to...
4476 (visium_init_libfuncs): ...this. New function.
4477 (expand_block_move_4): Use the appropriate libfunc.
4478 (expand_block_move_2): Likewise.
4479 (expand_block_move_1): Likewise.
4480 (expand_block_set_4): Likewise.
4481 (expand_block_set_2): Likewise.
4482 (expand_block_set_1): Likewise.
4483 (visium_trampoline_init): Likewise.
4485 2016-02-17 Nick Clifton <nickc@redhat.com>
4487 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4488 TI's devices.csv file as of March 2016.
4490 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
4493 * opts-global.c (handle_common_deferred_options): Introduce and
4494 initialize two global variables to remember command-line options
4495 specifying a stack-limiting register.
4496 * opts.h: Add extern declarations of the two new global variables.
4497 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4498 variable based on the values of the two new global variables.
4500 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4503 * common.opt (Wnonnull-compare): New warning.
4504 * doc/invoke.texi (-Wnonnull): Remove text about comparison
4505 of arguments against NULL.
4506 (-Wnonnull-compare): Document.
4507 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4508 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4509 * passes.def (pass_warn_nonnull_compare): Add.
4510 * gimple-ssa-nonnull-compare.c: New file.
4512 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4514 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4515 AARCH64_EXTRA_TUNE_RECIP_SQRT.
4517 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4519 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4520 reciprocal sqrt for -mlow-precision-recip-sqrt.
4522 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4523 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4525 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
4526 always use lane loads to construct non-constant vectors.
4528 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4530 * config/aarch64/aarch64.md
4531 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
4532 constraints for operand 3.
4533 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
4535 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4536 Richard Biener <rguenther@suse.de>
4538 PR tree-optimization/69820
4539 * tree-vect-patterns.c (type_conversion_p): Return false if
4540 *orig_type is unsigned single precision or boolean.
4541 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
4544 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4546 PR rtl-optimization/69764
4547 PR rtl-optimization/69771
4548 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
4549 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
4551 2016-02-16 Richard Biener <rguenther@suse.de>
4553 PR tree-optimization/69776
4554 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
4556 (indirect_refs_may_alias_p): Likewise.
4557 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
4558 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
4559 according to tbaa_p.
4560 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
4561 (optimize_stmt): For redundant store discovery do not allow tbaa.
4563 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
4565 PR tree-optimization/69714
4566 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
4567 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
4569 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4571 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
4572 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
4573 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
4574 * config/arc/arc.c (arc_init): Check FPU options.
4575 (get_arc_condition_code): Handle new CC_FPU* modes.
4576 (arc_select_cc_mode): Likewise.
4577 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
4578 register pair only. Allow access for ARCv2 accumulator.
4579 (gen_compare_reg): Whenever we have FPU support use FPU compare
4581 (arc_reorg): Don't generate brcc insns when FPU compare
4582 instructions are involved.
4583 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
4584 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
4585 floating point emulation.
4586 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
4587 (REVERSE_CONDITION): Add new CC_FPU* modes.
4588 (TARGET_FP_SP_BASE): Define.
4589 (TARGET_FP_DP_BASE): Likewise.
4590 (TARGET_FP_SP_FUSED): Likewise.
4591 (TARGET_FP_DP_FUSED): Likewise.
4592 (TARGET_FP_SP_CONV): Likewise.
4593 (TARGET_FP_DP_CONV): Likewise.
4594 (TARGET_FP_SP_SQRT): Likewise.
4595 (TARGET_FP_DP_SQRT): Likewise.
4596 (TARGET_FP_DP_AX): Likewise.
4597 * config/arc/arc.md (ARCV2_ACC): New constant.
4598 (type): New fpu type attribute.
4599 (SDF): Conditional iterator.
4600 (cstore<mode>, cbranch<mode>): Change expand condition.
4601 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
4602 handles FPU/FPX cases as well.
4603 * config/arc/arc.opt (mfpu): New option.
4604 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
4606 (adddf3, muldf3, subdf3): Removed.
4607 * config/arc/predicates.md (proper_comparison_operator): Recognize
4609 * config/arc/fpu.md: New file.
4610 * doc/invoke.texi (ARC Options): Document mfpu option.
4612 2016-02-16 Richard Biener <rguenther@suse.de>
4614 PR rtl-optimization/69291
4615 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
4616 noce_operand_ok check.
4618 2016-02-16 Tom de Vries <tom@codesourcery.com>
4621 * omp-low.c (simd_clone_create): Remove call to
4622 symtab->call_cgraph_insertion_hooks.
4624 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4626 PR tree-optimization/69802
4627 * tree-ssa-reassoc.c (update_range_test): If op is
4628 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
4629 op == 1 test of precision 1 integral op, otherwise handle
4630 that case as op itself. Fix up formatting.
4631 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
4634 2016-02-16 Richard Biener <rguenther@suse.de>
4636 PR tree-optimization/69586
4637 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
4638 types for conversion sources.
4640 2016-02-16 Richard Biener <rguenther@suse.de>
4643 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
4644 mask OEP_ADDRESS_OF.
4646 2016-02-16 Alan Modra <amodra@gmail.com>
4649 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
4650 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
4651 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
4653 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
4654 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
4655 (p8_fmrgow_<mode>): Likewise.
4656 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
4658 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
4659 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
4660 to use movdi_internal64. Remove op0_di.
4661 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
4663 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
4665 Add support for the FCCMP insn types
4667 * config/aarch64/aarch64.md (fccmp): Change insn type.
4669 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
4670 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
4671 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
4672 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
4673 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
4674 * config/arm/types.md (fccmps): Add new insn type.
4677 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4679 * alias.c (get_alias_set): Fix a typo in comment.
4681 2016-02-15 Richard Biener <rguenther@suse.de>
4683 PR tree-optimization/69595
4684 * match.pd: Complete range test simplification to true.
4686 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
4688 PR rtl-optimization/69648
4689 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
4690 pic_offset_table_rtx.
4692 PR rtl-optimization/69752
4693 * ira.c (update_equiv_regs): When looking for more than a single SET,
4694 also take other side effects into account.
4696 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4698 * config/s390/s390.c (s390_function_profiler): Add a new sequence
4699 for z900+ CPUs in 31-bit mode.
4701 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4703 * common/config/s390/s390-common.c (s390_supports_split_stack):
4705 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
4706 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
4707 * config/s390/s390.c (struct machine_function): New field
4708 split_stack_varargs_pointer.
4709 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
4710 in s390_emit_prologue.
4711 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
4713 (morestack_ref): New global.
4714 (SPLIT_STACK_AVAILABLE): New macro.
4715 (s390_expand_split_stack_prologue): New function.
4716 (s390_live_on_entry): New function.
4717 (s390_va_start): Use split-stack vararg pointer if appropriate.
4718 (s390_asm_file_end): Emit the split-stack note sections.
4719 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
4720 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
4721 (UNSPECV_SPLIT_STACK_CALL): New unspec.
4722 (UNSPECV_SPLIT_STACK_DATA): New unspec.
4723 (split_stack_prologue): New expand.
4724 (split_stack_space_check): New expand.
4725 (split_stack_data): New insn.
4726 (split_stack_call): New expand.
4727 (split_stack_call_*): New insn.
4728 (split_stack_cond_call): New expand.
4729 (split_stack_cond_call_*): New insn.
4731 2016-02-15 Richard Biener <rguenther@suse.de>
4733 PR tree-optimization/69783
4734 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4735 Add trivially correct cases.
4737 2016-02-15 Tom de Vries <tom@codesourcery.com>
4740 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
4742 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
4744 2016-02-15 Richard Biener <rguenther@suse.de>
4746 PR tree-optimization/69776
4747 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4748 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
4749 indicate whether we can use TBAA to disambiguate against stores.
4750 Use alias-set zero if not.
4751 (visit_reference_op_store): Do not use TBAA when looking up
4753 * tree-ssa-pre.c (compute_avail): Use TBAA here.
4754 (eliminate_dom_walker::before_dom_children): But not when looking
4755 up redundant stores.
4757 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
4759 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
4761 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4763 * config/i386/znver1.md
4764 (znver1_pop, znver1_pop_mem,
4765 znver1_load_imov_double_store,
4766 znver1_load_imov_direct_store,
4767 znver1_load_imov_direct_load,
4768 znver1_load_imov_double_load): Add new.
4769 (znver1_insn, znver1_insn_load): Add icmov type.
4771 znver1_sseavx_fma_load,
4773 znver1_avx256_fma_load): Fix pipe usage.
4775 2016-02-14 Alan Modra <amodra@gmail.com>
4778 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
4779 with an invalid hard reg, reload just the reg not the entire
4780 pre/post-inc/dec address expression.
4782 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4785 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
4786 fixed R1_REG scratch reg.
4787 (sibcall_value_pcrel_fdpic): Likewise.
4789 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4793 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
4795 2016-02-12 Walter Lee <walt@tilera.com>
4797 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
4798 * config/tilegx/t-tilegx: Likewise.
4800 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4803 * diagnostic-show-locus.c (struct line_span): New struct.
4804 (layout::get_first_line): Delete.
4805 (layout::get_last_line): Delete.
4806 (layout::get_num_line_spans): New member function.
4807 (layout::get_line_span): Likewise.
4808 (layout::print_heading_for_line_span_index_p): Likewise.
4809 (layout::get_expanded_location): Likewise.
4810 (layout::calculate_line_spans): Likewise.
4811 (layout::m_first_line): Delete.
4812 (layout::m_last_line): Delete.
4813 (layout::m_line_spans): New field.
4814 (layout::layout): Update comment. Replace m_first_line and
4815 m_last_line with m_line_spans, replacing their initialization
4816 with a call to calculate_line_spans.
4817 (diagnostic_show_locus): When printing source lines and
4818 annotations, rather than looping over a single span
4819 of lines, instead loop over each line_span within
4820 the layout, with an inner loop over the lines within them.
4821 Call the context's start_span callback when changing line spans.
4822 * diagnostic.c (diagnostic_initialize): Initialize start_span.
4823 (diagnostic_build_prefix): Break out the building of the location
4824 part of the string into...
4825 (diagnostic_get_location_text): ...this new function, rewriting
4826 it from nested ternary expressions to a sequence of "if"
4828 (default_diagnostic_start_span_fn): New function.
4829 * diagnostic.h (diagnostic_start_span_fn): New typedef.
4830 (diagnostic_context::start_span): New field.
4831 (default_diagnostic_start_span_fn): New prototype.
4833 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4836 * gcc.c (driver::finalize): Fix cleanup of "specs".
4838 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4842 * gcc.c (driver::driver): Initialize m_option_suggestions.
4843 (driver::~driver): Clean up m_option_suggestions.
4844 (suggest_option): Convert to...
4845 (driver::suggest_option): ...this, and split out into
4846 driver::build_option_suggestions and find_closest_string.
4847 (driver::build_option_suggestions): New function, from
4848 first half of suggest_option. Special-case
4849 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
4850 the sanitizer_opts array. For options of enum types, add the
4851 various enum values to the candidate strings.
4852 (driver::handle_unrecognized_options): Remove "const".
4853 * gcc.h (driver::handle_unrecognized_options): Likewise.
4854 (driver::build_option_suggestions): New decl.
4855 (driver::suggest_option): New decl.
4856 (driver::m_option_suggestions): New field.
4857 * opts-common.c (add_misspelling_candidates): New function.
4858 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
4859 and make non-static.
4860 * opts.h (sanitizer_opts): New array decl.
4861 (add_misspelling_candidates): New function decl.
4862 * spellcheck.c (find_closest_string): New function.
4863 * spellcheck.h (find_closest_string): New function decl.
4865 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4867 PR rtl-optimization/69764
4868 PR rtl-optimization/69771
4869 * optabs.c (expand_binop_directly): For shift_optab_p, force
4870 convert_modes with VOIDmode if xop1 has VOIDmode.
4872 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4875 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
4876 to correctly determine instrumentation thunks.
4878 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4881 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
4882 type by reference, force lhs on the call.
4885 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
4886 Compute retval and retbnd early in all cases if split_part_return_p
4887 and return_bb is not EXIT. Remove all clobber stmts and reset
4888 all debug stmts that refer to SSA_NAMEs defined in split part,
4889 except if it is retval, in that case replace the old retval with the
4890 lhs of the call to the split part.
4892 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4895 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4898 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4899 whose result is used in PHI.
4900 (maybe_optimize_range_tests): Likewise.
4901 (final_range_test_p): Likweise.
4903 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4906 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4907 whose result is used in PHI.
4908 (maybe_optimize_range_tests): Likewise.
4909 (final_range_test_p): Likweise.
4911 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4913 * cgraph.c: Spelling fixes - behaviour -> behavior and
4914 neighbour -> neighbor.
4915 * target.def: Likewise.
4916 * sel-sched.c: Likewise.
4917 * config/mips/mips.c: Likewise.
4918 * config/arc/arc.md: Likewise.
4919 * config/arm/cortex-a57.md: Likewise.
4920 * config/arm/arm.c: Likewise.
4921 * config/arm/neon.md: Likewise.
4922 * config/arm/arm-c.c: Likewise.
4923 * config/vms/vms-c.c: Likewise.
4924 * config/s390/s390.c: Likewise.
4925 * config/i386/znver1.md: Likewise.
4926 * config/i386/i386.c: Likewise.
4927 * config/ia64/hpux-unix2003.h: Likewise.
4928 * config/msp430/msp430.md: Likewise.
4929 * config/rx/rx.c: Likewise.
4930 * config/rx/rx.md: Likewise.
4931 * config/aarch64/aarch64-simd.md: Likewise.
4932 * config/aarch64/aarch64.c: Likewise.
4933 * config/nvptx/nvptx.c: Likewise.
4934 * config/bfin/bfin.c: Likewise.
4935 * config/cris/cris.opt: Likewise.
4936 * config/rs6000/rs6000.c: Likewise.
4937 * target.h: Likewise.
4938 * spellcheck.c: Likewise.
4939 * ira-build.c: Likewise.
4940 * tree-inline.c: Likewise.
4941 * builtins.c: Likewise.
4942 * lra-constraints.c: Likewise.
4943 * explow.c: Likewise.
4944 * hwint.h: Likewise.
4945 * targhooks.c: Likewise.
4946 * tree-vect-data-refs.c: Likewise.
4948 * doc/tm.texi: Likewise.
4949 * doc/extend.texi: Likewise.
4950 * doc/install.texi: Likewise.
4951 * doc/md.texi: Likewise.
4952 * tree-ssa-tail-merge.c: Likewise.
4953 * sched-int.h: Likewise.
4954 * match.pd: Likewise.
4955 * sched-ebb.c: Likewise.
4956 * target.def (omit_struct_return_reg): Likewise.
4957 * gimple-ssa-isolate-paths.c: Likewise.
4958 (find_implicit_erroneous_behaviour): Renamed to...
4959 (find_implicit_erroneous_behavior): ... this.
4960 (find_explicit_erroneous_behaviour): Renamed to...
4961 (find_explicit_erroneous_behavior): ... this.
4962 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
4964 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
4966 PR rtl-optimization/64682
4967 PR rtl-optimization/69567
4968 PR rtl-optimization/69737
4969 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
4970 in I2 as well, just lose it.
4972 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4974 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
4976 (aarch64_last_printed_tune_string): Likewise.
4977 (aarch64_declare_function_name): Only output .arch assembler
4978 directive if it will be different from the previously output
4979 directive. Same for .tune comment but only if -dA is set.
4980 (aarch64_start_file): New function.
4981 (TARGET_ASM_FILE_START): Define.
4983 2016-02-11 David Malcolm <dmalcolm@redhat.com>
4986 * Makefile.in (PLUGIN_HEADERS): Add params.list.
4988 2016-02-11 Jakub Jelinek <jakub@redhat.com>
4991 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
4992 -Wmaybe-uninitialized warning.
4994 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
4997 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
4999 2016-02-11 Richard Biener <rguenther@suse.de>
5001 PR rtl-optimization/69291
5002 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5003 subexpressions affected by changing the result.
5005 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5008 * lra-constraints.c (curr_insn_transform): Find in/out operands
5009 for secondary memory moves. Update dups.
5011 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5013 PR tree-optimization/69652
5014 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5015 to nested loop, did source re-formatting, skip debug statements,
5016 add check on statement with volatile operand, remove dead scalar
5019 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5020 Patrick Palka <ppalka@gcc.gnu.org>
5024 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5025 calls if the return type is TREE_ADDRESSABLE.
5026 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5027 * ipa-split.c (split_function): Fix doubled "we" in comment.
5028 Use void return type for the split part even if
5029 !split_point->split_part_set_retval.
5031 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5033 PR tree-optimization/68021
5034 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5035 when computing the value of biv cand by itself.
5037 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5039 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5040 (cortexa57_tunings): Likewise.
5041 (cortexa72_tunings): Likewise.
5042 (arch_macro_fusion_pair_p): Add support for AES fusion.
5043 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5044 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5045 Allow virtual registers before reload so early scheduling works.
5046 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5047 correct latency and pipeline.
5048 (cortex_a57_crypto_complex): Likewise.
5049 (cortex_a57_crypto_xor): Likewise.
5050 (define_bypass): Add AES bypass.
5052 2016-02-10 Richard Biener <rguenther@suse.de>
5054 PR tree-optimization/69726
5055 * passes.def: Add DCE pass before late uninit.
5056 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5057 really fixup if-conversions job.
5059 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5061 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5062 (arm_cortex_a57_tune): Likewise.
5063 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5064 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5066 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5068 * timevar.def (TV_PHASE_DBGINFO): Delete.
5069 (TV_PHASE_CHECK_DBGINFO): Likewise.
5070 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5072 2016-02-10 Richard Biener <rguenther@suse.de>
5074 PR tree-optimization/69719
5075 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5076 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5078 2016-02-09 Andrew Pinski <apinski@cavium.com>
5081 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5082 get_vcond_mask_icode returns false.
5084 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5087 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5088 an ADDIS that adds a pointer to a large constant that sets the
5089 upper16 bits with a load operation.
5091 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5094 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5096 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5098 (vzipq_s16): Likewise.
5099 (vzipq_s32): Likewise.
5100 (vzipq_f32): Likewise.
5101 (vzipq_u8): Likewise.
5102 (vzipq_u16): Likewise.
5103 (vzipq_u32): Likewise.
5104 (vzipq_p8): Likewise.
5105 (vzipq_p16): Likewise.
5107 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5110 * config/arm/arm.c (neon_endian_lane_map): New function.
5111 (neon_vector_pair_endian_lane_map): New function.
5112 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5113 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5115 (vuzpq_s16): Likewise.
5116 (vuzpq_s32): Likewise.
5117 (vuzpq_f32): Likewise.
5118 (vuzpq_u8): Likewise.
5119 (vuzpq_u16): Likewise.
5120 (vuzpq_u32): Likewise.
5121 (vuzpq_p8): Likewise.
5122 (vuzpq_p16): Likewise.
5124 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5127 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5130 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5132 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5133 truncate const_int operand 1 to QImode.
5135 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5137 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5138 corresponding to an abnormal edge.
5140 2016-02-09 Tom de Vries <tom@codesourcery.com>
5142 PR tree-optimization/69599
5143 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5145 (find_func_aliases_for_builtin_call, find_func_clobbers)
5146 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5149 2016-02-09 Richard Biener <rguenther@suse.de>
5151 PR tree-optimization/69715
5152 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5153 LHS on calls as non-rewritable.
5155 2016-02-09 Tom de Vries <tom@codesourcery.com>
5158 * lto-wrapper.c (append_diag_options): New function.
5159 (compile_offload_image): Call append_diag_options.
5161 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5164 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5165 Minor copy-edit to fix verb tenses.
5167 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5169 PR tree-optimization/69209
5170 * ipa-split.c (split_function): If split part is not
5171 returning retval, retval has gimple type but is not
5172 gimple value, force it into a SSA_NAME first.
5174 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5176 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5179 2016-02-08 Jason Merrill <jason@redhat.com>
5182 * convert.c (convert_to_integer_1): Check dofold on truncation
5184 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5185 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5186 Rename from *_nofold.
5187 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5188 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5190 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
5193 * tree.c (build_common_tree_nodes): Remove short_double argument.
5194 All callers changed.
5195 * tree.h (build_common_tree_nodes): Adjust declaration.
5196 * doc/invoke.texi (-fshort-double): Remove documentation.
5197 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5198 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5199 * lto-wrapper.c (merge_and_complain, append_compiler_options)
5200 (append_linker_options): Don't handle OPT_fshort_double.
5202 PR rtl-optimization/68730
5203 * lra-remat.c (insn_to_cand_activation): New static variable.
5204 (lra_remat): Allocate and free it.
5205 (create_cand): New arg activation. Initialize a field in
5206 insn_to_cand_activation if it is nonnull.
5207 (create_cands): Pass the activation insn to create_cand when making
5208 a candidate involving an output reload. Reorganize code a little.
5209 (do_remat): Keep track of active status of candidates in a separate
5212 2016-02-08 Richard Biener <rguenther@suse.de>
5214 PR tree-optimization/69719
5215 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5216 Properly use absolute of the difference of the two offsets to
5217 compare or adjust the segment length.
5219 2016-02-08 Richard Biener <rguenther@suse.de>
5220 Jeff Law <law@redhat.com>
5223 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5224 types for anonymous SSA names.
5226 2016-02-08 Richard Biener <rguenther@suse.de>
5228 PR rtl-optimization/69274
5229 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5231 2016-02-08 Jeff Law <law@redhat.com>
5233 PR tree-optimization/65917
5234 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5235 equivalences from if (x == y) style conditionals.
5236 (loop_depth_of_name): Remove.
5237 (record_equality): Remove loop depth check.
5238 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5239 (const_and_copies::record_const_or_copy_raw): New member function.
5240 * tree-ssa-scopedtables.c
5241 (const_and_copies::record_const_or_copy_raw): New, factored out of
5242 (const_and_copies::record_const_or_copy): Call new member function.
5244 2016-02-05 Jeff Law <law@redhat.com>
5246 PR tree-optimization/68541
5247 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5248 (count_stmts_in_block): New function.
5249 (poor_ifcvt_candidate_code): Likewise.
5250 (is_feasible_trace): Add some heuristics to determine when path
5251 splitting is profitable.
5252 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5253 is a diamond with a single exit.
5255 2016-02-05 Martin Sebor <msebor@redhat.com>
5258 * doc/invoke.texi: Update -Wplacement-new to take an optional
5261 2016-02-06 Richard Henderson <rth@redhat.com>
5264 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5265 out of non-standard address spaces.
5267 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5269 PR rtl-optimization/69691
5270 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5272 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5274 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5275 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5276 (*ieee128_mfvsrd_64bit): Likewise.
5277 (*ieee128_mfvsrd_32bit): Likewise.
5279 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5283 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5285 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5286 instrumented_version.
5288 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5290 * doc/invoke.texi (Optimize Options): In table of --param options
5291 rename second occurrence of tracer-min-branch-ratio to
5292 tracer-min-branch-probability, rename
5293 tracer-min-branch-ratio-feedback to
5294 tracer-min-branch-probability-feedback and clarify description,
5295 rename sched-spec-state-edge-prob-cutoff to
5296 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5297 to selsched-insns-to-rename, rename lto-minpartition to
5298 lto-min-partition, delete reorder-blocks-duplicate and
5299 reorder-blocks-duplicate-feedback.
5301 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5303 * config/s390/s390.c (s390_register_info_set_ranges): Remove
5306 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5308 * doc/extend.texi: S/390: Correct some typos.
5310 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5312 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5314 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5317 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5318 (s390_register_info_gprtofpr): Use new macros above.
5319 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5321 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5322 its name. Adjust restore and save gpr ranges.
5323 (s390_register_info_set_ranges): New function.
5324 (s390_register_info): Use new macros above. Call
5325 s390_register_info_set_ranges.
5326 (s390_optimize_register_info): Likewise.
5327 (s390_hard_regno_rename_ok): Use new macros.
5328 (s390_hard_regno_scratch_ok): Likewise.
5329 (s390_emit_epilogue): Likewise.
5330 (s390_can_use_return_insn): Likewise.
5331 (s390_optimize_prologue): Likewise.
5332 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5334 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5337 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5339 (ix86_option_override_internal): Disable TARGET_STV even for
5340 -m{incoming,preferred}-stack-boundary=3.
5342 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5344 * config.gcc: Mark deprecated rtems targets as obsolete.
5346 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
5348 PR rtl-optimization/64682
5349 PR rtl-optimization/69567
5350 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5351 before I2 only if the register is both used and set in I2.
5353 2016-02-04 DJ Delorie <dj@redhat.com>
5355 * config/msp430/msp430.c (msp430_start_function): Add function type.
5357 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5360 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5362 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
5364 PR rtl-optimization/69577
5366 2015-10-29 Richard Henderson <rth@redhat.com>
5370 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5371 sse check to the exact conditions of PR 67609.
5373 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5376 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5377 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5378 not allowed into the traditional Altivec registers.
5379 (movtd_64bit_nodm): Likewise.
5380 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5382 2016-02-04 David Malcolm <dmalcolm@redhat.com>
5384 * config/aarch64/cortex-a57-fma-steering.c
5385 (aarch64_register_fma_steering): Remove "static" from arguments
5388 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
5391 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5394 2016-02-04 Mike Frysinger <vapier@gentoo.org>
5396 * doc/invoke.texi: Delete -mno-fma4.
5398 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
5400 PR rtl-optimization/69577
5401 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5402 (find_subregs_of_mode): Update accordingly. Iterate over partial
5405 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
5407 * config/arm/arm-protos.h (neon_reinterpret): Remove.
5408 * config/arm/arm.c (neon_reinterpret): Remove.
5409 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5410 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5411 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5412 vreinterpretti): Remove.
5413 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5414 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5415 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5416 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5417 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5418 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5419 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5420 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5421 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5422 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5423 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5424 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5425 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5426 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5427 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5428 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5429 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5430 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5431 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5432 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5433 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5434 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5435 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5436 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5437 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5438 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5439 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5440 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5441 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5442 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5443 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5444 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5445 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5446 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5447 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5448 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5449 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5450 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5451 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5452 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5453 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5454 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5455 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5456 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5457 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5458 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5459 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5460 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5461 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5462 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5463 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5464 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5465 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5466 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5467 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5468 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5469 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5470 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5471 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5472 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5473 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5474 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5475 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5476 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5477 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5478 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5479 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5480 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5481 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5482 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5483 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5484 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5485 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5486 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5487 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5488 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5489 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5490 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5491 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5492 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5493 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5494 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5495 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5496 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5497 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5498 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5499 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5500 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5501 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5502 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5503 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5504 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5505 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5506 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5507 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5508 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5509 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5510 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5511 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5512 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5513 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5514 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5515 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5517 2016-02-04 Martin Liska <mliska@suse.cz>
5520 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5521 that are gimple_store_p.
5522 (maybe_instrument_call): Likewise.
5524 2016-02-04 Bin Cheng <bin.cheng@arm.com>
5526 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
5527 register scaling out of memory reference and comment why.
5529 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5533 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
5534 folding the source of a SET.
5536 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5540 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
5541 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
5543 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
5547 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
5550 2016-02-04 Christian Bruel <christian.bruel@st.com>
5552 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
5553 * config/arm/arm.c (arm_set_current_function): Likewise.
5555 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5556 Ilya Enkovich <enkovich.gnu@gmail.com>
5557 H.J. Lu <hongjiu.lu@intel.com>
5560 * config/i386/i386.c (convert_scalars_to_vector): Remove
5561 stack alignment fixes.
5562 (ix86_option_override_internal): Disable TARGET_STV if stack
5563 might not be aligned enough.
5564 (ix86_minimum_alignment): Assert that TARGET_STV is false.
5566 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
5568 * gcc/config/i386/x86-tune.def: Disable default prefetching
5571 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5572 Vladimir Makarov <vmakarov@redhat.com>
5575 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
5576 in validating fused toc addresses.
5578 2016-02-03 Jakub Jelinek <jakub@redhat.com>
5581 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
5582 range->m_caret fields if range->m_show_caret_p is false.
5585 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5586 Force oldval into register if it does not satisfy reg_or_short_operand
5587 predicate. Fix up formatting.
5589 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
5590 Alexandre Oliva <aoliva@redhat.com>
5593 * lra-constraints.c (simplify_operand_subreg): Check additionally
5594 address validity after potential reloading.
5595 (process_address_1): Check insns validity. In case of failure do
5598 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
5601 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
5604 2016-02-02 Jakub Jelinek <jakub@redhat.com>
5606 * wide-int.cc (canonize_uhwi): New function.
5607 (wi::divmod_internal): Use it.
5609 2016-02-02 James Norris <jnorris@codesourcery.com
5611 * gimplify.c (omp_notice_variable): Add usage check.
5613 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5615 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
5616 like LE, GE, LT, GT when emitting relational operator.
5618 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5620 * ira-costs.c (find_costs_and_classes): Add extra argument.
5621 * target.def (ira_change_pseudo_allocno_class): Add parameter.
5622 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
5623 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
5624 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
5625 Add best_class parameter, and return it if not ALL_REGS.
5626 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
5628 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
5631 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5633 * config/aarch64/aarch64.c
5634 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
5635 (aarch64_ira_change_pseudo_allocno_class): New function.
5637 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
5640 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
5642 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5644 * config/avr/avr.c (avr_option_override): Set
5645 PARAM_ALLOW_STORE_DATA_RACES to 1.
5647 2016-02-02 Richard Biener <rguenther@suse.de>
5649 PR tree-optimization/69595
5650 * match.pd: Add range test simplifications to true/false.
5652 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5654 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
5655 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5658 2016-02-02 Richard Biener <rguenther@suse.de>
5660 PR tree-optimization/69606
5661 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
5662 info on the result before moving a stmt.
5664 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
5667 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
5668 branch with vector comparison.
5669 * config/i386/sse.md (VI48_AVX): New mode iterator.
5670 (define_expand "cbranch<mode>4): Add support for conditional branch
5671 with vector comparison.
5672 * tree-vect-loop.c (optimize_mask_stores): New function.
5673 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
5674 has_mask_store field of vect_info.
5675 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
5676 vectorized loops having masked stores after vec_info destroy.
5677 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
5678 correspondent macros.
5679 (optimize_mask_stores): Add prototype.
5681 2016-02-02 Alan Modra <amodra@gmail.com>
5684 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
5687 2016-02-02 Alan Modra <amodra@gmail.com>
5690 * config/rs6000/rs6000.c (need_toc_init): New var, set it
5691 whenever toc_label_name used.
5692 (rs6000_file_start): Don't set up toc section here,
5693 (rs6000_output_function_epilogue): do so here instead,
5694 (rs6000_xcoff_file_start): and here.
5695 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
5696 (load_toc_aix_di): Likewise.
5698 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5700 PR rtl-optimization/69592
5701 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
5702 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
5703 (num_sign_bit_copies_binary_arith_p): New inline function.
5704 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
5706 2016-02-01 Jeff Law <law@redhat.com>
5708 PR tree-optimization/69580
5709 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
5710 * tree-ssa-threadbackward.c
5711 (fsm_find_control_statement_thread_paths): Do not try to walk
5712 through large PHI nodes.
5714 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5716 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
5717 when count is incremented above limit, don't analyze further
5720 * omp-low.c (oacc_parse_default_dims): Avoid
5721 -Wsign-compare warning, make sure value fits into int
5722 rather than just unsigned int.
5724 2016-02-01 Bin Cheng <bin.cheng@arm.com>
5726 PR tree-optimization/67921
5727 * fold-const.c (split_tree): New parameters. Convert pointer
5728 type variable part to proper type before negating.
5729 (fold_binary_loc): Pass new arguments to split_tree.
5731 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5733 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
5734 (nvptx_goacc_validate_dims): Extend to handle global defaults.
5735 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
5736 * doc/tm.texti: Rebuilt.
5737 * doc/invoke.texi (fopenacc-dim): Document.
5738 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
5739 (append_compiler_options): Likewise.
5740 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
5741 (oacc_parse_default_dims): New.
5742 (oacc_validate_dims): Add USED arg. Select non-unity default when
5744 (oacc_loop_fixed_partitions): Return mask of used partitions.
5745 (oacc_loop_auto_partitions): Emit dump info.
5746 (oacc_loop_partition): Return mask of used partitions.
5747 (execute_oacc_device_lower): Parse default dimension arg. Adjust
5748 loop partitioning and validation calls.
5750 2016-02-01 Richard Biener <rguenther@suse.de>
5753 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
5755 2016-02-01 Richard Biener <rguenther@suse.de>
5757 PR tree-optimization/69574
5758 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
5759 of asserting return chrec_dont_know.
5761 2016-02-01 Martin Liska <mliska@suse.cz>
5763 * mem-stats-traits.h: Add copyright header.
5764 * mem-stats.h: Likewise.
5766 2016-02-01 Richard Biener <rguenther@suse.de>
5768 PR tree-optimization/69579
5769 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
5770 Do not propagate through abnormal PHI results.
5772 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
5774 * postreload.c (reload_cse_simplify): Remove dead code.
5776 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5778 PR rtl-optimization/69570
5779 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
5780 if there is more than one set, not if there is a single set.
5782 2016-02-01 Richard Henderson <rth@redhat.com>
5785 * combine.c (make_compound_operation): When looking through a
5786 subreg, make sure to re-extend to the width of the outer mode.
5788 2016-01-30 Jakub Jelinek <jakub@redhat.com>
5790 PR tree-optimization/69546
5791 * wide-int.cc (wi::divmod_internal): For unsigned division
5792 where both operands fit into uhwi, if o1 is 1 and o0 has
5793 msb set, if divident_prec is larger than bits per hwi,
5794 clear another quotient word and return 2 instead of 1.
5795 Similarly for remainder with msb in HWI set, if dividend_prec
5796 is larger than bits per hwi.
5798 2016-01-29 Martin Jambor <mjambor@suse.cz>
5800 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
5801 Use short lowercase names.
5802 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
5803 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
5804 acq_rel one. Protect warning agains segfaults if
5805 get_memory_order_name returns NULL.
5806 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
5807 with release semantics. Do not warn if get_memory_order already did.
5808 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
5809 semantics. Fix check for relaxed or acquire semantics. Do not warn
5810 if get_memory_order already did.
5812 2016-01-29 Sebastian Pop <s.pop@samsung.com>
5814 * doc/install.texi: Document that isl-0.16 is supported.
5816 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
5819 * config/i386/constraints.md (Bm): Describe as special memory
5821 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
5822 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5823 * genpreds.c (struct constraint_data): Add is_special_memory.
5824 (have_special_memory_constraints, special_memory_start): New
5826 (special_memory_end): Ditto.
5827 (add_constraint): Add new arg is_special_memory. Add code to
5828 process its true value. Update have_special_memory_constraints.
5829 (process_define_constraint): Pass the new arg.
5830 (process_define_register_constraint): Ditto.
5831 (choose_enum_order): Process special memory.
5832 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
5833 function insn_extra_special_memory_constraint.
5834 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5835 * gensupport.c (process_rtx): Process
5836 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5837 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
5838 * ira-lives.c (single_reg_class): Use
5839 insn_extra_special_memory_constraint.
5840 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
5841 * lra-constraints.c (process_alt_operands): Ditto.
5842 (curr_insn_transform): Use insn_extra_special_memory_constraint.
5843 * recog.c (asm_operand_ok, preprocess_constraints): Process
5845 * reload.c (find_reloads): Ditto.
5846 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
5847 * stmt.c (parse_input_constraint): Use
5848 insn_extra_special_memory_constraint.
5850 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5853 * lra-splill.c (lra_final_code_change): Revert r229087 by
5854 removing all sub-registers.
5856 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
5859 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
5861 2016-01-29 Jakub Jelinek <jakub@redhat.com>
5864 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
5865 SSE1, copy target into the temporary reg first before recursing
5868 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5870 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
5873 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5875 * ginclude/stdarg.h: Test __cplusplus instead of
5876 __GXX_EXPERIMENTAL_CXX0X__.
5878 2016-01-29 Richard Biener <rguenther@suse.de>
5880 PR tree-optimization/69547
5881 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
5882 Do not mark clobbers necessary.
5883 (mark_all_reaching_defs_necessary_1): Likewise.
5885 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5887 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
5888 declaration name with %qs and print it in both error messages.
5889 Also fix indentation.
5891 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5894 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
5895 trailing blank line from error message.
5897 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5900 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
5903 2016-01-29 Richard Biener <rguenther@suse.de>
5906 * match.pd: Allow all integral types when simplifying a
5907 widening or sign-changing conversion.
5909 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5911 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
5912 back to setting codegen_error to fail codegen.
5914 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
5917 * config/i386/constraints.md (C): Only accept constant zero operand.
5918 (BC): New constraint.
5919 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
5920 instead of C constraint.
5921 * doc/md.texi (Machine Constraints): Update description
5924 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
5927 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
5929 2016-01-28 Jakub Jelinek <jakub@redhat.com>
5932 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
5935 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
5937 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
5938 branches if using guessed profile.
5940 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
5942 * graphite-optimize-isl.c (optimize_isl): Fix dump.
5944 2016-01-28 Richard Henderson <rth@redhat.com>
5947 * config/aarch64/aarch64-modes.def (CC_Cmode): New
5948 * config/aarch64/aarch64-protos.h: Update.
5949 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
5950 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
5951 (aarch64_get_condition_code_1): Handle CC_Cmode.
5952 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
5953 (*add<mode>3_compareC_cconly_imm): New.
5954 (*add<mode>3_compareC_cconly): New.
5955 (*add<mode>3_compareC_imm): New.
5956 (add<mode>3_compareC): New.
5957 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
5958 to be first. Use aarch64_carry_operation.
5959 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
5960 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
5961 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
5962 (subti3): Use subdi3_compare1.
5963 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
5964 (sub<mode>3_compare1): New.
5965 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
5966 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
5967 (*subsi3_carryin_uxtw): Likewise.
5968 (*ngc<mode>, *ngcsi_uxtw): Likewise.
5969 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
5970 * config/aarch64/iterators.md (DWI): New.
5971 * config/aarch64/predicates.md (aarch64_carry_operation): New.
5972 (aarch64_borrow_operation): New.
5974 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5976 * graphite-optimize-isl.c (optimize_isl): Print a different debug
5977 message when isl does not return a valid schedule.
5979 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5981 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5982 Remove comments from class declarations: they are already in the code
5985 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5987 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
5989 (ternary_op_to_tree): Same.
5990 (unary_op_to_tree): Same.
5991 (nary_op_to_tree): Same.
5992 (gcc_expression_from_isl_expr_op): Same.
5993 (gcc_expression_from_isl_expression): Same.
5994 (graphite_create_new_loop): Same.
5995 (graphite_create_new_loop_guard): Same.
5996 (build_iv_mapping): Same.
5997 (graphite_create_new_guard): Same.
5998 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
5999 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6001 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6003 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6004 instead of setting codegen_error to fail codegen.
6006 2016-01-28 Jason Merrill <jason@redhat.com>
6008 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6010 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6012 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6013 Remove CONST_INT_P check in CCMP cost calculation.
6015 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6017 * config/aarch64/aarch64.c (generic_vector_cost):
6018 Set vec_permute_cost.
6019 (cortexa57_vector_cost): Likewise.
6020 (exynosm1_vector_cost): Likewise.
6021 (xgene1_vector_cost): Likewise.
6022 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6023 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6024 Add vec_permute_cost entry.
6026 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6028 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6030 (add<mode>3_compare0): Likewise.
6031 (addsi3_compare0_uxtw): Likewise.
6032 (add<mode>3nr_compare0): Likewise.
6033 (compare_neg<mode>): Likewise.
6034 (<optab><mode>3): Likewise.
6036 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6038 * tree-vect-stmts.c (vectorizable_comparison): Add
6039 NULL check for vectype.
6041 2016-01-28 Richard Biener <rguenther@suse.de>
6043 PR tree-optimization/69466
6044 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6045 Account for PHIs we couldn't duplicate.
6047 2016-01-28 Martin Liska <mliska@suse.cz>
6050 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6051 instead of ENABLE_VALGRIND_CHECKING.
6053 2016-01-27 Richard Henderson <rth@redhat.com>
6056 * lra-remat.c (subreg_regs): New.
6057 (dump_candidates_and_remat_bb_data): Dump it.
6058 (operand_to_remat): Reject if operand in subreg_regs.
6059 (set_bb_regs): Collect subreg_regs.
6060 (lra_remat): Init and free subreg_regs. Compute
6061 calculate_local_reg_remat_bb_data before create_cands.
6063 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6066 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6067 change stack_alignment_needed for __tls_get_addr call.
6069 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6071 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6073 2016-01-27 Jeff Law <law@redhat.com>
6075 PR tree-optimization/68398
6076 PR tree-optimization/69196
6077 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6078 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6079 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6080 Only count PHIs in the last block in the path. The others will
6081 const/copy propagate away. Add heuristic to allow more irreducible
6082 subloops to be created when it is likely profitable to do so.
6084 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6085 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6086 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6088 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6091 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6092 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6093 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6094 * tree-streamer-in.c: Include asan.h.
6095 (streamer_get_builtin_tree): For builtins in sanitizer
6096 range call initialize_sanitizer_builtins and retry.
6098 2016-01-27 Ian Lance Taylor <iant@google.com>
6100 * common.opt (fkeep-gc-roots-live): New undocumented option.
6101 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6102 -fkeep-gc-roots-live, skip pointers.
6103 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6106 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6109 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6110 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6112 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6115 * configure.ac: NetBSD provides SSP in its C library.
6116 * configure: Updated.
6118 2016-01-27 Richard Biener <rguenther@suse.de>
6120 PR tree-optimization/69166
6121 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6122 reduction code for commutativity / associativity.
6124 2016-01-27 Martin Jambor <mjambor@suse.cz>
6126 PR tree-optimization/69355
6127 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6128 total_scalarization fails.
6130 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6132 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6135 2016-01-27 Christian Bruel <christian.bruel@st.com>
6138 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6139 Move arm_reset_previous_fndecl and set_target_option_current_node in
6140 the conditional part. Call save_restore_target_globals.
6141 * config/arm/arm.c (arm_set_current_function):
6142 Refactor to better support #pragma target and attribute mix.
6143 Call save_restore_target_globals.
6144 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6146 2016-01-27 Martin Liska <mliska@suse.cz>
6148 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6149 reference for an HSA kernel and its host function.
6151 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6153 PR tree-optimization/69399
6154 * wide-int.h (wi::lrshift): For larger precisions, only
6155 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6157 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6159 * config/arc/predicates.md (proper_comparison_operator): Reject
6160 constant-constant comparison.
6162 2016-01-26 Tom de Vries <tom@codesourcery.com>
6164 PR tree-optimization/69110
6165 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6166 DR_NUM_DIMENSIONS == 0.
6168 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6169 Sebastian Pop <s.pop@samsung.com>
6171 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6172 isl_ast_op_cond and isl_ast_op_select.
6173 (gcc_expression_from_isl_expr_op): Same.
6175 2016-01-26 Jason Merrill <jason@redhat.com>
6178 * tree.c (recompute_constructor_flags): Split out from
6180 (verify_constructor_flags): New.
6181 * tree.h: Declare them.
6183 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
6185 PR rtl-optimization/69217
6186 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6187 are no TYPE_FIELDS set for the record type.
6189 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6193 toc_label_name unconditionally.
6194 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6195 SYMBOL_REF string. Use toc_label_name instead of constructing
6197 (rs6000_elf_declare_function_name): Use toc_label_name instead of
6198 constructing LCTOC1.
6200 2016-01-26 Martin Sebor <msebor@redhat.com>
6203 * doc/extend.texi (Common Type Attributes): Move text that talks about
6204 attribute packed from attribute aligned to the section discussing
6205 the former attribute for clarity.
6207 2016-01-26 Richard Henderson <rth@redhat.com>
6210 * trans-mem.c (tm_region_init): Mark entry block as visited.
6212 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6215 * diagnostic-show-locus.c (layout::print_source_line): Replace
6216 call to pp_newline with call to layout::print_newline.
6217 (layout::print_annotation_line): Likewise.
6218 (layout::move_to_column): Likewise.
6219 (layout::print_any_fixits): After printing any fixits, print a
6220 trailing newline, if necessary.
6221 (layout::print_newline): New method, resetting any colorization
6223 (diagnostic_show_locus): Move the pp_newline to before the
6224 early bailout. Remove dummy block enclosing the layout instance.
6225 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6226 of pp_newline_and_flush with pp_flush.
6227 (diagnostic_append_note): Delete use of pp_newline.
6228 (diagnostic_append_note_at_rich_loc): Delete.
6229 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6230 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6231 when newline characters are added to the buffer.
6233 2016-01-26 Michael Matz <matz@suse.de>
6235 * configure.ac (ac_cv_std_swap_in_utility): New test.
6236 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6237 * configure: Regenerate.
6238 * config.in: Regenerate.
6240 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6242 * config/arc/arc.md (cstoresi4): Force operand into register.
6243 (arcset<code>): Fix predicate.
6244 (arcsetltu): Likewise.
6245 (arcsetgeu): Likewise.
6246 (arcsethi): Likewise.
6247 (arcsetls): Likewise.
6249 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6251 PR tree-optimization/69483
6252 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6253 if base has error_mark_node type.
6255 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6258 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6259 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6261 (vget_lane_f16): Handle big-endian.
6262 (vgetq_lane_f16): Likewise.
6263 (vset_lane_f16): Likewise.
6264 (vsetq_lane_f16): Likewise.
6265 * config/arm/iterators.md (VQXMOV): Add V8HF.
6266 (VDQ): Add V4HF and V8HF.
6267 (V_reg): Handle V4HF and V8HF.
6268 (Is_float_mode): Likewise.
6269 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6270 neon_vdup_nv8hf): New patterns.
6271 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6272 Use VD_LANE iterator.
6273 (neon_vld1_dup<mode>): Use VQ2 iterator.
6275 2016-01-26 Nathan Sidwell <nathan@acm.org>
6277 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6278 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6279 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6280 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6281 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6282 (oacc_validate_dims): Add LEVEL arg, don't return level.
6283 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6285 (execute_oacc_device_lower): Adjust, add more dump output.
6286 * tree-ssa-loop.c (gate_oacc_kernels): Use
6287 oacc_fn_attrib_kernels_p.
6288 * tree-parloops.c (create_parallel_loop): Adjust
6289 set_oacc_fn_attrib call.
6291 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6294 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6295 (append_compiler_options): Handle -fcilkplus.
6296 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6298 2016-01-26 Nick Clifton <nickc@redhat.com>
6301 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6302 been marked as DECL_ONE_ONLY but we do not the means to make it
6303 so, then do not allow it to bind locally.
6305 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6308 * opts.h (parse_sanitizer_options): New prototype.
6309 * opts.c (sanitizer_opts): New array.
6310 (parse_sanitizer_options): New function.
6311 (common_handle_option): Use parse_sanitizer_options.
6313 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
6316 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6317 alignment adjustment to ...
6318 (ix86_update_stack_boundary): Here. Don't over-align stack for
6320 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6321 if __tls_get_addr is called.
6323 2016-01-26 Christian Bruel <christian.bruel@st.com>
6325 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6327 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
6329 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6331 2016-01-26 Richard Biener <rguenther@suse.de>
6334 * match.pd: Guard X * CST CMP 0 pattern with single_use.
6336 2016-01-26 Richard Biener <rguenther@suse.de>
6338 PR tree-optimization/69452
6339 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6340 (move_computations_dom_walker::before_dom_children): Rename
6342 (move_computations_worker): This.
6343 (move_computations): Perform an RPO rather than a DOM walk.
6345 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6348 * combine.c (combine_instructions): For REG_EQUAL note with
6349 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6350 to the underlying register.
6351 * doc/rtl.texi (REG_EQUAL): Document the behavior of
6352 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6354 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
6357 * config/aarch64/aarch64-builtins.c
6358 (aarch64_init_simd_builtin_types): Do not set structural
6359 equality to __Poly{8,16,64,128}_t types.
6361 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
6363 PR tree-optimization/69400
6364 * wide-int.cc (wi_pack): Take the precision as argument and
6365 perform canonicalization here rather than in the callers.
6366 Use the main loop to handle all full-width HWIs. Add a
6367 zero HWI if in_len isn't a full result.
6368 (wi::divmod_internal): Update accordingly.
6369 (wi::mul_internal): Likewise. Simplify.
6371 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6372 Sebastian Pop <s.pop@samsung.com>
6374 * graphite-poly.c (apply_poly_transforms): Simplify.
6375 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6376 (print_isl_map): Same.
6377 (print_isl_union_map): Same.
6378 (print_isl_schedule): New.
6379 (debug_isl_schedule): New.
6380 * graphite-dependences.c (scop_get_reads): Do not call
6381 isl_union_map_add_map that is undocumented isl functionality.
6382 (scop_get_must_writes): Same.
6383 (scop_get_may_writes): Same.
6384 (scop_get_original_schedule): Remove.
6385 (scop_get_dependences): Do not call isl_union_map_compute_flow that
6386 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
6387 (compute_deps): Remove.
6388 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6389 (debug_schedule_ast): New.
6390 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6391 set_separate_option.
6392 (graphite_regenerate_ast_isl): Add dump.
6393 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6394 from scop->transformed_schedule.
6395 (graphite_regenerate_ast_isl): Add more dump.
6396 * graphite-optimize-isl.c (optimize_isl): Set
6397 scop->transformed_schedule. Check whether schedules are equal.
6398 (apply_poly_transforms): Move here.
6399 * graphite-poly.c (apply_poly_transforms): ... from here.
6400 (free_poly_bb): Static.
6401 (free_scop): Static.
6402 (pbb_number_of_iterations_at_time): Remove.
6403 (print_isl_ast): New.
6404 (debug_isl_ast): New.
6405 (debug_scop_pbb): New.
6406 * graphite-scop-detection.c (print_edge): Move.
6408 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6409 (build_scop_scattering): Remove.
6410 (create_pw_aff_from_tree): Assert instead of bailing out.
6411 (add_condition_to_pbb): Remove unused code, do not fail.
6412 (add_conditions_to_domain): Same.
6413 (add_conditions_to_constraints): Remove.
6414 (build_scop_context): New.
6415 (add_iter_domain_dimension): New.
6416 (build_iteration_domains): Initialize pbb->iterators.
6417 Call add_conditions_to_domain.
6420 (index_outermost_in_loop): New.
6421 (index_pbb_in_loop): New.
6422 (outermost_pbb_in): New.
6423 (add_in_sequence): New.
6424 (add_outer_projection): New.
6425 (outer_projection_mupa): New.
6426 (add_loop_schedule): New.
6427 (build_schedule_pbb): New.
6428 (build_schedule_loop): New.
6429 (embed_in_surrounding_loops): New.
6430 (build_schedule_loop_nest): New.
6431 (build_original_schedule): New.
6432 (build_poly_scop): Call build_original_schedule.
6433 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6434 (free_poly_dr): Remove.
6435 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
6436 (free_poly_bb): Remove.
6437 (debug_loop_vec): Remove.
6438 (print_isl_ast): Declare.
6439 (debug_isl_ast): Declare.
6440 (scop_do_interchange): Remove.
6441 (scop_do_strip_mine): Remove.
6442 (scop_do_block): Remove.
6443 (flatten_all_loops): Remove.
6444 (optimize_isl): Remove.
6445 (pbb_number_of_iterations_at_time): Remove.
6446 (debug_scop_pbb): Declare.
6447 (print_schedule_ast): Declare.
6448 (debug_schedule_ast): Declare.
6449 (struct scop): Remove schedule. Add original_schedule,
6450 transformed_schedule.
6451 (free_gimple_poly_bb): Remove.
6452 (print_generated_program): Remove.
6453 (debug_generated_program): Remove.
6454 (unify_scattering_dimensions): Remove.
6455 * sese.c (print_edge): ... here.
6456 (print_sese): ... here.
6457 (debug_edge): ... here.
6458 (debug_sese): ... here.
6459 * sese.h (print_edge): Declare.
6460 (print_sese): Declare.
6461 (dump_edge): Declare.
6462 (dump_sese): Declare.
6464 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6465 Sebastian Pop <s.pop@samsung.com>
6467 * Makefile.in: Set ISLVER in site.exp.
6469 2016-01-25 Jakub Jelinek <jakub@redhat.com>
6471 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6472 DECL_VALUE_EXPR of new_var even for the non-array case. Look
6473 through DECL_VALUE_EXPR for expansion.
6475 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6477 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6478 the frame info after reload completed.
6480 2016-01-25 Jeff Law <law@redhat.com>
6482 PR tree-optimization/69196
6483 PR tree-optimization/68398
6484 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6485 tree-ssa-threadupdate.c.
6486 (determine_bb_domination_status): Prototype
6487 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6488 (determine_bb_domination_status): No longer static.
6489 (valid_jump_thread_path): Remove code to detect characteristics
6490 of the jump thread path not associated with correctness.
6491 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6492 Correct test for thread path length. Count PHIs for real operands as
6493 statements that need to be copied. Do not count ASSERT_EXPRs.
6494 Look at all the blocks in the thread path. Compute and selectively
6495 filter thread paths based on threading through the latch, threading
6496 a multiway branch or crossing a multiway branch.
6498 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6500 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
6501 decl with __attribute__ ((unused)) annotation.
6503 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
6506 * tree-vect-stmts.c (vectorizable_condition): Check vectype
6507 of operands is compatible with a statement vectype.
6509 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
6511 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6512 improve wording for mixed storage order support.
6514 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
6516 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6517 (vcvt_u64_f64): Likewise.
6518 (vcvta_s64_f64): Likewise.
6519 (vcvta_u64_f64): Likewise.
6520 (vcvtm_s64_f64): Likewise.
6521 (vcvtm_u64_f64): Likewise.
6522 (vcvtn_s64_f64): Likewise.
6523 (vcvtn_u64_f64): Likewise.
6524 (vcvtp_s64_f64): Likewise.
6525 (vcvtp_u64_f64): Likewise.
6527 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
6529 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
6530 (arc_init): Check validity mll64 option.
6531 (arc_save_restore): Use double load/store instruction.
6532 (arc_expand_movmem): Likewise.
6533 (arc_split_move): Don't split if we have double load/store
6534 instructions. Returns a boolean.
6535 (arc_process_double_reg_moves): Change function to return boolean
6536 instead of a sequence of instructions.
6537 (arc_dwarf_register_span): New function.
6538 * config/arc/arc-protos.h (arc_split_move): Change prototype.
6539 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
6540 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
6541 (*movdf_insn): Likewise.
6542 * config/arc/arc.opt (mll64): New option.
6543 * config/arc/predicates.md (even_register_operand): New predicate.
6544 * doc/invoke.texi (ARC Options): Add mll64 documentation.
6546 2016-01-25 Richard Biener <rguenther@suse.de>
6549 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
6550 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
6552 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
6554 2016-01-25 Richard Biener <rguenther@suse.de>
6556 PR tree-optimization/69376
6557 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
6559 (VN_INFO_ANTI_RANGE_P): New inline.
6560 (VN_INFO_RANGE_TYPE): Likewise.
6561 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
6562 SSA_NAME_ANTI_RANGE_P.
6563 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
6564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6565 Properly query VN_INFO_RANGE_TYPE.
6567 2016-01-25 Nick Clifton <nickc@redhat.com>
6570 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
6572 2016-01-23 Tom de Vries <tom@codesourcery.com>
6574 PR tree-optimization/69426
6575 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
6578 2016-01-23 Jakub Jelinek <jakub@redhat.com>
6580 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
6581 "the the" with "the" in the comments.
6582 * ipa-devirt.c (build_type_inheritance_graph,
6583 update_type_inheritance_graph): Likewise.
6584 * tree.c (build_function_type_list_1): Likewise.
6585 * cfgloopmanip.c (scale_loop_profile): Likewise.
6586 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
6587 * gimple-ssa-split-paths.c
6588 (find_block_to_duplicate_for_splitting_paths): Likewise.
6589 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
6590 * expr.c (convert_move): Likewise.
6591 * var-tracking.c (vt_stack_adjustments): Likewise.
6592 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6593 * tree-vrp.c (test_for_singularity): Likewise.
6595 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
6596 directly instead of building a temporary tree.
6599 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
6600 remove <algorithm> include.
6602 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6605 * config/i386/i386.c: Include dojump.h.
6606 (expand_small_movmem_or_setmem,
6607 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
6609 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
6610 if dynamic_check != -1.
6612 2016-01-21 Jeff Law <law@redhat.com>
6615 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
6616 record_temporary_equivalences. Rewritten to avoid unnecessary calls
6617 into dominated_by_p.
6618 (cprop_into_successor_phis): Avoid unnecessary tests.
6620 2016-01-22 Richard Henderson <rth@redhat.com>
6623 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
6624 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
6626 2016-01-22 Michael Matz <matz@suse.de>
6628 * system.h (string, algorithm): Include only conditionally.
6629 (new): Include always under C++.
6630 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
6631 * final.c (toplevel): Ditto.
6632 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
6633 * genconditions.c (write_header): Make gencondmd.c define
6635 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
6637 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
6638 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
6640 2016-01-22 Christian Bruel <christian.bruel@st.com>
6643 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
6645 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6648 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
6649 define_insn_and_split. Ensure operands[1] and operands[0] do not
6650 get assigned the same register.
6652 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6654 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
6656 2016-01-22 Christian Bruel <christian.bruel@st.com>
6658 * config/arm/arm-c.c (arm_pragma_target_parse):
6659 Remove warn_builtin_macro_redefined overwrite.
6661 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6663 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
6664 flag_non_call_exceptions compatibility.
6666 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6669 * dwarf2out.c (add_child_die_after): New function.
6670 (dwarf_qual_info_t): New type.
6671 (dwarf_qual_info): New variable.
6672 (qualified_die_p): New function.
6673 (modified_type_die): For -fdebug-types-section, ensure
6674 canonical order of qualifiers. Put qualified DIEs adjacent
6675 to the corresponding non-qualified type DIE and search there
6676 for existing qualified DIEs.
6678 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6680 * doc/extend.texi (scalar_storage_order type attribute): Document
6681 restriction on type punning and aliasing, and remove future tense.
6683 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
6686 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
6689 2016-01-21 Jeff Law <law@redhat.com>
6692 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
6693 useless call to record_temporary_equivalences.
6694 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
6695 allocate 10 slots in the bb_path vector and let it grow as needed.
6696 (fsm_find_control_statement_thread_paths): Similarly for the next_path
6699 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6701 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6703 * configure: Regenerate.
6705 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
6707 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
6708 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
6710 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
6713 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
6714 drop EXPAND_INITIALIZER.
6715 * rtl.h (contains_symbolic_reference_p): Declare.
6716 * rtlanal.c (contains_symbolic_reference_p): New function.
6717 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
6718 a subtraction into a NOT if symbolic constants are involved.
6720 2016-01-21 Anton Blanchard <anton@samba.org>
6721 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6724 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
6726 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
6729 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6731 * config/microblaze/microblaze.c
6732 (get_branch_target): New.
6733 (insert_wic_for_ilb_runout): New.
6735 (microblaze_machine_dependent_reorg): New.
6736 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
6737 * config/microblaze/microblaze.md
6738 (UNSPEC_IPREFETCH): Define.
6739 (iprefetch): New pattern
6740 * config/microblaze/microblaze.opt
6741 (mxl-prefetch): New flag.
6743 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6745 * config/microblaze/microblaze.h
6746 (FIXED_REGISTERS): Update in macro.
6747 (CALL_USED_REGISTERS): Update in macro.
6749 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
6751 PR rtl-optimization/68920
6752 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
6755 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
6757 PR rtl-optimization/68990
6758 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
6759 pseudo instead of inheritance ones.
6761 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6762 Nick Clifton <nickc@redhat.com>
6766 * config/mips/mips.c (mips_compute_frame_info): Initialise
6767 args_size and hard_frame_pointer_offset fields of the frame
6768 structure before calling mips_global_pointer.
6770 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6772 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
6774 * configure: Regenerate.
6776 2016-01-21 Richard Biener <rguenther@suse.de>
6778 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
6780 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6782 * config/s390/s390.c (s390_asm_declare_function_size): Add code
6783 to actually emit the .size directive.
6785 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
6786 Jakub Jelinek <jakub@redhat.com>
6790 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
6791 args array size by one to avoid buffer overflow.
6793 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6795 * config/s390/s390.md (pool_section_start): Use switch_to_section
6796 to select proper read-only data section instead of hardcoding
6798 (pool_section_end): Use switch_to_section to match the above.
6800 2016-01-21 Richard Biener <rguenther@suse.de>
6802 PR tree-optimization/69378
6803 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
6804 (set_ssa_val_to): Use it for dominance checks taking into
6805 account not executable edges.
6807 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6810 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
6811 for bitsize instead of GET_MODE_PRECISION (mode).
6813 2016-01-20 Martin Sebor <msebor@redhat.com>
6816 * extend.texi (__sync Builtins): Clarify the semantics of
6817 __sync_fetch_and_OP built-ins on pointers.
6818 (__atomic Builtins): Same.
6820 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6821 Sebastian Pop <s.pop@samsung.com>
6823 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
6824 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
6825 (is_valid_rename): Same.
6826 (translate_isl_ast_to_gimple::get_rename): Same.
6827 (translate_isl_ast_to_gimple::rename_all_uses): Same.
6828 (translate_isl_ast_to_gimple::rename_uses): Same.
6829 (get_new_name): Check for close_phi nodes.
6830 (copy_loop_phi_args): Use phi_node_kind.
6831 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
6832 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
6834 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6835 Sebastian Pop <s.pop@samsung.com>
6837 Revert commit r229783.
6838 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6839 Remove use of parameter_rename_map.
6841 (copy_internal_parameters): Remove.
6842 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6843 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6844 (free_sese_info): Do not free parameter_rename_map.
6845 (set_rename): Do not use parameter_rename_map.
6846 (rename_uses): Update call to set_rename.
6847 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6848 * sese.h (parameter_rename_map_t): Remove.
6849 (struct sese_info_t): Remove field parameter_rename_map.
6851 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6852 Sebastian Pop <s.pop@samsung.com>
6854 * graphite-isl-ast-to-gimple.c: Fix comment.
6855 * graphite-scop-detection.c (defined_in_loop_p): New.
6856 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
6857 names defined in loop.
6859 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6860 Sebastian Pop <s.pop@samsung.com>
6862 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6863 Discard unstructured if-then-else regions.
6865 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6866 Sebastian Pop <s.pop@samsung.com>
6868 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
6869 (cleanup_loop_iter_dom): Remove.
6870 (build_loop_iteration_domains): Remove.
6871 (build_scop_context): Remove.
6872 (build_scop_iteration_domain): Remove.
6873 (add_loop_constraints): New.
6874 (build_iteration_domains): New.
6875 (build_poly_scop): Call build_iteration_domains.
6877 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6878 Sebastian Pop <s.pop@samsung.com>
6880 * graphite-scop-detection.c
6881 (scop_detection::harmful_loop_in_region): Free dom and loops.
6882 (scop_detection::loop_body_is_valid_scop): Free bbs.
6884 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6885 Sebastian Pop <s.pop@samsung.com>
6887 * graphite-scop-detection.c (record_loop_in_sese): New.
6888 (gather_bbs::before_dom_children): Call record_loop_in_sese.
6889 (build_scops): Remove call to build_sese_loop_nests.
6890 * sese.c (sese_record_loop): Remove.
6891 (build_sese_loop_nests): Remove.
6892 (new_sese_info): Remove region->loops.
6893 (free_sese_info): Same.
6894 * sese.h (sese_contains_loop): Same.
6895 (build_sese_loop_nests): Remove.
6896 (sese_contains_loop): Remove.
6898 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6899 Sebastian Pop <s.pop@samsung.com>
6901 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
6902 loop_is_valid_in_scop.
6903 (scop_detection::harmful_stmt_in_region): Renamed
6904 harmful_loop_in_region.
6905 Call loop_is_valid_in_scop.
6907 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6908 Sebastian Pop <s.pop@samsung.com>
6910 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
6913 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6914 Sebastian Pop <s.pop@samsung.com>
6916 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
6917 * graphite.h (struct poly_bb): Remove field is_reduction.
6918 (PBB_IS_REDUCTION): Remove.
6920 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6921 Sebastian Pop <s.pop@samsung.com>
6923 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
6924 (add_pdr_constraints): Same.
6925 (scop_get_reads): Same.
6926 (scop_get_must_writes): Same.
6927 (scop_get_may_writes): Same.
6928 (scop_get_original_schedule): Same.
6929 (extend_schedule): Same.
6930 (apply_schedule_on_deps): Same.
6931 (carries_deps): Same.
6932 (compute_deps): Same.
6933 (scop_get_dependences): Same.
6934 * graphite-isl-ast-to-gimple.c
6935 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
6936 * graphite-optimize-isl.c (get_schedule_for_band): Same.
6937 (get_schedule_for_band_list): Same.
6938 (get_schedule_map): Same.
6939 (apply_schedule_map_to_scop): Same.
6940 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
6941 (build_loop_iteration_domains): Same.
6942 (add_condition_to_pbb): Same.
6943 (add_param_constraints): Same.
6944 (pdr_add_memory_accesses): Same.
6945 (pdr_add_data_dimensions): Same.
6947 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6949 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
6952 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6954 * common.opt (feliminate-dwarf2-dups): Replace references to
6955 "DWARF 2" with just "DWARF".
6956 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
6957 * doc/extend.texi: Likewise.
6958 * doc/cpp.texi: Likewise.
6959 * doc/invoke.texi: Likewise.
6960 (Option Summary): Add -gdwarf to list of Debugging Options.
6961 (Debugging Options): Document -gdwarf.
6962 * doc/contrib.texi: Spell "DWARF" like that.
6964 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6966 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
6967 warning. Fix up formatting.
6970 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
6971 attempt to mark memory input operand addressable and
6972 call prepare_gimple_addressable in that case. Don't adjust
6973 input_location for diagnostics, use error_at instead.
6975 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
6977 * config/rs6000/ppc-auxv.h: New file.
6978 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
6980 (cpu_supports): Likewise.
6981 * config/rs6000/rs6000.c: include "ppc-auxv.h".
6982 (cpu_is_info): New variable.
6983 (cpu_supports_info): Likewise.
6984 (tcb_verification_symbol): Likewise.
6985 (cpu_builtin_p): Likewise.
6986 (cpu_expand_builtin): New function.
6987 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
6988 (rs6000_init_builtins): Likewise.
6989 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
6990 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
6991 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
6992 * configure: Regenerate.
6993 * config.in: Likewise.
6994 * doc/extend.texi (PowerPC Built-in Functions): Document
6995 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
6997 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7000 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7002 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7005 2016-01-20 Richard Henderson <rth@redhat.com>
7011 * tree.c (tm_define_builtin): New.
7012 (find_tm_vector_type): New.
7013 (build_tm_vector_builtins): New.
7014 (build_common_builtin_nodes): Call it.
7016 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7018 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7019 (arm_fp_ok): Likewise.
7021 (arm_crypto): Likewise.
7023 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7024 Richard Biener <rguenther@suse.de>
7026 PR tree-optimization/69328
7027 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7028 vectors have same number of elements.
7029 (vectorizable_condition): Fix masked version recognition.
7031 2016-01-20 Richard Biener <rguenther@suse.de>
7033 PR tree-optimization/69345
7034 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7035 (VN_INFO_PTR_INFO): Likewise.
7036 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7037 info when it is equal between non-dominating SSA names.
7038 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7039 Make sure to look at original SSA infos.
7041 2016-01-20 Jeff Law <law@redhat.com>
7044 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7046 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7047 (pc_or_label_operand): New predicate.
7048 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7049 tests for small integers that are 2^n - 1.
7051 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7053 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7055 2016-01-19 Jeff Law <law@redhat.com>
7058 * tree-ssa-threadbackwards.c
7059 (fsm_find_control_statement_thread_paths): Do not try to lookup
7060 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7062 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7064 * doc/lto.texi: Remove text that says only Gold has linker plugin
7067 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7069 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7070 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7071 the DIE accordingly.
7072 (modified_type_die): Add REVERSE parameter and pass it recursively,
7073 as well as to base_type_die. Adjust presence check accordingly.
7074 (base_type_for_mode): Adjust call to modified_type_die.
7075 (add_type_attribute): Add REVERSE parameter and pass it to
7077 (generic_parameter_die): Adjust call to add_type_attribute.
7078 (add_scalar_info): Likewise.
7079 (add_subscript_info): Likewise.
7080 (gen_array_type_die): Likewise.
7081 (gen_descr_array_type_die): Likewise.
7082 (gen_entry_point_die): Likewise.
7083 (gen_enumeration_type_die): Likewise.
7084 (gen_formal_parameter_die): Likewise.
7085 (gen_subprogram_die): Likewise.
7086 (gen_variable_die ): Likewise.
7087 (gen_const_die): Likewise.
7088 (gen_field_die): Likewise.
7089 (gen_pointer_type_die): Likewise.
7090 (gen_reference_type_die): Likewise.
7091 (gen_ptr_to_mbr_type_die): Likewise.
7092 (gen_inheritance_die): Likewise.
7093 (gen_subroutine_type_die): Likewise.
7094 (gen_typedef_die): Likewise.
7095 (force_type_die): Adjust call to modified_type_die.
7097 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7099 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7100 flow throughout the file. Fix broken link to Objective-C 2.0
7102 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7105 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7107 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7109 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7112 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7113 (maybe_record_node): Record cxa_pure_virtual as the only possible
7114 target if there are not ohter candidates.
7115 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7117 2016-01-19 Richard Biener <rguenther@suse.de>
7119 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7120 (get_memory_order): Likewise.
7122 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7124 * tree-vect-stmts.c (vectorizable_store): Check
7127 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7130 * gcc.c (driver::decode_argv): Add call to
7131 init_opts_obstack before init_options_struct.
7132 * opts.c (init_opts_obstack): Remove idempotency.
7133 (init_options_struct): Replace call to init_opts_obstack
7134 with a gcc_assert to verify that it has already been called.
7135 * toplev.c (toplev::main): Add call to init_opts_obstack before
7136 calls to init_options_struct.
7137 (toplev::finalize): Move cleanup of opts_obstack next to
7138 cleanup of save_decoded_options, clearing the latter, and
7139 save_decoded_options_count.
7141 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7144 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7145 attribute to unconditional. Remove %? from output template.
7147 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7148 Jiong Wang <jiong.wang@arm.com>
7150 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7151 generated from different expand order.
7153 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7155 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7156 Add support for CCMP costing.
7158 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7160 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7161 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7162 (fccmpe<mode>): Likewise.
7163 (fcmp): Rename to fcmp and globalize pattern.
7165 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7166 (aarch64_gen_ccmp_next): Add FP support.
7168 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7170 * target.def (gen_ccmp_first): Update documentation.
7171 (gen_ccmp_next): Likewise.
7172 * doc/tm.texi (gen_ccmp_first): Update documentation.
7173 (gen_ccmp_next): Likewise.
7174 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7175 expand_ccmp_expr_1. Improve comments.
7176 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7177 (ccmp_ior<mode>): Remove pattern.
7178 (cmp<mode>): Remove expand.
7179 (cmp): Globalize pattern.
7180 (cstorecc4): Use cc_register.
7181 (mov<mode>cc): Remove ccmp_cc_register check.
7182 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7183 Simplify after removal of CC_DNE/* modes.
7184 (aarch64_ccmp_mode_to_code): Remove.
7185 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
7186 In 'k' case use integer as condition.
7187 (aarch64_nzcv_codes): Remove inverted cases.
7188 (aarch64_code_to_ccmode): Remove.
7189 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
7190 comparison with CC register to be used in folowing CCMP/branch/CSEL.
7191 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7192 pattern. Return the comparison with CC register. Invert conditions
7194 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7195 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7197 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7199 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7200 instrumented_version.
7202 2016-01-19 Richard Biener <rguenther@suse.de>
7204 PR tree-optimization/69336
7205 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7206 handled components with get_ref_base_and_extent.
7207 (equal_mem_array_ref_p): Adjust.
7209 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7212 * shrink-wrap.c: Include valtrack.h.
7213 (move_insn_for_shrink_wrap): Add DEBUG argument. If
7214 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7215 in between insn and where it will be moved to. Call
7216 dead_debug_insert_temp.
7217 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
7218 first and dead_debug_local_finish at the end.
7219 For uses and defs bitmap, handle all regs in between REGNO and
7220 END_REGNO, not just the first one.
7222 2016-01-19 Richard Biener <rguenther@suse.de>
7224 PR tree-optimization/69352
7225 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7226 (equal_mem_array_ref_p): Constrain size and max size properly.
7227 Compare the reverse flag.
7229 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7231 * ira.c (ira): Update regstat data if we deleted insns.
7233 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7235 PR rtl-optimization/68955
7236 PR rtl-optimization/64557
7237 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7238 here. Fix up formatting.
7239 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7241 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7244 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7245 assume that the node has body.
7246 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7249 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7251 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7254 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7256 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7257 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7259 2016-01-19 Martin Jambor <mjambor@suse.cz>
7260 Martin Liska <mliska@suse.cz>
7261 Michael Matz <matz@suse.de>
7263 * Makefile.in (OBJS): Add new source files.
7264 (GTFILES): Add hsa.c.
7265 * common.opt (disable_hsa): New variable.
7266 (-Whsa): New warning.
7267 * config.in (ENABLE_HSA): New.
7268 * configure.ac: Treat hsa differently from other accelerators.
7269 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7271 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7272 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7273 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7275 * doc/invoke.texi (-Whsa): Document.
7276 (hsa-gen-debug-stores): Likewise.
7277 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7278 to invoke offload compiler for hsa acclerator.
7279 * opts.c (common_handle_option): Determine whether HSA offloading
7280 should be performed.
7281 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7282 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7283 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7284 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7285 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7286 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7287 GF_OMP_FOR_KIND_GRID_LOOP.
7288 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7289 (pp_gimple_stmt_1): Likewise.
7290 * gimple-walk.c (walk_gimple_stmt): Likewise.
7291 * gimple.c (gimple_build_omp_grid_body): New function.
7292 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7293 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7294 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7295 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7296 GF_OMP_TEAMS_GRID_PHONY.
7297 (gimple_statement_omp_single_layout): Updated comments.
7298 (gimple_build_omp_grid_body): New function.
7299 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7300 (gimple_omp_for_grid_phony): New function.
7301 (gimple_omp_for_set_grid_phony): Likewise.
7302 (gimple_omp_parallel_grid_phony): Likewise.
7303 (gimple_omp_parallel_set_grid_phony): Likewise.
7304 (gimple_omp_teams_grid_phony): Likewise.
7305 (gimple_omp_teams_set_grid_phony): Likewise.
7306 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7307 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7308 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7309 (BUILT_IN_GOMP_TARGET): Updated type.
7310 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7311 (adjust_for_condition): New function.
7312 (get_omp_for_step_from_incr): Likewise.
7313 (extract_omp_for_data): Moved parts to adjust_for_condition and
7314 get_omp_for_step_from_incr.
7315 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7316 (fixup_child_record_type): Bail out if receiver_decl is NULL.
7317 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7318 (scan_omp_parallel): Do not create child functions for phony
7320 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7321 (scan_omp_1_op): Checking assert we are not remapping to
7322 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
7323 (parallel_needs_hsa_kernel_p): New function.
7324 (expand_parallel_call): Register apprpriate parallel child
7325 functions as HSA kernels.
7326 (grid_launch_attributes_trees): New type.
7327 (grid_attr_trees): New variable.
7328 (grid_create_kernel_launch_attr_types): New function.
7329 (grid_insert_store_range_dim): Likewise.
7330 (grid_get_kernel_launch_attributes): Likewise.
7331 (get_target_argument_identifier_1): Likewise.
7332 (get_target_argument_identifier): Likewise.
7333 (get_target_argument_value): Likewise.
7334 (push_target_argument_according_to_value): Likewise.
7335 (get_target_arguments): Likewise.
7336 (expand_omp_target): Call get_target_arguments instead of looking
7337 up for teams and thread limit.
7338 (grid_expand_omp_for_loop): New function.
7339 (grid_arg_decl_map): New type.
7340 (grid_remap_kernel_arg_accesses): New function.
7341 (grid_expand_target_kernel_body): New function.
7342 (expand_omp): Call it.
7343 (lower_omp_for): Do not emit phony constructs.
7344 (lower_omp_taskreg): Do not emit phony constructs but create for them
7345 a temporary variable receiver_decl.
7346 (lower_omp_taskreg): Do not emit phony constructs.
7347 (lower_omp_teams): Likewise.
7348 (lower_omp_grid_body): New function.
7349 (lower_omp_1): Call it.
7350 (grid_reg_assignment_to_local_var_p): New function.
7351 (grid_seq_only_contains_local_assignments): Likewise.
7352 (grid_find_single_omp_among_assignments_1): Likewise.
7353 (grid_find_single_omp_among_assignments): Likewise.
7354 (grid_find_ungridifiable_statement): Likewise.
7355 (grid_target_follows_gridifiable_pattern): Likewise.
7356 (grid_remap_prebody_decls): Likewise.
7357 (grid_copy_leading_local_assignments): Likewise.
7358 (grid_process_kernel_body_copy): Likewise.
7359 (grid_attempt_target_gridification): Likewise.
7360 (grid_gridify_all_targets_stmt): Likewise.
7361 (grid_gridify_all_targets): Likewise.
7362 (execute_lower_omp): Call grid_gridify_all_targets.
7363 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7364 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7365 (tree_omp_clause): Added union field dimension.
7366 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7367 * tree.c (omp_clause_num_ops): Added number of arguments of
7368 OMP_CLAUSE__GRIDDIM_.
7369 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7370 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7371 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7372 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7373 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7374 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7375 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7376 * tree-pass.h (make_pass_gen_hsail): Declare.
7377 (make_pass_ipa_hsa): Likewise.
7378 * ipa-hsa.c: New file.
7379 * lto-section-in.c (lto_section_name): Add hsa section name.
7380 * lto-streamer.h (lto_section_type): Add hsa section.
7381 * timevar.def (TV_IPA_HSA): New.
7382 * hsa-brig-format.h: New file.
7383 * hsa-brig.c: New file.
7384 * hsa-dump.c: Likewise.
7385 * hsa-gen.c: Likewise.
7388 * toplev.c (compile_file): Call hsa_output_brig.
7389 * hsa-regalloc.c: New file.
7391 2016-01-18 Jeff Law <law@redhat.com>
7393 PR tree-optimization/69320
7394 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7395 ranged object, do nothing if the RHS constant is not [0..1].
7396 (optimize_stmt): Comparing a boolean ranged object against a
7397 constant outside [0..1] results in a compile-time constant.
7399 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7402 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
7404 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7405 (Option Summary): Update to reflect new section and moved options.
7406 (C++ Dialect Options): Move -fstats to new section.
7407 (Debugging Options): Move all dump, statistics, and other GCC
7408 developer options to new section. Rewrite section introduction
7409 and re-order remaining options to put the more basic ones first.
7410 (Optimization Options): Move -fira-verbose and -flto-report* to
7412 (Developer Options): New section incorporating moved options.
7413 * doc/cppopts.texi (-dM): Update cross-reference.
7415 2016-01-18 Richard Henderson <rth@redhat.com>
7418 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7419 operands to pseudo only if CSE is expected. Split long immediate
7420 operands only after reload, and for the stack pointer.
7421 (*add<GPI>3_pluslong): Remove.
7422 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7423 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
7424 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7425 (*add<GPI>3 peepholes): New.
7426 (*add<GPI>3 splitters): New.
7427 * config/aarch64/constraints.md (Upl): New.
7428 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7430 2016-01-18 Richard Biener <rguenther@suse.de>
7432 PR tree-optimization/69297
7433 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7435 (vect_bb_vectorization_profitable_p): Clear visited flag again.
7437 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7440 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7441 of mixind vector and scalar types.
7442 (fold_relational_const): Add handling of vector
7443 comparison with boolean result.
7444 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7445 comparison of vector operands with boolean result for EQ/NE only.
7446 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7447 (verify_gimple_cond): Likewise.
7448 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7451 2016-01-18 Joseph Myers <joseph@codesourcery.com>
7453 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7456 2016-01-18 Richard Biener <rguenther@suse.de>
7459 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7461 2016-01-18 Tom de Vries <tom@codesourcery.com>
7463 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7465 2016-01-18 Tom de Vries <tom@codesourcery.com>
7467 * omp-low.c (set_oacc_fn_attrib): Make extern.
7468 * omp-low.h (set_oacc_fn_attrib): Declare.
7469 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7470 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7471 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7472 Add and handle function parameter oacc_kernels_p.
7473 (find_reduc_addr, get_omp_data_i_param): New function.
7474 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7475 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7476 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7477 Calculate dominance info. Skip loops that are not in a kernels region
7478 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
7479 (pass_parallelize_loops::execute): Call parallelize_loops with
7480 oacc_kernels_p argument.
7481 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7482 New member function.
7483 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7484 * passes.def: Add argument to pass_parallelize_loops instantation.
7486 2016-01-18 Tom de Vries <tom@codesourcery.com>
7488 * tree-parloops.c (pass_parallelize_loops::execute): Allow
7489 pass_parallelize_loops to be run outside the loop pipeline.
7491 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7493 * tree-scalar-evolution.c (follow_copies_to_constant): New.
7494 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7496 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7499 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7500 using get_ref_base_and_extent.
7501 (equal_mem_array_ref_p): New.
7502 (hashable_expr_equal_p): Add call to previous.
7504 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7507 * tree-sra.c (disqualified_constants, constant_decl_p): New.
7508 (sra_initialize): Allocate disqualified_constants.
7509 (sra_deinitialize): Free disqualified_constants.
7510 (disqualify_candidate): Update disqualified_constants when appropriate.
7511 (create_access): Scan for constant-pool entries as we go along.
7512 (scalarizable_type_p): Add check against type_contains_placeholder_p.
7513 (maybe_add_sra_candidate): Allow constant-pool entries.
7514 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7515 (initialize_constant_pool_replacements): New.
7516 (sra_modify_assign): Avoid mangling assignments created by previous,
7517 and don't generate writes into constant pool.
7518 (sra_modify_function_body): Call initialize_constant_pool_replacements.
7520 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7522 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7524 (scalar_chain::convert_op): Likewise.
7525 * config/i386/i386.md (*andndi3_doubleword): New.
7527 2016-01-18 Richard Biener <rguenther@suse.de>
7529 PR tree-optimization/69170
7530 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
7531 building a vector from scalar results of a pattern stmt.
7533 2016-01-18 Jakub Jelinek <jakub@redhat.com>
7535 * haifa-sched.c (autopref_multipass_init): Work around
7536 -Wmaybe-uninitialized warning.
7538 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7540 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
7541 against the constant 0.
7543 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7545 PR tree-optimization/68799
7546 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
7547 look up phi candidates in the statement-candidate map.
7548 (phi_add_costs): Likewise.
7549 (record_phi_increments): Likewise.
7550 (phi_incr_cost): Likewise.
7551 (ncd_with_phi): Likewise.
7552 (all_phi_incrs_profitable): Likewise.
7554 2016-01-17 Jakub Jelinek <jakub@redhat.com>
7556 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
7557 -Wmaybe-uninitialized warning.
7559 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
7561 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7562 (Option Summary): Update to reflect new section and moved options.
7563 (C++ Dialect Options): Move -fvtable-verify and related options.
7564 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
7565 and profiling-related options.
7566 (Optimization Options): Move profile generation options and
7567 -fstack-protector and related options.
7568 (Instrumentation Options): New section incorporating moved options.
7569 (Code Generation Options): Move -finstrument-functions and
7570 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
7572 2016-01-16 Tom de Vries <tom@codesourcery.com>
7574 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
7576 2016-01-16 Tom de Vries <tom@codesourcery.com>
7578 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
7580 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
7582 * hash-table.h (hash_table::empty): Turn into an inline wrapper
7583 that checks whether the table is already empty. Rename the
7584 original implementation to...
7585 (hash_table::empty_slot): ...this new private function.
7587 2016-01-15 David Malcolm <dmalcolm@redhat.com>
7590 * diagnostic-show-locus.c (layout::print_source_line): Move x
7591 offset of line until after call to
7592 get_line_width_without_trailing_whitespace.
7594 2016-01-15 Jeff Law <law@redhat.com>
7596 PR tree-optimization/69270
7597 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
7598 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
7599 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
7600 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
7601 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7602 ssa_name_has_boolean_range and constant_boolean_node.
7604 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
7606 PR rtl-optimization/69030
7607 * lra-spills.c (remove_pseudos): Check nrefs and make the function
7609 (spill_pseudos): Delete debug insn for dead pseudo.
7610 (lra_spill): Initiate spill_hard_reg and slots memory separately.
7612 2016-01-15 Jiong Wang <jiong.wang@arm.com>
7614 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
7616 (TYPES_UNOPUS): Likewise.
7617 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
7618 builtin type, from UNOP to UNOPUS.
7619 (lbtruncuv4sf): Likewise.
7620 (lbtruncuv2df): Likewise.
7621 (lrounduv2sf): Likewise.
7622 (lrounduv4sf): Likewise.
7623 (lrounduv2df): Likewise.
7624 (lroundusf): Likewise.
7625 (lroundusf): Likewise.
7626 (lceiluv2sf): Likewise.
7627 (lceiluv4sf): Likewise.
7628 (lceiluv2df): Likewise.
7629 (lceilusf): Likewise.
7630 (lceiludf): Likewise.
7631 (lflooruv2sf): Likewise.
7632 (lflooruv4sf): Likewise.
7633 (lflooruv2df): Likewise.
7634 (lfloorusf): Likewise.
7635 (lfloorudf): Likewise.
7636 (lfrintnuv2sf): Likewise.
7637 (lfrintnuv4sf): Likewise.
7638 (lfrintnuv2df): Likewise.
7639 (lfrintnusf): Likewise.
7640 (lfrintnudf): Likewise.
7641 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
7643 (vcvtq_u32_f32): Likewise.
7644 (vcvtq_u64_f64): Likewise.
7645 (vcvta_u32_f32): Likewise.
7646 (vcvtaq_u32_f32): Likewise.
7647 (vcvtaq_u64_f64): Likewise.
7648 (vcvtm_u32_f32): Likewise.
7649 (vcvtmq_u32_f32): Likewise.
7650 (vcvtmq_u64_f64): Likewise.
7651 (vcvtn_u32_f32): Likwise.
7652 (vcvtnq_u32_f32): Likewise.
7653 (vcvtnq_u64_f64): Likewise.
7654 (vcvtp_u32_f32): Likewise.
7655 (vcvtpq_u32_f32): Likewise.
7656 (vcvtpq_u64_f64): Likewise.
7657 (vcvtmd_u64_f64): Likewise.
7658 (vcvtms_u32_f32): Likewise.
7659 (vcvtad_u64_f64): Likewise.
7660 (vcvtas_u32_f32): Likewise.
7661 (vcvtnd_u64_f64): Likewise.
7662 (vcvtns_u32_f32): Likewise.
7663 (vcvtpd_u64_f64): Likewise.
7664 (vcvtps_u32_f32): Likewise.
7666 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7668 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
7669 CSEL of zero_extended registers.
7671 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7673 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7674 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
7676 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7678 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
7679 false when argument string is not found in the attributes table
7682 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
7685 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
7686 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
7687 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
7690 2016-01-15 Richard Biener <rguenther@suse.de>
7692 PR tree-optimization/66856
7693 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
7694 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
7695 (vect_create_new_slp_node): Increment stmt reference count.
7696 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
7697 an SLP tree before swapping operands.
7698 (vect_build_slp_tree): Likewise.
7699 (destroy_bb_vec_info): Free stmt info after SLP instances.
7700 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
7701 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
7702 (STMT_VINFO_NUM_SLP_USES): New macro.
7704 2016-01-15 Richard Biener <rguenther@suse.de>
7707 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
7708 (add_linkage_name): ... here.
7709 (gen_typedef_die): Use add_linkage_name_raw instead of
7710 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
7713 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7715 * gimplify.c (oacc_default_clause): Decode reference and pointer
7716 types for both kernels and parallel regions.
7718 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
7721 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
7723 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7725 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
7726 (convert_scalars_to_vector): Likewise.
7728 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
7730 * doc/extend.texi (Type Traits): Fix grammar.
7732 2016-01-15 Martin Jambor <mjambor@suse.cz>
7734 * tree-inline.c (remap_decl): Use existing dclarations if
7735 remapping a type and prevent_decl_creation_for_types.
7736 (replace_locals_stmt): Do an initial remapping of non-VLA typed
7737 decls first. Do real remapping with
7738 prevent_decl_creation_for_types set.
7739 * tree-inline.h (copy_body_data): New field
7740 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
7743 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7745 * config/s390/s390.opt (mmvcle): More verbose help text.
7747 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7749 * config/s390/s390.opt: Add period to -mzvector option text.
7751 2016-01-15 Richard Biener <rguenther@suse.de>
7753 PR tree-optimization/68961
7754 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
7755 of invariants in stores again.
7757 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7759 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
7761 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7763 * config/i386/i386.c (ix86_expand_branch): Don't split
7764 DI mode xor instruction to SI mode.
7766 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7769 * ipa-icf.c (sem_function::merge): Virtual functions may become
7770 reachable even if they address is not taken and there are no
7773 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7775 * lto-streamer-out.c (subtract_estimated_size): New function.
7776 (get_symbol_initial_value): Use it.
7778 2016-01-15 Christian Bruel <christian.bruel@st.com>
7781 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
7782 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
7783 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
7784 use add_builtin_function_ext_scope instead of add_builtin_function.
7785 (neon_set_p, neon_crypto_set_p): Remove.
7786 (arm_init_builtins): Always call arm_init_neon_builtins and
7787 arm_init_crypto_builtins.
7788 (arm_expand_builtin): Check that builtins are allowed for the arch.
7789 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
7790 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
7791 arm_init_neon_builtins call.
7793 2016-01-15 Richard Biener <rguenther@suse.de>
7795 PR tree-optimization/69117
7796 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
7797 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
7798 of the leader conservatively.
7799 (free_scc_vn): Restore original SSA name infos.
7801 2016-01-14 Jeff Law <law@redhat.com>
7803 PR tree-optimization/69270
7804 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
7805 single bit of precision, verify it's also unsigned.
7806 (record_edge_info): Use constant_boolean_node rather than fold_convert
7807 to convert boolean_true/boolean_false to the right type.
7809 2016-01-14 Richard Henderson <rth@redhat.com>
7812 * loop-doloop.c (record_reg_sets): New.
7813 (doloop_optimize): Reject the transform if the sequence
7814 clobbers registers live at the end of the loop block.
7815 (doloop_optimize_loops): Enable df_live if needed.
7817 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7819 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
7820 * gcc/config/rs6000/rs6000.c: Likewise.
7821 * gcc/config/rs6000/rs6000.h: Likewise.
7822 * gcc/config/rs6000/rs6000.md: Likewise.
7823 * gcc/doc/extend.texi: Likewsie.
7825 2016-01-14 Jeff Law <law@redhat.com>
7827 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
7830 2016-01-14 Richard Henderson <rth@redhat.com>
7834 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
7835 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
7836 instead of builtin_decl_declared_p to test for declaration.
7838 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
7840 * doc/loop.texi (Loop Analysis and Representation): Document
7841 loop_depth function.
7843 2016-01-14 Tom de Vries <tom@codesourcery.com>
7845 PR tree-optimization/68773
7846 * omp-low.c (expand_omp_target): Don't set force_output.
7847 * varpool.c (varpool_node::get_create): Same.
7848 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
7849 offload_funcs with force_output.
7851 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7854 * lra-eliminations.c (move_plus_up): Don't change anything if either
7855 the outer or inner subreg mode is not MODE_INT.
7856 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
7857 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
7859 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7861 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
7862 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
7863 reduc_uplus_@var{m}): Remove.
7864 * expr.c (expand_expr_real_2): Remove expansion path for
7865 reduc_[us](min|max|plus) optabs.
7866 * optabs-tree.c (scalar_reduc_to_vector): Remove.
7867 * optabs-tree.h (scalar_reduc_to_vector): Remove.
7868 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
7869 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
7870 * tree-vect-loop.c (vectorizable_reduction): Remove test for
7871 reduc_[us](min|max|plus) optabs.
7873 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7875 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
7876 (reduc_plus_scal_v2sf): New.
7877 (reduc_smax_v2sf): Rename to...
7878 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
7879 (reduc_smin_v2sf): Rename to...
7880 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
7882 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
7884 * alias.c (compare_base_symbol_refs): New function.
7885 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
7888 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7891 PR tree-optimization/69155
7892 * tree-complex.c: Include cfganal.h.
7893 (phis_to_revisit): New variable.
7894 (extract_component): Add phiarg_p argument. Assert that returned
7895 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
7896 (update_phi_components): Partly rewrite to use loop over real/imag
7897 components instead of code duplication. If extract_component returns
7898 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
7899 create_tmp_reg into the PHI node instead, and mention the phi triplet
7901 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
7902 in phis_to_revisit at the end.
7904 2016-01-14 Richard Biener <rguenther@suse.de>
7906 PR tree-optimization/68060
7907 * tree-vect-loop.c (vect_is_simple_reduction): Check the
7908 outer loop reduction is only used in the inner loop before
7909 detecting a double reduction.
7911 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7914 * combine.c (expand_field_assignment): Punt if compute_mode is
7915 unsupported scalar mode.
7917 2016-01-14 Richard Biener <rguenther@suse.de>
7919 PR tree-optimization/66856
7920 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
7921 SLP node only if it built successfully.
7922 (vect_analyze_slp_instance): Adjust.
7924 2016-01-14 Jeff Law <law@redhat.com>
7926 PR tree-optimization/69270
7927 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
7928 (record_edge_info): Use it. Convert boolean_{true,false}_node
7931 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
7934 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
7935 use block_ultimate_origin
7936 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
7938 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7940 * doc/invoke.texi (Submodel Options): Rename section to
7941 "Machine-Dependent Options" to better reflect its content.
7942 Rewrite introductory text to remove archaic CPU names.
7945 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7947 * doc/invoke.texi (Code Gen Options): Move section up in file,
7948 before target-specific options. Update menu and option summary
7949 to reflect the new section ordering.
7951 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7953 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
7954 (C++ Dialect Options): Add cross-reference to -std option.
7955 * doc/standards.texi (C++ Language): Document C++14 support.
7957 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7959 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
7960 for pack/unpack functions for __ibm128.
7961 (PACK_IF): Likewise.
7962 (UNPACK_IF): Likewise.
7964 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7965 support for __ibm128 pack/unpack functions.
7966 (rs6000_invalid_builtin): Likewise.
7967 (rs6000_init_builtins): Likewise.
7968 (rs6000_opt_masks): Likewise.
7970 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
7971 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
7973 (RS6000_BTM_COMMON): Likewise.
7975 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
7976 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
7977 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
7978 128-bit floating point. Add support for the double values to be
7979 in Altivec registers for TF/IF packing and unpacking, but restrict
7980 TD packing sub-fields to be FPR registers. Don't allow overlapped
7981 register support for packing. Allow pack inputs to be memory
7982 locations. Don't build generator functions for unpack<mode>_dm
7983 and unpack<mode>_nodm.
7984 (unpack<mode>_dm): Likewise.
7985 (unpack<mode>_nodm): Likewise.
7986 (pack<mode>): Likewise.
7988 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
7989 built-in functions to pack/unpack explicit __ibm128 values.
7990 (__builtin_unpack_ibm128): Likewise.
7992 * doc/extend.texi (PowerPC Built-in Functions): Document
7993 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
7995 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
7998 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
7999 Add new arg loc and pass it down as context.
8000 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8001 to the location to use for the warning.
8002 (check_function_arguments): New arg loc. All callers changed. Pass
8003 it to check_function_nonnull.
8004 * c-common.h (check_function_arguments): Adjust declaration.
8006 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8008 PR tree-optimization/69156
8009 * gimple.c (validate_type): Removed.
8010 (gimple_builtin_call_types_compatible_p): Use
8011 useless_type_conversion_p instead of validate_type.
8012 * value-prof.c (gimple_stringop_fixed_value): Fold
8013 icall_size to correct type.
8015 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8017 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8020 2016-01-13 Richard Henderson <rth@redhat.com>
8023 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8024 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8025 (ix86_builtin_tm_store): Remove.
8026 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8027 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8028 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8029 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8030 * doc/tm.texi: Rebuild.
8032 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8033 (BUILT_IN_TM_MEMCPY_RTWN): New.
8034 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8035 fallback from vector to integer helpers.
8036 (build_tm_load): Handle vector types directly, instead of
8038 (build_tm_store): Likewise.
8039 (expand_assign_tm): Prepare for register types not handled by
8040 the above. Copy them to memory and use memcpy.
8041 * tree.c (tm_define_builtin): New.
8042 (find_tm_vector_type): New.
8043 (build_tm_vector_builtins): New.
8044 (build_common_builtin_nodes): Call it.
8046 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8048 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8049 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8051 2016-01-13 Tom de Vries <tom@codesourcery.com>
8053 PR tree-optimization/69169
8054 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8055 handled_struct_type param.
8056 (create_variable_info_for, intra_create_variable_infos): Call
8057 create_variable_info_for_1 with extra arg.
8059 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8061 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8062 and "armv8.1-a+crc" entries.
8064 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8067 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8068 Change first operand predicate from register_or_constm1_operand
8069 to register_operand.
8070 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8071 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8072 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8073 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8074 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8075 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8076 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8077 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8078 comparison with constm1_rtx from vec_prefetch_gen part.
8080 2016-01-13 Richard Biener <rguenther@suse.de>
8082 PR tree-optimization/69013
8083 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8084 Exchange assert for a test.
8086 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8089 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8091 2016-01-13 Richard Biener <rguenther@suse.de>
8093 PR tree-optimization/69242
8094 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8095 assert with a check.
8097 2016-01-13 Richard Biener <rguenther@suse.de>
8099 PR tree-optimization/69186
8100 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8101 Properly guard vect_update_misalignment_for_peel call.
8103 2016-01-12 Jeff Law <law@redhat.com>
8105 PR tree-optimization/pr67755
8106 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8107 "need_profile_correction".
8108 (thread_block_1): Initialize new field to false by default. If we
8109 have multiple thread paths through a common joiner to different
8110 final targets, then set new field to true.
8111 (compute_path_counts): Only do count adjustment when it's really
8114 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8116 * doc/invoke.texi (Spec Files): Move section down in file, past
8117 all command-line option descriptions.
8119 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8122 * doc/gty.texi: Remove documentation of mark_hook.
8123 * gengtype.c (struct write_types_data): Remove code to support
8124 mark_hook attribute.
8125 (walk_type): Likewise.
8126 (write_func_for_structure): Likewise.
8128 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8130 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8131 Directory Options, and -specs= to Overall Options.
8132 (Overall Options): Adjust similarly. Reorder to group related
8133 options together. Make -specs= cross-reference the spec file details.
8134 (Directory Options): Adjust similarly.
8136 2016-01-12 Jeff Law <law@redhat.com>
8138 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8140 2016-01-12 Olivier Hainque <hainque@adacore.com>
8142 * gcc.c (spec_undefvar_allowed): New global.
8143 (process_command): Set to true when running for --version or --help,
8145 (getenv_spec_function): When the variable is not defined, use the
8146 variable name as the variable value if we're allowed not to issue
8149 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8151 PR tree-optimization/68911
8152 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8153 information computed for expression "init + nit * step".
8155 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8157 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8158 about name of GCC executable. Remove deleted node from menu.
8159 (Directory Options) <-B>: Remove cross-reference to deleted node.
8160 (Target Options): Delete section.
8162 2016-01-12 Christian Bruel <christian.bruel@st.com>
8165 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8166 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8168 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8171 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8172 aligned_mem is properly set for AVX512-VL floating point masked
8176 * ifcvt.c (cond_exec_process_if_block): When removing the last
8177 insn from then_bb, remove also any possible barriers that follow it.
8179 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
8183 * config/i386/iamcu.h (SIZE_TYPE): New macro.
8184 (PTRDIFF_TYPE): Likewise.
8185 (WCHAR_TYPE): Likewise.
8186 (WCHAR_TYPE_SIZE): Likewise.
8187 (STDINT_LONG32): Likewise.
8189 2016-01-12 Richard Biener <rguenther@suse.de>
8191 PR tree-optimization/69053
8192 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8193 convert initial value for cond reductions.
8195 2016-01-12 Richard Biener <rguenther@suse.de>
8197 PR tree-optimization/69007
8198 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8199 widen_sum after dot_prod and sad.
8201 2016-01-12 Richard Biener <rguenther@suse.de>
8203 PR tree-optimization/69168
8204 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8205 pattern stmt SLP type.
8206 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8207 end up unused so cope with that case.
8209 2016-01-12 Richard Biener <rguenther@suse.de>
8211 PR tree-optimization/69157
8212 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8213 stmts def type only during analyze phase.
8214 (vectorizable_call): Likewise.
8215 (vectorizable_simd_clone_call): Likewise.
8216 (vectorizable_conversion): Likewise.
8217 (vectorizable_assignment): Likewise.
8218 (vectorizable_shift): Likewise.
8219 (vectorizable_operation): Likewise.
8220 (vectorizable_store): Likewise.
8221 (vectorizable_load): Likewise.
8223 2016-01-12 Richard Biener <rguenther@suse.de>
8225 PR tree-optimization/69174
8226 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8228 (vectorizable_load): Properly compute the number of loads needed
8229 for permuted strided SLP loads and do not spuriously assign
8230 to SLP_TREE_VEC_STMTS.
8232 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8234 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8235 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8236 (MD_EXEC_PREFIX): Remove.
8237 (MD_STARTFILE_PREFIX) Removee.
8238 (FILE_NAME_ABSOLUTE_P): Remove.
8239 (CPP_SPEC): Do not read macros from sys/version.h.
8240 (LINK_COMMAND_SPEC): Remove.
8241 (LOCAL_INCLUDE_DIR): Remove.
8242 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8243 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8244 (POST_LINK_SPEC): Define to invoke stubify after linker
8245 (LIBSTDCXX): Remove define
8246 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8247 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8248 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8249 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8250 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8251 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8252 (i386_djgpp_asm_named_section): Add propotype of new procedure
8254 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8255 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8256 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8257 in config/i386/djgpp.h).
8258 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8259 STANDARD_STARTFILE_PREFIX_1.
8260 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8261 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8262 installation errors.
8263 (MAX_OFILE_ALIGNMENT): Define to 128.
8264 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8266 * config/i386/djgpp.c: New file. Add implementation of
8267 i386_djgpp_asm_named_section.
8269 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8271 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8272 Add rule for building djgpp.o.
8274 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8276 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8277 (rtx_is_swappable_p): Reductions are swappable.
8278 (insn_is_swappable_p): V2DF reductions are swappable.
8280 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8282 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8283 reloads for other unsupported memory operands.
8285 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8286 Jim Wilson <jim.wilson@linaro.org>
8289 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8290 copy_to_mode_reg instead of force_reg.
8292 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8295 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8296 TARGET_80387 is true.
8298 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8301 * lra-eliminations.c (move_plus_up): Only move plus up
8302 if subreg of the constant can be simplified into constant
8303 and use the simplified subreg of the constant instead of
8304 the original constant.
8306 * fold-const.c (fold_convertible_p): Don't return true
8307 for conversion of VECTOR_TYPE to same sized integral type.
8308 (fold_convert_loc): Fix up formatting. Fold conversion of
8309 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8310 instead of NOP_EXPR.
8312 PR tree-optimization/69214
8313 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8314 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8317 PR tree-optimization/69207
8318 * tree-vect-slp.c (vect_get_constant_vectors): For
8319 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8320 fold_convertible_p to vector_type's element type, and always
8321 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8323 2016-01-11 Richard Biener <rguenther@suse.de>
8325 PR tree-optimization/69173
8326 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8327 fixup the cycle if all stmts are in a pattern.
8329 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
8332 * alias.c (base_alias_check): Move check for addresses with
8333 alignment ANDs before the call for compare_base_decls.
8334 (memrefs_conflict_p): Return -1 for different decls
8335 that went through alignment adjustments.
8337 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8339 PR rtl-optimization/68796
8340 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8341 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8342 and QImode comparisons against zero with CC_NZmode.
8343 * config/aarch64/iterators.md (short_mask): New mode_attr.
8345 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8347 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8348 (<avx512>_store<mode>_mask): Likewise.
8350 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
8351 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8353 PR rtl-optimization/68841
8354 * ifcvt.c (struct noce_if_info): Add orig_x field.
8355 (bbs_ok_for_cmove_arith): Add to_rename parameter.
8356 Don't record conflicts on to_rename if it's present.
8357 Allow memory destinations in sets.
8358 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8359 blocks, passing orig_x to the checks.
8360 (noce_process_if_block): Set if_info->orig_x appropriately.
8362 2016-01-11 Tom de Vries <tom@codesourcery.com>
8364 PR tree-optimization/69069
8365 * tree-parloops.c (create_parallel_loop): Add missing phi args.
8367 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8369 PR rtl-optimization/68920
8370 * config/i386/i386.c (ix86_option_override_internal): Restrict number
8371 of conditional moves for RTL if-conversion to 1 for
8372 TARGET_ONE_IF_CONV_INSN.
8373 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8374 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8375 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8376 parameter to restirct number of conditional moves for
8378 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8379 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8382 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
8385 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8386 onepart vars. Fix typo in comment. Fix reversed condition in
8388 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8391 * var-tracking.c (dump_onepart_variable_differences): New.
8392 (dataflow_set_different): If a detailed dump is requested,
8393 delay early returns and dump differences between onepart
8394 variables present before and after, and added variables.
8396 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8399 * expr.c (expand_expr_real_1): For boolean vector constants
8400 with a scalar mode use const_scalar_mask_from_tree.
8401 (const_scalar_mask_from_tree): New.
8402 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8403 assigned to a mask type to handle constants.
8405 2016-01-11 Martin Jambor <mjambor@suse.cz>
8408 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8409 useless parameters if we cannot change function signature.
8411 2016-01-11 Martin Jambor <mjambor@suse.cz>
8414 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8417 2016-01-11 Tom de Vries <tom@codesourcery.com>
8419 PR tree-optimization/69109
8420 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8423 2016-01-11 Tom de Vries <tom@codesourcery.com>
8425 PR tree-optimization/69108
8426 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8427 res is not used in a phi.
8429 2016-01-11 Yury Gribov <y.gribov@samsung.com>
8432 * common.opt (frandom-seed): Fix parameter name.
8433 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8435 2016-01-11 Tom de Vries <tom@codesourcery.com>
8437 PR tree-optimization/69058
8438 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8441 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
8443 * config/arc/arc.opt (mdiv-rem): Add period to the end.
8444 (mcode-density): Likewise.
8446 2016-01-10 Tom de Vries <tom@codesourcery.com>
8448 PR tree-optimization/69062
8449 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8450 (parallelize_loops): Don't paralelize loop that has phi with address
8453 2016-01-10 Tom de Vries <tom@codesourcery.com>
8455 PR tree-optimization/69039
8456 * tree-parloops.c (try_create_reduction_list): Only allow single exit
8459 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
8462 * match.pd: Require target has function_c99_misc before doing
8463 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8465 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
8467 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8469 * configure: Regenerate.
8471 2016-01-09 Jakub Jelinek <jakub@redhat.com>
8474 PR tree-optimization/69097
8475 * fold-const.h (expr_not_equal_to): New prototype.
8476 * fold-const.c: Include stringpool.h and tree-ssanames.h.
8477 (expr_not_equal_to): New function.
8478 * match.pd (X % -Y is the same as X % Y): Don't optimize
8479 unless X is known not to be equal to minimum or Y is known
8480 not to be equal to -1.
8481 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8482 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8483 (simplify_stmt_using_ranges): Adjust caller.
8484 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8485 substitute_and_fold.
8487 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
8489 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8492 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8494 PR tree-optimization/69167
8495 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8496 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8498 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8500 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8501 Richard Biener <rguenther@suse.de>
8503 PR tree-optimization/68707
8504 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8505 instances that can be handled via vect_load_lanes.
8507 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
8509 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8510 if we can't determine address equivalence.
8511 * alias.c (compare_base_decl): Update for changed return value of
8512 symtab_node::equal_address_to.
8514 2016-01-08 Jason Merrill <jason@redhat.com>
8518 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8519 * expr.c (store_field): Not here.
8520 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8521 call with TREE_ADDRESSABLE type.
8522 * tree-cfg.c (verify_gimple_call): Adjust.
8524 2016-01-08 Olivier Hainque <hainque@adacore.com>
8526 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
8529 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8531 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
8532 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
8533 (reduc_smin_v2sf): Rename to...
8534 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
8535 (reduc_splus_v2sf): Rename to...
8536 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
8538 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8540 PR tree-optimization/69162
8541 * gimplify.c (gimplify_va_arg_expr): Encode original type of
8542 valist argument in another argument.
8543 (gimplify_modify_expr): Adjust for the above change. Cleanup.
8544 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
8545 to determine the va_list type, build a MEM_REF instead of
8546 build_fold_indirect_ref.
8548 PR tree-optimization/69172
8549 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
8552 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
8554 PR tree-optimization/67781
8555 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
8556 and cmpnop in two steps: first the ones not accessed in original
8557 gimple expression in a endian independent way and then the ones not
8558 accessed in the final result in an endian-specific way.
8560 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8562 PR tree-optimization/69083
8563 * tree-vect-slp.c (vect_get_constant_vectors): For
8564 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
8565 element type. If op is fold_convertible_p to vector_type's element
8566 type, use NOP_EXPR instead of VCE.
8568 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
8570 PR rtl-optimization/67778
8571 PR rtl-optimization/68634
8572 PR rtl-optimization/68909
8573 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
8574 block from the stack until done with it. Remove a superfluous
8575 bitmap set. Remove a superfluous bitmap test.
8577 2016-01-07 Martin Sebor <msebor@redhat.com>
8580 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
8581 constraint on the type of arguments.
8583 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
8585 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
8586 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
8587 unaligned_access on the gcc_options set.
8588 * config/arm/arm.c (arm_option_override_internal): Use
8589 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
8591 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8594 * config/i386/i386.c (ix86_frame_pointer_required): Enable
8595 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
8597 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8600 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8603 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8604 depending on frame_pointer_needed before remaining integer and SSE
8605 registers are saved.
8607 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
8610 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
8612 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
8615 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
8616 Use the "xBm" constraint.
8617 (float<sseintvecmodelower><mode>2<mask_name><round_name):
8619 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
8620 (sse_cvtsi2ssq<round_name>): Likewise.
8621 (sse_cvtss2si<round_name>): Likewise.
8622 (sse_cvtss2siq<round_name>): Likewise.
8623 (sse2_cvtsi2sdq<round_name>): Likewise.
8624 (sse2_cvtsd2si<round_name>): Likewise.
8625 (sse2_cvtsd2siq<round_name>): Likewise.
8626 * config/i386/subst.md (round_nimm_scalar_predicate): New
8629 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
8632 * varasm.c (make_decl_rtl): Mark invalid register vars as
8635 PR rtl-optimization/66206
8636 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
8637 All callers changed.
8639 2016-01-07 Jakub Jelinek <jakub@redhat.com>
8641 PR tree-optimization/69141
8642 * tree-ssa-pre.c: Include langhooks.h.
8643 (eliminate_dom_walker::before_dom_children): Use
8644 lang_hooks.decl_printable_name instead of
8645 cgraph_node::get ()->name ().
8648 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
8649 it and DECL_ALIGN too.
8651 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
8653 * config/mips/mips-ftypes.def: Sort to lexicographical order.
8655 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8658 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8659 depending on frame_pointer_needed before remaining integer and SSE
8660 registers are saved.
8662 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8664 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
8665 mode iterator with VSX_M2.
8666 (*p9_vecstore_<mode>): Likewise.
8667 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
8668 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
8669 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
8670 (define_split for VSX_LE128 stores): Likewise.
8671 (define_peephole2 for TImode LE swaps): Likewise.
8672 (define_split for VSX_LE128 post-reload stores): Likewise.
8674 2016-01-06 Marek Polacek <polacek@redhat.com>
8677 * convert.c (convert_to_integer_1): Adjust call to
8678 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
8679 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
8680 EXPR instead of ARG.
8681 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
8683 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8686 * doc/extend.texi (RL78 Variable Attributes): New section.
8688 2016-01-05 Marek Polacek <polacek@redhat.com>
8691 * builtins.c (get_memmodel): Use expansion point location rather than
8692 the input location. Call warning_at rather than warning.
8693 (expand_builtin_atomic_compare_exchange): Likewise.
8694 (expand_builtin_atomic_load): Likewise.
8695 (expand_builtin_atomic_store): Likewise.
8696 (expand_builtin_atomic_clear): Likewise.
8698 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8701 * config/i386/i386.c (ix86_expand_vector_logical_operator):
8702 Replace nonimmediate_operand with vector_operand.
8703 * config/i386/predicates.md (vector_operand): New predicate.
8704 (general_vector_operand): Replace nonimmediate_operand with
8706 * config/i386/sse.md: Replace nonimmediate_operand with
8707 vector_operand and m constraint with Bm constraint on SSE
8708 patterns with 16-byte memory operand.
8709 * config/i386/subst.md (round_nimm_predicate): Replace
8710 nonimmediate_operand with vector_operand.
8711 (round_saeonly_nimm_predicate): Likewise.
8712 (round_saeonly_nimm_scalar_predicate): New.
8714 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8717 * config/i386/constraints.md (Bm): New constraint.
8718 * config/i386/predicates.md (vector_memory_operand): New
8720 * config/i386/sse.md: Replace xm with xBm in plusminus and
8723 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8726 * doc/extend.texi (V850 Function Attributes): New section.
8727 (V850 Variable Attributes): New section.
8729 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8732 * doc/extend.texi (MicroBlaze Function Attributes): Document
8733 interrupt_handler and fast_interrupt attributes.
8735 2016-01-05 Sergei Trofimovich <siarheit@google.com>
8738 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
8739 for local symbolic operands.
8740 * config/ia64/predicates.md (local_symbolic_operand64): New
8743 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8745 PR rtl-optimization/68651
8746 * combine.c (combine_simplify_rtx): Canonicalize x + x into
8749 2016-01-05 Nathan Sidwell <nathan@acm.org>
8751 * alias.c (compare_base_decls): Use symtab_node::get.
8753 2016-01-05 Nick Clifton <nickc@redhat.com>
8756 * ira-costs.c (copy_cost): Initialise the t_icode field of the
8757 secondary_reload_info structure.
8760 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
8761 decls if weak support is available.
8763 2016-01-04 Martin Sebor <msebor@redhat.com>
8765 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
8767 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
8769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8770 OPTION_MASK_P9_DFORM.
8772 * config/rs6000/constraints.md (wo constraint): New constraint for
8775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
8777 (rs6000_init_hard_regno_mode_ok): Likewise.
8779 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
8782 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
8783 expanders not to have constraints. Add support for ISA 3.0 xxperm
8784 instruction. Add support for fusing xxlor with xxperm.
8785 (altivec_vperm_<mode>_internal): Likewise.
8786 (altivec_vperm_v8hiv16qi): Likewise.
8787 (altivec_vperm_<mode>v16q): Likewise.
8788 (altivec_vperm_<mode>_uns): Likewise.
8789 (vperm_v8hiv4si): Likewise.
8790 (vperm_v16qiv8hi): Likewise.
8792 * doc/md.texi (RS/6000 constraints): Document wo constraint.
8794 2016-01-04 Jakub Jelinek <jakub@redhat.com>
8796 Update copyright years.
8798 * gcc.c (process_command): Update copyright notice dates.
8799 * gcov-dump.c (print_version): Ditto.
8800 * gcov.c (print_version): Ditto.
8801 * gcov-tool.c (print_version): Ditto.
8802 * gengtype.c (create_file): Ditto.
8803 * doc/cpp.texi: Bump @copying's copyright year.
8804 * doc/cppinternals.texi: Ditto.
8805 * doc/gcc.texi: Ditto.
8806 * doc/gccint.texi: Ditto.
8807 * doc/gcov.texi: Ditto.
8808 * doc/install.texi: Ditto.
8809 * doc/invoke.texi: Ditto.
8811 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8813 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
8814 modes larger than TImode as TImode if NEON is not enabled.
8816 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8819 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
8820 mode for %f0-%f31 only if TARGET_FPU.
8822 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8825 * config/sparc/sparc.c (scan_record_type): Take into account subfields
8826 to compute the PACKED_P predicate.
8827 (function_arg_record_value): Minor tweaks.
8829 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8831 * doc/install.texi (--with-multilib-list): Describe the meaning of the
8832 option for arm*-*-* targets.
8834 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
8836 * doc/extend.texi (Common Function Attributes): Move docs for
8837 MSP430-specific attributes to....
8838 (MSP430 Function Attributes): ...here. Delete the redundant
8839 entries and copy-edit the remaining text.
8840 (MSP430 Variable Attributes): Use uniform format for index
8841 entries and add a cross-reference to the corresponding function
8844 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
8846 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
8848 (x86 Options): Likewise.
8850 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8854 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
8855 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
8856 to corresponding attribute.
8858 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8860 * doc/extend.texi (Common Function Attributes) <noplt>: Move
8861 to correct alphabetization of table. Copy-edit and correct
8863 <stack_protect>: Likewise.
8864 <target_clones>: Likewise.
8866 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
8867 Correct punctuation.
8868 (Code Gen Options) <-fno-plt>: Copy-edit.
8870 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8873 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
8874 SI values. Explicitly convert SI to DI and vice-versa.
8876 2016-01-01 Jakub Jelinek <jakub@redhat.com>
8878 PR tree-optimization/69070
8879 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
8880 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
8883 * ubsan.c (ubsan_instrument_float_cast): Call
8884 initialize_sanitizer_builtins.
8887 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
8889 Copyright (C) 2016 Free Software Foundation, Inc.
8891 Copying and distribution of this file, with or without modification,
8892 are permitted in any medium without royalty provided the copyright
8893 notice and this notice are preserved.