1 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
4 representative core for this architecture.
5 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6 * config/arm/arm-tables.opt: Regenerate.
7 * config/arm/arm-tune.md: Likewise.
8 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
10 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
12 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
15 representative core for this architecture.
16 * config/arm/arm-cores.def (cortex-m23): Define new processor.
17 * config/arm/arm-tables.opt: Regenerate.
18 * config/arm/arm-tune.md: Likewise.
19 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
20 this tuning parameters apply to in the comment.
21 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
23 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
25 2016-11-04 Bin Cheng <bin.cheng@arm.com>
27 * fold-const.c (fold_cond_expr_with_comparison): Remove call
28 to pedantic_non_lvalue_loc. Remove useless code for lvalue
29 where cond_expr can't be a lvalue.
31 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
33 * config/arc/arc.c (arc_process_double_reg_moves): Use
35 * config/arc/arc.md (movsi_insn): Disable unsupported move
36 instructions for ARCv2 cores.
37 (movdi): Use prepare_move_operands.
38 (movsf, movdf): Use move_dest_operand predicate.
39 * config/arc/constraints.md (Chs): Enable when barrel shifter is
41 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
42 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
44 (dexcl_3op_peep2_insn_nores): Likewise.
45 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
46 (LINK_COMMAND_SPEC): Remove.
48 2016-11-04 Richard Biener <rguenther@suse.de>
51 * loop-invariant.c (find_exits): Record entering inner
52 loops as possibly exiting to handle infinite sub-loops.
53 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
54 (fill_always_executed_in_1): Honor infinite child loops.
56 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
59 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
60 has already been adjusted for endianness, so don't adjust it any
64 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
65 ICmode unless we have standard PowerPC floating point.
66 * config/rs6000/rs6000.md (FP iterator): Likewise.
67 (FMOVE128 iterator): Likewise.
69 2016-11-03 Jakub Jelinek <jakub@redhat.com>
70 Alexandre Oliva <aoliva@redhat.com>
71 Jason Merrill <jason@redhat.com>
75 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
77 * langhooks.c (lhd_type_dwarf_attribute): New function.
78 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
79 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
80 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
81 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
82 (check_qualified_type, check_aligned_type): Call it.
83 * dwarf2out.c (modified_type_die): Don't use type_main_variant
84 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
85 check_base_type and check_lang_type.
86 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
87 return early. For pointer-to-data-member add DW_AT_use_location
89 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
91 (gen_type_die_with_usage): Don't use type_main_variant
92 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
93 check_base_type and check_lang_type. Formatting fixes. Call
94 get_debug_type langhook.
96 2016-11-03 Jason Merrill <jason@redhat.com>
98 * tree.c (check_lang_type): New.
99 (check_qualified_type): Use it.
100 (check_aligned_type): Use it.
101 * tree.h: Declare it.
103 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
105 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
106 (arm*-freebsd*): Likewise.
107 (arm*-*-netbsdelf*): Likewise.
108 (arm*-*-linux*): Likewise.
109 (arm*-*-uclinux*eabi*): Likewise.
110 (arm*-*-phoenix*): Likewise.
111 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
112 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
113 specified. Default to arm6 if target_cpu_cname is not set.
114 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
115 default cpu has been correctly configured.
116 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
117 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
118 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
119 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
120 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
121 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
122 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
124 2016-11-03 Jiong Wang <jiong.wang@arm.com>
126 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
127 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
128 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
129 (output_cfa_loc): Support DW_CFA_val_expression.
130 (output_cfa_loc_raw): Likewise.
131 (output_cfi): Likewise.
132 (output_cfi_directive): Likewise.
133 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
134 (dw_cfi_oprnd2_desc): Likewise.
135 (mem_loc_descriptor): Recognize new pattern generated for value
138 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
140 PR rtl-optimization/78186
141 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
142 well, when converting to IOR.
144 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
146 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
147 (vec_interleave_highv8qi): Likewise.
149 2016-11-03 Martin Liska <mliska@suse.cz>
151 * profile.c (instrument_values): Fix coding style.
152 (branch_prob): Use renamed function.
153 * tree-profile.c (init_ic_make_global_vars): Likewise.
154 (gimple_init_edge_profiler): Rename to
155 gimple_init_gcov_profiler.
156 tree_time_profiler_counter variable declaration.
157 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
159 * value-prof.h: Remove an argument.
161 2016-11-03 Richard Biener <rguenther@suse.de>
163 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
164 symtab_node::get_create.
166 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
168 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
169 Move comments into more natural position.
171 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
173 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
174 (PTRDIFF_TYPE): Define as int.
176 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
178 * ccmp.c (expand_ccmp_expr_1): Adjust.
179 (expand_ccmp_expr): Likewise.
180 (expand_ccmp_next): Likewise.
181 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
182 (aarch64_gen_ccmp_first): Likewise.
183 * doc/tm.texi: Regenerate.
184 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
185 (gen_ccmp_next): Likewise.
187 2016-11-03 Bin Cheng <bin.cheng@arm.com>
189 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
190 (vect_is_simple_reduction): Swap cond_reduction by inversion.
192 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
194 * config/i386/i386.c (ix86_init_libfuncs): New. Call
195 darwin_rename_builtins here.
196 (ix86_expand_divmod_libfunc): New.
197 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
198 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
200 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
201 Nathan Sidwell <nathan@acm.org>
203 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
205 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
207 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
209 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
210 to format MODE_INT and MODE_PARTIAL_INT literals.
212 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
215 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
216 NULL if TARGET_SPE_ABI.
218 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
220 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
221 clear padding bits even when they're less than a byte.
223 2016-11-02 Richard Biener <rguenther@suse.de>
225 * gimple-ssa-store-merging.c: Include gimplify-me.h.
226 (imm_store_chain_info::output_merged_stores): Force base_addr
227 to be proper GIMPLE for a MEM_REF address.
228 (pass_store_merging::execute): Restrict negative bitpos
229 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
230 check. Take into account non-NULL_TREE offset if the base
231 is already addressable.
233 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
235 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
237 (aarch64_be_crypto_sha1hv4si): New pattern.
239 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
241 * config/aarch64/aarch64.md (add<mode>3): Remove
242 redundant code. Don't split frame based additions.
244 2016-11-02 Richard Biener <rguenther@suse.de>
246 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
247 redundant val and dest members.
248 (store_immediate_info::store_immediate_info): Adjust.
249 (merged_store_group::merged_store_group): Adjust.
250 (merged_store_group::apply_stores): Likewise.
251 (struct imm_store_chain_info): Add base_addr field.
252 (imm_store_chain_info::imm_store_chain_info): New constructor.
253 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
254 (imm_store_chain_info::output_merged_store): Likewise. Use
255 addr_base which is already the address.
256 (imm_store_chain_info::output_merged_stores): Likewise.
257 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
258 imm_store_chain_info instead of base. Fix alias check.
259 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
260 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
261 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
262 use the address of the base and adjust for other changes.
264 2016-11-02 Martin Liska <mliska@suse.cz>
266 * fold-const-call.c (host_size_t_cst_p): Test whether
267 t is convertible to size_t.
269 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
271 PR tree-optimization/78170
272 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
273 introduced by native_encode_expr on little-endian as well.
275 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
277 PR tree-optimization/78162
278 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
281 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
283 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
285 (aarch64_next_callee_save): Likewise.
286 (aarch64_pushwb_single_reg): Likewise.
287 (aarch64_gen_storewb_pair): Likewise.
288 (aarch64_push_regs): Likewise.
289 (aarch64_gen_loadwb_pair): Likewise.
290 (aarch64_pop_regs): Likewise.
291 (aarch64_gen_store_pair): Likewise.
292 (aarch64_gen_load_pair): Likewise.
293 (aarch64_save_callee_saves): Likewise.
294 (aarch64_restore_callee_saves): Likewise.
296 2016-11-02 Richard Biener <rguenther@suse.de>
298 PR tree-optimization/78035
299 PR tree-optimization/77964
300 * gimple-pretty-print.c (pp_points_to_solution): Print
301 vars_contains_interposable.
302 * tree-ssa-alias.c: Include varasm.h.
303 (ptrs_compare_unequal): Check vars_contains_interposable and
304 decl_binds_to_current_def_p.
305 (dump_points_to_solution): Dump vars_contains_interposable.
306 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
308 * tree-ssa-structalias.c: Include varasm.h.
309 (set_uids_in_ptset): Record whether vars contains a
310 not decl_binds_to_current_def_p variable in vars_contains_interposable.
311 (ipa_escaped_pt): Update initializer.
313 2016-11-02 Richard Biener <rguenther@suse.de>
315 PR tree-optimization/78047
316 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
317 fake field at offset zero conservatively regarding to may_have_pointers.
319 2016-11-02 Richard Biener <rguenther@suse.de>
321 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
322 infer_value_range on stmt ops and update value-ranges.
323 Dump visited stmts and blocks.
324 (evrp_dom_walker::push_value_range): Dump changes.
325 (evrp_dom_walker::pop_value_range): Likewise.
326 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
328 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
330 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
332 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
334 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
336 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
338 * cfgrtl.h (delete_insn_chain): Adjust prototype.
340 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
342 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
344 (transcode_memory_rtx): Likewise.
345 (move_to_acc): Likewise.
346 (move_from_acc): Likewise.
347 (move_acc_to_reg): Likewise.
348 (move_to_x): Likewise.
349 (move_to_hl): Likewise.
350 (move_to_de): Likewise.
351 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
352 (rs6000_emit_savres_rtx): Likewise.
353 (rs6000_emit_prologue): Likewise.
354 * reorg.c (update_reg_unused_notes): Likewise.
355 * rtl.h (remove_note): Adjust prototype.
356 * rtlanal.c (remove_note): Make argument type rtx_insn *.
358 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
360 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
361 variables so some can be rtx_insn *.
362 (alpha_emit_xfloating_libcall): Likewise.
363 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
364 (mips_legitimize_tls_address): Likewise.
365 * optabs.c (expand_binop): Likewise.
366 * reload1.c (gen_reload): Likewise.
368 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
370 * reorg.c (relax_delay_slots): Split up the trial variable.
372 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
374 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
375 of variables rtx_insn *.
376 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
377 (legitimize_tls_address): Likewise.
378 * config/bfin/bfin.c (hwloop_optimize): Likewise.
379 (bfin_gen_bundles): Likewise.
380 * config/c6x/c6x.c (reorg_split_calls): Likewise.
381 (c6x_reorg): Likewise.
382 * config/frv/frv.c (frv_reorder_packet): Likewise.
383 * config/i386/i386.c (ix86_split_idivmod): Likewise.
384 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
385 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
386 * config/mn10300/mn10300.c: Likewise.
387 * config/rl78/rl78.c: Likewise.
388 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
389 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
390 (sh_expand_cmpnstr): Likewise.
391 (sh_expand_strlen): Likewise.
392 (sh_expand_setmem): Likewise.
393 * config/sh/sh.md: Likewise.
394 * emit-rtl.c (emit_pattern_before): Likewise.
395 * except.c: Likewise.
399 2016-11-01 Jason Merrill <jason@redhat.com>
401 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
402 a COND_EXPR with constant condition.
404 2016-11-01 Jakub Jelinek <jakub@redhat.com>
406 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
407 and its initialization.
409 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
414 2016-11-01 Jakub Jelinek <jakub@redhat.com>
416 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
417 argument, don't call add_linkage_name if it is true.
418 (gen_variable_die): For C++ inline static data members, consider the
419 initial call when old_die is NULL to be declaration and call
420 add_name_and_src_coords_attributes in that case with true as
421 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
422 (gen_member_die): For C++ inline static data members, emit a
423 definition DIE right away in DW_TAG_compile_unit context.
425 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
428 * config/pa/pa.md: Add new shift/add patterns to handle
429 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
431 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
433 * config/xtensa/xtensa-protos.h
434 (xtensa_use_return_instruction_p): New prototype.
435 * config/xtensa/xtensa.c (xtensa_current_frame_size,
436 xtensa_callee_save_size): Remove.
437 (struct machine_function): Add new fields: current_frame_size,
438 callee_save_size, frame_laid_out and epilogue_done.
439 (compute_frame_size, xtensa_expand_prologue,
440 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
441 cfun->machine->callee_save_size and xtensa_current_frame_size
442 with cfun->machine->current_frame_size.
443 (compute_frame_size): Update cfun->machine->frame_laid_out and
444 don't update frame layout after reload completion.
445 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
446 instead of zeroing xtensa_current_frame_size.
447 (xtensa_use_return_instruction_p): New function.
448 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
450 (INITIAL_ELIMINATION_OFFSET): Use return value of
451 compute_frame_size instead of xtensa_current_frame_size value.
452 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
453 function xtensa_use_return_instruction_p instead of inline code.
455 2016-11-01 Jakub Jelinek <jakub@redhat.com>
457 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
458 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
459 * dwarf2out.c (rnglist_idx): New variable.
460 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
461 (DEBUG_RNGLISTS_SECTION): Define.
462 (ranges_base_label): New variable.
463 (size_of_die) <case dw_val_class_range_list>: If using
464 DW_FORM_rnglistx, count size of uleb128 of range list index.
465 (value_format) <case dw_val_class_range_list>: For
466 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
467 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
468 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
469 (add_ranges_num): Remove useless prototype. Don't multiply
470 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
471 for new fields added to dw_ranges struct.
472 (add_ranges): Add maybe_new_sec argument and pass it
473 through to add_ranges_num.
474 (note_rnglist_head): New function.
475 (add_ranges_by_labels): Pass true as maybe_new_sec to
476 add_ranges_num, call note_rnglist_head on the head of the list.
477 (output_ranges): Add function comment. Switch to
478 .debug_ranges section here and emit .Ldebug_ranges0 label.
479 (index_rnglists, output_rnglists): New functions.
480 (gen_subprogram_die): Formatting fixes.
481 (add_high_low_attributes): Don't divide offsets
482 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
483 first list element or when pointing into the middle of
484 a list. Pass true as second argument to add_ranges on the
485 first block fragment after cold/hot section switch.
486 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
487 section instead of .debug_ranges. Initialize
488 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
489 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
490 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
491 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
492 Call output_rnglists for -gdwarf-5.
493 (dwarf2out_c_finalize): Clear rnglist_idx.
495 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
497 * combine.c (simplify_compare_const): Add gcc_fallthrough.
499 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
500 Tamar Christina <tamar.christina@arm.com>
502 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
503 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
504 (vmaxnmq_f32): Likewise.
505 (vminnm_f32): Likewise.
506 (vminnmq_f32): Likewise.
507 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
509 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
512 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
514 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
515 binary floating point types supported by the hardware except for
517 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
518 vector instruction for optimizing extracting a SImode from a
519 V4SImode vector and converting it to floating point.
520 (vsx_xvcvuxwdp_df): Likewise.
521 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
522 registers to be any VSX register. Move stores to the end of the
524 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
525 to optimize extracting a SImode from a V4SImode vector and
526 converting it to a binary floating point type supported by the
527 hardware. Use the vector converts instead of extracting the
528 element, sign extending it, and then converting it to double.
529 Other floating point types than double first convert to double,
530 then the double is converted to that type.
531 (vsx_extract_si_<uns>float_<mode>): Likewise.
533 2016-10-31 Andrew Pinski <apinski@cavium.com>
535 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
536 Rewrite handling of part num to handle the case where
537 multiple implementers share the same part num.
539 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
540 Jakub Jelinek <jakub@redhat.com>
542 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
543 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
545 2016-10-31 Jakub Jelinek <jakub@redhat.com>
547 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
548 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
549 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
550 (is_cu_die, is_unit_die): Likewise.
551 (should_move_die_to_comdat, break_out_comdat_types): Adjust
552 comments for DWARF5 DW_UT_type units.
553 (output_compilation_unit_header): Add UT argument, output
554 start of DWARF5 .debug_info section header.
555 (output_comp_unit): Add dwo_id argument. Adjust
556 output_compilation_unit_header caller, for DW_UT_split_compile
557 emit dwo_id field, otherwise padding1. Emit padding2 field.
558 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
559 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
560 (output_skeleton_debug_sections): Add dwo_id argument, for
561 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
562 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
563 DW_UT_type or DW_UT_split_type units rather than .debug_types.
564 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
565 DW_TAG_compile_unit for skeleton unit die. Don't add
566 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
567 address to output_comp_unit and output_skeleton_debug_sections.
569 * dwarf2out.c (debug_line_str_section): New variable.
570 (debug_line_str_hash): Likewise.
571 (DEBUG_LINE_STR_SECTION): Define.
572 (set_indirect_string): Handle DW_FORM_line_strp like
574 (find_string_form): Fix up formatting.
575 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
577 (output_die): Handle DW_FORM_line_strp.
578 (DWARF5_USE_DEBUG_LINE_STR): Define.
579 (output_line_string): New function.
580 (output_file_names): Add -gdwarf-5 support.
581 (output_line_info): Likewise.
582 (init_sections_and_labels): Initialize debug_line_str_section.
583 (output_indirect_string): Change 2nd argument from void *
584 to enum dwarf_form form, compare with form rather than
586 (output_indirect_strings): Pass DW_FORM_strp to
587 output_indirect_string traversion.
588 (dwarf2out_finish): Output .debug_line_str strings.
589 (dwarf2out_c_finalize): Clear debug_line_str_section and
592 2016-10-31 Tom Tromey <tom@tromey.com>
595 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
596 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
597 DW_OP_GNU_push_tls_address case.
598 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
600 2016-10-31 Jakub Jelinek <jakub@redhat.com>
602 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
603 for frame_offset_rel bit.
604 (struct array_descr_info): Add rank field.
605 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
606 and placeholder_seen fields.
607 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
608 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
609 DW_OP_pick 1 into DW_OP_over.
610 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
611 gen_variant_part): Clear placeholder_{arg,seen}.
612 (loc_list_from_tree_1): Drop const from context argument.
613 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
614 (loc_list_for_address_of_addr_expr_of_indirect_ref,
615 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
617 (add_scalar_info): Drop const from context argument. Handle
618 context->placeholder_arg.
619 (add_bound_info): Drop const from context argument.
620 (gen_descr_array_type_die): Drop const from ctx variable.
621 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
622 attribute and use a single DW_TAG_generic_subrange instead of
623 7 DW_TAG_subrange_type for assumed rank arrays.
625 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
626 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
627 from bool to 1-bit uchar bitfield. Add num_assigned and
628 offset_emitted bitfields.
629 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
630 for dw_val_class_lineptr and dw_val_class_macptr. Handle
631 dw_val_class_loclistsptr.
632 (new_addr_loc_descr): Fix up formatting.
633 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
634 (add_AT_low_high_pc): Fix up formatting.
635 (add_AT_loclistsptr): New function.
636 (AT_lbl): Allow dw_val_class_loclistsptr.
637 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
638 Handle dw_val_class_loclistsptr.
639 (loc_list_idx): New variable.
640 (output_loclists_offsets, assign_location_list_indexes): New
642 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
643 add size_of_uleb128 of the index. Drop never used
644 dwarf_split_debug_info AT_index handling. Handle
645 dw_val_class_loclistsptr.
646 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
647 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
648 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
649 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
650 DW_FORM_loclistx indexes.
651 (output_attr_index_or_value): Fix up formatting. Don't handle
652 dw_val_class_loc_list here.
653 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
654 For dw_val_class_loc_list call output_loc_list_offset rather than
655 output_attr_index_or_value.
656 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
657 or .debug_loclists.dwo section name for debug_loc_section.
658 (resolve_addr_in_expr): Formatting fix.
659 (index_location_lists): Likewise.
660 (dwarf2out_finish): If there are any location lists, for
661 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
662 index_location_lists only if have_location_lists. Call
663 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
664 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
665 -gsplit-dwarf also emit offset table.
667 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
668 (size_of_die, value_format, output_die): Use
669 DW_FORM_data16 for 128-bit dw_val_class_const_double or
670 dw_val_class_wide_int.
672 * dwarf2out.c (dwarf_op): Renamed to ...
673 (dwarf_OP): ... this.
674 (convert_descriptor_to_mode, scompare_loc_descriptor,
675 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
676 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
678 (dwarf_AT, dwarf_TAG): New functions.
679 (check_die): Disallow DW_AT_call_all_calls next to
680 DW_AT_GNU_all_call_sites.
681 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
682 and attributes instead of the corresponding GNU tag and attributes.
683 (gen_subprogram_die): Likewise. Emit call site information even
684 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
685 DW_AT_defaulted in comment.
686 (resolve_addr): Handle DW_AT_call_origin attribute on
687 DW_TAG_call_site DIE like DW_AT_abstract_origin on
688 DW_TAG_GNU_call_site DIE.
690 * dwarf2out.c (dwarf_op): New function.
691 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
692 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
693 (output_loc_operands, output_loc_operands_raw): Likewise.
694 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
695 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
696 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
697 if dwarf_version < 5.
698 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
700 (scompare_loc_descriptor, ucompare_loc_descriptor,
701 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
702 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
703 optimize_location_into_implicit_ptr): Likewise. Only punt for
704 !dwarf_strict if dwarf_version < 5.
705 (string_cst_pool_decl): Adjust comment.
706 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
708 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
709 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
710 (struct dw_val_node): Add val_file_implicit field.
711 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
712 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
713 output_die): Handle dw_val_class_const_implicit,
714 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
715 (abbrev_die_table): Change into va_gc vec.
716 (abbrev_die_table_allocated, abbrev_die_table_in_use,
717 ABBREV_DIE_TABLE_INCREMENT): Remove.
718 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
719 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
721 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
722 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
724 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
726 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
728 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
730 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
731 unit. Call optimize_abbrev_table.
732 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
733 abbrev_die_table being a va_gc vec.
735 PR tree-optimization/77860
736 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
737 also integral complex and vector constants.
739 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
740 optimize_macinfo_range, save_macinfo_strings): Replace
741 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
742 (output_macinfo): Likewise. Emit .debug_macro* rather than
743 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
744 (init_sections_and_labels): Use .debug_macro* labels rather than
745 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
746 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
747 or DW_AT_GNU_macros for -gdwarf-5.
749 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
751 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
753 2016-09-11 Le-Chun Wu <lcwu@google.com>
754 Mark Wielaard <mjw@redhat.com>
756 * common.opt (Wshadow=global): New option. Default for -Wshadow.
757 (Wshadow=local): New option.
758 (Wshadow-local): Hidden alias for -Wshadow=local.
759 (Wshadow=compatible-local): New option.
760 (Wshadow-compatible-local): Hidden alias for
761 -Wshadow=compatible-local.
762 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
763 Wshadow=compatible-local.
765 2016-10-31 Bin Cheng <bin.cheng@arm.com>
767 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
768 Check slp defs for COND_EXPR by swapping/inverting operands if the
769 new parameter SWAP indicates so.
770 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
771 is isomorphic to the first stmt via swapping/inverting. Store swap
772 information in the new parameter SWAP.
773 (vect_build_slp_tree): New local array SWAP and pass it to function
774 vect_build_slp_tree_1. Cleanup result handling code for function
775 call to vect_get_and_check_slp_defs. Skip operand swapping if the
776 order of operands has been fixed as indicated by SWAP[i].
778 2016-10-31 Bin Cheng <bin.cheng@arm.com>
780 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
781 unnecessary data dependence check after visited store stmt.
783 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
785 PR tree-optimization/71915
786 PR tree-optimization/71490
787 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
789 (find_basis_for_base_expr): Require stride types to match when
791 (alloc_cand_and_find_basis): Record the stride type.
792 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
793 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
794 the expressions having those types.
795 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
796 (create_mul_ssa_cand): Likewise.
797 (create_mul_imm_cand): Likewise.
798 (create_add_ssa_cand): Likewise.
799 (create_add_imm_cand): Likewise.
800 (legal_cast_p_1): Change interface to accept types rather than the
801 expressions having those types.
802 (legal_cast_p): Pass types to legal_cast_p_1.
803 (slsr_process_cast): Pass stride type to
804 alloc_cand_and_find_basis.
805 (slsr_process_copy): Likewise.
806 (dump_candidate): Display stride type when a cast exists.
807 (create_add_on_incoming_edge): Introduce a cast when necessary for
809 (analyze_increments): Change the code checking for invalid casts
810 to rely on the stride type, and update the documentation and
811 example. Change the code checking for pointer multiplies to rely
813 (insert_initializers): Introduce a cast when necessary for the
814 stride type. Use the stride type for the type of the initializer.
816 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
818 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
820 2016-10-29 Jakub Jelinek <jakub@redhat.com>
822 PR rtl-optimization/77919
823 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
824 into memory if both modes are complex and their inner modes have the
825 same precision. If the two modes are different complex modes, convert
826 each part separately and generate a new CONCAT.
828 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
830 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
832 2016-10-29 Jakub Jelinek <jakub@redhat.com>
835 * gimple-ssa-store-merging.c
836 (imm_store_chain_info::output_merged_store): Use build_aligned_type
837 instead of SET_TYPE_ALIGN on shared integral type.
839 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
841 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
842 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
845 2016-10-28 Jeff Law <law@redhat.com>
847 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
848 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
850 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
852 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
854 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
856 * target.def (min_arithmetic_precision): New hook.
857 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
858 * doc/tm.texi: Regenerate.
859 * internal-fn.c (expand_arith_overflow): Adjust handling of target
860 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
861 * targhooks.c (default_min_arithmetic_precision): New function.
862 * targhooks.h (default_min_arithmetic_precision): Declare.
863 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
864 (sparc_min_arithmetic_precision): New function.
866 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
869 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
870 Swap commutative operands in new RTL if needed. Handle zero_ext
872 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
875 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
876 Kugan Vivekanandarajah <kuganv@linaro.org>
877 Jim Wilson <jim.wilson@linaro.org>
879 PR tree-optimization/43721
880 * target.def: New hook expand_divmod_libfunc.
881 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
882 * doc/tm.texi: Regenerate.
883 * internal-fn.def: Add new entry for DIVMOD ifn.
884 * internal-fn.c (expand_DIVMOD): New.
885 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
887 (widen_mul_stats): Add new field divmod_calls_inserted.
888 (target_supports_divmod_p): New.
889 (divmod_candidate_p): Likewise.
890 (convert_to_divmod): Likewise.
891 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
892 renumber_gimple_stmt_uids at beginning of function. Call
893 convert_to_divmod and record stats for divmod.
894 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
895 TARGET_EXPAND_DIVMOD_LIBFUNC.
896 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
899 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
900 Segher Boessenkool <segher@kernel.crashing.org>
902 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
903 swapping the arms of the branch.
904 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
905 sequence for the generic signed-signed-signed case.
907 2016-10-28 Jeff Law <law@redhat.com>
909 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
911 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
913 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
915 PR rtl-optimization/78029
916 * function.c (prologue_contains, epilogue_contains): New functions.
917 (record_prologue_seq, record_epilogue_seq): New functions.
918 * function.h (prologue_contains, epilogue_contains,
919 record_prologue_seq, record_epilogue_seq): New declarations.
920 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
921 mixing prologue and epilogue insns.
922 (init_deps): Initialize the new fields in struct deps_desc.
923 * sched-int.h (struct deps_desc): New fields last_prologue,
924 last_epilogue, and last_logue_was_epilogue.
925 * shrink-wrap.c (emit_common_heads_for_components): Record all
926 emitted prologue and epilogue insns.
927 (emit_common_tails_for_components): Ditto.
928 (insert_prologue_epilogue_for_components): Ditto.
930 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
933 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
934 * common.opt (fstore-merging): New Optimization option.
935 * opts.c (default_options_table): Add entry for
936 OPT_ftree_store_merging.
937 * fold-const.h (can_native_encode_type_p): Declare prototype.
938 * fold-const.c (can_native_encode_type_p): Define.
939 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
940 (PARAM_MAX_STORES_TO_MERGE): Likewise.
941 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
942 * passes.def: Insert pass_tree_store_merging.
943 * tree-pass.h (make_pass_store_merging): Declare extern
945 * gimple-ssa-store-merging.c: New file.
946 * doc/invoke.texi (Optimization Options): Document
948 (--param documentation): Document store-merging-allow-unaligned
949 and max-stores-to-merge.
951 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
954 * gimplify.c (gimplify_init_constructor): Move emit of constructor
955 assignment to earlier in the if/else logic.
957 2016-10-28 Richard Biener <rguenther@suse.de>
961 * fold-const.c (make_bit_field_ref): Only adjust alias set
962 when the original alias set was zero.
964 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
966 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
967 (s390_adjust_loops): New function.
968 (s390_reorg): Invoke s390_adjust_loops.
969 * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
970 ("osc_break"): New insn definition.
972 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
974 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
975 * config.gcc: Support alternate archXX cpu levels with
976 --with-arch= and --with-tune=.
977 * config/s390/linux.h: Translate new archXX cpu levels to the
978 original names when calling GAS.
979 * config/s390/tpf.h: Likewise.
980 * doc/invoke.texi: Document the alternate cpu level names.
982 2016-10-28 Jakub Jelinek <jakub@redhat.com>
984 PR rtl-optimization/77919
985 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
986 MEM if mode1 is not a complex mode.
988 PR rtl-optimization/78132
989 * ree.c (combine_reaching_defs): Give up if copy_needed and
990 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
992 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
994 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
996 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
998 * config/rs6000/constraints.md (wH constraint): Add new
999 constraints for allowing 32-bit integers (and eventually 8/16-bit
1000 integers) into the vector registers.
1001 (wI constraint): Likewise.
1002 (wJ constraint): Likewise.
1003 (wK constraint): Likewise.
1004 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
1005 -mvsx-small-integer as a default option for ISA 2.07
1007 (POWERPC_MASKS): Likewise.
1008 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
1009 switch to turn off small integer support in vector registers.
1010 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
1011 test for -mupper-regs-di, since it is already done with the
1012 reg_add[mode].scalar_in_vsx_p. Add support for the switch
1013 -mvsx-small-integer.
1014 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
1016 (rs6000_setup_reg_addr_masks): Likewise.
1017 (rs6000_init_hard_regno_mode_ok): Likewise.
1018 (rs6000_option_override_internal): Add consistency checks for
1019 -mvsx-small-integer.
1020 (rs6000_secondary_reload_simple_move): SImode is a simple move if
1021 -mvsx-small-integer.
1022 (rs6000_secondary_reload): Use std::swap.
1023 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
1024 VSX_REGS for small integers in vector registers, since there is no
1025 D-FORM address mode for such types.
1026 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
1027 (rs6000_opt_masks): Add -mvsx-small-integer.
1028 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
1030 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
1031 extracts can be done on ISA 2.07.
1032 (vsx_extract_<mode>): Add support for small integers in vsx
1034 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
1035 longer support V4SImode in this pattern.
1036 (vsx_extract_si): New insn to support extraction of SImode in ISA
1037 2.07 using either xxextractuw or vspltw.
1038 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
1039 longer support V4SImode in this pattern.
1040 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
1041 wJ, and wK constraints.
1042 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
1043 storing SDmode with VSX instructions.
1044 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
1045 GPR load and before the FPR and VSX loads. Remove ??, ! from the
1046 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
1047 small integers in vector registers.
1048 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
1049 load and before the FPR and VSX loads. Remove ??, ! from the
1050 constraints. Add VEXTSW2D support for small integers in vector
1052 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
1053 integers in vector registers.
1054 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
1055 move instead of using an UNSPEC.
1056 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
1057 integers in vector registers.
1058 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
1059 move instead of using an UNSPEC.
1060 (movsi_internal1): Add support for -mvsx-small-integer. Align
1061 columns so that it is more readable.
1062 (SImode splitter for ISA 3.0 constants): Add splitter for
1063 -128..127 constants that can easily be constructed on ISA 3.0.
1064 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
1067 2016-10-27 Jakub Jelinek <jakub@redhat.com>
1070 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
1073 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
1075 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
1076 PIC_OFFSET_TABLE_REGNUM twice.
1078 2016-10-27 Bin Cheng <bin.cheng@arm.com>
1080 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
1081 support for constant operand for OP.
1083 2016-10-27 Jakub Jelinek <jakub@redhat.com>
1085 * dwarf2out.c (gen_member_die): Only reparent_child instead of
1086 splice_child_die if child doesn't have DW_AT_specification attribute.
1088 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
1090 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
1091 (TARGET_HAVE_LDREXBH): Likewise.
1092 (TARGET_HAVE_LDACQ): Likewise.
1094 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
1096 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
1097 logic to to decide whether to copy over old value to register for new
1099 * config/arm/sync.md: Add comments explaning why mode and code
1100 attribute are not defined in iterators.md
1101 (thumb1_atomic_op_str): New code attribute.
1102 (thumb1_atomic_newop_str): Likewise.
1103 (thumb1_atomic_fetch_op_str): Likewise.
1104 (thumb1_atomic_fetch_newop_str): Likewise.
1105 (thumb1_atomic_fetch_oldop_str): Likewise.
1106 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
1107 mirror the more restrictive constraints of the Thumb-1 insns after
1108 split compared to Thumb-2 counterpart insns.
1109 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
1110 in sync with non atomic version.
1111 (atomic_nand<mode>): Likewise.
1112 (atomic_fetch_<sync_optab><mode>): Likewise.
1113 (atomic_fetch_nand<mode>): Likewise.
1114 (atomic_<sync_optab>_fetch<mode>): Likewise.
1115 (atomic_nand_fetch<mode>): Likewise.
1116 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
1117 in sync with atomic version.
1118 (thumb1_subsi3_insn): Likewise.
1119 (thumb1_andsi3_insn): Likewise.
1120 (thumb1_iorsi3_insn): Likewise.
1121 (thumb1_xorsi3_insn): Likewise.
1123 2016-10-27 Nick Clifton <nickc@redhat.com>
1125 * plugin.c (register_plugin_info): Produce an error message if the
1126 plugin is not found in the hash table.
1128 2016-10-27 Bin Cheng <bin.cheng@arm.com>
1130 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1133 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
1136 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
1137 define builtin functions from the bdesc_spe_predicates or
1138 bdesc_spe_evsel arrays if the builtin mask is not compatible with
1139 the current compiler configuration.
1140 (paired_init_builtins): Modify loop to not define define builtin
1141 functions from the bdesc_paried_preds array if the builtin mask is
1142 not compatible with the current compiler configuration.
1143 (altivec_init_builtins): Modify loops to not define the
1144 __builtin_altivec_stxvl function nor the builtin functions from
1145 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
1146 builtin mask is not compatible with the current compiler
1149 2016-10-26 Jeff Law <law@redhat.com>
1151 * config/sh/sh.c (output_branch): Add missing fallthru comments.
1152 (gen_shl_and): Likewise.
1153 * config/sh/sh.md (movsicc): Add missing fallthru comments.
1155 * config/mips/mips.c (mips16_constant_cost): Add missing
1157 (mips16_build_call_stub): Increase buffer size. Adjust
1160 2016-10-26 David Malcolm <dmalcolm@redhat.com>
1162 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
1163 INSN_UIDs for all insns in compact mode.
1164 (rtx_writer::print_rtx): Likewise.
1165 * print-rtl.h (rtx_writer::flag_compact): Update comment.
1166 * rtl-tests.c (selftest::test_dumping_insns): Update expected
1167 output to include INSN_UID.
1168 (selftest::test_uncond_jump): Likewise.
1170 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
1172 * haifa-sched.c (call_used_regs_num): Rename to...
1173 (call_saved_regs_num): ...this.
1174 (fixed_regs_num): New variable.
1175 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
1177 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
1179 2016-10-26 David Malcolm <dmalcolm@redhat.com>
1181 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
1183 * print-rtl.c (outfile): Delete global.
1184 (sawclose): Likewise.
1186 (in_call_function_usage): Likewise.
1187 (flag_compact): Likewise.
1188 (flag_simple): Likewise.
1189 (rtx_writer::rtx_writer): New ctor.
1190 (print_rtx_operand_code_0): Convert to...
1191 (rtx_writer::print_rtx_operand_code_0): ...this.
1192 (print_rtx_operand_code_e): Convert to...
1193 (rtx_writer::print_rtx_operand_code_e): ...this.
1194 (print_rtx_operand_codes_E_and_V): Convert to...
1195 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
1196 (print_rtx_operand_code_i): Convert to...
1197 (rtx_writer::print_rtx_operand_code_i): ...this.
1198 (print_rtx_operand_code_r): Convert to...
1199 (rtx_writer::print_rtx_operand_code_r): ...this.
1200 (print_rtx_operand_code_u): Convert to...
1201 (rtx_writer::print_rtx_operand_code_u): ...this.
1202 (print_rtx_operand): Convert to...
1203 (rtx_writer::print_rtx_operand): ...this.
1204 (print_rtx): Convert to...
1205 (rtx_writer::print_rtx): ...this.
1206 (print_inline_rtx): Rewrite in terms of class rtx_writer.
1207 (debug_rtx): Likewise.
1208 (print_rtl): Convert to...
1209 (rtx_writer::print_rtl): ...this.
1210 (print_rtl): Reimplement in terms of class rtx_writer.
1211 (print_rtl_single): Rewrite in terms of class rtx_writer.
1212 (print_rtl_single_with_indent): Convert to..
1213 (rtx_writer::print_rtl_single_with_indent): ...this.
1214 (print_simple_rtl): Rewrite in terms of class rtx_writer.
1215 * print-rtl.h (flag_compact): Delete decl.
1216 (class rtx_writer): New class.
1217 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
1220 2016-10-26 Jeff Law <law@redhat.com>
1222 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
1225 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
1226 (check_if_valid_sleep_operand): Add missing fallthru comment.
1227 (arc_register_move_cost): Increase buffer size.
1228 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
1230 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
1232 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
1233 comment. Add gcc_unreachable for path that should never happen.
1235 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
1238 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1239 Martin Liska <mliska@suse.cz>
1242 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1243 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1244 on outer context if any.
1246 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1248 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
1249 by increment rather than double it.
1250 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
1251 emit a space before args[4].
1252 (END): Don't emit a space before with_arg.
1254 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1256 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
1257 Baseline only alternatives to (i) hold store atomic success value in a
1258 return register rather than a scratch register, (ii) use a low register
1259 for it and to (iii) ensure the cbranchsi insn generated by the split
1260 respect the constraints of Thumb-1 cbranchsi4_insn and
1262 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
1263 constraints must match those in atomic_compare_and_swap.
1264 (cbranchsi4_scratch): Likewise.
1266 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1268 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
1269 variable. Add the new parameter to the insn generator. Set that
1270 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
1271 return value from the negation of that parameter for Thumb-1, keeping
1272 the logic unchanged otherwise except for using bdst as the destination
1273 register of the compare_and_swap insn.
1274 (arm_split_compare_and_swap): Add explanation about how is the value
1275 returned to the function comment. Rename scratch variable to
1276 neg_bval. Adapt initialization of variables holding operands to the
1277 new operand numbers. Use return register to hold result of store
1278 exclusive for Thumb-1, scratch register otherwise. Construct the
1279 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
1280 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
1281 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
1282 for strongly ordered compare_and_swap.
1283 * config/arm/predicates.md (cc_register_operand): New predicate.
1284 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
1285 match_operand with the new predicate to accept either the CC flag or a
1286 destination register for the boolean return value, restricting it to
1287 CC flag only via constraint. Adapt operand numbers accordingly.
1289 2016-10-26 Jeff Law <law@redhat.com>
1291 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
1293 * config/frv/frv.c (comparison_string): Do not fall through after
1296 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
1298 (expand_one_builtin): Add missing break.
1300 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
1301 (m32c_legitimate_address_p): Likewise.
1303 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
1305 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
1307 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
1310 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
1313 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
1315 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
1317 (rl78_asm_ctor_dtor): Increase buffer size.
1319 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
1321 (xstormy16_asm_output_constructor): Likewise.
1323 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
1326 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
1327 comment to silence warning.
1329 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
1330 (spu_legitimate_address_p): Fix logic error and add missing fallthru
1333 2016-10-26 Michael Matz <matz@suse.de>
1335 PR tree-optimization/78060
1336 PR tree-optimization/78061
1337 PR tree-optimization/78088
1338 * tree-ssa-loop-split.c (easy_exit_values): New function.
1339 (tree_ssa_split_loops): Use it.
1340 (compute_new_first_bound): Change order of operations,
1341 fix invalid use of types.
1343 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
1345 gen-pass-instances.awk is sensitive to the order in which
1346 passes are added; passes that appear later have to be added first.
1350 * config/avr/avr-passes.def: Swap order of directives for
1351 gen-pass-instances.awk.
1353 2016-10-25 Jeff Law <law@redhat.com>
1355 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
1356 (vax_notice_update_cc): Likewise.
1358 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1360 * config.gcc (sparc*-*-solaris2*): Adjust.
1361 (sparc64-*-linux*): Likewise.
1362 * config/sparc/default-64.h: Rename to...
1363 * config/sparc/default64.h: ...this.
1364 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
1366 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
1367 * config/sparc/sparc.h: Minor tweaks.
1368 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
1369 TARGET_ARCH32 throughout. Minor various tweaks throughout.
1371 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1373 * input.c (fcache::file_patch): Add comment about lifetime.
1374 (selftest::cpp_reader_ptr): New class.
1375 (selftest::lexer_test): Convert m_parser from cpp_reader *
1376 to a cpp_reader_ptr, and move m_tempfile to after it.
1377 (selftest::lexer_test::lexer_test): Update for above reordering.
1378 (lexer_test::~lexer_test): Move cleanup of m_parser to
1379 cpp_reader_ptr's dtor.
1381 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1383 * toplev.c (toplev::main): Remove call to
1384 location_adhoc_data_fini.
1386 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1388 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1389 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
1391 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1393 * ggc-tests.c (forcibly_ggc_collect): Rename to...
1394 (selftest::forcibly_ggc_collect): ...this, and remove "static".
1395 (test_basic_struct): Update for above renaming.
1396 (test_length): Likewise.
1397 (test_union): Likewise.
1398 (test_finalization): Likewise.
1399 (test_deletable_global): Likewise.
1400 (test_inheritance): Likewise.
1401 (test_chain_next): Likewise.
1402 (test_user_struct): Likewise.
1403 (test_tree_marking): Likewise.
1404 * selftest-run-tests.c (selftest::run_tests): Call
1405 selftest::forcibly_ggc_collect at the end of the selftests.
1406 * selftest.h (selftest::forcibly_ggc_collect): New decl.
1408 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1411 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
1412 * optabs.c (expand_vec_cond_expr): For comparison codes
1413 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
1414 (expand_vec_cmp_expr): For comparison codes
1415 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
1416 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
1417 Add enum tree_code argument.
1418 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
1420 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
1421 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
1423 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
1424 NE_EXPR, attempt to use vcondeq_optab as fallback.
1425 * tree-vect-generic.c (expand_vector_comparison,
1426 expand_vector_divmod, expand_vector_condition): Adjust
1427 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
1428 * tree-vect-stmts.c (vectorizable_condition,
1429 vectorizable_comparison): Likewise.
1430 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
1431 check_bool_pattern, search_type_for_mask_1): Likewise.
1432 * expr.c (do_store_flag): Likewise.
1433 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
1434 @code{vcondeq@var{m}@var{n}}): Document.
1435 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
1438 2016-10-25 Jeff Law <law@redhat.com>
1440 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
1442 (v850_output_aligned_bss): Add missing break.
1444 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
1446 2016-10-25 Martin Liska <mliska@suse.cz>
1449 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
1450 statements as they can also contain possibly a freeing call.
1452 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
1453 Martin Liska <mliska@suse.cz>
1456 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
1457 * ipa-icf.c (sem_function::get_hash): Add target optimization
1460 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
1463 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
1464 Remove partial overlap check for shift by 1.
1465 (ashldi3_neon): Likewise.
1467 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1469 * config/arm/constraints.md (Q constraint): Document its use for
1471 (Pf constraint): New constraint for relaxed, consume or relaxed memory
1473 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
1474 alternatives to allow any register when memory model matches Pf and
1475 thus lda is used, but only low registers otherwise. Use unpredicated
1476 output template for Thumb-1 targets.
1477 (atomic_store<mode>): Likewise for stl.
1478 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
1479 whose output template does not have predication.
1480 (arm_load_acquire_exclusive<mode>): Likewise.
1481 (arm_load_exclusivesi): Likewise.
1482 (arm_load_acquire_exclusivesi): Likewise.
1483 (arm_store_release_exclusive<mode>): Likewise.
1484 (arm_store_exclusive<mode>): Use unpredicated output template for
1487 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1489 * internal-fn.def (LAUNDER): New internal function.
1490 * internal-fn.c (expand_LAUNDER): New function.
1492 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1493 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1495 New avr target pass to work around performance loss by PR fix.
1499 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
1500 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
1501 * config/avr/predicates.md (extend_operator): New.
1502 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
1503 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
1504 (make_avr_pass_casesi): New prototypes.
1505 * config/avr/avr.c (print-rtl.h): Include it.
1506 (pass_data avr_pass_data_casesi): Data for new pass.
1507 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
1508 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
1509 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
1510 (avr_optimize_casesi): New functions.
1512 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1513 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1517 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
1519 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1521 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
1522 DW_AT_rvalue_reference attributes.
1524 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1526 * doc/invoke.text (Wint-in-bool-context): Update documentation.
1527 * value-prof.c (stringop_block_profile): Fix a warning.
1529 2016-10-24 Martin Sebor <msebor@redhat.com>
1532 * builtins.c (string_length): New function.
1533 (c_strlen): Use string_length. Correctly handle wide strings.
1534 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
1536 (target_int_max): Call target_max_value.
1537 (format_result::knownrange): New data member.
1538 (fmtresult::fmtresult): Define default constructor.
1539 (format_integer): Use it and set format_result::knownrange.
1540 Handle global constants.
1541 (format_floating_max): Add third argument.
1542 (format_floating): Recompute maximum value for %a for each argument.
1543 (get_string_length): Use fmtresult default ctor.
1544 (format_string): Set format_result::knownrange.
1545 (format_directive): Check format_result::knownrange.
1546 (add_bytes): Same. Correct caret placement in diagnostics.
1547 (pass_sprintf_length::compute_format_length): Set
1548 format_result::knownrange.
1549 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
1551 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1553 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
1554 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
1556 2016-10-24 Ximin Luo <infinity0@pwned.gg>
1559 * dwarf2out.c (file_table_relative_p): Remove.
1560 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
1561 also for absolute paths.
1562 * doc/tm.texi: Update.
1563 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
1564 * target.def (force_at_comp_dir): Remove hook.
1565 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
1567 2016-10-24 Richard Biener <rguenther@suse.de>
1569 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
1570 backedges when identifying the single predecessor to take
1571 conditional info from. Use SCEV to get at ranges for loop IVs.
1572 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
1573 avoid false warning.
1575 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
1578 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
1579 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
1580 (avr_address_tiny_absdata_p): New static function.
1581 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
1582 it to determine validity of constant addresses.
1583 (avr_attribute_table) [absdata]: New variable attribute...
1584 (avr_handle_absdata_attribute): ...and handler.
1585 (avr_decl_absdata_p): New static function.
1586 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
1587 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
1588 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
1590 2016-10-24 Richard Biener <rguenther@suse.de>
1592 PR tree-optimization/78076
1593 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
1594 also on the loop tree root.
1596 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1598 * config/i386/i386.c (ix86_fold_builtin): Handle
1599 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
1600 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1601 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
1602 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1604 2016-10-24 Martin Liska <mliska@suse.cz>
1607 * opts.c (finish_options): Skip conditionally.
1609 2016-10-23 Martin Sebor <msebor@redhat.com>
1612 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
1613 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
1615 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1617 * config/sparc/sparc.md (cpu_feature): Minor tweak.
1618 (enabled): Likewise.
1619 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1620 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1621 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1622 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1623 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1624 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1626 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1628 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1629 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
1631 2016-10-21 Andrew Pinski <apinski@cavium.com>
1633 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
1635 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
1636 implementer_id to unsigned char.
1637 Change part_no to unsigned int.
1638 (AARCH64_BIG_LITTLE): New define.
1639 (INVALID_IMP): New define.
1640 (INVALID_CORE): New define.
1641 (cpu_data): Change the last element's implementer_id and part_no to
1643 (valid_bL_string_p): Rewrite to ..
1644 (valid_bL_core_p): this for integers instead of strings.
1645 (parse_field): New function.
1646 (contains_string_p): Rewrite to ...
1647 (contains_core_p): this for integers and only for the part_no.
1648 (host_detect_local_cpu): Rewrite handling of implementation and
1649 par num to be integers; simplifying the code.
1651 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1653 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
1654 value range for pointers in more cases.
1656 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1658 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
1659 Add extra argument to allow emitting the move immediate.
1660 Use add/sub with positive immediate.
1661 (aarch64_add_constant): Add inline function.
1662 (aarch64_add_sp): Likewise.
1663 (aarch64_sub_sp): Likewise.
1664 (aarch64_expand_prologue): Call aarch64_sub_sp.
1665 (aarch64_expand_epilogue): Call aarch64_add_sp.
1666 Decide when to leave out move.
1667 (aarch64_output_mi_thunk): Call aarch64_add_constant.
1669 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1671 * config/aarch64/aarch64.c (aarch64_layout_frame):
1672 Align FP callee-saves.
1674 2016-10-21 Jakub Jelinek <jakub@redhat.com>
1676 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
1677 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
1679 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
1680 _rdseed64_step): Likewise.
1681 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
1684 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1685 and tree-ssanames.h.
1686 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1687 with INTEGER_CST argument.
1688 (ix86_gimple_fold_builtin): New function.
1689 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1691 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
1692 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
1693 (ranges_table_allocated, ranges_table_in_use,
1694 ranges_by_label_allocated, ranges_by_label_in_use,
1695 RANGES_TABLE_INCREMENT): Removed.
1696 (add_ranges_num): Use vec_safe_push into ranges_table.
1697 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
1698 (output_ranges): Adjust for ranges_table and ranges_by_label
1699 conversion from arrays to vec.
1700 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
1701 conversion from arrays to vec.
1702 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
1703 ranges_table_in_use, ranges_by_label_allocated and
1704 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
1706 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
1707 if needed. Re-add origin_die variable and its initialization.
1709 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
1710 even for -fstack-reuse=none, or for volatile vars etc.
1712 2016-10-21 David Malcolm <dmalcolm@redhat.com>
1714 * print-rtl-function.c (flag_compact): Move extern decl to...
1715 * print-rtl.h (flag_compact): ...here.
1716 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
1717 (ASSERT_RTL_DUMP_EQ): New macro.
1718 (selftest::test_dumping_regs): New function.
1719 (selftest::test_dumping_insns): New function.
1720 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
1722 (selftest::rtl_tests_c_tests): Call the new test functions.
1724 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1726 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1727 (outgoing_edges_match): Likewise.
1728 (try_crossjump_to_edge): Likewise.
1729 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1730 (rtl_tidy_fallthru_edge): Likewise.
1731 * rtl.h (tablejump_p): Adjust prototype.
1732 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
1734 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1736 * rtl.h (label_ref_label): New function.
1737 (set_label_ref_label): New function.
1738 (LABEL_REF_LABEL): Delete.
1739 * alias.c (rtx_equal_for_memref_p): Adjust.
1740 * cfgbuild.c (make_edges): Likewise.
1741 (purge_dead_tablejump_edges): Likewise.
1742 * cfgexpand.c (convert_debug_memory_address): Likewise.
1743 * cfgrtl.c (patch_jump_insn): Likewise.
1744 * combine.c (distribute_notes): Likewise.
1745 * cse.c (hash_rtx_cb): Likewise.
1746 (exp_equiv_p): Likewise.
1747 (fold_rtx): Likewise.
1748 (check_for_label_ref): Likewise.
1749 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1750 (cselib_hash_rtx): Likewise.
1751 * emit-rtl.c (mark_label_nuses): Likewise.
1752 * explow.c (convert_memory_address_addr_space_1): Likewise.
1753 * final.c (output_asm_label): Likewise.
1754 (output_addr_const): Likewise.
1755 * gcse.c (add_label_notes): Likewise.
1756 * genconfig.c (walk_insn_part): Likewise.
1757 * genrecog.c (validate_pattern): Likewise.
1758 * ifcvt.c (cond_exec_get_condition): Likewise.
1759 (noce_emit_store_flag): Likewise.
1760 (noce_get_alt_condition): Likewise.
1761 (noce_get_condition): Likewise.
1762 * jump.c (maybe_propagate_label_ref): Likewise.
1763 (mark_jump_label_1): Likewise.
1764 (redirect_exp_1): Likewise.
1765 (rtx_renumbered_equal_p): Likewise.
1766 * lra-constraints.c (operands_match_p): Likewise.
1767 * print-rtl.c (print_value): Likewise.
1768 * reload.c (find_reloads): Likewise.
1769 * reload1.c (set_label_offsets): Likewise.
1770 * reorg.c (get_branch_condition): Likewise.
1771 * rtl-tests.c (test_uncond_jump): Likewise.
1772 * rtl.c (rtx_equal_p_cb): Likewise.
1773 (rtx_equal_p): Likewise.
1774 * rtlanal.c (reg_mentioned_p): Likewise.
1775 (rtx_referenced_p): Likewise.
1776 (get_condition): Likewise.
1777 * varasm.c (const_hash_1): Likewise.
1778 (compare_constant): Likewise.
1779 (const_rtx_hash_1): Likewise.
1780 (output_constant_pool_1): Likewise.
1782 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1785 * reload.c (find_valid_class_1): Allow regclass if atleast one
1786 regno in regclass is ok. Compute and use rclass size based on
1787 actually available regnos for mode in rclass.
1789 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
1791 * config/sparc/sparc-modes.def (CCV): New.
1793 * config/sparc/predicates.md (v_comparison_operator): New.
1794 (icc_comparison_operator): Add support for CCV/CCXV.
1795 (xcc_comparison_operator): Likewise.
1796 * config/sparc/sparc.c (output_cbranch): Likewise.
1797 (sparc_print_operand): Likewise.
1798 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1799 (uaddvdi4): New expander.
1800 (addvdi4): Likewise.
1801 (uaddvdi4_sp32): New instruction.
1802 (addvdi4_sp32): Likewise.
1803 (uaddvsi4): New expander.
1804 (addvsi4): Likewise.
1805 (cmp_ccc_plus_sltu_set): New instruction.
1806 (cmp_ccv_plus): Likewise.
1807 (cmp_ccxv_plus): Likewise.
1808 (cmp_ccv_plus_set): Likewise.
1809 (cmp_ccxv_plus_set): Likewise.
1810 (cmp_ccv_plus_sltu_set): Likewise.
1811 (uaddvdi4): New expander.
1812 (subvdi4): Likewise.
1813 (usubdi4_sp32): New instruction.
1814 (subvdi4_sp32): Likewise.
1815 (usubvsi4): New expander.
1816 (subvsi4): Likewise.
1817 (cmpsi_minus_sltu_set): New instruction.
1818 (cmp_ccv_minus): Likewise.
1819 (cmp_ccxv_minus): Likewise.
1820 (cmp_ccv_minus_set): Likewise.
1821 (cmp_ccxv_minus_set): Likewise.
1822 (cmp_ccv_minus_sltu_set): Likewise.
1823 (unegvdi3): New expander.
1824 (negvdi3): Likewise.
1825 (unegdi3_sp32): New instruction.
1826 (negvdi3_sp32): Likewise.
1827 (unegvsi3): New expander.
1828 (negvsi3): Likewise.
1829 (cmp_ccc_neg_sltu_set): New instruction.
1830 (cmp_ccv_neg): Likewise.
1831 (cmp_ccxv_neg): Likewise.
1832 (cmp_ccv_neg_set): Likewise.
1833 (cmp_ccxv_neg_set): Likewise.
1834 (cmp_ccv_neg_sltu_set): Likewise.
1836 * tree-ssa-loop-split.c: Remove trailing spaces.
1837 * match.pd: Likewise.
1839 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1841 PR rtl-optimization/78038
1842 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1843 be deduced to set REG through the RTL structure.
1844 (make_defs_and_copies_lists): Return false on a failing get_defs call.
1846 2016-10-21 Richard Biener <rguenther@suse.de>
1848 PR tree-optimization/78051
1849 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
1850 and mark replaced if folding did something.
1852 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
1854 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
1855 and "protected" in visibility types.
1856 (rs6000_xcoff_declare_function_name): Fix formatting.
1857 (rs6000_xcoff_declare_object_name): Fix formatting.
1859 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
1861 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
1862 and IX86_BUILTIN_HUGE_VALQ here ...
1863 (ix86_expand_builtin): ... not here.
1865 2016-10-20 Jakub Jelinek <jakub@redhat.com>
1867 * doc/gty.texi (for_user): Use @item next to @findex.
1869 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
1872 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1873 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1874 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1875 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1876 __builtin_ia32_lzcnt_u16.
1877 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1878 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1879 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1880 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1881 (bmi_tzcnt_<mode>): New expander.
1882 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1883 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1884 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1885 (lzcnt_<mode>): New expander.
1886 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1887 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1888 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1889 (UINT64_FTYPE_UINT64): New.
1890 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1891 (__builtin_ia32_lzcnt_u16): New description.
1892 (__builtin_ia32_lzcnt_u32): Ditto.
1893 (__builtin_ia32_lzcnt_u64): Ditto.
1894 (__builtin_ctzs): Remove description.
1895 (__builtin_ia32_tzcnt_u16): New description.
1896 (__builtin_ia32_tzcnt_u32): Ditto.
1897 (__builtin_ia32_tzcnt_u64): Ditto.
1898 * config/i386/i386.c (ix86_expand_args_builtin): Handle
1899 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1901 2016-10-20 Martin Liska <mliska@suse.cz>
1904 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
1905 comparison with STMT_UID_NOT_IN_RANGE.
1906 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
1909 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
1911 * compare-elim.c (conforming_compare): Accept UNSPECs.
1912 (find_comparison_dom_walker::before_dom_children): Deal with
1913 instructions both using and killing the flags register.
1914 (equivalent_reg_at_start): New function extracted from...
1915 (try_eliminate_compare): ...here. Use it and add support for
1916 registers and UNSPECs as second operand of the compare.
1917 * config/visium/visium-modes.def (CCV): New.
1918 * config/visium/predicates.md (visium_v_comparison_operator): New.
1919 (visium_branch_operator): Deal with CCV mode.
1920 * config/visium/visium.c (visium_select_cc_mode): Likewise.
1921 (output_cbranch): Likewise.
1922 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1923 (uaddv<mode>4): New expander.
1924 (addv<mode>4): Likewise.
1925 (add<mode>3_insn_set_carry): New instruction.
1926 (add<mode>3_insn_set_overflow): Likewise.
1927 (addsi3_insn_set_overflow): Likewise.
1928 (usubv<mode>4): New expander.
1929 (subv<mode>4): Likewise.
1930 (sub<mode>3_insn_set_carry): New instruction.
1931 (sub<mode>3_insn_set_overflow): Likewise.
1932 (subsi3_insn_set_overflow): Likewise.
1933 (unegv<mode>3): New expander.
1934 (negv<mode>3): Likewise.
1935 (neg<mode>2_insn_set_overflow): New instruction.
1936 (addv_tst<mode>): Likewise.
1937 (subv_tst<mode>): Likewise.
1938 (negv_tst<mode>): Likewise.
1939 (cbranch<mode>4_addv_insn): New splitter and instruction.
1940 (cbranch<mode>4_subv_insn): Likewise.
1941 (cbranch<mode>4_negv_insn): Likewise.
1943 2016-10-20 Richard Biener <rguenther@suse.de>
1945 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
1946 Handle decls possibly not bound.
1947 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
1948 nothing_id for decls that might not be bound if we are interested
1950 (get_constraint_for_component_ref): Deal with that.
1952 2016-10-20 Michael Matz <matz@suse.de>
1955 * common.opt (-fsplit-loops): New flag.
1956 * passes.def (pass_loop_split): Add.
1957 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
1958 (enable_fdo_optimizations): Add loop splitting.
1959 * timevar.def (TV_LOOP_SPLIT): Add.
1960 * tree-pass.h (make_pass_loop_split): Declare.
1961 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
1962 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
1963 * tree-ssa-loop-split.c: New file.
1964 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
1965 * doc/invoke.texi (fsplit-loops): Document.
1966 * doc/passes.texi (Loop optimization): Add paragraph about loop
1969 2016-10-20 Richard Biener <rguenther@suse.de>
1971 * cgraphunit.c (analyze_functions): Set node->definition to
1972 false to signal symbol removal to debug_hooks->late_global_decl.
1973 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
1974 WPA signal symbol removal to the debuginfo machinery.
1975 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
1976 using early_finised to guard the we're called for symbol
1977 removal case look at the symtabs definition flag.
1978 (gen_variable_die): Remove redundant check.
1980 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1982 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
1984 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1986 PR tree-optimization/53979
1987 * match.pd ((a ^ b) | a -> a | b): New pattern.
1989 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
1991 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
1992 config/pa/pa64-hpux-lib.h.
1993 (PA_CRTBEGIN_HACK): Likewise.
1994 (DTOR_LIST_BEGIN): Likewise.
1996 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1998 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1999 register only if "in" and "out" are different registers.
2001 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
2003 * omp-low.c (pass_oacc_device_lower::gate): New method.
2004 (execute): Always call execute_oacc_device_lower.
2006 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2008 PR tree-optimization/77916
2009 PR tree-optimization/77937
2010 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
2012 (insert_initializers): Requirement of initializer for -1 should be
2013 based on pointer-typedness of the candidate basis.
2015 2016-10-19 Bin Cheng <bin.cheng@arm.com>
2017 PR tree-optimization/78005
2018 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
2019 upper (included) bound for niters of prolog loop.
2020 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
2021 Compute niters of scalar loop above which vectorized loop is
2022 preferred, as well as the upper (included) bound for the niters.
2023 (vect_do_peeling): Record niter bound for loops accordingly.
2025 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
2028 * tree-core.h (enum tree_index): Put the complex types after their
2030 * tree-streamer.c (verify_common_node_recorded): New function.
2031 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
2033 2016-10-19 Martin Liska <mliska@suse.cz>
2035 * cgraph.h (cgraph_edge::binds_to_current_def_p):
2036 Replace NULL with false as a return value.
2038 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
2040 PR tree-optimization/78024
2041 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
2042 don't clear BB_VISITED after processing.
2044 2016-10-19 Richard Biener <rguenther@suse.de>
2046 * domwalk.c (dom_walker::walk): Use RPO order.
2048 2016-10-19 Richard Biener <rguenther@suse.de>
2050 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
2052 (evrp_dom_walker::~evrp_dom_walker): Free it.
2053 (evrp_dom_walker::stmts_to_remove): Add.
2054 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
2055 whose output we fully propagate for removal. Propagate
2056 into BB destination PHI arguments.
2057 (execute_early_vrp): Remove queued stmts. Dump value ranges
2058 before stmt removal.
2060 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
2062 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
2063 * passes.def: Add two instances of pass_walloca.
2064 * tree-pass.h (make_pass_walloca): New.
2065 * gimple-ssa-warn-alloca.c: New file.
2066 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
2067 -Wvla-larger-than= options.
2069 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
2071 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
2072 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
2074 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
2076 * config/rs6000/altivec.h (vec_xl_len): New macro.
2077 (vec_xst_len): New macro.
2078 (vec_cmpnez): New macro.
2079 (vec_cntlz_lsbb): New macro.
2080 (vec_cnttz_lsbb): New macro.
2081 (vec_xlx): New macro.
2082 (vec_xrx): New macro.
2083 (vec_all_nez): New C++ predicate template.
2084 (vec_any_eqz): New C++ predicate template.
2085 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
2086 conditional compilation.
2087 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
2088 conditional compilation.
2089 (vec_all_nez): New macro.
2090 (vec_any_eqz): New macro.
2091 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
2093 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
2095 * config/rs6000/vector.md (VI): Moved this mode iterator
2096 definition from altivec.md to vector.md.
2097 (UNSPEC_NEZ_P): New value.
2098 (vector_ne_<mode>_p): New expansion for implementation of
2099 vec_all_ne and vec_any_eq built-in functions.
2100 (vector_nez_<mode>_p): New expansion for implementation of
2101 vec_all_nez and vec_any_eqz built-in functions.
2102 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
2103 and vec_any_eq built-in function.
2104 (cr6_test_for_zero): New commentary to explain this expansion.
2105 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
2106 (cr6_test_for_lt): New commentary to explain this expansion.
2107 (cr6_test_for_lt_reverse): New commentary to explain this
2109 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2110 overloaded function prototypes for vec_all_ne, vec_all_nez,
2111 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
2112 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
2114 (altivec_resolve_overloaded_builtin): Modify the handling of
2115 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
2116 the compiler is configured to support TARGET_P9_VECTOR.
2117 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
2118 to explain the special processing that is given to predicate
2119 built-ins introduced using this macro.
2120 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
2121 the special processing given to predicate built-ins introduced
2123 (BU_VSX_P): Likewise.
2124 (BU_P8V_AV_P): Likewise.
2125 (BU_P9V_AV_P): Likewise.
2126 (BU_P9V_AV_X): New macro.
2127 (BU_P9V_64BIT_AV_X): New macro.
2128 (BU_P9V_VSX_3): New macro.
2129 (BU_P9V_OVERLOAD_P): New macro.
2130 (LXVL): New BU_P9V_64BIT_VSX_2.
2131 (VEXTUBLX): New BU_P9V_AV_2.
2132 (VEXTUBRX): Likewise.
2133 (VEXTUHLX): Likewise.
2134 (VEXTUHRX): Likewise.
2135 (VEXTUWLX): Likewise.
2136 (VEXTUWRX): Likewise.
2137 (STXVL): New BU_P9V_64BIT_AV_X.
2138 (VCLZLSBB): New BU_P9V_AV_1.
2139 (VCTZLSBB): Likewise.
2140 (CMPNEB): New BU_P9V_AV_2.
2145 (VCMPNEB_P): New BU_P9V_AV_P.
2146 (VCMPNEH_P): Likewise.
2147 (VCMPNEW_P): Likewise.
2148 (VCMPNED_P): Likewise.
2149 (VCMPNEFP_P): Likewise.
2150 (VCMPNEDP_P): Likewise.
2151 (CMPNEZB): New BU_P9V_AV_2.
2152 (CMPNEZH): Likewise.
2153 (CMPNEZW): Likewise.
2154 (VCMPNEZB_P): New BU_P9V_AV_P.
2155 (VCMPNEZH_P): Likewise.
2156 (VCMPNEZW_P): Likewise.
2157 (LXVL): New BU_P9V_OVERLOAD_2.
2158 (STXVL): New BU_P9V_OVERLOAD_3.
2159 (VEXTULX): New BU_P9V_OVERLOAD_2.
2160 (VEXTURX): Likewise.
2162 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
2163 (VCMPNE_P): Likewise.
2164 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
2165 (VCTZLSBB): Likewise.
2166 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
2167 comment to explain mode used for scratch register.
2168 (altivec_expand_stxvl_builtin): New function.
2169 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
2170 (altivec_init_builtins): Add initialized variable
2171 void_ftype_v16qi_pvoid_long and use this type to define the
2172 built-in function __builtin_altivec_stxvl.
2173 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
2174 (UNSPEC_STXVL): New value.
2175 (UNSPEC_VCLZLSBB): New value.
2176 (UNSPEC_VCTZLSBB): New value.
2177 (UNSPEC_VEXTUBLX): New value.
2178 (UNSPEC_VEXTUHLX): New value.
2179 (UNSPEC_VEXTUWLX): New value.
2180 (UNSPEC_VEXTUBRX): New value.
2181 (UNSPEC_VEXTUHRX): New value.
2182 (UNSPEC_VEXTUWRX): New value.
2183 (UNSPEC_VCMPNEB): New value.
2184 (UNSPEC_VCMPNEZB): New value.
2185 (UNSPEC_VCMPNEH): New value.
2186 (UNSPEC_VCMPNEZH): New value.
2187 (UNSPEC_VCMPNEW): New value.
2188 (UNSPEC_VCMPNEZW): New value.
2189 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2190 vector of integer modes.
2191 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2192 vector of float or double modes.
2193 (*vector_nez_<mode>_p): New insn for vector test all not equal or
2195 (lxvl): New expand for load VSX vector with length.
2196 (*lxvl): New insn for load VSX vector with length.
2197 (stxvl): New expand for store VSX vector with length.
2198 (*stxvl): New insn for store VSX vector with length.
2199 (vcmpneb): New insn for vector of byte compare not equal.
2200 (vcmpnezb): New insn for vector of byte compare not equal or zero.
2201 (vcmpneh): New insn for vector of half word compare not equal.
2202 (vcmpnezh): New insn for vector of half word compare not equal or
2204 (vcmpnew): New insn for vector of word compare not equal.
2205 (vcmpne<VSs>): New insn for vector of float or double compare not
2207 (vcmpnezw): New insn for vector of word compare not equal or zero.
2208 (vclzlsbb): New insn for vector count leading zero
2209 least-significant bits byte.
2210 (vctzlsbb): New insn for vector count trailing zero least
2211 signficant bits byte.
2212 (vextublx): New insn for vector extract unsigned byte left
2214 (vextubrx): New insn for vector extract unsigned byte right
2216 (vextuhlx): New insn for vector extract unsigned half word left
2218 (vextuhrx): New insn for vector extract unsigned half word right
2220 (vextuwlx): New insn for vector extract unsigned word left
2222 (vextuwrx): New insn for vector extract unsigned word right
2224 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
2225 clarify intent of this constant.
2226 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
2227 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
2228 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
2229 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
2230 and vec_xrx functions.
2232 2016-10-18 Andrew Pinski <apinski@cavium.com>
2235 * predict.c (is_exit_with_zero_arg): New function.
2236 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
2239 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
2242 * config/i386/i386.c (legitimize_tls_address)
2243 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
2244 convert dest to Pmode if different than Pmode.
2246 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2248 PR tree-optimization/77916
2249 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
2250 stopgap fix, as pointers with -1 increment are still broken.
2252 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
2254 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
2255 mapping class decoration from here...
2256 (rs6000_xcoff_encode_section): ...to here.
2258 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
2259 if shrink-wrapping and optimizing for speed.
2261 2016-10-18 Richard Biener <rguenther@suse.de>
2263 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2264 not visited but non-executable predecessors. Return taken edge.
2265 Simplify conditions and refactor propagation vs. folding step.
2267 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
2269 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
2270 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
2271 (rs6000_get_separate_components): Assert we do not have those
2272 strategies selected.
2274 2016-10-18 Richard Biener <rguenther@suse.de>
2276 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
2277 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
2279 (substitute_and_fold_dom_walker): Adjust constructor.
2280 (substitute_and_fold_dom_walker::before_dom_children): Remove
2281 do_dce flag and handling (always true).
2282 (substitute_and_fold): Likewise.
2283 * tree-vrp.c (vrp_finalize): Adjust.
2284 (execute_early_vrp): Remove final BB_VISITED clearing.
2285 * tree-ssa-ccp.c (ccp_finalize): Adjust.
2286 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2287 * ira.c (ira): Call clear_bb_flags.
2289 2016-10-18 Richard Biener <rguenther@suse.de>
2291 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
2292 get at the operand to look at with TREE_OPERAND for generic
2295 2016-10-18 David Malcolm <dmalcolm@redhat.com>
2297 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
2299 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
2300 (write_test_expr): Use rtx_reader_ptr for calls to
2302 (write_attr_value): Likewise.
2303 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
2304 call to print_md_ptr_loc.
2305 (write_one_condition): Likewise for calls to print_c_condition.
2306 * genconstants.c: Include "statistics.h" and "vec.h".
2307 (main): Update for conversion to member functions.
2308 * genemit.c (emit_c_code): Use rtx_reader_ptr for
2309 call to print_md_ptr_loc.
2310 * genenums.c: Include "statistics.h" and "vec.h".
2311 (main): Update for conversion of traverse_enum_types to a method.
2312 * genmddeps.c: Include "statistics.h" and "vec.h".
2313 * genoutput.c (process_template): Use rtx_reader_ptr for call to
2315 * genpreds.c (write_predicate_subfunction): Likewise.
2316 (write_predicate_expr): Likewise for calls to print_c_condition.
2317 * genrecog.c (print_test): Likewise.
2318 * gensupport.c (process_rtx): Likewise for calls to
2319 copy_md_ptr_loc and join_c_conditions.
2320 (alter_test_for_insn): Likewise for call to join_c_conditions.
2321 (process_substs_on_one_elem): Likewise.
2322 (gen_mnemonic_setattr): Update for move of string_obstack to a
2323 field of rtx_reader.
2324 (mnemonic_htab_callback): Likewise. Fix formatting.
2325 (gen_mnemonic_attr): Likewise.
2326 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
2327 to print_c_condition.
2328 * read-md.c: Include "statistics.h" and "vec.h".
2329 (string_obstack): Convert this global to field "m_string_obstack"
2330 of class rtx_reader.
2331 (ptr_locs): Likewise, as "m_ptr_locs".
2332 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
2333 (joined_conditions): Likewise, as "m_joined_conditions".
2334 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
2335 (md_constants): Likewise, as "m_md_constants".
2336 (enum_types): Likewise, as "m_enum_types".
2337 (set_md_ptr_loc): Convert to...
2338 (rtx_reader::set_md_ptr_loc): ...member function.
2339 (get_md_ptr_loc): Convert to...
2340 (rtx_reader::get_md_ptr_loc): ...member function.
2341 (copy_md_ptr_loc): Convert to...
2342 (rtx_reader::copy_md_ptr_loc): ...member function.
2343 (fprint_md_ptr_loc): Convert to...
2344 (rtx_reader::fprint_md_ptr_loc): ...member function.
2345 (print_md_ptr_loc): Convert to...
2346 (rtx_reader::print_md_ptr_loc): ...member function.
2347 (join_c_conditions): Convert to...
2348 (rtx_reader::join_c_conditions): ...member function.
2349 (fprint_c_condition): Convert to...
2350 (rtx_reader::fprint_c_condition): ...member function.
2351 (print_c_condition): Convert to...
2352 (rtx_reader::print_c_condition): ...member function.
2353 (read_name): Convert to...
2354 (rtx_reader::read_name): ...member function.
2355 (read_escape): Convert to...
2356 (rtx_reader::read_escape): ...member function.
2357 (read_quoted_string): Convert to...
2358 (rtx_reader::read_quoted_string): ...member function.
2359 (read_braced_string): Convert to...
2360 (rtx_reader::read_braced_string): ...member function.
2361 (read_string): Convert to...
2362 (rtx_reader::read_string): ...member function.
2363 (read_skip_construct): Convert to...
2364 (rtx_reader::read_skip_construct): ...member function.
2365 (handle_constants): Convert to...
2366 (rtx_reader::handle_constants): ...member function.
2367 (traverse_md_constants): Convert to...
2368 (rtx_reader::traverse_md_constants): ...member function.
2369 (handle_enum): Convert to...
2370 (rtx_reader::handle_enum): ...member function.
2371 (lookup_enum_type): Convert to...
2372 (rtx_reader::lookup_enum_type): ...member function.
2373 (traverse_enum_types): Convert to...
2374 (rtx_reader::traverse_enum_types): ...member function.
2375 (rtx_reader::rtx_reader): Move initializations
2376 of various former global data from rtx_reader::read_md_files to
2377 here, as fields, along with the call to unlock_std_streams.
2378 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
2380 (rtx_reader::read_md_files): Move initializations of various
2381 global data from here to the ctor.
2382 * read-md.h (read_name): Convert to...
2383 (rtx_reader::read_name): ...member function.
2384 (rtx_reader::read_escape): New method decl.
2385 (read_quoted_string): Convert to...
2386 (rtx_reader::read_quoted_string): ...member function.
2387 (rtx_reader::read_braced_string): New method decl.
2388 (read_string): Convert to...
2389 (rtx_reader::read_string): ...member function.
2390 (rtx_reader::read_skip_construct): New method decl.
2391 (rtx_reader::set_md_ptr_loc): New method decl.
2392 (rtx_reader::get_md_ptr_loc): New method decl.
2393 (copy_md_ptr_loc): Convert to...
2394 (rtx_reader::copy_md_ptr_loc): ...member function.
2395 (fprint_md_ptr_loc): Convert to...
2396 (rtx_reader::fprint_md_ptr_loc): ...member function.
2397 (print_md_ptr_loc): Convert to...
2398 (rtx_reader::print_md_ptr_loc): ...member function.
2399 (rtx_reader::lookup_enum_type): New method decl.
2400 (rtx_reader::traverse_enum_types): New method decl.
2401 (rtx_reader::handle_constants): New method decl.
2402 (traverse_md_constants): Convert to...
2403 (rtx_reader::traverse_md_constants): ...member function.
2404 (rtx_reader::handle_enum): New method decl.
2405 (rtx_reader::join_c_conditions): New method decl.
2406 (fprint_c_condition): Convert to...
2407 (rtx_reader::fprint_c_condition): ...member function.
2408 (print_c_condition): Convert to...
2409 (rtx_reader::print_c_condition): ...member function.
2410 (rtx_reader::apply_iterator_to_string): New method decl.
2411 (rtx_reader::copy_rtx_for_iterators): New method decl.
2412 (rtx_reader::read_conditions): New method decl.
2413 (rtx_reader::record_potential_iterator_use): New method decl.
2414 (rtx_reader::read_mapping): New method decl.
2415 (rtx_reader::read_rtx): New method decl.
2416 (rtx_reader::read_rtx_code): New method decl.
2417 (rtx_reader::read_rtx_operand): New method decl.
2418 (rtx_reader::read_nested_rtx): New method decl.
2419 (rtx_reader::read_rtx_variadic): New method decl.
2420 (rtx_reader::get_string_obstack): New method.
2421 (rtx_reader::get_md_constants): New method.
2422 (string_obstack): Convert global variable decl to...
2423 (rtx_reader::m_string_obstack): ...this new field.
2424 (rtx_reader::m_ptr_locs): New field.
2425 (rtx_reader::m_ptr_loc_obstack): New field.
2426 (rtx_reader::m_joined_conditions): New field.
2427 (rtx_reader::m_joined_conditions_obstack): New field.
2428 (rtx_reader::m_md_constants): New field.
2429 (rtx_reader::m_enum_types): New field.
2430 * read-rtl.c (apply_iterator_to_string): Convert to...
2431 (rtx_reader::apply_iterator_to_string): ...member function.
2432 (copy_rtx_for_iterators): Convert to...
2433 (rtx_reader::copy_rtx_for_iterators): ...member function.
2434 (add_condition_to_string): Use rtx_reader_ptr for
2435 calls join_c_conditions.
2436 (apply_iterators): Use rtx_reader_ptr for calls to
2437 join_c_conditions and copy_rtx_for_iterators.
2438 (read_conditions): Convert to...
2439 (rtx_reader::read_conditions): ...member function.
2440 (record_potential_iterator_use): Convert to...
2441 (rtx_reader::record_potential_iterator_use): ...member function.
2442 (read_mapping): Convert to...
2443 (rtx_reader::read_mapping): ...member function.
2444 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
2445 (read_rtx): Convert to...
2446 (rtx_reader::read_rtx): ...member function.
2447 (read_rtx_code): Convert to...
2448 (rtx_reader::read_rtx_code): ...member function.
2449 (read_rtx_operand): Convert to...
2450 (rtx_reader::read_rtx_operand): ...member function. Update for move
2451 of string_obstack to a field.
2452 (read_nested_rtx): Convert to..
2453 (rtx_reader::read_nested_rtx): ...member function.
2454 (read_rtx_variadic): Convert to..
2455 (rtx_reader::read_rtx_variadic): ...member function.
2457 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2459 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
2461 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2463 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
2464 for pointer type too.
2465 (ipcp_update_vr): set_ptr_nonnull for pointer.
2467 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2469 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
2470 pt_solution_singleton_p.
2471 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
2472 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
2473 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
2474 pointer nonnull computed by VRP.
2475 Also Conservatively set pt.null to 1.
2476 (pt_solution_reset): Conservatively set pt.null to 1.
2477 (pt_solution_singleton_or_null_p): Renamed from
2478 pt_solution_singleton_p.
2479 * tree-ssanames.h (set_ptr_nonnull): Declare.
2480 (get_ptr_nonnull): Likewise.
2481 * tree-ssanames.c (set_ptr_nonnull): New.
2482 (get_ptr_nonnull): Likewise.
2483 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
2484 (evrp_dom_walker::before_dom_children): Likewise.
2486 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2488 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2489 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2490 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2491 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2492 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
2493 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2494 (rs6000_option_override_internal): Clear it if ABI_AIX.
2495 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2496 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
2498 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2500 * gimple-ssa-strength-reduction.c (record_increment): Remove
2503 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2505 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
2506 that the result is non-zero if it is true.
2507 (maybe_expand_shift): New wrapper around expand_shift_1.
2508 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
2510 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2512 PR tree-optimization/77916
2513 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
2514 Don't allow a MINUS_EXPR for pointer arithmetic for either known
2516 (record_increment): Increments of -1 for unknown strides just use
2517 a multiply initializer like other negative values.
2518 (analyze_increments): Remove stopgap solution for -1 increment
2519 applied to pointer arithmetic.
2521 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2523 * dominance.c (dom_info::dom_info): Add new constructor for region
2524 which is vector of basic blocks.
2525 (dom_init): New method to initialize members common for both
2527 (dom_info::dom_info): Invoke dom_init for partial initialization.
2528 (dom_info::get_idom): Add check to corner cases on basic blocks which
2530 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
2531 to detect unreachable bbs.
2532 (dom_info::calc_idoms): Likewise.
2533 (compute_dom_fast_query_in_region): New function.
2534 (calculate_dominance_info_for_region): Likewise.
2535 (free_dominance_info_for_region): Likewise.
2536 * dominance.h: Add prototypes for introduced region-based functions
2537 tree-if-conv.c: (build_region): New function.
2538 (if_convertible_loop_p_1): Invoke local version of post-dominators
2539 calculation before basic block predication with subsequent freeing
2540 post-dominator info.
2541 (tree_if_conversion): Remove free of post-dominator info
2542 (pass_if_conversion::execute): Delete detection of infinite loops
2543 and fake edges to exit block since post-dominator calculation is
2544 performed per if-converted loop only.
2546 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2549 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
2550 register explicitly.
2551 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
2552 optimizing for size.
2554 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2556 * config/aarch64/aarch64.c: Delete inclusion of
2557 cortex-a57-fma-steering.h.
2558 (aarch64_override_options): Delete call
2559 to aarch64_register_fma_steering.
2560 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
2561 * config/aarch64/cortex-a57-fma-steering.h: Delete.
2562 * config/aarch64/aarch64-passes.def: New file.
2563 * config/aarch64/cortex-a57-fma-steering.c
2564 (aarch64_register_fma_steering): Delete definition.
2565 (make_pass_fma_steering): Remove static qualifier.
2566 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
2567 (cortex-a57-fma-steering.o): Remove dependency on
2568 cortex-a57-fma-steering.h.
2570 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2572 * explow.c (validize_mem): Do not modify the argument in-place.
2574 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
2576 * tree-streamer.c (record_common_node): Explicitly list expected
2579 2016-10-17 Richard Biener <rguenther@suse.de>
2581 PR tree-optimization/77988
2582 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
2584 2016-10-17 Marek Polacek <polacek@redhat.com>
2586 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
2588 2016-10-17 Richard Biener <rguenther@suse.de>
2590 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
2593 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2595 PR tree-optimization/71636
2596 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
2598 2016-10-17 Richard Biener <rguenther@suse.de>
2600 * gimplify.c (gimplify_function_tree): Do not move the outer
2603 2016-10-17 Jakub Jelinek <jakub@redhat.com>
2605 * langhooks.h (struct lang_hooks_for_decls): Remove
2606 function_decl_explicit_p, function_decl_deleted_p and
2607 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
2608 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
2609 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2610 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
2611 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
2612 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
2613 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2614 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
2615 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
2616 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
2617 * langhooks.c (lhd_decl_dwarf_attribute): New function.
2618 * dwarf2out.c (gen_subprogram_die): Use
2619 lang_hooks.decls.decl_dwarf_attribute instead of
2620 lang_hooks.decls.function_decl_*.
2622 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2626 * common.opt (-ftrampolines): New option.
2627 * doc/invoke.texi (Code Gen Options): Document it.
2628 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2629 * doc/tm.texi: Regenerate.
2630 * builtins.def: Add init_descriptor and adjust_descriptor.
2631 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
2632 on platforms with descriptors.
2633 (expand_builtin_init_descriptor): New function.
2634 (expand_builtin_adjust_descriptor): Likewise.
2635 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
2636 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
2637 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
2638 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
2639 Set STATIC_CHAIN_REG_P on the static chain register, if any.
2640 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
2641 (expand_call): Likewise. Move around call to prepare_call_address
2642 and pass all flags to it.
2643 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
2644 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
2645 (gimple_call_set_by_descriptor): New setter.
2646 (gimple_call_by_descriptor_p): New getter.
2647 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
2648 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
2649 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
2650 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2651 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
2652 * rtl.h (STATIC_CHAIN_REG_P): New macro.
2653 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
2654 * target.def (custom_function_descriptors): New POD hook.
2655 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
2656 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
2657 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
2658 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
2659 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
2660 (build_common_builtin_nodes): Initialize init_descriptor and
2662 * tree-nested.c: Include target.h.
2663 (struct nesting_info): Add 'any_descr_created' field.
2664 (get_descriptor_type): New function.
2665 (lookup_element_for_decl): New function extracted from...
2666 (create_field_for_decl): Likewise.
2667 (lookup_tramp_for_decl): ...here. Adjust.
2668 (lookup_descr_for_decl): New function.
2669 (convert_tramp_reference_op): Deal with descriptors.
2670 (build_init_call_stmt): New function extracted from...
2671 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
2672 * defaults.h (FUNCTION_ALIGNMENT): Define.
2673 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
2674 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2675 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2676 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
2677 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2679 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2681 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
2682 constants in CONST_VECTORs.
2684 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2686 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
2687 register as destination of bmask.
2688 (vector_init_bshuffle): Likewise.
2689 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2690 (bmaskdi_vis): Enable only in 64-bit mode.
2692 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
2694 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
2695 make LR a separately shrink-wrapped component unless savres_strategy
2696 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
2697 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
2698 wrapping when not both {SAVE,REST}_INLINE_GPRS.
2700 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2702 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
2703 and keep looping on failure.
2705 2016-10-14 David Malcolm <dmalcolm@redhat.com>
2707 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
2709 (print_rtx_function): Update example in comment for...
2710 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
2711 non-virtual pseudos with a '%' sigil followed by the regno, offset
2712 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
2713 pseudo is dumped as "%0".
2715 2016-10-14 Jakub Jelinek <jakub@redhat.com>
2718 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
2721 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
2723 * config/sparc/sparc-passes.def: New file.
2724 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
2725 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
2726 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
2728 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2730 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
2731 loop peel to loops with exit test at the beginning.
2733 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2735 PR rtl-optimization/68212
2736 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
2737 frequency when computing scale factor for peeled copies.
2738 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
2739 values for switch/peel blocks/edges.
2741 2016-10-14 Pedro Alves <palves@redhat.com>
2743 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
2745 2016-10-14 Catherine Moore <clm@codesourcery.com>
2747 * config/mips/mips.c (mips_prepare_pch_save): Initialize
2748 micromips_globals to zero.
2750 2016-10-14 Richard Biener <rguenther@suse.de>
2752 PR tree-optimization/77979
2753 * tree-vrp.c (compare_name_with_value): Handle released SSA names
2754 in the equivalency sets.
2755 (compare_names): Likewise.
2757 2016-10-14 Martin Liska <mliska@suse.cz>
2759 * builtins.h(target_char_cst_p): Declare the function.
2760 * builtins.c (fold_builtin_memchr): Remove.
2761 (target_char_cst_p): Move the function from gimple-fold.c.
2762 (fold_builtin_3): Do not call the function.
2763 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
2764 (gimple_fold_builtin): Call the function.
2765 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
2767 2016-10-14 Martin Liska <mliska@suse.cz>
2769 * builtins.c (fold_builtin_strcmp): Remove function.
2770 (fold_builtin_strncmp): Likewise.
2771 (fold_builtin_2): Remove call of the function.
2772 (fold_builtin_3): Likewise.
2773 * fold-const-call.c (fold_const_call): Add constant folding
2774 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
2775 * fold-const-call.h (build_cmp_result): Declare the function.
2776 * gimple-fold.c (gimple_load_first_char): New function.
2777 (gimple_fold_builtin_string_compare): Likewise.
2778 (gimple_fold_builtin): Call the function.
2780 2016-10-14 Nathan Sidwell <nathan@acm.org>
2782 * gcov-io.c (gcov_open): Deconstify 'mode'.
2784 2016-10-14 Martin Liska <mliska@suse.cz>
2786 * fold-const.c (c_getstr): Support of properly \0-terminated
2787 string constants. New argument is added.
2788 * fold-const.h: New argument is added.
2790 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2792 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
2794 (aarch64_print_hint_for_core): Likewise.
2795 (aarch64_print_hint_for_arch): Likewise.
2796 (aarch64_validate_march): Use it. Fix indentation in type signature.
2797 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
2798 (aarch64_validate_mtune): Likewise.
2799 (aarch64_handle_attr_arch): Likewise.
2800 (aarch64_handle_attr_cpu): Likewise.
2801 (aarch64_handle_attr_tune): Likewise.
2803 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2805 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
2808 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
2810 * config/m68k/m68k.c (m68k_option_override): Check
2811 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
2812 instead of stack_limit_rtx.
2814 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2816 * dwarf2out.c (gen_member_die): Handle inline static data member
2819 2016-10-13 Nathan Sidwell <nathan@acm.org>
2821 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
2822 gcov_var.mode. Remove unnecessary fstat.
2824 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
2827 * function.c (thread_prologue_and_epilogue_insns): Call all
2828 make_*logue_seq in the same order as traditional. Call them
2829 all a second time if shrink_wrapped_separate.
2831 2016-10-13 Marek Polacek <polacek@redhat.com>
2833 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2834 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
2837 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2839 PR tree-optimization/77937
2840 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
2841 to infinite when we have a pointer with an increment of -1.
2843 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2845 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
2847 * memmodel.h: This file.
2848 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
2849 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
2850 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
2851 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
2852 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
2853 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
2854 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
2855 compare-elim.c, config/aarch64/aarch64-builtins.c,
2856 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
2857 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
2858 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
2859 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
2860 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
2861 config/darwin.c, config/epiphany/epiphany.c,
2862 config/epiphany/mode-switch-use.c,
2863 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
2864 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2865 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
2866 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2867 config/m68k/m68k.c, config/mcore/mcore.c,
2868 config/microblaze/microblaze.c, config/mmix/mmix.c,
2869 config/mn10300/mn10300.c, config/moxie/moxie.c,
2870 config/msp430/msp430.c, config/nds32/nds32-cost.c,
2871 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2872 config/nds32/nds32-memory-manipulation.c,
2873 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
2874 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
2875 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
2876 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
2877 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
2878 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
2879 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2880 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2881 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
2882 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
2883 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
2884 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
2885 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
2886 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
2887 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
2888 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
2889 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
2890 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
2891 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
2892 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2893 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
2894 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
2895 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
2896 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
2897 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
2898 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
2899 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
2900 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
2901 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
2902 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
2903 var-tracking.c, varasm.c: Include memmodel.h.
2904 * genattrtab.c (write_header): Include memmodel.h in generated file.
2905 * genautomata.c (main): Likewise.
2906 * gengtype.c (open_base_files): Likewise.
2907 * genopinit.c (main): Likewise.
2908 * genconditions.c (write_header): Include memmodel.h earlier in
2910 * genemit.c (main): Likewise.
2911 * genoutput.c (output_prologue): Likewise.
2912 * genpeep.c (main): Likewise.
2913 * genpreds.c (write_insn_preds_c): Likewise.
2914 * genrecog.c (write_header): Likewise.
2915 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
2917 2016-10-13 David Malcolm <dmalcolm@redhat.com>
2919 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
2920 for new "compact" param of print_rtx_function. Check for "cinsn"
2922 * print-rtl-function.c (flag_compact): New decl.
2923 (print_rtx_function): Add param "compact" and use it to set
2924 flag_compact, adding a description of the effect to the leading
2925 comment, and updating the example output.
2926 * print-rtl.c (flag_compact): New variable.
2927 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
2929 (print_rtx_operand_code_i): When printing source locations, wrap
2930 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
2931 (print_rtx_operand_code_r): Don't print regnos for hard regs and
2932 virtuals in compact mode.
2933 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
2934 apart from in LABEL_REFs.
2935 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
2936 Don't print basic block ids in compact mode.
2937 (print_rtx): In compact mode, prefix the code of insns with "c",
2938 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
2939 * print-rtl.h (print_rtx_function): Add "compact" param.
2941 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
2943 * arm.h (TARGET_VFP): Delete.
2944 (TARGET_VFPD32): Remove references to TARGET_VFP.
2945 (TARGET_VFP3, TARGET_VFP5): Likewise.
2946 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
2947 (TARGET_NEON_FP16): Likewise.
2948 (TARGET_FMA): Likewise.
2949 (TARGET_CRYPTO): Likewise.
2950 (TARGET_NEON): Likewise.
2951 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2952 (FUNCTION_ARG_REGNO_P): Likewise.
2953 * arm.c (arm_option_check_internal): Likewise.
2954 (arm_option_override): Likewise.
2955 (use_return_insn): Likewise.
2956 (arm_function_value_regno_p): Likewise.
2957 (arm_apply_result_size): Likewise.
2958 (use_vfp_abi): Likewise.
2959 (arm_legitimate_address_outer_p): Likewise.
2960 (thumb2_legitimate_address_p): Likewise.
2961 (arm_legitimate_index_p): Likewise.
2962 (thumb2_legitimate_index_p): Likewise.
2963 (arm_legitimate_address): Likewise.
2964 (arm_get_vfp_saved_size): Likewise.
2965 (arm_emit_vfp_multi_reg_pop): Likewise.
2966 (arm_get_frame_offsets): Likewise.
2967 (arm_save_coproc_regs): Likewise.
2968 (arm_hard_regno_mode_ok): Likewise.
2969 (arm_expand_epilogue_apcs_frame): Likewise.
2970 (arm_expand_epilogue): Likewise.
2971 (arm_file_start): Likewise.
2972 (arm_conditional_register_usage): Likewise.
2973 (arm_validize_comparison): Use vfp_compare_operand directly.
2974 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
2975 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
2977 (arm_atomic_assign_expand_fenv): Likewise.
2978 * arm.md (divsf3): Likewise.
2979 (arm_negsi2): Likewise.
2981 (arm_movdi): Likewise.
2982 (arm_movt): Likewise.
2983 (cbranchsf4): Change predicate to vfp_compare_operand.
2984 (cbranchdf4): Change predicate to vfp_compare_operand.
2985 (cstorehf4): Change predicate to vfp_compare_operand.
2986 (cstoresf4): Change predicate to vfp_compare_operand.
2987 (cstoredf4): Change predicate to vfp_compare_operand.
2988 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
2989 (movhi_insn_arch4, movhi_bytes): Likewise.
2990 * constraints.md (Dt): Likewise.
2992 * iterators.md (SDF): Likewise.
2993 * predicates.md (arm_float_compare_operand): Delete.
2994 (const_double_vcvt_power_of_two_reciprocal): Remove references to
2996 (const_double_vcvt_power_of_two): Likewise.
2997 * thumb2.md thumb2_movsi_insn): Likewise.
2998 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
2999 (movhf_vfp): Likewise.
3000 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
3001 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
3002 (movsf_vfp, thumb2_movsf_vfp): Likewise.
3003 (movdf_vfp, thumb2_movdf_vfp): Likewise.
3004 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
3005 (subsf3_vfp, divsf3_vfp): Likewise.
3006 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
3007 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
3008 (mulsf3negsfsubsf_vfp): Likewise.
3009 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
3010 (floatunssisf2, sqrtsf2_vfp): Likewise.
3011 (movcc_vfp): Likewise.
3012 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
3013 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
3014 (push_multi_vfp): Likewise.
3015 (set_fpscr, get_fpscr): Likewise.
3016 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
3018 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
3020 * arm.h (TARGET_VFP): Unconditionally define to 1.
3021 (arm_fpu_desc): Remove 'model' field.
3022 (TARGET_FPU_MODEL): Delete.
3023 * arm.c (all_fpus): Don't initialize the model field.
3024 (arm_can_inline_p): Don't check the FPU model.
3025 * arm-fpus.def: Remove redundant model field from all FPU
3028 2016-10-13 Richard Biener <rguenther@suse.de>
3031 * genmatch.c (struct capture): Add value_match member.
3032 (commutate): Preserve value_match.
3033 (lower_opt_convert): Likewise.
3034 (lower_cond): Likewise.
3035 (replace_id): Likewise.
3036 (struct dt_operand): Add value_match member.
3037 (decision_tree::cmp_node): Compare it.
3038 (decision_tree::insert_operand): Honor it when finding and
3039 when appending a DT_MATCH.
3040 (dt_operand::gen_match_op): Generate a type check after
3041 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
3042 (parser::get_internal_capture_id): New helper.
3043 (parser::finish_match_operand): New function lowering @@<id>.
3044 (parser::parse_capture): Parse @@<id> as value-match.
3045 (parser::parse_expr): Use get_internal_capture_id.
3046 (parser::parse_simplify): Call finish_match_operand.
3047 (walk_captures): New helper.
3048 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
3050 ((X /[ex] A) * A -> X): Likewise.
3051 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
3052 convert[12] and value-matching.
3053 ((A | B) & (A | C) -> A | (B & C)): Likewise.
3054 ((X | Y) | Y -> X | Y): Likewise.
3055 ((X ^ Y) ^ Y -> X): Likewise.
3056 (A - (A & B) -> ~B & A): Likewise.
3057 ((T)(P + A) - (T)P -> (T) A): Likewise.
3058 ((T)P - (T)(P + A) -> -(T) A): Likewise.
3059 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
3060 * doc/match-and-simplify.texi: Amend capture section.
3062 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
3064 * config/arc/arc.md (umul_600): Remove predicated variant.
3065 (umul64_600): Likewise.
3067 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
3069 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
3071 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3073 * tree-vect-loop.c (loop_niters_no_overflow): New func.
3074 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
3075 no-overflow information to vect_do_peeling_for_loop_bound and
3076 vect_gen_vector_loop_niters.
3078 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3080 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
3083 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3085 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
3086 adjust_vec automatically.
3087 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
3088 param exit_bb to guard_to.
3089 (slpeel_checking_verify_cfg_after_peeling):
3090 (set_prologue_iterations):
3091 (create_lcssa_for_virtual_phi): New func which is factored out from
3092 slpeel_tree_peel_loop_to_edge.
3093 (slpeel_tree_peel_loop_to_edge):
3094 (iv_phi_p): New func.
3095 (vect_can_advance_ivs_p): Call iv_phi_p.
3096 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
3097 new gimple stmts in basic block.
3098 (vect_gen_niters_for_prolog_loop): Rename to...
3099 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
3100 adjust implementation.
3101 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
3102 sizetype if necessary.
3103 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
3104 it to external function.
3105 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
3106 (vect_gen_vector_loop_niters_mult_vf): New.
3107 (slpeel_update_phi_nodes_for_loops): New.
3108 (slpeel_update_phi_nodes_for_guard1): Reimplement.
3109 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
3110 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
3111 * tree-vect-loop.c (vect_build_loop_niters): Move to file
3112 tree-vect-loop-manip.c
3113 (vect_generate_tmps_on_preheader): Delete.
3114 (vect_transform_loop): Rename vectorization_factor to vf. Call
3115 vect_do_peeling instead of vect_do_peeling-* functions.
3116 * tree-vectorizer.h (vect_do_peeling): New decl.
3117 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
3118 (vect_do_peeling_for_loop_bound): Delete.
3119 (vect_do_peeling_for_alignment): Delete.
3121 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3123 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
3124 duplicated loop after its preheader and after the original loop.
3126 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3128 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
3129 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
3131 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3133 * tree-vect-loop.c (vectorizable_live_operation): Support handling
3134 for live variable outside loop but not in lcssa form.
3136 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3138 * cfg.c (reset_original_copy_tables): New func.
3139 * cfg.h (reset_original_copy_tables): New decl.
3141 2016-10-13 Jakub Jelinek <jakub@redhat.com>
3144 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
3146 * varasm.c (default_binds_local_p_3): Formatting fix.
3148 2016-10-13 Bin Cheng <bin.cheng@arm.com>
3150 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
3152 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3153 Remove useless code.
3155 2016-10-13 Martin Liska <mliska@suse.cz>
3157 PR tree-optimization/77943
3158 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
3159 a different EH landing pads.
3161 2016-10-13 Jakub Jelinek <jakub@redhat.com>
3164 * hooks.h (hook_tree_void_null): Declare.
3165 * hooks.c (hook_tree_void_null): New function.
3166 * langhooks.c (lhd_return_null_tree_v): Remove.
3167 * langhooks-def.h (lhd_return_null_tree_v): Remove.
3168 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
3169 set y to const0_rtx.
3170 * function.c (stack_protect_epilogue): Likewise.
3171 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
3172 if TARGET_THREAD_SSP_OFFSET is defined.
3173 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3174 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3175 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3176 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3177 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3178 (ix86_stack_protect_guard): New function.
3180 2016-10-13 Richard Biener <rguenther@suse.de>
3182 * dwarf2out.c (tree_add_const_value_attribute): Do not try
3183 rtl_for_decl_init during early phase.
3184 (gen_variable_die): Do not create locations during early phase.
3185 (gen_label_die): Likewise.
3186 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
3189 2016-10-12 Richard Biener <rguenther@suse.de>
3191 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
3192 try_add_new_range and made to eturn new range.
3193 (evrp_dom_walker::before_dom_children): Push op1 value range before
3194 pushing op0 value range.
3196 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3198 PR tree-optimization/77937
3199 * gimple-ssa-strength-reduction.c (analyze_increments): Use
3200 POINTER_TYPE_P on the candidate type to determine whether
3201 candidates in this chain require pointer arithmetic.
3203 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
3205 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
3206 correction if the type is smaller than a word.
3207 (visium_select_cc_mode): Add ... fall through ... comment.
3209 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3211 * config/rs6000/rs6000.c (machine_function): Add new fields
3212 gpr_is_wrapped_separately and lr_is_wrapped_separately.
3213 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
3214 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
3215 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
3216 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
3217 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
3218 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
3219 (rs6000_get_separate_components): New function.
3220 (rs6000_components_for_bb): New function.
3221 (rs6000_disqualify_components): New function.
3222 (rs6000_emit_prologue_components): New function.
3223 (rs6000_emit_epilogue_components): New function.
3224 (rs6000_set_handled_components): New function.
3225 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
3226 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
3227 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
3228 (rs6000_emit_epilogue): Don't emit GPR restores if
3229 gpr_is_wrapped_separately for that register. Don't make a
3230 REG_CFA_RESTORE note for registers we did not restore, either.
3232 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3234 * function.c (thread_prologue_and_epilogue_insns): Call
3235 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
3236 if it has possibly changed. Compute the split_prologue_seq and
3237 epilogue_seq later, too.
3238 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
3239 (dump_components): New function.
3240 (struct sw): New struct.
3242 (init_separate_shrink_wrap): New function.
3243 (fini_separate_shrink_wrap): New function.
3244 (place_prologue_for_one_component): New function.
3245 (spread_components): New function.
3246 (disqualify_problematic_components): New function.
3247 (emit_common_heads_for_components): New function.
3248 (emit_common_tails_for_components): New function.
3249 (insert_prologue_epilogue_for_components): New function.
3250 (try_shrink_wrapping_separate): New function.
3251 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
3253 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3255 * regrename.c (build_def_use): Invalidate chains that have a
3256 REG_CFA_RESTORE on some instruction.
3258 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3260 * dce.c (delete_unmarked_insns): Don't delete instructions with
3261 a REG_CFA_RESTORE note.
3263 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3265 * common.opt (-fshrink-wrap-separate): New flag.
3266 * doc/invoke.texi: Document it.
3267 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
3268 * doc/tm.texi: Regenerate.
3269 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
3270 * target.def (shrink_wrap): New hook vector.
3271 (get_separate_components, components_for_bb, disqualify_components,
3272 emit_prologue_components, emit_epilogue_components,
3273 set_handled_components): New hooks.
3275 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3277 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
3278 vector return by reference only if -Wpsabi.
3279 (rs6000_pass_by_reference): Similarly, for argument passing.
3281 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3283 * function-tests.c: Include "print-rtl.h".
3284 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
3285 function, and verify what is dumped.
3286 * print-rtl-function.c (print_edge): New function.
3287 (begin_any_block): New function.
3288 (end_any_block): New function.
3289 (can_have_basic_block_p): New function.
3290 (print_rtx_function): Track the basic blocks of insns in the
3291 chain, wrapping those that are within blocks within "(block)"
3292 directives. Remove the "(cfg)" directive.
3294 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3296 * selftest.c (selftest::read_file): New function.
3297 (selftest::test_read_file): New function.
3298 (selftest::selftest_c_tests): Call test_read_file.
3299 * selftest.h (selftest::read_file): New decl.
3301 2016-10-12 Richard Biener <rguenther@suse.de>
3304 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
3307 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
3309 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
3311 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
3312 dwarf2out_assembly_start.
3314 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
3316 * Makefile.in (SELFTEST_FLAGS): New variable.
3317 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
3319 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
3322 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
3324 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
3325 dumped in RTL dumps.
3327 2016-10-12 Martin Liska <mliska@suse.cz>
3329 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
3330 (gimple_fold_builtin_memory_op): Use the function.
3331 (gimple_fold_builtin_strchr): Likewise.
3332 (gimple_fold_builtin_strcat): Likewise.
3333 (gimple_build): Likewise.
3335 2016-10-12 Nathan Sidwell <nathan@acm.org>
3337 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
3339 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3341 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
3342 equivalent 32-bit constant (modulo 2**32) when that yields
3343 smaller instructions.
3344 (size_of_int_loc_descriptor): Update accordingly.
3346 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3348 * dwarf2out.c (dwarf2out_early_global_decl): For nested
3349 functions, call dwarf2out_decl on the parent function first.
3351 2016-10-12 Richard Biener <rguenther@suse.de>
3353 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
3356 2016-10-12 Richard Biener <rguenther@suse.de>
3358 * tree-ssa-propagate.c
3359 (substitute_and_fold_dom_walker::before_dom_children): Do not
3360 ignore ASSERT_EXPRs but only preserve them.
3361 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
3362 that have been propagated into.
3363 (vrp_finalize): Enable DCE for substitute_and_fold.
3365 2016-10-12 Richard Biener <rguenther@suse.de>
3367 PR tree-optimization/77920
3368 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
3369 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
3370 (simplify_abs_using_ranges): Likewise.
3371 (simplify_conversion_using_ranges): Likewise.
3372 (simplify_stmt_using_ranges): Adjust.
3374 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3376 PR tree-optimization/77929
3377 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
3378 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
3380 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3383 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
3384 needs a base register for arg 1.
3386 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3388 * common.opt (Wimplicit-fallthrough) Turn into alias to
3389 -Wimplicit-fallthrough=3. Remove EnabledBy.
3390 (Wimplicit-fallthrough=): New option.
3391 * gimplify.c (warn_implicit_fallthrough_r): Use
3392 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
3393 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
3394 to -Wimplicit-fallthrough=3.
3395 (-Wimplicit-fallthrough=): Document.
3397 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3399 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
3400 and GEU in DImode if TARGET_SUBXC.
3401 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
3402 (seqdi<W:mode>_zero_subxc): Delete.
3403 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
3404 (neg_seqdi<W:mode>_zero_vis3): Delete.
3405 (plus_seqdi<W:mode>_zero): Likewise.
3406 (minus_seqdi<W:mode>_zero): Likewise.
3407 (plus_plus_sltu<W:mode>): Accept only register.
3408 (addx<W:mode>): Likewise.
3409 (plus_sltu<W:mode>_vis3): Likewise.
3410 (plus_plus_sltu<W:mode>_vis3): Likewise.
3411 (neg_sgeu<W:mode>_vis3): Delete.
3412 (minus_sgeu<W:mode>_vis3): Likewise.
3413 (addxc<W:mode>): Accept only registers.
3414 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3415 (minus_neg_sltu<W:mode>_subxc): Accept only register.
3416 (neg_plus_sltu<W:mode>_subxc): Likewise.
3417 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3418 (minus_minus_sltu<W:mode>_subxc): Accept only register.
3419 (sgeu<W:mode>_insn_subxc): Delete.
3420 (plus_sgeu<W:mode>_subxc): Likewise.
3421 (subxc<W:mode>): Accept only register.
3422 (scc splitter): Split always GEU again.
3424 2016-10-11 Jeff Law <law@redhat.com>
3426 PR tree-optimization/77424
3427 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
3428 dead conditionals. Assert that all e->aux fields are NULL.
3430 2016-10-11 David Malcolm <dmalcolm@redhat.com>
3432 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
3433 operand-printing "switch" statement into...
3434 (print_rtx_operand_code_0): ...this new function, ...
3435 (print_rtx_operand_code_e): ...this new function, ...
3436 (print_rtx_operand_codes_E_and_V): ...this new function, ...
3437 (print_rtx_operand_code_i): ...this new function, ...
3438 (print_rtx_operand_code_r): ...this new function, ...
3439 (print_rtx_operand_code_u): ...this new function, ...
3440 (print_rtx_operand): ...and this new function.
3442 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
3444 * config/alpha/alpha-passes.def: New file.
3445 * config/alpha/t-alpha: New file.
3446 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
3447 (make_pass_handle_trap_shadows): New prototype.
3448 (make_pass_align_insns): Ditto.
3449 * config/alpha/alpha.c (alpha_option_override): Don't register
3451 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
3453 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3456 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
3457 distinct __ibm128 IBM extended double type if long doubles are
3458 128-bits and the default format for long double is IEEE 128-bit.
3460 2016-10-11 Richard Biener <rguenther@suse.de>
3462 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
3463 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
3464 (verify_die): New function.
3465 (dwarf2out_finish): Call it.
3466 (output_line_info): Handle case of -gsplit-dwarf without
3467 DWARF2_ASM_LINE_DEBUG_INFO.
3469 2016-10-11 Richard Biener <rguenther@suse.de>
3472 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
3473 sub-chains of BLOCK_VARS and gimple_bind_vars.
3475 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3477 * config/i386/znver1.md : Fix imov/imovx load type reservations.
3479 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3481 * config/sparc/sparc.opt (msubxc): New option.
3482 * doc/invoke.texi (SPARC options): Document it and tidy up.
3483 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
3484 * doc/tm.texi: Regenerate.
3485 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
3487 (CCX_NOOV): Rename into...
3491 * config/sparc/predicates.m (fcc_register_operand): Simplify.
3492 (fcc0_register_operand): Likewise.
3493 (icc_register_operand): New.
3494 (icc_or_fcc_register_operand): Simplify.
3495 (nz_comparison_operator): New.
3496 (c_comparison_operator): Likewise.
3497 (noov_compare_operator): Rename into...
3498 (icc_comparison_operator): ...this. Use above predicates.
3499 (noov_compare64_operator): Rename into...
3500 (v9_comparison_operator): ...this and tidy up.
3501 (fcc_comparison_operator): New.
3502 (icc_or_fcc_comparison_operator): Likewise.
3503 (v9_register_compare_operator): Rename info...
3504 (v9_register_comparison_operator): ...this.
3505 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3506 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
3508 (sparc_fixed_condition_code_regs): New function.
3509 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
3510 renaming and add support for CCC/CCXC.
3511 (output_cbranch): Likewise.
3512 (sparc_print_operand): Likewise.
3513 (gen_v9_scc): Remove obsolete assertion.
3514 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
3515 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
3516 (output_cbcond): Remove bogus handling of CC modes.
3517 (sparc_register_move_cost): Return 100 for NO_REGS.
3518 * config/sparc/sparc.md (W): New mode iterator.
3519 (length): Adjust for noov_compare64_operator renaming.
3520 (cmpsi_sne): New instruction.
3521 (cmpdi_sne): Likewise.
3522 (seqdi_special): Delete.
3523 (seqdi_special): Likewise.
3524 (snesi<P:mode>_special): Likewise.
3525 (snedi_special): Likewise.
3526 (snedi_special_vis3): Likewise.
3527 (snesi patterns): Use W iterator.
3528 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
3529 (sltu patterns): Likewise.
3530 (sgeu patterns): Likewise.
3531 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
3532 (normal_branch): Use icc_comparison_operator predicate.
3533 (inverted_branch): Likewise.
3534 (cbcond_sp32): Use comparison_operator predicate.
3535 (cbcond_sp64): Likewise.
3536 (normal_int_branch_sp64): Adjust for renaming
3537 (inverted_int_branch_sp64): Likewise.
3538 (mov<I:mode>_cc_reg_sp64): Likewise.
3539 (movsf_cc_reg_sp6): Likewise.
3540 (movdf_cc_reg_sp64): Likewise.
3541 (movtf_cc_reg_hq_sp64): Likewise.
3542 (movtf_cc_reg_sp64): Likewise.
3543 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
3544 (movsf_cc_v9): Likewise.
3545 (movdf_cc_v9): Likewise.
3546 (movtf_cc_hq_v9): Likewise.
3547 (movtf_cc_v9): Likewise.
3548 (adddi3): Call gen_adddi3_sp32.
3549 (adddi3_insn_sp32): Rename to...
3550 (adddi3_sp32): ...this. Accept only register_operand as operand #1
3551 and use CCCmode for the carry.
3552 (addx_extend_sp32): Use CCCmode for the carry.
3553 (addx_extend_sp64): Delete.
3554 (adddi3_extend_sp32): Use CCCmode for the carry.
3555 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
3556 (subdi3): Call gen_subdi3_sp32.
3557 (subdi3_insn_sp32): Rename to...
3558 (subdi3_sp32): ...this and use CCmode for the carry.
3559 (subx_extend_sp32): Use CCCmode for the carry.
3560 (subx_extend_sp64): Delete.
3561 (subdi3_extend_sp32): Use CCmode for the carry.
3562 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
3563 (negdi3): Call gen_negdi3_sp32.
3564 (negdi3_sp32): Use CCCmode for the carry.
3565 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
3566 (cmp_nz_ashift_1): Use CCNZ mode.
3567 (cmp_nz_set_ashift_1): Likewise.
3568 (ctrapsi4): Use comparison_operator predicate.
3569 (ctrapdi4): Likewise.
3570 (trapsi_insn): Use icc_comparison_operator predicate.
3571 (trapdi_insn): Likewise.
3572 (edge8 patterns): Use CCNZmode.
3573 (edge16 patterns): Likewise.
3574 (edge32 patterns): Likewise.
3576 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3578 * config/visium/visium-modes.def (CC_NOOV): Rename into...
3580 (CC_BTST): Rename into...
3582 * config/visium/predicates.md (real_add_operand): New.
3583 (visium_btst_operator): Rename into...
3584 (visium_equality_comparison_operator): ...this.
3585 (visium_noov_operator): Rename into...
3586 (visium_nz_comparison_operator): ...this.
3587 (visium_c_comparison_operator): New.
3588 (visium_branch_operator): Adjust and deal with all CC modes.
3589 * config/visium/visium.c (visium_adjust_cost): Adjust.
3590 (visium_split_double_add): Use the *_set_carry patterns.
3591 (visium_select_cc_mode): Add support for CCC mode and adjust.
3592 (output_cbranch): Adjust and use the carry-based operators for
3593 floating-point comparisons.
3594 * config/visium/visium.md (flags_subst_arith): Adjust.
3595 (addsi3_insn_set_carry): New instruction.
3596 (subsi3_insn_set_carry): Likewise.
3597 (negsi2_insn_set_carry): Likewise.
3599 (cmp<mode>_sne): Likewise.
3600 (cbranch<mode>4): Use ordered_comparison_operator.
3601 (cbranch<mode>4_insn): Likewise.
3602 (cbranchsi4_btst_insn): Adjust.
3604 2016-10-11 Tom de Vries <tom@codesourcery.com>
3607 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3610 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3612 * tree.h (build_complex_type): Add second parameter with default.
3613 * tree.c (build_complex_type): Add NAMED second parameter and adjust
3614 recursive call. Create a TYPE_DECL only if NAMED is true.
3615 (build_common_tree_nodes): Pass true in calls to build_complex_type.
3617 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
3619 New avr-passes.def to register AVR specific passes.
3621 * config/avr/avr-passes.def: New file.
3622 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
3623 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
3624 (make_avr_pass_recompute_note): New proto.
3625 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
3626 (avr_pass_recompute_notes): Use anonymous namespace.
3627 (avr_register_passes): Remove function...
3628 (avr_option_override): ...and its call.
3630 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
3632 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
3633 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
3634 PTF_AVOID_BRANCHLIKELY_SPEED for others.
3635 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
3637 * config/mips/mips.c (mips_option_override): Enable the branch
3638 likely depending on the tune flags and optimization level.
3639 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
3640 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
3641 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
3642 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
3644 2016-10-11 Richard Biener <rguenther@suse.de>
3646 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
3647 (output_function): Properly stream the whole block tree.
3648 * lto-streamer-in.c (input_function): Likewise.
3650 2016-10-11 Marek Polacek <polacek@redhat.com>
3652 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
3654 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3656 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
3657 (evrp_dom_walker::before_dom_children): Infer and push new value
3658 ranges for x in y < x.
3660 2016-10-10 Joseph Myers <joseph@codesourcery.com>
3663 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
3664 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3665 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3666 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3667 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3668 (IA64_NO_LIBGCC_TFMODE): Likewise.
3670 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3672 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
3675 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
3677 * config.gcc: Add aarch64-*-freebsd* support.
3678 * config.host: Likewise.
3679 * config/aarch64/aarch64-freebsd.h: New file.
3680 * config/aarch64/t-aarch64-freebsd: Ditto.
3682 2016-10-10 Jeff Law <law@redhat.com>
3684 PR tree-optimization/71947
3685 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
3686 B with A within a single statement.
3688 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3690 PR tree-optimization/77824
3691 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
3692 zero cost for copies.
3693 (find_candidates_dom_walker::before_dom_children): Replace
3694 MODIFY_EXPR with SSA_NAME.
3695 (replace_mult_candidate): Likewise.
3696 (replace_profitable_candidates): Likewise.
3698 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3700 * config/s390/s390.h: Wrap more macros args in brackets and fix
3702 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
3704 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
3706 2016-10-10 Andreas Schwab <schwab@suse.de>
3709 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
3710 pseudo is not DImode.
3712 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
3714 * common/config/arc/arc-common.c (arc_option_optimization_table):
3715 Remove compact casesi option.
3716 * config/arc/arc.c (arc_override_options): Use compact casesi
3717 option only for pre-ARCv2 cores.
3718 * doc/invoke.texi (mcompact-casesi): Update text.
3720 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3722 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
3723 Add macro to say we can efficiently handle overlapping unaligned
3725 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
3726 poor code for processors older than p8.
3728 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
3730 * gen-pass-instances.awk: Remove GNUism.
3732 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3734 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
3735 NULL of (*ipcp_transformations)][node->uid].
3737 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
3739 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3740 (MALLOC_ABI_ALIGNMENT): Define.
3742 2016-10-09 Jakub Jelinek <jakub@redhat.com>
3744 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
3745 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
3746 VAR_OR_FUNCTION_DECL_P macros.
3747 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
3748 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
3749 chkp_find_bounds_1): Likewise.
3750 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
3751 * hsa-gen.c (get_symbol_for_decl): Likewise.
3752 * cgraphunit.c (check_global_declaration, analyze_functions,
3753 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
3755 * gimple-fold.c (can_refer_decl_in_current_unit_p,
3756 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
3758 * tree.c (set_decl_section_name, copy_node_stat,
3759 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
3760 merge_dllimport_decl_attributes, handle_dll_attribute,
3761 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
3762 verify_type): Likewise.
3763 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
3764 find_explicit_erroneous_behavior): Likewise.
3765 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
3766 * ipa.c (process_references): Likewise.
3767 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
3768 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
3769 notice_global_symbol, assemble_variable, mark_decl_referenced,
3770 build_constant_desc, output_constant_def_contents, do_assemble_alias,
3771 make_decl_one_only, default_section_type_flags,
3772 categorize_decl_for_section, default_encode_section_info): Likewise.
3773 * trans-mem.c (requires_barrier): Likewise.
3774 * gimple-expr.c (mark_addressable): Likewise.
3775 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
3776 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
3777 expand_debug_expr): Likewise.
3778 * tree-dump.c (dequeue_and_dump): Likewise.
3779 * ubsan.c (instrument_bool_enum_load): Likewise.
3780 * tree-pretty-print.c (print_declaration): Likewise.
3781 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3782 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
3783 * asan.c (asan_protect_global, instrument_derefs): Likewise.
3784 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
3785 pass_build_ssa::execute): Likewise.
3786 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
3787 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
3789 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
3791 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
3792 can_be_nonlocal, remap_decls, copy_debug_stmt,
3793 initialize_inlined_parameters, add_local_variables,
3794 reset_debug_binding, replace_locals_op): Likewise.
3795 * dse.c (can_escape): Likewise.
3796 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
3798 * tree-diagnostic.c (default_tree_printer): Likewise.
3799 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
3800 unpack_ts_decl_with_vis_value_fields,
3801 lto_input_ts_decl_common_tree_pointers): Likewise.
3802 * builtins.c (builtin_save_expr, fold_builtin_expect,
3803 readonly_data_expr): Likewise.
3804 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
3805 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
3807 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3808 * gimplify.c (force_constant_size, gimplify_bind_expr,
3809 gimplify_decl_expr, gimplify_var_or_parm_decl,
3810 gimplify_compound_lval, gimplify_init_constructor,
3811 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
3812 gimplify_type_sizes): Likewise.
3813 * cgraphbuild.c (record_reference, record_type_list, mark_address,
3814 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
3815 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
3816 remove_unused_locals): Likewise.
3817 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
3818 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
3819 * function.c (instantiate_expr, instantiate_decls_1,
3820 setjmp_vars_warning, add_local_decl): Likewise.
3821 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
3823 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
3824 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
3825 optimize_va_list_gpr_fpr_size): Likewise.
3826 * tree-nrv.c (pass_nrv::execute): Likewise.
3827 * tsan.c (instrument_expr): Likewise.
3828 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3829 * vtable-verify.c (verify_bb_vtables): Likewise.
3830 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
3831 get_ref_base_and_extent): Likewise.
3832 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
3834 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
3835 analyze_all_variable_accesses): Likewise.
3836 * tree-nested.c (get_nonlocal_debug_decl,
3837 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
3838 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
3839 get_local_debug_decl, convert_local_omp_clauses,
3840 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
3842 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
3843 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
3844 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
3845 dbxout_symbol, dbxout_common_check): Likewise.
3846 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
3847 string_constant): Likewise.
3848 * hsa.c (hsa_get_declaration_name): Likewise.
3849 * passes.c (rest_of_decl_compilation): Likewise.
3850 * tree-ssanames.c (make_ssa_name_fn): Likewise.
3851 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
3852 pack_ts_decl_with_vis_value_fields,
3853 write_ts_decl_common_tree_pointers): Likewise.
3854 * stor-layout.c (place_field): Likewise.
3855 * symtab.c (symtab_node::maybe_create_reference,
3856 symtab_node::verify_base, symtab_node::make_decl_local,
3857 symtab_node::copy_visibility_from,
3858 symtab_node::can_increase_alignment_p): Likewise.
3859 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
3860 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
3861 fortran_common, add_location_or_const_value_attribute,
3862 add_scalar_info, add_linkage_name, set_block_abstract_flags,
3863 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
3864 optimize_one_addr_into_implicit_ptr,
3865 optimize_location_into_implicit_ptr): Likewise.
3866 * gimple-low.c (record_vars_into): Likewise.
3867 * ipa-visibility.c (update_vtable_references): Likewise.
3868 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
3870 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
3871 DFS::DFS_write_tree_body, write_symbol): Likewise.
3872 * langhooks.c (lhd_warn_unused_global_decl,
3873 lhd_set_decl_assembler_name): Likewise.
3874 * attribs.c (decl_attributes): Likewise.
3875 * except.c (output_ttype): Likewise.
3876 * varpool.c (varpool_node::get_create, ctor_for_folding,
3877 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
3878 * fold-const.c (fold_unary_loc): Likewise.
3879 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3880 ipa_find_agg_cst_from_init): Likewise.
3881 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
3882 expand_omp_target, lower_omp_regimplify_p,
3883 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
3884 find_link_var_op): Likewise.
3885 * tree-chrec.c (chrec_contains_symbols): Likewise.
3886 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
3887 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
3888 execute_fixup_cfg): Likewise.
3890 PR tree-optimization/77901
3891 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
3892 if ranges[i].exp is SSA_NAME when looking for >= and only when
3893 ranges[i].exp is NULL or SSA_NAME when looking for the other
3896 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3898 * ipa-cp.c (ipcp_alignment_lattice): Remove.
3899 (ipcp_param_lattices): Remove field alignment.
3900 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
3901 (set_all_contains_variable): Remove call to
3902 ipcp_alignment_lattice::set_to_bottom.
3903 (initialize_node_lattices): Likewise.
3904 (propagate_alignment_accross_jump_function): Remove.
3905 (propagate_constants_accross_call): Remove call to
3906 propagate_alignment_accross_jump_function.
3907 (ipcp_store_alignment_results): Remove.
3908 (ipcp_driver): Remove call to ipcp_store_alignment_results.
3909 (propagate_bits_accross_jump_function): Handle ancestor jump function.
3910 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
3911 pretty-printing of alignment jump function.
3912 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
3913 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
3914 alignments and remove computing ipa_alignment jump function.
3915 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
3916 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
3917 (ipa_read_jump_function): Remove reading of ipa_alignment.
3918 (write_ipcp_transformation_info): Remove streaming for alignment
3919 propagation summary.
3920 (read_ipcp_transformation_info): Remove reading of alignment
3921 propagation summary.
3922 (ipcp_update_alignments): Remove.
3923 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
3925 (ipcp_transform_function): Remove call to ipcp_update_alignments()
3926 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
3927 * ipa-prop.h (ipa_alignment): Remove.
3928 (ipa_jump_func): Remove field alignment.
3929 (ipcp_transformation_summary): Remove field alignments.
3930 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
3931 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
3932 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
3934 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
3936 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
3938 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
3940 (visium_expand_fp_cstore): Likewise.
3942 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3944 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
3945 * diagnostic.c (warning_at_rich_loc_n): New function.
3946 (diagnostic_n_impl_richloc): Likewise.
3947 (diagnostic_n_impl): Move most of the function to
3948 diagnostic_n_impl_richloc and call it.
3950 2016-10-08 Jakub Jelinek <jakub@redhat.com>
3952 * gen-pass-instances.awk: Rewritten.
3953 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
3954 $(PASSES_EXTRA) after passes.def to the script.
3955 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
3956 * config/i386/i386-passes.def: New file.
3957 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
3958 make_pass_stv): Declare.
3959 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
3961 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
3963 (pass_stv::clone, pass_stv::set_pass_param): New methods.
3964 (pass_stv::timode_p): New non-static data member.
3965 (ix86_option_override): Don't register passes here.
3967 * doc/invoke.texi: Document accepting Else, fallthrough.
3969 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
3972 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
3973 FALLTHRU comment styles.
3975 2016-10-07 Andrew Pinski <apinski@cavium.com>
3977 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
3978 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
3979 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
3981 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
3983 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
3985 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
3986 (AARCH64_ARCH): Likewise.
3987 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
3989 (AARCH64_CORE): Likewise.
3990 (AARCH64_ARCH): Likewise.
3991 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
3992 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3993 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
3994 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3995 (AARCH64_ARCH): Likewise.
3996 (AARCH64_CORE): Likewise.
3997 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
3998 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
3999 (AARCH64_CORE): Likewise.
4000 (AARCH64_ARCH): Likewise.
4002 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4004 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
4005 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
4006 floating point type infrastructre, and -mfloat128 that enables the
4007 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
4008 if -mfloat128-type. Define __ibm128 to be long double by default.
4009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
4010 the IEEE 128-bit floating point type infrastructure should
4011 automatically be enabled.
4012 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
4013 instead of -mfloat128 to enable KFmode.
4014 (rs6000_option_override_internal): Split the option -mfloat128
4015 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
4016 systems, automatically set -mfloat128-type, but don't enable it on
4017 other operating systems. Move setting the long double size and
4018 IEEE quad support before the IEEE 128-bit floating point changes.
4019 (rs6000_init_builtins): Do not create a unique type for __ibm128
4020 if long double is IBM extended double, instead rely on __ibm128
4021 being defined as 'long double'. If -mfloat128-type and not
4022 -mfloat128, create the KFmode type with an undocumented __ieee128
4024 (rs6000_init_libfuncs): Use -mfloat128-type instead of
4025 -mfloat128 for tests about the types, but keep tests for
4026 -mfloat128 to enable the keyword support.
4027 (rs6000_complex_function_value): Likewise.
4028 (rs6000_scalar_mode_supported_p): Likewise.
4029 (rs6000_floatn_mode): Likewise.
4030 (rs6000_c_mode_for_suffix): Likewise.
4031 (rs6000_opt_masks): Add -mfloat128-type.
4032 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
4033 -mfloat128-type being split from -mfloat128. Add
4034 -mfloat128-hardware, which was missing.
4035 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
4036 -mfloat128 and -mfloat128-type:
4037 (-mfloat128-type): Likewise.
4038 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
4039 that 64-bit Linux systems with enable -mfloat128-type by default
4041 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
4042 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
4043 -mfloat128-type instead of -mfloat128.
4044 (FLOAT128_2REG_P): Likewise.
4045 (MASK_FLOAT128_TYPE): Likewise.
4046 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4047 (RS6000_BTM_FLOAT128): Likewise.
4048 (TARGET_FLOAT128): Poison old identifiers.
4049 (OPTION_MASK_FLOAT128): Likewise.
4050 (MASK_FLOAT128): Likewise.
4051 * config/rs6000/rs6000.md (FP): Likewise.
4052 (FLOAT128): Likewise.
4053 (fix_trunc<mode>di2): Likewise.
4054 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4055 (floatdi<mode>2): Likewise.
4056 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
4057 (neg<mode>2, FLOAT128 iterator): Likewise.
4058 (abs<mode>2, FLOAT128 iterator): Likewise.
4059 (ieee_128bit_negative_zero): Likewise.
4060 (ieee_128bit_vsx_neg<mode>2): Likewise.
4061 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
4062 (ieee_128bit_vsx_abs<mode>2): Likewise.
4063 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4064 (ieee_128bit_vsx_nabs<mode>2): Likewise.
4065 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4066 (extendiftf2): Likewise.
4067 (extendifkf2): Likewise.
4068 (extendtfkf2): Likewise.
4069 (trunciftf2): Likewise.
4070 (truncifkf2): Likewise.
4071 (trunckftf2): Likewise.
4072 (trunctfif2): Likewise.
4073 (extendkftf2): Likewise.
4074 (trunctfkf2): Likewise.
4076 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4078 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
4079 before merging in bytes to pass down to real_from_target.
4081 2016-10-07 Richard Biener <rguenther@suse.de>
4083 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
4085 (substitute_and_fold_dom_walker::before_dom_children):
4086 Substitute and fold before pass specific folding to avoid
4087 feeding that with SSA names that will be later released.
4088 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
4089 introduced by folding and visited by evaluate_stmt called during
4091 (likely_value): Likewise.
4092 (evaluate_stmt): Likewise.
4093 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
4094 (simplify_div_or_mod_using_ranges): Likewise.
4095 (simplify_min_or_max_using_ranges): Likewise.
4096 (simplify_abs_using_ranges): Likewise.
4097 (simplify_conversion_using_ranges): Likewise.
4098 (simplify_float_conversion_using_ranges): Likewise.
4099 (simplify_stmt_using_ranges): Likewise.
4101 2016-10-07 Marek Polacek <polacek@redhat.com>
4103 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
4104 FALLTHROUGH_LABEL_P here...
4105 (warn_implicit_fallthrough_r): ...not here.
4107 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
4109 PR tree-optimization/77880
4110 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
4113 2016-10-07 Marek Polacek <polacek@redhat.com>
4116 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
4118 2016-10-07 Richard Biener <rguenther@suse.de>
4120 * bitmap.h: Document constraints on bitmap modification while
4123 2016-10-07 Richard Biener <rguenther@suse.de>
4125 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
4126 * bitmap.h (bmp_iter_set): When advancing to the next element
4127 check that we didn't remove the current one.
4128 (bmp_iter_and): Likewise.
4129 (bmp_iter_and_compl): Likewise.
4130 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
4131 we currently iterate on but keep a one-level queue.
4132 * sched-deps.c (remove_from_deps): Do not clear current bit
4133 but keep a one-level queue.
4135 2016-10-07 Jakub Jelinek <jakub@redhat.com>
4137 PR tree-optimization/77664
4138 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
4139 for the other ranges.
4140 (optimize_range_tests_diff): Fix up formatting.
4141 (optimize_range_tests_var_bound): New function.
4142 (optimize_range_tests): Use it.
4144 2016-10-07 Martin Liska <mliska@suse.cz>
4146 * coverage.c (build_gcov_exit_decl): Fix priority what
4147 should be really 99.
4149 2016-10-07 Richard Biener <rguenther@suse.de>
4151 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
4152 vars in gimple_bind_vars but not in BLOCK_VARS.
4154 2016-10-07 Richard Biener <rguenther@suse.de>
4156 PR tree-optimization/77879
4157 * tree-ssa-structalias.c (handle_const_call): Properly handle
4159 (handle_pure_call): Likewise.
4161 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4163 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
4164 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
4167 2016-10-06 Andrew Pinski <apinski@cavium.com>
4169 * config/aarch64/aarch64-cores.def: Add a comment before each
4172 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
4174 PR tree-optimization/77862
4175 * tree-vrp.c (add_equivalence): Use get_value_range so that
4176 num_vr_values is checked before accessing vr_values.
4178 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
4180 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4183 2016-10-05 Jeff Law <law@redhat.com>
4185 PR tree-optimization/71661
4186 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
4187 removal of a forwarder exposes a new natural loop.
4189 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
4191 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
4192 Introduce ssesuffix variable.
4193 (<mask_codefor><code><mode>3<mask_name>): Ditto.
4194 (*<code><mode>3): Ditto.
4196 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
4198 * postreload.c (reload_cse_simplify): Skip also USE when detecting
4201 2016-10-06 Richard Biener <rguenther@suse.de>
4203 PR tree-optimization/77855
4204 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
4205 instead of removing the current item while iterating over the set
4208 2016-10-06 James Clarke <jrtc27@jrtc27.com>
4209 Eric Botcazou <ebotcazou@adacore.com>
4212 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
4213 (classify_registers): Don't set it
4214 (function_arg_slotno): Don't initialize and test it. Tidy up.
4216 2016-10-06 Richard Biener <rguenther@suse.de>
4218 PR tree-optimization/77839
4219 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
4222 2016-10-06 Martin Liska <mliska@suse.cz>
4224 * gcc.c: Set -fprofile-update=atomic when profiling is
4225 enabled and -pthread is set. Warn when one combines
4226 -pthread and -fprofile-update=single for an app using
4229 2016-10-06 Martin Liska <mliska@suse.cz>
4232 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
4233 * gimple-ssa-strength-reduction.c (slsr_process_cast):
4234 Initialize a pointer to NULL.
4235 (slsr_process_copy): Likewise.
4236 * input.c (location_get_source_line): Likewise.
4237 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4239 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
4241 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
4242 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
4243 (ix86_handle_option): Deleted handle of OPT_mpcommit.
4244 * config.gcc: Deleted pcommitintrin.h
4245 * config/i386/pcommitintrin.h: Deleted file.
4246 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
4247 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
4249 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
4251 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
4252 (PTA_PCOMMIT): Deleted define.
4253 (ix86_option_override_internal): Deleted handle of option.
4254 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
4255 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
4256 __builtin_ia32_pcommit): Deleted.
4257 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
4258 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
4259 (pcommit): Deleted instruction.
4260 * config/i386/i386.opt: Mention -mpcommit deprecation.
4261 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
4263 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
4266 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
4267 Remove wrong assert.
4268 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
4269 Use <round_constraint> as operand 1 constraint.
4271 2016-10-05 Jakub Jelinek <jakub@redhat.com>
4274 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
4275 (ubsan_instrument_float_cast): And not here.
4278 * ubsan.c (ubsan_ids): New GTY(()) array.
4279 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
4280 instead of static local counters.
4282 2016-10-05 Martin Sebor <msebor@redhat.com>
4285 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
4286 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
4287 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
4288 (default_printf_pointer_format): Define function.
4289 * targhooks.c (linux_printf_pointer_format): Define new function.
4290 * targhooks.h (linux_printf_pointer_format): Declare.
4291 (gnu_libc_printf_pointer_format): Remove declaration.
4293 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4295 * fold-const.c (native_encode_real): Fix logic for selecting offset
4296 to write to when BYTES_BIG_ENDIAN.
4298 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
4300 * builtins.c (fold_builtin_strchr): Remove function.
4301 (fold_builtin_strrchr): Likewise.
4302 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
4303 * gimple-fold.c (target_char_cst_p): New function.
4304 (gimple_fold_builtin_strchr) Add more foldings.
4305 (gimple_fold_builtin): Add index, strrchr, rindex cases.
4307 2016-10-05 Richard Biener <rguenther@suse.de>
4310 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
4311 capture ids in c-exprs.
4313 2016-10-05 Richard Biener <rguenther@suse.de>
4316 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
4317 with types_match for GIMPLE code gen to handle type mismatched
4319 (dt_operand::gen): Adjust.
4320 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
4323 2016-10-05 Richard Biener <rguenther@suse.de>
4325 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
4327 2016-10-05 Richard Biener <rguenther@suse.de>
4330 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
4332 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
4334 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
4335 version check to protect only DW_TAG_imported_module generation.
4337 2016-10-05 Richard Biener <rguenther@suse.de>
4340 * match.pd (min(a,-a) -> -abs(a)): New pattern.
4342 2016-10-04 Ian Lance Taylor <iant@golang.org>
4344 * explow.c (allocate_dynamic_stack_space): Call
4345 do_pending_stack_adjust before handling flag_split_stack.
4347 2016-10-04 David Malcolm <dmalcolm@redhat.com>
4349 * genattrtab.c (make_internal_attr): Supply dummy column number to
4352 * genoutput.c (init_insn_for_nothing): Likewise.
4353 * gensupport.c (add_define_attr): Likewise.
4354 * read-md.c (message_at_1): Print column number.
4355 (fatal_with_file_and_line): Likewise.
4356 (rtx_reader::read_char): Track column numbers.
4357 (rtx_reader::unread_char): Likewise.
4358 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
4359 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
4360 (rtx_reader::handle_file): Initialize m_read_md_colno.
4361 (rtx_reader::get_current_location): Supply column number to
4363 * read-md.h (struct file_location): Add field "colno".
4364 (file_location::file_location): Likewise.
4365 (rtx_reader::get_colno): New accessor.
4366 (rtx_reader::m_read_md_colno): New field.
4367 (rtx_reader::m_last_line_colno): New field.
4369 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4371 * doc/extend.texi (Java Exceptions): Remove.
4372 (java_interface): Remove.
4374 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
4376 PR tree-optimization/77808
4377 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
4378 and addr are different before copying points-to information.
4380 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
4382 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
4383 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
4384 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
4385 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
4387 2016-10-04 Richard Biener <rguenther@suse.de>
4389 PR tree-optimization/77399
4390 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
4391 verify the target can convert.
4393 2016-10-04 Richard Biener <rguenther@suse.de>
4396 * explow.c (plus_constant): Verify the mode of the constant
4397 pool offset before calling plus_constant.
4399 2016-10-04 Richard Biener <rguenther@suse.de>
4402 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
4403 type support, mark with :C.
4404 (X / -X -> -1): Mark with :C.
4406 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4408 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
4409 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
4410 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
4411 * doc/tm.texi: Regenerated.
4412 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
4413 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
4414 * config/darwin.h (JCR_SECTION_NAME): Remove.
4415 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
4416 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
4417 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
4418 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
4419 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
4420 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
4422 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4424 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
4425 between "because" and "param" in dump message in call to fprintf.
4427 2016-10-03 Jeff Law <law@redhat.com>
4429 PR tree-optimization/71550
4430 PR tree-optimization/71403
4431 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
4432 (profitable_jump_thread_path): Also return boolean indicating if
4433 the realized path will create an irreducible loop.
4434 Remove loop depth tests from 71403.
4435 (fsm_find_control_statement_thread_paths): Remove loop depth tests
4436 from 71403. If threading will create an irreducible loop, then
4437 throw away loop iteration and related information.
4439 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
4441 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
4442 -Woverloaded-virtual checks for warning options.
4443 * configure: Regenerate.
4445 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4447 PR preprocessor/77699
4448 * input.c (maybe_grow): Don't allocate one byte extra headroom.
4449 (get_next_line): Return false on error.
4450 (read_next_line): Removed, use get_next_line instead.
4451 (read_line_num): Don't copy the line.
4452 (location_get_source_line): Don't use static data.
4453 (selftest::test_reading_source_line): Add more test cases.
4455 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4458 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4460 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4461 (noce_process_if_block): Use it.
4463 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4465 * doc/invoke.texi: Update -Wint-in-bool-context.
4467 2016-10-02 Jakub Jelinek <jakub@redhat.com>
4469 * dwarf2out.c (output_fde, output_call_frame_info,
4470 dwarf2out_do_cfi_startproc, set_indirect_string,
4471 gen_internal_sym, output_die, output_line_info): Use
4472 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
4473 ASM_GENERATE_INTERNAL_LABEL output.
4475 2016-10-01 Richard Biener <rguenther@suse.de>
4478 * genmatch.c (get_operand_type): Add operand position arg
4479 and handle COND_EXPR comparison operand with fixed boolean_type_node.
4480 (expr::gen_transform): Adjust.
4481 (dt_simplify::gen_1): Likewise.
4483 2016-10-01 Jakub Jelinek <jakub@redhat.com>
4485 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
4486 comments. Simplify asserts, remove unnecessary conditions.
4488 (*<code><mode>3): Likewise.
4490 2016-09-30 Jakub Jelinek <jakub@redhat.com>
4492 * doc/invoke.texi (-Wregister): Document.
4494 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4496 * configure.ac: Split CHECKING_P into CHECKING_P and
4497 ENABLE_EXTRA_CHECKING.
4498 * configure: Regenerated.
4499 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
4500 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
4502 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
4505 * gcc.c (process_command): For @filename handling, output
4506 the correct name if the file does not exist.
4508 2016-09-30 Marek Polacek <polacek@redhat.com>
4510 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
4511 * config/alpha/predicates.md: Likewise.
4513 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4515 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4516 (noce_process_if_block): Use it.
4518 2016-09-30 Martin Liska <mliska@suse.cz>
4520 * doc/invoke.texi: Document asan-use-after-return that
4521 it's disabled by default in runtime.
4523 2016-09-30 Richard Biener <rguenther@suse.de>
4525 * tree-vrp.c (intersect_ranges): If we failed to handle
4526 the intersection choose a constant singleton range if available.
4528 2016-09-30 Richard Biener <rguenther@suse.de>
4530 PR tree-optimization/77399
4531 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4532 float <-> int conversions.
4534 2016-09-30 Alan Modra <amodra@gmail.com>
4536 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
4538 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4540 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
4541 ext_level before calling CPUID with 0x80000008.
4542 Simplify xgetbv checks.
4544 2016-09-29 David Malcolm <dmalcolm@redhat.com>
4546 * Makefile.in (OBJS): Add print-rtl-function.o.
4547 * print-rtl-function.c: New file.
4548 * print-rtl.h (print_rtx_function): New decl.
4550 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4553 * config/i386/cpuid.h (__get_cpuid_count): New.
4554 (__get_cpuid): Rename __level to __leaf.
4556 2016-09-29 Marek Polacek <polacek@redhat.com>
4558 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
4560 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
4562 * builtins.c (expand_builtin_memcmp): don't swap args unless
4563 result is only being compared with zero.
4565 2016-09-29 Marek Polacek <polacek@redhat.com>
4567 * dwarf2out.c (loc_descriptor): Add fall through comment.
4568 (add_const_value_attribute): Likewise.
4570 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
4572 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
4573 with "v6t2". Move "arch" attribute above "pool_range".
4574 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
4576 (*thumb2_movhi_vfp): Likewise.
4577 (*arm_movhi_fp16): Likewise.
4578 (*thumb2_movhi_fp16): Likewise.
4579 (*arm_movsi_vfp): Remove "arch" attribute.
4580 (*thumb2_movsi_vfp): Likewise.
4582 2016-09-29 Martin Liska <mliska@suse.cz>
4584 * doc/extend.texi: Remove limitation of Objective C for
4585 __attribute__((constructor)) and __attribute__((destructor)).
4587 2016-09-29 Richard Biener <rguenther@suse.de>
4589 PR tree-optimization/77768
4590 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4591 Handle stores to readonly memory when removing redundant stores.
4593 2016-09-29 Richard Biener <rguenther@suse.de>
4596 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
4597 X / -X -> -1 simplifications.
4599 2016-09-29 Richard Biener <rguenther@suse.de>
4602 * match.pd: Add max(a,-a) -> abs(a) pattern.
4603 * tree-ssa-phiopt.c (minmax_replacement): Disable for
4604 HONOR_SIGNED_ZEROS types.
4606 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
4608 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
4609 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
4611 2016-09-29 Richard Biener <rguenther@suse.de>
4613 * tree-vrp.c (set_defs_to_varying): New helper avoiding
4614 writing to vr_const_varying.
4615 (vrp_initialize): Call it.
4616 (vrp_visit_stmt): Likewise.
4617 (evrp_dom_walker::before_dom_children): Likewise.
4619 2016-09-29 Richard Biener <rguenther@suse.de>
4621 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
4622 constructors with vector elements.
4624 2016-09-29 Richard Biener <rguenther@suse.de>
4626 PR tree-optimization/77768
4627 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
4628 with stores to a place we know has a constant value.
4630 2016-09-29 Alan Modra <amodra@gmail.com>
4632 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
4633 * doc/invoke.texi: Document it.
4634 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
4635 (rs6000_passes_float): Comment.
4636 (rs6000_passes_long_double): New static var.
4637 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
4638 (init_cumulative_args): Set up to emit fp .gnu_attribute for
4639 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
4640 to include fp values returned in vectors.
4641 Set rs6000_passes_long_double.
4642 (rs6000_function_arg_advance_1): Likewise for function args.
4643 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
4644 and SPE. Emit long double tag value too.
4645 (rs6000_opt_vars): Add gnu-attr.
4646 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
4647 * configure: Regenerate.
4648 * config.in: Regenerate.
4650 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4652 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
4654 (format_floating, format_string, format_directive,
4655 get_destination_size, pass_sprintf_length::handle_gimple_call):
4658 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4660 * gimple-ssa-sprintf.c: Fix comment formatting.
4661 (format_integer): Use is_gimple_assign.
4662 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
4663 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
4664 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
4665 (pass_sprintf_length::execute): Use is_gimple_call.
4667 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4669 * gimple-fold.c (gimple_fold_builtin): After failing to fold
4670 strchr, also try the generic folding.
4672 2016-09-28 Martin Sebor <msebor@redhat.com>
4675 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
4678 2016-09-28 Martin Sebor <msebor@redhat.com>
4681 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
4682 length modifier is not expected.
4683 (format_floating): Ignore l length modifier and fail gracefuly
4684 when it isn't one of the other expected ones.
4686 2016-09-28 Martin Sebor <msebor@redhat.com>
4689 * varasm.c (assemble_addr_to_section): Increase local buffer size.
4691 2016-09-27 Richard Biener <rguenther@suse.de>
4693 * dwarf2out.c (cu_die_list): New global.
4694 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
4695 main_comp_unit_die to cu_die_list if we created it.
4696 Move break_out_includes ...
4697 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
4700 2016-09-28 Richard Biener <rguenther@suse.de>
4702 * dwarf2out.c (struct die_struct): Add removed flag.
4703 (lookup_type_die): If the DIE is marked as removed, clear
4704 TYPE_SYMTAB_DIE and return NULL.
4705 (lookup_decl_die): If the DIE is marked as removed, remove it
4706 from the hash and return NULL.
4707 (mark_removed): New helper.
4708 (prune_unused_types_prune): Call it for removed DIEs.
4709 (gen_subprogram_die): Move the premark_used_types call to after
4710 DIEs for the functions scopes are generated.
4711 (process_scope_var): Do not re-create pruned types or type decls.
4712 Make sure to also re-parent type decls.
4713 (dwarf2out_finish): Move unused type pruning and debug_types
4715 (dwarf2out_early_finish): ... here.
4717 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4719 * config/arc/arc-c.c: New file.
4720 * config/arc/arc-c.def: Likewise.
4721 * config/arc/t-arc: Likewise.
4722 * config.gcc: Include arc-c.o as c and cpp object.
4723 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
4724 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
4725 arc_cpu_cpp_builtins.
4727 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4729 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
4730 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
4732 2016-09-28 Nathan Sidwell <nathan@acm.org>
4734 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
4737 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4739 PR tree-optimization/61056
4740 * gimple-fold.c (gimple_fold_builtin_strchr):
4741 New function to optimize strchr (s, 0) to strlen.
4742 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
4744 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
4746 PR tree-optimization/77724
4747 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
4748 Add tree_fits_shwi_p check.
4750 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4752 * auto-inc-dec.c (try_merge): Remove break after return.
4753 * cselib.c (autoinc_split): Likewise.
4754 * explow.c (promote_mode): Likewise.
4755 * fixed-value.c (fixed_arithmetic): Likewise.
4756 * hsa.c (hsa_internal_fn::get_arity): Likewise.
4757 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
4758 * trans-mem.c (get_attrs_for): Likewise.
4759 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
4760 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
4761 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
4762 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
4763 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
4764 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
4765 * config/cris/cris.c (cris_op_str): Likewise.
4766 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
4767 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
4769 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
4771 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
4772 IFN_GOACC_REDUCTION_CODES): New.
4773 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
4774 ifn_goacc_reduction_kind): Use them.
4775 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
4776 of internal functions, when applicable.
4778 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
4780 * config/mips/constraints.md (d): Fix documentation.
4781 * doc/md.texi (Machine Constraints): Update accordingly.
4783 2016-09-27 Richard Biener <rguenther@suse.de>
4785 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
4786 cur_line_info_table initialization ...
4787 (dwarf2out_assembly_start): ... here.
4789 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
4791 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
4792 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
4793 (*thumb2_movhi_vfp): Likewise.
4794 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
4795 template. Expand predicable attribute to mark VMOV.F16 as not
4796 predicable. Add "arch" attribute.
4797 (*thumb2_movhi_fp16): Likewise.
4798 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
4799 (*thumb2_movsi_vfp): Add "arch" attribute.
4801 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
4803 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
4806 2016-09-27 Marek Polacek <polacek@redhat.com>
4808 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
4811 * config/c6x/c6x.h: Adjust fall through comment.
4812 * config/sh/sh.c (final_prescan_insn): Likewise.
4813 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
4814 (visium_expand_fp_cstore): Likewise.
4816 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4818 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
4819 expected by -Wimplicit-fallthrough.
4820 (thumb1_size_rtx_costs): Likewise.
4821 (thumb2_reorg): Likewise.
4822 (tls_mentioned_p): Add "Fall through" comment.
4823 (thumb2_reorg): Likewise.
4824 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
4825 comment form expected by -Wimplicit-fallthrough.
4827 2016-09-27 Martin Liska <mliska@suse.cz>
4829 PR gcov-profile/46266
4830 * input.h (RESERVED_LOCATION_P): New macro.
4831 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
4832 instread of comparison with UNKNOWN_LOCATION.
4834 2016-09-27 Richard Biener <rguenther@suse.de>
4836 PR tree-optimization/77745
4837 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4838 When removing redundant stores make sure to check compatibility
4839 of the TBAA state for downstream accesses.
4840 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
4841 value-numbering virtual operands for store matches.
4843 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4846 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
4847 movrt patterns. Match them before anything else in the SET case.
4849 2016-09-27 Martin Liska <mliska@suse.cz>
4851 PR gcov-profile/7970
4852 PR gcov-profile/16855
4853 PR gcov-profile/44779
4854 * coverage.c (build_gcov_exit_decl): New function.
4855 (coverage_obj_init): Call the function and generate __gcov_exit
4857 * doc/gcov.texi: Document when __gcov_exit function is called.
4859 2016-09-27 Marek Polacek <polacek@redhat.com>
4862 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4863 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
4864 -Wno-error instead of -Wno-implicit-fallthrough.
4866 2016-09-27 Martin Liska <mliska@suse.cz>
4869 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
4871 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4873 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
4874 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
4875 comments. Remove break after return.
4876 (ix86_fp_compare_code_to_integer, has_dispatch,
4877 ix86_simd_clone_usable): Remove break after return.
4879 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4881 PR rlt-optimization/77714
4882 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
4885 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
4888 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
4889 extract_range_from_unary_expr to convert value_range.
4890 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
4891 (extract_range_from_unary_expr): This.
4892 * tree-vrp.h (extract_range_from_unary_expr): Declare.
4894 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
4896 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
4898 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4900 * config/i386/i386.c (ix86_print_operand)
4901 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
4902 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
4903 (epilogue_renumber): Likewise.
4905 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
4908 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
4909 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
4911 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4913 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4914 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
4915 is_mm_seq_cst, is_mm_sync): Move to ...
4916 * memmodel.h: This. New file.
4917 * builtins.c: Include memmodel.h.
4918 * optabs.c: Likewise.
4920 * config/aarch64/aarch64.c: Likewise.
4921 * config/alpha/alpha.c: Likewise.
4922 * config/arm/arm.c: Likewise.
4923 * config/i386/i386.c: Likewise.
4924 * config/ia64/ia64.c: Likewise.
4925 * config/mips/mips.c: Likewise.
4926 * config/rs6000/rs6000.c: Likewise.
4927 * config/sparc/sparc.c: Likewise.
4928 * genconditions.c: Include memmodel.h in generated file.
4929 * genemit.c: Likewise.
4930 * genoutput.c: Likewise.
4931 * genpeep.c: Likewise.
4932 * genpreds.c: Likewise.
4933 * genrecog.c: Likewise.
4935 2016-09-26 David Malcolm <dmalcolm@redhat.com>
4937 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
4938 "c" instead when parsing characters. Move operand parsing into...
4939 (read_rtx_operand): ...this new function, renaming "i" to "idx",
4940 and tightening the scope of various locals.
4942 2016-09-26 Liu Hao <lh_mouse@126.com>
4944 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
4946 2016-09-26 Marek Polacek <polacek@redhat.com>
4948 * system.h: Use __has_attribute to check whether the fallthrough
4949 attribute is supported.
4951 2016-09-26 Marek Polacek <polacek@redhat.com>
4953 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
4954 gimple_call_internal_p.
4955 * ipa-split.c (find_return_bb): Likewise.
4956 (execute_split_functions): Likewise.
4957 * omp-low.c (dump_oacc_loop_part): Likewise.
4958 (oacc_loop_xform_head_tail): Likewise.
4959 * predict.c (predict_loops): Likewise.
4960 * sanopt.c (pass_sanopt::execute): Likewise.
4961 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
4962 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
4963 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
4964 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
4965 (expand_ifn_va_arg): Likewise.
4966 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4967 (optimize_mask_stores): Likewise.
4968 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
4969 (vect_transform_stmt): Likewise.
4970 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
4971 * tsan.c (instrument_memory_accesses): Likewise.
4973 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4974 Alexander Monakov <amonakov@ispras.ru>
4976 * regrename.c (rename_chains): Check
4977 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
4978 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
4979 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4981 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4983 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
4984 (s390_sched_score): Likewise.
4986 2016-09-26 Martin Liska <mliska@suse.cz>
4988 * doc/gcov.texi: Update program output of gcov tool.
4990 2016-09-26 Martin Liska <mliska@suse.cz>
4992 PR gcov-profile/23332
4993 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
4994 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
4995 * value-prof.c (dump_histogram_value): Do not handle
4996 HIST_TYPE_CONST_DELTA.
4997 (stream_in_histogram_value): Likewise.
4998 (gimple_find_values_to_profile): Likewise.
4999 * value-prof.h (enum hist_type): Likewise.
5001 2016-09-26 Martin Liska <mliska@suse.cz>
5003 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
5004 from default sanitize recover values.
5005 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
5006 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
5007 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
5009 * opts.c (finish_options): Do a generic loop over options
5010 that can be recovered.
5011 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
5013 (common_handle_option): Likewise.
5014 * opts.h: Declare can_recover to sanitizer_opts_s.
5016 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
5018 * target.def(elf_flags_numeric): Change documentation to present tense.
5019 * doc/tm.texi: Regenerate.
5021 2016-09-26 Marek Polacek <polacek@redhat.com>
5024 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5025 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
5026 -Wno-switch-fallthrough.
5027 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
5028 (expand_builtin): Likewise.
5029 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
5030 * convert.c (convert_to_real_1): Likewise.
5031 (convert_to_integer_1): Likewise.
5032 * final.c (output_alternate_entry_point): Likewise.
5033 * genattrtab.c (make_canonical): Likewise.
5034 (write_test_expr): Likewise.
5035 * genpreds.c (validate_exp): Likewise.
5036 * gimple-ssa-strength-reduction.c
5037 (find_candidates_dom_walker::before_dom_children): Likewise.
5038 * godump.c (go_format_type): Likewise.
5039 * reload1.c (elimination_effects): Likewise.
5040 * resource.c (mark_referenced_resources): Likewise.
5041 (mark_set_resources): Likewise.
5042 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
5043 * varasm.c (output_addressed_constants): Likewise.
5045 2016-09-26 Marek Polacek <polacek@redhat.com>
5048 * common.opt (Wimplicit-fallthrough): New option.
5049 * doc/extend.texi: Document statement attributes and the fallthrough
5051 * doc/invoke.texi: Document -Wimplicit-fallthrough.
5052 * gimple.h (gimple_call_internal_p): New function.
5053 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
5054 (struct label_entry): New struct.
5055 (find_label_entry): New function.
5056 (case_label_p): New function.
5057 (collect_fallthrough_labels): New function.
5058 (last_stmt_in_scope): New function.
5059 (should_warn_for_implicit_fallthrough): New function.
5060 (warn_implicit_fallthrough_r): New function.
5061 (maybe_warn_implicit_fallthrough): New function.
5062 (expand_FALLTHROUGH_r): New function.
5063 (expand_FALLTHROUGH): New function.
5064 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
5065 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
5066 (gimplify_label_expr): New function.
5067 (gimplify_case_label_expr): Set location.
5068 (gimplify_expr): Call gimplify_label_expr.
5069 * internal-fn.c (expand_FALLTHROUGH): New function.
5070 * internal-fn.def (FALLTHROUGH): New internal function.
5071 * langhooks.c (lang_GNU_OBJC): New function.
5072 * langhooks.h (lang_GNU_OBJC): Declare.
5073 * system.h (gcc_fallthrough): Define.
5074 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
5075 * tree.h (FALLTHROUGH_LABEL_P): Define.
5077 2016-09-26 Richard Biener <rguenther@suse.de>
5079 * dwarf2out.c (stripattributes): Remove unused function.
5080 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
5081 Push dwarf_split_debug_info handling into init_sections_and_labels.
5082 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
5083 (DEBUG_MACRO_SECTION_FLAGS): Remove.
5084 (debug_macinfo_section_name): New global.
5085 (output_macinfo): Use debug_macinfo_section_name.
5086 (init_sections_and_labels): Split out section and label generation
5087 from dwarf2out_init. Set debug_macinfo_section_name.
5088 (dwarf2out_init): Move text section label generation and emission
5090 (dwarf2out_assembly_start): ... here.
5091 (dwarf2out_finish): Call init_sections_and_labels before DWARF
5094 2016-09-26 Richard Biener <rguenther@suse.de>
5097 * cgraphunit.c (analyze_functions): Before early removing
5098 global vars calls the late_global_decl debug handler mark
5099 the variable as readonly.
5101 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5104 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
5105 (sh_rtx_costs): Handle SET of movt and movrt patterns.
5106 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
5107 declare new overloads.
5108 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
5111 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5113 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
5114 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
5116 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
5118 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
5119 * configure: Regenerate.
5121 2016-09-24 Marek Polacek <polacek@redhat.com>
5124 * doc/invoke.texi: Document -Wbool-operation.
5126 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5128 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
5129 * config/rs6000/rs6000.c (expand_block_compare): New function used by
5130 cmpmemsi pattern to do builtin expansion of memcmp ().
5131 (compute_current_alignment): Add helper function for
5132 expand_block_compare used to compute alignment as the compare proceeds.
5133 (select_block_compare_mode): Used by expand_block_compare to select
5134 the mode used for reading the next chunk of bytes in the compare.
5135 (do_load_for_compare): Used by expand_block_compare to emit the load
5136 insns for the compare.
5137 (rs6000_emit_dot_insn): Moved this function to avoid a forward
5138 reference from expand_block_compare ().
5139 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
5140 prototype for this function.
5141 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
5142 target option for controlling how much code inline expansion of
5143 memcmp() will be allowed to generate.
5145 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5147 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
5148 hook_bool_mode_false, hook_bool_mode_true,
5149 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
5150 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
5151 hook_bool_const_rtx_insn_const_rtx_insn_true,
5152 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
5153 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
5154 hook_bool_const_tree_hwi_hwi_const_tree_false,
5155 hook_bool_const_tree_hwi_hwi_const_tree_true,
5156 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
5157 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
5158 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
5159 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
5160 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
5161 hook_bool_const_tree_true, hook_bool_tree_tree_false,
5162 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
5163 hook_bool_rtx_insn_true, hook_bool_rtx_false,
5164 hook_bool_uintp_uintp_false,
5165 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
5166 hook_rtx_tree_int_null, hook_uint_mode_0,
5167 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
5168 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
5169 hook_constcharptr_const_rtx_insn_null,
5170 hook_constcharptr_const_tree_const_tree_null,
5171 hook_constcharptr_int_const_tree_null,
5172 hook_constcharptr_int_const_tree_const_tree_null,
5173 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
5174 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
5175 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
5177 * vec.h (vNULL): Extend comment to say = vNULL initialization
5178 isn't needed for static vars.
5180 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
5181 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
5182 = vNULL initialization of file scope vec.
5183 * passes.c (pass_tab, enabled_pass_uid_range_tab,
5184 disabled_pass_uid_range_tab): Likewise.
5185 * haifa-sched.c (sched_luids, h_i_d): Likewise.
5186 * tree-chkp-opt.c (check_infos): Likewise.
5187 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
5189 * vec.h (vnull::operator vec): Add constexpr keyword for
5192 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
5194 PR tree-optimization/77654
5195 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
5196 to duplicate_ssa_name_ptr_info.
5198 2016-09-23 David Malcolm <dmalcolm@redhat.com>
5200 PR preprocessor/77672
5201 * input.c (selftest::test_lexer_string_locations_simple): Update
5202 test to expect location information of the terminator character
5203 at the location of the final closing quote.
5204 (selftest::test_lexer_string_locations_hex): Likewise.
5205 (selftest::test_lexer_string_locations_oct): Likewise.
5206 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
5207 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
5208 (selftest::test_lexer_string_locations_ucn4): Likewise.
5209 (selftest::test_lexer_string_locations_ucn8): Likewise.
5210 (selftest::test_lexer_string_locations_u8): Likewise.
5211 (selftest::test_lexer_string_locations_utf8_source): Likewise.
5212 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
5213 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
5214 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
5215 (selftest::test_lexer_string_locations_macro): Likewise.
5216 (selftest::test_lexer_string_locations_long_line): Likewise.
5218 2016-09-23 Richard Biener <rguenther@suse.de>
5220 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
5221 virtual definition to virtual use if the call devirtualizes
5222 to a const or pure function.
5223 (visit_use): Also visit calls we can devirtualize to a
5224 const or pure function.
5226 2016-09-23 Richard Biener <rguenther@suse.de>
5228 PR tree-optimization/77697
5229 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
5230 signal error if we have sth ternary or unhandled.
5232 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5234 * config/arm/arm_neon.h (vabd_f16): New.
5268 (vcvt_f16_s16): New.
5269 (vcvt_f16_u16): New.
5270 (vcvt_s16_f16): New.
5271 (vcvt_u16_f16): New.
5272 (vcvtq_f16_s16): New.
5273 (vcvtq_f16_u16): New.
5274 (vcvtq_s16_f16): New.
5275 (vcvtq_u16_f16): New.
5276 (vcvta_s16_f16): New.
5277 (vcvta_u16_f16): New.
5278 (vcvtaq_s16_f16): New.
5279 (vcvtaq_u16_f16): New.
5280 (vcvtm_s16_f16): New.
5281 (vcvtm_u16_f16): New.
5282 (vcvtmq_s16_f16): New.
5283 (vcvtmq_u16_f16): New.
5284 (vcvtn_s16_f16): New.
5285 (vcvtn_u16_f16): New.
5286 (vcvtnq_s16_f16): New.
5287 (vcvtnq_u16_f16): New.
5288 (vcvtp_s16_f16): New.
5289 (vcvtp_u16_f16): New.
5290 (vcvtpq_s16_f16): New.
5291 (vcvtpq_u16_f16): New.
5292 (vcvt_n_f16_s16): New.
5293 (vcvt_n_f16_u16): New.
5294 (vcvtq_n_f16_s16): New.
5295 (vcvtq_n_f16_u16): New.
5296 (vcvt_n_s16_f16): New.
5297 (vcvt_n_u16_f16): New.
5298 (vcvtq_n_s16_f16): New.
5299 (vcvtq_n_u16_f16): New.
5313 (vmul_lane_f16): New.
5316 (vmulq_lane_f16): New.
5338 (vrsqrteq_f16): New.
5342 (vrsqrtsq_f16): New.
5346 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5348 * config.gcc (extra_headers): Add arm_fp16.h
5349 * config/arm/arm_fp16.h: New.
5350 * config/arm/arm_neon.h: Include "arm_fp16.h".
5352 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5354 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
5356 (vmulf): New (v8hf, v4hf variants).
5357 (vfma): New (v8hf, v4hf variants).
5358 (vfms): New (v8hf, v4hf variants).
5359 (vsub): New (v8hf, v4hf variants).
5360 (vcage): New (v8hf, v4hf variants).
5361 (vcagt): New (v8hf, v4hf variants).
5362 (vcale): New (v8hf, v4hf variants).
5363 (vcalt): New (v8hf, v4hf variants).
5364 (vceq): New (v8hf, v4hf variants).
5365 (vcgt): New (v8hf, v4hf variants).
5366 (vcge): New (v8hf, v4hf variants).
5367 (vcle): New (v8hf, v4hf variants).
5368 (vclt): New (v8hf, v4hf variants).
5369 (vceqz): New (v8hf, v4hf variants).
5370 (vcgez): New (v8hf, v4hf variants).
5371 (vcgtz): New (v8hf, v4hf variants).
5372 (vcltz): New (v8hf, v4hf variants).
5373 (vclez): New (v8hf, v4hf variants).
5374 (vabd): New (v8hf, v4hf variants).
5375 (vmaxf): New (v8hf, v4hf variants).
5376 (vmaxnm): New (v8hf, v4hf variants).
5377 (vminf): New (v8hf, v4hf variants).
5378 (vminnm): New (v8hf, v4hf variants).
5379 (vpmaxf): New (v4hf variant).
5380 (vpminf): New (v4hf variant).
5381 (vpadd): New (v4hf variant).
5382 (vrecps): New (v8hf, v4hf variants).
5383 (vrsqrts): New (v8hf, v4hf variants).
5384 (vabs): New (v8hf, v4hf variants).
5385 (vneg): New (v8hf, v4hf variants).
5386 (vrecpe): New (v8hf, v4hf variants).
5387 (vrnd): New (v8hf, v4hf variants).
5388 (vrnda): New (v8hf, v4hf variants).
5389 (vrndm): New (v8hf, v4hf variants).
5390 (vrndn): New (v8hf, v4hf variants).
5391 (vrndp): New (v8hf, v4hf variants).
5392 (vrndx): New (v8hf, v4hf variants).
5393 (vrsqrte): New (v8hf, v4hf variants).
5394 (vmul_lane): Add v4hf and v8hf variants.
5395 (vmul_n): Add v4hf and v8hf variants.
5396 (vext): New (v8hf, v4hf variants).
5397 (vcvts): New (v8hi, v4hi variants).
5398 (vcvts): New (v8hf, v4hf variants).
5399 (vcvtu): New (v8hi, v4hi variants).
5400 (vcvtu): New (v8hf, v4hf variants).
5401 (vcvts_n): New (v8hf, v4hf variants).
5402 (vcvtu_n): New (v8hi, v4hi variants).
5403 (vcvts_n): New (v8hi, v4hi variants).
5404 (vcvtu_n): New (v8hf, v4hf variants).
5405 (vbsl): New (v8hf, v4hf variants).
5406 (vcvtas): New (v8hf, v4hf variants).
5407 (vcvtau): New (v8hf, v4hf variants).
5408 (vcvtms): New (v8hf, v4hf variants).
5409 (vcvtmu): New (v8hf, v4hf variants).
5410 (vcvtns): New (v8hf, v4hf variants).
5411 (vcvtnu): New (v8hf, v4hf variants).
5412 (vcvtps): New (v8hf, v4hf variants).
5413 (vcvtpu): New (v8hf, v4hf variants).
5415 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5417 * config/arm/arm-builtins.c (hf_UP): New.
5419 (vfp_builtin_data): New. Update comment.
5420 (enum arm_builtins): Include "arm_vfp_builtins.def".
5421 (ARM_BUILTIN_VFP_PATTERN_START): New.
5422 (arm_init_vfp_builtins): New.
5423 (arm_init_builtins): Add arm_init_vfp_builtins.
5424 (arm_expand_vfp_builtin): New.
5425 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
5427 * config/arm/arm_vfp_builtins.def: New file.
5428 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
5429 (arm-builtins.o): Likewise.
5431 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5434 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
5435 from constant while creating value range.
5437 2016-09-23 Renlin Li <renlin.li@arm.com>
5439 * ira.c (ira): Move ira_use_lra_p initialization code to ...
5440 (ira_init_once): Here.
5442 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
5443 Jakub Jelinek <jakub@redhat.com>
5445 * hooks.h (hook_uint_uintp_false): Rename to...
5446 (hook_bool_uint_uintp_false): ... this.
5447 * hooks.c (hook_uint_uintp_false): Rename to...
5448 (hook_bool_uint_uintp_false): ... this.
5449 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
5450 instead of hook_uint_uintp_false.
5452 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5454 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
5455 (arm_init_builtins): Move body of a loop to the standalone
5456 function arm_init_neon_builtin.
5457 (arm_expand_neon_builtin_1): New. Update comment. Function body
5458 moved from arm_neon_builtin with some white-space fixes.
5459 (arm_expand_neon_builtin): Move code into the standalone function
5460 arm_expand_neon_builtin_1.
5462 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5464 * config/arm/iterators.md (VCVTHI): New.
5465 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
5469 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
5470 (V_HALF): Add V4HF. Fix white-space.
5471 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
5472 (V_s_elem): Likewise.
5473 (V_sz_elem): Fix white-space.
5474 (V_elem_ch): Likewise.
5476 (scalar_mul_constraint): Add V8HF and V4HF.
5477 (Is_float_mode): Fix white-space.
5478 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
5479 (q): Add HF. Fix white-space.
5482 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
5483 (neon_vfm_lane_as): New.
5484 * config/arm/neon.md (add<mode>3_fp16): New.
5485 (sub<mode>3_fp16): New.
5486 (mul<mode>3add<mode>_neon): New.
5487 (fma<VH:mode>4_intrinsic): New.
5488 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
5489 (fmsub<VH:mode>4_intrinsic): New.
5490 (<absneg_str><mode>2): New.
5491 (neon_v<absneg_str><mode>): New.
5492 (neon_v<fp16_rnd_str><mode>): New.
5493 (neon_vrsqrte<mode>): New.
5494 (neon_vpaddv4hf): New.
5495 (neon_vadd<mode>): New.
5496 (neon_vsub<mode>): New.
5497 (neon_vmulf<mode>): New.
5498 (neon_vfma<VH:mode>): New.
5499 (neon_vfms<VH:mode>): New.
5500 (neon_vc<cmp_op><mode>): New.
5501 (neon_vc<cmp_op><mode>_fp16insn): New
5502 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
5503 (neon_vca<cmp_op><mode>): New.
5504 (neon_vca<cmp_op><mode>_fp16insn): New.
5505 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
5506 (neon_vc<cmp_op>z<mode>): New.
5507 (neon_vabd<mode>): New.
5508 (neon_v<maxmin>f<mode>): New.
5509 (neon_vp<maxmin>fv4hf: New.
5510 (neon_<fmaxmin_op><mode>): New.
5511 (neon_vrecps<mode>): New.
5512 (neon_vrsqrts<mode>): New.
5513 (neon_vrecpe<mode>): New (VH variant).
5514 (neon_vdup_lane<mode>_internal): New.
5515 (neon_vdup_lane<mode>): New.
5516 (neon_vcvt<sup><mode>): New (VCVTHI variant).
5517 (neon_vcvt<sup><mode>): New (VH variant).
5518 (neon_vcvt<sup>_n<mode>): New (VH variant).
5519 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
5520 (neon_vcvt<vcvth_op><sup><mode>): New.
5521 (neon_vmul_lane<mode>): New.
5522 (neon_vmul_n<mode>): New.
5523 * config/arm/unspecs.md (UNSPEC_VCALE): New
5524 (UNSPEC_VCALT): New.
5525 (UNSPEC_VFMA_LANE): New.
5526 (UNSPECS_VFMS_LANE): New.
5528 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5530 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
5531 ("*extzv<mode><clobbercc_or_nocc>"):
5532 Correct a typo in a comment.
5534 ("*insv<mode>_zEC12", "*insv<mode>_z10")
5535 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
5536 ("*insv<mode>_zEC12_appendbitsleft")
5537 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
5538 ("*insv<mode>_z10_appendbitsleft"): Ditto.
5539 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
5540 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
5541 Provide pattern with operands switched.
5542 ("*pre_z10_extv<mode>"):
5543 Use new subst patterns.
5544 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
5545 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
5546 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
5547 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
5548 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
5549 ("*<risbg_n>_sidi_ior_and_lshiftrt")
5550 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
5552 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
5553 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5554 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
5556 ("SINT"): New mode_iterator with SI, HI, QI.
5557 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
5558 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
5561 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5563 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
5564 new interface of s390_contiguous_bitmask_p.
5565 ("contiguous_bitmask_nowrap_operand"): New predicate.
5566 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
5567 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
5568 of s390_contiguous_bitmask_p.
5569 ("NxxDw"): Rename NxxDq constraint to NxxDw.
5570 ("NxxSw"): New constraint.
5571 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
5572 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
5574 (s390_contiguous_bitmask_nowrap_p): Export.
5575 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
5576 former s390_contiguous_bitmask_p.
5577 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
5578 detect contiguous bit ranges with wraparound. Change signature to
5579 return START and END position instead of POS and LENGTH.
5580 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
5581 ranges with wraparound.
5582 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
5583 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
5584 Adapt to new signature of s390_contiguous_bitmask_p.
5586 2016-09-23 Bin Cheng <bin.cheng@arm.com>
5588 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
5589 (create_intersect_range_checks): New.
5590 (vect_create_cond_for_alias_checks): Call above function.
5592 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5594 * config/arm/iterators.md (Code iterators): Fix some white-space
5598 (FCVT): Moved from vfp.md.
5599 (VCVT_HF_US_N): New.
5600 (VCVT_SI_US_N): New.
5605 (FCVTI32typename): Moved from vfp.md.
5606 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
5607 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
5608 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
5609 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
5610 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
5612 (fp16_rnd_str): New.
5613 (fp16_rnd_insn): New.
5614 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
5615 (UNSPEC_VCVT_HF_U_N): New.
5616 (UNSPEC_VCVT_SI_S_N): New.
5617 (UNSPEC_VCVT_SI_U_N): New.
5618 (UNSPEC_VCVTH_S): New.
5619 (UNSPEC_VCVTH_U): New.
5620 (UNSPEC_VCVTA_S): New.
5621 (UNSPEC_VCVTA_U): New.
5622 (UNSPEC_VCVTM_S): New.
5623 (UNSPEC_VCVTM_U): New.
5624 (UNSPEC_VCVTN_S): New.
5625 (UNSPEC_VCVTN_U): New.
5626 (UNSPEC_VCVTP_S): New.
5627 (UNSPEC_VCVTP_U): New.
5628 (UNSPEC_VCVTP_S): New.
5629 (UNSPEC_VCVTP_U): New.
5631 (UNSPEC_VRNDA): New.
5632 (UNSPEC_VRNDI): New.
5633 (UNSPEC_VRNDM): New.
5634 (UNSPEC_VRNDN): New.
5635 (UNSPEC_VRNDP): New.
5636 (UNSPEC_VRNDX): New.
5637 * config/arm/vfp.md (<absneg_str>hf2): New.
5639 (neon_v<fp16_rnd_str>hf): New.
5640 (neon_vrndihf): New.
5645 (*mulsf3neghf_vfp): New.
5646 (*negmulhf3_vfp): New.
5647 (*mulsf3addhf_vfp): New.
5648 (*mulhf3subhf_vfp): New.
5649 (*mulhf3neghfaddhf_vfp): New.
5650 (*mulhf3neghfsubhf_vfp): New.
5653 (fmsubhf4_fp16): New.
5657 (neon_vsqrthf): New.
5658 (neon_vrsqrtshf): New.
5659 (FCVT): Move to iterators.md.
5660 (FCVTI32typename): Likewise.
5661 (neon_vcvth<sup>hf): New.
5662 (neon_vcvth<sup>si): New.
5663 (neon_vcvth<sup>_nhf_unspec): New.
5664 (neon_vcvth<sup>_nhf): New.
5665 (neon_vcvth<sup>_nsi_unspec): New.
5666 (neon_vcvth<sup>_nsi): New.
5667 (neon_vcvt<vcvth_op>h<sup>si): New.
5668 (neon_<fmaxmin_op>hf): New.
5670 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5672 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
5673 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
5674 ("*insv<mode>_zEC12_appendbitsleft")
5675 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
5676 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
5678 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5680 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
5681 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
5682 construct values without normalization.
5683 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
5684 static local lhs_ops to vNULL.
5686 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5687 Jiong Wang <jiong.wang@arm.com>
5689 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
5690 available when FP16 instructions are available.
5691 (output_move_vfp): Add support for 16-bit data moves.
5692 (arm_validize_comparison): Fix some white-space. Support HFmode
5693 by conversion to SFmode.
5694 * config/arm/arm.md (truncdfhf2): Fix a comment.
5695 (extendhfdf2): Likewise.
5697 (movsicc): Fix some white-space.
5699 (movsfcc): Fix some white-space.
5701 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
5702 instructions are available.
5703 (*thumb2_movhi_vfp): Likewise.
5704 (*arm_movhi_fp16): New.
5705 (*thumb2_movhi_fp16): New.
5706 (*movhf_vfp_fp16): New.
5707 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
5708 (*movhf_vfp): Likewise.
5709 (extendhfsf2): Enable when VFP FP16 instructions are available.
5710 (truncsfhf2): Enable when VFP FP16 instructions are available.
5712 2016-09-23 Martin Liska <mliska@suse.cz>
5714 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
5716 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5718 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
5720 (arm_evpc_neon_vtrn): Likewise.
5721 (arm_evpc_neon_vrev): Likewise.
5722 (arm_evpc_neon_vext): Likewise.
5723 * config/arm/arm_neon.h (vbsl_f16): New.
5727 (vdup_lane_f16): New.
5728 (vdupq_lane_f16): New.
5741 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
5742 (vdup_lane): New (v8hf, v4hf variants).
5743 (vext): New (v8hf, v4hf variants).
5744 (vbsl): New (v8hf, v4hf variants).
5745 * config/arm/iterators.md (VDQWH): New.
5747 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
5748 (Scalar_mul_8_16): Fix white-space.
5749 (Is_d_reg): Add V4HF and V8HF.
5750 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
5751 (neon_vdup_lane<mode>): New.
5752 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
5753 (*neon_vtrn<mode>_insn): Likewise.
5754 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
5755 (*neon_vzip<mode>_insn): Likewise
5756 (neon_vuzp<mode>_internal): Likewise.
5757 (*neon_vuzp<mode>_insn): Likewise
5758 * config/arm/vec-common.md (vec_perm_const<mode>): New.
5760 2016-09-23 Jiong Wang <jiong.wang@arm.com>
5761 Matthew Wahab <matthew.wahab@arm.com>
5763 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
5764 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
5765 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
5766 available. Also fix some white-space.
5767 * config/arm/vfp.md (*arm_movhi_vfp): New.
5768 (*thumb2_movhi_vfp): New.
5770 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5772 * config/arm/arm-c.c (arm_cpu_builtins): Define
5773 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
5774 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
5776 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5778 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
5779 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
5780 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
5781 arm_v8_2a_fp16_neon_hw.
5782 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
5785 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5787 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
5788 arm_fp16_alternative_ok and arm_fp16_none_ok.
5790 2016-09-23 Martin Liska <mliska@suse.cz>
5792 * ipa-icf.c (sem_variable::merge): Replace adress with address.
5794 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5796 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
5798 ("armv8.2-a+fp16"): New.
5799 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
5800 (FL2_FP16INST): New.
5801 (FL2_FOR_ARCH8_2A): New.
5802 * config/arm/arm-tables.opt: Regenerate.
5803 * config/arm/arm.c (arm_arch8_2): New.
5804 (arm_fp16_inst): New.
5805 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
5806 for incompatible fp16-format settings.
5807 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
5808 (TARGET_NEON_FP16INST): New.
5809 (arm_arch8_2): Declare.
5810 (arm_fp16_inst): Declare.
5811 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
5812 march=armv8.2-a and march=armv8.2-a+fp16.
5813 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
5815 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
5816 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
5818 2016-09-23 Martin Liska <mliska@suse.cz>
5820 * doc/extend.texi: Remove fused-madd from i386 target options.
5822 2016-09-23 Martin Liska <mliska@suse.cz>
5824 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5827 2016-09-23 Martin Liska <mliska@suse.cz>
5829 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5832 2016-09-23 Martin Liska <mliska@suse.cz>
5835 * config/i386/i386.c (ix86_option_override_internal): Change
5836 signature and return false when there's an error related to
5838 (release_options_strings): New function.
5839 (ix86_valid_target_attribute_tree): Call the function.
5841 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5843 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
5844 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
5845 (gen_hsa_ctor_assignment): Likewise.
5846 * print-tree.c (print_node): Likewise.
5847 * tree-dump.c (dequeue_and_dump): Likewise.
5848 * tree-sra.c (sra_modify_constructor_assign): Likewise.
5849 * expr.c (store_constructor): Likewise.
5850 * fold-const.c (operand_equal_p): Likewise.
5851 * tree-pretty-print.c (dump_generic_node): Likewise.
5852 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
5853 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
5855 2016-09-23 Richard Biener <rguenther@suse.de>
5857 * hooks.h (hook_uint_uintp_false): Declare.
5859 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5861 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
5862 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
5864 2016-09-22 Martin Sebor <msebor@redhat.com>
5867 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
5868 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
5869 (target_int_min): Correct computation.
5870 (format_integer): Use long long as the argument for the ll length
5872 (format_floating): Use target_int_max().
5873 (get_string_length): Same.
5874 (format_string): Avoid setting the bounded flag for strings
5876 (try_substitute_return_value): Avoid setting range info when
5877 the result isn't bounded.
5878 * varasm.c (assemble_name): Increase buffer size.
5880 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
5881 Terry Guo <terry.guo@arm.com>
5883 * target.def (elf_flags_numeric): New target hook.
5884 * targhooks.h (default_asm_elf_flags_numeric): New.
5885 * varasm.c (default_asm_elf_flags_numeric): New.
5886 (default_elf_asm_named_section): Use new target hook.
5887 * config/arm/arm.opt (mpure-code): New.
5888 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
5889 * config/arm/arm.c (arm_asm_init_sections): Add section
5890 attribute to default text section if -mpure-code.
5891 (arm_option_check_internal): Diagnose use of option with
5892 non supported targets and/or options.
5893 (arm_asm_elf_flags_numeric): New.
5894 (arm_function_section): New.
5895 (arm_elf_section_type_flags): New.
5896 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
5898 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
5899 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
5901 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
5903 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
5905 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5907 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
5908 * rtl.h: Adjust prototype.
5910 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5912 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
5913 (prev_active_insn): Likewise.
5914 (active_insn_p): Likewise.
5915 * rtl.h: Adjust prototypes.
5916 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5917 * config/arc/arc.md: Likewise.
5918 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
5919 (branch_needs_nop_p): Likewise.
5920 (use_skip_p): Likewise.
5921 * config/sh/sh.c (gen_block_redirect): Likewise.
5922 (split_branches): Likewise.
5923 * reorg.c (optimize_skip): Likewise.
5924 (fill_simple_delay_slots): Likewise.
5925 (fill_slots_from_thread): Likewise.
5926 (relax_delay_slots): Likewise.
5927 * resource.c (mark_target_live_regs): Likewise.
5929 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5931 * config/cris/cris.c (cris_asm_output_case_end): Change argument
5933 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
5934 (prev_nonnote_nondebug_insn): Likewise.
5935 * config/cris/cris-protos.h: Adjust prototype.
5937 * jump.c (rtx_renumbered_equal_p): Adjust.
5939 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5941 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
5942 * rtl.h: Adjust prototype.
5943 * config/sh/sh.md: Adjust.
5944 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5946 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5948 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
5949 (prev_nondebug_insn): Likewise.
5950 * loop-doloop.c (doloop_condition_get): Likewise.
5951 * rtl.h: Adjust prototype.
5952 * cfgloop.h: Likewise.
5954 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5956 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
5957 (prev_nonnote_insn): Likewise.
5958 * jump.c (reversed_comparison_code_parts): Likewise.
5959 (reversed_comparison): Likewise.
5960 * rtl.h: Adjust prototypes.
5961 * config/arc/arc.md: Adjust.
5962 * cse.c (find_comparison_args): Likewise.
5963 * reorg.c (redundant_insn): Change return type to rtx_insn *.
5964 (fix_reg_dead_note): Change argument type to rtx_insn *.
5965 (delete_prior_computation): Likewise.
5966 (delete_computation): Likewise.
5967 (fill_slots_from_thread): Adjust.
5968 (relax_delay_slots): Likewise.
5969 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5970 (simplify_relational_operation_1): Likewise.
5971 (simplify_ternary_operation): Likewise.
5973 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5975 * config/arc/arc-protos.h (arc_label_align): Change type of
5976 variables from rtx to rtx_insn *.
5977 * config/arc/arc.c (arc_label_align): Likewise.
5978 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
5979 * config/bfin/bfin.c (workaround_speculation): Likewise.
5980 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
5981 (find_last_same_clock): Likewise.
5982 (reorg_split_calls): Likewise.
5983 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
5984 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
5985 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
5986 (same_cmp_following_p): Likewise.
5987 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
5988 (same_cmp_following_p): Likwise.
5989 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
5990 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
5991 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
5992 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
5993 (rl78_alloc_physical_registers_cmp): Likewise.
5994 (rl78_alloc_physical_registers_umul): Likewise.
5995 (rl78_calculate_death_notes): Likewise.
5996 * config/s390/s390-protos.h (s390_label_align): Likewise.
5997 * config/s390/s390.c (s390_label_align): Likewise.
5998 * config/sh/sh.c (barrier_align): Likewise.
5999 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
6000 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
6001 (emit_cbcond_nop): Likewise.
6003 2016-09-22 Martin Liska <mliska@suse.cz>
6006 * ipa-icf.c (sem_variable::merge): Yield merge operation if
6007 alias address matters, not necessarily address of original.
6009 2016-09-22 Richard Biener <rguenther@suse.de>
6012 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
6015 2016-09-22 Richard Biener <rguenther@suse.de>
6018 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
6019 from constant folding results.
6020 (gimple_resimplify2): Likewise.
6021 (gimple_resimplify3): Likewise.
6023 2016-09-22 Richard Biener <rguenther@suse.de>
6026 * expr.c (expand_expr_real_1): Guard array access against negative
6029 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6031 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
6033 (format_floating): Likewise.
6035 2016-09-22 Jakub Jelinek <jakub@redhat.com>
6038 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
6039 for all IFN_GOMP_SIMD_* internal fns, not just for
6040 IFN_GOMP_SIMD_ORDERED_*.
6042 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6045 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
6046 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
6047 instructions when you want to invert the test.
6048 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
6049 correct order for XXSEL.
6050 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
6051 for using XSCMP{EQ,GT,GE}DP.
6053 2016-09-21 David Malcolm <dmalcolm@redhat.com>
6055 * genconstants.c (main): Introduce noop_reader and convert call
6056 to read_md_files to a method call.
6057 * genenums.c (main): Likewise.
6058 * genmddeps.c (main): Likewise.
6059 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
6060 rtx_reader_ptr->get_top_level_filename ().
6061 (write_tm_preds_h): Likewise.
6062 (write_insn_preds_c): Likewise.
6063 * gensupport.c (class gen_reader): New subclass of rtx_reader.
6064 (rtx_handle_directive): Convert to...
6065 (gen_reader::handle_unknown_directive): ...this.
6066 (init_rtx_reader_args_cb): Convert return type from bool to
6067 rtx_reader *. Create a gen_reader instance, using it for the
6068 call to read_md_files. Return it if no errors occur.
6069 (init_rtx_reader_args): Convert return type from bool to
6071 * gensupport.h (init_rtx_reader_args_cb): Likewise.
6072 (init_rtx_reader_args_cb): Likewise.
6073 * read-md.c (struct file_name_list): Move to class rtx_reader.
6074 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
6075 (read_md_filename): Delete in favor of
6076 rtx_reader::m_read_md_filename.
6077 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
6078 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
6079 (base_dir): Delete in favor of rtx_reader::m_base_dir.
6080 (first_dir_md_include): Delete in favor of
6081 rtx_reader::m_first_dir_md_include.
6082 (last_dir_md_include_ptr): Delete in favor of
6083 rtx_reader::m_last_dir_md_include_ptr.
6084 (max_include_len): Delete.
6085 (rtx_reader_ptr): New.
6086 (fatal_with_file_and_line): Use get_filename and get_lineno
6087 accessors of rtx_reader_ptr.
6088 (require_char_ws): Likewise.
6089 (rtx_reader::read_char): New method, based on ::read_char.
6090 (rtx_reader::unread_char): New method, based on ::unread_char.
6091 (read_escape): Use get_filename and get_lineno accessors of
6093 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
6094 (read_string): Use get_filename and get_lineno accessors of
6096 (rtx_reader::rtx_reader): New ctor.
6097 (rtx_reader::~rtx_reader): New dtor.
6098 (handle_include): Convert from a function to...
6099 (rtx_reader::handle_include): ...this method, converting
6100 handle_directive from a callback to a virtual function.
6101 (handle_file): Likewise, converting to...
6102 (rtx_reader::handle_file): ...this method.
6103 (handle_toplevel_file): Likewise, converting to...
6104 (rtx_reader::handle_toplevel_file): ...this method.
6105 (rtx_reader::get_current_location): New method.
6106 (parse_include): Convert from a function to...
6107 (rtx_reader::add_include_path): ...this method, dropping redundant
6108 update to unused max_include_len.
6109 (read_md_files): Convert from a function to...
6110 (rtx_reader::read_md_files): ...this method, converting
6111 handle_directive from a callback to a virtual function.
6112 (noop_reader::handle_unknown_directive): New method.
6113 * read-md.h (directive_handler_t): Delete this typedef.
6115 (read_md_file): Delete.
6116 (read_md_lineno): Delete.
6117 (read_md_filename): Delete.
6118 (class rtx_reader): New class.
6119 (rtx_reader_ptr): New decl.
6120 (class noop_reader): New subclass of rtx_reader.
6121 (read_char): Reimplement in terms of rtx_reader::read_char.
6122 (unread_char): Reimplement in terms of rtx_reader::unread_char.
6123 (read_md_files): Delete.
6124 * read-rtl.c (read_rtx_code): Update for deletion of globals
6125 read_md_filename and read_md_lineno.
6127 2016-09-21 Jason Merrill <jason@redhat.com>
6129 * input.h (from_macro_definition_at): New.
6131 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
6133 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
6135 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6137 PR tree-optimization/77550
6138 * tree-vect-stmts.c (create_array_ref): Change parameters.
6139 (get_group_alias_ptr_type): New function.
6140 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
6142 2016-09-21 Marek Polacek <polacek@redhat.com>
6144 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
6145 Add falls through comment.
6147 2016-09-21 Richard Biener <rguenther@suse.de>
6149 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
6150 (replace_child): Likewise.
6151 (remove_child_TAG): Adjust.
6152 (move_marked_base_types): Likewise.
6153 (prune_unused_types_prune): Clear die_sib of removed children.
6155 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
6158 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
6159 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
6161 2016-09-21 Richard Biener <rguenther@suse.de>
6163 PR tree-optimization/77648
6164 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
6166 (make_transitive_closure_constraints): Adjust comment.
6167 (make_any_offset_constraints): New function.
6168 (handle_rhs_call): Make sure to first expand a pointer to all
6169 subfields before transitively closing it.
6170 (handle_const_call): Likewise. Properly expand returned
6172 (handle_pure_call): Likewise.
6174 2016-09-21 Richard Biener <rguenther@suse.de>
6175 Jakub Jelinek <jakub@redhat.com>
6177 PR tree-optimization/77621
6178 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
6179 group at non-vectorizable stmts.
6181 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6183 PR tree-optimization/72835
6184 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
6185 (make_new_ssa_for_all_defs): Likewise.
6186 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
6188 2016-09-20 Martin Sebor <msebor@redhat.com>
6191 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
6192 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
6193 * config/linux.c (gnu_libc_printf_pointer_format): New function.
6194 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
6195 * config/sol2.c (solaris_printf_pointer_format): New function.
6196 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
6198 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
6199 * doc/tm.texi: Regenerate.
6200 * gimple-fold.h (get_range_strlen): New function.
6201 (get_maxval_strlen): Declare existing function.
6202 * gimple-fold.c (get_range_strlen): Add arguments and compute both
6203 maximum and minimum.
6204 (get_range_strlen): Define overload.
6205 (get_maxval_strlen): Adjust.
6206 * gimple-ssa-sprintf.c: New file and pass.
6207 * passes.def (pass_sprintf_length): Add new pass.
6208 * targhooks.h (default_printf_pointer_format): Declare new function.
6209 (gnu_libc_printf_pointer_format): Same.
6210 (solaris_libc_printf_pointer_format): Same.
6211 * targhooks.c (default_printf_pointer_format): Define new function.
6212 * tree-pass.h (make_pass_sprintf_length): Declare new function.
6213 * print-tree.c: Increase buffer size.
6215 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6217 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
6219 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6221 * common.opt: New option -fipa-vrp.
6222 * ipa-cp.c (ipa_get_vr_lat): New.
6223 (ipcp_vr_lattice::print): Likewise.
6224 (print_all_lattices): Call ipcp_vr_lattice::print.
6225 (ipcp_vr_lattice::meet_with): New.
6226 (ipcp_vr_lattice::meet_with_1): Likewise.
6227 (ipcp_vr_lattice::top_p): Likewise.
6228 (ipcp_vr_lattice::bottom_p): Likewsie.
6229 (ipcp_vr_lattice::set_to_bottom): Likewise.
6230 (set_all_contains_variable): Call VR set_to_bottom.
6231 (initialize_node_lattices): Init VR lattices.
6232 (propagate_vr_accross_jump_function): New.
6233 (propagate_constants_accross_call): Call
6234 propagate_vr_accross_jump_function.
6235 (ipcp_store_vr_results): New.
6236 (ipcp_driver): Handle VR.
6237 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
6238 (ipa_set_jf_unknown): Likewise.
6239 (ipa_compute_jump_functions_for_edge): Likewise.
6240 (ipa_node_params_t::duplicate): Likewise.
6241 (ipa_write_jump_function): Likewise.
6242 (ipa_read_jump_function): Likewise.
6243 (write_ipcp_transformation_info): Likewise.
6244 (read_ipcp_transformation_info): Likewise.
6245 (ipcp_update_vr): New.
6246 (ipcp_transform_function): Handle VR.
6247 * ipa-prop.h (struct ipa_vr): New.
6248 * cgraph.c: Include tree-vrp.h.
6249 * cgraphunit.c: Likewise.
6250 * ipa-utils.c: Likewise.
6253 * toplev.c: Likewise.
6254 * ipa-devirt.c: Likewise.
6255 * ipa-inline-transform.c: Likewise.
6256 * ipa-inline.c: Likewise.
6257 * ipa-profile.c: Likewise.
6259 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6261 * doc/invoke.texi: Document -fdump-tree-evrp.
6262 * passes.def: Define new pass_early_vrp.
6263 * timevar.def: Define new TV_TREE_EARLY_VRP.
6264 * tree-pass.h (make_pass_early_vrp): New.
6265 * tree-ssa-propagate.c: Make replace_uses_in non static.
6266 * tree-ssa-propagate.h: Export replace_uses_in.
6267 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
6268 (extract_range_from_assert): Factor out
6269 extract_range_for_var_from_comparison_expr.
6270 (vrp_initialize_lattice): New.
6271 (vrp_initialize): Factor out vrp_initialize_lattice.
6272 (vrp_valueize): Fix it to reject complex value ranges.
6273 (vrp_free_lattice): New.
6274 (evrp_dom_walker::before_dom_children): Likewise.
6275 (evrp_dom_walker::after_dom_children): Likewise.
6276 (evrp_dom_walker::push_value_range): Likewise.
6277 (evrp_dom_walker::pop_value_range): Likewise.
6278 (execute_early_vrp): Likewise.
6279 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
6280 (make_pass_early_vrp): New.
6282 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6284 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
6285 instead of exact_log2.
6287 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6290 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
6291 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
6292 (ix86_add_stmt_cost): Penalize DFmode vector operations
6293 for !TARGET_VECTORIZE_DOUBLE.
6295 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
6297 * doc/invoke.texi (Warning Options): Simplify language.
6298 (Optimize Options): Complete sentence.
6300 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
6302 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
6305 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6308 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
6309 inits on power8 and above, use the VMRGEW instruction instead of a
6312 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
6313 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
6316 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6318 * config/aarch64/arm_neon.h
6319 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
6320 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
6321 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
6323 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6325 * config/var/vax.h (ELIMINABLE_REGS): Define.
6326 (INITIAL_ELIMINATION_OFFSET): Define.
6328 2016-09-20 Jakub Jelinek <jakub@redhat.com>
6331 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
6332 cast to void * if the cast is from some other pointer type.
6334 2016-09-20 Richard Biener <rguenther@suse.de>
6336 PR tree-optimization/77646
6337 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
6340 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6342 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
6343 attributes to all inlined functions and make them extern.
6345 2016-09-20 Richard Biener <rguenther@suse.de>
6347 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
6349 * debug.c (do_nothing_debug_hooks): Adjust.
6350 * dbxout.c (dbx_debug_hooks): Likewise.
6351 * sdbout.c (sdb_debug_hooks): Likewise.
6352 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
6353 (dwarf2out_finish): Move producer, filename and
6355 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
6356 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
6358 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6361 * doc/invoke.texi: Document -Wint-in-bool-context.
6364 * dwarf2out.c (output_loc_operands): Fix an assertion.
6366 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6368 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
6369 (CR_DECIMAL_DIG): New macro.
6371 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6373 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
6376 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
6378 PR rtl-optimization/77416
6379 * lra-remat.c (operand_to_remat): Process hard coded insn
6382 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6384 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
6385 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
6387 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
6389 * target.def (lra_p): Wordsmithing.
6390 * doc/tm.texi: Regenerate.
6392 2016-09-19 Jakub Jelinek <jakub@redhat.com>
6393 Jan Hubicka <jh@suse.cz>
6396 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
6397 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
6398 Call ultimate_alias_target just once, not up to 4 times.
6400 2016-09-19 Richard Biener <rguenther@suse.de>
6402 * dwarf2out.c (early_dwarf_finished): New global.
6403 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
6405 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
6406 if called from LTO exit early.
6407 (dwarf2out_late_global_decl): When being during the early
6408 debug phase do not add locations but only const value attributes.
6409 Adjust the way we generate early DIEs for LTO.
6411 2016-09-19 Richard Biener <rguenther@suse.de>
6414 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
6415 proper niter to bound the loops.
6417 2016-09-19 Richard Biener <rguenther@suse.de>
6419 PR tree-optimization/77514
6420 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
6421 search for folded stmt.
6423 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
6425 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
6426 * tree-pass.h (make_pass_early_thread_jumps): Declare.
6427 * tree-ssa-threadbackward.c (fsm_find_thread_path,
6428 fsm_find_thread_path, profitable_jump_thread_path,
6429 fsm_find_control_statement_thread_paths,
6430 find_jump_threads_backwards): Add speed_p parameter.
6431 (pass_data_early_thread_jumps): New pass.
6432 (make_pass_early_thread_jumps): New function.
6434 2016-09-17 Andreas Schwab <schwab@suse.de>
6436 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
6437 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6439 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
6441 * recog.c (rest_of_handle_split_after_reload): Delete.
6442 (pass_split_after_reload::gate): New method.
6443 (pass_split_after_reload::execute): Call split_all_insns directly.
6445 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
6447 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
6448 parameters for functions taking long long arguments.
6450 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6453 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
6454 splat with truncate.
6456 2016-09-16 Jason Merrill <jason@redhat.com>
6458 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
6460 * hwint.c (exact_log2): Use pow2p_hwi.
6461 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
6462 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
6463 * builtins.c (get_object_alignment_2, get_object_alignment)
6464 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
6466 * calls.c (compute_argument_addresses, store_one_arg): Use
6468 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
6469 * combine.c (force_to_mode): Use least_bit_hwi.
6470 (contains_muldiv, find_split_point, combine_simplify_rtx)
6471 (simplify_if_then_else, simplify_set, force_to_mode)
6472 (if_then_else_cond, simplify_and_const_int_1)
6473 (simplify_compare_const): Use pow2p_hwi.
6474 * cse.c (fold_rtx): Use pow2p_hwi.
6475 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
6477 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
6478 (init_expmed_one_conv): Use pow2p_hwi.
6479 * expr.c (is_aligning_offset): Use pow2p_hwi.
6480 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
6481 (fold_binary_loc): Use pow2p_hwi.
6482 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
6483 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
6484 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
6485 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
6487 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
6488 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
6489 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
6490 * omp-low.c (oacc_loop_fixed_partitions)
6491 (oacc_loop_auto_partitions): Use least_bit_hwi.
6492 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
6493 * stor-layout.c (place_field): Use least_bit_hwi.
6494 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
6495 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
6496 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
6497 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
6498 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
6499 * tree-vect-data-refs.c (vect_analyze_group_access_1)
6500 (vect_grouped_store_supported, vect_grouped_load_supported)
6501 (vect_permute_load_chain, vect_shift_permute_load_chain)
6502 (vect_transform_grouped_load): Use pow2p_hwi.
6503 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
6504 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
6505 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
6507 * tsan.c (instrument_expr): Use least_bit_hwi.
6508 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
6510 2016-09-16 Andreas Schwab <schwab@suse.de>
6512 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
6514 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6516 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6519 * combine.c (rest_of_handle_combine): If any edges have been purged,
6520 free dominators if available.
6522 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6523 Eric Botcazou <ebotcazou@adacore.com>
6526 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
6527 through into expand_addsub_overflow after expand_neg_overflow.
6529 2016-09-15 David Malcolm <dmalcolm@redhat.com>
6531 * diagnostic-show-locus.c
6532 (selftest::test_fixit_insert_containing_newline): New function.
6533 (selftest::test_fixit_replace_containing_newline): New function.
6534 (selftest::diagnostic_show_locus_c_tests): Call the above.
6536 2016-09-15 Bin Cheng <bin.cheng@arm.com>
6538 PR tree-optimization/77503
6539 * tree-vect-loop.c (vectorizable_reduction): Record reduction
6540 code for CONST_COND_REDUCTION at analysis stage and use it at
6542 * tree-vectorizer.h (struct _stmt_vec_info): New field.
6543 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
6544 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
6547 2016-09-15 Richard Biener <rguenther@suse.de>
6550 * fold-const.c (split_tree): Do not split constant ~X.
6552 2016-09-15 Jakub Jelinek <jakub@redhat.com>
6554 PR rtl-optimization/77425
6555 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
6559 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
6560 use %qs instead of %s where desirable, use argument instead of arg in
6561 the diagnostic wording, add list of supported strategies and
6563 (ix86_option_override_internal): Emit target("m...") instead of
6564 option("m...") in the diagnostic. Use %qs instead of %s in invalid
6565 -march/-mtune option diagnostic. Add list of supported arches/tunings
6566 and spellcheck hint. Remove prefix, suffix and sw variables, use
6567 main_args_p ? "..." : "..." in diagnostics to make translation
6570 2016-09-15 Richard Biener <rguenther@suse.de>
6572 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
6573 extra offset argument.
6574 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
6575 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
6576 to reflect new offset parameter.
6577 * doc/tm.texi: Regenerate.
6578 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6579 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
6581 (darwin_asm_output_dwarf_offset): Likewise.
6582 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
6584 (darwin_asm_output_dwarf_offset): Pass offset argument through.
6585 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6586 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6588 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
6591 * ipa-icf.c (set_alias_uids): New function.
6592 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
6593 all the merged variable's referring aliases.
6595 2016-09-15 Richard Biener <rguenther@suse.de>
6597 PR tree-optimization/77514
6598 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
6599 only forced_stmts sequence.
6601 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
6603 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
6604 * cfgexpand.c (update_alias_info_with_stack_vars): Use
6605 FOR_EACH_SSA_NAME to iterate over SSA variables.
6606 (pass_expand::execute): Likewise.
6607 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
6608 * tree-cfg.c (dump_function_to_file): Likewise.
6609 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
6610 (update_ssa): Likewise.
6611 * tree-ssa-alias.c (dump_alias_info): Likewise.
6612 * tree-ssa-ccp.c (ccp_finalize): Likewise.
6613 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
6614 (create_outofssa_var_map): Likewise.
6615 (coalesce_ssa_name): Likewise.
6616 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
6617 * tree-ssa-pre.c (compute_avail): Likewise.
6618 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6619 (scc_vn_restore_ssa_info): Likewise.
6620 (free_scc_vn): Likwise.
6621 (run_scc_vn): Likewise.
6622 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
6623 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
6624 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6625 * tree-ssa.c (verify_ssa): Likewise.
6627 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
6629 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
6630 and mips64r2 as default 32-bit and 64-bit architectures.
6631 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
6632 as default 32-bit and 64-bit architectures.
6634 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
6636 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
6639 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6641 * target.def (lra_p): Change commentary (for the manual) for the
6643 * doc/tm.texi: Regenerate.
6645 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6647 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
6648 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
6649 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
6650 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
6652 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6654 * targhooks.c (default_lra_p): Return true instead of false.
6656 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6658 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
6659 hook_bool_void_false.
6660 * config/avr/avr.c: Ditto.
6661 * config/bfin/bfin.c: Ditto.
6662 * config/c6x/c6x.c: Ditto.
6663 * config/cr16/cr16.c: Ditto.
6664 * config/cris/cris.c: Ditto.
6665 * config/epiphany/epiphany.c: Ditto.
6666 * config/fr30/fr30.c: Ditto.
6667 * config/frv/frv.c: Ditto.
6668 * config/h8300/h8300.c: Ditto.
6669 * config/ia64/ia64.c: Ditto.
6670 * config/iq2000/iq2000.c: Ditto.
6671 * config/lm32/lm32.c: Ditto.
6672 * config/m32c/m32c.c: Ditto.
6673 * config/m32r/m32r.c: Ditto.
6674 * config/m68k/m68k.c: Ditto.
6675 * config/mcore/mcore.c: Ditto.
6676 * config/microblaze/microblaze.c: Ditto.
6677 * config/mmix/mmix.c: Ditto.
6678 * config/mn10300/mn10300.c: Ditto.
6679 * config/moxie/moxie.c: Ditto.
6680 * config/msp430/msp430.c: Ditto.
6681 * config/nios2/nios2.c: Ditto.
6682 * config/nvptx/nvptx.c: Ditto.
6683 * config/pa/pa.c: Ditto.
6684 * config/pdp11/pdp11.c: Ditto.
6685 * config/rl78/rl78.c: Ditto.
6686 * config/sparc/sparc.c: Ditto.
6687 * config/spu/spu.c: Ditto.
6688 * config/stormy16/stormy16.c: Ditto.
6689 * config/tilegx/tilegx.c: Ditto.
6690 * config/tilepro/tilepro.c: Ditto.
6691 * config/v850/v850.c: Ditto.
6692 * config/vax/vax.c: Ditto.
6693 * config/visium/visium.c: Ditto.
6694 * config/xtensa/xtensa.c: Ditto.
6696 2016-09-14 Jakub Jelinek <jakub@redhat.com>
6699 * tsan.c: Include target.h.
6700 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
6701 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
6702 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
6703 BUILT_IN_ATOMIC_TEST_AND_SET entries.
6704 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
6706 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6707 Martin Liska <mliska@suse.cz>
6710 * predict.c (force_edge_cold): Add braces to a condition.
6712 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
6714 PR rtl-optimization/77289
6715 * lra-constraints.c (get_final_hard_regno): Removed.
6716 (get_hard_regno): Add new parameter final_p.
6717 (get_reg_class): Directly call lra_get_elimination_hard_regno.
6718 (operands_match_p): Adjust call to get_hard_regno.
6719 (uses_hard_regs_p): Likewise.
6720 (process_alt_operands): Likewise.
6722 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
6725 * config/msp430/msp430.c (msp430_start_function): Emit an error
6726 if a function is both weak and specifies an interrupt number.
6728 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6730 PR tree-optimization/77454
6731 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
6732 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
6735 2016-09-13 Tamar Christina <tamar.christina@arm.com>
6737 * config/aarch64/aarch64-builtins.c
6738 (aarch64_init_simd_builtins): Fix builtin type signature printing.
6740 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
6742 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
6743 SFmode and SCmode arguments by reference.
6745 2016-09-13 David Malcolm <dmalcolm@redhat.com>
6747 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
6749 (selftest::test_one_liner_fixit_insert_before): ...this, and update
6750 for renaming of add_fixit_insert to add_fixit_insert_before.
6751 (selftest::test_one_liner_fixit_insert_after): New function.
6752 (selftest::test_one_liner_fixit_validation_adhoc_locations):
6753 Update for renaming of add_fixit_insert to add_fixit_insert_before.
6754 (selftest::test_one_liner_many_fixits): Likewise.
6755 (selftest::test_diagnostic_show_locus_one_liner): Update for
6756 renaming, call new test function.
6757 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
6758 renaming of add_fixit_insert to add_fixit_insert_before.
6759 (selftest::test_fixit_consolidation): Likewise.
6760 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
6762 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
6763 (selftest::test_applying_fixits_insert_before): ...this.
6764 (selftest::test_applying_fixits_insert): Update for renaming of
6765 add_fixit_insert to add_fixit_insert_before.
6766 (selftest::test_applying_fixits_insert_after): New function.
6767 (selftest::test_applying_fixits_insert_after_at_line_end): New
6769 (selftest::test_applying_fixits_insert_after_failure): New function.
6770 (selftest::test_applying_fixits_multiple): Update for renaming of
6771 add_fixit_insert to add_fixit_insert_before.
6772 (selftest::change_line): Likewise.
6773 (selftest::test_applying_fixits_unreadable_file): Likewise.
6774 (selftest::test_applying_fixits_line_out_of_range): Likewise.
6775 (selftest::test_applying_fixits_column_validation): Likewise.
6776 (selftest::test_applying_fixits_column_validation): Likewise.
6777 (selftest::edit_context_c_tests): Update for renamed test function;
6778 call new test functions.
6780 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
6782 PR tree-optimization/77536
6783 PR rtl-optimization/68212
6784 * config/rs6000/rs6000.md (div->recip splitter): Remove
6785 optimize_insn_for_speed_p condition.
6787 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
6789 * optabs.c (prepare_cmp_insn): Update documentation comment.
6791 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6792 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6795 * opts.h (candidates_list_and_hint): Declare.
6796 * opts-common.c (candidates_list_and_hint): New function.
6797 (cmdline_handle_error): Use it.
6799 2016-09-12 David Malcolm <dmalcolm@redhat.com>
6801 * edit-context.c (edited_line::get_len): New accessor.
6802 (edited_file::print_diff): Split out hunk-printing into...
6803 (edited_file::print_diff_hunk): New method.
6804 (edited_file::print_diff_line): New method.
6806 2016-09-12 Andrew Pinski <apinski@cavium.com>
6808 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
6810 * config/aarch64/aarch64.c (thunderx_tunings): Enable
6811 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
6812 (aarch64_operands_ok_for_ldpstp): Return false if
6813 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
6814 was SImode and the alignment is less than 8 byte.
6815 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6817 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
6820 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
6822 2016-09-12 Marek Polacek <polacek@redhat.com>
6824 * doc/extend.texi: Use lowercase "boolean".
6825 * doc/invoke.texi: Likewise.
6826 * doc/md.texi: Likewise.
6827 * target.def: Likewise.
6828 * doc/tm.texi: Regenerated.
6830 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6833 * expmed.c (synth_mult): Delete duplicate mode check.
6835 2016-09-10 Tom de Vries <tom@codesourcery.com>
6838 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
6840 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
6841 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
6843 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
6845 PR rtl-optimization/77289
6846 * lra-constraints.c (get_final_hard_regno): Add support for non hard
6847 register numbers. Remove support for subregs.
6848 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
6849 (get_reg_class): Delete removed get_final_hard_regno() argument.
6850 (uses_hard_regs_p): Call get_final_hard_regno().
6852 2016-09-09 Martin Sebor <msebor@redhat.com>
6856 * pretty-print.c (pp_quoted_string): New function.
6857 (pp_format): Call it for %c and %s directives.
6859 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
6861 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
6862 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
6863 INITIAL_ELIMINATION_OFFSET) : Update documentation.
6864 * target.def (frame_pointer_required, can_eliminate): Likewise.
6865 * doc/tm.texi: Regenerated.
6866 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
6868 * df-scan.c (df_hard_reg_init): Likewise.
6869 * ira.c (ira_setup_eliminable_regset): Likewise.
6870 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
6871 init_elim_table): Likewise.
6872 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
6873 set_initial_elim_offsets, update_eliminables,
6874 init_elim_table): Likewise.
6875 * rtlanal.c (get_initial_register_offset): Likewise.
6876 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6877 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6878 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6879 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6880 * config/fr30/fr30.h: Fix comment.
6881 * config/frv/frv.c: Likewise.
6882 * config/frv/frv.h: Likewise.
6883 * config/ft32/ft32.h: Likewise.
6884 * config/visium/visium.h: Likewise.
6885 * config/pa/pa64-linux.h: Likewise.
6886 * config/v850/v850.h: Likewise.
6887 * config/cris/cris.c: Likewise.
6888 * config/ia64/ia64.h: Likewise.
6889 * config/moxie/moxie.h: Likewise.
6890 * config/m32r/m32r.h: Likewise.
6892 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6895 * config.in: Regenerate.
6896 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
6898 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
6899 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
6900 static-libmpxwrappers case.
6901 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
6902 MPX_LD_AS_NEEDED_GUARD_POP.
6903 * configure: Regenerate.
6904 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
6905 defined if linker support "--push-state"/"--pop-state".
6907 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6909 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
6911 2016-09-09 Joseph Myers <joseph@codesourcery.com>
6913 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
6914 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
6915 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
6916 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
6917 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
6918 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
6919 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
6921 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
6922 width macros from TS 18661-1.
6923 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
6925 2016-09-08 Jakub Jelinek <jakub@redhat.com>
6928 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
6929 OMP_CLAUSE_SAFELEN_EXPR.
6931 2016-09-07 David Malcolm <dmalcolm@redhat.com>
6933 * Makefile.in (OBJS): Add substring-locations.o.
6934 * langhooks-def.h (class substring_loc): New forward decl.
6935 (lhd_get_substring_location): New decl.
6936 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
6937 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
6938 * langhooks.c (lhd_get_substring_location): New function.
6939 * langhooks.h (class substring_loc): New forward decl.
6940 (struct lang_hooks): Add field get_substring_location.
6941 * substring-locations.c: New file, taking definition of
6942 format_warning_va and format_warning_at_substring from
6943 c-family/c-format.c, making them non-static.
6944 * substring-locations.h (class substring_loc): Move class here
6945 from c-family/c-common.h. Add and rewrite comments.
6946 (format_warning_va): New decl.
6947 (format_warning_at_substring): New decl.
6948 (get_source_location_for_substring): Add comment.
6950 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
6952 * config/i386/i386.c: Add 'U' suffix to processor feature bits
6953 to avoid -Wnarrowing warning.
6954 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
6955 * opts.c: Likewise for SANITIZER_OPT bitmasks.
6957 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
6959 * config/aarch64/aarch64.c (aarch64_legitimize_address):
6960 Avoid use of base_offset if offset already in range.
6962 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
6964 * config/sh/sh-protos.h (struct sh_atomic_model,
6965 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6966 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6967 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
6968 * config/sh/sh.h (struct sh_atomic_model,
6969 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6970 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6971 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
6972 Guard with __cplusplus.
6974 2016-09-06 Jakub Jelinek <jakub@redhat.com>
6977 * config/i386/i386.c (ix86_expand_builtin): For builtin with
6978 unsupported or unknown ISA, use expand_call.
6980 2016-09-06 Martin Liska <mliska@suse.cz>
6982 PR gcov-profile/77378
6983 PR gcov-profile/77466
6984 * tree-profile.c (tree_profiling): Detect whether target can use
6985 -fprofile-update=atomic.
6987 2016-09-06 Richard Biener <rguenther@suse.de>
6989 PR tree-optimization/77479
6990 * tree-vrp.c (update_value_range): Extend overflow handling to
6993 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6996 * config/i386/i386.md (isa): Add x64_avx512bw.
6997 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
6998 (kmov_isa): New mode attr.
6999 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
7000 (*zero_extend<mode>si2): Likewise.
7001 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
7003 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
7005 * doc/invoke.texi (SPU Options): nops -> NOPs.
7006 (x86 Options): Ditto.
7008 2016-09-05 Jakub Jelinek <jakub@redhat.com>
7011 * toplev.c (process_options): Temporarily set input_location
7012 to UNKNOWN_LOCATION around targetm.target_option.override () call.
7014 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
7016 PR rtl-optimization/77452
7017 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
7018 inner-mode reference to a CONST_VECTOR constant in the constant pool.
7020 2016-09-05 Marek Polacek <polacek@redhat.com>
7023 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
7025 2016-09-05 Jakub Jelinek <jakub@redhat.com>
7028 * gensupport.c (alter_output_for_subst_insn): Remove redundant
7029 *insn_out == '*' test. Don't copy unnecessary to yet another
7030 memory buffer, and don't leak it.
7032 PR rtl-optimization/77425
7033 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
7035 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
7037 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
7039 2016-09-02 David Malcolm <dmalcolm@redhat.com>
7041 * common.opt (fdiagnostics-generate-patch): New option.
7042 * diagnostic.c: Include "edit-context.h".
7043 (diagnostic_initialize): Initialize context->edit_context_ptr.
7044 (diagnostic_finish): Delete context->edit_context_ptr.
7045 (diagnostic_report_diagnostic): Add fix-it hints from the
7046 diagnostic to context->edit_context_ptr, if any.
7047 * diagnostic.h (class edit_context): Add forward decl.
7048 (struct diagnostic_context): Add field "edit_context_ptr".
7049 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7050 -fdiagnostics-generate-patch.
7051 (-fdiagnostics-generate-patch): New item.
7052 * toplev.c: Include "edit-context.h".
7053 (process_options): Set global_dc->edit_context_ptr to a new
7054 edit_context if the options need one.
7055 (toplev::main): Handle -fdiagnostics-generate-patch by using
7056 global_dc->edit_context_ptr.
7058 2016-09-02 Jakub Jelinek <jakub@redhat.com>
7061 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
7062 map and firstprivate clauses on target construct for _Atomic
7064 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
7065 on target construct for _Atomic qualified decls.
7066 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
7068 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
7069 _Atomic qualified arguments not mentioned in uniform clause.
7071 2016-09-02 David Malcolm <dmalcolm@redhat.com>
7073 * Makefile.in (OBJS-libcommon): Add edit-context.o.
7074 * diagnostic-color.c (color_dict): Add "diff-filename",
7075 "diff-hunk", "diff-delete", and "diff-insert".
7076 (parse_gcc_colors): Update default value of GCC_COLORS in comment
7077 to reflect above changes.
7078 * doc/invoke.texi (-fdiagnostics-color): Update description of
7079 default GCC_COLORS, and of the supported capabilities.
7080 * edit-context.c: New file.
7081 * edit-context.h: New file.
7082 * input.c (struct fcache): Add field "missing_trailing_newline".
7083 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
7085 (add_file_to_cache_tab): Likewise.
7086 (fcache::fcache): Likewise.
7087 (get_next_line): Update c->missing_trailing_newline.
7088 (location_missing_trailing_newline): New function.
7089 * input.h (location_missing_trailing_newline): New decl.
7090 * selftest-run-tests.c (selftest::run_tests): Call
7091 edit_context_c_tests.
7092 * selftest.h (edit_context_c_tests): New decl.
7094 2016-09-02 Jakub Jelinek <jakub@redhat.com>
7095 Richard Biener <rguenth@suse.de>
7097 PR tree-optimization/77444
7098 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
7099 as steptype, remove redundant initialization.
7101 2016-09-02 Jakub Jelinek <jakub@redhat.com>
7104 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
7105 (sanopt_optimize_walker): Optimize away
7106 __asan_before_dynamic_init (...) followed by
7107 __asan_after_dynamic_init () without intervening memory loads/stores.
7108 * ipa-pure-const.c (special_builtin_state): Handle
7109 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
7110 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
7112 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7114 * cfg.c (free_original_copy_tables): Replace second assignment of
7115 bb_copy = NULL by bb_original = NULL.
7117 2016-09-02 Jakub Jelinek <jakub@redhat.com>
7120 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
7121 assignment added in r216794.
7123 2016-09-02 David Malcolm <dmalcolm@redhat.com>
7125 * Makefile.in (OBJS): Add typed-splay-tree.o.
7126 * selftest-run-tests.c (selftest::run_tests): Call
7127 typed_splay_tree_c_tests.
7128 * selftest.h (typed_splay_tree_c_tests): New decl.
7129 * typed-splay-tree.c: New file.
7130 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
7131 (typed_splay_tree::max): New method.
7132 (typed_splay_tree::min): New method.
7133 (typed_splay_tree::foreach): New method.
7134 (typed_splay_tree::closure): New struct.
7135 (typed_splay_tree::inner_foreach_fn): New function.
7137 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7139 * ipa-cp.c (ipcp_store_bits_results): Change option name from
7140 -fipa-cp-bit to -fipa-bit-cp.
7142 2016-09-01 Martin Sebor <msebor@redhat.com>
7144 PR tree-optimization/71831
7145 * tree-object-size.h: Return bool instead of the size and add
7146 argument for the size.
7147 * tree-object-size.c (compute_object_offset): Update signature.
7148 (addr_object_size): Same.
7149 (compute_builtin_object_size): Return bool instead of the size
7150 and add argument for the size. Handle POINTER_PLUS_EXPR when
7151 optimization is disabled.
7152 (expr_object_size): Adjust.
7153 (plus_stmt_object_size): Adjust.
7154 (pass_object_sizes::execute): Adjust.
7155 * builtins.c (fold_builtin_object_size): Adjust.
7156 * doc/extend.texi (Object Size Checking): Update.
7157 * ubsan.c (instrument_object_size): Adjust.
7159 2016-09-01 Martin Sebor <msebor@redhat.com>
7161 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
7162 it fits the output of the formatted function regardless of its
7164 * genmodes.c (parser::parse_expr): Same.
7165 * gimplify.c (gimplify_asm_expr): Same.
7166 * passes.c (pass_manager::register_one_dump_file): Same.
7167 * print-tree.c (print_node): Same.
7169 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7171 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
7173 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7175 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
7177 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7179 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
7180 * config/rs6000/vector.md: Ditto.
7181 * config/rs6000/vsx.md: Ditto.
7183 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
7185 * ipa-inline-analysis.c (param_change_prob): Get to the base object
7188 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7190 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
7191 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
7192 *return_and_restore_gpregs_<mode>_r11,
7193 *return_and_restore_gpregs_<mode>_r12,
7194 *return_and_restore_gpregs_<mode>_r1,
7195 *return_and_restore_fpregs_<mode>_r11,
7196 *return_and_restore_fpregs_<mode>_r12,
7197 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
7198 directly instead of via the "l" constraint. Renumber operands.
7201 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7203 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
7204 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
7205 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
7206 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
7207 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
7208 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
7209 *call_value_nonlocal_darwin64, reload_macho_picbase,
7210 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
7211 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
7212 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
7213 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
7214 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
7215 *save_fpregs_<mode>_r1): Ditto.
7216 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
7217 *return_and_restore_gpregs_spe): Ditto.
7219 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7221 * config/rs6000/rs6000.md
7222 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
7223 the use of the link register.
7224 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
7226 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7227 Michael Meissner <meissner@linux.vnet.ibm.com>
7230 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
7231 reg+reg addressing for TImode.
7232 (rs6000_legitimate_address_p): Only allow register indirect
7233 addressing for TImode, even without TARGET_QUAD_MEMORY.
7235 2016-09-01 Richard Biener <rguenther@suse.de>
7238 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
7239 check whether the result fits the desired result type.
7241 2016-09-01 Nathan Sidwell <nathan@acm.org>
7243 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
7245 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
7247 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
7249 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
7251 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7253 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
7254 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
7255 for comparisons of integer ZERO_EXTEND against zero.
7257 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
7259 * config/i386/i386.c (ix86_option_override_internal): Also disable the
7260 STV pass if -mstackrealign is enabled.
7262 2016-08-31 Ilya Verbin <iverbin@gmail.com>
7264 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
7267 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7269 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
7270 (layout_range::intersects_line_p): New method.
7271 (test_range_contains_point_for_single_point): Rename to...
7272 (test_layout_range_for_single_point): ...this, and add testing
7273 for layout_range::intersects_line_p.
7274 (test_range_contains_point_for_single_line): Rename to...
7275 (test_layout_range_for_single_line): ...this, and add testing
7276 for layout_range::intersects_line_p.
7277 (test_range_contains_point_for_multiple_lines): Rename to...
7278 (test_layout_range_for_multiple_lines): ...this, and add testing
7279 for layout_range::intersects_line_p.
7280 (layout::layout): Populate m_fixit_hints.
7281 (layout::get_expanded_location): Handle the case of a line-span
7283 (layout::validate_fixit_hint_p): New method.
7284 (get_line_span_for_fixit_hint): New function.
7285 (layout::calculate_line_spans): Add spans for fixit-hints.
7286 (layout::should_print_annotation_line_p): New method.
7287 (layout::print_any_fixits): Drop param "richloc", instead using
7288 validated fixits in m_fixit_hints. Add "const" to hint pointers.
7289 (diagnostic_show_locus): Avoid printing blank annotation lines.
7290 (selftest::test_diagnostic_context::test_diagnostic_context):
7291 Initialize show_column and start_span.
7292 (selftest::test_diagnostic_context::start_span_cb): New static
7294 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
7295 (selftest::diagnostic_show_locus_c_tests): Update for function
7296 renamings. Call test_diagnostic_show_locus_fixit_lines.
7298 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7300 PR tree-optimization/73714
7301 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
7303 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7305 * selftest.c: Move "namespace selftest {" to top of file,
7306 removing explicit "selftest::" qualifiers throughout.
7308 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7310 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
7312 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
7313 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
7314 Replace builtin with vector extension.
7315 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
7317 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
7318 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
7319 Replace builtin with vector extension.
7320 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
7321 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
7322 Replace builtin with vector extension.
7323 * config/i386/xmmintrin.h (__m128_u): New type.
7324 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
7325 (_mm_load_ps, _mm_store_ps): Simplify.
7327 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
7329 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
7331 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7333 * diagnostic-show-locus.c (colorizer::begin_state): Support more
7334 than 3 ranges per diagnostic by alternating between color 1 and
7336 (layout::layout): Replace use of rich_location::MAX_RANGES
7337 with richloc->get_num_locations ().
7338 (layout::calculate_line_spans): Replace use of
7339 rich_location::MAX_RANGES with m_layout_ranges.length ().
7340 (layout::print_annotation_line): Handle arbitrary numbers of
7341 ranges in caret-printing by defaulting to '^'.
7342 (selftest::test_one_liner_many_fixits): New function.
7343 (test_diagnostic_show_locus_one_liner): Call it.
7344 * diagnostic.c (diagnostic_initialize): Update for renaming
7345 of rich_location::MAX_RANGES to
7346 rich_location::STATICALLY_ALLOCATED_RANGES.
7347 * diagnostic.h (struct diagnostic_context): Likewise.
7349 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7351 * selftest.c (selftest::named_temp_file::named_temp_file): New
7353 (selftest::temp_source_file::~temp_source_file): Move to...
7354 (selftest::named_temp_file::~named_temp_file): ...here.
7355 (selftest::test_named_temp_file): New function.
7356 (selftest::selftest_c_tests): Call test_named_temp_file.
7357 * selftest.h (class named_temp_file): New class.
7358 (class temp_source_file): Convert to a subclass of named_temp_file.
7360 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
7362 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
7363 USEs of LR_REGNO in returns and sibcalls.
7364 (rs6000_output_mi_thunk): Similar.
7365 (rs6000_sibcall_aix): Similar.
7366 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
7367 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
7368 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
7369 Remove the USE of LR_REGNO from the patterns as well. Delete an
7371 (return_internal_<mode>): Delete.
7373 2016-08-30 Tamar Christina <tamar.christina@arm.com>
7375 * config/aarch64/aarch64-simd.md
7376 (aarch64_ld2<mode>_dreg_le): New.
7377 (aarch64_ld2<mode>_dreg_be): New.
7378 (aarch64_ld2<mode>_dreg): Removed.
7379 (aarch64_ld3<mode>_dreg_le): New.
7380 (aarch64_ld3<mode>_dreg_be): New.
7381 (aarch64_ld3<mode>_dreg): Removed.
7382 (aarch64_ld4<mode>_dreg_le): New.
7383 (aarch64_ld4<mode>_dreg_be): New.
7384 (aarch64_ld4<mode>_dreg): Removed.
7385 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
7387 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7389 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
7390 redundant location param.
7391 (test_one_liner_fixit_remove): Likewise.
7392 (test_one_liner_fixit_replace): Likewise.
7393 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
7394 * gcc-rich-location.c
7395 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
7396 get_range_from_loc. Drop overload taking a const char *.
7397 * gcc-rich-location.h
7398 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
7401 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7403 * config/linux.c (linux_libc_has_function): Return true on musl.
7405 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7407 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
7409 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
7411 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
7412 used for abnormal egdes.
7414 2016-08-30 Jakub Jelinek <jakub@redhat.com>
7416 PR tree-optimization/72866
7417 * tree-vect-patterns.c (search_type_for_mask): Turn into
7418 a small wrapper, move all code to ...
7419 (search_type_for_mask_1): ... this new function. Add caching
7420 and adjust recursive calls.
7423 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
7424 instead of lookup_type_die (type_main_variant (type)) even for array
7428 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
7429 constant pool reference return x instead of c.
7431 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
7433 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
7436 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7439 (selftest::test_make_location_nonpure_range_endpoints): Fix
7442 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7444 * diagnostic-show-locus.c
7445 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
7447 (selftest::test_diagnostic_show_locus_one_liner): Call it.
7448 * input.c (get_pure_location): Move to libcpp/line-map.c.
7449 * input.h (get_pure_location): Convert decl to an inline function
7450 calling implementation in libcpp.
7452 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
7455 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
7456 template for intel asm dialect.
7457 (vec_set_hi_<mode><mask_name>): Ditto.
7459 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7461 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
7462 (selftest::fail_formatted): Likewise.
7464 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7466 * input.c (make_location): Call get_start and get_finish
7467 on the endpoints to avoid storing packed ranges or ad-hoc
7469 (selftest::test_make_location_nonpure_range_endpoints): New function.
7470 (selftest::input_c_tests): Call it.
7471 * input.h (get_start): New inline function.
7473 2016-08-29 Tom de Vries <tom@codesourcery.com>
7476 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
7479 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
7481 * Makefile.in (gcov-iov.h): Add dummy recipe.
7483 2016-08-29 Nathan Sidwell <nathan@acm.org>
7485 * config/nvptx/nvptx.c: #include tree-vrp.h.
7487 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
7490 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
7491 HIGH+LO construct during reload.
7493 2016-08-28 Tom de Vries <tom@codesourcery.com>
7496 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
7497 'sysv_abi va_list' attribute.
7498 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
7499 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
7502 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7504 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
7505 * emit-rtl.c (unshare_all_rtl_1): Adjust.
7506 (unshare_all_rtl_again): Likewise.
7507 * function.c (assign_stack_local_1): Likewise.
7508 (assign_stack_temp_for_type): Likewise.
7510 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7512 * cfgbuild.c (make_edges): Adjust.
7513 * cfgrtl.c (can_delete_label_p): Likewise.
7514 * dwarf2cfi.c (create_trace_edges): Likewise.
7515 * except.c (sjlj_emit_dispatch_table): Likewise.
7516 * function.h (struct expr_status): make x_forced_labels a vector.
7517 * jump.c (rebuild_jump_labels_1): Adjust.
7518 * reload1.c (set_initial_label_offsets): Likewise.
7519 * stmt.c (force_label_rtx): Likewise.
7520 (expand_label): Likewise.
7522 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7524 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
7526 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
7528 PR tree-optimization/71077
7529 PR tree-optimization/68542
7530 * fold-const.c (fold_relational_const): Fix folding of
7531 VECTOR_CST comparisons that have a scalar boolean result type.
7532 (selftest::test_vector_folding): New static function.
7533 (selftest::fold_const_c_tests): Call it.
7535 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
7537 * doc/extend.texi (SPU Built-in Functions): Remove stale
7538 references to material formerly at IBM and Sony.
7540 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
7543 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
7545 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7547 * diagnostic-show-locus.c
7548 (selftest::test_fixit_consolidation): New function.
7549 (selftest::diagnostic_show_locus_c_tests): Call it.
7550 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
7551 constructor based on source_range.
7553 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7555 * diagnostic-color.c (color_dict): Add "fixit-insert" and
7557 (parse_gcc_colors): Update description of default GCC_COLORS.
7558 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
7559 (colorizer::set_fixit_insert): New method.
7560 (colorizer::set_fixit_delete): New method.
7561 (colorizer::get_color_by_name): New method.
7562 (colorizer::STATE_FIXIT_INSERT): New constant.
7563 (colorizer::STATE_FIXIT_DELETE): New constant.
7564 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
7565 fields in favor of new field "m_stop_color". Add fields
7566 "m_fixit_insert" and "m_fixit_delete".
7567 (colorizer::colorizer): Update for above changes. Replace
7568 colorize_start calls with calls to get_color_by_name.
7569 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
7570 STATE_FIXIT_DELETE. Update for field renamings.
7571 (colorizer::finish_state): Simplify by using m_stop_color,
7572 rather than multiple identical "*_ce" fields.
7573 (colorizer::get_color_by_name): New method.
7574 (layout::print_any_fixits): Print insertions and replacements
7575 using the "fixit-insert" color, and deletions using the
7576 "fixit-delete" color.
7577 * doc/invoke.texi (-fdiagnostics-color): Update description of
7578 default GCC_COLORS, and of the supported capabilities.
7580 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
7582 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
7583 current_function_static_stack_size variable with the static
7584 stack frame size of the current function when
7585 flag_stack_usage_info is enabled.
7587 2016-08-26 Nathan Sidwell <nathan@acm.org>
7589 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
7590 assignment inside if condition.
7592 2016-08-26 Richard Biener <rguenther@suse.de>
7594 PR tree-optimization/69047
7595 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
7596 extracts similar to what FRE does.
7597 (non_rewritable_mem_ref_base): Likewise.
7599 2016-08-26 Joseph Myers <joseph@codesourcery.com>
7601 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
7602 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7603 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7604 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7605 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
7607 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7608 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7609 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7610 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
7611 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7613 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7616 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
7617 reservation duration to 15 cycles.
7618 (cortex_a8_vfp_macs): Likewise.
7619 (cortex_a8_vfp_macd): Likewise.
7620 (cortex_a8_vfp_divs): Likewise.
7621 (cortex_a8_vfp_divd): Likewise.
7623 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7625 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
7626 (aarch_macro_fusion_pair_p): Use above to avoid early return.
7628 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7629 Martin Jambhor <mjambor@suse.cz>
7631 * common.opt: New option -fipa-bit-cp.
7632 * doc/invoke.texi: Document -fipa-bit-cp.
7633 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
7634 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
7635 * tree-ssa-ccp.h: New header file.
7636 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
7637 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
7638 Replace all occurences of tree parameter by two new params: signop, int.
7639 (bit_value_unop_1): Change to bit_value_unop and export it.
7640 Replace all occurences of tree parameter by two new params: signop,
7642 (bit_value_binop): Change call from bit_value_binop_1 to
7644 (bit_value_assume_aligned): Likewise.
7645 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
7646 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
7648 (ccp_finalize): Skip processing if val->mask == 0.
7649 * ipa-cp.c: Include tree-ssa-ccp.h
7650 (ipcp_bits_lattice): New class.
7651 (ipcp_param_lattice (bits_lattice): New member.
7652 (print_all_lattices): Call ipcp_bits_lattice::print.
7653 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
7654 (initialize_node_lattices): Likewise.
7655 (propagate_bits_accross_jump_function): New function.
7656 (propagate_constants_accross_call): Call
7657 propagate_bits_accross_jump_function.
7658 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
7659 (ipcp_store_bits_results): New function.
7660 (ipcp_driver): Call ipcp_store_bits_results.
7661 * ipa-prop.h (ipa_bits): New struct.
7662 (ipa_jump_func): Add new member bits of type ipa_bits.
7663 (ipa_param_descriptor): Change decl to decl_or_type.
7664 (ipa_get_param): Change decl to decl_or_type and assert on
7666 (ipa_get_type): New function.
7667 (ipcp_transformation_summary): New member bits.
7668 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
7669 (ipa_populate_param_decls): Likewise.
7670 (ipa_dump_param): Likewise.
7671 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
7673 (ipa_set_jf_unknown): Set ipa_bits::known to false.
7674 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
7676 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
7677 (ipa_write_jump_function): Add streaming for ipa_bits.
7678 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
7679 (write_ipcp_transformation_info): Add streaming for ipa_bits
7681 (read_ipcp_transfomration_info): Add support for reading streamed
7683 (ipcp_update_bits): New function.
7684 (ipcp_transform_function): Call ipcp_update_bits.
7686 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
7688 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
7689 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
7691 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
7693 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
7695 2016-08-25 Richard Biener <rguenther@suse.de>
7697 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
7698 Only add locations in late dwarf.
7699 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
7700 (dwarf2out_early_finish): But do it here.
7702 2016-08-24 Michael Collison <michael.collison@linaro.org>
7703 Michael Collison <michael.collison@arm.com>
7705 * config/arm/arm-modes.def: Add new condition code mode CC_V
7706 to represent the overflow bit.
7707 * config/arm/arm.c (maybe_get_arm_condition_code):
7708 Add support for CC_Vmode.
7709 (arm_gen_unlikely_cbranch): New function to generate common
7710 rtl conditional branches for overflow patterns.
7711 * config/arm/arm-protos.h: Add prototype for
7712 arm_gen_unlikely_cbranch.
7713 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
7714 addsi3_compareV_upper): New patterns to support signed
7715 builtin overflow add operations.
7716 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
7717 New patterns to support unsigned builtin add overflow operations.
7718 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
7719 builtin overflow subtract operations,
7720 (usubv<mode>4): New patterns to support unsigned builtin subtract
7721 overflow operations.
7722 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
7723 to support builtin overflow negate operations.
7725 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7728 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7730 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7731 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7734 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7736 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
7737 MULTILIB_OPTIONS should be used. Small wording fixes.
7738 * genmultilib: Memorize set of all option combinations in
7739 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
7740 found in MULTILIB_OPTIONS by checking if option set is listed in
7741 combination_space. Output new and existing error message to stderr.
7743 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7745 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
7746 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
7747 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
7748 (MULTILIB_REUSE): Remove reuse rules for option set including
7749 -mfpu=fp-armv8 and -mfpu=vfpv4
7751 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
7753 * config/arm/t-rtems: Add vfp multilib.
7755 2016-08-23 Ian Lance Taylor <iant@golang.org>
7757 * config/s390/s390.c (s390_asm_file_start): Call
7760 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7762 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
7763 initialization of all 0's to the 0 constant, instead of directly
7764 generating XOR. Add support for V4SImode vector initialization on
7765 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
7766 initialization. Change variables used in V4SFmode vector
7767 intialization. For V4SFmode vector splat on ISA 3.0, make sure
7768 any memory addresses are in index form. Add support for using
7769 VSPLTH/VSPLTB to initialize vector short and vector char vectors
7770 with all of the same element.
7771 (regno_or_subregno): New helper function to return a register
7772 number for either REG or SUBREG.
7773 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
7774 Use regno_or_subregno where possible.
7775 (rs6000_split_v4si_init_di_reg): New helper function to build up a
7776 DImode value from two SImode values in order to generate V4SImode
7777 vector initialization on 64-bit systems with direct move.
7778 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
7780 (rtx_is_swappable_p): V4SImode vector initialization insn is not
7782 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
7784 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
7785 attributes to initialize V8HImode and V16QImode vectors with the
7787 (VSX_SPLAT_COUNT): Likewise.
7788 (VSX_SPLAT_SUFFIX): Likewise.
7789 (UNSPEC_VSX_VEC_INIT): New unspec.
7790 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
7791 Allow SFmode values to come from Altivec registers.
7792 (vsx_init_v4si): New insn/split for V4SImode vector initialization
7793 on 64-bit systems with direct move.
7794 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
7795 vector initializations, to allow V4SImode vector initializations
7796 on 64-bit systems with direct move.
7797 (vsx_splat_v4si): Likewise.
7798 (vsx_splat_v4si_di): Likewise.
7799 (vsx_splat_v4sf): Likewise.
7800 (vsx_splat_v4sf_internal): Likewise.
7801 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
7803 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
7804 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
7805 initializing V8HImode and V16QImode vectors with the same
7807 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
7808 optimization if -maltivec=be.
7810 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
7812 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
7813 attribute for alternatives 3 and 4.
7815 2016-08-23 David Malcolm <dmalcolm@redhat.com>
7817 * selftest.c (selftest::assert_str_contains): New function.
7818 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
7819 * selftest.h (selftest::assert_str_contains): New decl.
7820 (ASSERT_STR_CONTAINS): New macro.
7822 2016-08-23 Richard Biener <rguenther@suse.de>
7824 PR tree-optimization/77286
7825 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
7827 (vect_transform_loop): Split exit edges of loop and scalar
7828 loop if required and at the appropriate time.
7830 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7832 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7833 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7835 Correct a typo in a comment.
7837 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7839 * config/s390/s390.md ("*andc_split"): New splitter for and with
7842 2016-08-23 Richard Biener <rguenther@suse.de>
7844 PR tree-optimization/27336
7845 * tree-vrp.c (infer_value_range): Handle stmts that can throw
7846 by looking for a non-EH edge.
7847 (process_assert_insertions_for): Likewise.
7849 2016-08-23 Richard Biener <rguenther@suse.de>
7852 * statistics.c (statistics_counter_event): Robustify against
7855 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7857 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
7858 for targets amdfam10 and barcelona.
7860 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
7862 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
7863 (zero_extend<mode>di2): Ditto.
7864 (*zero_extend<mode>si2): Ditto.
7865 (*zero_extendqihi2): Ditto.
7867 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7870 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
7871 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
7873 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
7875 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
7876 identical consecutive elements.
7877 [SSA_NAME]: Print the name's def stmt on its own line. When printing
7878 the node's def stmt, avoid printing an unwanted trailing newline by
7879 replacing the call to print_gimple_stmt() with its inlined body and
7880 adjusting it to not set pp_needs_newline and to call pp_flush()
7881 instead of pp_newline_and_flush().
7883 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7885 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
7886 (float32_type_node, float64_type_node, float32x_type_node)
7887 (float128x_type_node): New macros.
7888 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
7889 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
7890 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
7891 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
7892 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
7893 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
7894 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
7895 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
7896 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
7897 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
7898 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
7899 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
7900 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
7901 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
7902 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
7903 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
7904 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
7905 (copysign, fabs, huge_val, inf, nan, nans): Use it.
7906 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
7908 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
7909 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
7910 * doc/extend.texi (Other Builtins): Document these built-in
7912 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
7915 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
7917 * doc/install.texi (Binaries): www.opencsw.org now uses https.
7919 2016-08-22 Richard Biener <rguenther@suse.de>
7921 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
7923 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
7926 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
7927 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
7928 non-SSE2 athlons only, otherwise prefer SSE prefetches.
7930 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7932 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
7933 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
7934 (vrp_visit_switch_stmt): Likewise.
7935 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
7936 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
7937 (vrp_visit_stmt): Use extract_range_from_stmt.
7938 (vrp_visit_phi_node): Use extract_range_from_phi_node.
7940 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7942 * Makefile.in: Add tree-vrp.h to GTFILES.
7943 * gengtype.c (open_base_files): Add tree-vrp.h.
7944 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
7945 * builtins.c: Likewise.
7946 * fold-const.c: Likewise.
7947 * gimple-builder.c: Likewise.
7948 * gimple-laddress.c: Likewise.
7949 * hsa-gen.c: Likewise.
7950 * internal-fn.c: Likewise.
7952 * targhooks.c: Liewise,
7953 * tree-ssa-address.c: Likewise.
7954 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
7955 * tree-vrp.c (struct value_range): Move to tree-vrp.h
7956 * tree-vrp.h: New file.
7958 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7960 PR tree-optimization/61839
7961 * tree-vrp.c (two_valued_val_range_p): New.
7962 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
7963 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
7964 Also Convert VAR BINOP CST where VAR is two-valued to
7965 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
7967 2016-08-19 David Malcolm <dmalcolm@redhat.com>
7969 * diagnostic-show-locus.c
7970 (layout::annotation_line_showed_range_p): New method.
7971 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
7972 Reimplement case fixit_hint::REPLACE to cover removals, and
7973 replacements where the range of the replacement isn't one
7974 of the ranges in the rich_location.
7975 (test_one_liner_fixit_replace): Likewise.
7976 (selftest::test_one_liner_fixit_replace_non_equal_range): New
7978 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
7980 (selftest::test_diagnostic_show_locus_one_liner): Call the new
7982 * diagnostic.c (print_parseable_fixits): Remove case
7985 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
7988 * config/i386/i386.c (ix86_option_override_internal): Remove
7989 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
7990 Enable SSE prefetch also for TARGET_PREFETCHWT1.
7991 Do not try to enable TARGET_PRFCHW ISA flag here.
7992 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
7993 Rewrite expander function body.
7994 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
7996 2016-08-19 Joseph Myers <joseph@codesourcery.com>
7999 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
8000 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
8001 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
8002 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
8003 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
8004 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
8005 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
8006 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
8007 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
8009 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
8011 (struct floatn_type_info): New structure type.
8012 (floatn_nx_types): New variable declaration.
8013 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
8014 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
8015 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
8016 * tree.c (floatn_nx_types): New variable.
8017 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
8018 corresponding complex types.
8019 * target.def (floatn_mode): New hook.
8020 * targhooks.c: Include "real.h".
8021 (default_floatn_mode): New function.
8022 * targhooks.h (default_floatn_mode): New prototype.
8023 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
8025 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
8026 effective-target and dg-add-options keywords.
8027 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
8028 Document new effective-target keywords.
8029 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
8030 * doc/tm.texi: Regenerate.
8031 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
8032 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
8033 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
8035 * real.h (struct real_format): Add field ieee_bits.
8036 * real.c (ieee_single_format, mips_single_format)
8037 (motorola_single_format, spu_single_format, ieee_double_format)
8038 (mips_double_format, motorola_double_format)
8039 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
8040 (ieee_extended_intel_128_format)
8041 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
8042 (mips_extended_format, ieee_quad_format, mips_quad_format)
8043 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
8044 (decimal_double_format, decimal_quad_format, ieee_half_format)
8045 (arm_half_format, real_internal_format: Initialize ieee_bits
8047 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
8048 float128_type_node. Set float80_type_node to float64x_type_node
8049 if appropriate and long_double_type_node not appropriate.
8050 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
8051 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
8052 Initialize ieee_bits field.
8053 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
8054 (rs6000_init_builtins): Set ieee128_float_type_node to
8056 (rs6000_floatn_mode): New function.
8058 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8060 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8061 _rdseed64_step): Uglify argument names and/or local variable names
8062 in inline functions.
8063 * config/i386/rtmintrin.h (_xabort): Likewise.
8064 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
8065 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
8066 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
8067 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
8068 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
8069 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
8070 _mm_maskz_ternarylogic_epi32): Likewise.
8071 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
8072 __lwpins32, __lwpins64): Likewise.
8073 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
8074 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
8075 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
8076 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
8077 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
8078 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
8079 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
8080 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
8081 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
8082 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
8083 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
8084 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
8085 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
8086 _mm256_mask_i64gather_epi32): Likewise.
8087 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
8088 * config/i386/ia32intrin.h (__writeeflags): Likewise.
8089 * config/i386/pkuintrin.h (_wrpkru): Likewise.
8090 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
8091 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
8092 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
8093 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
8094 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
8095 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
8096 _mm512_mask_prefetch_i64scatter_ps): Likewise.
8097 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
8098 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
8099 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
8100 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
8101 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
8102 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
8103 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
8104 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
8106 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
8108 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
8109 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
8111 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
8112 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
8114 (_rdpkru_u32): Add space after function name.
8116 * config/i386/t-i386 (i386-c.o): Don't depend on
8117 i386-builtin-types.inc.
8118 (i386.o): Depend on i386-builtin-types.inc.
8120 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
8123 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
8124 Use const_vec_duplicate to check for duplicated elements.
8126 2016-08-19 Richard Biener <rguenther@suse.de>
8128 PR tree-optimization/77290
8129 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8130 Fix flag_tree_parallelize_loops check.
8132 2016-08-19 Richard Biener <rguenther@suse.de>
8134 * match.pd (x | 0 -> x): Add.
8136 2016-08-19 Richard Biener <rguenther@suse.de>
8138 PR tree-optimization/77286
8139 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8140 Deal with virtual PHIs being out-of-order.
8142 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8144 * doc/invoke.texi (fverbose-asm): Note that source code lines
8145 are emitted, and provide an example.
8146 * final.c (asm_show_source): New function.
8147 (final_scan_insn): Call asm_show_source.
8149 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8151 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
8152 param with diagnostic_kind.
8153 (class colorizer): Similarly replace field m_diagnostic with
8155 (colorizer::colorizer): Replace diagnostic
8156 param with diagnostic_kind.
8157 (colorizer::begin_state): Update for above field change.
8158 (layout::layout): Replace diagnostic param with rich_location *
8159 and diagnostic_kind.
8160 (diagnostic_show_locus): Replace diagnostic param with richloc
8161 and diagnostic_kind.
8162 (class selftest::test_diagnostic_context): New class.
8163 (selftest::test_diagnostic_show_locus_unknown_location): New
8165 (selftest::test_one_liner_simple_caret): New function.
8166 (selftest::test_one_liner_caret_and_range): New function.
8167 (selftest::test_one_liner_multiple_carets_and_ranges): New
8169 (selftest::test_one_liner_fixit_remove): New function.
8170 (selftest::test_one_liner_fixit_replace): New function.
8171 (selftest::test_diagnostic_show_locus_one_liner): New function.
8172 (selftest::diagnostic_show_locus_c_tests): Call the new test
8174 * diagnostic.c (diagnostic_initialize): Initialize
8175 colorize_source_p, show_ruler_p and parseable_fixits_p.
8176 (default_diagnostic_finalizer): Update for change to
8177 diagnostic_show_locus.
8178 (diagnostic_append_note): Likewise.
8179 * diagnostic.h (diagnostic_show_locus): Replace
8180 const diagnostic_info * param with location * and diagnostic_t.
8182 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8184 * input.c (saved_line_table): New global.
8185 (class selftest::temp_line_table): Rename to line_table_test and
8186 move declaration to selftest.h, and drop field m_old_line_table.
8187 (selftest::temp_line_table::temp_line_table): Rename ctor to...
8188 (selftest::line_table_test::line_table_test): ...this. Add a
8189 default ctor. Store current value of line_table within
8191 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
8192 (selftest::line_table_test::~line_table_test): ...this, and
8193 restore line_table from the saved_line_table, rather than
8195 (selftest::test_accessing_ordinary_linemaps): Update for above
8197 (selftest::test_lexer): Likewise.
8198 (struct selftest::lexer_test): Likewise.
8199 (selftest::lexer_test::lexer_test): Likewise.
8200 (selftest::input_c_tests): Move the looping over test cases from
8202 (selftest::for_each_line_table_case): New function.
8203 * input.h (saved_line_table): New decl.
8204 * selftest.h (struct selftest::line_table_case): New forward decl.
8205 (class selftest::line_table_test): New class, moved here from
8206 selftest::temp_line_table in input.c, and renamed.
8207 (selftest::for_each_line_table_case): New decl.
8209 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
8212 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
8214 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8217 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
8218 enclosing parallel construct for reduction variables on OpenACC loop
8221 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
8223 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
8224 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
8226 (function_to_dwarf_procedure): Update comment.
8228 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8230 * input.c (diagnostics_file_cache_forcibly_evict_file): New
8232 * input.h (diagnostics_file_cache_forcibly_evict_file): New
8234 * selftest.c (selftest::temp_source_file::~temp_source_file):
8235 Evict m_filename from the diagnostic file cache.
8237 2016-08-18 Richard Biener <rguenther@suse.de>
8239 * tree-pass.h (make_pass_materialize_all_clones): Declare.
8240 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
8241 make_pass_materialize_all_clones): New simple IPA pass encapsulating
8242 clone materialization.
8243 * passes.def (all_late_ipa_passes): Start with
8244 pass_materialize_all_clones.
8245 * cgraphunit.c (symbol_table::compile): Remove call to
8246 materialize_all_clones.
8247 * tree-into-ssa.c: Include statistics.h.
8248 (update_ssa): Count number of times we do incremental/rewrite
8251 2016-08-18 Richard Biener <rguenther@suse.de>
8253 PR tree-optimization/77282
8254 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8255 When doing auto-parallelizing also prevent use of PHIs that
8256 carry dependences across loop backedges.
8258 2016-08-18 Tamar Christina <tamar.christina@arm.com>
8259 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8261 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
8263 2016-08-18 Richard Biener <rguenther@suse.de>
8265 * ssa-iterators.h (ssa_vuse_operand): New inline.
8266 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
8267 (predicate_all_scalar_phis): Use remove_phi_node to remove
8268 phi nodes predicated. Delay removing virtual PHIs.
8269 (predicate_mem_writes): Update virtual operands.
8270 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
8271 (tree_if_conversion): Do not rewrite virtual SSA form.
8272 * tree-phinodes.c (release_phi_node): Make static.
8273 * tree-phinodes.h (release_phi_node): Remove.
8275 2016-08-18 Jakub Jelinek <jakub@redhat.com>
8277 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
8278 codes that appear in bdesc_* arrays, instead include i386-builtin.def
8279 twice to define those.
8280 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
8281 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
8282 bdesc_multi_arg): Define by including i386-builtin.def the third time.
8283 * config/i386/i386-builtin.def: New file.
8285 2016-08-17 David Malcolm <dmalcolm@redhat.com>
8287 * input.c (get_source_range_for_char): Rename to...
8288 (selftest::get_source_range_for_char): ...this, and move within
8289 the #if CHECKING_P guard.
8290 (get_num_source_ranges_for_substring): Rename to...
8291 (selftest::get_num_source_ranges_for_substring): ...this, move
8292 within the #if CHECKING_P guard, and make static.
8293 (selftest::assert_num_substring_ranges): Initialize
8296 2016-08-18 Alan Modra <amodra@gmail.com>
8298 PR rtl-optimization/72771
8299 * reload.c (find_reloads): Don't assume that a subreg mem is OK
8300 when find_reloads_toplev returns address_reloaded==-1.
8301 (alternative_allows_const_pool_ref): Update comment.
8303 2015-08-17 Alan Hayward <alan.hayward@arm.com>
8305 PR tree-optimization/71752
8306 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
8307 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
8309 2016-08-17 Jakub Jelinek <jakub@redhat.com>
8311 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
8312 instead of testing ECF_NORETURN bit in gimple_call_flags.
8313 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
8314 * predict.c (tree_bb_level_predictions): Likewise.
8315 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
8318 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
8319 turning a call into __builtin_unreachable-like noreturn call, adjust
8320 gimple_call_set_fntype.
8321 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
8322 gimple_call_fntype has void return type.
8324 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
8326 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
8327 maybe_lookup_decl, to handle nested acc loop directives.
8329 2016-08-17 Richard Biener <rguenther@suse.de>
8331 PR tree-optimization/76490
8332 * tree-vrp.c (update_value_range): Preserve overflow infinities
8333 when intersecting with ranges from get_range_info.
8334 (operand_less_p): Handle overflow infinities correctly.
8335 (value_range_constant_singleton): Use vrp_operand_equal_p
8336 to handle overflow max/min correctly.
8337 (vrp_valueize): Likewise.
8338 (union_ranges): Likewise.
8339 (intersect_ranges): Likewise.
8340 (vrp_visit_phi_node): Improve iteration limitation to only
8341 apply when we'll possibly re-visit the PHI via a changed argument
8344 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
8346 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
8347 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
8348 rather than those that should not be built.
8350 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
8353 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
8355 2016-08-17 Richard Biener <rguenther@suse.de>
8357 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
8358 (verify_vssa): New function verifying virtual SSA form.
8359 (verify_ssa): Call it.
8360 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
8361 Do not apply loop-closed SSA handling to virtuals.
8362 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
8363 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
8364 when rewriting their symbol.
8365 (prepare_def_site_for): Likewise.
8366 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
8367 operands of moved stmts.
8369 2016-08-17 Richard Biener <rguenther@suse.de>
8371 PR tree-optimization/23855
8372 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
8373 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
8374 find guards to hoist. Do not update SSA form but rewrite virtuals
8375 into loop closed SSA.
8376 (find_loop_guard): Adjust to skip already hoisted guards. Do
8377 not mark virtuals for renaming or update SSA form.
8379 2016-08-17 Martin Liska <mliska@suse.cz>
8381 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
8382 a LONG_LONG_TYPE_SIZE comparison.
8383 * gcov-io.h: Remove macro definitions.
8384 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
8385 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
8388 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8390 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
8391 that builtins not mentioned in bdesc_* arrays come first, then
8392 the ones mentioned in bdesc_* arrays in the order they appear in
8393 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
8394 IX86_BUILTIN__BDESC_*_LAST enumerator.
8395 (bdesc_mpx): Fix up a comment typo.
8396 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
8397 __builtin_ia32_vpcomneu[bwdq] builtins.
8398 (BDESC_VERIFY, BDESC_VERIFYS): Define.
8399 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
8400 enum ix86_builtins ordering.
8401 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
8402 for direct bdesc_* array member access instead of searching all the
8403 arrays until an fcode match is found.
8405 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
8407 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
8408 pattern as define_insn_and_split. Split insn before reload to
8410 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
8411 <shift_insn><mode>3_1.
8412 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
8413 <rotate_insn><mode>3_1.
8415 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8418 * input.c (get_source_range_for_substring): Rename to...
8419 (get_source_location_for_substring): ...this, adding param
8420 "caret_idx", and converting output param from source_range * to
8422 (get_source_range_for_char): New function.
8423 (get_num_source_ranges_for_substring): Update comment to reflect
8425 (assert_char_at_range): Update to use get_source_range_for_char
8426 rather than get_source_range_for_substring.
8427 (test_lexer_string_locations_concatenation_2): Likewise.
8428 * substring-locations.h (get_source_range_for_substring): Rename
8430 (get_source_location_for_substring): ...this, and adding param
8431 "caret_idx", and converting output param from source_range * to
8434 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8436 * input.c (class selftest::temp_source_file): Move to
8438 (selftest::temp_source_file::temp_source_file): Move to
8440 (selftest::temp_source_file::~temp_source_file): Likewise.
8441 * selftest.c (selftest::temp_source_file::temp_source_file): Move
8443 (selftest::temp_source_file::~temp_source_file): Likewise.
8444 * selftest.h (class selftest::temp_source_file): Move here from
8447 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8450 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
8451 inlining, add cgraph edge for the added __builtin_unreachable call.
8454 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
8455 only cast it to SHWI for the final comparison.
8457 2016-08-16 Martin Liska <mliska@suse.cz>
8459 PR gcov-profile/36412
8460 * doc/gcov.texi: Document --hash-filenames(-x).
8461 * gcov.c (print_usage): Add the option.
8462 (process_args): Process the option, sort options alphabetically.
8463 (md5sum_to_hex): New function.
8464 (make_gcov_file_name): Do the md5sum and append it to a
8467 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8469 PR tree-optimization/69848
8470 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
8471 and swtich operands to avoid additional NOT instruction.
8472 (vcond<v_cmp_mixed><mode>): Ditto.
8473 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8475 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8477 * doc/install.texi (*-*-solaris2*): Adjust latest change.
8479 2016-08-16 Richard Biener <rguenther@suse.de>
8481 PR tree-optimization/76783
8482 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
8483 BB visited flags at start.
8485 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8487 PR tree-optimization/72817
8488 PR tree-optimization/73450
8489 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
8490 multiple_of_p for adjusted IV.base.
8492 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
8495 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
8496 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
8497 for !flag_finite_math_only or flag_signed_zeros.
8498 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
8499 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
8500 depend on flag_finite_math_only.
8501 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
8503 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
8504 (*ieee_smin<mode>3): Ditto.
8505 (*ieee_smax<mode>3): Ditto.
8506 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
8507 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
8509 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
8510 depend on flag_finite_math_only.
8511 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
8512 (*mmx_<code>v2sf3): Remove.
8513 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
8514 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
8515 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
8517 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
8519 PR rtl-optimization/73650
8520 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
8521 it is not a simple move.
8523 2016-08-15 Martin Liska <mliska@suse.cz>
8526 * gcc.c (do_spec_1): Call save_string with the right size.
8527 (save_string): Do an assert about string we copy.
8529 2016-08-15 Richard Biener <rguenther@suse.de>
8531 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
8532 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
8534 (pass_data_stv): Likewise.
8536 2016-08-15 Richard Biener <rguenther@suse.de>
8538 PR tree-optimization/73434
8539 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
8540 TBAA info on the base when forwarding a non-invariant address.
8542 2016-08-15 Jakub Jelinek <jakub@redhat.com>
8544 * dwarf2out.c (struct checksum_attributes): Add
8545 at_string_length_bit_size and at_string_length_byte_size fields.
8546 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
8547 and DW_AT_string_length_byte_size.
8548 (die_checksum_ordered): Handle at_string_length_bit_size and
8549 at_string_length_byte_size.
8550 (gen_array_type_die): For dwarf_version >= 5 emit
8551 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8552 (adjust_string_types): For dwarf_version >= 5 remove
8553 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8554 (resolve_addr): Likewise.
8557 * dwarf2out.c (string_types): New variable.
8558 (gen_array_type_die): Change early_dwarf handling of
8559 DW_AT_string_length, create DW_OP_call4 referencing the
8560 length var temporarily. Handle parameters that are pointers
8562 (adjust_string_types): New function.
8563 (gen_subprogram_die): Temporarily set string_types to local var,
8564 call adjust_string_types if needed.
8565 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
8567 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
8569 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
8571 * doc/install.texi (*-*-solaris2*): Fix version number and document
8572 requirement on GNU make for building libjava with the Solaris linker.
8574 2016-08-15 Martin Liska <mliska@suse.cz>
8575 Jakub Jelinek <jakub@redhat.com>
8577 PR tree-optimization/72824
8578 * tree-loop-distribution.c (const_with_all_bytes_same)
8579 <case VECTOR_CST>: Fix a typo.
8581 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
8584 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
8585 Renamed from _mm512_undefined_si512.
8586 (_mm_undefined_si512): New definition.
8588 2016-08-13 Richard Biener <rguenther@suse.de>
8590 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
8591 into PHIs and update the lattice for its def.
8593 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8596 * ubsan.c (instrument_si_overflow): Pass true instead of false
8598 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
8599 of bbs. Return TODO_cleanup_cfg if any returned true.
8601 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8603 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
8604 ISA 3.0 MTVSRDD instruction.
8605 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
8608 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
8610 PR tree-optimization/71083
8611 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
8612 bitfield access when possible.
8614 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
8617 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
8618 sign-changing cast from a shorter unsigned type to a wider
8621 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8623 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
8624 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
8625 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
8627 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8629 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
8630 Correct costs for vec_construct.
8632 2016-08-12 Bin Cheng <bin.cheng@arm.com>
8634 PR tree-optimization/69848
8635 * tree-vectorizer.h (enum vect_def_type): New condition reduction
8636 type CONST_COND_REDUCTION.
8637 * tree-vect-loop.c (vectorizable_reduction): Support new condition
8638 reudction type CONST_COND_REDUCTION.
8640 2016-08-12 Richard Biener <rguenther@suse.de>
8642 PR tree-optimization/57326
8643 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
8644 returning an SSA name.
8645 (phi_translate_1): When fully_constant_expression returns a NAME
8646 make sure we have a leader for it.
8648 2016-08-12 Martin Liska <mliska@suse.cz>
8649 Adam Fineman <afineman@afineman.com>
8651 * gcov.c (process_file): Create .gcov file when .gcda
8654 2016-08-12 Marek Polacek <polacek@redhat.com>
8657 * alias.c (find_base_value): Adjust fall through comment.
8658 * cfgexpand.c (expand_debug_expr): Likewise.
8659 * combine.c (find_split_point): Likewise.
8660 (expand_compound_operation): Likewise. Add FALLTHRU.
8661 (make_compound_operation): Adjust fall through comment.
8662 (canon_reg_for_combine): Add FALLTHRU.
8663 (force_to_mode): Adjust fall through comment.
8664 (simplify_shift_const_1): Likewise.
8665 (simplify_comparison): Likewise.
8666 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
8668 * config/aarch64/predicates.md: Likewise.
8669 * config/i386/i386.c (function_arg_advance_32): Likewise.
8670 (ix86_gimplify_va_arg): Likewise.
8671 (print_reg): Likewise.
8672 (ix86_print_operand): Likewise.
8673 (ix86_build_const_vector): Likewise.
8674 (ix86_expand_branch): Likewise.
8675 (ix86_sched_init_global): Adjust fall through comment.
8676 (ix86_expand_args_builtin): Add FALLTHRU.
8677 (ix86_expand_builtin): Likewise.
8678 (ix86_expand_vector_init_one_var): Likewise.
8679 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
8680 (rs6000_adjust_cost): Likewise.
8681 (insn_must_be_first_in_group): Likewise.
8682 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
8683 * dbxout.c (dbxout_symbol): Adjust fall through comment.
8684 * df-scan.c (df_uses_record): Likewise.
8685 * dojump.c (do_jump): Add FALLTHRU.
8686 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
8688 (resolve_args_picking_1): Adjust fall through comment.
8689 (loc_list_from_tree_1): Likewise.
8690 * expmed.c (make_tree): Likewise.
8691 * expr.c (expand_expr_real_2): Add FALLTHRU.
8692 (expand_expr_real_1): Likewise. Adjust fall through comment.
8693 * fold-const.c (const_binop): Adjust fall through comment.
8694 (fold_truth_not_expr): Likewise.
8695 (fold_cond_expr_with_comparison): Add FALLTHRU.
8696 (fold_binary_loc): Likewise.
8697 (contains_label_1): Adjust fall through comment.
8698 (multiple_of_p): Likewise.
8699 * gcov-tool.c (process_args): Add FALLTHRU.
8700 * genattrtab.c (check_attr_test): Likewise.
8701 (write_test_expr): Likewise.
8702 * genconfig.c (walk_insn_part): Likewise.
8703 * genpreds.c (validate_exp): Adjust fall through comment.
8704 (needs_variable): Likewise.
8705 * gensupport.c (get_alternatives_number): Add FALLTHRU.
8706 (subst_dup): Likewise.
8707 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
8708 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
8709 (gimplify_scan_omp_clauses): Add FALLTHRU.
8710 (goa_stabilize_expr): Likewise.
8711 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
8713 * hsa-gen.c (get_address_from_value): Likewise.
8714 * ipa-icf.c (sem_function::hash_stmt): Likewise.
8715 * ira.c (ira_setup_alts): Add FALLTHRU.
8716 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
8718 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
8719 * opts.c (common_handle_option): Likewise.
8720 * read-rtl.c (read_rtx_code): Likewise.
8721 * real.c (round_for_format): Likewise.
8722 * recog.c (asm_operand_ok): Likewise.
8723 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
8724 * reload1.c (set_label_offsets): Likewise.
8725 (eliminate_regs_1): Likewise.
8726 (reload_reg_reaches_end_p): Likewise.
8727 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
8728 (rtx_cost): Likewise.
8729 * sched-rgn.c (is_exception_free): Likewise.
8730 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
8731 * stor-layout.c (int_mode_for_mode): Likewise.
8732 * toplev.c (print_to_asm_out_file): Likewise.
8733 (print_to_stderr): Likewise.
8734 * tree-cfg.c (gimple_verify_flow_info): Likewise.
8735 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
8736 (chrec_fold_multiply): Likewise.
8737 (evolution_function_is_invariant_rec_p): Likewise.
8738 (for_each_scev_op): Likewise.
8739 * tree-data-ref.c (siv_subscript_p): Likewise.
8740 (get_references_in_stmt): Likewise.
8741 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
8742 (substitute_in_expr): Likewise.
8743 (type_cache_hasher::equal): Likewise.
8744 (walk_type_fields): Likewise.
8745 * var-tracking.c (adjust_mems): Add FALLTHRU.
8746 (set_dv_changed): Adjust fall through comment.
8747 * varasm.c (default_function_section): Add FALLTHRU.
8749 2016-08-12 Marek Polacek <polacek@redhat.com>
8752 * tree-complex.c (expand_complex_division): Add missing break.
8754 2016-08-12 Richard Biener <rguenther@suse.de>
8756 * passes.c (execute_todo): Do not push/pop TV_TODO.
8757 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
8758 (execute_one_pass): Likewise.
8759 * common.opt (ftime-report-details): New switch.
8760 * doc/invoke.texi (ftime-report-details): Document.
8761 * timevar.h (timer::print_row): Adjust signature.
8762 (timer::all_zero): New static helper.
8763 (timer::child_map_t): New typedef.
8764 (timer::time_var_def): Add children field.
8765 * timevar.c (timer::named_items::print): Adjust.
8766 (timer::~timer): Free timevar recorded children.
8767 (timer::pop_internal): When -ftime-report-details record
8768 time spent in sub-timevars.
8769 (timer::print_row): Adjust.
8770 (timer::print): Print sub-timevar stats, use all_zero.
8771 * timevar.def (TV_TODO): Remove.
8773 2016-08-12 Richard Biener <rguenther@suse.de>
8775 PR tree-optimization/72851
8776 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
8777 worklists to use bitmaps indexed in execution order.
8778 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
8779 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
8780 (cfg_blocks): Make a bitmap.
8781 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
8783 (cfg_blocks_empty_p): Adjust.
8784 (cfg_blocks_add): Likewise.
8785 (cfg_blocks_get): Likewise.
8786 (add_ssa_edge): Likewise.
8787 (add_control_edge): Likewise.
8788 (simulate_stmt): Likewise.
8789 (process_ssa_edge_worklist): Likewise.
8790 (simulate_block): Likewise.
8791 (ssa_prop_init): Compute PRE order and stmt UIDs.
8792 (ssa_prop_fini): Adjust.
8793 (ssa_propagate): Adjust.
8795 2016-08-12 Richard Biener <rguenther@suse.de>
8797 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
8798 the currently executable edges have fixed ranges. Always
8799 go through update_value_range.
8801 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
8805 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
8806 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
8807 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
8808 (LANG_HOOKS_DECLS): Add it.
8809 * langhooks.h (struct lang_hooks_for_decls): Add
8810 function_decl_defaulted. Const_tree-ify
8811 function_decl_explicit_p and function_decl_deleted_p.
8812 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
8813 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
8814 also at strict DWARF v5.
8817 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
8818 TYPE_QUAL_CONST in reference-typed decls.
8821 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
8822 in DW_OP_pieces, just enough to handle pointers to member
8824 (gen_remaining_tmpl_value_param_die_attribute): Use a location
8825 expression on DWARFv5 if a constant value doesn't work.
8827 2016-08-11 David Malcolm <dmalcolm@redhat.com>
8829 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
8830 * selftest.c (selftest::test_assertions): New function.
8831 (selftest::selftest_c_tests): New function.
8832 * selftest.h (selftest::selftest_c_tests): New declaration.
8834 2016-08-11 Richard Biener <rguenther@suse.de>
8835 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8837 PR rtl-optimization/72855
8838 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
8840 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8843 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
8844 (vsx_store_<mode>): Likewise.
8846 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8848 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
8849 TImode CONST_WIDE_INT store.
8850 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
8852 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8854 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
8855 mode if unaligned SSE load and store are optimal.
8857 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8859 PR tree-optimization/71083
8860 * tree-predcom.c (ref_at_iteration): Correctly align the
8863 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8865 * config/s390/s390-builtin-types.def: Add INT128 types.
8866 * config/s390/s390-builtins.def: Add INT128 variants for the add
8867 sub low-level builtins dealing with TImode.
8868 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
8869 via subreg when expanding a builtin.
8870 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
8871 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
8873 * config/s390/vecintrin.h: Adjust builtin names accordingly.
8874 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
8875 ("vec_addc<mode>", "vec_addc_u128"): Merge to
8876 "vacc<bhfgq>_<mode>".
8877 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
8878 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
8879 ("vec_subc<mode>", "vec_subc_u128"): Merge to
8880 "vscbi<bhfgq>_<mode>".
8881 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
8882 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
8884 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8886 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
8888 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8890 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
8892 (vcond<v_cmp_mixed><mode>): Ditto.
8893 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8895 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8897 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
8898 variable explicitly, also assert on it before use.
8900 2016-08-11 Richard Biener <rguenther@suse.de>
8902 PR tree-optimization/72772
8903 * cfgloopmanip.c (create_preheader): Use split_edge if there
8904 is a single loop entry, avoiding degenerate PHIs.
8906 2016-08-11 Richard Biener <rguenther@suse.de>
8908 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
8909 unconditional TODO_cleanup_cfg.
8910 (pass_thread_jumps::execute): Initialize loops, perform a CFG
8911 cleanup only if we threaded a jump.
8913 2016-08-11 Alan Modra <amodra@gmail.com>
8916 * lra-constraints.c (simplify_operand_subreg): Allow subreg
8917 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
8918 slow. Emit two reloads for slow mem case, first loading in
8919 fast innermode, then converting to required mode.
8921 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8923 * config/rs6000/altivec.h (vec_extract_exp): New macro.
8924 (vec_extract_sig): New macro.
8925 (vec_insert_exp): New macro.
8926 (vec_test_data_class): New macro.
8927 (scalar_extract_exp): New macro.
8928 (scalar_extract_sig): New macro.
8929 (scalar_insert_exp): New macro.
8930 (scalar_test_data_class): New macro.
8931 (scalar_test_neg): New macro.
8932 (scalar_cmp_exp_gt): New macro.
8933 (scalar_cmp_exp_lt): New macro.
8934 (scalar_cmp_exp_eq): New macro.
8935 (scalar_cmp_exp_unordered): New macro.
8936 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
8937 to enforce constraint that operand is a 7-bit unsigned literal.
8938 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
8939 for power9 built-ins.
8940 (BU_P9V_VSX_2): Likewise.
8941 (BU_P9V_64BIT_VSX_2): Likewise.
8942 (VSEEDP): Add scalar extract exponent support.
8943 (VSEESP): Add scalar extract signature support.
8944 (VSTDCNDP): Add scalar test negative support.
8945 (VSTDCNSP): Likewise.
8946 (VSIEDP): Add scalar insert exponent support.
8947 (VSCEDPGT): Add scalar compare exponent greater than support.
8948 (VSCEDPLT): Add scalar compare exponent less than support.
8949 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
8950 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
8951 (VSTDCDP): Add scalar test data class support.
8952 (VSTDCSP): Likewise.
8953 (VSEEDP): Add overload support for scalar extract exponent
8955 (VSESDP): Add overload support for scalar extract signature
8957 (VSTDCN): Add overload support for scalar test negative
8959 (VSTDCNDP): Add overload support for scalar test negative
8961 (VSTDCNSP): Add overload support for scalar test negative
8963 (VSIEDP): Add overload support for scalar insert exponent
8965 (VSTDC): Add overload support for scalar test data class
8967 (VSTDCDP): Add overload support for scalar test data class
8969 (VSTDCSP): Add overload support for scalar test data class
8971 (VSCEDPGT): Add overload support for scalar compare exponent
8972 greater than operation.
8973 (VSCEDPLT): Add overload support for scalar compare exponent
8974 less than operation.
8975 (VSCEDPEQ): Add overload support for scalar compare exponent
8976 test-for-equality operation.
8977 (VSCEDPUO): Add overload support for scalar compare exponent
8978 test-for-unordered operation.
8979 (VEEDP): Add vector extract exponent support.
8981 (VESDP): Add vector extract significand support.
8983 (VIEDP): Add vector insert exponent support.
8985 (VTDCDP): Add vector test data class support.
8987 (VES): Add overload support for vector extract significand operation.
8990 (VEE): Add overload support for vector extract exponent operation.
8993 (VTDC): Add overload support for vector test data class operation.
8996 (VIE): Add overload support for vector insert exponent operation.
8999 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9000 overloaded binary floating point functions.
9001 (altivec_resolve_overloaded_builtin): Improve error messages to
9002 distinguish between functions not supported in the current
9003 compiler configuration and functions that were invoked with an
9004 invalid parameter combination, and include the built-in function
9005 name in both error messages.
9006 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
9008 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
9010 (rs6000_expand_binop_builtin): Add check to enforce that argument
9011 2 of the test data class operations is a 7-bit unsigned literal.
9012 (rs6000_invalid_builtin): Add code to issue an error message if a
9013 built-in function that requires the power9_vector and -m32
9014 command-line options is compiled without these options.
9015 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
9016 (UNSPEC_VSX_SXSIGDP): New value.
9017 (UNSPEC_VSX_SXSIGPDP): New value.
9018 (UNSPEC_VSX_SIEXPDP): New value.
9019 (UNSPEC_VSX_SCMPEXPDP): New value.
9020 (UNSPEC_VSX_STSTDC): New value.
9021 (UNSPEC_VSX_VXEXP): New value.
9022 (UNSPEC_VSX_VXSIG): New value.
9023 (UNSPEC_VSX_VIEXP): New value.
9024 (UNSPEC_VSX_VTSTDC): New value.
9025 (xsxexpdp): New insn for scalar extract exponent.
9026 (xsxsigdp): New insn for scalar extract significand.
9027 (xsiexpdp): New insn for scalar insert exponent.
9028 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
9029 (*xscmpexpdp): New insn for scalar compare exponents.
9030 (xststdc<Fvsx): New expansion for both single- and
9031 double-precision scalar test data class operations.
9032 (xststdcneg<Fvsx>): New expansion for both single- and
9033 double-precision scalar test for negative value operations.
9034 (*xststdc<Fvsx>): New insn for scalar test data class
9036 (xvxexp<VSs>): New insn for single- and double-precision
9037 vector extract exponent operation.
9038 (xvxsig<VSs>): New insn for single- and double-precision
9039 vector extract significand operation.
9040 (xviexp<VSs>): New insn for single- and double-precision
9041 vector insert exponent operation.
9042 (xvtstdc<VSs>): New insn for single- and double-precision
9043 vector test data class operation.
9044 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9045 built-in functions to represent the Power9 binary floating-point
9046 support instructions.
9048 2016-08-10 bin cheng <bin.cheng@arm.com>
9050 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
9052 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
9053 Renlin Li <renlin.li@arm.com>
9054 Bin Cheng <bin.cheng@arm.com>
9056 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
9057 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
9058 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
9059 (aarch64_vcond_internal<mode><mode>): Delete pattern.
9060 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
9061 (vcond<v_cmp_result><mode>): Ditto.
9062 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
9063 (vcondu<mode><mode>): Ditto.
9064 (vcond<v_cmp_mixed><mode>): New pattern.
9065 (vcondu<mode><v_cmp_mixed>): New pattern.
9066 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
9067 of aarch64_vcond_internal.
9069 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
9070 Renlin Li <renlin.li@arm.com>
9071 Bin Cheng <bin.cheng@arm.com>
9073 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
9074 (vec_cmp<mode><v_cmp_result>): New pattern.
9075 (vec_cmpu<mode><mode>): New pattern.
9076 (vcond_mask_<mode><v_cmp_result>): New pattern.
9078 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
9080 PR tree-optimization/71734
9081 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
9082 REF_LOOP, invoke ref_indep_loop_p_1.
9083 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
9084 to ref_indep_loop_p.
9085 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
9086 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
9087 is inside LOOP, do not cache dpendence value for loops with
9089 (ref_indep_loop_p_2): Delete function.
9090 (can_sm_ref_p): Pass LOOP as additional argument to
9093 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
9096 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
9097 being an offsettable address.
9099 2016-08-10 Martin Liska <mliska@suse.cz>
9101 PR gcov-profile/58306
9102 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
9103 atomic variants of profile update functions.
9105 2016-08-10 Martin Liska <mliska@suse.cz>
9107 Cherry picked (and modified) from google-4_7 branch
9108 2012-12-26 Rong Xu <xur@google.com>
9109 * common.opt (fprofile-update): Add new flag.
9110 * coretypes.h: Define enum profile_update.
9111 * doc/invoke.texi: Document -fprofile-update.
9112 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
9113 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
9114 * tree-profile.c (gimple_init_edge_profiler): Generate
9115 also atomic profiler update.
9116 (gimple_gen_edge_profiler): Likewise.
9118 2016-08-10 David Malcolm <dmalcolm@redhat.com>
9120 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
9121 stack_usage_file to NULL after fclose calls.
9123 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9126 * reload.c (push_reload): Compute subreg_in_class for
9127 subregs of constants and plus expressions. Remove special
9128 handling of SYMBOL_REFs.
9130 2016-08-10 Alan Modra <amodra@gmail.com>
9133 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
9134 SImode for TARGET_E500_DOUBLE when given SImode.
9136 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
9138 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
9139 unused variable __O.
9141 2016-08-09 Martin Liska <mliska@suse.cz>
9143 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
9144 _gcov_reset to __gcov_reset.
9145 * doc/gcov-tool.texi: Fix typo.
9147 2016-08-09 Martin Liska <mliska@suse.cz>
9149 * value-prof.c (gimple_divmod_values_to_profile): Do not
9150 instrument MOD histogram if a value is not a SSA name.
9152 2016-08-09 Martin Liska <mliska@suse.cz>
9154 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
9157 2016-08-09 Renlin Li <renlin.li@arm.com>
9160 * calls.c (prepare_call_address): Convert funexp to Pmode when
9162 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
9163 (sibcall_value): Likewise.
9165 2016-08-09 Marek Polacek <polacek@redhat.com>
9168 * cselib.c (cselib_expand_value_rtx_1): Add return.
9169 * gengtype.c (dbgprint_count_type_at): Likewise.
9170 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
9171 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
9173 2016-08-09 Martin Jambor <mjambor@suse.cz>
9176 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
9177 if instance is a MEM_REF.
9179 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
9182 * config/i386/i386.md (*movtf_internal): Use
9183 lra_in_progress || reload_completed instead of !can_create_pseudo_p
9184 in the insn constraint.
9185 (*movxf_internal): Ditto.
9186 (*movdf_internal): Ditto.
9187 (*movsf_internal): Ditto.
9189 2016-08-09 Bin Cheng <bin.cheng@arm.com>
9191 PR tree-optimization/72772
9192 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9195 2016-08-09 Bin Cheng <bin.cheng@arm.com>
9197 PR tree-optimization/72772
9198 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
9200 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
9201 parameter STOP and update calls. Move expand_simple_operations
9202 function call from here...
9203 (simplify_using_initial_conditions): ...to here. Delete parameter
9205 (tree_simplify_using_condition): Delete parameter STOP.
9206 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
9207 simplify_using_initial_conditions.
9209 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
9212 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
9213 Use create_tmp_var_raw instead of create_tmp_var.
9215 2016-08-09 Richard Biener <rguenther@suse.de>
9217 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
9218 Treat same SSA names related.
9220 2016-08-09 Jakub Jelinek <jakub@redhat.com>
9222 PR tree-optimization/72824
9223 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
9224 real_zerop is not negative.
9226 2016-08-09 Richard Biener <rguenther@suse.de>
9228 PR tree-optimization/71802
9229 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
9230 all merge opportunities with the predecessor.
9232 2016-08-09 Richard Biener <rguenther@suse.de>
9235 * ipa-prop.c (ipa_modify_formal_parameters): Build
9236 parameter types with natural alignment also for the
9239 2016-08-08 Andi Kleen <ak@linux.intel.com>
9241 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
9243 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9246 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
9247 do-nothing langhook.
9248 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
9249 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
9250 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
9251 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
9253 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9256 * input.c: Ensure that HAVE_ICONV is defined.
9258 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9261 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
9262 private vars for lastprivate and for linear iterator.
9265 * omp-simd-clone.c: Include varasm.h.
9266 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
9267 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
9268 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
9269 update function name.
9271 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9273 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
9274 (avr_diagnose_devicespecs_error): Remove.
9275 (avr_devicespecs_file): Remove composing absolute path for specfile
9276 and its verbose info. Remove conditions to check specs-file,
9278 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9280 PR rtl-optimization/72821
9281 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
9282 just return false for them.
9284 2016-08-08 Alan Modra <amodra@gmail.com>
9287 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
9288 toc refs created during reload. Update function comment.
9290 2016-08-08 Alan Modra <amodra@gmail.com>
9293 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
9294 alternatives. Put loads first, then stores, and reg/reg moves
9295 within same class later. Delete attr length.
9297 2016-08-08 Alan Modra <amodra@gmail.com>
9300 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
9301 (mem_operand_ds_form): New predicate.
9302 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
9303 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
9304 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
9305 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
9306 (extendsfdf2_fpr): Replace o constraint with wY.
9308 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
9310 * tree-ssa-threadbackward.c: Include tree-inline.h
9311 (profitable_jump_thread_path): Use estimate_num_insns to estimate
9312 size of copied block; for cold paths reduce duplication.
9313 (find_jump_threads_backwards): Remove redundant tests.
9314 (pass_thread_jumps::gate): Enable for -Os.
9316 2016-08-07 Jakub Jelinek <jakub@redhat.com>
9319 * stor-layout.c (layout_decl): Fix up formatting.
9320 (relayout_decl): Allow DECL to be FIELD_DECL.
9322 2016-08-07 Alan Modra <amodra@gmail.com>
9324 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
9326 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9328 * data-streamer-in.c (streamer_read_wide_int): New.
9329 (streamer_read_widest_int): Renamed function.
9330 * data-streamer-out.c (streamer_write_wide_int): New
9331 (streamer_write_widest_int): Renamed function.
9332 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
9334 (input_cfg): Call renamed function.
9335 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
9337 (output_cfg): Call renamed function.
9338 * data-streamer.h: Add declarations.
9340 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9342 * tree-ssa-ccp.c (extend_mask): New param sgn.
9343 Remove ORing with wi::mask.
9344 (get_default_value): Adjust call to extend_mask to pass sign.
9345 (evaluate_stmt): Likewise.
9347 2016-08-06 Jakub Jelinek <jakub@redhat.com>
9349 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
9352 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9354 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
9355 transform if operand's type is pointer to function or method.
9357 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9359 PR tree-optimization/18046
9360 * tree-ssa-threadedge.c: Include cfganal.h.
9361 (simplify_control_statement_condition): If simplifying a
9362 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
9363 with the dominating ASSERT_EXPR before handing it off to VRP.
9364 Mention that a CASE_LABEL_EXPR may be returned.
9365 (thread_around_empty_blocks): Adjust to handle
9366 simplify_control_statement_condition() returning a
9368 (thread_through_normal_block): Likewise.
9369 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
9370 a switch statement by trying to determine which case label
9373 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
9375 PR rtl-optimization/69847
9376 * lra-constraints.c (process_invariant_for_inheritance): Save
9377 pattern instead of src.
9378 (remove_inheritance_pseudos): Use the pattern. Add assert.
9380 2016-08-05 David Malcolm <dmalcolm@redhat.com>
9382 * input.c (string_concat::string_concat): New constructor.
9383 (string_concat_db::string_concat_db): New constructor.
9384 (string_concat_db::record_string_concatenation): New method.
9385 (string_concat_db::get_string_concatenation): New method.
9386 (string_concat_db::get_key_loc): New method.
9387 (class auto_cpp_string_vec): New class.
9388 (get_substring_ranges_for_loc): New function.
9389 (get_source_range_for_substring): New function.
9390 (get_num_source_ranges_for_substring): New function.
9391 (class selftest::lexer_test_options): New class.
9392 (struct selftest::lexer_test): New struct.
9393 (class selftest::ebcdic_execution_charset): New class.
9394 (selftest::ebcdic_execution_charset::s_singleton): New variable.
9395 (selftest::lexer_test::lexer_test): New constructor.
9396 (selftest::lexer_test::~lexer_test): New destructor.
9397 (selftest::lexer_test::get_token): New method.
9398 (selftest::assert_char_at_range): New function.
9399 (ASSERT_CHAR_AT_RANGE): New macro.
9400 (selftest::assert_num_substring_ranges): New function.
9401 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
9402 (selftest::assert_has_no_substring_ranges): New function.
9403 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
9404 (selftest::test_lexer_string_locations_simple): New function.
9405 (selftest::test_lexer_string_locations_ebcdic): New function.
9406 (selftest::test_lexer_string_locations_hex): New function.
9407 (selftest::test_lexer_string_locations_oct): New function.
9408 (selftest::test_lexer_string_locations_letter_escape_1): New function.
9409 (selftest::test_lexer_string_locations_letter_escape_2): New function.
9410 (selftest::test_lexer_string_locations_ucn4): New function.
9411 (selftest::test_lexer_string_locations_ucn8): New function.
9412 (selftest::uint32_from_big_endian): New function.
9413 (selftest::test_lexer_string_locations_wide_string): New function.
9414 (selftest::uint16_from_big_endian): New function.
9415 (selftest::test_lexer_string_locations_string16): New function.
9416 (selftest::test_lexer_string_locations_string32): New function.
9417 (selftest::test_lexer_string_locations_u8): New function.
9418 (selftest::test_lexer_string_locations_utf8_source): New function.
9419 (selftest::test_lexer_string_locations_concatenation_1): New
9421 (selftest::test_lexer_string_locations_concatenation_2): New
9423 (selftest::test_lexer_string_locations_concatenation_3): New
9425 (selftest::test_lexer_string_locations_macro): New function.
9426 (selftest::test_lexer_string_locations_stringified_macro_argument):
9428 (selftest::test_lexer_string_locations_non_string): New function.
9429 (selftest::test_lexer_string_locations_long_line): New function.
9430 (selftest::test_lexer_char_constants): New function.
9431 (selftest::input_c_tests): Call the new test functions once per
9432 case within the line_table test matrix.
9433 * input.h (struct string_concat): New struct.
9434 (struct location_hash): New struct.
9435 (class string_concat_db): New class.
9436 * substring-locations.h: New header.
9438 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9440 PR tree-optimization/72810
9441 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
9442 the type of the case labels when truncating.
9444 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9447 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
9448 (aarch64_fp16_ptr_type_node): Likewise.
9449 * config/aarch64/aarch64-simd-builtins.c
9450 (aarch64_fp16_ptr_type_node): Define.
9451 (aarch64_init_fp16_types): New, refactored out of...
9452 (aarch64_init_builtins): ...here, update to call
9453 aarch64_init_fp16_types.
9454 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
9456 (aapcs_vfp_sub_candidate): Likewise.
9458 2016-08-05 Martin Liska <mliska@suse.cz>
9459 Joshua Cranmer <Pidgeot18@gmail.com>
9461 * gcov.c (line_t::has_block): New function.
9462 (enum loop_type): New enum.
9463 (handle_cycle): New function.
9464 (unblock): Likewise.
9465 (circuit): Likewise.
9466 (get_cycles_count): Likewise.
9467 (accumulate_line_counts): Use new loop detection algorithm.
9469 2016-08-05 Martin Liska <mliska@suse.cz>
9471 * gcov.c (output_intermediate_file): Rename
9472 function_info::line_next to next_file_fn.
9473 (process_file): Likewise.
9474 (read_graph_file): Likewise.
9475 (accumulate_line_counts): Likewise.
9476 (output_lines): Likewise.
9478 2016-08-05 Richard Biener <rguenther@suse.de>
9480 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
9481 restriction on threading to a loop header.
9483 2016-08-05 Richard Biener <rguenther@suse.de>
9485 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
9486 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
9487 adjust loop info accordingly.
9489 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9491 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
9492 before folding call to __builtin_constant_p with parameters to false.
9494 2016-08-05 Alan Modra <amodra@gmail.com>
9496 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
9497 code accidentally committed 2016-05-02 providing class when given
9500 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9502 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
9503 the case label ranges that partially overlap with OP's value
9506 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
9509 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
9510 Cast builtin function result to __mmask16 instead of __mmask8.
9511 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9512 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
9513 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9515 2016-08-04 David Malcolm <dmalcolm@redhat.com>
9517 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
9518 (ASSERT_TRUE_AT): New macro.
9519 (ASSERT_FALSE): Reimplement in terms of...
9520 (ASSERT_FALSE_AT): New macro.
9521 (ASSERT_STREQ_AT): Fix typo in comment.
9523 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9525 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
9526 labels are exhaustive, designate the label with the widest
9527 range to be the default label.
9529 2016-08-04 Andrew Pinski <apinski@cavium.com>
9531 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
9532 (thunderx_tunings): Use thunderx_vector_cost instead of
9533 generic_vector_cost.
9535 2016-08-04 Martin Liska <mliska@suse.cz>
9537 * gcov.c (main): Fix GNU coding style.
9538 (output_intermediate_file): Likewise.
9539 (process_file): Likewise.
9540 (generate_results): Likewise.
9541 (release_structures): Likewise.
9542 (create_file_names): Likewise.
9543 (find_source): Likewise.
9544 (read_graph_file): Likewise.
9545 (find_exception_blocks): Likewise.
9546 (canonicalize_name): Likewise.
9547 (make_gcov_file_name): Likewise.
9548 (mangle_name): Likewise.
9549 (accumulate_line_counts): Likewise.
9550 (output_branch_count): Likewise.
9551 (read_line): Likewise.
9553 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9555 PR rtl-optimization/71779
9556 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
9557 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
9558 or if it was truncated.
9560 PR rtl-optimization/70903
9561 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
9563 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9565 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
9566 accessing SSA_NAME_PTR_INFO.
9568 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9571 * common/config/avr/avr-common.c (avr_option_optimization_table)
9572 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
9574 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9577 * config/avr/avr.md: New pattern to work around do_store_flag
9578 generating shift instructions for bit extractions.
9580 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9582 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
9584 (add_equivalence): Likewise.
9585 (get_value_range): Allocate value range with vrp_value_range_pool.
9586 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
9587 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
9589 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
9591 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
9592 the default for the rs6000 port.
9594 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9597 * calls.c (special_function_p): Remove special handling of
9598 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
9599 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
9600 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
9602 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
9605 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
9606 Don't stop on regular insns.
9608 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9610 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
9611 size to DImode boundary.
9612 (nvptx_propagate): Likewise.
9614 2016-08-03 Alan Modra <amodra@gmail.com>
9616 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
9617 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
9618 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
9619 from -mefficient-unaligned-vector. Note that this affects fp too.
9621 2016-08-03 Alan Modra <amodra@gmail.com>
9623 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
9626 2016-08-03 Alan Modra <amodra@gmail.com>
9628 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
9629 to a reg. Localize vars.
9631 2016-08-03 Alan Modra <amodra@gmail.com>
9633 * config/rs6000/rs6000.opt: Remove negatives from help strings
9636 2016-08-03 Alan Modra <amodra@gmail.com>
9638 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
9639 Delete duplicated code.
9641 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9644 * lra-spills.c (regno_in_use_p): New.
9645 (lra_final_code_change): Use it.
9647 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9649 PR rtl-optimization/69847
9650 * lra-int.h (struct lra-reg): Use restore_rtx instead of
9652 (lra_rtx_hash): New.
9653 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
9655 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
9656 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
9657 * lra-spills.c (lra_final_code_change): Don't delete insn when the
9658 next insn is USE with the same reg as the current insn source.
9659 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
9661 (lra_constraints_init): Call initiate_invariants.
9662 (lra_constraints_finish): Call finish_invariants.
9663 (struct invariant, invariant_t, invariant_ptr_t): New.
9664 (const_invariant_ptr_t, invariants, invariants_pool): New.
9665 (invariant_table, invariant_hash, invariant_eq_p): New.
9666 (insert_invariant, initiate_invariants, finish_invariants): New.
9667 (clear_invariants, invalid_invariant_regs): New.
9668 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
9669 instead of restore_regno.
9670 (invariant_p, process_invariant_for_inheritance): New.
9671 (inherit_in_ebb): Implement invariant inheritance.
9672 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
9673 (remove_inheritance_pseudos): Implement undoing invariant
9675 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
9676 instead of restore_regno.
9677 * lra-assigns.c (regno_live_length): New.
9678 (reload_pseudo_compare_func): Use regno_live_length.
9679 (assign_by_spills): Use restore_rtx instead of restore_regno.
9680 (lra_assign): Ditto. Initiate regno_live_length.
9682 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
9684 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
9685 __builtin_aarch64_fmindf.
9687 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9689 PR tree-optimization/34114
9690 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
9691 information for more control IVs.
9693 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9695 PR tree-optimization/34114
9696 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
9697 PLUS_EXPR case. Handle SSA_NAME case.
9699 2016-08-02 Tamar Christina <tamar.christina@arm.com>
9701 * config/aarch64/aarch64-simd-builtins.def
9702 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
9703 (__builtin_aarch64_fmaxdf): Likewise.
9704 (__builtin_aarch64_smin_nandf): Likewise.
9705 (__builtin_aarch64_smax_nandf): Likewise.
9706 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
9707 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
9708 (<fmaxmin><mode>3): ...this.
9709 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
9710 (vminnm_f64): Likewise.
9711 (vmin_f64): Likewise.
9712 (vmax_f64): Likewise.
9713 * config/aarch64/iterators.md (FMAXMIN): Merge with...
9714 (FMAXMIN_UNS): ...this.
9715 (fmaxmin): Merged with
9716 (fmaxmin_op): ...this...
9717 (maxmin_uns_op): ...in to this.
9719 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9721 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9722 Add support for vec_extract on vector float, vector int, vector
9723 short, and vector char vector types.
9724 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9725 vector float, vector int, vector short, and vector char
9726 optimizations on 64-bit ISA 2.07 systems for both constant and
9727 variable element numbers.
9728 (rs6000_split_vec_extract_var): Likewise.
9729 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
9730 Altivec registers on ISA 2.07 and above.
9731 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
9732 which never was matched due to the split occuring before register
9733 allocation (and the code would not have worked on little endian
9734 systems if it did match). Allow extracts to go to the Altivec
9735 registers if ISA 2.07 (power8). Change from using "" around the
9736 C++ code to using {}'s.
9737 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
9738 vec_extracts when the vector is in memory.
9739 (vsx_extract_v4sf_var): New insn to optimize vector float
9740 vec_extracts when the element number is variable on 64-bit ISA
9742 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
9743 for 64-bit ISA 2.07 as well as ISA 3.0.
9744 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
9745 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
9746 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
9747 optimize vector int, vector short, and vector char vec_extracts
9748 when the vector is in memory.
9749 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
9750 optimize vector int, vector short, and vector char vec_extracts
9751 when the element number is variable.
9753 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9756 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
9757 does not overlap with other symbol flags.
9759 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
9761 * config/aarch64/aarch64.h (aarch64_frame):
9762 Remove padding0 and hardfp_offset. Add locals_offset,
9763 initial_adjust, callee_adjust, callee_offset and final_adjust.
9764 * config/aarch64/aarch64.c (aarch64_layout_frame):
9765 Remove unused padding0 and hardfp_offset initializations.
9766 Choose frame layout and set frame variables accordingly.
9767 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
9768 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
9769 (aarch64_pop_regs): Likewise.
9770 (aarch64_expand_prologue): Remove all decision code, just emit
9771 prolog according to frame variables.
9772 (aarch64_expand_epilogue): Remove all decision code, just emit
9773 epilog according to frame variables.
9774 (aarch64_initial_elimination_offset): Use offset to local/arg area.
9776 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
9779 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
9780 fix_debug_reg_uses after changing source register mode to
9781 V1TImode if source register is undefined.
9783 2015-08-01 Alan Hayward <alan.hayward@arm.com>
9785 PR tree-optimization/71818
9786 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
9787 with non invariant evolutions
9789 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9792 * config/avr/avr.md (length) [branch]: Correct insn length
9793 attribute for forward branches.
9795 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9797 * doc/extend.texi (AVR Built-in Functions): Document
9799 * config/avr/builtins.def (NOPS): New.
9800 * config/avr/avr.c (avr_expand_nops): New static function.
9801 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
9803 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9805 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
9806 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
9809 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
9811 * config/aarch64/aarch64.c (vulcan_tunings): Update
9812 vulcan L1 cache_line_size.
9814 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9816 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
9817 function that takes a vector memory address, a hard register, an
9818 element number and a temporary base register, and recreates an
9819 address that points to the appropriate element within the vector.
9820 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
9821 (rs6000_split_vec_extract_var): Add support for the target of a
9822 vec_extract with variable element number being a scalar memory
9824 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
9826 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
9827 vsx_extract_<mode>_load insn with a new insn that optimizes
9828 storing either element to a memory location, using scratch
9829 registers to pick apart the vector and reconstruct the address.
9830 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
9831 (vsx_extract_<mode>_store): Rework alternatives to more correctly
9832 support Altivec registers. Add support for ISA 3.0 Altivec d-form
9834 (vsx_extract_<mode>_var): Add support for extracting a variable
9835 element number from memory.
9837 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9839 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
9840 when testing for compares against constants of the form 0xabab.
9842 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9844 PR tree-optimization/57558
9845 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
9847 (vect_loop_versioning): Support versioning with niter assumptions.
9848 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
9849 (vect_get_loop_niters): New parameter. Reimplement to support
9850 assumptions in loop niter info.
9851 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
9852 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
9853 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
9854 Support loop versioning for niters.
9855 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
9856 (vect_free_loop_info_assumptions): New function.
9857 (vectorize_loops): Free loop niter info for loops with flag
9858 LOOP_F_ASSUMPTIONS set if vectorization failed.
9859 * tree-vectorizer.h (struct _loop_vec_info): New field
9860 num_iters_assumptions.
9861 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
9862 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
9863 (LOOP_REQUIRES_VERSIONING): New macro.
9864 (vect_free_loop_info_assumptions): New decl.
9866 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9868 * cfgloop.h (struct loop): New field constraints.
9869 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
9870 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
9872 * cfgloop.c (alloc_loop): Initialize new field.
9873 * cfgloopmanip.c (copy_loop_info): Copy constraints.
9874 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9875 Adjust niter analysis wrto loop constraints.
9876 * doc/loop.texi (@node Number of iterations): Add description for loop
9879 2016-07-29 Marek Polacek <polacek@redhat.com>
9882 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
9883 (ix86_expand_round_builtin): Likewise.
9885 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9886 Georg-Johann Lay <avr@gjlay.de>
9888 PR rtl-optimization/71976
9889 * combine.c (get_last_value): Return 0 if the argument for which
9890 the function is called has a wider mode than the recorded value.
9892 2016-07-29 Marek Polacek <polacek@redhat.com>
9895 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
9896 (altivec_expand_st_builtin): Likewise.
9898 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9900 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
9901 introduced in r238381.
9903 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9906 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
9907 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
9909 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9911 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
9913 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9914 Add support for vec_extract of vector double or vector long having
9915 a variable element number on 64-bit ISA 2.07 systems or newer.
9916 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9918 (rs6000_split_vec_extract_var): New function to split a
9919 vec_extract built-in function with variable element number.
9920 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
9922 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
9923 (UNSPEC_VSX_EXTRACT): Likewise.
9924 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
9925 direct move instructions to be generated on 64-bit ISA 2.07
9926 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
9928 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
9929 arguments for vec_extract variable element.
9930 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
9931 vec_extract with variable element on V2DFmode and V2DImode
9933 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
9934 -mupper-regs-df requirement, since it isn't needed.
9935 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
9936 do direct moves on 64-bit systems, which allows optimization of
9937 vec_extract on 64-bit ISA 2.07 systems and newer.
9939 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9940 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9942 * config/aarch64/aarch64.md
9943 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
9945 (<optab>qihi2_aarch64): Likewise, and split into two.
9946 (extendqihi2_aarch64): New.
9947 (zero_extendqihi2_aarch64): New.
9948 * config/aarch64/iterators.md (ldrxt): Remove.
9949 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
9952 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9954 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
9956 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9958 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
9959 (aarch64_push_reg): New function to push 1 or 2 registers.
9960 (aarch64_pop_reg): New function to pop 1 or 2 registers.
9961 (aarch64_expand_prologue): Use aarch64_push_regs.
9962 (aarch64_expand_epilogue): Use aarch64_pop_regs.
9964 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
9966 PR tree-optimization/71734
9967 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
9968 attribute instead of REF_LOOP and use it.
9969 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
9970 set it for Loops having non-zero safelen attribute.
9971 (ref_indep_loop_p): Pass zero as initial value for safelen.
9973 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
9977 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
9978 call using chkp_gimple_call_builtin_p.
9979 (chkp_copy_bounds_for_assign): Likewise.
9981 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9983 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
9984 * config/arm/arm-protos.h (struct tune_params): Likewise.
9985 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9986 (cortex_a9_sched_adjust_cost): Likewise.
9987 (fa726te_sched_adjust_cost): Likewise.
9988 (arm_adjust_cost): Likewise.
9989 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
9990 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
9991 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
9992 * config/i386/i386.c (ix86_adjust_cost): Likewise.
9993 * config/ia64/ia64.c: Likewise.
9994 * config/m68k/m68k.c: Likewise.
9995 * config/mep/mep.c (mep_adjust_cost): Likewise.
9996 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9998 * config/mips/mips.c (mips_adjust_cost): Likewise.
9999 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
10001 * config/pa/pa.c (pa_adjust_cost): Likewise.
10002 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
10003 (rs6000_debug_adjust_cost): Likewise.
10004 * config/sh/sh.c (sh_adjust_cost): Likewise.
10005 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
10006 (hypersparc_adjust_cost): Likewise.
10007 (sparc_adjust_cost): Likewise.
10008 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
10009 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
10010 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
10012 * config/visium/visium.c (visium_adjust_cost): Likewise.
10013 * doc/tm.texi: Regenerate.
10014 * haifa-sched.c (dep_cost_1): Adjust.
10015 * target.def: Merge adjust_cost and adjust_cost_2.
10017 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10019 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
10021 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10023 * store-motion.c (struct st_expr): Make pattern_regs a vector.
10024 (extract_mentioned_regs): Append to a vector instead of
10025 returning a rtx_expr_list.
10026 (st_expr_entry): Adjust.
10027 (free_st_expr_entry): Likewise.
10028 (store_ops_ok): Likewise.
10029 (store_killed_in_insn): Likewise.
10030 (find_moveable_store): Likewise.
10032 2016-07-28 Martin Liska <mliska@suse.cz>
10034 PR gcov-profile/68025
10035 * tree-profile.c (tree_profiling): Respect
10036 no_profile_instrument_function attribute.
10037 * doc/extend.texi: Document no_profile_instrument_function
10040 2016-07-28 Martin Liska <mliska@suse.cz>
10042 PR rtl-optimization/70944
10043 * combine.c (make_compound_operation):
10044 Do not allow make_compound_operation for vector mode
10046 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
10048 PR middle-end/71994
10049 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
10050 before calling get_ops.
10052 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10054 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
10055 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
10056 (BITS_PER_UNIT_LOG): Remove.
10057 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
10058 * expr.c (expand_assignment): Likewise.
10059 * stor-layout.c (initialize_sizetypes): Likewise.
10061 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10063 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
10064 signature of rs6000_expand_vector_extract so that the element
10065 number is a RTX instead of a constant integer.
10066 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
10068 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
10069 (altivec_expand_vec_ext_builtin): Likewise.
10070 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
10071 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
10072 MFVSRLD instruction.
10074 2016-07-27 David Malcolm <dmalcolm@redhat.com>
10076 * input.c (get_pure_location): Move here from tree.c.
10077 (make_location): Likewise. Add header comment.
10078 (selftest::test_accessing_ordinary_linemaps): Verify
10079 pure_location_p, make_location, get_location_from_adhoc_loc and
10080 get_range_from_loc.
10081 * input.h (get_pure_location): Move declaration here from tree.h.
10082 (get_finish): Likewise for inline function.
10083 (make_location): Likewise for declaration.
10084 * tree.c (get_pure_location): Move to input.c.
10085 (make_location): Likewise.
10086 * tree.h (get_pure_location): Move declaration to tree.h.
10087 (get_finish): Likewise for inline function.
10088 (make_location): Likewise for declaration.
10090 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10092 PR middle-end/71078
10093 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
10095 2016-07-27 David Malcolm <dmalcolm@redhat.com>
10097 * system.h (STATIC_ASSERT): Use static_assert if building
10098 with C++11 onwards.
10100 2016-07-27 Richard Biener <rguenther@suse.de>
10102 PR tree-optimization/72517
10103 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10104 Revert change to not compute read-read dependences.
10106 2016-07-27 Richard Biener <rguenther@suse.de>
10108 * predict.c (set_even_probabilities): Make nedges unsigned.
10110 2016-07-27 Martin Liska <mliska@suse.cz>
10112 * predict.c (set_even_probabilities): Handle unlikely edges.
10113 (combine_predictions_for_bb): Likewise.
10115 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10118 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
10119 __float128 support when we don't have hardware support, so that
10120 the IEEE built-in functions like isgreater, first call __unordkf3
10121 to make sure neither operand is a NaN, and if both operands are
10122 ordered, do the normal comparison.
10124 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
10126 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
10128 (extract_code_and_val_from_cond_with_ops): Verify that name is
10129 either cond_op0 or cond_op1.
10131 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
10133 PR tree-optimization/18046
10134 * genmodes.c (emit_mode_size_inline): Emit an assert that
10135 verifies that mode is a valid array index.
10136 (emit_mode_nuinits_inline): Likewise.
10137 (emit_mode_inner_inline): Likewise.
10138 (emit_mode_unit_size_inline): Likewise.
10139 (emit_mode_unit_precision_inline): Likewise.
10140 * tree-vrp.c: Include params.h.
10141 (find_switch_asserts): Register edge assertions for the default
10142 label which correspond to the anti-ranges of each case label.
10143 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
10144 * doc/invoke.texi: Document it.
10146 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10148 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
10149 and unnecessary call to gimple_bb.
10151 2016-07-26 Richard Biener <rguenther@suse.de>
10153 PR rtl-optimization/71984
10154 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
10157 2016-07-26 Richard Biener <rguenther@suse.de>
10159 PR middle-end/72517
10160 * expmed.c (extract_bit_field_1): Constrain the vector mode
10161 with element size matching the extraction mode size when
10162 choosing a better vector mode to do the extraction from.
10164 2016-07-26 Richard Biener <rguenther@suse.de>
10165 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10167 PR middle-end/70920
10168 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
10171 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10173 * tree-ssa-structalias.c (struct scc_info): Change types of
10174 members to auto_sbitmap and auto_vec.
10175 (scc_info::scc_info): New constructor.
10176 (scc_info::~scc_info): New destructor.
10177 (init_scc_info): Remove.
10178 (free_scc_info): Remove.
10179 (find_indirect_cycles): Adjust.
10180 (perform_var_substitution): Likewise.
10181 (free_var_substitution_info): Likewise.
10183 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10185 * tree-outof-ssa.c (struct elim_graph): Change type of members
10186 to auto_vec and auto_sbitmap.
10187 (elim_graph::elim_graph): New constructor.
10188 (delete_elim_graph): Remove.
10189 (expand_phi_nodes): Adjust.
10191 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10193 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
10194 (new_elim_graph): Adjust.
10195 (clear_elim_graph): Likewise.
10196 (delete_elim_graph): Likewise.
10197 (elim_graph_size): Likewise.
10198 (elim_graph_add_node): Likewise.
10199 (elim_graph_add_edge): Likewise.
10200 (elim_graph_remove_succ_edge): Likewise.
10201 (eliminate_name): Likewise.
10202 (eliminate_build): Likewise.
10203 (elim_forward): Likewise.
10204 (elim_unvisited_predecessor): Likewise.
10205 (elim_backward): Likewise.
10206 (elim_create): Likewise.
10207 (eliminate_phi): Likewise.
10208 (expand_phi_nodes): Likewise.
10210 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10212 * bt-load.c (compute_out): Use auto_sbitmap class.
10213 (link_btr_uses): Likewise.
10214 * cfganal.c (mark_dfs_back_edges): Likewise.
10215 (post_order_compute): Likewise.
10216 (inverted_post_order_compute): Likewise.
10217 (pre_and_rev_post_order_compute_fn): Likewise.
10218 (single_pred_before_succ_order): Likewise.
10219 * cfgexpand.c (pass_expand::execute): Likewise.
10220 * cfgloop.c (verify_loop_structure): Likewise.
10221 * cfgloopmanip.c (fix_bb_placements): Likewise.
10222 (remove_path): Likewise.
10223 (update_dominators_in_loop): Likewise.
10224 * cfgrtl.c (break_superblocks): Likewise.
10225 * ddg.c (check_sccs): Likewise.
10226 (create_ddg_all_sccs): Likewise.
10227 * df-core.c (df_worklist_dataflow): Likewise.
10228 * dse.c (dse_step3): Likewise.
10229 * except.c (eh_region_outermost): Likewise.
10230 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10231 * gcse.c (prune_expressions): Likewise.
10232 (prune_insertions_deletions): Likewise.
10233 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
10234 * graph.c (draw_cfg_nodes_no_loops): Likewise.
10235 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
10236 * lcm.c (compute_earliest): Likewise.
10237 (compute_farthest): Likewise.
10238 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
10239 (unroll_loop_runtime_iterations): Likewise.
10240 (unroll_loop_stupid): Likewise.
10241 * lower-subreg.c (decompose_multiword_subregs): Likewise.
10242 * lra-lives.c: Likewise.
10243 * lra.c (lra): Likewise.
10244 * modulo-sched.c (schedule_reg_moves): Likewise.
10245 (optimize_sc): Likewise.
10246 (get_sched_window): Likewise.
10247 (sms_schedule_by_order): Likewise.
10248 (check_nodes_order): Likewise.
10249 (order_nodes_of_sccs): Likewise.
10250 (order_nodes_in_scc): Likewise.
10251 * recog.c (split_all_insns): Likewise.
10252 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
10253 * reload1.c (reload): Likewise.
10254 * sched-rgn.c (haifa_find_rgns): Likewise.
10255 (split_edges): Likewise.
10256 (compute_trg_info): Likewise.
10257 * sel-sched.c (init_seqno): Likewise.
10258 * store-motion.c (remove_reachable_equiv_notes): Likewise.
10259 * tree-into-ssa.c (update_ssa): Likewise.
10260 * tree-ssa-live.c (live_worklist): Likewise.
10261 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
10262 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10264 (try_peel_loop): Likewise.
10265 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10267 * tree-ssa-pre.c (compute_antic): Likewise.
10268 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
10269 * tree-stdarg.c (reachable_at_most_once): Likewise.
10270 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
10271 * var-tracking.c (vt_find_locations): Likewise.
10273 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10275 * sbitmap.h (auto_sbitmap): New class.
10277 2016-07-26 Alan Modra <amodra@gmail.com>
10280 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
10283 2016-07-25 David Malcolm <dmalcolm@redhat.com>
10285 * input.c (selftest::temp_source_file::temp_source_file): Fix
10286 missing "%s" in fprintf.
10288 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
10290 PR middle-end/71732
10291 * cselib.c (cselib_process_insn): Invalidate argument slots for
10294 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10296 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
10297 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
10298 vmulxh_lane_f16, vmulxh_laneq_f16): New.
10300 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10302 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10303 * config/aarch64/aarch64.md (fma, fnma): Support HF.
10304 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
10306 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10308 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10309 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
10311 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
10312 (add<mode>3): Likewise.
10313 (sub<mode>3): Likewise.
10314 (mul<mode>3): Likewise.
10315 (div<mode>3): Likewise.
10316 (*div<mode>3): Likewise.
10317 (<fmaxmin><mode>3): Extend to HF.
10318 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
10319 (fabd<mode>3): Likewise.
10320 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
10321 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
10322 (aarch64_fmulx<mode>): Likewise.
10323 (aarch64_fac<optab><mode>): Likewise.
10324 (aarch64_frecps<mode>): Likewise.
10325 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
10326 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
10327 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
10328 (VSDQ_HSDI): Support HI.
10329 (fcvt_target, FCVT_TARGET): Likewise.
10330 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
10331 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
10332 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
10333 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
10334 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
10335 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
10336 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
10337 vrsqrtsh_f16): New.
10339 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10341 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
10342 * config/aarch64/aarch64-builtins.c (hi_UP): New.
10343 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10344 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
10346 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10347 (aarch64_cm<optab><mode>): Likewise.
10348 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
10349 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
10350 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
10351 (sqrt<mode>2): Likewise.
10352 (*sqrt<mode>2): Likewise.
10353 (abs<mode>2): Likewise.
10354 (<optab><mode>hf2): New pattern for HF mode.
10355 (<optab>hihf2): Likewise.
10356 * config/aarch64/arm_neon.h: Include arm_fp16.h.
10357 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
10358 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
10360 * config/aarch64/arm_fp16.h: New file.
10361 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
10362 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
10363 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
10364 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
10365 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
10366 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
10367 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
10368 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
10369 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
10370 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
10371 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
10372 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
10375 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10377 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
10378 reduc_smin_scal_): Use VDQIF_F16.
10379 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
10380 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
10382 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
10383 * config/aarch64/iterators.md (VDQIF_F16): New.
10384 (vp): Support HF modes.
10385 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
10386 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
10388 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10390 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
10391 "*aarch64_mulx_elt_from_dup<mode>".
10392 (*aarch64_mul3_elt<mode>): Update schedule type.
10393 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
10394 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
10395 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10396 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
10397 (f, fp): Support HF modes.
10398 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
10399 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
10400 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
10401 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
10402 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
10403 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
10405 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10407 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10408 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
10410 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
10413 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10415 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10416 * config/aarch64/aarch64-simd.md
10417 (aarch64_rsqrts<mode>): Extend to HF modes.
10418 (fabd<mode>3): Likewise.
10419 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
10420 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
10421 (aarch64_<maxmin_uns>p<mode>): Likewise.
10422 (<su><maxmin><mode>3): Likewise.
10423 (<maxmin_uns><mode>3): Likewise.
10424 (<fmaxmin><mode>3): Likewise.
10425 (aarch64_faddp<mode>): Likewise.
10426 (aarch64_fmulx<mode>): Likewise.
10427 (aarch64_frecps<mode>): Likewise.
10428 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
10429 (add<mode>3): Extend to HF modes.
10430 (sub<mode>3): Likewise.
10431 (mul<mode>3): Likewise.
10432 (div<mode>3): Likewise.
10433 (*div<mode>3): Likewise.
10434 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
10436 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
10437 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
10438 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
10439 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
10440 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
10441 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
10442 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
10443 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
10444 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
10445 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
10446 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
10447 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
10448 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
10449 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
10451 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10453 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
10454 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10455 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
10456 (neg<mode>2): Likewise.
10457 (abs<mode>2): Likewise.
10458 (<frint_pattern><mode>2): Likewise.
10459 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10460 (<optab><VDQF:mode><fcvt_target>2): Likewise.
10461 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
10462 (ftrunc<VDQF:mode>2): Likewise.
10463 (<optab><fcvt_target><VDQF:mode>2): Likewise.
10464 (sqrt<mode>2): Likewise.
10465 (*sqrt<mode>2): Likewise.
10466 (aarch64_frecpe<mode>): Likewise.
10467 (aarch64_cm<optab><mode>): Likewise.
10468 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
10470 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
10471 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
10473 * config/aarch64/arm_neon.h (vdup_n_f16): New.
10474 (vdupq_n_f16): Likewise.
10475 (vld1_dup_f16): Use vdup_n_f16.
10476 (vld1q_dup_f16): Use vdupq_n_f16.
10477 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
10478 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
10479 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
10480 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
10481 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
10482 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
10483 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
10484 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
10485 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
10486 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
10487 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
10488 vsqrt_f16, vsqrtq_f16): New.
10490 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10492 * config/aarch64/aarch64-simd.md
10493 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
10494 (aarch64_ext<mode>): Likewise.
10495 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
10496 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
10497 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
10499 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
10501 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
10502 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
10503 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
10504 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
10505 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
10506 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
10507 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
10509 (vmov_n_f16): Reimplement using vdup_n_f16.
10510 (vmovq_n_f16): Reimplement using vdupq_n_f16..
10512 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10514 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
10515 "frame_related_p". Generate CFA annotation when it's necessary.
10516 (aarch64_expand_prologue): Use aarch64_add_constant.
10517 (aarch64_expand_epilogue): Likewise.
10518 (aarch64_output_mi_thunk): Pass "false" when calling
10519 aarch64_add_constant.
10521 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10523 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
10526 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10528 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
10529 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
10530 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
10531 (aarch64_build_constant): Delete.
10533 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
10536 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10538 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10539 flag_toplevel_reorder.
10541 2016-07-25 Richard Biener <rguenther@suse.de>
10543 * cgraph.c (cgraph_node::verify_node): Compare against builtin
10544 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
10545 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
10546 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
10547 (streamer_get_builtin_tree): Likewise.
10548 (streamer_write_builtin): Likewise.
10549 * lto-streamer.h (LTO_builtin_decl): Remove.
10550 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
10551 (lto_input_scc): Remove LTO_builtin_decl handling.
10552 (lto_input_tree_1): Liekwise.
10553 * lto-streamer-out.c (lto_output_tree_1): Remove special
10554 handling of builtins.
10555 (DFS::DFS): Likewise.
10556 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
10557 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
10559 (streamer_write_builtin): Remove.
10561 2016-07-25 Martin Liska <mliska@suse.cz>
10563 * lto-cgraph.c (input_symtab): Don't call get_working_sets
10564 if flag_auto_profile is set to true.
10566 2016-07-25 Martin Liska <mliska@suse.cz>
10568 PR gcov-profile/71868
10569 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
10570 have a function with multiple latches, count them all.
10572 2016-07-25 Martin Liska <mliska@suse.cz>
10574 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
10576 2016-07-25 Martin Liska <mliska@suse.cz>
10578 PR tree-optimization/71987
10579 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
10580 just for SSA_NAMEs. Fix GNU coding style.
10582 2016-07-25 Martin Liska <mliska@suse.cz>
10584 PR gcov-profile/64874
10585 * gcov-io.h: Update command about file format.
10586 * gcov-iov.c (main): Adapt the numbering scheme.
10588 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
10590 PR middle-end/66726
10591 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
10592 whose result is used in PHI.
10593 (final_range_test_p): Likewise.
10594 (maybe_optimize_range_tests): Likewise.
10596 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10598 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10599 Reformat two multi-line strings.
10601 2016-07-22 Martin Sebor <msebor@redhat.com>
10603 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
10605 2016-07-22 Martin Sebor <msebor@redhat.com>
10608 * doc/extend.texi (Compound Literals): Correct and clarify.
10609 (Cast to Union): Same.
10611 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
10613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10614 comments to explain why certain error messages make mention of
10615 undocumented options.
10616 (rs6000_invalid_builtin): Change error messages to replace mention
10617 of undocumented options with mention of the -mcpu=power9 option
10618 that enables those undocumented options.
10619 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
10620 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
10621 definition of this macro to correct an existing error.
10622 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
10623 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
10624 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
10625 descriptions of built-in functions so that they depend on
10626 -mcpu=power9 instead of on the corresponding undocumented flags.
10627 * doc/invoke.texi (Option Summary): Remove all mention of newly
10628 undocumented flags.
10629 (IBM RS/6000 and PowerPC Options): Likewise.
10630 * doc/md.texi (Constraints for Particuliar Machines): Remove all
10631 mention of newly undocumented flags.
10633 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
10635 * ipa-cp.c (determine_versionability): Do not create constprop clones,
10636 when target_clones attribute is set.
10638 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10640 * common.opt (funsafe-loop-optimizations): Mark ignore.
10641 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
10642 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
10644 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
10645 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
10647 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10649 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10651 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10653 (number_of_iterations_exit): Warn missed loop optimization for
10654 possible infinite loops.
10656 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
10659 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
10660 when to emit a ".machine" pseudo-op.
10662 2016-07-22 Martin Liska <mliska@suse.cz>
10664 PR gcov-profile/69028
10665 PR gcov-profile/62047
10666 * coverage.c (coverage_compute_lineno_checksum): Do not
10667 calculate checksum for fns w/o xloc.file.
10668 (coverage_compute_profile_id): Likewise.
10670 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
10672 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
10673 (avr_secondary_reload): ...and implementation.
10674 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
10675 * config/avr/avr.md (reload_in<mode>): Remove insns.
10676 (adjust_len) [lpm]: Remove insn attribute value.
10677 * config/avr/predicates.md (flash_operand): Remove insn predicate.
10679 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10681 PR middle-end/71876
10682 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
10684 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
10685 * calls.c (special_function_p): Remove the special handling of the
10686 "__builtin_" prefix.
10688 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10690 PR middle-end/71876
10691 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
10692 if STMT may be an alloca call.
10693 (gimple_alloca_call_p, alloca_call_p): Return only true for the
10694 builtin alloca call.
10695 * calls.h (gimple_maybe_alloca_call_p): New function.
10696 * tree-inline.c (inline_forbidden_p_stmt): Use
10697 gimple_maybe_alloca_call_p here.
10699 2016-07-21 David Malcolm <dmalcolm@redhat.com>
10701 * spellcheck-tree.c (best_macro_match::best_macro_match):
10702 Explictly specify the template arguments when invoking the base
10703 class constructor, to help older C++ compilers.
10705 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10708 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
10709 before builtin_decl_implicit.
10711 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10713 * optabs.c (emit_condiitonal_move): Short circuit for identical
10716 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10718 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
10719 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
10720 (noce_conversion_profitable_p): New.
10721 (noce_try_store_flag_constants): Use it.
10722 (noce_try_addcc): Likewise.
10723 (noce_try_store_flag_mask): Likewise.
10724 (noce_try_cmove): Likewise.
10725 (noce_try_cmove_arith): Likewise.
10726 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
10728 (noce_convert_multiple_sets): Move cost model to here, from...
10729 (bb_ok_for_noce_convert_multiple_sets) ...here.
10730 (noce_process_if_block): Update calls for above changes.
10731 (noce_find_if_block): Record new noce_if_info parameters.
10733 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10735 * target.def (max_noce_ifcvt_seq_cost): New.
10736 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
10737 * doc/tm.texi: Regenerate.
10738 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
10739 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
10740 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
10741 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
10742 * doc/invoke.texi: Document new params.
10744 2016-07-21 Richard Biener <rguenther@suse.de>
10746 PR tree-optimization/71947
10747 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
10748 ranges have useful limit_vr information.
10750 2016-07-21 Richard Biener <rguenther@suse.de>
10752 * function-tests.c (build_trivial_generic_function): Set
10753 BLOCK_SUPERCONTEXT of DECL_INITIAL.
10754 * omp-low.c (create_omp_child_function): Likewise.
10755 (grid_expand_target_grid_body): Likewise.
10756 * cgraphunit.c (init_lowered_empty_function): Likewise.
10757 (cgraph_node::expand_thunk): Likewise.
10758 * tree-parloops.c (create_loop_fn): Likewise.
10759 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
10761 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10763 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
10766 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
10768 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
10769 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
10770 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
10771 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
10772 values for insn attribute.
10773 * config/avr/avr.c (avr_out_insert_notbit): New function.
10774 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
10775 ADJUST_LEN_INSV_NOTBIT_0/_7.
10776 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
10778 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10780 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
10781 (chrec_convert_1, chrec_convert): Ditto.
10782 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
10783 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
10784 * tree-vrp.c (adjust_range_with_scev): Ditto.
10785 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
10786 (scev_var_range_cant_overflow): New function.
10787 (scev_probably_wraps_p): New parameter. Call above function.
10788 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
10790 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10792 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
10793 by removing computation of may_be_zero.
10795 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10797 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
10799 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
10801 Improving concepts performance and diagnostics.
10802 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
10803 for constraint satisfaction and subsumption.
10804 * timevar.h (auto_timevar): New constructor that matches the push/pop
10805 pattern of usage in pt.c.
10807 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10809 * hwint.h (HOST_WIDE_INT_0): New define.
10810 (HOST_WIDE_INT_0U): Ditto.
10811 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
10812 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
10813 * simplify-rtx.c: Ditto.
10814 * tree-object-size.c: Ditto.
10816 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10818 * config/s390/s390.c (s390_encode_section_info): Remove mode size
10821 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10823 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
10824 * combine.c: Use HOST_WIDE_INT_M1U instead of
10825 ~(unsigned HOST_WIDE_INT) 0.
10826 * double-int.h: Ditto.
10828 * dwarf2asm.c:Ditto.
10830 * genmodes.c: Ditto.
10832 * read-rtl.c: Ditto.
10833 * tree-ssa-loop-ivopts.c: Ditto.
10834 * tree-ssa-loop-prefetch.c: Ditto.
10835 * tree-vect-generic.c: Ditto.
10836 * tree-vect-patterns.c: Ditto.
10839 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10841 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
10842 constant addresses outside [0,0xc0] into a register.
10843 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
10844 cases where the base address register is unused after.
10845 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
10846 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
10847 (avr_out_store_psi_reg_disp_tiny): Same.
10849 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10851 Implement attribute progmem on reduced Tiny cores by adding
10852 flash offset 0x4000 to respective symbols.
10855 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
10856 documentation how it works on reduced Tiny cores.
10857 (AVR Named Address Spaces): No support for reduced Tiny.
10858 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
10859 (avr_address_tiny_pm_p): New static function.
10860 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
10861 if the address is in progmem.
10862 (avr_assemble_integer): Same.
10863 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
10864 for symbol_ref in progmem.
10865 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
10866 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
10867 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
10869 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
10871 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
10872 * configure: Regenerate.
10873 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
10874 (USE_THIN_ARCHIVES): New variable.
10875 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
10876 this archive as a thin archive.
10878 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10880 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
10881 same location as last time, don't skip if we have fix-it hints.
10882 Clarify the skipping logic by converting it from one "if" clause
10883 to repeated "if" clauses.
10884 * spellcheck-tree.c: Include "cpplib.h".
10885 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
10886 (best_macro_match::best_macro_match): New constructor.
10887 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
10888 Move here from c/c-decl.c.
10889 (class best_macro_match): Move here from c/c-decl.c, converting
10890 from a typedef to a subclass, gaining a ctor.
10892 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10894 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
10895 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
10897 (avr_addr_space_diagnose_usage): ...and implementation.
10898 (avr_addr_space_supported_p): New function.
10899 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
10900 report bad address space usage if that space is supported.
10901 (avr_insert_attributes): Same. No more complain about unsupported
10903 * config/avr/avr-c.c (tm_p.h): Include it.
10904 (avr_cpu_cpp_builtins): Only define addr-space related built-in
10905 macro if avr_addr_space_supported_p.
10907 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10909 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10910 flag_toplevel_reorder.
10912 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10914 * gcc-rich-location.c
10915 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
10917 * gcc-rich-location.h
10918 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
10920 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10922 * target.def (addr_space): Add new diagnose_usage to hook vector.
10923 * targhooks.c (default_addr_space_diagnose_usage): Add default
10924 implementation and...
10925 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
10926 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
10927 is some address space, call targetm.addr_space.diagnose_usage.
10928 * doc/tm.texi.in (Named Address Spaces): Add anchor for
10929 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
10930 * doc/tm.texi: Regenerate.
10932 2016-07-20 Martin Liska <mliska@suse.cz>
10934 PR middle-end/71898
10935 * graphite-isl-ast-to-gimple.c (later_of_the_two):
10936 Properly handly PHI stmts.
10938 2016-07-20 Bin Cheng <bin.cheng@arm.com>
10940 PR tree-optimization/71503
10941 PR tree-optimization/71683
10942 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
10945 2016-07-20 Martin Liska <mliska@suse.cz>
10947 * doc/invoke.texi (-fipa-ra): Document when the option is
10948 disabled. Fix a typo.
10950 2016-07-20 Martin Liska <mliska@suse.cz>
10952 * Makefile.in: Include fibonacci_heap.c
10953 * fibonacci_heap.c: New file.
10954 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
10955 (fibonacci_heap::union_with): Fix deletion of the second heap.
10956 * selftest-run-tests.c (selftest::run_tests): Incorporate
10957 fibonacci heap tests.
10958 * selftest.h: Declare fibonacci_heap_c_tests.
10960 2016-07-20 Martin Liska <mliska@suse.cz>
10962 * selftest-run-tests.c (selftest::run_tests): New function.
10963 * selftest.h (sreal_c_tests): Declare.
10964 * sreal.c (sreal_verify_basics): New function.
10965 (verify_aritmetics): Likewise.
10966 (sreal_verify_arithmetics): Likewise.
10967 (verify_shifting): Likewise.
10968 (sreal_verify_shifting): Likewise.
10969 (void sreal_c_tests): Likewise.
10971 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10973 PR rtl-optimization/71916
10974 * cfgrtl.c (contains_no_active_insn_p): Return false also for
10975 bb which have a single succ fake edge.
10977 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
10980 * dwarf2out.c (gen_subprogram_die): Only call
10981 gen_unspecified_parameters_die while dumping early dwarf.
10983 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10985 PR middle-end/71874
10986 * gimple-fold.c (fold_builtin_memory_op): Use
10987 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10989 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
10991 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
10992 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
10993 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
10994 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
10995 * combine.c: Ditto.
10998 * double-int.c: Ditto.
11000 * dwarf2out.c: Ditto.
11003 * fold-const.c: Ditto.
11004 * function.c: Ditto.
11006 * genmodes.c: Ditto.
11010 * loop-doloop.c: Ditto.
11011 * loop-invariant.c: Ditto.
11012 * loop-iv.c: Ditto.
11017 * rtlanal.c: Ditto.
11018 * simplify-rtx.c: Ditto.
11019 * stor-layout.c: Ditto.
11021 * tree-ssa-loop-ivopts.c: Ditto.
11022 * tree-vect-generic.c: Ditto.
11023 * tree-vect-patterns.c: Ditto.
11028 * wide-int-print.cc: Ditto.
11029 * wide-int.cc: Ditto.
11030 * wide-int.h: Ditto.
11032 2016-07-19 David Malcolm <dmalcolm@redhat.com>
11034 * selftest.c (selftest::assert_streq): Handle NULL values of
11035 val_actual and val_expected.
11037 2016-07-19 Martin Jambor <mjambor@suse.cz>
11040 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
11041 rather than cgraph_create_node to get a call graph node.
11043 2016-07-19 Richard Biener <rguenther@suse.de>
11045 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
11046 handle all tcc_constant bases and valueize SSA names.
11047 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
11048 tcc_constant bases.
11050 2016-07-19 David Malcolm <dmalcolm@redhat.com>
11052 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
11053 the flags of the exit block and bb2, not just the entry block.
11055 2016-07-19 Richard Biener <rguenther@suse.de>
11057 PR tree-optimization/71901
11058 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11059 align member, group stuff with the bitfield.
11060 (vn_ref_op_align_unit): New inline.
11061 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
11062 record element alignment and operand 3 unchanged.
11063 (ao_ref_init_from_vn_reference): Adjust.
11064 (valueize_refs_1): Likewise.
11065 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11067 2016-07-19 Richard Biener <rguenther@suse.de>
11069 PR tree-optimization/71908
11070 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
11071 symbolic constants in a more reliable way.
11073 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
11075 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
11077 (vect_update_inits_of_drs): Likewise.
11078 (vect_create_cond_for_alias_checks): Likewise.
11079 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
11081 2016-07-19 Richard Biener <rguenther@suse.de>
11084 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
11085 with an abstract origin that is not an inlined function outer
11086 scope add a self-reference as abstract origin.
11087 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
11089 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11092 * config/rs6000/rs6000.c (rs6000_function_value): Fix
11093 unintentional System V.4 structure return breakage for structures
11094 with a single floating point element.
11096 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11098 PR tree-optimization/71734
11099 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
11100 contains REF, use it to check safelen, assume that safelen value
11101 must be greater 1, fix style.
11102 (ref_indep_loop_p_2): Add REF_LOOP argument.
11103 (ref_indep_loop_p): Pass LOOP as additional argument to
11104 ref_indep_loop_p_2.
11106 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
11108 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
11109 allocation in the prologue.
11110 * explow.c (get_dynamic_stack_base): New function to return an address
11111 expression for the dynamic stack base.
11112 (get_dynamic_stack_size): New function to do the required dynamic stack
11113 space size calculations.
11114 (allocate_dynamic_stack_space): Use new functions.
11115 (align_dynamic_address): Move some code from
11116 allocate_dynamic_stack_space to new function.
11117 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
11119 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11121 * config/s390/s390.c (s390_encode_section_info): Always set
11122 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
11125 2016-07-18 Richard Biener <rguenther@suse.de>
11127 PR tree-optimization/71893
11128 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
11129 for sizetype cast added by array_ref_element_size.
11130 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11132 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
11134 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
11135 register parameters. Remove code to initialize argument pointer
11136 on TARGET_64BIT. Optimize call to _mcount when it can be reached
11137 using a pc-relative branch. Cleanup conditional code.
11138 * config/pa/pa.md (call_mcount): New expander.
11139 (call_mcount_nonpic): New insn.
11140 (call_mcount_pic): New insn and split.
11141 (call_mcount_pic_post_reload): New insn.
11142 (call_mcount_64bit): New insn and split.
11143 (call_mcount_64bit_post_reload): New insn.
11145 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
11147 * config/avr/predicates.md (const_m255_to_m1_operand): New.
11148 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
11149 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
11150 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
11151 (*usum_widenqihi3, *udiff_widenqihi3)
11152 (*addhi3_zero_extend.const): New combiner insns.
11153 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
11154 just 1 bit is affected.
11155 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
11156 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
11158 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11160 * omp-low.c (lower_omp_target): Mark data clauses with
11161 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
11162 zero-length subarrays.
11164 2016-07-15 Richard Biener <rguenther@suse.de>
11166 PR tree-optimization/71881
11167 * tree-loop-distribution.c (destroy_loop): Remove blocks in
11168 reverse DOM order to make debug temp generation happy.
11170 2016-07-15 Richard Biener <rguenther@suse.de>
11172 PR tree-optimization/71887
11173 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
11174 verify it is not zero for division / modulo handling.
11175 (value_replacement): Adjust.
11177 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
11178 Julian Brown <julian@codesourcery.com>
11180 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
11181 * config/aarch64/aarch64-cost-tables.h
11182 (vulcan_extra_costs): New variable.
11183 * config/aarch64/aarch64.c
11184 (vulcan_addrcost_table): Likewise.
11185 (vulcan_regmove_cost): Likewise.
11186 (vulcan_vector_cost): Likewise.
11187 (vulcan_branch_cost): Likewise.
11188 (vulcan_tunings): Likewise.
11190 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
11192 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
11193 (output_in_order): Loop over undefined variables too. Output them
11194 via assemble_undefined_decl. Skip variables that correspond to hard
11195 registers or have value-exprs.
11196 * varpool.c (symbol_table::output_variables): Handle undefined
11197 variables together with defined ones.
11199 2016-07-15 Richard Biener <rguenther@suse.de>
11201 * tree-ssa-pre.c (get_representative_for): Make sure to return
11202 the value number of SSA names.
11203 (phi_translate_1): get_representative_for cannot return NULL.
11204 (do_pre_regular_insertion): Remove redundant call to
11205 fully_constant_expression.
11206 (do_pre_partial_partial_insertion): Likewise.
11208 2016-07-15 Bin Cheng <bin.cheng@arm.com>
11210 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
11211 (derive_simple_iv_with_niters): New function.
11212 (simple_iv): Rewrite using simple_iv_with_niters.
11213 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
11214 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
11216 (number_of_iterations_exit): Rewrite using above function.
11217 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
11220 2016-07-15 Richard Biener <rguenther@suse.de>
11222 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
11223 vec_construct cost.
11225 2016-07-14 Jakub Jelinek <jakub@redhat.com>
11227 PR tree-optimization/71872
11228 * tree-data-ref.c (get_references_in_stmt): Ignore references
11229 with is_gimple_constant get_base_address.
11231 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11233 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
11234 (TARGET_HAVE_LDACQD): New macro.
11235 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
11236 than TARGET_HAVE_LDACQ.
11237 (arm_load_acquire_exclusivedi): Likewise.
11238 (arm_store_release_exclusivedi): Likewise.
11240 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11242 PR rtl-optimization/71878
11243 * lra-constraints.c (match_reload): Pass information about other
11244 output operands. Create new unique register value if matching input
11245 operand shares same register value as output operand being considered.
11246 (curr_insn_transform): Record output operands already processed.
11248 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11251 PR tree-optimization/70923
11252 * tree-vect-patterns.c: Include mult-synthesis.h.
11253 (target_supports_mult_synth_alg): New function.
11254 (synth_lshift_by_additions): Likewise.
11255 (apply_binop_and_append_stmt): Likewise.
11256 (vect_synth_mult_by_constant): Likewise.
11257 (target_has_vecop_for_code): Likewise.
11258 (vect_recog_mult_pattern): Use above functions to synthesize vector
11259 multiplication by integer constants.
11261 2016-07-14 Alan Modra <amodra@gmail.com>
11263 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
11264 gpr alternatives. Correct '*' placement on Y,r alternative.
11265 Add '*' on operand 1 of r,r alternative.
11267 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11269 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
11270 * expmed.h: ... Here.
11272 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
11274 * gimple.h (stmt_can_terminate_bb_p): New function.
11275 * tree-cfg.c (need_fake_edge_p): Rename to ...
11276 (stmt_can_terminate_bb_p): ... this; return true if stmt can
11277 throw external; handle const and pure calls.
11278 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
11280 2016-07-14 Richard Biener <rguenther@suse.de>
11282 PR tree-optimization/71866
11283 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
11284 (do_hoist_insertion): Avoid endless recursion when we
11285 didn't insert anything because we managed to simplify
11286 things down to a constant or SSA name.
11287 (fully_constant_expression): Re-write in terms of ...
11288 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
11289 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
11290 vn_nary_build_or_lookup_1.
11291 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
11292 (vn_nary_build_or_lookup): ... this which now wraps it.
11294 2016-07-14 Alan Modra <amodra@gmail.com>
11297 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
11298 with p9_vector override before power9-dform override.
11300 2016-07-13 Andi Kleen <ak@linux.intel.com>
11302 * value-prof.c (gimple_value_profile_transformations): Don't run
11303 when auto_profile is on.
11305 2016-07-13 Andi Kleen <ak@linux.intel.com>
11307 * auto-profile.c (update_inlined_ind_target,
11308 afdo_indirect_call): Print information to dump file.
11310 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
11312 * genrecog.c (special_predicate_operand_p): New function.
11313 (predicate_name): Move function.
11314 (validate_pattern): Don't warn about missing mode for all
11315 define_special_predicate predicates.
11317 2016-07-13 Bin Cheng <bin.cheng@arm.com>
11319 * tree-vect-data-refs.c (vect_no_alias_p): New function.
11320 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
11321 resolve alias checks which are known at compilation time.
11322 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
11323 alias checks are resolved. Move dump info for too many runtime
11324 alias checks to here...
11325 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
11327 2016-07-13 Richard Biener <rguenther@suse.de>
11329 PR tree-optimization/24574
11330 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
11331 position and add shift, rotate, divison and modulo support
11333 (value_replacement): Pass in argument position to absorbing_element_p.
11335 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
11338 * ipa-inline-transform.c (inline_call): Support
11339 instrumented thunks.
11341 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11343 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
11344 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
11346 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
11347 Baseline. Make initial alternative TARGET_32BIT only.
11348 (udivsi3): Likewise.
11349 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
11350 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
11353 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11355 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
11356 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
11357 availability with TARGET_HAVE_MOVT.
11358 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
11359 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
11360 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
11362 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
11363 extra instruction if MOVW is available. Use a cost variable
11364 incremented by COSTS_N_INSNS (1) when the condition match rather than
11365 returning an arithmetic expression based on COSTS_N_INSNS. Make
11366 constant with bottom half word zero cost 2 instruction if MOVW is
11368 * config/arm/arm.md (define_attr "arch"): Add v8mb.
11369 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
11370 target is ARMv8-M Baseline.
11371 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
11372 (arm_movtas_ze): Likewise.
11373 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
11374 alternative for constants satisfying j constraint.
11375 (thumb1_movsi_insn): Likewise.
11376 (movsi splitter for K alternative): Tighten condition to not trigger
11377 if movt is available and j constraint is satisfied.
11378 (Pe immediate splitter): Likewise.
11379 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
11380 constant fitting in an halfword to use MOVW.
11381 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
11384 2016-07-13 Richard Biener <rguenther@suse.de>
11386 PR middle-end/71104
11387 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
11388 gimplifying the LHS. Make sure to gimplify a returning twice
11389 call LHS without using SSA names.
11391 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11393 * tree-data-ref.c (find_data_references_in_stmt): Remove
11394 unnecessary call to vec::release.
11395 (graphite_find_data_references_in_stmt): Likewise.
11396 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
11397 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11399 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11401 * cfgexpand.c (expand_used_vars): Make the type of a local
11403 * genmatch.c (lower_for): Likewise.
11404 * haifa-sched.c (haifa_sched_init): Likewise.
11405 (add_to_speculative_block): Likewise.
11406 (create_check_block_twin): Likewise.
11407 * predict.c (handle_missing_profiles): Likewise.
11408 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
11409 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
11410 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11412 (maybe_lower_iteration_bound): Likewise.
11413 * tree-ssa-sccvn.c (DFS): Likewise.
11414 * tree-stdarg.c (reachable_at_most_once): Likewise.
11415 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
11416 (vectorizable_store): Likewise.
11418 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11420 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
11421 (sccvn_dom_walker): make cond_stack an auto_vec.
11423 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11425 * ree.c (struct ext_state): Make type of members auto_vec.
11426 (find_and_remove_re): Adjust.
11428 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11430 * cfgexpand.c (struct stack_vars_data): Make type of fields
11432 (expand_used_vars): Adjust.
11434 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11436 * ipa.c (record_cdtor_fn): Adjust.
11437 (build_cdtor_fns): Likewise.
11438 (ipa_cdtor_merge): Make static_ctors and static_dtors local
11441 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11443 * genextract.c (struct accum_extract): Add constructor and make
11445 (gen_insn): Adjust.
11447 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11449 * tree.c (struct free_lang_data_d): Add constructor and change
11450 types of members to ones that automatically manage resources.
11451 (fld_worklist_push): Adjust.
11452 (find_decls_types): Likewise.
11453 (find_decls_types_in_eh_region): Likewise.
11454 (free_lang_data_in_cgraph): Stop manually creating and
11455 destroying members of free_lang_data_d.
11457 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
11459 PR rtl-optimization/68961
11460 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
11461 peephole variant. Use sse_reg_operand predicates.
11463 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
11465 * config/i386/predicates.md (x86_64_immediate_operand)
11466 <case CONST_INT>: Remove unneeded truncation to DImode.
11467 <case CONST>: Ditto.
11468 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11470 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11473 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
11474 The xxperm and xxpermr instructions require that the 2nd input
11475 operand overlap with the output operand, and not the 1st.
11476 (altivec_vperm_v8hiv16qi): Likewise.
11477 (altivec_vperm_<mode>_uns_internal): Likewise.
11478 (altivec_vpermr_<mode>_internal): Likewise.
11479 (vperm_v8hiv4si): Likewise.
11480 (vperm_v16qiv8hi): Likewise.
11482 2016-07-12 Nathan Sidwell <nathan@acm.org>
11484 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
11485 when -mno-pic-data-is-text-relative is in effect, by default.
11486 * doc/invoke.texi (mpic-data-is-text-relative): Document new
11487 behavior and clarify.
11489 2016-07-12 Martin Liska <mliska@suse.cz>
11491 * params.def: Add avg-loop niter.
11492 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
11493 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
11494 * doc/invoke.texi: Document the new parameter.
11496 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11498 PR middle-end/71700
11499 * expr.c (store_constructor): Mask sign-extended bits when widening
11500 sub-word constructor element at the start of a word.
11502 2016-07-12 Martin Liska <mliska@suse.cz>
11504 * Makefile.in: Append rule for params-options.h.
11505 * params-options.h: New file.
11507 2016-07-12 Martin Liska <mliska@suse.cz>
11509 * ira-build.c (mark_loops_for_removal): Properly iterate
11512 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
11513 Richard Biener <rguenther@suse.de>
11515 PR tree-optimization/23286
11516 PR tree-optimization/70159
11517 * doc/invoke.texi: Document -fcode-hoisting.
11518 * common.opt (fcode-hoisting): New flag.
11519 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
11520 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
11521 (do_regular_insertion): Rename to ...
11522 (do_pre_regular_insertion): ... this and amend general comments
11523 on insertion strathegy.
11524 (do_partial_partial_insertion): Rename to ...
11525 (do_pre_partial_partial_insertion): ... this.
11526 (do_hoist_insertion): New function.
11527 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
11528 and call do_hoist_insertion properly.
11530 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
11531 (pass_pre::execute): Register hoist_insert stats.
11533 2016-07-12 Jakub Jelinek <jakub@redhat.com>
11535 PR middle-end/71716
11536 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
11537 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
11538 is different from mode's bitsize. Small cleanup.
11540 2016-07-12 Richard Biener <rguenther@suse.de>
11542 PR rtl-optimization/68961
11543 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
11544 to simplify to a non-constant.
11546 2016-07-11 Jakub Jelinek <jakub@redhat.com>
11548 PR middle-end/71758
11549 * omp-low.c (expand_omp_target): Gimplify device.
11551 PR tree-optimization/71823
11552 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
11553 to get vec_oprnds2 from op2.
11555 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
11557 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
11558 Hoist common subexpressions.
11559 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11561 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
11564 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
11565 prevent generation of 'stxsiwx' on pre Power8 hardware.
11567 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11569 * input.c: Include cpplib.h.
11570 (selftest::temp_source_file): New class.
11571 (selftest::temp_source_file::temp_source_file): New ctor.
11572 (selftest::temp_source_file::~temp_source_file): New dtor.
11573 (selftest::should_have_column_data_p): New function.
11574 (selftest::test_should_have_column_data_p): New function.
11575 (selftest::temp_line_table): New class.
11576 (selftest::temp_line_table::temp_line_table): New ctor.
11577 (selftest::temp_line_table::~temp_line_table): New dtor.
11578 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
11579 it to create a temp_line_table.
11580 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
11581 locations that are known to have column data.
11582 (selftest::line_table_case): New struct.
11583 (selftest::test_reading_source_line): Move tempfile handling
11584 to class temp_source_file.
11585 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
11586 (selftest::assert_token_loc_eq): New function.
11587 (ASSERT_TOKEN_LOC_EQ): New macro.
11588 (selftest::test_lexer): New function.
11589 (selftest::boundary_locations): New array.
11590 (selftest::input_c_tests): Call test_should_have_column_data_p.
11591 Loop over a test matrix of interesting values of location and
11592 default_range_bits, calling test_lexer on each case in the matrix.
11593 Move call to test_accessing_ordinary_linemaps into the matrix.
11594 * selftest.h (ASSERT_EQ): Reimplement in terms of...
11595 (ASSERT_EQ_AT): New macro.
11597 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
11600 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11601 Don't convert TImode in debug insn.
11603 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11605 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
11606 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
11607 (tree_type_common::lang_flag_7): New.
11608 (tree_type_common::spare): Reduce size.
11609 * tree.h (TYPE_ALIGN_OK): Remove.
11610 (TYPE_LANG_FLAG_7): New.
11611 (get_inner_reference): Adjust header.
11612 * print-tree.c (print_node): Adjust.
11613 * expr.c (get_inner_reference): Remove parameter keep_aligning.
11614 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
11615 calls to get_inner_reference.
11616 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
11617 handling of TYPE_ALIGN_OK.
11618 * builtins.c (get_object_alignment_2): Adjust call to
11619 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
11620 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
11622 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
11623 * cfgexpand.c (expand_debug_expr): Likewise.
11624 * dbxout.c (dbxout_expand_expr): Likewise.
11625 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
11626 loc_list_from_tree, fortran_common): Likewise.
11627 * fold-const.c (optimize_bit_field_compare,
11628 decode_field_reference, fold_unary_loc, fold_comparison,
11629 split_address_to_core_and_offset): Likewise.
11630 * gimple-laddress.c (execute): Likewise.
11631 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
11632 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
11633 * hsa-gen.c (gen_hsa_addr): Likewise.
11634 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
11635 * tsan.c (instrument_expr): Likewise.
11636 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
11637 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
11638 * tree-affine.c (tree_to_aff_combination,
11639 get_inner_reference_aff): Adjust calls to get_inner_reference.
11640 * tree-data-ref.c (split_constant_offset_1,
11641 dr_analyze_innermost): Likewise.
11642 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
11643 * tree-sra.c (ipa_sra_check_caller): Likewise.
11644 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
11645 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
11646 bswap_replace): Likewise.
11647 * tree-vect-data-refs.c (vect_check_gather,
11648 vect_analyze_data_refs): Likewise.
11649 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
11650 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
11653 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11655 * Makefile.in (selftest-valgrind): New phony target.
11656 * function-tests.c (selftest::build_cfg): Delete pass instances
11657 created by the test.
11658 (selftest::convert_to_ssa): Likewise.
11659 (selftest::test_expansion_to_rtl): Likewise.
11660 * tree-cfg.c (selftest::test_linear_chain): Release dominator
11662 (selftest::test_diamond): Likewise.
11664 2016-07-11 Richard Biener <rguenther@suse.de>
11666 PR tree-optimization/71816
11667 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
11668 than replacing all of its operands.
11670 2016-07-11 Alan Modra <amodra@gmail.com>
11672 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
11673 (ctr<mode>): Add unspec.
11674 (ctr<mode>_internal*): Likewise.
11676 2016-07-08 James Bowman <james.bowman@ftdichip.com>
11678 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
11679 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
11681 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
11683 PR rtl-optimization/71621
11684 * lra-constraints.c (process_alt_operands): Check combination of
11685 reg class and mode.
11687 2016-07-08 Jason Merrill <jason@redhat.com>
11688 Richard Biener <rguenther@suse.de>
11690 P0145: Refining Expression Order for C++.
11691 * gimplify.c (initial_rhs_predicate_for): New.
11692 (gimplfy_modify_expr): Gimplify RHS before LHS.
11694 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11697 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11698 Allow standard error handling to take over when a wrong number
11699 of arguments is presented to __builtin_vec_ld () or
11700 __builtin_vec_st ().
11702 2016-07-08 Jiong Wang <jiong.wang@arm.com>
11704 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
11709 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
11710 __builtin_aarch64_fmaxv2sf.
11711 (vmaxnmq_f32): Likewise.
11712 (vmaxnmq_f64): Likewise.
11713 (vminnm_f32): Likewise.
11714 (vminnmq_f32): Likewise.
11715 (vminnmq_f64): Likewise.
11717 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11720 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
11721 enable -mfloat128-hardware by default.
11722 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
11723 that IEEE 128-bit hardware support needs.
11724 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11725 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
11726 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
11727 floating point requires.
11728 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11729 -mfloat128 and -mfloat128-hardware changes.
11731 2016-07-08 Alan Hayward <alan.hayward@arm.com>
11733 PR tree-optimization/71667
11734 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
11736 2016-07-08 Martin Liska <mliska@suse.cz>
11738 PR middle-end/71606
11739 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
11740 folding produces SAVE_EXPRs, thus return false for the type.
11742 2016-07-07 Martin Liska <mliska@suse.cz>
11744 * file-find.c (remove_prefix): New function.
11745 * file-find.h (remove_prefix): Declare the function.
11746 * gcc-ar.c (main): Skip a folder of the wrapper if
11747 a wrapped binary would point to the same file.
11749 2016-07-07 Jan Hubicka <jh@suse.cz>
11751 * tree-scalar-evolution.c (iv_can_overflow_p): export.
11752 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
11753 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
11755 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
11758 * ipa-inline-analysis.c (compute_inline_parameters): Set
11759 local.can_change_signature to false for intrumentation
11762 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11764 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
11765 with TARGET_HAVE_MOVT.
11766 (TARGET_HAVE_MOVT): Define.
11767 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
11768 availability with TARGET_HAVE_MOVT.
11769 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
11771 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
11773 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
11774 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
11775 * config/arm/constraints.md (define_constraint "j"): Use
11776 TARGET_HAVE_MOVT to check MOVT availability.
11778 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11780 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
11782 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11784 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
11785 (armv8-m.main): Likewise.
11786 (armv8-m.main+dsp): Likewise.
11787 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
11788 (FL_FOR_ARCH8M_MAIN): Likewise.
11789 * config/arm/arm-tables.opt: Regenerate.
11790 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
11791 armv8-m.main+dsp to BE8_LINK_SPEC.
11792 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
11793 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
11794 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
11795 Baseline and Mainline.
11796 (arm_option_override_internal): Also disable arm_restrict_it when
11797 !arm_arch_notm. Update comment for -munaligned-access to also cover
11799 (arm_file_start): Increase buffer size for printing architecture name.
11800 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
11801 and armv8-m.main+dsp.
11802 (mno-unaligned-access): Clarify that this is disabled by default for
11803 ARMv8-M Baseline architectures as well.
11805 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11807 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
11808 decide whether to prevent some libgcc routines being included for some
11809 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
11810 link between this condition and the one in
11811 libgcc/config/arm/lib1func.S.
11813 2016-07-07 Richard Biener <rguenther@suse.de>
11815 * tree-ssa-pre.c: Include alias.h.
11816 (compute_avail): If we have multiple VN_REFERENCEs with the
11817 same hashtable entry adjust that to make it a valid replacement
11818 for all of them with respect to alignment and aliasing
11819 when doing insertion.
11820 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
11821 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
11823 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
11827 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11828 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
11831 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11833 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
11834 (adjust_mems): Adjust.
11835 (adjust_insn): Likewise.
11836 (prepare_call_arguments): Likewise.
11838 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11840 * gcse.c (struct ls_expr): Make stores field a vector.
11841 (ldst_entry): Adjust.
11842 (free_ldst_entry): Likewise.
11843 (print_ldst_list): Likewise.
11844 (compute_ld_motion_mems): Likewise.
11845 (update_ld_motion_stores): Likewise.
11847 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11849 * gcse.c (struct ls_expr): Remove loads field.
11850 (ldst_entry): Adjust.
11851 (free_ldst_entry): Likewise.
11852 (print_ldst_list): Likewise.
11853 (compute_ld_motion_mems): Likewise.
11855 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11857 * store-motion.c (struct st_expr): Make antic_stores a vector.
11858 (st_expr_entry): Adjust.
11859 (free_st_expr_entry): Likewise.
11860 (print_store_motion_mems): Likewise.
11861 (find_moveable_store): Likewise.
11862 (compute_store_table): Likewise.
11863 (remove_reachable_equiv_notes): Likewise.
11864 (replace_store_insn): Likewise.
11865 (build_store_vectors): Likewise.
11867 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11869 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
11870 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
11872 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
11874 PR tree-optimization/71518
11875 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
11876 misalign also for outer loops with negative step.
11878 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
11880 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
11881 (cortex_a53_shift): Add mov_shift.
11882 (cortex_a53_shift_reg): Add new reservation for register shifts.
11883 (cortex_a53_alu): Remove bfm.
11884 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
11885 (cortex_a53_alu_extr): Add new reservation for EXTR.
11886 (bypasses): Improve bypass modelling.
11888 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11891 * config/avr/avr.c (avr_asm_select_section): Strip off
11892 SECTION_DECLARED from flags when calling get_section.
11894 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11896 * tree-vectorizer.h (vect_memory_access_type): Add
11897 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
11898 * tree-vect-stmts.c (compare_step_with_zero): New function.
11899 (perm_mask_for_reverse): Move further up file.
11900 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
11902 (get_negative_load_store_type): New function.
11903 (get_load_store_type): Call it. Add an ncopies argument.
11904 (vectorizable_mask_load_store): Update call accordingly and
11905 remove tests for negative steps.
11906 (vectorizable_store, vectorizable_load): Likewise. Handle new
11907 memory_access_types.
11909 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11911 * tree-vectorizer.h (vect_memory_access_type): New enum.
11912 (_stmt_vec_info): Add a memory_access_type field.
11913 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
11914 (vect_model_store_cost): Take an access type instead of a boolean.
11915 (vect_model_load_cost): Likewise.
11916 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
11917 vect_model_store_cost and vect_model_load_cost.
11918 * tree-vect-stmts.c (vec_load_store_type): New enum.
11919 (vect_model_store_cost): Take an access type instead of a
11920 store_lanes_p boolean. Simplify tests.
11921 (vect_model_load_cost): Likewise, but for load_lanes_p.
11922 (get_group_load_store_type, get_load_store_type): New functions.
11923 (vectorizable_store): Use get_load_store_type. Record the access
11924 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
11925 (vectorizable_load): Likewise.
11926 (vectorizable_mask_load_store): Likewise. Replace is_store
11927 variable with vls_type.
11929 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11931 * tree-vectorizer.h (vect_grouped_load_supported): Add a
11932 single_element_p parameter.
11933 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11934 Check the PR65518 case here rather than in vectorizable_load.
11935 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
11936 * tree-vect-stmts.c (vectorizable_load): Likewise.
11938 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11940 * tree-vectorizer.h (gather_scatter_info): New structure.
11941 (vect_check_gather_scatter): Return a bool rather than a decl.
11942 Replace return-by-pointer arguments with a single
11943 gather_scatter_info *.
11944 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
11945 (vect_analyze_data_refs): Update call accordingly.
11946 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11947 (vectorizable_mask_load_store): Likewise. Also record the
11948 offset dt and vectype in the gather_scatter_info.
11949 (vectorizable_store): Likewise.
11950 (vectorizable_load): Likewise.
11952 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11954 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
11955 strided groups, use the cost of N scalar accesses instead
11956 of ncopies vector accesses.
11957 (vect_model_load_cost): Likewise.
11959 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11961 * tree-vect-stmts.c (vect_cost_group_size): Delete.
11962 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
11963 variable to indicate when once-per-group costs are being used.
11964 (vect_model_load_cost): Likewise. Fix comment and misindented code.
11966 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11968 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
11969 peeling-for-gaps condition.
11971 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11973 * config/s390/s390.c (s390_expand_vec_init): Force initializer
11974 element to register if it doesn't match general_operand.
11976 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11977 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11979 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
11981 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
11982 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
11983 (SIGNBIT): New mode iterator.
11984 (Fsignbit): New mode attribute.
11985 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
11986 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
11987 when direct moves are available.
11988 (signbit<mode>2_dm): New define_insn_and_split).
11989 (signbit<mode>2_dm2): New define_insn.
11991 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11993 PR rtl-optimization/71594
11994 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
11995 into subregs of appropriate mode before trying to emit a conditional
11998 2016-07-05 Jan Hubicka <jh@suse.cz>
12000 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
12001 (simple_iv): Use it.
12003 2016-07-05 Jan Hubicka <jh@suse.cz>
12005 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
12007 2016-07-05 Jiong Wang <jiong.wang@arm.com>
12009 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
12012 2016-07-05 Jan Hubicka <jh@suse.cz>
12014 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
12017 2016-07-05 Richard Biener <rguenther@suse.de>
12019 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
12020 Handle empty else block.
12021 (is_feasible_trace): Likewise.
12022 (split_paths): Likewise.
12024 2016-07-05 Richard Biener <rguenther@suse.de>
12026 * tree-loop-distribution.c (distribute_loop): Fix issue with
12027 the cost model loop.
12029 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
12031 * config/arm/neon-testgen.ml: Delete.
12032 * config/arm/neon.ml: Delete.
12034 2016-07-04 Jakub Jelinek <jakub@redhat.com>
12037 * tree.c (attribute_value_equal): Use get_attribute_name instead of
12038 directly using TREE_PURPOSE.
12040 2016-07-04 Jiong Wang <jiong.wang@arm.com>
12042 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
12043 * config/aarch64/aarch64_neon.h: Likewise.
12044 * config/aarch64/arm_neon.h: Likewise.
12045 * config/aarch64/atomics.md: Likewise.
12046 * config/aarch64/aarch64-simd-builtins.def: Likewise.
12047 * doc/invoke.texi: Likewise.
12049 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
12051 * config/s390/s390.md: Add "z13" cpu_facility.
12052 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
12053 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
12054 condition" type instructions.
12056 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
12057 Jeff Law <law@redhat.com>
12059 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
12060 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
12062 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
12064 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
12065 permutation for TARGET_AVX512F.
12066 (ix86_expand_vec_one_operand_perm_avx512): New function.
12067 (expand_vec_perm_1): Invoke introduced function.
12068 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12069 it may be not valid after vectorization.
12071 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12074 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
12075 typo in comment. Only force to memory if it is a weak
12076 external reference.
12078 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
12079 Jiong Wang <jiong.wang@arm.com>
12081 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
12082 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
12083 (AARCH64_FL_F16): New.
12084 (AARCH64_FL_FOR_ARCH8_2): New.
12085 (AARCH64_ISA_8_2): New.
12086 (AARCH64_ISA_F16): New.
12087 (TARGET_FP_F16INST): New.
12088 (TARGET_SIMD_F16INST): New.
12089 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
12090 ("fp"): Disabling "fp" also disables "fp16".
12091 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
12092 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
12093 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
12094 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
12096 2016-07-04 Jan Beulich <jbeulich@suse.com>
12098 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
12100 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12103 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
12104 the insns, use an insn form that does not adjust the offset on
12105 little endian systems.
12107 2016-07-01 Jan Beulich <jbeulich@suse.com>
12109 * varasm.c (get_variable_section): Validate initializer in
12110 named .bss-like sections.
12112 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12114 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
12115 Exchange the order of the second and third operands in the vpermr
12116 instruction tmeplate.
12118 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
12121 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
12122 Disallow TDmode values.
12124 2016-07-01 Alan Modra <amodra@gmail.com>
12126 PR rtl-optimization/71709
12127 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
12128 being set, not referenced.
12130 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
12132 PR tree-optimization/70729
12133 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
12134 of loop since it can be not valid after transformation.
12136 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12138 * config/arm/arm.c (thumb_reload_in_hi): Delete.
12139 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
12141 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
12143 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
12146 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
12149 * config/rs6000/constraints.md (wY constraint): New constraint to
12150 match the requirements for the LXSD and STXSD instructions.
12151 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
12152 predicate to match the requirements for the LXSD and STXSD
12154 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
12155 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
12156 to make sure that the bottom 2 bits of offset are 0, the address
12157 form is offsettable, and no updating is done in the address mode.
12158 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
12159 (movdi_internal32): Likewise
12160 (movdi_internal64): Likewise.
12162 2016-06-30 Jakub Jelinek <jakub@redhat.com>
12164 PR tree-optimization/71707
12165 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
12166 strinfo even for ADDR_EXPR ptr.
12168 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
12170 * config/rs6000/altivec.md (darn_32): Change the condition to
12171 TARGET_P9_MISC instead of TARGET_MODULO.
12172 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
12173 condition expression.
12174 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
12175 condition expression.
12176 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
12177 (DFP_TEST): New code iterator.
12178 (dfptstsfi_<code>_mode>): New define_expand.
12179 (*dfp_sgnfcnc_<mode>): New define_insn.
12180 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
12181 definition next to BU_P9_MISC_1 definition and change the MASK
12182 value to RS6000_BTM_P9_MISC.
12183 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
12184 (BU_P9_64BIT_MISC_0): Likewise.
12185 (BU_P9_DFP_MISC_0): New macro definition.
12186 (BU_P9_DFP_MISC_1): New macro definition.
12187 (BU_P9_DFP_MISC_2): New macro definition.
12188 (BU_P9_DFP_OVERLOAD_1): New macro definition.
12189 (BU_P9_DFP_OVERLOAD_2): New macro definition.
12190 (BU_P9_DFP_OVERLOAD_3): New macro definition.
12191 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
12192 (TSTSFI_LT_TD): Likewise.
12193 (TSTSFI_EQ_DD): Likewise.
12194 (TSTSFI_EQ_TD): Likewise.
12195 (TSTSFI_GT_DD): Likewise.
12196 (TSTSFI_GT_TD): Likewise.
12197 (TSTSFI_OV_DD): Likewise.
12198 (TSTSFI_OV_TD): Likewise.
12199 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
12200 (TSTSFI_LT_DD): Likewise.
12201 (TSTSFI_LT_TD): Likewise.
12202 (TSTSFI_EQ): Likewise.
12203 (TSTSFI_EQ_DD): Likewise.
12204 (TSTSFI_EQ_TD): Likewise.
12205 (TSTSFI_GT): Likewise.
12206 (TSTSFI_GT_DD): Likewise.
12207 (TSTSFI_GT_TD): Likewise.
12208 (TSTSFI_OV): Likewise.
12209 (TSTSFI_OV_DD): Likewise.
12210 (TSTSFI_OV_TD): Likewise.
12211 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12212 overloaded test significance functions.
12213 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12214 OPTION_MASK_P9_MISC into the representation of this mask.
12215 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
12217 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
12218 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
12220 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
12221 argument is a 6-bit unsigned literal value if the icode argument
12222 represents a DFP test significance built-in call.
12223 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
12224 flag used independently and in combination with the
12225 RS6000_BTM_64BIT flag.
12226 (rs6000_opt_masks): Add entry for power9-misc command-line option.
12227 (rs6000_builtin_mask_names): Add entry for power9-misc
12228 command-line option.
12229 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
12230 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
12231 RS6000_BTM_P9_MISC macros.
12232 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
12233 option and change the description of the -mpower9-vector option to
12234 enable only vector instructions, removing its erroneously claimed
12235 support for scalar instructions.
12236 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12237 the ISA 3.0 digital floating point test significance built-in
12240 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
12242 * config/aarch64/aarch64.c (cortexa35_tunings):
12243 Enable AES fusion. Use cortexa57_branch_cost.
12244 (cortexa53_tunings): Use cortexa57_branch_cost.
12245 (cortexa72_tunings): Use cortexa57_branch_cost.
12246 Use AUTOPREFETCHER_WEAK.
12247 (cortexa73_tunings): Use cortexa57_branch_cost.
12249 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12250 James Greenhalgh <james.greenhalgh@arm.com>
12252 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
12253 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
12254 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
12255 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
12256 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
12257 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
12258 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
12259 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
12260 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
12261 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
12262 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
12263 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
12264 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
12267 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
12268 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12270 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
12272 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
12274 2016-06-30 David Malcolm <dmalcolm@redhat.com>
12277 * gcc.c (driver::build_option_suggestions): Pass "option" to
12278 add_misspelling_candidates.
12279 * opts-common.c (add_misspelling_candidates): Add "option" param;
12280 use it to avoid adding negated forms for options marked with
12282 * opts.h (add_misspelling_candidates): Add "option" param.
12284 2016-06-30 Jakub Jelinek <jakub@redhat.com>
12286 PR middle-end/71693
12287 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
12288 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
12289 first when permuting bitwise operation with rotate. Cast
12290 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
12292 2016-06-29 David Malcolm <dmalcolm@redhat.com>
12294 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
12295 for misspelled param names.
12296 * params.c: Include spellcheck.h.
12297 (find_param_fuzzy): New function.
12298 * params.h (find_param_fuzzy): New prototype.
12299 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
12300 * spellcheck.h (struct edit_distance_traits<const char *>):
12303 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12305 * config/rs6000/predicates.md (const_0_to_7_operand): New
12306 predicate, recognize 0..7.
12307 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12308 support for doing extracts from V16QImode, V8HImode, V4SImode
12310 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
12311 vector extract support.
12312 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
12313 for ISA 3.0 vector extract.
12314 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
12315 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
12316 extracts of a constant element number from small integer vectors
12317 on 64-bit ISA 3.0 systems.
12318 (vsx_extract_<mode>_di): Likewise.
12319 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
12320 say when we can do ISA 3.0 vector extracts.
12321 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
12322 registers, using the stxsiwx instruction.
12324 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
12326 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
12327 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
12328 qdf24xx_regmove_cost, qdf24xx_tunings): New.
12329 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
12330 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
12331 * config/arm/arm.c (arm_qdf24xx_tune): New.
12333 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
12335 * config/aarch64/aarch64.c (cortexa53_tunings):
12336 Increase loop alignment to 8. Set function alignment to 16.
12337 (cortexa35_tunings): Likewise.
12338 (cortexa57_tunings): Increase loop alignment to 8.
12339 (cortexa72_tunings): Likewise.
12340 (cortexa73_tunings): Likewise.
12342 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
12344 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
12345 for arm_fp16_ok and arm_fp16_hw.
12346 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
12347 arm_fp16_alternative.
12349 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
12351 PR tree-optimization/71655
12352 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
12353 types when swapping operands.
12355 2016-06-29 Martin Liska <mliska@suse.cz>
12357 PR middle-end/71585
12358 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
12359 * ipa-inline-transform.c (inline_call): Remove unnecessary call
12360 of build_optimization_node.
12362 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
12364 PR tree-optimization/70729
12365 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
12366 independent in loops having positive safelen value.
12367 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12368 it may be not valid after vectorization.
12370 2016-06-29 Jakub Jelinek <jakub@redhat.com>
12372 PR tree-optimization/71625
12373 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
12374 is sorted by ascending list->offset. If PTR is non-NULL and there is
12375 previous strinfo, call get_stridx_plus_constant.
12376 (get_stridx): Pass exp as second argument to get_addr_stridx.
12377 (addr_stridxptr): Add missing list = list->next, so that there can be
12378 more than one entries in the list. Bump limit from 16 to 32. Ensure
12379 the list is sorted by ascending list->offset.
12380 (get_stridx_plus_constant): Adjust so that it can be also called with
12381 ADDR_EXPR instead of SSA_NAME as PTR.
12382 (handle_char_store): Pass NULL_TREE as second argument to
12385 2016-06-29 Richard Biener <rguenther@suse.de>
12387 PR rtl-optimization/68961
12388 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
12390 2016-06-29 Richard Biener <rguenther@suse.de>
12392 PR middle-end/71002
12393 * alias.c (component_uses_parent_alias_set_from): Handle
12394 type punning through union accesses by using the union alias set.
12395 * gimple.c (gimple_get_alias_set): Remove union type punning case.
12397 2016-07-29 Richard Biener <rguenther@suse.de>
12399 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
12400 precision not matching mode precision.
12402 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
12404 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
12405 pa_output_arg_descriptor.
12406 (call_val_symref_64bit_post_reload): Likewise.
12407 (call_val_powf_64bit_post_reload): Likewise.
12408 (sibcall_internal_symref_64bit): Likewise.
12409 (sibcall_value_internal_symref_64bit): Likewise.
12411 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12413 PR middle-end/71626
12414 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
12415 a constant, force its SUBREG_REG into memory or register instead
12418 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12421 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
12422 * doc/invoke.texi (AVR Options): Document it.
12424 2016-06-28 Walter Lee <walt@tilera.com>
12426 * config/tilegx/linux.h: Do not include arch/icache.h
12427 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12428 * config/tilepro/linux.h: Do not include arch/icache.h
12429 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12431 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
12433 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
12434 for big-endian BIT_FIELD_REF.
12436 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
12438 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
12439 ('size' attribute): Add '128'.
12441 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
12442 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
12443 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
12444 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
12445 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
12446 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
12447 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
12448 *trunc<mode>df2_odd): Set size attribute to '128'.
12449 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
12450 * config/rs6000/power6.md (power6-fp): Include dfp type.
12451 * config/rs6000/power7.md (power7-fp): Likewise.
12452 * config/rs6000/power8.md (power8-fp): Likewise.
12453 * config/rs6000/power9.md: New file.
12454 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
12455 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
12456 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
12458 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
12459 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12460 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
12461 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
12462 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
12463 dfp_dscri_<mode>): Change type attribute to dfp.
12464 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
12465 attribute to vecsimple.
12466 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
12467 and prefetch streams.
12468 (rs6000_option_override_internal): Remove temporary code setting
12469 tuning to power8. Don't set rs6000_sched_groups for power9.
12470 (last_scheduled_insn): Change to rtx_insn *.
12471 (divide_cnt, vec_load_pendulum): New variables.
12472 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
12473 (rs6000_issue_rate): Set issue rate for Power9.
12474 (is_power9_pairable_vec_type): New.
12475 (power9_sched_reorder2): New.
12476 (rs6000_sched_reorder2): Call new function for Power9 specific
12478 (insn_must_be_first_in_group): Remove Power9.
12479 (insn_must_be_last_in_group): Likewise.
12480 (force_new_group): Likewise.
12481 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
12482 Initialize divide_cnt/vec_load_pendulum.
12483 (_rs6000_sched_context, rs6000_init_sched_context,
12484 rs6000_set_sched_context): Handle context save/restore of new
12487 2016-06-28 Richard Biener <rguenther@suse.de>
12489 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12490 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
12491 COMPONENT_REF operand.
12492 (nonoverlapping_component_refs_p): Likewise.
12493 * stor-layout.c (start_bitfield_representative): Mark
12494 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
12496 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12498 * Makefile.in: Don't cat ../stage_current if it does not exist.
12500 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
12501 last argument is a bit-field.
12503 PR rtl-optimization/71673
12504 * internal-fn.c (expand_arith_overflow_result_store): Use
12505 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
12506 expand_simple_binop.
12508 PR middle-end/66867
12509 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
12510 expand_ifn_atomic_compare_exchange): New functions.
12511 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
12512 * tree.h (build_call_expr_internal_loc): Rename to ...
12513 (build_call_expr_internal_loc_array): ... this. Fix up type of
12515 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
12516 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
12517 ATOMIC_COMPARE_EXCHANGE result.
12518 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
12519 * gimple-fold.h (optimize_atomic_compare_exchange_p,
12520 fold_builtin_atomic_compare_exchange): New prototypes.
12521 * gimple-fold.c (optimize_atomic_compare_exchange_p,
12522 fold_builtin_atomic_compare_exchange): New functions..
12523 * tree-ssa.c (execute_update_addresses_taken): If
12524 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
12525 of call when finding addressable vars, and if such var becomes
12526 non-addressable, call fold_builtin_atomic_compare_exchange.
12528 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
12531 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
12532 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
12534 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
12536 * config/rs6000/rs6000.md ('type' attribute): Add
12537 veclogical,veccmpfx,vecexts,vecmove insn types.
12538 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
12539 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
12540 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
12541 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
12542 *nabs<mode>2_hw): Change type to vecmove.
12543 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
12544 *boolcc<mode>3_internal, *eqv<mode>3_internal,
12545 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
12546 *ieee_128bit_vsx_abs<mode>2_internal,
12547 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
12548 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
12549 *ieee128_mtvsrd_32bit): Change type to veclogical.
12550 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12551 *movdi_internal32, *movdi_internal64): Update insn types.
12552 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
12553 vsx_extract_<mode>): Change type to veclogical.
12554 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
12555 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
12556 *vsx_sign_extend_si_v2di): Change type to vecexts.
12557 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
12558 type to veclogical.
12559 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
12560 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
12561 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
12562 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
12563 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12564 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
12565 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
12566 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
12567 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
12568 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
12569 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
12570 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
12571 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
12572 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
12573 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
12574 (ppc7450-vecsimple): Add veclogical, vecmove.
12575 (ppc7450-veccmp): Add veccmpfx.
12576 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
12578 (ppc8540_vector_compare): Add veccmpfx.
12579 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
12580 * config/rs6000/cell.md (cell-fp): Add fpsimple.
12581 (cell-vecsimple): Add veclogical, vecmove.
12582 (cell-veccmp): Add veccmpfx.
12583 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
12584 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
12586 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
12587 * config/rs6000/power4.md (power4-fp): Add fpsimple.
12588 (power4-vecsimple): Add veclogical, vecmove.
12589 (power4-veccmp): Add veccmpfx.
12590 * config/rs6000/power5.md (power5-fp): Add fpsimple.
12591 * config/rs6000/power6.md (power6-fp): Add fpsimple.
12592 (power6-vecsimple): Add veclogical, vecmove.
12593 (power6-veccmp): Add veccmpfx.
12594 * config/rs6000/power7.md (power7-fp): Add fpsimple.
12595 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
12596 * config/rs6000/power8.md (power8-fp): Add fpsimple.
12597 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
12598 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
12599 * config/rs6000/titan.md (titan_fp): Add fpsimple.
12600 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
12602 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
12604 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
12607 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12608 OPTION_MASK_P9_DFORM_VECTOR.
12609 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12610 disable -mpower9-dform-vector when using reload.
12611 (quad_address_p): Remove 'gpr_p' argument and all associated code.
12612 New 'strict' argument. Update all callers. Add strict addressing
12614 (rs6000_legitimate_offset_address_p): Remove call to
12615 virtual_stack_registers_memory_p.
12616 (rs6000_legitimize_reload_address): Add quad address support.
12617 (rs6000_legitimate_address_p): Move call to quad_address_p above
12618 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
12619 to account for new strict usage.
12620 (rs6000_output_move_128bit): Adjust quad_address_p args to account
12621 for new strict usage.
12622 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
12624 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
12631 * config/i386/i386.c (ix86_spill_class): Disable condition to
12632 always return NO_REGS.
12634 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
12636 * predict.c: Include gimple-pretty-print.h
12637 (predicted_by_loop_heuristics_p): Check also
12638 PRED_LOOP_EXIT_WITH_RECURSION
12639 (predict_loops): Find self recursive calls and use special purpose
12640 predictors for them; dump log about decisions.
12641 (pass_profile::execute): Dump info about #of iterations.
12642 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
12643 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
12645 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
12647 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
12648 output_asm_insn calls and shorten long lines. Output .CALL
12649 argument descriptor using pa_output_arg_descriptor. Add various
12650 inline $$dyncall and other optimizations.
12651 (pa_attr_length_indirect_call): Adjust ordering and lengths.
12653 2016-06-25 Jakub Jelinek <jakub@redhat.com>
12655 PR tree-optimization/71643
12656 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
12659 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
12660 leak a bitmap if dep_bb is NULL.
12662 PR tree-optimization/71631
12663 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
12664 to rewrite_expr_tree even if negate_result, move new_lhs var
12665 declaration and initialization earlier, for powi_result set afterwards
12666 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
12667 if new_lhs != lhs, and don't shadow gsi var.
12669 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12671 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
12672 Add in_loop parameter.
12673 (predict_loops): Add loop guard heuristics.
12674 * predict.def (PRED_LOOP_GUARD): New heuristics.
12676 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12678 * predict.c: Include ipa-utils.h
12679 (tree_bb_level_prediction): Predict recursive calls.
12680 (tree_estimate_probability_bb): Skip inexpensive calls for call
12682 * predict.def (PRED_RECURSIVE_CALL): New.
12684 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12686 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
12687 (BU_FLOAT128_1): Likewise.
12689 (COPYSIGNQ): Likewise.
12690 (RS6000_BUILTIN_NANQ): Likewise.
12691 (RS6000_BUILTIN_NANSQ): Likewise.
12692 (RS6000_BUILTIN_INFQ): Likewise.
12693 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
12694 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
12695 (TARGET_FOLD_BUILTIN): New #define.
12696 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
12697 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
12698 (rs6000_fold_builtin): New target hook implementation, handling
12699 folding of 128-bit NaNs and infinities.
12700 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
12701 entries are filled in to avoid problems during bootstrap
12702 self-test; define builtins for 128-bit NaNs and infinities.
12703 (rs6000_opt_mask): Add entry for float128.
12704 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
12705 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
12706 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
12707 (const_str_type_node): New #define.
12708 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
12709 to a define_expand that dispatches to either copysign<mode>3_soft
12710 or copysign<mode>3_hard.
12711 (copysign<mode>3_hard): Rename from copysign<mode>3.
12712 (copysign<mode>3_soft): New define_insn.
12713 * doc/extend.texi: Document new builtins.
12715 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12717 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
12718 PRIu64 instead of lu.
12720 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
12723 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
12724 copy the type name.
12726 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12728 PR tree-optimization/71647
12729 * omp-low.c (lower_rec_input_clauses): Convert
12730 omp_clause_aligned_alignment (c) to size_type_node for the
12731 last argument of __builtin_assume_aligned.
12733 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
12735 * configure.ac (calling ___tls_get_addr via GOT): New
12736 assembler/linker check.
12737 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
12738 assembler and linker supports calling ___tls_get_addr via GOT.
12739 Otherise, defined to 0.
12740 * config.in: Regenerated.
12741 * configure: Likewise.
12742 * config/i386/constraints.md (Yb): New constraint.
12743 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
12744 (REG_CLASS_NAMES): Likewise.
12745 (REG_CLASS_CONTENTS): Likewise.
12746 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
12747 the b constraint with the Yb constraint. Call ___tls_get_addr
12748 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
12750 (*tls_local_dynamic_base_32_gnu): Likewise.
12751 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
12752 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
12753 (*tls_local_dynamic_base_64_<mode>): Likewise.
12755 2016-06-24 Martin Liska <mliska@suse.cz>
12757 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
12758 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
12760 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
12761 argument to true if the expected number of iterations is
12764 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
12766 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
12767 assemble for 32bit target.
12768 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
12769 and $ld_ix86_gld_32_opt to link for 32bit target.
12770 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
12771 * configure: Regenerate.
12773 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12775 * config/arm/arm.c (int_log2): Delete definition and prototype.
12776 (shift_op): Use exact_log2 instead of int_log2.
12777 (vfp3_const_double_for_fract_bits): Likewise.
12779 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12781 * internal-fn.c (expand_arith_set_overflow): New function.
12782 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
12784 (expand_arith_overflow_result_store): Likewise. Handle precision
12785 smaller than mode precision.
12786 * tree-vrp.c (extract_range_basic): For imag part, handle
12787 properly signed 1-bit precision result.
12788 * doc/extend.texi (__builtin_add_overflow): Document that last
12789 argument can't be pointer to enumerated or boolean type.
12790 (__builtin_add_overflow_p): Document that last argument can't
12791 have enumerated or boolean type.
12793 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12794 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12796 * config/rs6000/predicates.md (splat_input_operand): Rework.
12797 Don't allow constants, since the insns that use this predicate
12798 don't support constants. Constants are handled by other insns
12799 that are created via combine. During and after register
12800 allocation, only allow indexed or indirect addresses, and not
12801 general addresses. Only allow modes supported by the hardware.
12802 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
12803 comment. Move check for using VSPLTIS<x> to a common location,
12804 instead of doing it in two different places.
12806 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
12808 * config/i386/driver-i386.c (host_detect_local_cpu): Set
12809 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
12810 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
12811 signature_CENTAUR_ebx.
12813 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
12817 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
12818 (as_ix86_gas_32_opt): This.
12819 (ld_ix86_tls_ldm_opt): Renamed to ...
12820 (ld_ix86_gld_32_opt): This.
12821 (R_386_TLS_LDM reloc): Updated.
12822 (R_386_GOT32X reloc): New assembler/linker check.
12823 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
12824 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
12826 * config.in: Regenerated.
12827 * configure: Likewise.
12828 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
12829 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
12830 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
12831 if ix86_force_load_from_GOT_p returns true.
12832 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
12833 ix86_force_load_from_GOT_p returns true.
12834 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
12835 the external function address via the GOT slot.
12836 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
12837 HAVE_AS_IX86_GOT32X before returning false.
12838 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
12839 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
12841 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
12843 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
12845 2016-06-23 Andi Kleen <ak@linux.intel.com>
12847 * Makefile.in: Regenerate.
12848 * doc/install.texi: Document autoprofiledbootstrap.
12850 2016-06-23 Andi Kleen <ak@linux.intel.com>
12852 * config/i386/gcc-auto-profile: New file.
12854 2016-06-23 Martin Liska <mliska@suse.cz>
12856 PR middle-end/71619
12857 * predict.c (predict_loops): Revert the hunk that was removed
12860 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
12862 * config.gcc: Add support for arm*-*-phoenix* targets.
12863 * config/arm/t-phoenix: New.
12864 * config/phoenix.h: New.
12866 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
12867 H.J. Lu <hongjiu.lu@intel.com>
12870 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
12871 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
12872 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
12873 ix86_force_load_from_GOT_p returns true.
12874 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
12875 ix86_force_load_from_GOT_p returns true.
12876 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
12877 ix86_force_load_from_GOT_p returns true.
12878 (ix86_expand_move): Load the external function address via the
12879 GOT slot if ix86_force_load_from_GOT_p returns true.
12880 * config/i386/predicates.md (x86_64_immediate_operand): Return
12881 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
12882 (x86_64_zext_immediate_operand): Ditto.
12884 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
12886 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
12888 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12891 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
12892 * diagnostic.c (pedwarn_at_rich_loc): New function.
12893 * spellcheck.h (best_match::best_match): Add a
12894 "best_distance_so_far" optional parameter.
12895 (best_match::set_best_so_far): New method.
12896 (best_match::get_best_distance): New accessor.
12897 (best_match::get_best_candidate_length): New accessor.
12899 2016-06-22 Nick Clifton <nickc@redhat.com>
12901 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
12902 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
12903 modes are accepted as well.
12904 (ucompare_loc_descriptor): Likewise.
12905 (minmax_loc_descriptor): Likewise.
12906 (clz_loc_descriptor): Likewise.
12907 (popcount_loc_descriptor): Likewise.
12908 (bswap_loc_descriptor): Likewise.
12909 (rotate_loc_descriptor): Likewise.
12910 (mem_loc_descriptor): Likewise.
12911 (loc_descriptor): Likewise.
12913 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12915 * common.opt (fdiagnostics-parseable-fixits): New option.
12916 * diagnostic.c: Include "selftest.h".
12917 (print_escaped_string): New function.
12918 (print_parseable_fixits): New function.
12919 (diagnostic_report_diagnostic): Call print_parseable_fixits.
12920 (selftest::assert_print_escaped_string): New function.
12921 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
12922 (selftest::test_print_escaped_string): New function.
12923 (selftest::test_print_parseable_fixits_none): New function.
12924 (selftest::test_print_parseable_fixits_insert): New function.
12925 (selftest::test_print_parseable_fixits_remove): New function.
12926 (selftest::test_print_parseable_fixits_replace): New function.
12927 (selftest::diagnostic_c_tests): New function.
12928 * diagnostic.h (struct diagnostic_context): Add field
12929 "parseable_fixits_p".
12930 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12931 -fdiagnostics-parseable-fixits.
12932 (-fdiagnostics-parseable-fixits): New option.
12933 * opts.c (common_handle_option): Handle
12934 -fdiagnostics-parseable-fixits.
12935 * selftest-run-tests.c (selftest::run_tests): Call
12936 selftest::diagnostic_c_tests.
12937 * selftest.h (selftest::diagnostic_c_tests): New prototype.
12939 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
12941 PR tree-optimization/71488
12942 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
12943 comparison of boolean vectors.
12944 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
12945 of boolean vectors using bitwise operations.
12947 2016-06-22 Andreas Schwab <schwab@suse.de>
12949 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
12950 Remove declaration.
12952 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
12954 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
12956 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
12958 * config/i386/i386.c (print_reg): Emit an error message on attempt to
12961 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12963 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
12964 * config/arm/arm-cores.def (cortex-a73): New entry.
12965 (cortex-a73.cortex-a35): Likewise.
12966 (cortex-a73.cortex-a53): Likewise.
12967 * config/arm/arm-tables.opt: Regenerate.
12968 * config/arm/arm-tune.md: Likewise.
12969 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
12970 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12971 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
12972 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12973 * doc/invoke.texi (ARM Options): Document cortex-a73,
12974 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
12976 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12978 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
12979 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
12980 (cortex-a73.cortex-a35): Likewise.
12981 (cortex-a73.cortex-a53): Likewise.
12982 * config/aarch64/aarch64-tune.md: Regenerate.
12983 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
12984 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
12987 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12989 * configure.ac (gcc_cv_as_compress_debug): Remove
12990 --compress-debug-sections as extra as switch.
12991 Handle gas --compress-debug-sections=type.
12992 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
12993 Handle gld --compress-debug-sections=type.
12994 * configure: Regenerate.
12996 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
12998 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
13000 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
13002 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
13003 (do_rewrite): likewise.
13005 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13007 * common/config/mep/mep-common.c: Remove.
13008 * config.gcc: Remove mep-* support.
13009 * config/mep/constraints.md: Remove.
13010 * config/mep/default.h: Remove.
13011 * config/mep/intrinsics.h: Remove.
13012 * config/mep/intrinsics.md: Remove.
13013 * config/mep/ivc2-template.h: Remove.
13014 * config/mep/mep-c5.cpu: Remove.
13015 * config/mep/mep-core.cpu: Remove.
13016 * config/mep/mep-default.cpu: Remove.
13017 * config/mep/mep-ext-cop.cpu: Remove.
13018 * config/mep/mep-intrin.h: Remove.
13019 * config/mep/mep-ivc2.cpu: Remove.
13020 * config/mep/mep-pragma.c: Remove.
13021 * config/mep/mep-protos.h: Remove.
13022 * config/mep/mep.c: Remove.
13023 * config/mep/mep.cpu: Remove.
13024 * config/mep/mep.h: Remove.
13025 * config/mep/mep.md: Remove.
13026 * config/mep/mep.opt: Remove.
13027 * config/mep/predicates.md: Remove.
13028 * config/mep/t-mep: Remove.
13029 * doc/install.texi: Remove mep-* documentation.
13030 * doc/md.texi: Likewise.
13032 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13034 * config.gcc: Remove support for avr-rtems.
13035 * config/avr/gen-avr-mmcu-specs.c: Likewise.
13036 * config/avr/rtems.h: Remove.
13037 * config/avr/t-rtems: Remove.
13039 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13041 * config.gcc: Remove m32r-rtems support.
13042 * config/m32r/rtems.h: Remove.
13044 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13046 * config.gcc: Remove h8300-rtems support.
13047 * config/h8300/rtems.h: Remove.
13048 * config/h8300/t-rtems: Remove.
13050 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13052 * config.gcc: Remove support for knetbsd.
13053 * configure.ac: Likewise.
13054 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
13055 * config/knetbsd-gnu.h: Remove.
13056 * configure: Regenerate.
13058 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13060 * config.gcc: Remove support for openbsd 2 and 3.
13061 * config/openbsd-oldgas.h: Remove.
13063 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13065 * config.gcc: Remove interix support.
13066 * config/i386/i386-interix.h: Remove.
13067 * config/i386/interix.opt: Remove.
13068 * config/i386/t-interix: Remove.
13069 * configure: Regenerate.
13070 * configure.ac: Remove interix support.
13071 * doc/install.texi: Remove interix documentation.
13073 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
13075 * config/rs6000/rs6000.h: Add conditional preprocessing directives
13076 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
13079 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
13081 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
13082 they are both PLACEHOLDER_EXPRs.
13084 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13086 * stor-layout.c (layout_type): Move setting complex MODE to
13087 layout_type, instead of setting it ahead of time by the caller.
13088 * tree.c (build_complex_type): Likewise.
13090 2016-06-21 Martin Liska <mliska@suse.cz>
13092 * predict.c (force_edge_cold): Replace imposisble with
13095 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
13097 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
13098 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
13100 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
13102 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
13104 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
13105 Ilya Enkovich <ilya.enkovich@intel.com>
13108 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
13109 New member function to convert V1TImode register to SUBREG
13110 TImode in debug insn.
13111 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
13112 after changing register mode to V1TImode.
13114 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
13116 * config/aarch64/aarch64-cores.def (vulcan): New core.
13117 * config/aarch64/aarch64-tune.md: Regenerate.
13118 * doc/invoke.texi: Document vulcan as an available option.
13120 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
13122 * cse.c (canon_asm_operands): New function extracted from...
13123 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
13124 either standalone or member of a PARALLEL.
13126 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
13129 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
13130 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
13131 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
13133 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
13136 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
13137 constant addresses if can_create_pseudo_p.
13139 2016-06-21 Jakub Jelinek <jakub@redhat.com>
13141 PR tree-optimization/71588
13142 * tree-ssa-strlen.c (valid_builtin_call): New function.
13143 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
13146 2016-06-20 Jakub Jelinek <jakub@redhat.com>
13148 PR middle-end/71581
13149 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
13150 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
13151 for conversion of scalar user var to complex type and use the
13152 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
13155 PR rtl-optimization/71591
13156 * toplev.c (toplev::run_self_tests): If no_backend, complain and
13157 don't run any tests.
13159 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
13162 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
13163 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
13164 space for PIC with non-v32 and the common non-PIC "jump".
13166 2016-06-20 Jakub Jelinek <jakub@redhat.com>
13169 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
13170 returned values and add UN*/LTGT/*ORDERED cases with values matching
13171 D operand modifier on vcmp for AVX.
13173 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13175 * config/aarch64/aarch64.opt
13176 (mpc-relative-literal-loads): Rename internal option name.
13177 * config/aarch64/aarch64.c
13178 (aarch64_nopcrelative_literal_loads): Rename to
13179 aarch64_pcrelative_literal_loads.
13180 (aarch64_expand_mov_immediate): Likewise.
13181 (aarch64_secondary_reload): Likewise.
13182 (aarch64_can_use_per_function_literal_pools_p): Likewise.
13183 (aarch64_override_options_after_change_1): Rename and simplify logic.
13184 (aarch64_classify_symbol): Merge large model checks into switch,
13185 remove pc-relative load check.
13187 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13189 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
13190 costs relative to the cost of a register move.
13192 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13194 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
13195 (vcvt_n_f64_u64): Likewise.
13196 (vcvt_n_s64_f64): Likewise.
13197 (vcvt_n_u64_f64): Likewise.
13198 (vcvt_f64_s64): Likewise.
13199 (vrecpe_f64): Likewise.
13200 (vcvt_f64_u64): Likewise.
13201 (vrecps_f64): Likewise.
13203 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13205 * config/aarch64/aarch64.md
13206 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
13208 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
13210 * config/aarch64/aarch64-builtins.c
13211 (aarch64_types_binop_uss_qualifiers): Delete.
13212 (TYPES_BINOP_USS): Likewise.
13213 (aarch64_types_binop_sus_qualifiers): Likewise.
13214 (TYPES_BINOP_SUS): Likewise.
13215 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
13216 (TYPES_FCVTIMM_SUS): Likewise.
13217 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
13219 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
13220 (fcvtzs): Use SHIFTIMM rather than BINOP.
13221 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
13223 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13225 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
13226 costs relative to the cost of a register move.
13228 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13230 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
13231 Allow scalar/single vector modes to be tieable.
13233 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13235 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
13237 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13239 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
13241 * tree.h (TYPE_ALIGN): Likewise.
13243 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13246 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
13248 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13250 * config/avr/avr.c (avr_print_operand): Fix "format not a string
13251 literal" build warnings.
13252 (avr_print_operand_address): Dito.
13254 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
13257 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
13258 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
13260 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
13262 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
13264 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
13267 * reload1.c (reload): Pass 0 to finish_spills when called because
13268 update_eliminables_and_spill returns true and remove did_spill.
13269 (finish_spills): Adjust comment and document GLOBAL parameter.
13271 2016-06-17 DJ Delorie <dj@redhat.com>
13274 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
13275 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
13276 (umulqihi3_virt): Likewise.
13277 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
13278 (umulqihi3_real): Likewise.
13280 2016-06-17 Martin Liska <mliska@suse.cz>
13282 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
13284 2016-06-17 Martin Liska <mliska@suse.cz>
13286 * predict.def: PRED_LOOP_EXIT from 92 to 85.
13288 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
13290 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
13292 (vaddq_f32): Likewise.
13293 (vmul_f32): Likewise.
13294 (vmulq_f32): Likewise.
13295 (vsub_f32): Likewise.
13296 (vsubq_f32): Likewise.
13298 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13300 PR tree-optimization/71347
13301 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
13302 cost for all uses in group.
13304 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13306 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
13307 insert gimple seq if it's not empty.
13309 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13311 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
13313 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
13314 rather than OFFSET.
13315 (comp_dr_with_seg_len_pair): Ditto.
13316 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
13317 struct dr_with_seg_len_pair against DR_OFFSET.
13318 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
13319 DR_OFFSET directly.
13321 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
13323 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
13325 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
13327 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
13328 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
13329 (pa_output_millicode_call): Likewise.
13330 (pa_output_call): Likewise.
13331 (pa_output_indirect_call): Likewise.
13332 (pa_asm_output_mi_thunk): Likewise.
13334 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13336 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
13338 2016-06-16 Martin Liska <mliska@suse.cz>
13340 * predict.c (combine_predictions_for_insn): When we find a first
13341 match predictor, we should consider just predictors with
13342 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
13343 DS theory predictor.
13344 (combine_predictions_for_bb): Likewise.
13346 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13348 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
13349 with base of reference to struct.
13351 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13353 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
13355 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13358 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
13359 progmem_swtable_section.
13360 (progmem_swtable_section): Remove.
13361 (avr_asm_function_rodata_section): Remove.
13362 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13363 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
13365 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
13367 * config/i386/driver-i386.c (host_detect_local_cpu): Set
13368 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
13369 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
13370 signature_CENTAUR_ebx.
13371 * config/i386/i386.c (ix86_option_override_internal): Add
13372 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
13373 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
13374 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
13376 2016-06-16 Martin Liska <mliska@suse.cz>
13378 * predict.def: Add fortran loop preheader predictor.
13379 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
13380 fold IFN_BUILTIN_EXPECT with a known constant argument.
13382 2016-06-16 Martin Liska <mliska@suse.cz>
13384 * predict.def: Add 'Fortran' to display text of all
13385 PRED_FORTRAN_* predictors.
13387 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13390 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
13391 [IA64_BUILTIN_NANSQ]: Ditto.
13392 (ia64_fold_builtin): New function.
13393 (TARGET_FOLD_BUILTIN): New define.
13394 (ia64_init_builtins) Declare const_string_type node.
13395 Add __builtin_nanq and __builtin_nansq builtin functions.
13396 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
13398 2016-06-16 Nick Clifton <nickc@redhat.com>
13400 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
13401 MSP430_HWMULT_ prefix to enum values.
13402 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
13403 * config/msp430/msp430.c: Update use of enum values.
13404 * config/msp430/msp430.md: Likewise.
13405 * config/msp430/msp430.opt: Likewise.
13407 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
13409 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
13410 of comparsions in the last iteration.
13412 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13413 Joern Rennecke <joern.rennecke@embecosm.com>
13415 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
13417 (arc_needs_pcl_p): Add GOTOFFPC.
13418 (arc_legitimate_pic_addr_p): Likewise.
13419 (arc_output_pic_addr_const): Likewise.
13420 (arc_legitimize_pic_address): Generate a pc-relative address using
13422 (arc_output_libcall): Use @pcl syntax.
13423 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
13424 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
13425 (*movsi_insn): Use @pcl syntax.
13426 (doloop_begin_i): Likewise.
13428 2016-06-16 Martin Liska <mliska@suse.cz>
13430 * predict.def: Define a new predictor.
13432 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13434 * config/arc/arc.opt (mtp-regno): Update text.
13436 2016-06-16 Renlin Li <renlin.li@arm.com>
13438 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
13440 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13443 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
13444 (setcc + and peephole2): Likewise.
13446 PR rtl-optimization/71532
13447 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
13450 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13452 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
13453 DImode constants with XXSPLTIB in vector registers.
13454 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
13455 vsx_extract_<mode>_internal{1,2} into a single insn that handles
13456 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
13457 extraction of the element at the top of the register as a scalar
13459 (vsx_extract_<mode>_internal1): Likewise.
13460 (vsx_extract_<mode>_internal2): Likewise.
13461 * config/rs6000/constraints.md (wi constraint): Remove a comment
13462 about DImode not being allowed in Altivec registers.
13463 (wB constraint): New constraint for constants that can be
13464 generated in Altivec registers with VSPLTISW/VUPKHSW.
13465 * config/rs6000/predicates.md (xxspltib_constant_split): Update
13467 (xxspltib_constant_nosplit): Likewise.
13468 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
13469 support for -mupper-regs-di to enable DImode to go into Altivec
13471 (POWERPC_MASKS): Likewise.
13472 (power7 cpu): Likewise.
13473 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
13474 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
13475 for DImode being allowed in Altivec registers. Update wi/wj
13476 constraints. Set scalar_in_vmx_p flag.
13477 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
13478 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
13479 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
13480 (rs6000_opt_masks): Add -mupper-regs-di.
13481 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
13482 direct move to use wi and not wj.
13483 (lfiwzx): Likewise.
13484 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
13486 (floatunssi<mode>2_lfiwzx_mem): Likewise.
13487 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
13488 any VSX register, instead of just Altivec registers, to allow
13489 either operand to be an Altivec register or both.
13490 (fixuns_trunc<mode>di2_fctiduz): Likewise.
13491 (movdi_internal32): Add support for -mupper-regs-di. Add support
13492 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
13493 the alternatives and attributes to be lined up to be easier to
13495 (movdi_internal64): Likewise.
13496 (64-bit DImode splitters): Change predicates to only split loading
13497 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
13498 load constants in ISA 3.0 or ISA 2.07 respectively.
13499 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13500 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
13501 mention -mcpu=power9 sets these options.
13502 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
13505 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13508 * config/avr/avr.c (avr_set_current_function): Warn misspelled
13509 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
13510 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
13511 by default to warn misspelled interrupt/ signal handler.
13512 * doc/invoke.texi (AVR Options): Document it. Update description
13513 for -nodevicelib option.
13515 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13517 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
13518 up parentheses. Use GET_MODE_UNIT_BITSIZE.
13519 (aarch64_<sur>shll2_n<mode>): Likewise.
13521 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
13523 PR middle-end/71529
13524 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
13525 DECL_CONTEXT for copied arguments.
13527 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13529 PR tree-optimization/71483
13530 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
13533 2016-06-15 Martin Liska <mliska@suse.cz>
13535 * predict.c (tree_predict_by_opcode): Call predict_edge_def
13536 instead of predict_edge w/o a probability.
13538 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13540 PR tree-optimization/71439
13541 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
13544 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13546 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
13547 register subregs in SET_SRC.
13549 2016-06-15 Richard Biener <rguenther@suse.de>
13551 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
13552 store restrictions.
13554 2016-06-15 Richard Biener <rguenther@suse.de>
13556 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
13557 not consider dependences between accesses that belong to the
13559 (vect_analyze_data_ref_dependences): Do not analyze read-read
13560 or self-dependences.
13562 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13564 * spellcheck-tree.c: Include spellcheck-tree.h rather than
13566 (find_closest_identifier): Reimplement in terms of
13567 best_match<tree,tree>.
13568 * spellcheck-tree.h: New file.
13569 * spellcheck.c (struct edit_distance_traits<const char *>): New
13571 (find_closest_string): Reimplement in terms of
13572 best_match<const char *, const char *>.
13573 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
13574 overload to spellcheck-tree.h.
13575 (find_closest_identifier): Likewise.
13576 (struct edit_distance_traits<T>): New template.
13577 (class best_match): New class.
13579 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13581 * selftest-run-tests.c (selftest::run_tests): Call
13582 selftest::spellcheck_tree_c_tests.
13583 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
13584 * spellcheck-tree.c: Include selftest.h and stringpool.h.
13585 (selftest::test_find_closest_identifier): New function.
13586 (selftest::spellcheck_tree_c_tests): New function.
13587 * spellcheck.c (selftest::test_find_closest_string): Verify that
13588 the order of the vec does not affect the results for this case.
13589 (selftest::test_data): New array.
13590 (selftest::test_metric_conditions): New function.
13591 (selftest::spellcheck_c_tests): Add a test of case-comparison.
13592 Call selftest::test_metric_conditions.
13594 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13596 * config/rs6000/rs6000-builtin.def (commentary): Typo.
13597 (BU_P9_MISC_1): Likewise.
13598 (BU_P9_64BIT_MISC_0): Likewise.
13599 (BU_P9_MISC_0): Likewise.
13601 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13603 * gcc-rich-location.c
13604 (gcc_rich_location::add_fixit_misspelled_id): New method.
13605 * gcc-rich-location.h
13606 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
13608 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
13610 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
13611 FreeBSD 11 and above.
13613 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
13615 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
13617 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13619 * expmed.h: Close parenthesis in "at your option" in copyright
13621 * lower-subreg.h: Likewise.
13623 2016-06-14 Richard Biener <rguenther@suse.de>
13625 PR middle-end/71526
13626 * genmatch.c (expr::gen_transform): Use in_type for comparisons
13629 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13631 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
13633 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
13634 mask+shift version.
13635 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
13637 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
13638 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
13640 2016-06-14 Richard Biener <rguenther@suse.de>
13642 PR tree-optimization/71522
13643 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
13644 copying into float copying.
13646 2016-06-14 Jakub Jelinek <jakub@redhat.com>
13648 PR tree-optimization/71520
13649 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
13650 (replace_block_by): Move user labels from bb1 to bb2.
13652 2016-06-14 Richard Biener <rguenther@suse.de>
13654 PR middle-end/71310
13656 * expr.h (get_bit_range): Declare.
13657 * expr.c (get_bit_range): Export.
13658 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
13659 word_mode again to constrain the bitfield access.
13661 2016-06-14 Richard Biener <rguenther@suse.de>
13663 PR tree-optimization/71521
13664 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
13665 division int_const_binop against zero divisor.
13667 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13669 * config/i386/i386.md (signbittf2): New expander.
13670 * config/i386/sse.md (ptesttf2): New insn pattern.
13672 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13675 * input.c (selftest::test_reading_source_line): Avoid reading from
13676 __FILE__ by creating a tempfile with known content and reading
13679 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13681 * pretty-print.c (assert_pp_format_colored): Skip the test if
13683 (test_pp_format): Remove comment about GCC_COLORS.
13685 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13687 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
13688 * pretty-print.c (assert_pp_format_va): Add location param and use
13689 it with ASSERT_STREQ_AT.
13690 (assert_pp_format): Add location param and pass it to
13691 assert_pp_format_va.
13692 (assert_pp_format_colored): Likewise.
13693 (ASSERT_PP_FORMAT_1): New.
13694 (ASSERT_PP_FORMAT_2): New.
13695 (ASSERT_PP_FORMAT_3): New.
13696 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
13697 explicitly, or implicitly via the above macros.
13698 * selftest.c (selftest::pass): Use a selftest::location rather
13699 than file and line.
13700 (selftest::fail): Likewise. Print the function name.
13701 (selftest::fail_formatted): Likewise.
13702 (selftest::assert_streq): Use a selftest::location rather than
13704 * selftest.h (selftest::location): New struct.
13705 (SELFTEST_LOCATION): New macro.
13706 (selftest::pass): Accept a const location & rather than file
13708 (selftest::fail): Likewise.
13709 (selftest::fail_formatted): Likewise.
13710 (selftest::assert_streq): Likewise.
13711 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
13712 (ASSERT_FALSE): Likewise.
13713 (ASSERT_EQ): Likewise.
13714 (ASSERT_NE): Likewise.
13715 (ASSERT_STREQ): Likewise.
13716 (ASSERT_PRED1): Likewise.
13717 (ASSERT_STREQ_AT): New macro.
13719 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13721 * selftest.c (selftest::fail_formatted): New function.
13722 (selftest::assert_streq): New function.
13723 * selftest.h (selftests::fail_formatted): New decl.
13724 (selftest::assert_streq): New decl.
13725 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
13727 2016-06-13 Jeff Law <law@redhat.com>
13729 PR tree-optimization/71403
13730 * tree-ssa-threadbackward.c
13731 (convert_and_register_jump_thread_path): No longer accept reference
13732 to path. Do not pop items off the path anymore.
13733 (fsm_find_control_statement_thread_paths): Do not allow threading
13734 to a deeper loop nest. Pop the last item off the path here rather
13735 than in convert_and_register_jump_thread_path.
13737 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13738 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
13740 [AArch64] Emit division using the Newton series
13742 * config/aarch64/aarch64-protos.h
13743 (cpu_approx_modes): Add new member "division".
13744 (aarch64_emit_approx_div): Declare new function.
13745 * config/aarch64/aarch64.c
13746 (generic_approx_modes): New member "division".
13747 (exynosm1_approx_modes): Likewise.
13748 (xgene1_approx_modes): Likewise.
13749 (aarch64_emit_approx_div): Define new function.
13750 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
13751 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
13752 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
13753 * doc/invoke.texi (-mlow-precision-div): Describe new option.
13755 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13756 Wilco Dijkstra <wilco.dijkstra@arm.com>
13758 [AArch64] Emit square root using the Newton series
13760 * config/aarch64/aarch64-protos.h
13761 (aarch64_emit_approx_rsqrt): Replace with new function
13762 "aarch64_emit_approx_sqrt".
13763 (cpu_approx_modes): New member "sqrt".
13764 * config/aarch64/aarch64.c
13765 (generic_approx_modes): New member "sqrt".
13766 (exynosm1_approx_modes): Likewise.
13767 (xgene1_approx_modes): Likewise.
13768 (aarch64_emit_approx_rsqrt): Replace with new function
13769 "aarch64_emit_approx_sqrt".
13770 (aarch64_override_options_after_change_1): Handle new option.
13771 * config/aarch64/aarch64-simd.md
13772 (rsqrt<mode>2): Use new function instead.
13773 (sqrt<mode>2): New expansion and insn definitions.
13774 * config/aarch64/aarch64.md: Likewise.
13775 * config/aarch64/aarch64.opt
13776 (mlow-precision-sqrt): Add new option description.
13777 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
13779 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13781 [AArch64] Add more choices for the reciprocal square root approximation
13783 Allow a target to prefer such operation depending on the operation mode.
13785 * config/aarch64/aarch64-protos.h
13786 (AARCH64_APPROX_MODE): New macro.
13787 (AARCH64_APPROX_{NONE,ALL}): Likewise.
13788 (cpu_approx_modes): New structure.
13789 (tune_params): New member "approx_modes".
13790 * config/aarch64/aarch64-tuning-flags.def
13791 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
13792 * config/aarch64/aarch64.c
13793 (generic_approx_modes): New core "cpu_approx_modes" structure.
13794 (exynosm1_approx_modes): Likewise.
13795 (xgene1_approx_modes): Likewise.
13796 (generic_tunings): New member "approx_modes".
13797 (cortexa35_tunings): Likewise.
13798 (cortexa53_tunings): Likewise.
13799 (cortexa57_tunings): Likewise.
13800 (cortexa72_tunings): Likewise.
13801 (exynosm1_tunings): Likewise.
13802 (thunderx_tunings): Likewise.
13803 (xgene1_tunings): Likewise.
13804 (use_rsqrt_p): New argument for the mode and use new member from
13806 (aarch64_builtin_reciprocal): Devise mode from builtin.
13807 (aarch64_optab_supported_p): New argument for the mode.
13808 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
13810 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13812 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
13813 RS6000_BTM_MODULO flag into the set of flags that are considered
13814 to be part of the common configuration.
13816 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13818 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
13819 difference unsigned.
13820 (vec_absdb): New macro for vector absolute difference unsigned
13822 (vec_absdh): New macro for vector absolute difference unsigned
13824 (vec_absdw): New macro for vector absolute difference unsigned word.
13825 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
13826 (vadu<mode>3): New insn.
13827 (*p9_vadu<mode>3): New insn.
13828 * config/rs6000/rs6000-builtin.def (vadub): New built-in
13830 (vaduh): New built-in definition.
13831 (vaduw): New built-in definition.
13832 (vadu): New overloaded built-in definition.
13833 (vadub): New overloaded built-in definition.
13834 (vaduh): New overloaded built-in definition.
13835 (vaduw): New overloaded built-in definition.
13836 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13837 overloaded vector absolute difference unsigned functions.
13838 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13839 the ISA 3.0 vector absolute difference unsigned built-in functions.
13841 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
13843 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
13844 update shared_lookup_references only once after changing operands.
13846 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
13848 PR middle-end/71373
13849 * tree-nested.c (convert_nonlocal_omp_clauses)
13850 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
13852 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
13853 * tree.def (CASE_LABEL_EXPR): Likewise.
13855 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13858 * input.c (test_builtins): Fix an assertion.
13860 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13862 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
13863 (paritysi2): Ditto.
13865 (isinf<mode>2): Ditto.
13867 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13869 * ggc-tests.c (test_finalization): Only test need_finalization_p
13870 for GCC_VERSION >= 4003.
13872 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13874 * config/s390/vecintrin.h: Fix file description in comment.
13876 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13878 * config/s390/s390-builtin-types.def: Change builtin type naming
13879 scheme to match builtin-types.def.
13881 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
13883 * fold-const.c (optimize_minmax_comparison): Remove.
13884 (fold_comparison): Remove call to the above.
13885 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
13886 New transformations.
13888 2016-06-13 Alan Hayward <alan.hayward@arm.com>
13890 PR tree-optimization/71416
13891 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
13894 2016-06-13 Martin Liska <mliska@suse.cz>
13896 * predict.c (enum predictor_reason): Prefix enum with REASON_.
13897 (combine_predictions_for_insn): Likewise.
13898 (prune_predictions_for_bb): Likewise.
13899 (combine_predictions_for_bb): Likewise.
13901 2016-06-13 Richard Biener <rguenther@suse.de>
13903 PR tree-optimization/71505
13904 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
13905 assert match comment.
13907 2016-06-13 Marek Polacek <polacek@redhat.com>
13909 PR middle-end/71476
13910 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
13911 gimplify_switch_expr.
13912 (warn_switch_unreachable_r): New function.
13914 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13917 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
13920 2016-06-13 Richard Biener <rguenther@suse.de>
13922 PR middle-end/64516
13923 * fold-const.c (fold_unary_loc): Preserve alignment when
13924 folding a VIEW_CONVERT_EXPR into a MEM_REF.
13926 2016-06-13 Martin Liska <mliska@suse.cz>
13929 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
13930 w/ -fsanitize=bounds.
13932 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13934 * config/i386/i386.c (ix86_init_builtins): Calculate
13935 FLOAT128_FTYPE_CONST_STRING function type only once.
13936 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
13937 built-in functions are available for x86-32 and x86-64 targets.
13939 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13942 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
13943 New primitive type.
13944 (FLOAT128_FTYPE_CONST_STRING): New function type.
13945 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
13946 [IX86_BUILTIN_NANSQ]: Ditto.
13947 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13948 (ix86_init_builtin_types): Declare const_string_type_node.
13949 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
13951 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13952 * doc/extend.texi (x86 Built-in Functions): Document
13953 __builtin_nanq and __builtin_nansq.
13955 2016-06-11 Jiong Wang <jiong.wang@arm.com>
13958 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
13959 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
13960 length for pop patterns.
13961 (arm_attr_length_push_multi): Update comments.
13962 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
13964 (*pop_multiple_with_writeback_and_return): Likewise.
13965 (*pop_multiple_with_return): Likewise.
13967 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
13969 PR middle-end/71310
13970 * fold-const.c (optimize_bit_field_compare): Don't try to use
13971 word_mode unconditionally for reading the bit field, look at
13972 DECL_BIT_FIELD_REPRESENTATIVE instead.
13974 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
13976 PR middle-end/71478
13977 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
13978 vector integer type.
13980 2016-06-10 Jakub Jelinek <jakub@redhat.com>
13982 PR middle-end/71494
13983 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
13984 without LABEL_DECL, set *handled_ops_p to false instead of true.
13986 2016-06-10 Martin Sebor <msebor@redhat.com>
13989 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
13990 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
13991 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
13993 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
13994 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
13995 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
13996 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
13997 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
13998 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
13999 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
14000 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
14002 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
14004 * config/arm/arm.h (pool_vector_label,
14005 return_used_this_function): Remove.
14007 2016-06-10 Jeff Law <law@redhat.com>
14009 PR tree-optimization/71335
14010 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
14011 zero length paths here.
14012 (convert_and_register_jump_thread_path): Remove hacks related to
14013 duplicated blocks in the jump thread path.
14014 (fsm_find_control_statement_thread_paths): Avoid putting the same
14015 block on the thread path twice, but ensure the thread path is
14016 unchanged from the caller's point of view.
14018 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
14020 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
14021 * predict.def (PRED_LOOP_BRANCH): Remove.
14023 2016-06-10 David Malcolm <dmalcolm@redhat.com>
14025 * Makefile.in (OBJS): Add ggc-tests.o.
14026 (GTFILES): Add ggc-tests.c.
14027 * ggc-tests.c: New file.
14028 * selftest-run-tests.c (selftest::run_tests): Call
14029 selftest::ggc_tests_c_tests.
14030 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
14032 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
14034 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
14036 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
14039 * varasm.c (place_block_symbol): Adjust alignment for asan protected
14040 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
14042 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
14044 * profile.c: Include cfgloop.h.
14045 (branch_prob): Compute estimated number of iterations.
14046 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
14047 recompute estimate number of iterations from profile.
14049 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
14051 PR inline-asm/68843
14052 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
14053 must be grouped on top of stack. Don't force early clobber
14054 on ordinary reg outputs.
14056 2016-06-10 Richard Biener <rguenther@suse.de>
14058 * targhooks.c (default_builtin_vectorization_cost): Adjust
14059 vec_construct cost.
14061 2016-06-10 Richard Biener <rguenther@suse.de>
14063 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
14064 to fold the RHS to a constant if possible.
14066 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
14068 PR middle-end/71373
14069 * tree-nested.c (convert_nonlocal_omp_clauses)
14070 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
14071 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
14072 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
14074 * gimplify.c (gimplify_adjust_omp_clauses): Discard
14076 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
14078 * omp-low.c (scan_sharing_clauses): Don't expect
14079 OMP_CLAUSE__CACHE_.
14081 2016-06-10 Alan Hayward <alan.hayward@arm.com>
14083 PR tree-optimization/71407
14084 PR tree-optimization/71416
14085 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
14086 BIT_FIELD_REF type.
14088 2016-06-10 Richard Biener <rguenther@suse.de>
14090 PR middle-end/71477
14091 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
14093 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
14095 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
14097 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
14098 Jiong Wang <jiong.wang@arm.com>
14100 PR rtl-optimization/70751
14101 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
14102 spilled into memory.
14104 2016-06-09 Jonathan Yong <10walls@gmail.com>
14107 2015-09-21 Jonathan Yong <10walls@gmail.com>
14109 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14110 sysroot/usr/lib/32api for additional win32 libraries,
14111 fixes failing Cygwin bootstrapping.
14113 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
14115 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
14118 2016-06-09 David Malcolm <dmalcolm@redhat.com>
14121 * pretty-print.c (pp_indent): Specify that %p is printed in a
14122 host-dependent manner.
14123 (test_pp_format): Remove the test for %p.
14125 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
14127 * config/mips/mips.c (mips_output_jump): Fix formatting.
14129 2016-06-09 Richard Biener <rguenther@suse.de>
14131 PR tree-optimization/71462
14132 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
14135 2016-06-09 Martin Liska <mliska@suse.cz>
14137 * predict.c (dump_prediction): Add new argument.
14138 (enum predictor_reason): New enum.
14139 (struct predictor_hash): New struct.
14140 (predictor_hash::hash): New function.
14141 (predictor_hash::equal): Likewise.
14142 (not_removed_prediction_p): New function.
14143 (prune_predictions_for_bb): Likewise.
14144 (combine_predictions_for_bb): Prune predictions.
14146 2016-06-09 Martin Liska <mliska@suse.cz>
14148 * predict.c (filter_predictions): New function.
14149 (remove_predictions_associated_with_edge): Use the filter
14151 (equal_edge_p): New function.
14153 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
14155 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
14156 Correct usage of @samp vs @option, add @samp where appropriate.
14157 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
14158 Add armv6s-m and document it, as it is no official ARM name.
14160 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14162 * ifcvt.c (struct noce_if_info): Add transform_name field.
14163 (noce_try_move): Set if_info->transform_name to the function name.
14164 (noce_try_ifelse_collapse): Likewise.
14165 (noce_try_store_flag): Likewise.
14166 (noce_try_inverse_constants): Likewise.
14167 (noce_try_store_flag_constants): Likewise.
14168 (noce_try_addcc): Likewise.
14169 (noce_try_store_flag_mask): Likewise.
14170 (noce_try_cmove): Likewise.
14171 (noce_try_cmove_arith): Likewise.
14172 (noce_try_minmax): Likewise.
14173 (noce_try_abs): Likewise.
14174 (noce_try_sign_mask): Likewise.
14175 (noce_try_bitop): Likewise.
14176 (noce_convert_multiple_sets): Likewise.
14177 (noce_process_if_block): Print if_info->transform_name to
14178 dump_file if transformation succeeded.
14180 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14182 * config/arm/cortex-a57.md (cortex_a57_alu):
14185 2016-06-08 Martin Sebor <msebor@redhat.com>
14186 Jakub Jelinek <jakub@redhat.com>
14190 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
14191 BUILT_IN_MUL_OVERFLOW_P): New builtins.
14192 * builtins.c: Include gimple-fold.h.
14193 (fold_builtin_arith_overflow): Handle
14194 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
14195 (fold_builtin_3): Likewise.
14196 * doc/extend.texi (Integer Overflow Builtins): Document
14197 __builtin_{add,sub,mul}_overflow_p.
14199 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
14201 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
14202 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
14204 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
14206 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
14207 Rewrite, looking one level down for records and arrays.
14209 2016-06-08 David Malcolm <dmalcolm@redhat.com>
14211 * pretty-print.c: Include "selftest.h".
14212 (pp_format): Fix comment.
14213 (identifier_to_locale): Likewise.
14214 (selftest::test_basic_printing): New function.
14215 (selftest::assert_pp_format): New function.
14216 (selftest::test_pp_format): New function.
14217 (selftest::pretty_print_c_tests): New function.
14218 * selftest-run-tests.c (selftest::run_tests): Call
14219 selftest::pretty_print_c_tests.
14220 * selftest.h (pretty_print_c_tests): New declaration.
14222 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14224 * invoke.texi (max-loop-headers-insns): Document.
14225 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
14226 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
14227 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
14229 2016-06-08 Richard Biener <rguenther@suse.de>
14231 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
14232 on strided SLP loads and fall back to scalar loads in case
14233 we can't chunk them.
14235 2016-06-08 Richard Biener <rguenther@suse.de>
14237 PR tree-optimization/71452
14238 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
14239 type used for the SSA rewrite has enough precision to cover
14240 the dynamic type of the location.
14242 2016-06-08 Jakub Jelinek <jakub@redhat.com>
14243 Richard Biener <rguenther@suse.de>
14246 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
14247 the same as DECL_P (base0) for indirect_base0. Use equality_code
14248 in one further place.
14250 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
14252 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
14253 to one word if the field is known to overlap other words.
14254 (extract_bit_field_1): Likewise.
14255 (store_split_bit_field): Remove compensating code.
14256 (extract_split_bit_field): Likewise.
14258 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
14262 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
14264 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14266 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
14268 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
14269 (arch64_addpv4sf): Delete.
14270 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
14271 "gen_aarch64_addpv4sf".
14272 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
14274 (vpadds_f32): Likewise.
14275 (vpaddq_f32): Likewise.
14276 (vpaddq_f64): Likewise.
14278 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14280 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
14282 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
14283 to VALLF. Rename to "fabd<mode>3".
14284 "*fabd_scalar<mode>3): Delete.
14285 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
14287 (vabdd_f64): Likewise.
14288 (vabd_f32): Likewise.
14289 (vabd_f64): Likewise.
14290 (vabdq_f32): Likewise.
14291 (vabdq_f64): Likewise.
14293 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14295 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
14297 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
14298 "aarch64_rsqrts<mode>".
14299 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
14300 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
14302 (vrsqrtsd_f64): Likewise.
14303 (vrsqrts_f32): Likewise.
14304 (vrsqrts_f64): Likewise.
14305 (vrsqrtsq_f32): Likewise.
14306 (vrsqrtsq_f64): Likewise.
14308 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14310 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
14312 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
14313 "aarch64_rsqrte<mode>".
14314 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
14315 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
14317 (vrsqrted_f64): Likewise.
14318 (vrsqrte_f32): Likewise.
14319 (vrsqrte_f64): Likewise.
14320 (vrsqrteq_f32): Likewise.
14321 (vrsqrteq_f64): Likewise.
14323 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14325 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
14327 (fcvtzs): Likewise.
14328 (fcvtzu): Likewise.
14329 * config/aarch64/aarch64-simd.md
14330 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
14331 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
14332 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
14334 (vcvt_n_f32_u32): Likewise.
14335 (vcvt_n_s32_f32): Likewise.
14336 (vcvt_n_u32_f32): Likewise.
14337 (vcvtq_n_f32_s32): Likewise.
14338 (vcvtq_n_f32_u32): Likewise.
14339 (vcvtq_n_f64_s64): Likewise.
14340 (vcvtq_n_f64_u64): Likewise.
14341 (vcvtq_n_s32_f32): Likewise.
14342 (vcvtq_n_s64_f64): Likewise.
14343 (vcvtq_n_u32_f32): Likewise.
14344 (vcvtq_n_u64_f64): Likewise.
14345 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
14346 (VSDQ_SDI): Likewise.
14347 (fcvt_target): Support V4DI, V4SI and V2SI.
14348 (FCVT_TARGET): Likewise.
14350 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14352 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
14353 (TYPES_BINOP_SUS): Likewise.
14354 (aarch64_simd_builtin_data): Update include file name.
14355 (aarch64_builtins): Likewise.
14356 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
14357 for conversion between scalar float-point and fixed-point.
14359 (fcvtzs): Likewise.
14360 (fcvtzu): Likewise.
14361 * config/aarch64/aarch64.md
14362 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
14363 pattern for conversion between scalar float to fixed-pointer.
14364 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
14365 (UNSPEC_FCVTZS): New UNSPEC enumeration.
14366 (UNSPEC_FCVTZU): Likewise.
14367 (UNSPEC_SCVTF): Likewise.
14368 (UNSPEC_UCVTF): Likewise.
14369 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
14371 (vcvtd_n_f64_u64): Likewise.
14372 (vcvtd_n_s64_f64): Likewise.
14373 (vcvtd_n_u64_f64): Likewise.
14374 (vcvtd_n_f32_s32): Likewise.
14375 (vcvts_n_f32_u32): Likewise.
14376 (vcvtd_n_s32_f32): Likewise.
14377 (vcvts_n_u32_f32): Likewise.
14378 * config/aarch64/iterators.md (fcvt_target): Support integer to float
14380 (FCVT_TARGET): Likewise.
14381 (FCVT_FIXED2F): New iterator.
14382 (FCVT_F2FIXED): Likewise.
14383 (fcvt_fixed_insn): New define_int_attr.
14385 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14387 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
14388 some statements was removed.
14390 2016-06-08 Alan Hayward <alan.hayward@arm.com>
14392 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
14393 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
14394 (vect_can_advance_ivs_p): likewise.
14395 (vect_update_ivs_after_vectorizer): likewise.
14396 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
14397 (vect_analyze_scalar_cycles_1): likewise.
14398 (vect_analyze_loop_operations): likewise.
14399 (report_vect_op): likewise.
14400 (vect_is_slp_reduction): likewise.
14401 (vect_is_simple_reduction): likewise.
14402 (get_initial_def_for_induction): likewise.
14403 (vect_transform_loop): likewise.
14404 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
14405 (vect_recog_sad_pattern): likewise.
14406 (vect_recog_widen_sum_pattern): likewise.
14407 (vect_recog_widening_pattern): likewise.
14408 (vect_recog_divmod_pattern): likewise.
14409 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
14410 (vect_analyze_slp_instance): likewise.
14411 (vect_transform_slp_perm_load): likewise.
14412 (vect_schedule_slp_instance): likewise.
14414 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14416 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
14417 (return_prediction): PRED_CONST_RETURN predict return as not taken.
14418 * predict.def (PRED_CONTINUE): Change hitrate 50->67
14419 (PRED_LOOP_BRANCH): Document predictor as broken.
14420 (PRED_LOOP_EXIT): Change hitrate 91->92.
14421 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
14422 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
14423 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
14424 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
14425 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
14426 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
14427 (PRED_CALL): Chane hitrate 71->67.
14428 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
14429 (PRED_GOTO): Document as unused right now.
14430 (PRED_CONST_RETURN): Change hitrate 67->69
14431 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
14432 (PRED_NULL_RETURN): Change hitrate 91->90.
14433 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
14434 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
14435 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
14437 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
14439 * config/rs6000/altivec.h: Add __builtin_vec_mul.
14440 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
14441 special case Altivec builtin.
14442 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
14443 VSX_BUILTIN_VEC_MUL (replaced with special case code).
14444 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14445 code for ALTIVEC_BUILTIN_VEC_MUL.
14446 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
14447 for __builtin_vec_mul.
14449 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
14451 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
14454 2016-06-07 David Malcolm <dmalcolm@redhat.com>
14456 * spellcheck.c (selftest::test_find_closest_string): New function.
14457 (spellcheck_c_tests): Call the above.
14459 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14461 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
14463 2016-06-07 Jakub Jelinek <jakub@redhat.com>
14465 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
14466 Yv=Yv,C alternatives.
14468 2016-06-07 Richard Biener <rguenther@suse.de>
14471 * common.opt (ffast-math): Make Optimization.
14473 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
14474 Prachi Godbole <prachi.godbole@imgtec.com>
14476 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
14477 `fabs' and `fneg' type attributes.
14478 (p5600_fpu_fabs): Add `fmove' to the comment.
14480 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14482 * gimple.c: Include builtins.h
14483 (gimple_inexpensive_call_p): New function.
14484 * gimple.h (gimple_inexpensive_call_p): Declare.
14485 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
14486 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
14489 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
14491 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
14492 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
14493 warning_at_rich_loc, warning_n, pedwarn, permerror,
14494 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
14495 sorry, fatal_error, internal_error, internal_error_no_backtrace):
14498 2016-06-07 Richard Biener <rguenther@suse.de>
14500 PR tree-optimization/71428
14501 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
14502 BIT_FIELD_REF op vs. load.
14504 2016-06-07 Richard Biener <rguenther@suse.de>
14506 PR middle-end/71423
14507 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
14510 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14512 * config/pa/pa.md (call): Generate indirect long calls to non-local
14513 functions on TARGET_64BIT.
14514 (call_value): Likewise.
14516 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14518 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
14519 pattern and subsequent splitters.
14520 (call_val_reg_64bit_post_reload): Likewise.
14522 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14524 PR middle-end/71408
14525 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
14526 propagate_op_to_single_use.
14528 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14530 PR middle-end/71281
14531 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
14533 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
14535 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
14536 (enum x86_dirflag_state): New enum.
14537 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
14538 (machine_function): Remove needs_cld.
14539 (ix86_current_function_needs_cld): Remove.
14540 * config/i386/i386.c (ix86_set_func_type): Set
14541 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
14542 (ix86_expand_prologue): Do not emit CLD here.
14543 (ix86_dirflag_mode_needed): New function.
14544 (ix86_dirflag_mode_entry): Ditto.
14545 (ix86_mode_needed): Handle X86_DIRFLAG entity.
14546 (ix86_mode_after): Ditto.
14547 (ix86_mode_entry): Ditto.
14548 (ix86_mode_exit): Ditto.
14549 (ix86_emit_mode_set): Ditto.
14550 * config/i386/i386.md (strmov_singleop): Set
14551 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
14552 Do not set ix86_current_function_needs_cld.
14554 (strset_singleop): Ditto.
14556 (cmpstrnqi_nz_1): Ditto.
14557 (cmpstrnqi_1): Ditto.
14558 (strlenqi_1): Ditto.
14560 2016-06-06 Jakub Jelinek <jakub@redhat.com>
14562 PR tree-optimization/71259
14563 * tree-vect-slp.c (vect_get_constant_vectors): For
14564 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
14565 one for constant op, and use COND_EXPR for non-constant.
14567 2016-06-06 David Malcolm <dmalcolm@redhat.com>
14569 * Makefile.in (OBJS): Add function-tests.o,
14570 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
14571 selftest-run-tests.o.
14572 (OBJS-libcommon): Add selftest.o.
14573 (OBJS-libcommon-target): Add selftest.o.
14574 (all.internal): Add "selftest".
14575 (all.cross): Likewise.
14576 (selftest): New phony target.
14577 (s-selftest): New target.
14578 (selftest-gdb): New phony target.
14579 (COLLECT2_OBJS): Add selftest.o.
14580 * bitmap.c: Include "selftest.h".
14581 (selftest::test_gc_alloc): New function.
14582 (selftest::test_set_range): New function.
14583 (selftest::test_clear_bit_in_middle): New function.
14584 (selftest::test_copying): New function.
14585 (selftest::test_bitmap_single_bit_set_p): New function.
14586 (selftest::bitmap_c_tests): New function.
14587 * common.opt (fself-test): New.
14588 * diagnostic-show-locus.c: Include "selftest.h".
14589 (make_range): New function.
14590 (test_range_contains_point_for_single_point): New function.
14591 (test_range_contains_point_for_single_line): New function.
14592 (test_range_contains_point_for_multiple_lines): New function.
14593 (assert_eq): New function.
14594 (test_get_line_width_without_trailing_whitespace): New function.
14595 (selftest::diagnostic_show_locus_c_tests): New function.
14596 * et-forest.c: Include "selftest.h".
14597 (selftest::test_single_node): New function.
14598 (selftest::test_simple_tree): New function.
14599 (selftest::test_disconnected_nodes): New function.
14600 (selftest::et_forest_c_tests): New function.
14601 * fold-const.c: Include "selftest.h".
14602 (selftest::assert_binop_folds_to_const): New function.
14603 (selftest::assert_binop_folds_to_nonlvalue): New function.
14604 (selftest::test_arithmetic_folding): New function.
14605 (selftest::fold_const_c_tests): New function.
14606 * function-tests.c: New file.
14607 * gimple.c: Include "selftest.h".
14608 Include "gimple-pretty-print.h".
14609 (selftest::verify_gimple_pp): New function.
14610 (selftest::test_assign_single): New function.
14611 (selftest::test_assign_binop): New function.
14612 (selftest::test_nop_stmt): New function.
14613 (selftest::test_return_stmt): New function.
14614 (selftest::test_return_without_value): New function.
14615 (selftest::gimple_c_tests): New function.
14616 * hash-map-tests.c: New file.
14617 * hash-set-tests.c: New file.
14618 * input.c: Include "selftest.h".
14619 (selftest::assert_loceq): New function.
14620 (selftest::test_accessing_ordinary_linemaps): New function.
14621 (selftest::test_unknown_location): New function.
14622 (selftest::test_builtins): New function.
14623 (selftest::test_reading_source_line): New function.
14624 (selftest::input_c_tests): New function.
14625 * rtl-tests.c: New file.
14626 * selftest-run-tests.c: New file.
14627 * selftest.c: New file.
14628 * selftest.h: New file.
14629 * spellcheck.c: Include "selftest.h".
14630 (selftest::levenshtein_distance_unit_test_oneway): New function,
14631 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
14632 (selftest::levenshtein_distance_unit_test): Likewise.
14633 (selftest::spellcheck_c_tests): Likewise.
14634 * toplev.c: Include selftest.h.
14635 (toplev::run_self_tests): New.
14636 (toplev::main): Handle -fself-test.
14637 * toplev.h (toplev::run_self_tests): New.
14638 * tree.c: Include "selftest.h".
14639 (selftest::test_integer_constants): New function.
14640 (selftest::test_identifiers): New function.
14641 (selftest::test_labels): New function.
14642 (selftest::tree_c_tests): New function.
14643 * tree-cfg.c: Include "selftest.h".
14644 (selftest::push_fndecl): New function.
14645 (selftest::test_linear_chain): New function.
14646 (selftest::test_diamond): New function.
14647 (selftest::test_fully_connected): New function.
14648 (selftest::tree_cfg_c_tests): New function.
14649 * vec.c: Include "selftest.h".
14650 (selftest::safe_push_range): New function.
14651 (selftest::test_quick_push): New function.
14652 (selftest::test_safe_push): New function.
14653 (selftest::test_truncate): New function.
14654 (selftest::test_safe_grow_cleared): New function.
14655 (selftest::test_pop): New function.
14656 (selftest::test_safe_insert): New function.
14657 (selftest::test_ordered_remove): New function.
14658 (selftest::test_unordered_remove): New function.
14659 (selftest::test_block_remove): New function.
14660 (selftest::reverse_cmp): New function.
14661 (selftest::test_qsort): New function.
14662 (selftest::vec_c_tests): New function.c.
14663 * wide-int.cc: Include selftest.h and wide-int-print.h.
14664 (selftest::from_int <wide_int>): New function.
14665 (selftest::from_int <offset_int>): New function.
14666 (selftest::from_int <widest_int>): New function.
14667 (selftest::assert_deceq): New function.
14668 (selftest::assert_hexeq): New function.
14669 (selftest::test_printing <VALUE_TYPE>): New function template.
14670 (selftest::test_ops <VALUE_TYPE>): New function template.
14671 (selftest::test_comparisons <VALUE_TYPE>): New function template.
14672 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
14674 (selftest::wide_int_cc_tests): New function.
14676 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14678 PR middle-end/37780
14679 * ifcvt.c (noce_try_ifelse_collapse): New function.
14681 (noce_process_if_block): Call noce_try_ifelse_collapse.
14682 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
14683 (simplify_ternary_operation): Use the above to simplify
14684 conditional CLZ/CTZ expressions.
14686 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14688 PR middle-end/37780
14689 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
14690 define_insn_and_split.
14692 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14694 PR middle-end/37780
14695 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
14697 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
14700 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
14701 Implicitly clobber memory for basic asm with non-empty assembler
14702 string. Use targetm.md_asm_adjust also here.
14703 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
14704 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
14705 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
14706 non-empty assembler string.
14707 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
14708 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
14709 (decode_asm_operands): Handle basic asm in PARALLEL block.
14710 (extract_insn): Handle basic asm in PARALLEL block.
14711 * doc/extend.texi: Mention new behavior of basic asm.
14712 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
14713 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
14714 branch_needs_nop_p): Use asm_noperands.
14716 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
14718 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
14719 Include the M7 SPARC DFA scheduler.
14720 New attribute v3pipe.
14721 Annotate insns with v3pipe where appropriate.
14722 Define cpu_feature vis4.
14723 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
14724 Add (V8QI "8") to vbits.
14725 Add insns {add,sub}v8qi3
14726 Add insns ss{add,sub}v8qi3
14727 Add insns us{add,sub}{v8qi,v4hi}3
14728 Add insns {min,max}{v8qi,v4hi,v2si}3
14729 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
14730 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
14731 * config/sparc/niagara4.md: Add a comment explaining the
14732 discrepancy between the documented latenty numbers and the
14734 * config/sparc/niagara7.md: New file.
14735 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
14736 supports SPARC5 and VIS 4.0 instructions.
14737 * configure: Regenerate.
14738 * config.in: Likewise.
14739 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
14740 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
14741 TARGET_CPU_niagara7.
14742 (ASM_CPU64_DEFAULT_SPEC): Likewise.
14743 (CPP_CPU_SPEC): Handle niagara7.
14744 (ASM_CPU_SPEC): Likewise.
14745 * config/sparc/sparc-opts.h (processor_type): Add
14746 PROCESSOR_NIAGARA7.
14747 (mvis4): New option.
14748 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
14749 (AS_NIAGARA7_FLAG): Define.
14750 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
14751 (CPP_CPU64_DEFAULT_SPEC): Likewise.
14752 (CPP_CPU_SPEC): Handle niagara7.
14753 (ASM_CPU_SPEC): Likewise.
14754 * config/sparc/sparc.c (niagara7_costs): Define.
14755 (sparc_option_override): Handle niagara7 and adjust cache-related
14756 parameters with better values for niagara cpus. Also support VIS4.
14757 (sparc32_initialize_trampoline): Likewise.
14758 (sparc_use_sched_lookahead): Likewise.
14759 (sparc_issue_rate): Likewise.
14760 (sparc_register_move_cost): Likewise.
14761 (dump_target_flag_bits): Support VIS4.
14762 (sparc_vis_init_builtins): Likewise.
14763 (sparc_builtins): Likewise.
14764 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
14766 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
14768 * config/sparc/sparc.opt (sparc_processor_type): New value
14770 * config/sparc/visintrin.h (__attribute__): Prototypes for the
14772 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
14774 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14777 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
14779 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
14781 2016-06-06 Richard Biener <rguenther@suse.de>
14783 PR tree-optimization/71398
14784 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
14787 2016-06-05 James Bowman <james.bowman@ftdichip.com>
14789 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
14790 ft32_expand_prolog, ft32_expand_epilogue):
14791 Handle pretend_args.
14792 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
14793 * config/ft32/ft32.md: Add pretend_returner.
14795 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
14798 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14799 Copy op1 RTX to avoid invalid sharing.
14800 (ix86_expand_vector_move_misalign): Ditto.
14802 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
14804 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
14807 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14809 * predict.c (predicted_by_loop_heuristics_p): New function.
14810 (predict_iv_comparison): Use it.
14811 (predict_loops): Walk from innermost loops; do not predict edges
14812 leaving multiple loops multiple times; implement
14813 PRED_LOOP_ITERATIONS_MAX heuristics.
14814 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
14816 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14818 * cfg.c (check_bb_profile): Do not report mismatched profiles when
14819 only edges out of BB are EH edges.
14821 2016-06-04 Martin Sebor <msebor@redhat.com>
14822 Marcin Baczyński <marbacz@gmail.com>
14825 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
14826 a void expression in a void function.
14828 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14830 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
14831 aux; dump reasons of decisions.
14832 (should_duplicate_loop_header_p): Likewise.
14833 (do_while_loop_p): Likewise.
14834 (ch_base::copy_headers): Dump asi num insns duplicated.
14836 2016-06-04 Jakub Jelinek <jakub@redhat.com>
14838 PR tree-optimization/71405
14839 * tree-ssa.c (execute_update_addresses_taken): For clobber with
14840 incompatible type, build a new clobber with the right type instead
14841 of building a VIEW_CONVERT_EXPR around it.
14843 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14845 PR tree-optimization/52171
14846 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
14847 by_pieces_ninsns instead of move_by_pieces_ninsns.
14849 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14851 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
14852 for reg+reg addressing mode.
14854 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14856 * rs6000-c.c (c/c-tree.h): Add #include.
14857 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
14858 in C++ when found in the base position of vec_ld or vec_st.
14860 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14862 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
14863 use of profile unless profile status is PROFILE_READ.
14864 * profile.c (compute_branch_probabilities): Set profile status
14865 only after reporting predictor hitrates.
14867 2016-06-03 Joseph Myers <joseph@codesourcery.com>
14871 * common.opt (ffp-int-builtin-inexact): New option.
14872 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14873 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
14874 (ceil@var{m}2): Document dependence on this option.
14875 * ipa-inline-transform.c (inline_call): Handle
14876 flag_fp_int_builtin_inexact.
14877 * ipa-inline.c (can_inline_edge_p): Likewise.
14878 * config/i386/i386.md (rintxf2): Do not test
14879 flag_unsafe_math_optimizations.
14880 (rint<mode>2_frndint): New define_insn.
14881 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
14882 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
14883 for 387 instead of extending and truncating.
14884 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
14885 !flag_trapping_math instead of flag_unsafe_math_optimizations.
14886 Change to frndint<mode>2_<rounding>.
14887 (frndintxf2_<rounding>_i387): Likewise. Change to
14888 frndint<mode>2_<rounding>_i387.
14889 (<rounding_insn>xf2): Likewise.
14890 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
14891 !flag_trapping_math instead of flag_unsafe_math_optimizations for
14892 x87. Test TARGET_ROUND || !flag_trapping_math ||
14893 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
14894 SSE. Use ROUND_NO_EXC in constant operand of
14895 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
14896 for 387 instead of extending and truncating.
14898 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
14899 Julia Koval <julia.koval@intel.com>
14911 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
14912 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
14913 all registers, except for function return registers if there are
14914 no caller-saved registers.
14915 (ix86_set_func_type): New function.
14916 (ix86_set_current_function): Call ix86_set_func_type to set
14917 no_caller_saved_registers and func_type. Call reinit_regs if
14918 caller-saved registers are changed. Don't allow MPX, SSE, MMX
14919 nor x87 instructions in interrupt handler nor function with
14920 no_caller_saved_registers attribute.
14921 (ix86_function_ok_for_sibcall): Return false if there are no
14922 caller-saved registers.
14923 (type_natural_mode): Don't warn ABI change for MMX in interrupt
14925 (ix86_function_arg_advance): Skip for callee in interrupt handler.
14926 (ix86_function_arg): Return special arguments in interrupt handler.
14927 (ix86_promote_function_mode): Promote pointer to word_mode only
14928 for normal functions.
14929 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
14931 (ix86_epilogue_uses): New function.
14932 (ix86_hard_regno_scratch_ok): Likewise.
14933 (ix86_save_reg): Preserve all registers in interrupt handler
14934 after reload. Preserve all registers, except for function return
14935 registers, if there are no caller-saved registers after reload.
14936 (find_drap_reg): Always use callee-saved register if there are
14937 no caller-saved registers.
14938 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
14939 for interrupt handler.
14940 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
14941 Emit cld instruction if stringops are used in interrupt handler
14942 or interrupt handler isn't a leaf function.
14943 (ix86_expand_epilogue): Generate interrupt return for interrupt
14944 handler and pop the 'ERROR_CODE' off the stack before interrupt
14945 return in exception handler.
14946 (ix86_expand_call): Disallow calling interrupt handler directly.
14947 If there are no caller-saved registers, mark all registers that
14948 are clobbered by the call which returns as clobbered.
14949 (ix86_handle_no_caller_saved_registers_attribute): New function.
14950 (ix86_handle_interrupt_attribute): Likewise.
14951 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
14953 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
14954 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
14955 accumulation in interrupt function if stack may be realigned to
14957 (EPILOGUE_USES): New.
14958 (function_type): New enum.
14959 (machine_function): Add func_type and no_caller_saved_registers.
14960 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
14961 (interrupt_return): New pattern.
14962 * doc/extend.texi: Document x86 interrupt and
14963 no_caller_saved_registers attributes.
14965 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
14967 PR tree-optimization/52171
14968 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
14969 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
14970 Look for constant strings. Move some code to emit_block_cmp_hints
14972 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
14973 * defaults.h (COMPARE_MAX_PIECES): New macro.
14974 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
14975 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
14976 (clear_by_pieces_1): Don't declare. Move definition before use.
14977 (can_do_by_pieces): New static function.
14978 (can_move_by_pieces): Use it. Return bool.
14979 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
14980 OP. All callers changed. Handle COMPARE_BY_PIECES.
14981 (class pieces_addr); New.
14982 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
14983 pieces_addr::adjust, pieces_addr::increment_address,
14984 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
14986 (class op_by_pieces_d): New.
14987 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
14989 (class move_by_pieces_d, class compare_by_pieces_d,
14990 class store_by_pieces_d): New subclasses of op_by_pieces_d.
14991 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
14992 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
14993 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
14994 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
14995 compare_by_pieces_d::finish_mode): New member functions.
14996 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
14998 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
14999 (emit_block_cmp_hints): New function.
15000 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
15001 use the newly defined classes.
15002 * expr.h (by_pieces_constfn): New typedef.
15003 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
15004 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
15005 (move_by_pieces_ninsns): Don't declare.
15006 (can_move_by_pieces): Change return value to bool.
15007 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
15008 (compare_by_pieces_branch_ratio): New hook.
15009 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
15010 (by_pieces_ninsns): Declare.
15011 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
15013 (default_compare_by_pieces_branch_ratio): New function.
15014 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
15015 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
15016 * doc/tm.texi: Regenerate.
15017 * tree-ssa-strlen.c: Include "builtins.h".
15018 (handle_builtin_memcmp): New static function.
15019 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
15020 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
15022 2016-06-03 Alan Hayward <alan.hayward@arm.com>
15024 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
15025 relevant stmts which are simple and invariant.
15026 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
15027 instead of simple and invariant
15029 2016-06-03 Alan Hayward <alan.hayward@arm.com>
15031 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
15032 (vectorizable_reduction): Check for new relevant state.
15033 (vectorizable_live_operation): vectorize live stmts using
15034 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
15035 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
15036 (vect_stmt_relevant_p): Check for stmts which are only used live.
15037 (process_use): Use of a stmt does not inherit it's live value.
15038 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
15039 (vect_analyze_stmt): Check for new relevant state.
15040 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
15041 outside the loop, but not inside it.
15043 2016-06-03 Alan Hayward <alan.hayward@arm.com>
15045 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
15046 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
15047 (vect_get_vec_def_for_operand): Split out code.
15049 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
15051 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
15053 2016-06-03 Alan Hayward <alan.hayward@arm.com>
15055 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
15057 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15059 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
15061 2016-06-03 Jakub Jelinek <jakub@redhat.com>
15063 PR middle-end/71387
15064 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
15065 to noreturn e->callee->decl that has void return type and void
15066 arguments, adjust gimple_call_fntype and remove lhs even if it had
15067 previously addressable type.
15069 2016-06-02 Jeff Law <law@redhat.com>
15071 PR tree-optimization/71328
15072 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
15073 error when checking for a jump back onto the copied path.
15075 2016-06-02 David Malcolm <dmalcolm@redhat.com>
15077 * config/microblaze/microblaze.c (get_branch_target): Add return
15078 NULL_RTX for the non-CALL_P case.
15079 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
15080 (insert_wic): Remove unused local "j".
15082 2016-06-02 Martin Liska <mliska@suse.cz>
15084 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
15086 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
15087 Julia Koval <julia.koval@intel.com>
15089 * function.c (assign_parm_setup_stack): Force source into a
15090 register if needed.
15091 * target.def (function_incoming_arg): Update documentation to
15092 allow arbitrary address computation based on hard register.
15093 * doc/tm.texi: Regenerated.
15095 2016-06-02 Martin Liska <mliska@suse.cz>
15097 * predict.c (combine_predictions_for_bb): Fix first match in
15098 cases where a first predictor contains more than one occurence
15099 in list of predictors. Take the best value in such case.
15101 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15103 PR rtl-optimization/71295
15104 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
15105 offset would go over the size of the inner mode reject it.
15107 2016-06-02 Jakub Jelinek <jakub@redhat.com>
15109 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
15110 x=x,x and v=v,m instead of x=x,m.
15112 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
15113 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
15114 alternative to v=rm,C.
15116 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
15117 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
15118 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
15119 instead of vex for the last two above mentioned alternatives.
15121 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15124 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
15126 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
15128 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
15130 2016-06-01 David Malcolm <dmalcolm@redhat.com>
15132 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
15133 from int to unsigned.
15135 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
15137 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
15138 alternatives, eliminating preferred register class. Add support
15139 for the MTVSRDD instruction in ISA 3.0.
15140 (vsx_splat_v4si_internal): Use splat_input_operand instead of
15141 reg_or_indexed_operand.
15142 (vsx_splat_v4sf_internal): Likewise.
15144 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
15147 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
15148 for loading up all 0's or all 1's.
15150 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
15152 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
15154 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
15156 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
15158 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
15159 * gcc.c (set_source_date_epoch_envvar): New function, sets
15160 the SOURCE_DATE_EPOCH environment variable to the current time.
15162 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
15164 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
15165 the factor for live Phi nodes.
15167 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
15169 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
15170 * tree-parloops.c (parallelize_loops): likewise.
15171 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
15172 tree_unswitch_outer_loop): likewise.
15174 2016-06-01 Jakub Jelinek <jakub@redhat.com>
15176 PR middle-end/71371
15177 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
15178 around creation of the temporary.
15180 2016-06-01 Richard Biener <rguenther@suse.de>
15182 PR tree-optimization/71366
15183 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
15184 (unloop_loops): Move removing edges here ...
15185 (try_unroll_loop_completely): ... from here.
15186 (try_peel_loop): ... and here.
15187 (tree_unroll_loops_completely_1): Track parent loops via
15188 bitmap of header BBs.
15189 (tree_unroll_loops_completely): Adjust for that.
15191 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15193 * config/rs6000/altivec.h (vec_slv): New macro.
15194 (vec_srv): New macro.
15195 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
15196 (UNSPEC_VSRV): New value.
15199 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
15200 (vsrv): New builtin definition.
15201 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
15202 define argument types for new builtin.
15203 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
15205 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
15208 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
15209 Jocelyn Mayer <l_indien@magic.fr>
15212 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
15213 detect processor family for signature_CENTAUR_ebx.
15214 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
15215 signature_CENTAUR_ebx.
15216 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
15217 <default>: Pass x86-64 for has_longmode.
15219 2016-06-01 Nathan Sidwell <nathan@acm.org>
15221 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
15224 2016-06-01 Richard Biener <rguenther@suse.de>
15226 PR tree-optimization/71261
15227 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
15228 of stmts successfully put in the bool pattern. Remove
15229 single-use restriction.
15230 (adjust_bool_pattern_cast): Add cast at the use site via the
15231 pattern def sequence.
15232 (adjust_bool_pattern): Remove recursion, maintain a hash-map
15233 of patterned defs. Use the pattern def seqence instead of
15234 multiple independent patterns.
15235 (sort_after_uid): New qsort compare function.
15236 (adjust_bool_stmts): New function to process stmts in the bool
15237 pattern in IL order.
15238 (vect_recog_bool_pattern): Adjust.
15239 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
15240 (ifcvt_walk_pattern_tree): Likewise.
15241 (stmt_is_root_of_bool_pattern): Likewise.
15242 (ifcvt_repair_bool_pattern): Likewise.
15243 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
15245 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
15247 * loop-unroll.c (decide_unroll_constant_iterations,
15248 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
15249 likely upper bounds.
15250 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
15252 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
15254 * tree-core.h (enum omp_clause_code): Remove
15255 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
15257 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15259 * config/arm/sync.md (arm_store_exclusive<mode>):
15260 Use 'H' output modifier on operands[2] rather than creating a new
15261 entry in out-of-bounds memory of the operands array.
15262 (arm_store_release_exclusivedi): Likewise.
15264 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15266 * config/arm/arm.c (arm_fusion_enabled_p): New function.
15267 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
15268 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
15269 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15271 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
15273 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
15274 into account live statements for mask producers.
15276 2016-06-01 Richard Biener <rguenther@suse.de>
15278 PR tree-optimization/71311
15279 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
15280 restrict to non-INTEGER_CST @0.
15282 2016-06-01 Richard Biener <rguenther@suse.de>
15284 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
15285 (relational patterns): Use :c to avoid pattern duplications.
15287 2016-06-01 Richard Biener <rguenther@suse.de>
15289 * genmatch.c (comparison_code_p): New predicate.
15290 (swap_tree_comparison): New function.
15291 (commutate): Add for_vec parameter to append new for entries.
15292 Support commutating relational operators by swapping it alongside
15294 (lower_commutative): Adjust.
15295 (dt_simplify::gen): Do not pass artificial operators to gen
15297 (decision_tree::gen): Do not add artificial operators as parameters.
15298 (parser::parse_expr): Verify operator commutativity when :c is
15299 applied. Allow :C to override this.
15300 * match.pd: Adjust patterns to use :C instead of :c where required.
15302 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
15304 PR tree-optimization/71077
15305 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
15306 the combining step, use boolean_false_node and boolean_true_node
15307 as the designated false/true return values.
15309 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15311 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
15312 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
15313 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
15316 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15318 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
15319 of flags impliying the register renaming.
15320 * toplev.c (process_options): Do not imply flag_rename_registers with
15323 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15325 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
15326 default implementation.
15328 2016-05-31 Nathan Sidwell <nathan@acm.org>
15330 * dwarf2out.c (cur_line_info_table): Add GTY marker.
15332 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15334 * config/sh/constraints.md (b): Remove constraint.
15335 * config/sh/predicates.md (arith_reg_operand): Remove
15337 * config/sh/sh-modes.def (PDI): Remove.
15338 * config/sh/sh.c (sh_target_reg_class,
15339 sh_optimize_target_register_callee_saved): Remove functions.
15340 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
15341 (sh_expand_epilogue): Update comment.
15342 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
15343 sh_secondary_reload): Remove TARGET_REGS related code.
15344 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
15345 TARGET_REGISTER_P): Remove macros.
15346 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
15347 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
15348 TR1_REG, TR2_REG): Remove constants.
15349 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
15351 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15353 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
15354 define_expand patterns.
15355 (adddi3_compact): Rename to adddi3.
15356 (subdi3_compact): Rename to subdi3.
15357 (*negdi2): Rename to negdi2.
15358 (*abs<mode>2): Rename to abs<mode>2.
15360 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15362 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
15363 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
15364 (atomic_sub_fetchsi): ... this new pattern.
15365 (mvtc): Add CC_REG clobber.
15367 2016-05-31 Marek Polacek <polacek@redhat.com>
15369 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
15371 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15373 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
15374 aarch64_fusion_enabled_p to check for fusion capabilities.
15376 2016-05-31 Richard Biener <rguenther@suse.de>
15378 PR tree-optimization/71352
15379 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
15380 minus one and a negate.
15382 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15384 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
15385 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
15387 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
15388 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
15389 Remove use of aarch64_simd_attr_length_move, set length attribute
15391 (*aarch64_be_movoi): Likewise.
15392 (*aarch64_be_movci): Likewise.
15393 (*aarch64_be_movxi): Likewise.
15395 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15397 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
15398 It no longer does that.
15399 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
15401 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
15403 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
15404 attribute __unused__.
15406 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
15408 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
15409 * config/arm/arm.c (arm_arch_thumb1): Define.
15410 (arm_option_override): Initialize arm_arch_thumb1.
15411 * config/arm/arm.h (arm_arch_thumb1): Declare.
15412 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
15413 support Thumb-1 ISA.
15415 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
15418 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
15419 `Yv' for scalar operand.
15421 2016-05-31 Tom de Vries <tom@codesourcery.com>
15423 PR tree-optimization/69068
15424 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
15425 phis with more than two args.
15427 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
15429 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
15430 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
15433 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
15435 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
15437 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
15439 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
15440 cpu_32, cpu_64, tune_32 and tune_64.
15441 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
15443 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
15445 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
15447 2016-05-30 Andi Kleen <ak@linux.intel.com>
15449 * auto-profile.c (read_profile): Replace asserts with errors
15450 when file does not exist.
15451 * gcov-io.c (gcov_read_words): Dito.
15453 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15455 * tree-cfg.c (print_loop): Print likely upper bounds.
15457 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15459 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
15460 * opts.c (default_options): Enable peel loops at -O3.
15461 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
15462 (try_peel_loop): Do not re-peel already peeled loops;
15463 use likely upper bounds; fix profile updating.
15464 (pass_complete_unroll::execute): Initialize peeled_loops.
15466 2016-05-30 Martin Liska <mliska@suse.cz>
15468 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
15469 computed costs by frequency of BB they belong to.
15470 (get_scaled_computation_cost_at): New function.
15472 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
15473 Marc Glisse <marc.glisse@inria.fr>
15475 PR tree-optimization/71289
15476 * match.pd (-1 / B < A, A > -1 / B): New transformations.
15478 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15480 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
15482 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15484 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
15485 for peeled copies; avoid underflow when updating estimates; correctly
15486 scale loop profile.
15488 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15490 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
15491 r236875. Corrected oe3 to oe2 as obvious.
15493 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15495 PR middle-end/71269
15496 PR middle-end/71252
15497 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
15498 that inserted stmt will not dominate stmts that defines its operand.
15499 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
15500 (rewrite_expr_tree_parallel): Likewise.
15502 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15504 PR middle-end/71252
15505 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
15506 all fields including stmt_to_insert are swapped.
15508 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15510 * predict.h (force_edge_cold): Declare.
15511 * predict.c (force_edge_cold): New function.
15512 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
15514 (canonicalize_loop_induction_variables): Fix formating.
15516 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
15518 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
15519 (visium_expand_copysign): Use gen_int_mode directly.
15520 (visium_compute_frame_size): Minor tweaks.
15522 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15524 * tree-vect-loop.c (vect_analyze_loop_2): Use
15525 likely_max_stmt_executions_int.
15527 2016-05-30 Tom de Vries <tom@codesourcery.com>
15529 PR tree-optimization/69067
15530 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
15532 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
15535 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
15536 New peepholes to remove unneeded fild/fistp pairs.
15537 (define_peephole2 atomic_loaddi_fpu): Ditto.
15539 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15541 * predict.c (maybe_hot_frequency_p): Avoid division.
15543 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
15545 * doc/install.texi: Use https for shop.fsf.org.
15547 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15549 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
15550 likely_max_stmt_executions_int.
15552 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15554 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
15555 likely_max_stmt_executions_int.
15557 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15559 * profile.c (compute_branch_probabilities): Do not report hitrates
15561 (branch_prob): Report hitrates here.
15562 * predict.c (gimple_predict_edge): Do not assert profile status;
15563 fix formatting issues.
15565 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15567 * predict.c (edge_predicted_by_p): New function.
15568 (predict_paths_for_bb): Do not put multiple predictions of the same type
15571 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15573 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
15576 2016-05-28 Alan Modra <amodra@gmail.com>
15578 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
15580 2016-05-28 Alan Modra <amodra@gmail.com>
15582 PR rtl-optimization/71275
15583 * ira.c (ira): Free dominance info.
15585 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
15587 * doc/sourcebuild.texi: New address for upstream Go repository.
15589 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15591 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
15592 (TARGET_ARM_V7M): Likewise.
15594 2016-05-26 Jeff Law <law@redhat.com>
15596 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
15597 (thread_across_edge): Remove calls to find_jump_threads_backwards.
15598 * passes.def: Add jump threading passes before DOM/VRP.
15599 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
15600 argument to a basic block from an edge. Remove tests which are
15602 (pass_data_thread_jumps, class pass_thread_jumps): New.
15603 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
15604 (make_pass_thread_jumps): Likewise.
15605 * tree-pass.h (make_pass_thread_jumps): Declare.
15607 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
15609 * config/visium/visium-protos.h (split_double_move): Rename into...
15610 (visium_split_double_move): ...this.
15611 (visium_split_double_add): Declare.
15612 * config/visium/visium.c (split_double_move): Rename into...
15613 (visium_split_double_move): ...this.
15614 (visium_split_double_add): New function.
15615 (visium_expand_copysign): Renumber operands for consistency.
15616 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
15617 (DFmode move splitter): Likewise.
15618 (*addi3_insn): Split by means of visium_split_double_add.
15619 (*adddi3_insn_flags): Delete.
15620 (*plus_plus_sltu<subst_arith>): New insn.
15621 (*subdi3_insn): Split by means of visium_split_double_add.
15622 (subdi3_insn_flags): Delete.
15623 (*minus_minus_sltu<subst_arith>): New insn.
15624 (*negdi2_insn): Split by means of visium_split_double_add.
15625 (*negdi2_insn_flags): Delete.
15627 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
15629 * configure.ac: Treat a --with-headers option without argument
15630 the same as the default (i.e. consult sys-include directory).
15631 * configure: Regenerate.
15633 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15635 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
15636 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
15638 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
15639 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15641 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15644 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
15645 tree-stdarg analysis results.
15646 (aarch64_setup_incoming_varargs): Likewise.
15648 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15650 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
15651 va_list_gpr_counter_field and va_list_fpr_counter_field.
15653 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
15656 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
15657 * config/aarch64/aarch64.c
15658 (aarch64_cannot_change_mode_class): Remove function.
15659 * config/aarch64/aarch64-protos.h
15660 (aarch64_cannot_change_mode_class): Remove.
15662 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15664 * cfgloop.c (record_niter_bound): Record likely upper bounds.
15665 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
15666 get_likely_max_loop_iterations_int): New.
15667 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
15668 any_likely_upper_bound.
15669 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
15671 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
15672 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
15674 (unroll_loop_constant_iterations): Likewise.
15675 (unroll_loop_runtime_iterations): Likewise.
15676 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
15677 * lto-streamer-out.c (output_cfg): Likewise.
15678 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
15680 (canonicalize_loop_induction_variables): Dump likely upper bounds.
15681 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
15682 (likely_max_loop_iterations): New.
15683 (likely_max_loop_iterations_int): New.
15684 (likely_max_stmt_executions): New.
15685 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
15686 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
15687 likely_max_stmt_executions): Declare.
15689 2016-05-27 Marek Polacek <polacek@redhat.com>
15691 PR middle-end/71308
15692 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
15694 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15696 * config/s390/s390.md (2x risbg splitters): Use
15697 reg_overlap_mentioned_p instead of rtx_equal_p.
15699 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15701 * combine.c (make_compound_operation): Take known zero bits into
15702 account when checking for possible zero_extend.
15704 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15706 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
15707 Use const_int_operand for operand 2 predicate. Simplify expand code
15710 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
15712 PR middle-end/71279
15713 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
15716 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15718 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
15719 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
15720 that returns CC_SESWPmode and CC_ZESWPmode.
15721 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
15723 (aarch64_rtx_costs): Likewise.
15725 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15727 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
15728 for ISA 3.0 min/max support.
15729 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
15730 conditional move support.
15731 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
15732 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
15734 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
15735 conditional moves where the comparison type is different from move
15737 (fp_minmax): New code iterator for smin/smax.
15738 (minmax): New code attributes for min/max.
15739 (SMINMAX): Likewise.
15740 (smax<mode>3): Combine min, max insns into one insn using the
15741 fp_minmax code iterator. Add support for ISA 3.0 min/max
15742 instructions that don't need -ffast-math.
15743 (s<minmax><mode>3): Likewise.
15744 (smax<mode>3_vsx): Likewise.
15745 (smin<mode>3): Likewise.
15746 (s<minmax><mode>3_vsx): Likewise.
15747 (smin<mode>3_vsx): Likewise.
15748 (pre-VSX min/max splitters): Likewise.
15749 (s<minmax><mode>3_fpr): Likewise.
15750 (movsfcc): Rewrite floating point conditional moves to combine
15751 SFmode/DFmode into a single insn.
15752 (mov<mode>cc): Likewise.
15753 (movdfcc): Likewise.
15754 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
15755 SFDF2 iterators to handle all combinations.
15756 (fseldfsf4): Likewise.
15757 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
15758 (fseldfdf4): Likewise.
15759 (fselsfdf4): Likewise.
15760 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
15761 comparison instructions that set a 0/-1 mask, and use it for
15762 floating point conditional move via XXSEL.
15763 (fpmask<mode>): Likewise.
15764 (xxsel<mode>): Likewise.
15765 * config/rs6000/predicates.md (min_max_operator): Delete, no
15767 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
15768 instructions that generate a 0/-1 mask for use with XXSEL.
15769 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
15770 say whether floating point min/max is available, either through
15771 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
15772 (TARGET_MINMAX_DF): Likewise.
15774 2016-05-27 Alan Modra <amodra@gmail.com>
15776 PR rtl-optimization/71275
15777 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
15778 for update_equiv_regs and combine_and_move_insns.
15780 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
15782 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
15783 if_then_else or cond RTXes to calculate attribute value.
15784 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
15785 <attr "length_immediate>: Ditto.
15786 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
15787 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
15788 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
15789 <attr "type">: Ditto.
15790 <attr "prefix_data16">: Ditto.
15791 <attr "prefix_extra">: Ditto.
15792 <attr "length_immediate">: Ditto.
15793 <attr "prefix">: Ditto.
15794 (vec_set<mode>_0) <attr "isa">: Ditto.
15795 <attr "prefix_extra">: Ditto.
15796 <attr "length_immediate">: Ditto.
15797 <attr "prefix">: Ditto.
15798 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
15799 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
15800 (sse2_storelpd) <attr "prefix_data16">: Ditto.
15801 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
15802 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
15803 <attr "length_immediate">: Ditto.
15804 <attr "prefix">: Ditto.
15805 (sse2_movsd) <attr "length_immediate">: Ditto.
15806 <attr "prefix">: Ditto.
15807 (vec_concatv2df) <attr "isa">: Ditto.
15808 <attr "prefix">: Ditto.
15809 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
15810 (*vec_extractv2di_1) <attr "isa">: Ditto.
15811 <attr "type">: Ditto.
15812 <attr "length_immediate">: Ditto.
15813 <attr "prefix_rex">: Ditto.
15814 <attr "prefix_extra">: Ditto.
15815 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
15816 <attr "prefix_extra">: Ditto.
15817 <attr "length_immediate">: Ditto.
15818 (vec_concatv2di) <attr "isa">: Ditto.
15819 <attr "prefix_extra">: Ditto.
15820 <attr "length_immediate">: Ditto.
15821 <attr "prefix">: Ditto.
15823 2016-05-26 Martin Liska <mliska@suse.cz>
15825 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
15827 (operator+): Likewise.
15828 (operator-): Likewise.
15829 (comp_cost::operator+=): Likewise.
15830 (comp_cost::operator-=): Likewise.
15831 (comp_cost::operator/=): Likewise.
15832 (comp_cost::operator*=): Likewise.
15833 (operator<): Likewise.
15834 (operator==): Likewise.
15835 (operator<=): Likewise.
15836 (new_cost): Remove.
15837 (infinite_cost_p): Likewise.
15838 (add_costs): Likewise.
15839 (sub_costs): Likewise.
15840 (compare_costs): Likewise.
15841 (set_group_iv_cost): Use the newly introduced functions.
15842 (get_address_cost): Likewise.
15843 (get_shiftadd_cost): Likewise.
15844 (force_expr_to_var_cost): Likewise.
15845 (split_address_cost): Likewise.
15846 (ptr_difference_cost): Likewise.
15847 (difference_cost): Likewise.
15848 (get_computation_cost_at): Likewise.
15849 (determine_group_iv_cost_generic): Likewise.
15850 (determine_group_iv_cost_address): Likewise.
15851 (determine_group_iv_cost_cond): Likewise.
15852 (autoinc_possible_for_pair): Likewise.
15853 (determine_group_iv_costs): Likewise.
15854 (cheaper_cost_pair): Likewise.
15855 (iv_ca_recount_cost): Likewise.
15856 (iv_ca_set_no_cp): Likewise.
15857 (iv_ca_set_cp): Likewise.
15858 (iv_ca_cost): Likewise.
15859 (iv_ca_new): Likewise.
15860 (iv_ca_dump): Likewise.
15861 (iv_ca_narrow): Likewise.
15862 (iv_ca_prune): Likewise.
15863 (iv_ca_replace): Likewise.
15864 (try_add_cand_for): Likewise.
15865 (try_improve_iv_set): Likewise.
15866 (find_optimal_iv_set): Likewise.
15868 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
15870 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
15871 that internal functions will clobber all caller-saved registers.
15873 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15875 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
15876 Return a better case_values_threshold when optimizing.
15878 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15880 * config/aarch64/aarch64-simd.md (aarch64_combinez):
15881 Add ? to integer variant.
15882 (aarch64_combinez_be): Likewise.
15884 2016-05-26 Jakub Jelinek <jakub@redhat.com>
15886 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15887 instead of x constraint.
15888 (vcvtps2ph256<mask_name>): Likewise.
15890 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
15891 alternative. Formatting fix.
15893 * config/i386/sse.md
15894 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
15896 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
15897 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
15898 maybe_evex prefix instead of vex.
15899 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
15900 EXT_REX_SSE_REG_P (op0) case in the splitter.
15902 2016-05-25 Jeff Law <law@redhat.com>
15904 PR tree-optimization/71272
15905 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
15906 Update comments. Add test for empty path.
15908 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15910 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
15911 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
15912 special case builtin.
15913 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15914 code for ALTIVEC_BUILTIN_VEC_CMPNE.
15915 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15916 for __builtin_vec_cmpne.
15918 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
15920 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
15921 redundant test and bail out if the type of the new operand is not
15922 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
15924 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15926 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
15927 (x_ix86_target_flags_explicit): Remove.
15928 * config/i386/i386.c (ix86_function_specific_save): Do not copy
15929 x_ix86_target_flags_explicit.
15930 (ix86_function_specific_restore): Ditto.
15932 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15933 H.J. Lu <hongjiu.lu@intel.com>
15936 * common/config/i386/i386-common.c
15937 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
15938 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
15939 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
15940 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
15941 (-mgeneral-regs-only): Add new option.
15942 * config/i386/i386.c (ix86_option_override_internal): Don't enable
15943 x87 instructions if only general registers are allowed.
15944 (ix86_target_string): Add ix86_flags argument. Handle additional
15945 flags options through ix86_flags argument. Update all callers.
15946 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
15948 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15950 PR rtl-optimization/66940
15951 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
15952 decrementing desired_val will not overflow before performing these
15955 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
15957 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
15958 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
15959 * config/i386/i386.c (enum ix86_builtins): Add
15960 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
15961 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
15962 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
15963 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
15964 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
15965 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
15966 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
15967 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
15968 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
15969 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
15970 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
15971 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
15972 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
15973 __builtin_ia32_cvtps2dq512_mask.
15974 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
15975 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
15976 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
15977 * config/i386/sse.md
15978 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
15980 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
15981 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
15983 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
15984 (avx512f_vec_pack_sfix_v8df): New define_expand.
15985 (avx512f_roundpd512): Rename to ...
15986 (avx512f_round<castmode>512): ... this. Change iterator.
15987 (avx512f_roundps512_sfix): New define_expand.
15988 (round<mode>2_sfix): Change iterator.
15990 2016-05-25 Nick Clifton <nickc@redhat.com>
15992 * config/msp430/msp430.c (msp430_attr): Produce an error if a
15993 static interrupt handler is detected.
15994 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
15995 default linker script.
15996 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
15997 the low part of a symbolic pointer.
15999 2016-05-25 Richard Biener <rguenther@suse.de>
16001 PR tree-optimization/71261
16002 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
16003 interesting stmt instead of immediate uses when looking
16004 for the use operand to replace.
16006 2016-05-25 Martin Liska <mliska@suse.cz>
16008 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
16010 2016-05-25 Richard Biener <rguenther@suse.de>
16012 PR tree-optimization/71264
16013 * tree-vect-stmts.c (vect_init_vector): Properly deal with
16016 2016-05-25 Martin Liska <mliska@suse.cz>
16018 PR tree-optimization/71239
16019 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
16020 if DECL_SIZE is NULL.
16022 2016-05-25 Richard Biener <rguenther@suse.de>
16024 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
16025 * tree-if-conv.c (pass_data_if_conversion): Use it.
16027 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16029 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
16030 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
16031 * varpool.c (varpool_node::get_availability): Likewise.
16033 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16035 * config/rs6000/altivec.md (VNEG iterator): New iterator for
16036 VNEGW/VNEGD instructions.
16037 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
16038 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
16039 support for ISA 3.0 VNEGW/VNEGD instructions.
16041 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
16043 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
16044 pointers inside OACC_DATA regions.
16045 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
16046 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
16047 (gimplify_adjust_omp_clauses): Fix typo in comment.
16049 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16051 * config/rs6000/altivec.md (VParity): New mode iterator for vector
16052 parity built-in functions.
16053 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
16055 (p9v_parity<mode>2): Likewise.
16056 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
16058 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
16059 (parity<mode>2): ISA 3.0 expander for vector parity.
16060 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
16062 (BU_P9_64BIT_MISC_0): Likewise.
16063 (BU_P9_MISC_0): Likewise.
16064 (BU_P9V_AV_1): Likewise.
16065 (BU_P9V_AV_2): Likewise.
16066 (BU_P9V_AV_3): Likewise.
16067 (BU_P9V_AV_P): Likewise.
16068 (BU_P9V_VSX_1): Likewise.
16069 (BU_P9V_OVERLOAD_1): Likewise.
16070 (BU_P9V_OVERLOAD_2): Likewise.
16071 (BU_P9V_OVERLOAD_3): Likewise.
16072 (VCTZB): Add vector count trailing zeros support.
16076 (VPRTYBD): Add vector parity support.
16077 (VPRTYBQ): Likewise.
16078 (VPRTYBW): Likewise.
16079 (VCTZ): Add overloaded vector count trailing zeros support.
16080 (VPRTYB): Add overloaded vector parity support.
16081 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16082 overloaded vector count trailing zeros and parity instructions.
16083 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
16084 vector parity support.
16085 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
16086 trailing zeros support.
16087 (vec_cntlz): Likewise.
16088 (vec_vctzb): Likewise.
16089 (vec_vctzd): Likewise.
16090 (vec_vctzh): Likewise.
16091 (vec_vctzw): Likewise.
16092 (vec_vprtyb): Add ISA 3.0 vector parity support.
16093 (vec_vprtybd): Likewise.
16094 (vec_vprtybw): Likewise.
16095 (vec_vprtybq): Likewise.
16096 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16097 the ISA 3.0 vector count trailing zeros and vector parity built-in
16100 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16102 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
16103 when there is stmt_to_insert.
16105 2016-05-24 Martin Sebor <msebor@redhat.com>
16108 * tree.h (complete_or_array_type_p): New inline function.
16110 2016-05-24 Jakub Jelinek <jakub@redhat.com>
16112 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
16113 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
16114 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
16116 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
16117 Limit 1st alternative to noavx isa, split 2nd alternative into one
16118 noavx and one avx alternative, use *x and Bm in the former and
16119 x and m in the latter.
16121 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
16122 of sse4 for the first alternative, drop %v from the template
16123 and d operand modifier. Split second alternative into one sse4_noavx
16124 and one avx alternative, use *x instead of *v in the former and v
16125 instead of *v in the latter.
16126 (*sse4_1_extractps): Use noavx isa instead of * for the first
16127 alternative, drop %v from the template. Split second alternative into
16128 one noavx and one avx alternative, use *x instead of *v in the
16129 former and v instead of *v in the latter.
16130 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
16131 with noavx and the last one with avx.
16132 (sse4_1_phminposuw): Guard first alternative with noavx isa,
16133 split the second one into one noavx and one avx alternative,
16134 use *x and Bm in the former and x and m in the latter one.
16135 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
16138 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
16139 first two alternatives to noavx, use *x instead of *v in the second
16140 one, add avx alternative without *.
16141 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
16142 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
16143 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
16145 2016-05-24 Jeff Law <law@redhat.com>
16147 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
16148 New function, extracted from...
16149 (fsm_find_control_statement_thread_paths): Here. Use the new function.
16150 Allow simple copies and constant initializations in the SSA chain.
16152 2016-05-24 Marek Polacek <polacek@redhat.com>
16155 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
16158 2016-05-24 Jakub Jelinek <jakub@redhat.com>
16161 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
16162 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
16163 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
16164 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
16165 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
16167 2016-05-24 Richard Biener <rguenther@suse.de>
16169 PR tree-optimization/71240
16170 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
16173 2016-05-24 Richard Biener <rguenther@suse.de>
16175 PR tree-optimization/71230
16176 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
16178 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16180 * tree-vectorizer.h (vectorizable_comparison): Delete.
16181 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
16182 PURE_SLP_STMT check.
16183 * tree-vect-stmts.c (vectorizable_call): Likewise.
16184 (vectorizable_simd_clone_call): Likewise.
16185 (vectorizable_conversion): Likewise.
16186 (vectorizable_assignment): Likewise.
16187 (vectorizable_shift): Likewise.
16188 (vectorizable_operation): Likewise.
16189 (vectorizable_load): Likewise.
16190 (vectorizable_condition): Likewise.
16191 (vectorizable_store): Likewise. Assert that we don't have
16193 (vectorizable_comparison): Make static. Remove redundant
16194 PURE_SLP_STMT check.
16195 (vect_transform_stmt): Assert that we always have an slp_node
16198 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16200 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
16201 operands[2] against 1 with comparison against CONST1_RTX.
16202 (<shift>di3_neon): Likewise.
16203 * config/arm/predicates.md (const0_operand): Replace with comparison
16204 against CONST0_RTX.
16206 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16208 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
16209 operands[2] against 1 with comparison against CONST1_RTX.
16210 (ashrdi3): Likewise.
16211 (lshrdi3): Likewise.
16212 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
16214 (ashrsi3): Likewise.
16215 (lshrsi3): Likewise.
16216 (rotrsi3): Likewise.
16217 (define_split above *compareqi_eq0): Likewise.
16218 (define_split above "prologue"): Likewise.
16219 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
16220 * config/arm/predicates.md (shift_operator): Likewise.
16221 (shift_nomul_operator): Likewise.
16222 (sat_shift_operator): Likewise.
16223 (thumb1_cmp_operand): Likewise.
16224 (const_neon_scalar_shift_amount_operand): Replace manual range
16225 check with IN_RANGE.
16226 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
16227 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
16229 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16231 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
16232 with HOST_WIDE_INT_1.
16234 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
16235 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
16236 (arm_canonicalize_comparison): Likewise.
16237 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
16239 (thumb1_size_rtx_costs): Likewise.
16240 (vfp_const_double_index): Replace cast of 1 to unsigned
16241 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16242 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
16244 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
16245 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16246 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
16247 HOST_WIDE_INT with HOST_WIDE_INT_1.
16249 2016-05-24 Marek Polacek <polacek@redhat.com>
16251 * tree-cfg.h (should_remove_lhs_p): New predicate.
16252 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16253 * gimplify.c (gimplify_modify_expr): Likewise.
16254 * tree-cfg.c (verify_gimple_call): Likewise.
16255 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16256 * gimple-fold.c: Include "tree-cfg.h".
16257 (gimple_fold_call): Use should_remove_lhs_p.
16259 2016-05-24 Richard Biener <rguenther@suse.de>
16261 PR tree-optimization/71253
16262 * cfganal.h (control_dependences): Make robust against edge
16264 (control_dependences::control_dependences): Remove edge_list argument.
16265 (control_dependences::get_edge): Remove.
16266 (control_dependences::get_edge_src): Add.
16267 (control_dependences::get_edge_dest): Likewise.
16268 (control_dependences::m_el): Make a vector of edge src/dest index.
16269 * cfganal.c (control_dependences::find_control_dependence): Adjust.
16270 (control_dependences::control_dependences): Likewise.
16271 (control_dependences::~control_dependence): Likewise.
16272 (control_dependences::get_edge): Remove.
16273 (control_dependences::get_edge_src): Add.
16274 (control_dependences::get_edge_dest): Likewise.
16275 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
16277 (perform_tree_ssa_dce): Adjust.
16278 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
16280 (pass_loop_distribution::execute): Adjust. Do loop destroying
16281 conditional on changed.
16283 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16286 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
16287 return. Reindent transformation comment and mention the ARM state
16290 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16292 PR middle-end/71252
16293 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
16294 after build_and_add_sum creates new use stmt.
16296 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16298 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
16299 load_lanes/grouped_load classification comes first. Don't check
16300 whether the vectorization factor is a multiple of the group size
16303 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16305 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
16306 GROUP_GAP for single-element interleaving.
16307 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
16310 2016-05-24 Richard Biener <rguenther@suse.de>
16312 PR middle-end/70434
16314 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
16315 bases which are accessed with non-invariant indices.
16316 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
16317 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
16319 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16321 PR middle-end/71170
16322 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
16323 (add_to_ops_vec): Add stmt_to_insert.
16324 (add_repeat_to_ops_vec): Init stmt_to_insert.
16325 (insert_stmt_before_use): New.
16326 (transform_add_to_multiply): Remove mult_stmt insertion and add it
16328 (get_ops): Init stmt_to_insert.
16329 (maybe_optimize_range_tests): Likewise.
16330 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
16331 (rewrite_expr_tree_parallel): Likewise.
16332 (reassociate_bb): Likewise.
16334 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16337 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
16338 ISA 3.0 xxperm fusion alternative.
16339 (altivec_vperm_v8hiv16qi): Likewise.
16340 (altivec_vperm_<mode>_uns_internal): Likewise.
16341 (vperm_v8hiv4si): Likewise.
16342 (vperm_v16qiv8hi): Likewise.
16344 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16345 Kelvin Nilsen <kelvin@gcc.gnu.org>
16347 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
16348 vpermr/xxpermr on ISA 3.0.
16349 (altivec_expand_vec_perm_le): Likewise.
16350 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
16351 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
16354 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
16356 * config/i386/i386.h (IS_STACK_MODE): Enable for
16357 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
16358 SSE_FLOAT_MODE_P macros.
16359 * config/i386/i386.c (ix86_preferred_reload_class): Use
16360 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
16361 Cleanup regclass processing for CONST_DOUBLE_P.
16362 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
16363 (ix86_rtx_costs): Remove redundant TARGET_80387 check
16364 with IS_STACK_MODE macro.
16365 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
16367 (*movdf_internal): Use IS_STACK_MODE macro.
16368 (*movsf_internal): Ditto.
16370 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
16372 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
16373 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
16375 2016-05-23 Jeff Law <law@redhat.com>
16377 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
16379 (fsm_find_control_statement_thread_paths): Call it.
16381 2016-05-23 Martin Jambor <mjambor@suse.cz>
16384 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
16385 from_global_constant if t is not NULL.
16387 2016-05-23 Marek Polacek <polacek@redhat.com>
16390 * common.opt (Wswitch-unreachable): New option.
16391 * doc/invoke.texi: Document -Wswitch-unreachable.
16392 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
16395 2016-05-23 Bin Cheng <bin.cheng@arm.com>
16397 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
16398 TMR_INDEX is non-NULL.
16400 2016-05-23 Richard Biener <rguenther@suse.de>
16402 PR tree-optimization/71230
16403 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
16404 (try_special_add_to_ops): ... here. Always test for single-use.
16406 2016-05-23 Martin Jambor <mjambor@suse.cz>
16408 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
16409 default block if a PHI node in the original one would be resized.
16411 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16413 PR tree-optimization/58135
16414 * tree-vect-slp.c: When group size is not multiple
16415 of vector size, allow splitting of store group at
16418 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
16420 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
16422 2016-05-22 Jakub Jelinek <jakub@redhat.com>
16424 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16425 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
16426 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
16429 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
16430 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
16431 v constraint instead of x and vinserti32x4 insn.
16433 * config/i386/sse.md (i128vldq): New mode iterator.
16434 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
16435 avx512dq and avx512vl alternatives.
16437 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
16438 constraint, use maybe_evex prefix instead of vex.
16439 (vec_dupv4sf): Use v constraint instead of x for output
16440 operand except for noavx alternative, use Yv constraint
16441 instead of x for input. Use maybe_evex prefix instead of vex.
16442 (*vec_dupv4si): Likewise.
16443 (*vec_dupv2di): Likewise.
16445 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16447 PR middle-end/40921
16448 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
16449 (linearize_expr_tree): Call try_special_add_to_ops.
16450 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
16452 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16454 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
16455 to computed stack_usage.
16457 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16460 * config/avr/avr.md (define_expand "mov<mode>"): If the source
16461 operand is subreg (symbol_ref) then move the symbol ref to register.
16463 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
16465 * tree.c (array_at_struct_end_p): Look through MEM_REF.
16467 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
16469 PR middle-end/71179
16470 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
16473 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16475 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
16476 ranges by calling get_single_symbol and tidy up. Look more closely
16477 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
16479 2016-05-20 Jeff Law <law@redhat.com>
16481 * bitmap.c (bitmap_find_bit): Remove useless test.
16483 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
16485 * function.c (thread_prologue_and_epilogue_insns): Commit the
16486 insertion of the epilogue.
16488 2016-05-20 Martin Jambor <mjambor@suse.cz>
16490 PR tree-optimization/70884
16491 * tree-sra.c (initialize_constant_pool_replacements): Do not check
16492 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
16493 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
16494 of constant pool data as a reason for scalarization.
16496 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16498 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
16499 for naked functions.
16500 (thumb1_expand_prologue): Likewise.
16502 2016-05-20 Nathan Sidwell <nathan@acm.org>
16504 * config/nvptx/nptx.c (nvptx_option_override): Only set
16505 flag_toplevel_reorder, if not explicitly specified. Set
16506 flag_no_common, unless explicitly specified.
16508 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16510 * calls.c (can_implement_as_sibling_call_p): Mark param
16511 reg_parm_stack_space with ATTRIBUTE_UNUSED.
16513 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
16515 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
16516 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
16517 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
16519 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
16520 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
16521 and CASE_CONST_ANY.
16523 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
16525 * config/nvptx/nvptx.md (sincossf3): New pattern.
16527 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16529 * calls.c (maybe_complain_about_tail_call): New function.
16530 (initialize_argument_information): Call
16531 maybe_complain_about_tail_call when clearing *may_tailcall.
16532 (can_implement_as_sibling_call_p): Call
16533 maybe_complain_about_tail_call when returning false.
16534 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
16535 ensure try_tail_call is set. Call maybe_complain_about_tail_call
16536 if tail-call optimization fails.
16537 * cfgexpand.c (expand_call_stmt): Initialize
16538 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
16539 * gimple-pretty-print.c (dump_gimple_call): Dump
16540 gimple_call_must_tail_p.
16541 * gimple.c (gimple_build_call_from_tree): Call
16542 gimple_call_set_must_tail with the value of
16543 CALL_EXPR_MUST_TAIL_CALL.
16544 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
16545 (gimple_call_set_must_tail): New function.
16546 (gimple_call_must_tail_p): New function.
16547 * print-tree.c (print_node): Update printing of TREE_STATIC
16548 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
16549 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
16550 trailing comment listing applicable flags.
16551 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
16553 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16555 * calls.c (expand_call): Move "Rest of purposes for tail call
16556 optimizations to fail" to...
16557 (can_implement_as_sibling_call_p): ...this new function, and
16558 split into multiple "if" statements.
16560 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16562 * cfgloop.h (expected_loop_iterations_unbounded,
16563 expected_loop_iterations): Unconstify.
16564 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
16565 profile with known upper bound; return 3 when profile is absent.
16566 (expected_loop_iterations): Update.
16568 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16570 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
16571 and get_max_loop_iterations_int.
16573 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16575 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
16576 realistic upper bounds here.
16578 2016-05-20 Jakub Jelinek <jakub@redhat.com>
16581 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
16582 calls if the LHS is variable length or has addressable type.
16583 If targets[0]->decl is a noreturn call with void return type and
16584 zero arguments, adjust fntype and remove lhs in that case.
16586 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
16588 PR tree-optimization/71079
16589 PR tree-optimization/71206
16590 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
16592 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16594 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
16595 (get_vec_alignment_for_array_decl): Likewise.
16596 (get_vec_alignment_for_record_decl): Likewise.
16597 (increase_alignment::execute): Move code to find alignment to
16598 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
16599 (type_align_map): New hash_map.
16601 2016-05-20 Richard Guenther <rguenther@suse.de>
16603 PR tree-optimization/29756
16604 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
16605 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
16606 * fold-const.c (operand_equal_p): Likewise.
16607 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
16608 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
16609 * tree-inline.c (estimate_operator_cost): Likewise.
16610 * tree-pretty-print.c (dump_generic_node): Likewise.
16611 * tree-ssa-operands.c (get_expr_operands): Likewise.
16612 * cfgexpand.c (expand_debug_expr): Likewise.
16613 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16614 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
16615 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
16616 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
16617 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
16618 (execute_update_addresses_taken): Do it.
16620 2016-05-20 Richard Biener <rguenther@suse.de>
16622 PR tree-optimization/71185
16623 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
16624 register operations.
16626 2016-05-20 Richard Biener <rguenther@suse.de>
16628 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
16629 gimple_seq_add_seq_without_update.
16630 (release_bb_predicate): Assert we have no operands to free.
16631 (if_convertible_loop_p_1): Calculate post dominators later.
16632 Do not free BB predicates here.
16633 (combine_blocks): Do not recompute BB predicates.
16634 (version_loop_for_if_conversion): Save BB predicates around
16637 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16639 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
16640 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
16641 code. Ignore sibcalls on EDGE_IGNORE edges.
16642 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
16643 on edges for sibcalls that run without prologue. The rest of the
16644 function is combined from...
16645 (fix_fake_fallthrough_edge): ... this, and ...
16646 (try_shrink_wrapping): ... a part of this. Remove the bb_with
16647 function argument, make it a local variable.
16649 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
16651 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
16652 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
16653 for 32-bit mode and SEH for 64-bit.
16654 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
16655 TARGET_64BIT_DEFAULT.
16657 2016-05-19 Ryan Burn <contact@rnburn.com>
16659 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
16660 * gengtype.c (open_base_files): Add cilk.h to ifiles.
16662 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
16664 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
16665 force pending loads from memory.
16667 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
16669 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
16670 (UNSPEC_DARN_32): New unspec constant.
16671 (UNSPEC_DARN_RAW): New unspec constant.
16672 (darn_32): New instruction.
16673 (darn_raw): New instruction.
16674 (darn): New instruction.
16675 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
16676 support and documentation for this macro.
16677 (BU_P9_MISC_1): New macro definition.
16678 (BU_P9_64BIT_MISC_0): New macro definition.
16679 (BU_P9_MISC_0): New macro definition.
16680 (darn_32): New builtin definition.
16681 (darn_raw): New builtin definition.
16682 (darn): New builtin definition.
16683 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
16684 RS6000_BUILTIN_0 directives to surround each occurrence of
16685 #include "rs6000-builtin.def".
16686 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
16687 RS6000_BTM_64BIT flags to the returned mask, depending on
16689 (def_builtin): Correct an error in the assignments made to the
16690 debugging variable attr_string.
16691 (rs6000_expand_builtin): Add support for no-operand built-in
16693 (builtin_function_type): Remove fatal_error assertion that is no
16695 (rs6000_common_init_builtins): Add support for no-operand built-in
16697 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
16699 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
16701 (RS6000_BTM_64BIT): New macro definition.
16702 * doc/extend.texi: Document __builtin_darn (void),
16703 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
16706 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
16708 * tree-vect-loop.c (vect_analyze_loop_2): Use also
16709 max_loop_iterations_int.
16711 2016-05-19 Marek Polacek <polacek@redhat.com>
16713 PR tree-optimization/71031
16714 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
16715 condition and adjust the code a bit.
16717 2016-05-19 Martin Liska <mliska@suse.cz>
16719 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
16720 auto_vec instead of vec.
16722 2016-05-19 Martin Liska <mliska@suse.cz>
16724 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
16726 2016-05-19 Martin Liska <mliska@suse.cz>
16728 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
16730 2016-05-19 Martin Liska <mliska@suse.cz>
16732 * ipa-pure-const.c (set_function_state): Remove an existing
16734 (remove_node_data): Do not free it as it's released
16735 in set_function_state.
16737 2016-05-19 Martin Liska <mliska@suse.cz>
16739 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
16742 2016-05-19 Martin Liska <mliska@suse.cz>
16744 * omp-simd-clone.c (simd_clone_adjust): Release vector.
16746 2016-05-19 Martin Liska <mliska@suse.cz>
16748 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
16749 an auto_vec instead of re-creating it.
16751 2016-05-19 Martin Liska <mliska@suse.cz>
16753 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
16754 auto_vec instead of vec.
16756 2016-05-19 Martin Liska <mliska@suse.cz>
16758 * lto-section-in.c (lto_get_section_data): Call
16759 lto_check_version with additional argument.
16760 * lto-streamer.c (lto_check_version): Add new argument.
16761 * lto-streamer.h (lto_check_version): Likewise.
16763 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16765 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
16766 Don't add cost of inner memory when handling sign-extended loads.
16768 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
16770 PR rtl-optimization/71148
16771 * cse.c (cse_main): Free dominance info.
16772 (rest_of_handle_cse): Don't free dominance info.
16773 (rest_of_handle_cse2): Likewise.
16774 (rest_of_handle_cse_after_global_opts): Likewise.
16776 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16779 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
16780 NULL_TREE early if NEON is not available. Remove now redundant check
16781 in ARM_CHECK_BUILTIN_MODE.
16783 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
16786 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
16787 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
16788 * doc/cpp.texi: Document new macros.
16790 2016-05-19 Bin Cheng <bin.cheng@arm.com>
16792 PR tree-optimization/69848
16793 * tree-vect-loop.c (vectorizable_reduction): Don't factor
16794 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
16796 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16798 * function.c (thread_prologue_and_epilogue_insn): Move the
16799 "goto epilogue_done" one block later.
16801 2016-05-19 Richard Biener <rguenther@suse.de>
16803 PR tree-optimization/70729
16804 * passes.def: Move LIM pass before PRE. Remove no longer
16805 required copyprop and move first DCE out of the loop pipeline.
16807 2016-05-18 David Malcolm <dmalcolm@redhat.com>
16810 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
16811 (OBJS-libcommon-target): ...here.
16812 * opts-common.c: Include spellcheck.h.
16813 (cmdline_handle_error): Build a vec of valid options and use it
16814 to suggest provide hints for misspelled arguments.
16816 2016-05-18 Jakub Jelinek <jakub@redhat.com>
16819 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
16820 lhs if it has TREE_ADDRESSABLE type.
16822 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
16825 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
16826 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
16828 2016-05-18 Martin Jambor <mjambor@suse.cz>
16831 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
16832 input for NOP_EXPR pass-through functions.
16833 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
16834 aggregate global constant VAR_DECLs in constant jump functions.
16836 2016-05-18 Martin Jambor <mjambor@suse.cz>
16839 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
16840 from TREE_READONLY parameters.
16842 2016-05-18 Martin Jambor <mjambor@suse.cz>
16845 * cgraph.h (cgraph_indirect_call_info): New field
16846 guaranteed_unmodified.
16847 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
16848 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16850 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
16851 pass the parameter value to ipa_find_agg_cst_for_param.
16852 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
16853 guaranteed_unmodified, store AA results there instead of bailing out
16855 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
16856 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
16857 (find_constructor_constant_at_offset): New function.
16858 (ipa_find_agg_cst_from_init): Likewise.
16859 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
16860 static initializers of contants, report back through a new paameter
16861 from_global_constant if that was the case.
16862 (try_make_edge_direct_simple_call): Also pass parameter value to
16863 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16865 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
16866 (ipa_read_indirect_edge_info): Likewise.
16867 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
16868 (ipa_load_from_parm_agg): Likewise.
16870 2016-05-18 Jiong Wang <jiong.wang@arm.com>
16872 PR rtl-optimization/71150
16873 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
16876 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16879 * config/rs6000/constraints.md (wE constraint): New constraint
16880 for a vector constant that can be loaded with XXSPLTIB.
16881 (wM constraint): New constraint for a vector constant of a 1's.
16882 (wS constraint): New constraint for a vector constant that can be
16883 loaded with XXSPLTIB and a vector sign extend instruction.
16884 * config/rs6000/predicates.md (xxspltib_constant_split): New
16885 predicates for wE/wS constraints.
16886 (xxspltib_constant_nosplit): Likewise.
16887 (easy_vector_constant): Add support for constants that can be
16888 loaded via XXSPLTIB.
16889 (all_ones_constant): New predicate for vector constant with all
16891 (splat_input_operand): Add support for ISA 3.0 word splat operations.
16892 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
16893 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
16894 instruction and possibly with a sign extension.
16895 (output_vec_const_move): Add support for XXSPLTIB. If we are
16896 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
16897 instead of XXLXOR/XXLORC.
16898 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
16900 (rs6000_legitimize_reload_address): Likewise.
16901 (rs6000_output_move_128bit): Use output_vec_const_move to emit
16903 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
16904 combine VSX_M and VSX_M2 into one iterator.
16905 (VSX_M2): Likewise.
16906 (VSINT_84): New iterators for loading constants with XXSPLTIB.
16907 (VSINT_842): Likewise.
16908 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
16909 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
16910 XXSPLTIB instruction.
16911 (xxspltib_<mode>_nosplit): Likewise.
16912 (xxspltib_<mode>_split): New insn to load up constants with
16913 XXSPLTIB and a sign extend instruction.
16914 (vsx_mov<mode>): Replace single move that handled all vector types
16915 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
16916 moves (when -mvsx-timode is in effect) into the main vector
16917 moves. Eliminate separate moves for <VSr> <VSa>, where the
16918 preferred register class (<VSr>) is listed first, and the
16919 secondary register class (<VSa>) is listed second with a '?' to
16920 discourage use. Prefer loading 0/-1 in any VSX register for ISA
16921 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
16922 that if the register was involved in a slow operation, the
16923 clear/set operation does not wait for the slow operation to
16924 finish. Adjust the length attributes for 32-bit mode. Use
16925 rs6000_output_move_128bit and drop the use of the string
16926 instructions for 32-bit movti when -mvsx-timode is in effect. Use
16927 spacing so that the alternatives and attributes don't generate
16928 long lines, and put things in columns, so that it is easier to
16929 match up the operands and attributes with the insn alternatives.
16930 (vsx_mov<mode>_64bit): Likewise.
16931 (vsx_mov<mode>_32bit): Likewise.
16932 (vsx_movti_64bit): Fold movti into normal vector moves.
16933 (vsx_movti_32bit): Likewise.
16934 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
16935 splat instructions.
16936 (vsx_splat_v4si_internal): Likewise.
16937 (vsx_splat_v4sf_internal): Likewise.
16938 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
16939 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
16940 extend vector elements.
16941 (vsx_sign_extend_hi_<mode>): Likewise.
16942 (vsx_sign_extend_si_v2di): Likewise.
16943 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
16945 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
16946 constraints. Add trailing period to wL documentation.
16948 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
16950 PR middle-end/71020
16951 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
16952 * tree-dfa.c (replace_abnormal_ssa_names): New function.
16953 * tree-call-cdce.c: Include tree-dfa.h.
16954 (can_guard_call_p): New function, extracted from...
16955 (can_use_internal_fn): ...here.
16956 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
16958 (shrink_wrap_one_built_in_call): Likewise.
16959 (use_internal_fn): Likewise.
16960 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
16961 and return void. Call replace_abnormal_ssa_names.
16962 (pass_call_cdce::execute): Check can_guard_call_p during the
16963 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
16964 will always change something.
16966 2016-05-18 Martin Jambor <mjambor@suse.cz>
16969 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
16970 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
16972 2016-05-18 Martin Jambor <mjambor@suse.cz>
16975 * ipa-inline.h (condition): New field size.
16976 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
16977 for comaprison and store it into the new condition.
16978 (evaluate_conditions_for_known_args): Use condition size to check
16979 access sizes for all but CHANGED conditions.
16980 (unmodified_parm_1): New parameter size_p, store access size into it.
16981 (unmodified_parm): Likewise.
16982 (unmodified_parm_or_parm_agg_item): Likewise.
16983 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
16984 (set_cond_stmt_execution_predicate): Extract access sizes and store
16985 them to conditions.
16986 (set_switch_stmt_execution_predicate): Likewise.
16987 (will_be_nonconstant_expr_predicate): Likewise.
16988 (will_be_nonconstant_predicate): Likewise.
16989 (inline_read_section): Stream condition size.
16990 (inline_write_summary): Likewise.
16992 2016-05-18 Richard Biener <rguenther@suse.de>
16994 * tree-ssa-loop-im.c (determine_max_movement): Properly add
16995 condition cost to PHI cost instead of total_cost.
16997 2016-05-18 Martin Liska <mliska@suse.cz>
17000 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
17003 2016-05-18 Richard Biener <rguenther@suse.de>
17005 * lto-streamer.h (LTO_major_version): Bump to 6.
17007 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
17009 * function.c (make_split_prologue_seq, make_prologue_seq,
17010 make_epilogue_seq): New functions, factored out from...
17011 (thread_prologue_and_epilogue_insns): Here.
17013 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
17015 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
17016 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
17017 of before. Add a comment.
17019 2016-05-18 Bin Cheng <bin.cheng@arm.com>
17021 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
17022 expression pointer, not pointer to the pointer.
17024 2016-05-18 Jakub Jelinek <jakub@redhat.com>
17026 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
17027 (avx2_pbroadcast<mode>): Add another alternative with v instead
17028 of x constraints in it, using <pbroadcast_evex_isa> isa.
17029 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
17031 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
17032 constraint x instead of v in second alternative, add avx512bw
17035 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
17036 constraint x instead of v in second alternative, add avx512bw
17039 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
17040 constraint x instead of v in second alternative, add avx512bw
17043 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
17044 avx512bw alternative.
17046 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
17048 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
17049 array to 128 chars.
17050 (define_insn "*andnottf3"): Ditto.
17051 (define_insn "*<code><mode>3"/any_logic): Ditto.
17052 (define_insn "*<code>tf3"/any_logic): Ditto.
17053 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
17054 operand to block AVX-512VL insn variant emit when it is not enabled.
17056 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
17058 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
17059 constraint fot SF mode.
17061 2016-05-18 Petr Murzin <petr.murzin@intel.com>
17062 Kirill Yukhin <kirill.yukhin@intel.com>
17064 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
17066 (define_insn "rsqrt14<mode>"): Ditto.
17067 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
17068 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
17069 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
17070 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
17071 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
17073 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
17074 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
17075 * config/i386/i386.c (ix86_print_operand): Expand check for size
17076 override codes for Intel syntax.
17078 2016-05-18 Richard Biener <rguenther@suse.de>
17080 PR tree-optimization/71168
17081 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
17082 initialization earlier.
17084 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
17086 * config/aarch64/aarch64-simd.md
17087 (aarch64_reduc_plus_internal<mode>): Rename to...
17088 (reduc_plus_scal): ...This, and remove previous implementation.
17090 2016-05-18 Richard Biener <rguenther@suse.de>
17092 * passes.def: Put late dse and cd_dce in canonical order.
17094 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
17096 * ipa-inline-transform.c (preserve_function_body_p): Look for
17097 first non-thunk clone.
17098 (save_function_body): Save into first non-thunk.
17099 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
17101 (lto_output_node): Inline thunks don't need body in every
17103 * lto-streamer-in.c: Do not fixup thunk clones.
17104 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
17106 * tree-inline.c (copy_bb): Be prepared for target node to be new after
17109 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
17111 PR middle-end/63586
17112 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
17113 (reassociate_bb): Call transform_add_to_multiply.
17115 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
17117 * config/aarch64/aarch64.c (all_extensions): Removed unused
17120 2016-05-17 Nathan Sidwell <nathan@acm.org>
17122 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
17123 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
17125 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
17127 PR tree-optimization/54579
17128 PR middle-end/55299
17129 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
17131 2016-05-17 Marek Polacek <polacek@redhat.com>
17134 * tree-inline.c (expand_call_inline): Call
17135 maybe_remove_unused_call_args.
17137 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
17139 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
17140 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
17141 * doc/md.texi (fmin@var{m}3): Likewise.
17143 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
17145 * match.pd (X & C): New transformation.
17147 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
17149 * match.pd (~X & Y): New transformation.
17151 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
17153 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
17154 information for new SSA_NAME.
17155 (simplify_conversion_using_ranges): Get range through get_range_info
17156 instead of get_value_range.
17158 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17160 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
17161 Remove inline assembly.
17162 (vmvn_s16): Likewise.
17163 (vmvn_s32): Likewise.
17164 (vmvn_u8): Likewise.
17165 (vmvn_u16): Likewise.
17166 (vmvn_u32): Likewise.
17167 (vmvnq_s8): Likewise.
17168 (vmvnq_s16): Likewise.
17169 (vmvnq_s32): Likewise.
17170 (vmvnq_u8): Likewise.
17171 (vmvnq_u16): Likewise.
17172 (vmvnq_u32): Likewise.
17173 (vmvn_p8): Likewise.
17174 (vmvnq_p16): Likewise.
17176 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17178 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
17180 (vmul_n_s16): Likewise.
17181 (vmul_n_s32): Likewise.
17182 (vmul_n_u16): Likewise.
17183 (vmul_n_u32): Likewise.
17184 (vmulq_n_f32): Likewise.
17185 (vmulq_n_f64): Likewise.
17186 (vmulq_n_s16): Likewise.
17187 (vmulq_n_s32): Likewise.
17188 (vmulq_n_u16): Likewise.
17189 (vmulq_n_u32): Likewise.
17191 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17193 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
17194 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
17196 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17198 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
17199 to *aarch64_fma4_elt_from_dup<mode>.
17200 (*aarch64_fnma4_elt_to_128df): Rename to
17201 *aarch64_fnma4_elt_from_dup<mode>.
17202 * config/aarch64/arm_neon.h (vfma_n_f64): New.
17203 (vfms_n_f32): Likewise.
17204 (vfms_n_f64): Likewise.
17205 (vfmsq_n_f32): Likewise.
17206 (vfmsq_n_f64): Likewise.
17208 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
17210 * wide-int.h: Change fixed_wide_int_storage from class to struct.
17212 2016-05-17 Richard Biener <rguenther@suse.de>
17214 PR tree-optimization/71132
17215 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
17216 Only add control dependences for blocks in the loop.
17217 (build_rdg): Adjust.
17218 (generate_code_for_partition): Return whether loop should
17219 be destroyed and delay that.
17220 (distribute_loop): Likewise.
17221 (pass_loop_distribution::execute): Record loops to be destroyed
17222 and perform delayed destroying of loops.
17224 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17227 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
17229 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17231 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
17233 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
17236 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
17237 insertion point for instructions generated by validize_mem.
17239 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17241 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
17244 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17246 * config/aarch64/aarch64.c
17247 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
17248 rather than a macro.
17250 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17252 * doc/invoke.texi (AArch64 Options): Various updates.
17254 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17256 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
17257 into instrumentation thunks.
17258 * cif-code.def (CIF_CHKP): New.
17260 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
17262 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
17264 2016-05-16 Martin Jambor <mjambor@suse.cz>
17266 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
17267 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
17269 2016-05-16 Marek Polacek <polacek@redhat.com>
17271 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
17274 2016-05-16 Martin Jambor <mjambor@suse.cz>
17277 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
17278 the outlined kernel function.
17280 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
17282 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
17283 (ISA_HAS_DLSA): Ditto.
17285 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17287 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
17289 2016-05-16 Nathan Sidwell <nathan@acm.org>
17291 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
17292 (nvptx_name_replacement): Restore. Add comment.
17293 (write_fn_proto, write_fn_proto_from_insn,
17294 nvptx_output_call_insn): Restore
17295 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
17297 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17299 * config/aarch64/aarch64.md
17300 (add<mode>3_compareC_cconly_imm): Remove use of %w.
17301 (add<mode>3_compareC_imm): Likewise.
17302 (<optab>si3_uxtw): Split into register and immediate variants.
17303 (andsi3_compare0_uxtw): Likewise.
17304 (and<mode>3_compare0): Likewise.
17305 (and<mode>3nr_compare0): Likewise.
17306 (stack_protect_test_<mode>): Don't use %x for memory operands.
17308 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17310 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
17312 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17314 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17315 Split integer shifts into shift_reg and bfm.
17316 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17317 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17318 (ror<mode>3_insn): Likewise.
17319 (<optab>si3_insn_uxtw): Likewise.
17320 (<optab><mode>3_insn): Change to rotate_imm.
17321 (extr<mode>5_insn_alt): Likewise.
17322 (extrsi5_insn_uxtw): Likewise.
17323 (extrsi5_insn_uxtw_alt): Likewise.
17325 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17327 * doc/tm.texi: Regenerate.
17328 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
17329 (TARGET_INVALID_RETURN_TYPE): Remove.
17330 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
17331 TARGET_INVALID_RETURN_TYPE.
17332 * target.def (invalid_parameter_type): Remove.
17333 (invalid_return_type): Remove.
17335 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17337 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
17338 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
17340 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
17342 (preserve_function_body_p): No need to preserve function body
17343 * cif-codes.def (CIF_THUNK): Remove.
17344 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
17346 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17348 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
17350 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17352 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
17355 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17357 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
17358 (inline_small_functions): Do not look for function symbol when
17361 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17363 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
17366 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17367 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17368 Jiong Wang <jiong.wang@arm.com>
17370 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
17371 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
17372 Define __ARM_FP16_ARGS when appropriate.
17373 * config/arm/arm.c (arm_invalid_parameter_type): Remove
17375 (arm_invalid_return_type): Likewise.
17376 (TARGET_INVALID_PARAMETER_TYPE): Remove.
17377 (TARGET_INVALID_RETURN_TYPE): Remove.
17378 (aapcs_vfp_sub_candidate): Allow HFmode.
17379 (aapcs_vfp_allocate): Add comment. Support HFmode.
17380 (aapcs_vfp_allocate_return_reg): Likewise.
17381 (struct aapcs_cp_arg_layout): Slightly reword comments for
17382 is_return_candidate and allocate_return_reg.
17383 (output_mov_vfp): Update assert.
17384 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
17386 (arm_invalid_parameter_type): Remove.
17387 (amr_invalid_return_type): Remove.
17388 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
17389 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
17390 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
17392 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17394 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17395 * config/aarch64/arch64-protos.h
17396 (aarch64_legitimize_reload_address): Remove.
17397 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
17400 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
17402 * configure.ac: Add ACX_NONCANONICAL_HOST.
17403 * configure: Regenerate.
17404 * Makefile.in: Set host_noncanonical.
17406 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
17409 * config/i386/i386.md (*movtf_internal): Before register allocation,
17410 do not allow FP constants for CM_MEDIUM memory model, allow only
17411 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
17412 (*movxf_internal): Ditto.
17413 (*movdf_internal): Ditto.
17414 (*movsf_internal): Ditto.
17416 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17418 PR rtl-optimization/67483
17419 * combine.c (make_compound_operation): Don't call extract_left_shift
17420 with negative shift amounts.
17422 2016-05-13 Jakub Jelinek <jakub@redhat.com>
17425 * fold-const.c (fold_checksum_tree): Allow modification
17426 of TYPE_ALIAS_SET during folding.
17428 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
17429 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
17430 (ix86_split_to_parts): Likewise. Fix up formatting.
17432 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
17434 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
17435 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
17438 2016-05-13 Nathan Sidwell <nathan@acm.org>
17440 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
17441 (nvptx_name_replacement): Delete.
17442 (write_fn_proto, write_fn_proto_from_insn,
17443 nvptx_output_call_insn): Remove nvptx_name_replacement call.
17444 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
17445 * langhooks.c (add_builtin_funcction_common): Call
17446 targetm.mangle_decl_assembler_name.
17448 * config/nvptx/nvptx.c (write_fn_proto): Handle
17449 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
17451 2016-05-13 Martin Liska <mliska@suse.cz>
17453 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
17454 and PRIu64 in printf format.
17456 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17458 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
17461 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17463 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17464 Change --param max-completely-peeled-times to
17465 --param max-completely-peel-times in dump file printing.
17467 2016-05-13 Richard Biener <rguenther@suse.de>
17469 PR tree-optimization/42587
17470 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
17471 (find_bswap_or_nop_1): Likewise.
17472 (bswap_replace): Likewise.
17474 2016-05-13 Martin Liska <mliska@suse.cz>
17476 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
17477 Initialize a variable with default value.
17479 2016-05-13 Martin Liska <mliska@suse.cz>
17481 * doc/invoke.texi: Enhance explanation of error recovery
17484 2016-05-13 Martin Liska <mliska@suse.cz>
17486 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
17487 (struct cost_pair): Change inv_expr_id (int) to inv_expr
17488 (iv_inv_expr_ent *).
17489 (struct iv_inv_expr_ent): Comment struct fields.
17490 (sort_iv_inv_expr_ent): New function.
17491 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
17492 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
17493 a hash_map between iv_inv_expr_ent and number of usages.
17494 (niter_for_exit): Fix coding style.
17495 (tree_ssa_iv_optimize_init): Use renamed variable.
17496 (determine_base_object): Fix coding style.
17497 (alloc_iv): Likewise.
17498 (find_interesting_uses_outside): Likewise.
17499 (add_candidate_1): Likewise.
17500 (add_standard_iv_candidates): Likewise.
17501 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
17502 (prepare_decl_rtl): Fix coding style.
17503 (get_address_cost): Likewise.
17504 (get_shiftadd_cost): Likewise.
17505 (force_expr_to_var_cost): Likewise.
17506 (compare_aff_trees): Likewise.
17507 (get_expr_id): Restructure the function.
17508 (get_loop_invariant_expr_id): Renamed to
17509 get_loop_invariant_expr.
17510 (get_computation_cost_at): Replace usage of inv_expr_id with
17512 (get_computation_cost): Likewise.
17513 (determine_group_iv_cost_generic): Likewise.
17514 (determine_group_iv_cost_address): Likewise.
17515 (iv_period): Fix coding style.
17516 (iv_elimination_compare_lt): Likewise.
17517 (may_eliminate_iv): Likewise.
17518 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
17520 (determine_group_iv_costs): Dump invariant expressions.
17521 (iv_ca_recount_cost): Use the newly added hash_map.
17522 (iv_ca_set_remove_invariants): Fix coding style.
17523 (iv_ca_set_add_invariants): Fix coding style.
17524 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
17526 (iv_ca_set_cp): Likewise.
17527 (iv_ca_new): Initialize the newly added hash_map and remove
17528 initialization of fields.
17529 (iv_ca_free): Delete the hash_map.
17530 (iv_ca_dump): Dump invariant expressions.
17531 (iv_ca_extend): Fix coding style.
17532 (try_add_cand_for): Likewise.
17533 (create_new_ivs): Dump information about # of avg iterations and
17534 # of used invariant expressions.
17535 (rewrite_use_compare): Fix coding style.
17536 (free_loop_data): Set default value for max_inv_expr_id.
17538 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17540 * cse.c (rest_of_handle_cse): Use cleanup_cfg
17541 returned value cse_cfg_altered computation.
17542 (rest_of_handle_cse2): Likewise.
17543 (rest_of_handle_cse_after_global_opts): Likewise.
17545 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17548 * config/arm/arm.c (arm32_output_mi_thunk): New.
17549 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
17550 to split Thumb1 vs TARGET_32BIT functionality.
17551 (arm_thumb1_mi_thunk): New.
17553 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17555 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
17558 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17561 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
17563 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
17565 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
17566 (expand_builtin_trap): Emit a regular call.
17567 (set_builtin_user_assembler_name): Remove obsolete cases.
17568 * dse.c (scan_insn): Adjust.
17569 * except.c: Include calls.h.
17570 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
17571 emit a regular call to setjmp.
17572 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
17573 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
17574 (emit_block_move_via_libcall): Delete.
17575 (block_move_fn): Delete.
17576 (init_block_move_fn): Likewise.
17577 (emit_block_move_libcall_fn): Likewise.
17578 (emit_block_op_via_libcall): New function.
17579 (set_storage_via_libcall): Tidy up and use memset builtin.
17580 (block_clear_fn): Delete.
17581 (init_block_clear_fn): Likewise.
17582 (clear_storage_libcall_fn): Likewise.
17583 (expand_assignment): Call emit_block_move_via_libcall.
17584 Do not include gt-expr.h.
17585 * expr.h (emit_block_op_via_libcall): Declare.
17586 (emit_block_copy_via_libcall): New inline function.
17587 (emit_block_move_via_libcall): Likewise.
17588 (emit_block_comp_via_libcall): Likewise.
17589 (block_clear_fn): Delete.
17590 (init_block_move_fn): Likewise.
17591 (init_block_clear_fn): Likewise.
17592 (emit_block_move_via_libcall): Likewise.
17593 (set_storage_via_libcall): Add default parameter value.
17594 * libfuncs.h (enum libfunc_index): Remove obsolete values.
17595 (abort_libfunc): Delete.
17596 (memcpy_libfunc): Likewise.
17597 (memmove_libfunc): Likewise.
17598 (memcmp_libfunc): Likewise.
17599 (memset_libfunc): Likewise.
17600 (setbits_libfunc): Likewise.
17601 (setjmp_libfunc): Likewise.
17602 (longjmp_libfunc): Likewise.
17603 (profile_function_entry_libfunc): Likewise.
17604 (profile_function_exit_libfunc): Likewise.
17605 (gcov_flush_libfunc): Likewise.
17606 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
17607 and DECL_VISIBILITY on the declaration.
17608 (init_optabs): Do not initialize obsolete libfuncs.
17609 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
17610 * tree-core.h (ECF_RET1): Define.
17611 (ECF_TM_PURE): Adjust.
17612 (ECF_TM_BUILTIN): Likewise.
17613 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
17614 (build_common_builtin_nodes): Initialize abort builtin.
17615 Add ECF_RET1 on memcpy, memmove and memset builtins.
17616 Pass final flags for alloca and alloca_with_align builtins.
17617 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
17619 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
17620 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
17621 set_storage_via_libcall and call emit_block_copy_via_libcall.
17623 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
17625 * config/i386/i386.md (*call_got_x32): Change operand 0 to
17626 DImode before it is passed to ix86_output_call_operand.
17627 (*call_value_got_x32): Ditto for operand 1.
17629 2016-05-12 Jiong Wang <jiong.wang@arm.com>
17631 PR rtl-optimization/70904
17632 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
17633 reload for wide mode.
17635 2016-05-12 Marek Polacek <polacek@redhat.com>
17638 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
17639 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
17640 * langhooks.h (incomplete_type_error): Likewise.
17641 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
17642 parameter, pass it down to incomplete_type_error.
17643 * tree.h (size_in_bytes): New inline overload.
17644 (size_in_bytes_loc): Renamed from size_in_bytes.
17646 2016-05-12 Richard Biener <rguenther@suse.de>
17648 PR tree-optimization/71059
17649 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
17650 nary before looking up or entering the expression into the VN
17652 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
17653 Make sure to re-use NARYs without result as inserted by
17656 2016-05-12 Richard Biener <rguenther@suse.de>
17658 PR tree-optimization/71062
17659 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17661 * tree-ssa-structalias.c (set_uids_in_ptset): Set
17662 vars_contains_restrict if the var is a restrict tag.
17663 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
17664 do not disambiguate pointers against it.
17665 (dump_points_to_solution): Re-structure and adjust for new
17666 vars_contains_restrict flag.
17667 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
17669 2016-05-12 Martin Liska <mliska@suse.cz>
17671 * doc/invoke.texi: Explain connection between
17672 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
17674 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
17676 PR tree-optimization/71006
17677 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17678 consider COND_EXPR as a mask producer.
17680 2016-05-12 Marek Polacek <polacek@redhat.com>
17683 * opts.c (common_handle_option): Detect missing argument for --help^.
17685 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17688 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
17689 when popping the PC and within an interrupt handler routine.
17690 Add missing tab to output of "ldmfd".
17691 (output_return_instruction): Output LDMFD with SP update rather
17692 than POP when returning from interrupt handler.
17694 2016-05-12 Jakub Jelinek <jakub@redhat.com>
17696 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
17697 TARGET_64BIT && TARGET_AVX512DQ.
17698 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
17699 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
17700 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
17701 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
17702 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
17703 (*vec_extractv4si_zext): Add avx512dq alternative.
17704 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
17705 use v instead of x constraint in other alternatives where possible.
17707 * config/i386/sse.md (sse2_loadld): Use v instead of x
17708 constraint in alternatives 0,1,4.
17710 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
17711 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
17712 v constraints instead of x and <pinsr_evex_isa> isa attribute.
17715 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
17716 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
17717 is not emitted unless TARGET_AVX512BW.
17718 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
17719 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
17720 for the result operand.
17722 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
17723 constraint instead of x in avx alternatives. Use maybe_evex instead
17726 * config/i386/constraints.md (Yv): New constraint.
17727 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
17728 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
17729 * config/i386/i386.md (avx512fvecmode): New mode attr.
17730 (*pushtf): Use v constraint instead of x.
17731 (*movtf_internal): Likewise. For TARGET_AVX512VL and
17732 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
17733 (*absneg<mode>2): Use Yv constraint instead of x constraint.
17734 (*absnegtf2_sse): Likewise.
17735 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
17736 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
17737 avx512f alternatives.
17738 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
17740 2016-05-12 Richard Biener <rguenther@suse.de>
17742 PR tree-optimization/71060
17743 * tree-data-ref.c (initialize_data_dependence_relation): Do not
17744 require exact match of DR_BASE_OBJECT but only matching address and
17747 2016-05-12 Richard Biener <rguenther@suse.de>
17749 PR tree-optimization/70986
17750 * cfganal.c: Include cfgloop.h.
17751 (dfs_find_deadend): Prefer to take edges exiting loops.
17753 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17755 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
17756 compile and run time.
17758 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
17761 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
17763 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
17765 * config/i386/i386.c (legitimize_pic_address): Use
17766 copy_to_suggested_reg instead of gen_movsi.
17768 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17770 * config/rs6000/predicates.md (quad_memory_operand): Move most of
17771 the code into quad_address_p and call it to share code with
17772 vsx_quad_dform_memory_operand.
17773 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
17775 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
17776 bit instead of being a separate word. Split -mpower9-dform into
17777 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17778 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
17779 for the register class supporting 128-bit quad word memory offsets.
17780 (mode_supports_vsx_dform_quad): Helper function to return if the
17781 register class uses quad word memory offsets.
17782 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
17783 (rs6000_debug_reg_global): Always print if we are using LRA or not.
17784 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
17785 instructions are enabled, set up the appropriate addr_masks for
17787 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
17788 -mpower9-dform-scalar, instead of -mpower9-dform.
17789 (rs6000_option_override_internal): Split -mpower9-dform into two
17790 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
17791 -mpower9-dform switch sets or clears both. If we are not using
17792 the LRA register allocator, do not enable -mpower9-dform-vector by
17793 default. If we are using LRA, enable -mpower9-dform-vector and
17794 -mvsx-timode if it is appropriate. Issue a warning if either
17795 -mpower9-dform-vector or -mvsx-timode are explicitly used without
17797 (quad_address_offset_p): New helper function to return if the
17798 offset is legal for quad word memory instructions.
17799 (quad_address_p): New function to determin if GPR or vector
17800 register quad word memory addresses are legal.
17801 (mem_operand_gpr): Validate quad word address offsets.
17802 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
17803 d-form (register + offset) instructions.
17804 (offsettable_ok_by_alignment): Likewise.
17805 (rs6000_legitimate_offset_address_p): Likewise.
17806 (legitimate_lo_sum_address_p): Likewise.
17807 (rs6000_legitimize_address): Likewise.
17808 (rs6000_legitimize_reload_address): Add more debug statements for
17810 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
17811 d-form instructions.
17812 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
17813 d-form instructions. Distinguish different cases in debug
17814 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
17815 d-form instructions.
17816 (rs6000_preferred_reload_class): Likewise.
17817 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
17818 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
17819 of the ISA 2.06 indexed memory instructions.
17820 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
17821 use them to save/restore the saved vector registers instead of
17822 using Altivec instructions.
17823 (rs6000_emit_epilogue): Likewise.
17824 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
17825 (rs6000_opt_masks): Split -mpower9-dform into
17826 -mpower9-dform-scalar and -mpower9-dform-vector.
17827 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
17829 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
17830 ISA 3.0 vector indexed memory instructions, and fold the code into
17831 the normal mov<mode> patterns.
17832 (p9_vecstore_<mode>): Likewise.
17833 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
17835 (vsx_movti_64bit): Likewise.
17836 (vsx_movti_32bit): Likewise.
17837 * config/rs6000/constraints.md (wO constraint): New constraint for
17838 ISA 3.0 vector d-form support.
17839 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
17840 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
17841 include -mpower9-dform-vector until we switch over to LRA.
17842 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
17843 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17844 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
17845 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
17846 for -mpower9-dform and -mlra.
17847 * doc/md.texi (wO constraint): Document wO constraint.
17849 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
17851 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
17852 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
17853 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
17854 Move handling of non-insn arguments inline into the sole user:
17855 (output_trans_func): ...here.
17856 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
17857 in emitted function prototype.
17858 (output_internal_insn_latency_func): Ditto. Simplify.
17859 (output_internal_maximal_insn_latency_func): Ditto. Delete
17860 always-unused argument.
17861 (output_insn_latency_func): Ditto.
17862 (output_maximal_insn_latency_func): Ditto.
17864 2016-05-11 Richard Biener <rguenther@suse.de>
17866 PR tree-optimization/71055
17867 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
17868 sth with precision not equal to access size verify we don't chop
17871 2016-05-11 Richard Biener <rguenther@suse.de>
17874 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
17875 (dwarf2out_finish): Move retry_incomplete_types call ...
17876 (dwarf2out_early_finish): ... here.
17878 2016-05-11 Richard Biener <rguenther@suse.de>
17880 PR middle-end/71002
17881 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
17882 if the langhook insists on it.
17883 * fold-const.c (make_bit_field_ref): Add arg for the original
17884 reference and preserve its alias-set.
17885 (decode_field_reference): Take exp by reference and adjust it
17886 to the original memory reference.
17887 (optimize_bit_field_compare): Adjust callers.
17888 (fold_truth_andor_1): Likewise.
17889 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
17891 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
17893 PR middle-end/70807
17894 * cfgrtl.h (delete_insn_and_edges): Now return bool.
17895 * cfgrtl.c (delete_insn_and_edges): Likewise.
17896 * config/i386/i386.c (convert_scalars_to_vector): Remove
17898 * cse.c (cse_insn): Compute cse_cfg_altered.
17899 (delete_trivially_dead_insns): Likewise.
17900 (cse_cc_succs): Likewise.
17901 (rest_of_handle_cse): Free dominance info if required.
17902 (rest_of_handle_cse2): Likewise.
17903 (rest_of_handle_cse_after_global_opts): Likewise.
17905 2016-05-11 Alan Modra <amodra@gmail.com>
17907 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
17908 abi_v4_pass_in_fpr): New functions.
17909 (rs6000_function_arg_boundary): Exclude complex IBM long double
17910 from 64-bit alignment when ABI_V4.
17911 (rs6000_function_arg, rs6000_function_arg_advance_1,
17912 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
17914 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
17916 PR rtl-optimization/71028
17917 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
17918 jump with just a return in the fallthrough block if the branch
17919 block contains just a return as well.
17921 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
17923 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
17924 * match.pd ((X & Y) ^ Y): ... this.
17925 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
17926 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
17928 2016-05-10 David Malcolm <dmalcolm@redhat.com>
17930 * read-md.c (require_char_ws): New function.
17931 (read_string): Simplify using require_char_ws.
17932 (handle_constants): Likewise.
17933 (handle_enum): Likewise.
17934 (handle_file): Likewise.
17935 * read-md.h (require_char_ws): New declaration.
17936 * read-rtl.c (read_conditions): Simplify using require_char_ws.
17937 (read_mapping): Likewise.
17938 (read_rtx_code): Likewise.
17939 (read_nested_rtx): Likewise.
17941 2016-05-10 James Norris <jnorris@codesourcery.com>
17943 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
17944 if offloading is enabled and -fopenacc or -fopenmp is specified.
17945 (CRTOFFLOADEND): Likewise.
17946 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
17947 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
17949 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
17951 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
17952 gotoff_operand code paths. Use copy_to_suggested_regs and
17953 expand_simple_binop where appropriate. Cleanup.
17955 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17958 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
17960 (dimode_scalar_chain::vector_const_cost): New.
17961 (dimode_scalar_chain::compute_convert_gain): Handle constants.
17962 (dimode_scalar_chain::convert_op): Likewise.
17963 (dimode_scalar_chain::convert_insn): Likewise.
17965 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
17967 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
17968 unary operation, not a binary one.
17970 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17972 PR middle-end/70877
17973 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
17974 calls with type casted fndecl.
17976 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17978 PR tree-optimization/70786
17979 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
17980 * calls.c (initialize_argument_information): Bind bounds
17981 with corresponding args passed by reference.
17983 2016-05-10 Jakub Jelinek <jakub@redhat.com>
17986 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
17987 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
17988 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
17991 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17994 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
17995 code for a zero scale factor.
17996 (vsx_xvcvdpuxds_scale): Likewise.
17998 2016-05-10 David Malcolm <dmalcolm@redhat.com>
18000 * diagnostic-show-locus.c (layout::layout): Call show_ruler
18001 if show_ruler_p was set on the context.
18002 (layout::show_ruler): New method.
18003 * diagnostic.h (struct diagnostic_context): Add field
18006 2016-05-10 Richard Biener <rguenther@suse.de>
18008 PR tree-optimization/71039
18009 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
18010 (chk_uses): New function.
18011 (propagate_with_phi): Verify we can safely replicate the lhs of an
18012 aggregate assignment on all incoming edges.
18014 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
18016 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
18018 (rx_atomic_sequence): New class.
18019 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
18020 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
18022 (rx_atomic_sequence::rx_atomic_sequence,
18023 rx_atomic_sequence::~rx_atomic_sequence): New functions.
18024 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
18025 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
18026 CTRLREG_INTB): New constants.
18027 (FETCHOP): New code iterator.
18028 (fethcop_name, fetchop_name2): New iterator code attributes.
18029 (QIHI): New mode iterator.
18030 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
18031 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
18032 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
18034 2016-05-10 Martin Liska <mliska@suse.cz>
18036 * tree-inline.c (remap_dependence_clique): Do not remap
18037 debugging statements.
18039 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18041 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
18042 ("*fixuns_truncdfdi2_z13")
18043 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
18044 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
18045 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
18047 2016-05-10 Richard Biener <rguenther@suse.de>
18049 PR tree-optimization/70497
18050 PR tree-optimization/28367
18051 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
18053 (visit_reference_op_load): ... here.
18054 (vn_reference_lookup_3): Use it to handle subreg-like accesses
18055 with simplified BIT_FIELD_REFs.
18056 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
18057 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
18060 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
18062 * dwarf2out.c (add_abstract_origin_attribute): Adjust
18063 documentation comment. For BLOCK nodes, add a
18064 DW_AT_abstract_origin attribute that points to the DIE generated
18065 for the origin BLOCK.
18066 (gen_lexical_block_die): Call add_abstract_origin_attribute for
18067 blocks from inlined functions.
18069 2016-05-10 Alan Modra <amodra@gmail.com>
18072 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
18073 regrename modifying insns saving lr before __morestack call.
18074 * config/rs6000/rs6000.md (split_stack_return): Similarly for
18075 insns restoring lr after __morestack call.
18077 2016-05-09 Jakub Jelinek <jakub@redhat.com>
18079 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
18080 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
18082 * config/i386/sse.md (vec_interleave_high<mode>,
18083 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
18084 <avx512>_vpermt2var<mode>3_maskz): Likewise.
18086 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18088 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
18089 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
18090 parallel reassociation for power8 and forward.
18092 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
18094 * config/i386/i386.md (absneg splitters with general regs): Use
18095 general_reg_operand predicate.
18096 (btsq peephole2): Use x86_64_immediate_operand to check if new
18097 value is suitable for immediate operand. Generate emitted insn
18098 using RTL expressions.
18099 (btcq peephole2): Ditto.
18100 (btrq peephole2): Ditto. Generate correct immediate operand
18103 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
18105 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
18108 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
18110 * tree-affine.c (wide_int_constant_multiple_p): Add missing
18111 pointer dereference.
18113 2016-05-09 Richard Biener <rguenther@suse.de>
18115 PR tree-optimization/70985
18116 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
18117 op0 isn't a gimple register.
18119 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
18121 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
18122 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
18123 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
18124 (i6400_fpu_mult): New cpu units.
18125 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
18126 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
18127 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
18128 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
18129 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
18130 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
18131 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
18132 (i6400_msa_long_float4, i6400_msa_long_float5)
18133 (i6400_msa_long_float8, i6400_msa_fdiv_df)
18134 (i6400_msa_fdiv_sf): New reservations.
18135 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
18136 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
18137 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
18138 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
18139 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
18140 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
18141 (msa_short_cmp, msa_short_float2, msa_short_logic3)
18142 (msa_short_store4, msa_long_load, msa_short_store)
18143 (msa_long_logic, msa_long_float2, msa_long_float4)
18144 (msa_long_float5, msa_long_float8, msa_long_mult)
18145 (msa_long_fdiv, msa_long_div): New reservations.
18147 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
18148 Sameera Deshpande <sameera.deshpande@imgtec.com>
18149 Matthew Fortune <matthew.fortune@imgtec.com>
18150 Graham Stott <graham.stott@imgtec.com>
18151 Chao-ying Fu <chao-ying.fu@imgtec.com>
18153 * config.gcc: Add MSA header file for mips*-*-* target.
18154 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
18155 (Ubv8i, Urv8): New constraints.
18156 * config/mips/mips-ftypes.def: Add function types for MSA
18158 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
18159 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
18160 * config/mips/mips-msa.md: New file.
18161 * config/mips/mips-protos.h
18162 (mips_split_128bit_const_insns): New prototype.
18163 (mips_msa_idiv_insns): Likewise.
18164 (mips_split_128bit_move): Likewise.
18165 (mips_split_128bit_move_p): Likewise.
18166 (mips_split_msa_copy_d): Likewise.
18167 (mips_split_msa_insert_d): Likewise.
18168 (mips_split_msa_fill_d): Likewise.
18169 (mips_expand_msa_branch): Likewise.
18170 (mips_const_vector_same_val_p): Likewise.
18171 (mips_const_vector_same_bytes_p): Likewise.
18172 (mips_const_vector_same_int_p): Likewise.
18173 (mips_const_vector_shuffle_set_p): Likewise.
18174 (mips_const_vector_bitimm_set_p): Likewise.
18175 (mips_const_vector_bitimm_clr_p): Likewise.
18176 (mips_msa_vec_parallel_const_half): Likewise.
18177 (mips_msa_output_division): Likewise.
18178 (mips_ldst_scaled_shift): Likewise.
18179 (mips_expand_vec_cond_expr): Likewise.
18180 * config/mips/mips.c (enum mips_builtin_type): Add
18181 MIPS_BUILTIN_MSA_TEST_BRANCH.
18182 (mips_gen_const_int_vector_shuffle): New prototype.
18183 (mips_const_vector_bitimm_set_p): New function.
18184 (mips_const_vector_bitimm_clr_p): Likewise.
18185 (mips_const_vector_same_val_p): Likewise.
18186 (mips_const_vector_same_bytes_p): Likewise.
18187 (mips_const_vector_same_int_p): Likewise.
18188 (mips_const_vector_shuffle_set_p): Likewise.
18189 (mips_symbol_insns): Forbid loading symbols via immediate for
18191 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
18193 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
18195 (mips_lx_address_p): Add support load indexed address for MSA.
18196 (mips_address_insns): Add calculation of instructions needed for
18197 stores and loads for MSA.
18198 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
18199 CONST_VECTOR for MSA and let it fall through.
18200 (mips_ldst_scaled_shift): New function.
18201 (mips_subword_at_byte): Likewise.
18202 (mips_msa_idiv_insns): Likewise.
18203 (mips_legitimize_move): Validate MSA moves.
18204 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
18205 calculation of costs for MSA division.
18206 (mips_split_move_p): Check if MSA moves need splitting.
18207 (mips_split_move): Split MSA moves if necessary.
18208 (mips_split_128bit_move_p): New function.
18209 (mips_split_128bit_move): Likewise.
18210 (mips_split_msa_copy_d): Likewise.
18211 (mips_split_msa_insert_d): Likewise.
18212 (mips_split_msa_fill_d): Likewise.
18213 (mips_output_move): Handle MSA moves.
18214 (mips_expand_msa_branch): New function.
18215 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
18216 Reinstate 'y' modifier.
18217 (mips_file_start): Add MSA .gnu_attribute.
18218 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
18220 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
18221 (mips_class_max_nregs): Add register size for MSA supported mode.
18222 (mips_cannot_change_mode_class): Allow conversion between MSA
18223 vector modes and TImode.
18224 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
18226 (mips_secondary_reload_class): Force MSA loads/stores via memory.
18227 (mips_preferred_simd_mode): Add preffered modes for MSA.
18228 (mips_vector_mode_supported_p): Add MSA supported modes.
18229 (mips_autovectorize_vector_sizes): New function.
18230 (mips_msa_output_division): Likewise.
18231 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
18232 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
18233 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
18234 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
18235 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
18236 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
18237 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
18238 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
18239 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
18240 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
18241 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
18242 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
18243 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
18244 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
18245 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
18246 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
18247 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
18248 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
18249 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
18250 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
18251 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
18252 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
18253 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
18254 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
18255 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
18256 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
18257 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
18258 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
18259 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
18260 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
18261 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
18262 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
18263 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
18264 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
18265 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
18266 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
18267 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
18268 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
18269 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
18270 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
18271 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
18272 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
18273 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
18274 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
18275 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18276 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18277 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18278 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18279 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18280 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18281 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18282 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18283 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
18284 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
18285 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
18286 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
18287 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
18288 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
18289 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
18290 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
18291 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
18292 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
18293 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
18294 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
18295 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
18296 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
18297 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
18298 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
18299 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
18300 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
18301 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
18302 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
18303 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
18304 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
18305 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
18306 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
18307 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
18308 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
18309 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
18310 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
18311 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
18312 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
18313 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
18314 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
18315 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
18316 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
18317 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
18318 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
18319 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
18320 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
18321 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
18322 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
18323 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
18324 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
18325 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
18326 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
18327 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
18328 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
18329 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
18330 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
18331 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
18332 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
18333 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
18334 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
18335 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
18336 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
18337 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
18338 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
18339 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
18340 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
18341 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
18342 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
18343 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
18344 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
18345 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
18346 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
18347 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
18348 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
18349 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
18350 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
18351 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
18352 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
18353 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
18354 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
18355 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
18356 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
18357 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
18358 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
18359 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
18360 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
18361 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
18362 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
18363 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
18364 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
18365 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
18366 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
18367 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
18368 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
18369 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
18370 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
18371 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
18372 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
18373 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
18374 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
18375 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
18376 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
18377 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
18378 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
18379 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
18380 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
18381 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
18383 (mips_get_builtin_decl_index): New array.
18384 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
18385 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
18386 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
18387 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
18388 (mips_init_builtins): Initialize mips_get_builtin_decl_index
18390 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
18392 (mips_expand_builtin_insn): Prepare operands for
18393 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
18394 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
18395 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
18396 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
18397 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
18398 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
18399 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
18400 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
18401 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
18402 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
18403 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
18404 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
18405 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
18406 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
18407 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
18408 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
18409 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
18410 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
18411 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
18412 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
18413 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
18414 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
18415 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
18416 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
18417 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
18418 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
18419 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
18420 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
18421 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
18422 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
18423 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
18424 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
18425 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
18426 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
18427 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
18428 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
18429 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
18430 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
18431 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
18432 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
18433 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
18434 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
18435 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
18436 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
18437 These are set implicitly and an error is reported if overridden.
18438 (mips_expand_builtin_msa_test_branch): New function.
18439 (mips_expand_msa_shuffle): Likewise.
18440 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
18441 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
18442 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
18443 (mips_expand_vec_unpack): Add support for MSA.
18444 (mips_expand_vector_init): Likewise.
18445 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
18446 instead of const0_rtx.
18447 (mips_msa_vec_parallel_const_half): New function.
18448 (mips_gen_const_int_vector): Likewise.
18449 (mips_gen_const_int_vector_shuffle): Likewise.
18450 (mips_expand_msa_cmp): Likewise.
18451 (mips_expand_vec_cond_expr): Likewise.
18452 * config/mips/mips.h
18453 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
18454 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
18456 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
18457 (ISA_HAS_MSA): New macro.
18458 (UNITS_PER_MSA_REG): Likewise.
18459 (BITS_PER_MSA_REG): Likewise.
18460 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
18461 (MSA_REG_FIRST): New macro.
18462 (MSA_REG_LAST): Likewise.
18463 (MSA_REG_NUM): Likewise.
18464 (MSA_REG_P): Likewise.
18465 (MSA_REG_RTX_P): Likewise.
18466 (MSA_SUPPORTED_MODE_P): Likewise.
18467 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
18468 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
18469 * config/mips/mips.md: Include mips-msa.md.
18470 (alu_type): Add simd_add.
18471 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
18472 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
18473 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
18474 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
18475 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
18476 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
18477 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
18478 simd_move, simd_load, simd_store. Choose "multi" for moves
18480 (qword_mode): New attribute.
18481 (insn_count): Add instruction count for quad moves.
18482 Increase the count for MIPS SIMD division.
18483 (UNITMODE): Add UNITMODEs for vector types.
18484 (addsub): New code iterator.
18485 * config/mips/mips.opt (mmsa): New option.
18486 * config/mips/msa.h: New file.
18487 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
18489 * config/mips/mti-linux.h: Likewise.
18490 * config/mips/predicates.md
18491 (const_msa_branch_operand): New constraint.
18492 (const_uimm3_operand): Likewise.
18493 (const_uimm4_operand): Likewise.
18494 (const_uimm5_operand): Likewise.
18495 (const_uimm8_operand): Likewise.
18496 (const_imm5_operand): Likewise.
18497 (aq10b_operand): Likewise.
18498 (aq10h_operand): Likewise.
18499 (aq10w_operand): Likewise.
18500 (aq10d_operand): Likewise.
18501 (const_m1_operand): Likewise.
18502 (reg_or_m1_operand): Likewise.
18503 (const_exp_2_operand): Likewise.
18504 (const_exp_4_operand): Likewise.
18505 (const_exp_8_operand): Likewise.
18506 (const_exp_16_operand): Likewise.
18507 (const_vector_same_val_operand): Likewise.
18508 (const_vector_same_simm5_operand): Likewise.
18509 (const_vector_same_uimm5_operand): Likewise.
18510 (const_vector_same_uimm6_operand): Likewise.
18511 (const_vector_same_uimm8_operand): Likewise.
18512 (par_const_vector_shf_set_operand): Likewise.
18513 (reg_or_vector_same_val_operand): Likewise.
18514 (reg_or_vector_same_simm5_operand): Likewise.
18515 (reg_or_vector_same_uimm6_operand): Likewise.
18516 * doc/extend.texi (MIPS SIMD Architecture Functions): New
18518 * doc/invoke.texi (-mmsa): Document new option.
18520 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18522 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
18523 * configure: Regenerate.
18524 * config.in: Regenerate.
18525 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
18526 on -fvtable-verify.
18527 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
18528 (ENDFILE_VTV_SPEC): Define.
18530 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
18532 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
18533 registers in all interrupt handlers if necessary.
18534 (rl78_option_override): Add warning.
18535 (MUST_SAVE_MDUC_REGISTERS): New macro.
18536 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
18537 * config/rl78/rl78.c (check_mduc_usage): New function.
18538 (mduc_regs): New structure to hold MDUC register data.
18539 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
18540 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
18541 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
18542 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
18543 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
18544 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
18546 2016-05-09 Bin Cheng <bin.cheng@arm.com>
18548 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
18549 (tree-ssa-loop-niter.h): Ditto.
18550 (idx_within_array_bound, ref_within_array_bound): New functions.
18551 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
18552 Factor out check on writable base object to ...
18553 (base_object_writable): ... here.
18555 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18557 * config/arm/arm.md (probe_stack): Add modes to set source
18560 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
18562 * regrename.c (base_reg_class_for_rename): New static function.
18563 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
18565 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
18567 * cgraph.c (thunk_adjust): Export.
18568 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
18569 * cgraphunit.c (thunk_adjust): Export.
18570 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
18572 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
18574 * tree-inline.c (expand_call_inline): Expand thunks inline.
18576 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
18579 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
18580 (*sse2_vd_cvtss2sd): Ditto.
18581 * config/i386/i386.md
18582 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
18583 Generate *sse2_vd_cvtsd2ss pattern.
18584 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
18585 Generate *sse2_vd_cvtss2sd pattern.
18587 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18589 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
18590 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
18593 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18595 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
18596 * config/sh/sh.c: Define and declare variables on first use throughout
18598 (current_function_interrupt): Change to bool type.
18599 (frame_insn): Rename to emit_frame_insn and update users.
18600 (push_regs): Use bool for 'interrupt_handler' argument.
18601 (save_schedule_s): Remove.
18602 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
18603 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
18604 targetm.asm_out.unaligned_op.di.
18605 (gen_far_branch): Remove redundant forward declaration.
18606 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
18607 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
18608 (sh_set_return_address, sh_function_ok_for_sibcall,
18609 scavenge_reg): Update comments.
18610 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
18611 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
18612 (sh_attr_renesas_p): Remove unnecessary parentheses.
18613 (branch_dest): Simplify.
18614 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
18615 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
18616 (CUMULATIVE_ARGS): Change macro to typedef.
18617 (current_function_interrupt): Change to bool type.
18618 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
18619 Surround with __cplusplus ifdef.
18620 (sh_compare_op0, sh_compare_op1): Remove.
18621 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
18623 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
18625 * config/arm/arm.md: (arch): Add neon.
18626 (arch_enabled): Return yes for arch neon when TARGET_NEON.
18627 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
18628 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
18629 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
18630 attributes for alt renumbering. Mark alt 3 as non-predicable.
18631 (thumb2_movdf_vfp): Likewise.
18633 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
18635 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
18636 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
18637 (*andqi_1): Add preferred_for_speed attribute to disparage
18638 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
18639 (*<code>qi_1): Ditto.
18640 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
18641 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
18642 (*ashlqi3_1): Ditto.
18643 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
18644 Add preferred_for_size attribute to disparage alternative 0 and
18645 preferred_for_speed attribute to disparage alternative 1 for
18646 TARGET_PARTIAL_REG_STALL targets.
18648 2016-05-07 Tom de Vries <tom@codesourcery.com>
18650 PR tree-optimization/70956
18651 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
18654 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18656 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
18657 * config/sh/sh.c (sh_cbranch_distance): Implement it.
18658 * config/sh/sh.md (branch_zero): Remove define_attr.
18659 (define_delay): Disable delay slot if branch distance is one insn.
18661 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18663 * config/i386/i386.md (LEAMODE): New mode attribute.
18664 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
18665 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
18666 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
18667 operand 2 predicate.
18668 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
18669 (*lea<mode>_general_3): Ditto.
18670 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
18672 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18674 * genmddump.c (main): Convert argv from char ** to const char **.
18676 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18678 * coretypes.h (OVERRIDE): New macro.
18679 (FINAL): New macro.
18681 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
18683 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
18684 allow coalescing if the types are compatible.
18686 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18688 * pass_manager.h (pass_manager::register_pass_name): New method.
18689 (pass_manager::get_pass_by_name): New method.
18690 (pass_manager::create_pass_tab): New method.
18691 (pass_manager::m_name_to_pass_map): New field.
18692 * passes.c (name_to_pass_map): Delete global in favor of field
18693 "m_name_to_pass_map" of pass_manager.
18694 (register_pass_name): Rename from a function to...
18695 (pass_manager::register_pass_name): ...this method, updating
18696 for renaming of global "name_to_pass_map" to field
18697 "m_name_to_pass_map".
18698 (create_pass_tab): Rename from a function to...
18699 (pass_manager::create_pass_tab): ...this method, updating
18700 for renaming of global "name_to_pass_map" to field.
18701 (get_pass_by_name): Rename from a function to...
18702 (pass_manager::get_pass_by_name): ...this method.
18703 (enable_disable_pass): Convert use of get_pass_by_name to
18704 a method call, locating the pass_manager singleton.
18706 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18708 * genattr-common.c (main): Convert argv from char ** to const char **.
18709 * genattr.c (main): Likewise.
18710 * genattrtab.c (main): Likewise.
18711 * genautomata.c (initiate_automaton_gen): Likewise.
18713 * gencodes.c (main): Likewise.
18714 * genconditions.c (main): Likewise.
18715 * genconfig.c (main): Likewise.
18716 * genconstants.c (main): Likewise.
18717 * genemit.c (main): Likewise.
18718 * genenums.c (main): Likewise.
18719 * genextract.c (main): Likewise.
18720 * genflags.c (main): Likewise.
18721 * genmddeps.c (main): Likewise.
18722 * genopinit.c (main): Likewise.
18723 * genoutput.c (main): Likewise.
18724 * genpeep.c (main): Likewise.
18725 * genpreds.c (main): Likewise.
18726 * genrecog.c (main): Likewise.
18727 * gensupport.c (init_rtx_reader_args_cb): Likewise.
18728 (init_rtx_reader_args): Likewise.
18729 * gensupport.h (init_rtx_reader_args_cb): Likewise.
18730 (init_rtx_reader_args): Likewise.
18731 * gentarget-def.c (main): Likewise.
18732 * read-md.c (read_md_files): Likewise.
18733 * read-md.h (read_md_files): Likewise.
18735 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18737 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
18738 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
18739 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
18740 Remove unused predicate.
18741 (register_and_not_fp_reg_operand): Ditto.
18743 2016-05-06 Martin Liska <mliska@suse.cz>
18745 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
18746 instead of vec as the vector is local to the function.
18748 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18750 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
18751 avx512bw alternative.
18753 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
18754 before the ashr<mode>3 pattern.
18756 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
18757 v instead of x in vex or maybe_vex alternatives, use
18758 maybe_evex instead of vex in prefix.
18760 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
18761 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
18762 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
18763 in vex or maybe_vex alternatives, use maybe_evex instead of vex
18766 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
18767 v instead of x in vex or maybe_vex alternatives, use
18768 maybe_evex instead of vex in prefix.
18770 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
18771 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
18772 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
18773 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
18774 alternatives, use maybe_evex instead of vex in prefix.
18776 * config/i386/sse.md (vec_interleave_lowv4sf,
18777 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
18778 v instead of x in vex or maybe_vex alternatives, use
18779 maybe_evex instead of vex in prefix.
18781 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
18782 v instead of x in vex or maybe_vex alternatives, use
18783 maybe_evex instead of vex in prefix.
18785 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
18786 v constraint instead of x.
18788 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
18790 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
18791 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
18794 2016-05-06 Richard Biener <rguenther@suse.de>
18796 PR tree-optimization/70948
18797 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18798 Properly clobber all fields of va_list for __builtin_va_start.
18800 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18803 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
18804 loop latch destination.
18806 2016-05-06 Martin Liska <mliska@suse.cz>
18808 * tree-ssa-uninit.c: Apply manual changes
18809 to the GNU coding style.
18810 (prune_uninit_phi_opnds): Rename from
18811 prune_uninit_phi_opnds_in_unrealizable_paths.
18813 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18815 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
18816 mspace): Remove deprecated options.
18817 * doc/invoke.texi (SH options): Remove -mspace.
18819 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18821 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
18823 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18825 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
18826 corresponding combine split pattern.
18828 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18831 * config/sh/predicates.md (long_displacement_mem_operand): New.
18832 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
18833 Add movi20, movi20s alternatives. Adjust length attribute for
18835 (movsi_ie): Allow for any FPU. Adjust length attribute for
18837 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
18838 attribute for alternatives.
18839 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
18840 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
18841 length attribute for alternatives.
18843 2016-05-06 Richard Biener <rguenther@suse.de>
18845 PR tree-optimization/70960
18846 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
18848 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18851 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
18852 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
18854 2016-05-06 Marek Polacek <polacek@redhat.com>
18857 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
18859 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18862 * config/sh/sh.md (*rotcr): Add another variant.
18864 2016-05-06 Richard Biener <rguenther@suse.de>
18866 PR middle-end/70931
18867 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
18869 2016-05-06 Richard Biener <rguenther@suse.de>
18871 PR middle-end/70941
18872 * fold-const.c (split_tree): Always convert to the original type
18875 2016-05-06 Richard Biener <rguenther@suse.de>
18877 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
18878 (fwprop_addr): Likewise.
18880 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18883 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
18885 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
18886 * config/i386/i386.md (push mem splitter): Use find_constant_src in
18887 the splitter condition.
18888 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
18889 the splitter condition.
18890 (FP float_extend load splitter): Ditto.
18892 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
18894 * config/i386/i386.md (peehole2 patterns): Change true_regnum
18895 to REGNO in all peephole2 patterns.
18896 (post-reload splitters): Change true_regnum to REGNO in
18897 post-reload splitters.
18898 (zero_extend splitters): Use general_reg_operand and
18899 nonimmediate_gr_operand predicates.
18901 2016-05-05 Jakub Jelinek <jakub@redhat.com>
18903 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
18904 v constraint instead of x.
18906 2016-05-05 Alan Modra <amodra@gmail.com>
18909 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
18910 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
18911 TARGET_NO_FP_IN_TOC for -mrelocatable.
18912 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
18913 TARGET_RELOCATABLE test.
18914 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18915 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18916 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18917 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18918 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18919 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18920 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18921 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18922 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
18923 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18925 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
18926 (rs6000_stack_info): Likewise.
18927 (rs6000_elf_asm_out_constructor): Likewise.
18928 (rs6000_elf_asm_out_destructor): Likewise.
18929 (rs6000_elf_declare_function_name): Likewise.
18930 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
18931 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
18934 2016-05-05 Alan Modra <amodra@gmail.com>
18936 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
18938 2016-05-05 Alan Modra <amodra@gmail.com>
18940 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
18941 out-of-line gpr restore for one or two regs if that would add
18944 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
18947 * config/i386/i386.md
18948 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
18949 Change to post-epilogue_completed late splitter. Use sse_reg_operand
18950 as operand 0 predicate.
18951 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
18953 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
18954 Ditto. Emit the pattern using RTX.
18956 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
18957 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
18958 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
18959 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
18961 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
18962 sse_reg_operand as operand 0 predicate.
18964 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
18965 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
18966 instead of gen_rtx_REG.
18967 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
18970 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18972 * function.c (emit_use_return_register_into_block): Delete.
18973 (gen_return_pattern): Delete.
18974 (emit_return_into_block): Delete.
18975 (active_insn_between): Delete.
18976 (convert_jumps_to_returns): Delete.
18977 (emit_return_for_exit): Delete.
18978 (thread_prologue_and_epilogue_insns): Delete all code dealing with
18979 simple_return for shrink-wrapped blocks.
18980 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
18981 end of blocks that need one.
18982 (get_unconverted_simple_return): Delete.
18983 (convert_to_simple_return): Delete.
18984 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
18985 (convert_to_simple_return): Ditto.
18987 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18989 * cfgcleanup.c (bb_is_just_return): New function.
18990 (try_optimize_cfg): Simplify jumps to return, branches to return,
18991 and branches around return.
18993 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18995 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
18996 branch to a return.
18998 2016-05-04 Jakub Jelinek <jakub@redhat.com>
19002 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
19003 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
19004 assert flags & OEP_HASH_CHECK, instead of asserting it
19005 never happens. Handle TARGET_EXPR.
19006 * fold-const.c (operand_equal_p): For hash verification,
19007 or in OEP_HASH_CHECK into flags.
19009 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
19011 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
19013 (compute_samebase_partition_bases): Fix typo.
19015 2016-05-04 Jakub Jelinek <jakub@redhat.com>
19017 * config/i386/sse.md (vec_interleave_highv8sf,
19018 vec_interleave_lowv8sf, vec_interleave_highv4df,
19019 vec_interleave_lowv4df): Remove constraints from expanders.
19021 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
19023 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
19025 * tree-inline.c (expand_call_inline): Fix path dealing with
19026 making lhs of call statement undefined.
19028 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
19030 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19031 Check availability on NODE, too.
19032 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
19033 (cgraph_node::call_for_symbol_and_aliases): Likewise.
19034 (varpool_node::call_for_symbol_and_aliase): Likewise.
19035 * ipa-pure-const.c (add_new_function): Analyze all bodies.
19036 (propagate_pure_const): Propagate across interposable functions, too.
19037 (skip_function_for_local_pure_const): Do not skip interposable bodies
19039 (pass_local_pure_const::execute): Update.
19041 2016-05-04 Marek Polacek <polacek@redhat.com>
19043 * doc/invoke.texi: Document -Wdangling-else.
19045 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19047 * config.gcc: Error out when conflicting multilib is detected. Do not
19048 loop over multilibs since no combination is legal.
19050 2016-05-04 Alan Modra <amodra@gmail.com>
19052 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
19053 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
19054 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
19057 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
19059 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
19060 Clean up p5600 comments.
19062 2016-05-04 Richard Biener <rguenther@suse.de>
19064 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
19065 constructor simplifications.
19066 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
19068 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
19070 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
19071 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
19072 result.set_rtx is null instead of aborting.
19073 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
19075 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
19076 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
19077 *mov<mode>_store_postinc): New patterns.
19079 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
19081 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
19082 as commutative. Check both conversions are NOP.
19083 ((A & B) OP (C & B)): Remove.
19085 2016-05-04 Alan Modra <amodra@gmail.com>
19087 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
19089 2016-05-04 Alan Modra <amodra@gmail.com>
19092 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
19093 when cr2,3,4 are all fixed regs.
19095 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
19097 PR rtl-optimization/57193
19098 * opts.c (default_options_table): Revert OPT_frename_registers change.
19099 * doc/invoke.texi (-frename-registers, -O2): Likewise.
19101 2016-05-03 Martin Sebor <msebor@redhat.com>
19104 * builtins.c (fold_builtin_FILE): New function.
19105 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
19106 (fold_builtin_0): Call them.
19107 * gimplify.c (gimplify_call_expr): Remove the handling of
19108 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
19111 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
19112 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
19116 * doc/extend.texi (Function Names as Strings): Update __func__,
19117 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
19120 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19121 Richard Biener <rguenther@suse.de>
19123 PR tree-optimization/70916
19124 * tree-if-conv.c: Include cfganal.h.
19125 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
19126 and remove_fake_exit_edges around the optimization pass.
19128 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
19130 * cgraph.c (symbol_table::create_edge): Set inline_failed.
19131 (cgraph_edge::make_direct): Likewise.
19132 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
19133 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
19134 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
19135 (CIF_THUNK): New code.
19136 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
19137 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
19138 (compute_inline_parameters): Set inline_failed for thunks.
19139 (inline_analyze_function): Cleanup.
19140 * ipa-inline.c (can_inline_edge_p): Do not deal with
19141 call_stmt_cannot_inline_p.
19142 (can_early_inline_edge_p): Likewise.
19143 (early_inliner): Initialize inline_failed.
19144 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
19146 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
19148 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
19149 from nonimm_ssenomem_operand.
19150 (nonimm_ssenomem_operand): New predicate.
19151 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
19152 as operand 0 predicate.
19153 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
19154 Disable unsupported alternatives using "enabled" attribute.
19155 Use register_ssemem_operand as operand 0 predicate.
19156 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
19158 2016-05-03 Marek Polacek <polacek@redhat.com>
19161 * input.c (expansion_point_location): New function.
19162 * input.h (expansion_point_location): Declare.
19164 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
19166 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
19167 occurence with frame_offset_ ones.
19169 2016-05-03 Alan Modra <amodra@gmail.com>
19171 PR rtl-optimization/70890
19172 * ira.c (combine_and_move_insns): When moving def_insn, remove
19173 equivs on use_insn.
19175 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
19177 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
19178 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
19179 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
19180 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
19182 2016-05-03 Alan Modra <amodra@gmail.com>
19184 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
19185 for SAVE_MULTIPLE/STORE_MULTIPLE.
19187 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19189 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
19190 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
19192 2016-05-03 Richard Biener <rguenther@suse.de>
19194 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
19196 (gimplify_arg): Likewise.
19197 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
19198 re-writing the result to a decl if required.
19199 (internal_get_tmp_var): Add allow_ssa parameter
19200 and override into_ssa with it.
19201 (get_formal_tmp_var): Adjust.
19202 (get_initialized_tmp_var): Add allow_ssa parameter.
19203 (gimplify_arg): Add allow_ssa parameter and avoid generating
19204 SSA names for the result false.
19205 (gimplify_call_expr): If the call may return twice do not
19206 gimplify parameters into SSA.
19207 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
19208 (gimplify_modify_expr): Adjust assert. For noreturn calls
19209 with a SSA name LHS adjust its def.
19210 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
19211 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
19212 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
19213 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
19214 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
19215 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
19216 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
19217 (optimize_target_teams): Do not allow SSA names for clause operands.
19218 (gimplify_expr): Likewise for where we mark the result addressable.
19219 * passes.def (pass_init_datastructures): Remove.
19220 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
19221 (rewrite_stmt): Likewise.
19222 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
19223 (replace_locals_op): Replace SSA names.
19224 (copy_gimple_seq_and_replace_locals): Init src_cfun.
19225 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
19226 * cgraph.c (release_function_body): Free CFG annotations only
19227 when we have a CFG. Simplify.
19228 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
19229 force_gimple_operand instead of get_initialized_tmp_var.
19230 * tree-pass.h (make_pass_init_datastructures): Remove.
19231 * tree-ssa.c (execute_init_datastructures): Remove.
19232 (pass_data_init_datastructures): Likewise.
19233 (class pass_init_datastructures): Likewise.
19234 (make_pass_init_datastructures): Likewise.
19235 * omp-low.c (create_omp_child_function): Init SSA data structures.
19236 (grid_expand_target_grid_body): Likewise.
19237 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
19238 name before adding it to names_to_release.
19239 (remove_bb): Always release SSA defs.
19240 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
19241 before dereferencing it.
19242 * cgraphunit.c (init_lowered_empty_function): Always
19243 int SSA data structures.
19244 * tree-ssanames.c (release_defs): Remove assert that we are in
19246 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
19248 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19249 Uros Bizjak <ubizjak@gmail.com>
19251 PR rtl-optimization/70467
19252 * config/i386/predicates.md (x86_64_hilo_int_operand,
19253 x86_64_hilo_general_operand): New predicates.
19254 * config/i386/constraints.md (Wd): New constraint.
19255 * config/i386/i386.md (mode attr di): Use Wd instead of e.
19256 (general_hilo_operand): New mode attr.
19257 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
19258 instead of <general_operand>.
19259 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
19260 x86_64_hilo_general_operand instead of <general_operand>.
19262 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19264 PR tree-optimization/70916
19265 * tree-if-conv.c (constant_or_ssa_name): Removed.
19266 (fold_build_cond_expr): Use is_gimple_val instead of
19267 constant_or_ssa_name.
19269 PR tree-optimization/70916
19270 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
19271 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
19274 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
19275 (optimize_atomic_bit_test_and): New function.
19276 (pass_fold_builtins::execute): Use it.
19277 * optabs.def (atomic_bit_test_and_set_optab,
19278 atomic_bit_test_and_complement_optab,
19279 atomic_bit_test_and_reset_optab): New optabs.
19280 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
19281 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
19282 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
19283 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
19284 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
19285 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
19286 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
19287 * doc/md.texi (atomic_bit_test_and_set@var{mode},
19288 atomic_bit_test_and_complement@var{mode},
19289 atomic_bit_test_and_reset@var{mode}): Document.
19290 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
19291 atomic_bit_test_and_complement<mode>,
19292 atomic_bit_test_and_reset<mode>): New expanders.
19293 (atomic_bit_test_and_set<mode>_1,
19294 atomic_bit_test_and_complement<mode>_1,
19295 atomic_bit_test_and_reset<mode>_1): New insns.
19297 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
19299 PR rtl-optimization/70687
19300 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
19301 instead of unsigned HOST_WIDE_INT.
19303 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
19305 PR rtl-optimization/44281
19306 * hard-reg-set.h (struct target_hard_regs): New field
19307 x_fixed_nonglobal_reg_set.
19308 (fixed_nonglobal_reg_set): New macro.
19309 * reginfo.c (init_reg_sets_1): Initialize it.
19310 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
19312 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
19314 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19316 PR tree-optimization/56541
19317 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
19318 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
19319 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
19320 (any_complicated_phi): new static variable.
19321 (aggressive_if_conv): delete.
19322 (if_convertible_phi_p): support phis with more than two arguments.
19323 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
19324 critical pred edges.
19325 (ifcvt_split_critical_edges): support phis with more than two
19326 arguments by checking new parameter. only split critical edges
19328 (tree_if_conversion): handle simd pragma marked loop using new
19329 local variable aggressive_if_conv. check any_complicated_phi.
19331 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19333 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
19336 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19338 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
19341 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19343 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
19344 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
19345 define_insn_and_split.
19346 (mulsi3_i): New define_insn_and_split.
19347 (mulsi3_call): Convert to define_insn.
19348 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
19349 Remove constraints.
19351 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19353 * machmode.h (mode_complex): Add support to give the complex mode
19355 (GET_MODE_COMPLEX_MODE): Likewise.
19356 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
19357 stored by build_complex_type and gfc_build_complex_type instead of
19358 trying to figure out the appropriate mode based on the size. Raise
19359 an assertion error, if the type was not set.
19360 * genmodes.c (struct mode_data): Add field for the complex type of
19362 (blank_mode): Likewise.
19363 (make_complex_modes): Remember the complex mode created in the
19365 (emit_mode_complex): Write out the mode_complex array to map a
19366 type mode to the complex version.
19367 (emit_insn_modes_c): Likewise.
19368 * tree.c (build_complex_type): Set the complex type to use before
19369 calling layout_type.
19370 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
19371 support for __float128 complex datatypes.
19372 (rs6000_hard_regno_mode_ok): Likewise.
19373 (rs6000_setup_reg_addr_masks): Likewise.
19374 (rs6000_complex_function_value): Likewise.
19375 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
19376 __float128 and __ibm128 complex.
19377 (FLOAT128_IBM_P): Likewise.
19378 (ALTIVEC_ARG_MAX_RETURN): Likewise.
19379 * doc/extend.texi (Additional Floating Types): Document that
19380 -mfloat128 must be used to enable __float128. Document complex
19381 __float128 and __ibm128 support.
19383 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19386 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
19387 char/short arguments promoted to int because of promote_prototypes.
19389 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19391 * config/i386/predicates.md (register_ssemem_operand): New predicate.
19392 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
19393 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
19394 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
19395 alternatives using "enabled" attribute. Use register_ssemem_operand
19396 as operand 1 predicate.
19397 (*cmpi<unord>xf_i387): Split XFmode pattern from
19398 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
19399 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
19400 *absneg<mode>2_i387. Disable unsupported alternatives using
19401 "enabled" attribute.
19402 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
19404 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19406 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
19408 (oacc_loop_process): Check mask for loop termination.
19410 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19412 * cif-code.def (CIF_THUNK): Add.
19413 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
19416 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19418 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
19419 (dump_inline_summary): Dump it.
19420 (fp_expression_p): New predicate.
19421 (estimate_function_body_sizes): Use it.
19422 (inline_merge_summary): Merge fp_expressions.
19423 (inline_read_section): Read fp_expressions.
19424 (inline_write_summary): Write fp_expressions.
19425 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
19426 codegen boundary if either caller or callee is !fp_expressions.
19427 * ipa-inline.h (inline_summary): Add fp_expressions.
19428 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
19429 to fp_expressions be sure the fp generation flags are updated.
19431 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19433 PR rtl-optimization/70467
19434 * cse.c (cse_insn): Handle no-op MEM moves after folding.
19436 PR rtl-optimization/70467
19437 * ipa-pure-const.c (check_call): Handle internal calls even in
19438 ipa mode like in local mode.
19440 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19442 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
19444 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19446 * match.pd (X u< X, X u> X): New transformations.
19448 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19450 * flag-types.h (enum warn_strict_overflow_code): Move ...
19451 * coretypes.h: ... here.
19452 * fold-const.h (fold_overflow_warning): Declare.
19453 * fold-const.c (fold_overflow_warning): Make non-static.
19454 (fold_comparison): Move the transformation of X +- C1 CMP C2
19455 into X CMP C2 -+ C1 ...
19456 * match.pd: ... here.
19457 * gimple-fold.c (fold_stmt_1): Protect with
19458 fold_defer_overflow_warnings.
19460 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19462 * omp-low.c (struct oacc_loop): Add 'inner' field.
19463 (new_oacc_loop_raw): Initialize it to zero.
19464 (oacc_loop_fixed_partitions): Initialize it.
19465 (oacc_loop_auto_partitions): Partition outermost loop to outermost
19466 available partitioning.
19468 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19470 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
19472 (umulsidi3): Likewise.
19473 (indirect_jump): Fix jump instruction assembly patterns.
19475 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
19478 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
19479 (nvptx_function_value): Assert non-NULL cfun.
19481 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
19483 PR rtl-optimization/70886
19484 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
19486 * cselib.h (rtx_equal_for_cselib_1): Declare.
19487 (rtx_equal_for_cselib_p: New inline function.
19488 * cselib.c (rtx_equal_for_cselib_p): Delete.
19489 (rtx_equal_for_cselib_1): Make public.
19491 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19493 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
19494 (register_mixssei387nonimm_operand): Remove predicate.
19495 * config/i386/i386.md (*fop_<mode>_comm): Merge from
19496 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
19497 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
19498 for TARGET_MIX_SSE_I387 alternatives.
19499 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
19500 Disable unsupported alternatives using "enabled" attribute. Use
19501 nonimm_ssenomem_operand as operand 1 predicate. Also check
19502 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
19504 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19506 * tree.c (cst_and_fits_in_hwi): Simplify.
19508 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19510 * tree.h (wi::to_wide): New function.
19511 * expr.c (expand_expr_real_1): Use wi::to_wide.
19512 * fold-const.c (int_const_binop_1): Likewise.
19513 (extract_muldiv_1): Likewise.
19515 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19517 * wide-int.h: Update offset_int and widest_int documentation.
19518 (WI_SIGNED_SHIFT_RESULT): New macro.
19519 (wi::binary_shift): Define signed_shift_result_type for
19520 shifts on offset_int- and widest_int-like types.
19521 (generic_wide_int): Support <<= and >>= if << and >> are supported.
19522 * tree.h (int_bit_position): Use shift operators instead of wi::
19524 * alias.c (adjust_offset_for_component_ref): Likewise.
19525 * expr.c (get_inner_reference): Likewise.
19526 * fold-const.c (fold_comparison): Likewise.
19527 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
19528 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
19529 * tree-dfa.c (get_ref_base_and_extent): Likewise.
19530 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19531 (stmt_kills_ref_p): Likewise.
19532 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
19533 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
19534 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19535 (ao_ref_init_from_vn_reference): Likewise.
19537 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19539 * wide-int.h: Update offset_int and widest_int documentation.
19540 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
19541 (wi::binary_traits): Allow ordered comparisons between offset_int and
19542 offset_int, between widest_int and widest_int, and between either
19543 of these types and basic C types.
19544 (operator <, <=, >, >=): Define for the same combinations.
19545 * tree.h (tree_int_cst_lt): Use comparison operators instead
19546 of wi:: comparisons.
19547 (tree_int_cst_le): Likewise.
19548 * gimple-fold.c (fold_array_ctor_reference): Likewise.
19549 (fold_nonarray_ctor_reference): Likewise.
19550 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
19551 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
19552 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
19553 * tree-sra.c (completely_scalarize): Likewise.
19554 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
19555 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
19556 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
19557 (check_for_binary_op_overflow): Likewise.
19558 (search_for_addr_array): Likewise.
19559 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
19561 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19563 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
19564 (arc_save_restore): Likewise.
19565 (arc_dwarf_register_span): Likewise.
19566 (arc_output_pic_addr_const): Initialize suffix variable.
19568 2016-05-02 Martin Liska <mliska@suse.cz>
19570 * symbol-summary.h (function_summary::function_summary):
19571 Remove checking assert for all cgraph nodes.
19572 (function_summary::get): Check summary_uid.
19573 (symtab_insertion): Check summary_uid.
19575 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19577 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
19578 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
19579 bmaskn instruction.
19580 (arc_dwarf_register_span): Remove enum keyword.
19581 (compact_memory_operand_p): New function.
19582 * config/arc/arc.h (reg_class): Add code density register classes.
19583 (REG_CLASS_NAMES): Likewise.
19584 (REG_CLASS_CONTENTS): Likewise.
19585 * config/arc/arc.md (*movqi_insn): Add code density instructions.
19586 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
19587 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
19588 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
19589 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
19591 (h, Rcd, Rsd, Rzd): New register constraints.
19592 (T): Use compact_memory_operand_p function.
19593 * config/arc/predicates.md (compact_load_memory_operand): Remove.
19595 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19597 * config/sh/sh.md (*negnegt, *movtt): Remove.
19599 2016-05-02 Marek Polacek <polacek@redhat.com>
19600 Tom de Vries <tom@codesourcery.com>
19602 PR tree-optimization/70700
19603 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
19604 bigger than FIRST_REF_NODE.
19606 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19609 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
19611 (prepare_cbranch_operands): Don't use scratch register. Assume that
19612 function is used when pseudos can be created.
19613 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
19614 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
19615 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
19616 define_expand. Allow it only when pseudos can be created.
19617 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
19619 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
19621 * config/i386/constraints.md (BC): Only allow -1 operands.
19622 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
19623 Add "enabled" attribute. Update XI mode attribute calculation.
19624 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
19625 (*movoi_internal_avx): Update XI mode attribute calculation.
19626 (*movti_internal): Ditto.
19628 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19630 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
19631 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
19633 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
19635 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
19636 statement on instruction code. Remove trailing spaces.
19637 (altivec_expand_stv_builtin): Likewise.
19639 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19641 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
19642 (TARGET_FPU_DOUBLE): Simplify.
19643 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
19644 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
19645 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
19646 with 'TARGET_FPU_DOUBLE'.
19647 * config/sh/sh.md: Likewise.
19649 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
19651 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
19652 SH_DIV_STR_FOR_SIZE): Remove.
19653 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
19654 SH_DIV_STR_FOR_SIZE): Remove.
19656 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19658 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
19659 logical_reg_operand): Delete.
19660 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
19661 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
19662 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
19663 match_operand and match_test.
19664 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
19665 variables on their first use. Return bool values.
19666 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
19667 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
19668 arith_reg_operand for input operand. Remove empty constraints.
19670 (*xorsi3_compact): Rename to xorsi3.
19671 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
19672 (*zero_extend<mode>si2_disp_mem): Update comment.
19675 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19677 * config/sh/t-sh: Remove SH5 support.
19678 * config.gcc: Likewise.
19679 * configure: Likewise.
19681 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19683 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
19685 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19687 * config/sh/sh.c (register_sh_passes, sh_option_override,
19688 sh_print_operand, prepare_move_operands,
19689 sh_can_follow_jump): Remove TARGET_SH1 checks.
19690 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
19691 PROMOTE_MODE): Likewise.
19692 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
19695 2016-04-30 Alan Modra <amodra@gmail.com>
19697 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
19698 restoring when fixed_reg_p, but allow out-of-line or stmw save.
19699 Check for user regs later to avoid unnecessary looping over regs.
19700 Merge user reg check with non-saved reg check. Don't force
19701 inline VR restore when static chain used.
19702 (rs6000_frame_related): Omit eh_frame info for user regs when
19704 (fixed_regs_p): Delete.
19706 2016-04-30 Alan Modra <amodra@gmail.com>
19708 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
19709 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
19712 2016-04-30 Alan Modra <amodra@gmail.com>
19715 * config/rs6000/rs6000.c (fixed_reg_p): New function.
19716 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
19719 2016-04-30 Alan Modra <amodra@gmail.com>
19721 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
19722 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
19723 flag_pic test for Darwin.
19725 2016-04-30 Alan Modra <amodra@gmail.com>
19727 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
19728 throw_calls_crossed.
19729 (REG_FREQ_CALLS_CROSSED): Delete.
19730 (REG_N_THROWING_CALLS_CROSSED): Delete.
19731 * regstat.c (regstat_bb_compute_ri): Don't calculate
19732 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
19733 (dump_reg_info): Don't print call cross frequency.
19734 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
19735 and REG_N_THROWING_CALLS_CROSSED.
19737 2016-04-30 Alan Modra <amodra@gmail.com>
19739 * regs.h (struct reg_info_t): Delete live_length.
19740 (REG_LIVE_LENGTH): Delete macro.
19741 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
19742 local_live, local_processed and local_live_last_luid params.
19743 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
19745 (regstat_compute_ri): Adjust for above. Don't set
19747 (dump_reg_info): Don't print live length.
19748 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
19749 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
19750 Localize loop_depth var.
19752 2016-04-30 Alan Modra <amodra@gmail.com>
19754 * ira.c (enum valid_equiv): New.
19755 (validate_equiv_mem): Return enum.
19756 (update_equiv_mem): Create replacement in more cases.
19757 (add_store_equivs): Update validate_equiv_mem call.
19759 2016-04-30 Alan Modra <amodra@gmail.com>
19761 * ira.c (combine_and_move_insns): Rather than scanning insns,
19762 use DF infrastucture to find use and def insns.
19764 2016-04-30 Alan Modra <amodra@gmail.com>
19766 ira.c (combine_and_move_insns): Move invariant conditions..
19767 (ira.c): ..to here. Call combine_and_move_insns before
19768 add_store_equivs. Call grow_reg_equivs later. Allocate
19769 req_equiv later using max_reg_num() rather than global max_regno.
19770 (contains_replace_regs): Delete.
19771 (add_store_equivs): Remove contains_replace_regs test.
19773 2016-04-30 Alan Modra <amodra@gmail.com>
19775 * ira.c (struct equiv_mem_data): New.
19776 (equiv_mem, equiv_mem_modified): Delete static vars.
19777 (validate_equiv_mem_from_store): Use "data" param to communicate..
19778 (validate_equiv_mem): ..from here.
19780 2016-04-30 Alan Modra <amodra@gmail.com>
19782 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
19784 (update_reg_equivs): ..here. Move allocation and freeing of
19785 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
19786 end_alias_analysis to..
19789 2016-04-30 Alan Modra <amodra@gmail.com>
19791 * ira.c (pdx_subregs): Delete.
19792 (struct equivalence): Add pdx_subregs field.
19793 (set_paradoxical_subreg): Remove pdx_subregs param. Update
19794 pdx_subregs access.
19795 (update_equiv_regs): Don't create or free pdx_subregs. Update
19796 pdx_subregs access.
19798 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19800 * config/rs6000/altivec.h: Change definitions of vec_xl and
19802 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
19803 (LD_ELEMREV_V2DI): New.
19804 (LD_ELEMREV_V4SF): New.
19805 (LD_ELEMREV_V4SI): New.
19806 (LD_ELEMREV_V8HI): New.
19807 (LD_ELEMREV_V16QI): New.
19808 (ST_ELEMREV_V2DF): New.
19809 (ST_ELEMREV_V2DI): New.
19810 (ST_ELEMREV_V4SF): New.
19811 (ST_ELEMREV_V4SI): New.
19812 (ST_ELEMREV_V8HI): New.
19813 (ST_ELEMREV_V16QI): New.
19816 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19817 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
19818 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
19819 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
19820 (altivec_expand_builtin): Add handling for
19821 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
19822 (rs6000_invalid_builtin): Add error-checking for
19823 RS6000_BTM_P9_VECTOR.
19824 (altivec_init_builtins): Define builtins used to implement vec_xl
19826 (rs6000_builtin_mask_names): Define power9-vector.
19827 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
19828 (RS6000_BTM_P9_VECTOR): Define.
19829 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
19830 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
19831 (vsx_ld_elemrev_v2df): Likewise.
19832 (vsx_ld_elemrev_v4sf): Likewise.
19833 (vsx_ld_elemrev_v4si): Likewise.
19834 (vsx_ld_elemrev_v8hi): Likewise.
19835 (vsx_ld_elemrev_v16qi): Likewise.
19836 (vsx_st_elemrev_v2df): Likewise.
19837 (vsx_st_elemrev_v2di): Likewise.
19838 (vsx_st_elemrev_v4sf): Likewise.
19839 (vsx_st_elemrev_v4si): Likewise.
19840 (vsx_st_elemrev_v8hi): Likewise.
19841 (vsx_st_elemrev_v16qi): Likewise.
19842 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
19845 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
19847 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
19849 (simplify_control_stmt_condition_1): ... here. Recurse into
19850 BIT_AND_EXPRs and BIT_IOR_EXPRs.
19852 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
19855 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
19856 (zero_extendqi<mode>2_dot): Revert earlier conversion from
19857 define_insn_and_split to define_insn.
19858 (zero_extendqi<mode>2_dot2): Same.
19859 (extendqi<mode>2_dot): Same.
19860 (extendqi<mode>2_dot2): Same.
19862 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19864 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
19865 (probe_stack): New expander.
19866 (probe_stack_<mode>): New insn pattern.
19868 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19870 * config/i386/i386.md
19871 (operations with memory inputs setting flags peephole2):
19872 Remove uneeded REG_P checks. Cleanup pattern generation.
19874 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
19876 * tree-vect-loop.c (vect_transform_loop): Fix
19877 nb_iterations_upper_bound computation for vectorized loop.
19879 2016-04-29 Marek Polacek <polacek@redhat.com>
19880 Jakub Jelinek <jakub@redhat.com>
19883 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
19884 TARGET_EXPR_SLOT as a base.
19886 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
19888 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
19889 with 'rCm2' constraints to limit possible immediate size.
19890 (*load_zeroextendqisi_update): Likewise.
19891 (*load_signextendqisi_update): Likewise.
19892 (*loadhi_update): Likewise.
19893 (*load_zeroextendhisi_update): Likewise.
19894 (*load_signextendhisi_update): Likewise.
19895 (*loadsi_update): Likewise.
19896 (*loadsf_update): Likewise.
19898 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19900 * config/i386/predicates.md (constm1_operand): Fix comparison.
19902 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19904 * testsuite/gcc.target/arc/ieee_eq.c: New test.
19906 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
19908 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
19909 remaining SH5 related settings.
19910 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
19911 shmedia_prepare_call_address): Delete.
19912 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
19913 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
19914 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
19915 UNSUPPORTED_SH2A): Remove m5 checks.
19916 (sh_divide_strategy_e): Remove SH5 division strategies.
19917 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
19918 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
19920 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19922 * config/s390/s390.c (s390_rtx_costs): Update documentation.
19924 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19926 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
19927 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
19928 Change lder to ldr.
19929 * config/s390/vector.md ("mov<mode>"): Likewise.
19931 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
19933 * config/s390/constraints.md ("U", "W"): Invoke
19934 s390_mem_constraint with "ZR" and "ZT".
19935 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
19936 addresses when using LRA. Accept also short displacements for S
19937 and T constraints. Do not check for long displacement target for
19938 S and T constraints.
19939 (s390_mem_constraint): Remove handling of U and W constraints.
19940 * config/s390/s390.md (various patterns): Remove the short
19941 displacement constraints (Q and R) if a long displacement
19942 constraint is present. Add longdisp as required CPU capability.
19943 * config/s390/vector.md: Likewise.
19944 * config/s390/vx-builtins.md: Likewise.
19946 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19949 * reload1.c (reload): Call finish_spills before
19950 restarting reload loop. Skip select_reload_regs
19951 if update_eliminables_and_spill returns true.
19953 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19955 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
19956 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
19957 (umulhisi3_imm): Update predicates and constraint letters.
19958 (umulhisi3_reg): Declare instruction as commutative.
19959 * config/arc/constraints.md (J12, J16): New constraints.
19960 * config/arc/predicates.md (short_unsigned_const_operand): New
19962 (arc_short_operand): Likewise.
19963 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
19965 2016-04-29 Richard Biener <rguenther@suse.de>
19967 PR tree-optimization/13962
19968 PR tree-optimization/65686
19969 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
19970 * tree-ssa-alias.c (ptrs_compare_unequal): New function
19971 using PTA to compare pointers.
19972 * match.pd: Add pattern for pointer equality compare simplification
19973 using ptrs_compare_unequal.
19975 2016-04-29 Richard Biener <rguenther@suse.de>
19977 * stor-layout.c (layout_type): Do not build a pointer-to-element
19980 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19982 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
19983 Use SWI mode iterator. Use general_reg_operand predicate.
19984 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
19985 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
19988 2016-04-29 Jakub Jelinek <jakub@redhat.com>
19990 PR middle-end/70843
19991 * fold-const.c (operand_equal_p): Don't verify hash value equality
19993 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
19996 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19999 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
20000 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
20001 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
20002 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
20003 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
20005 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
20007 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
20008 to info. Don't initialize separate fields to 0. Clean up
20011 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20013 * config/i386/i386.md (peephole2s for operations with memory inputs):
20014 Use SWI mode iterator.
20015 (peephole2s for operations with memory outputs): Ditto.
20016 Do not check for stack checking probe.
20018 (probe_stack): Remove expander.
20020 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
20021 Andrew Burgess <andrew.burgess@embecosm.com>
20023 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
20024 operands as 32-bits.
20026 2016-04-28 Jason Merrill <jason@redhat.com>
20028 * gdbinit.in: Skip line-map.h.
20030 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
20031 Andrew Burgess <andrew.burgess@embecosm.com>
20033 * config/arc/arc.c (arc_conditional_register_usage): Take
20034 TARGET_RRQ_CLASS into account.
20035 (arc_print_operand): Support printing 'p' and 's' operands.
20036 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
20038 (TARGET_RRQ_CLASS): Define.
20039 (IS_POWEROF2_OR_0_P): Define.
20040 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
20042 (*tst_movb): New define_insn.
20043 (*tst): Avoid recognition if it could prevent '*tst_movb'
20044 combination; replace c/CnL with c/Chs alternative.
20045 (*tst_bitfield_tst): New define_insn.
20046 (*tst_bitfield_asr): New define_insn.
20047 (*tst_bitfield): New define_insn.
20048 (andsi3_i): Add Rrq variant.
20049 (extzv): New define_expand.
20050 (insv): New define_expand.
20051 (*insv_i): New define_insn.
20052 (*movb): New define_insn.
20053 (*movb_signed): New define_insn.
20054 (*movb_high): New define_insn.
20055 (*movb_high_signed): New define_insn.
20056 (*movb_high_signed + 1): New define_split pattern.
20057 (*mrgb): New define_insn.
20058 (*mrgb + 1): New define_peephole2 pattern.
20059 (*mrgb + 2): New define_peephole2 pattern.
20060 * config/arc/arc.opt (mbitops): New option for nps400, uses
20061 TARGET_NPS_BITOPS_DEFAULT.
20062 * config/arc/constraints.md (q): Make register class conditional.
20063 (Rrq): New register constraint.
20064 (Chs): New constraint.
20065 (Clo): New constraint.
20066 (Chi): New constraint.
20067 (Cbf): New constraint.
20068 (Cbn): New constraint.
20069 (C18): New constraint.
20070 (Cbi): New constraint.
20072 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
20074 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
20076 (bitmap_intersection_of_preds): Ditto.
20077 (bitmap_union_of_succs): Ditto.
20078 (bitmap_union_of_preds): Ditto.
20079 * sbitmap.c (do_popcount): Delete.
20080 (BITMAP_DEBUGGING): Delete.
20081 (sbitmap_verify_popcount): Delete.
20082 (sbitmap_alloc): Don't initialize the popcount field.
20083 (sbitmap_alloc_with_popcount): Delete.
20084 (sbitmap_resize): Don't resize the popcount array.
20085 (sbitmap_vector_alloc): Don't initialize the popcount field.
20086 (bitmap_copy): Don't copy the popcount array.
20087 (bitmap_clear): Don't clear the popcount array.
20088 (bitmap_clear): Delete the popcount array handling.
20089 (bitmap_ior_and_compl): Delete the popcount assert.
20090 (bitmap_not): Ditto.
20091 (bitmap_and_compl): Ditto.
20092 (bitmap_and): Delete the popcount array handling.
20093 (bitmap_xor): Ditto.
20094 (bitmap_ior): Ditto.
20095 (bitmap_or_and): Delete the popcount assert.
20096 (bitmap_and_or): Ditto.
20097 (popcount_table): Delete.
20098 (sbitmap_elt_popcount): Delete.
20099 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
20100 (bitmap_set_bit): Delete the popcount assert.
20101 (bitmap_clear_bit): Ditto.
20102 (sbitmap_free): Don't free the popcount array.
20103 (sbitmap_alloc_with_popcount): Delete declaration.
20104 (sbitmap_popcount): Ditto.
20106 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
20107 Andrew Burgess <andrew.burgess@embecosm.com>
20109 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
20110 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
20111 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
20112 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
20113 * config/arc/arc.opt (mcmem): New option.
20114 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
20115 supply length for r/m alternative.
20116 (*extendqisi2_ac): Likewise.
20117 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
20119 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
20120 (movhi_insn): Likewise.
20121 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
20122 (*zero_extendqihi2_i): Add r/Ucm alternative.
20123 (*zero_extendqisi2_ac): Likewise.
20124 (*zero_extendhisi2_i): Likewise.
20125 * config/arc/constraints.md (Uex): New memory constraint.
20126 (Ucm): New define_constraint.
20127 * config/arc/predicates.md (long_immediate_loadstore_operand):
20128 Return 0 for MEM with cmem_address address.
20129 (cmem_address_0): New predicates.
20130 (cmem_address_1): Likewise.
20131 (cmem_address_2): Likewise.
20132 (cmem_address): Likewise.
20134 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
20136 * config/rs6000/rs6000.c (machine_function): Rename
20137 insn_chain_scanned_p to spe_insn_chain_scanned_p.
20138 (rs6000_stack_info): Adjust.
20140 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
20141 Andrew Burgess <andrew.burgess@embecosm.com>
20143 * config/arc/constraints.md (Usd): Convert to define_constraint.
20147 2016-04-28 Jakub Jelinek <jakub@redhat.com>
20150 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
20151 Add new peephole2 where the first insn is *mov<mode>_or instead of
20152 *mov<mode>_internal.
20154 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
20156 * tracer.c (bb_seen): Make static.
20158 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
20160 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
20161 support, setup defaults.
20162 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
20163 * config/arc/arc.c (arc_init): Add NPS400 support.
20164 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
20165 (TARGET_ARC700): NPS400 is also an ARC700.
20166 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
20168 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
20171 * config/nds32/nds32.md (casesi): Don't access the operands array
20174 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20176 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
20177 (or $-1,reg peephole2): Ditto.
20178 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
20180 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20182 * doc/extend.texi (Common Function Attributes) [optimize]:
20183 Discourage use of the optimize attribute.
20185 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
20187 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
20188 special case builtin.
20189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20190 ALTIVEC_BUILTIN_VEC_ADDE.
20191 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20192 support for ALTIVEC_BUILTIN_VEC_ADDE.
20193 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20194 for __builtin_vec_adde.
20196 2016-04-28 Jakub Jelinek <jakub@redhat.com>
20198 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
20199 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
20201 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20204 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20205 attributes): Document cilkplus_runtime.
20207 2016-04-28 Martin Jambor <mjambor@suse.cz>
20209 * tree-cfg.c (verify_expr): Verify that local declarations belong to
20210 this function. Call verify_expr on MEM_REFs and bases of other
20211 handled_components.
20213 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20215 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
20216 for WORD_REGISTER_OPERATIONS to runtime check.
20218 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20220 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
20222 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20224 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
20225 big-endian compilation.
20226 * config/arc/arc.md (addf3): Likewise.
20227 (subdf3): Likewise.
20228 (muldf3): Likewise.
20230 2016-04-28 Richard Biener <rguenther@suse.de>
20232 PR tree-optimization/70840
20233 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
20234 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
20235 Mark x * pow(x,c) -> pow(x,c+1) commutative.
20236 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
20238 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20240 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
20241 and explain why in a comment.
20243 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20245 * config/arc/arc.md (cpu_facility): Add fpx variant.
20246 (subdf3): Prohibit use reverse sub when assist operations option
20248 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
20249 instructions only when FPX is enabled.
20250 * testsuite/gcc.target/arc/trsub.c: New test.
20252 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20254 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
20255 mult_operator when calculating "type" attribute.
20256 (*fop_<mode>_1_i387): Ditto.
20257 (*fop_xf_1_i387): Ditto.
20258 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
20259 Use std::swap to swap operands. Use RTL expressions to generate
20262 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20263 Joern Rennecke <joern.rennecke@embecosm.com>
20265 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
20267 (emit_pic_move): Remove.
20268 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
20269 * config/arc/arc.c (emit_pic_move): Removed.
20270 (TARGET_HAVE_TLS): Define.
20271 (arc_conditional_register_usage): Test for arc_tp_regno.
20272 (arc_print_operand, arc_print_operand_address): Handle TLS
20274 (arc_needs_pcl_p): New function.
20275 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
20276 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
20277 (arc_raw_symbolic_reference_mentioned_p): Likewise.
20278 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
20279 (arc_legitimize_tls_address): Likewise.
20280 (DTPOFF_ZERO_SYM): Define.
20281 (arc_legitimize_pic_address): Make it static, handle TLS cases.
20282 (arc_output_pic_addr_const): Print TLS unspecs.
20283 (prepare_pic_move): New function, replaces emit_pic_move.
20284 (arc_legitimate_constant_p): Handle TLS unspecs.
20285 (arc_legitimate_address_p): Likewise.
20286 (arc_rewrite_small_data_p): Use assert for TLS constants.
20287 (prepare_move_operands): Use prepare_pic_move.
20288 (arc_legitimize_address): Legitimize tls addresses.
20289 (arc_epilogue_uses): Check for arc_tp_regno.
20290 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
20291 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
20293 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
20295 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
20296 %(arc_tls_extra_start_spec).
20297 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
20298 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
20300 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
20301 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
20302 (UNSPEC_TLS_OFF): Add.
20304 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
20305 (get_thread_pointersi): New patterns.
20306 * config/arc/arc.opt (mtp-regno): New option.
20307 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
20308 (move_dest_operand): Likewise.
20309 * configure: Regenerate.
20310 * configure.ac: Add arc*-*-* case to test for tls.
20311 * doc/invoke.texi (ARC options): Document mtp-regno.
20313 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20315 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
20316 the new ARC HS SIMD instructions.
20317 (arc_preferred_simd_mode): New function.
20318 (arc_autovectorize_vector_sizes): Likewise.
20319 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20320 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20321 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
20322 (arc_init_builtins): Add new SIMD builtin types.
20323 (arc_split_move): Handle 64 bit vector moves.
20324 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
20325 (TARGET_PLUS_QMACW): Define.
20326 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
20327 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
20328 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
20329 (VSUBADD4H): New builtins.
20330 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
20331 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
20333 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
20334 Matthias Klose <doko@debian.org>
20336 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
20338 2016-04-28 Richard Biener <rguenther@suse.de>
20340 PR middle-end/70777
20341 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
20344 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
20346 * common/config/sh/sh-common.c: Remove SH5 support.
20347 * config/sh/constraints.md: Likewise.
20348 * config/sh/config/sh/elf.h: Likewise.
20349 * config/sh/linux.h: Likewise.
20350 * config/sh/netbsd-elf.h: Likewise.
20351 * config/sh/predicates.md: Likewise.
20352 * config/sh/sh-c.c: Likewise.
20353 * config/sh/sh-protos.h: Likewise.
20354 * config/sh/sh.c: Likewise.
20355 * config/sh/sh.h: Likewise.
20356 * config/sh/sh.md: Likewise.
20357 * config/sh/sh.opt: Likewise.
20358 * config/sh/sync.md: Likewise.
20359 * config/sh/sh64.h: Delete.
20360 * config/sh/shmedia.h: Likewise.
20361 * config/sh/shmedia.md: Likewise.
20362 * config/sh/sshmedia.h: Likewise.
20363 * config/sh/t-netbsd-sh5-64: Likewise.
20364 * config/sh/t-sh64: Likewise.
20365 * config/sh/ushmedia.h: Likewise.
20367 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20369 * config/i386/i386.md (sign_extend to memory peephole2s): Use
20370 general_reg_operand instead of register_operand predicate.
20372 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20374 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
20376 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
20378 * match.pd (A - B > A, A + B < A): New transformations.
20380 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
20382 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
20383 which defaults to true. Emit an outer pair of parentheses only if
20384 EMIT_PARENS. When continuing a chain of && or || (or & or |),
20385 don't emit parentheses for the right-hand operand.
20387 2016-04-27 Jeff Law <law@redhat.com>
20389 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
20391 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20393 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
20394 (altivec_lvx_<mode>_internal): Document.
20395 (altivec_lvx_<mode>_2op): New define_insn.
20396 (altivec_lvx_<mode>_1op): Likewise.
20397 (altivec_lvx_<mode>_2op_si): Likewise.
20398 (altivec_lvx_<mode>_1op_si): Likewise.
20399 (altivec_stvx_<mode>): Remove.
20400 (altivec_stvx_<mode>_internal): Document.
20401 (altivec_stvx_<mode>_2op): New define_insn.
20402 (altivec_stvx_<mode>_1op): Likewise.
20403 (altivec_stvx_<mode>_2op_si): Likewise.
20404 (altivec_stvx_<mode>_1op_si): Likewise.
20405 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20406 Expand vec_ld and vec_st during parsing.
20407 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
20409 (altivec_expand_stvx_be): Likewise.
20410 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
20411 address-masking behavior in RTL.
20412 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
20413 address-masking behavior in RTL.
20414 (altivec_expand_builtin): Change builtin code arguments for calls
20415 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
20416 (insn_is_swappable_p): Avoid incorrect swap optimization in the
20417 presence of lvx/stvx patterns.
20418 (alignment_with_canonical_addr): New function.
20419 (alignment_mask): Likewise.
20420 (find_alignment_op): Likewise.
20421 (recombine_lvx_pattern): Likewise.
20422 (recombine_stvx_pattern): Likewise.
20423 (recombine_lvx_stvx_patterns): Likewise.
20424 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
20425 stvx patterns from expand.
20426 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
20428 (vector_altivec_store_<mode>): Likewise.
20430 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
20432 * config/aarch64/aarch64.md
20433 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
20434 remove the "fp" attributes.
20435 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
20436 add the "simd" attributes.
20437 (*movdf_aarch64): Likewise.
20438 (*movtf_aarch64): Remove the "fp" attributes.
20439 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
20440 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
20442 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20444 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
20445 rtx to rtx_code_label *.
20446 * rtl.h (maybe_set_first_label_num): Likewise.
20448 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20450 * df-core.c (df_add_problem): Make the problem param be const.
20451 (df_remove_problem): Make local "problem" be const.
20452 * df-problems.c (problem_RD): Make const.
20453 (problem_LR): Likewise.
20454 (problem_LIVE): Likewise.
20455 (problem_MIR): Likewise.
20456 (problem_CHAIN): Likewise.
20457 (problem_WORD_LR): Likewise.
20458 (problem_NOTE): Likewise.
20459 (problem_MD): Likewise.
20460 * df-scan.c (problem_SCAN): Likewise.
20461 * df.h (struct df_problem): Make field "dependent_problem" be
20463 (struct dataflow): Likewise for field "problem".
20464 (df_add_problem): Make param const.
20466 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20468 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
20469 inter-unit moves to/from vector registers are enabled. Do not disable
20472 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20474 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
20475 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
20477 (enum df_problem_id): ...this new enum.
20478 (struct df_problem): Convert field "id" from "int" to
20479 enum df_problem_id.
20481 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20483 * rtl.def: Update comment for "things in the instruction chain" to
20484 reflect the removal of the leading "i" field for INSN_UID in
20485 r210360. Fix bogus apostrophe.
20487 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20489 * config/i386/i386.md
20490 (lea arith with mem operand + setcc peephole2): Set operator mode.
20492 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
20495 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
20496 (dimode_scalar_to_vector_candidate_p): This.
20497 (timode_scalar_to_vector_candidate_p): New function.
20498 (scalar_to_vector_candidate_p): Likewise.
20499 (timode_check_non_convertible_regs): Likewise.
20500 (timode_remove_non_convertible_regs): Likewise.
20501 (remove_non_convertible_regs): Likewise.
20502 (remove_non_convertible_regs): Renamed to ...
20503 (dimode_remove_non_convertible_regs): This.
20504 (scalar_chain::~scalar_chain): Make it virtual.
20505 (scalar_chain::compute_convert_gain): Make it pure virtual.
20506 (scalar_chain::mark_dual_mode_def): Likewise.
20507 (scalar_chain::convert_insn): Likewise.
20508 (scalar_chain::convert_registers): Likewise.
20509 (scalar_chain::add_to_queue): Make it protected.
20510 (scalar_chain::emit_conversion_insns): Likewise.
20511 (scalar_chain::replace_with_subreg): Likewise.
20512 (scalar_chain::replace_with_subreg_in_insn): Likewise.
20513 (scalar_chain::convert_op): Likewise.
20514 (scalar_chain::convert_reg): Likewise.
20515 (scalar_chain::make_vector_copies): Likewise.
20516 (scalar_chain::convert_registers): New pure virtual function.
20517 (class dimode_scalar_chain): New class.
20518 (class timode_scalar_chain): Likewise.
20519 (scalar_chain::mark_dual_mode_def): Renamed to ...
20520 (dimode_scalar_chain::mark_dual_mode_def): This.
20521 (timode_scalar_chain::mark_dual_mode_def): New function.
20522 (timode_scalar_chain::convert_insn): Likewise.
20523 (dimode_scalar_chain::convert_registers): Likewise.
20524 (scalar_chain::compute_convert_gain): Renamed to ...
20525 (dimode_scalar_chain::compute_convert_gain): This.
20526 (scalar_chain::replace_with_subreg): Renamed to ...
20527 (dimode_scalar_chain::replace_with_subreg): This.
20528 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
20529 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
20530 (scalar_chain::make_vector_copies): Renamed to ...
20531 (dimode_scalar_chain::make_vector_copies): This.
20532 (scalar_chain::convert_reg): Renamed to ...
20533 (dimode_scalar_chain::convert_reg ): This.
20534 (scalar_chain::convert_op): Renamed to ...
20535 (dimode_scalar_chain::convert_op): This.
20536 (scalar_chain::convert_insn): Renamed to ...
20537 (dimode_scalar_chain::convert_insn): This.
20538 (scalar_chain::convert): Call convert_registers.
20539 (convert_scalars_to_vector): Change to scalar_chain pointer to
20540 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
20541 in 32-bit mode. Delete scalar_chain pointer. Call
20542 free_dominance_info in 64-bit mode.
20543 (pass_stv::gate): Remove TARGET_64BIT check.
20544 (ix86_option_override): Put the 64-bit STV pass before the CSE
20547 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
20549 * dwarf2out.h (struct dw_loc_descr_node): Remove the
20550 dw_loc_frame_offset field.
20551 * dwarf2out.c (new_loc_descr): Likewise.
20552 (resolve_args_picking_1): Turn the VISITED hash set into a
20553 FRAME_OFFSET hash map. Use it to associate a frame offset to
20554 visited nodes. Remove uses of the CHECKING_P macro.
20555 (resolve_args_picking): Update call to resolve_args_picking_1.
20557 2016-04-27 Martin Liska <mliska@suse.cz>
20559 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
20560 (free_loop_data): Release vuses of groups.
20562 2016-04-27 Bin Cheng <bin.cheng@arm.com>
20564 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
20565 instead of redundant use_id and boolean have_use_for.
20566 (struct iv_use): Change sub_id into group_id. Remove field next.
20567 Move fields: related_cands, n_map_members, cost_map and selected
20569 (struct iv_group): ... here. New structure.
20570 (struct iv_common_cand): Use structure declaration directly.
20571 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
20572 (MAX_CONSIDERED_USES): Rename macro to ...
20573 (MAX_CONSIDERED_GROUPS): ... here.
20574 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
20575 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
20576 (dump_uses): Rename to ...
20577 (dump_groups): ... here. Update all uses.
20578 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
20579 (find_induction_variables): Refactor format of dump information.
20580 (record_sub_use): Delete.
20581 (record_use): Update all uses.
20582 (record_group): New function.
20583 (record_group_use, find_interesting_uses_op): Call above functions.
20585 (find_interesting_uses_cond): Ditto.
20586 (group_compare_offset): New function.
20587 (split_all_small_groups): Rename to ...
20588 (split_small_address_groups_p): ... here. Update all uses.
20589 (split_address_groups): Update all uses.
20590 (find_interesting_uses): Refactor format of dump information.
20591 (add_candidate_1): Update all uses. Remove redundant check on iv,
20593 (add_candidate, record_common_cand): Remove redundant assert.
20594 (add_iv_candidate_for_biv): Update use.
20595 (add_iv_candidate_derived_from_uses): Update all uses.
20596 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
20597 (alloc_use_cost_map): Ditto.
20598 (set_use_iv_cost, get_use_iv_cost): Rename to ...
20599 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
20600 (determine_use_iv_cost_generic): Ditto.
20601 (determine_group_iv_cost_generic): Ditto.
20602 (determine_use_iv_cost_address): Ditto.
20603 (determine_group_iv_cost_address): Ditto.
20604 (determine_use_iv_cost_condition): Ditto.
20605 (determine_group_iv_cost_cond): Ditto.
20606 (determine_use_iv_cost): Ditto.
20607 (determine_group_iv_cost): Ditto.
20608 (set_autoinc_for_original_candidates): Update all uses.
20609 (find_iv_candidates): Update all uses. Refactor dump information.
20610 (determine_use_iv_costs): Ditto.
20611 (determine_iv_costs): Ditto.
20612 (iv_ca_cand_for_use): Rename to ...
20613 (iv_ca_cand_for_group): ... here. Update all uses.
20614 (iv_ca_add_use, iv_ca_add_group): Ditto.
20615 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
20616 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
20617 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
20618 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
20619 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
20620 (create_new_iv, adjust_iv_update_pos): Ditto.
20621 (rewrite_use_address): Delete.
20622 (rewrite_use_address_1): Rename to ...
20623 (rewrite_use_address): ... here.
20624 (rewrite_use_compare): Update all uses.
20625 (rewrite_use): Delete.
20626 (rewrite_uses): Rename to ...
20627 (rewrite_groups): ... here. Update all uses.
20628 (remove_unused_ivs, free_loop_data): Update all uses.
20629 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
20631 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20633 * rtlanal.c (nonzero_bits1): Convert preprocessor check
20634 for WORD_REGISTER_OPERATIONS to runtime check.
20636 2016-04-27 Richard Biener <rguenther@suse.de>
20639 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
20640 aggregate_value_p to determine if a function result is
20641 returned by reference.
20642 (ipa_pta_execute): Functions having their address taken are
20643 not automatically nonlocal.
20645 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20648 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
20649 * fold-const.c (operand_equal_p): If flag_checking and
20650 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
20651 and if it returns non-zero, assert iterative_hash_expr on both
20654 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20656 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
20658 2016-04-27 Nick Clifton <nickc@redhat.com>
20660 PR middle-end/49889
20661 * varasm.c (merge_weak): Generate an error if an attempt is made
20662 to convert a non-weak static function into a weak, public function.
20664 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20666 * params.def (MAX_PARTITION_SIZE): New param.
20667 * doc/invoke.texi: Document lto-max-partition.
20669 2016-04-27 Richard Biener <rguenther@suse.de>
20672 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
20673 function cummulating used_from_other_partition, externally_visible
20674 and force_output from aliases.
20675 (refered_from_nonlocal_var): Likewise.
20676 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
20677 node flags properly.
20679 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20681 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
20682 (-Wmemset-elt-size): New item.
20684 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
20687 * stor-layout.h (internal_reference_types): Delete.
20688 * stor-layout.c (reference_types_internal): Likewise.
20689 (internal_reference_types): Likewise.
20690 (layout_type) <REFERENCE_TYPE>: Adjust.
20692 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20695 * tree.h (inchash::add_expr): Add FLAGS argument.
20696 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
20697 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
20698 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
20699 Formatting fix. Adjust recursive calls. For tcc_comparison,
20700 if swap_tree_comparison (code) is smaller than code, hash that
20701 and arguments in the other order. Hash CONVERT_EXPR the same
20702 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
20703 of ADDR_EXPR of decl as the decl itself. Add or remove
20704 OEP_ADDRESS_OF from recursive flags as needed. For
20705 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
20706 operands commutatively and only the third one normally.
20707 For internal CALL_EXPR hash in CALL_EXPR_IFN.
20709 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
20711 * config/rtems.h (LIB_SPEC): Add -latomic.
20713 2016-04-27 Joel Sherrill <joel@rtems.org>
20715 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
20716 xilink.ld and flags not relevant to RTEMS.
20718 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20720 * toplev.c (backend_init_target): Avoid calling init_reload when using
20723 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20725 * reorg.c (try_merge_delay_insns): Declare i and j inside the
20726 for loops rather than one for the whole function.
20728 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20730 * match.pd (X + CST CMP X): New transformation.
20732 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20734 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
20735 * fold-const.c (fold_binary_loc): Remove 2 transformations
20736 superseded by match.pd.
20737 * match.pd (x+x -> x*2): Generalize to integers.
20739 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
20741 * config/i386/i386.md (operation on memory peephole): Duplicate an
20742 existing peephole and adapt it to match lea rather than an operation
20745 PR rtl-optimization/57193
20746 * opts.c (default_options_table): Add OPT_frename_registers at -O2
20748 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
20750 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20752 * tree-if-conv.c (any_pred_load_store): New static variable.
20753 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
20754 any_pred_load_store instead of and_mask_load_store.
20755 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
20756 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
20757 (combine_blocks, tree_if_conversion): Ditto.
20759 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20761 PR tree-optimization/70771
20762 PR tree-optimization/70775
20763 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
20764 virtual PHI nodes. Delete parameter.
20765 (if_convertible_loop_p_1): Delete argument to above function.
20766 (predicate_all_scalar_phis): Delete code handling single-argument
20768 (tree_if_conversion): Mark and update virtual SSA.
20770 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20773 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
20774 (x86_elf_aligned_common): Rename to ...
20775 (x86_elf_aligned_decl_common): ... this.
20776 Add decl arg. Switch to .lbss for largecomm object. Use
20777 LARGECOMM_SECTION_ASM_OP.
20778 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
20780 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
20781 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
20783 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20784 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
20786 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20789 * config/i386/i386.c (SECTION_LARGE): Define.
20790 (x86_64_elf_select_section): Set it for large data/bss sections.
20791 Only clear SECTION_WRITE for .lrodata.
20792 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
20794 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
20795 * varasm.c (default_elf_asm_named_section): Grow flagchars.
20796 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
20798 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
20799 * doc/tm.texi: Regenerate.
20801 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20804 * configure.ac (--enable-checking): Document extra flag, for
20805 non-release builds default to --enable-checking=yes,extra.
20806 If misc checking and extra checking, define CHECKING_P to 2 instead
20808 * common.opt (fchecking=): Add.
20809 * doc/invoke.texi (-fchecking=): Document.
20810 * doc/install.texi: Document --enable-checking changes.
20811 * configure: Regenerated.
20812 * config.in: Regenerated.
20814 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20816 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
20817 attribute instead of which_alternative.
20818 * config/i386/sse.md (*mov<mode>_internal): Ditto.
20819 Use EXT_REX_SSE_REG_P where appropriate.
20821 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20823 * config/i386/predicates.md (const0_operand): Do not match
20824 const_wide_int code.
20825 (const1_operand): Ditto.
20827 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20829 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
20830 for SSE constm1 operands and TARGET_AVX512VL.
20831 (*movti_internal): Ditto.
20832 (*mov<mode>_or): Use constm1_operand predicate.
20833 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
20834 for SSE vector_all_ones operands and TARGET_AVX512VL.
20835 * config/i386/predicates.md (constm1_operand): New predicate.
20836 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
20837 emission of constant -1 load.
20839 2016-04-25 Jason Merrill <jason@redhat.com>
20841 * gdbinit.in: Skip is-a.h.
20843 * attribs.c (register_scoped_attributes): Fix logic.
20844 * attribs.h: Declare register_scoped_attributes.
20846 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20848 * config/rs6000/rs6000-builtin.def: Correct pasto error for
20849 stxvd2x and stxvw4x built-in functions.
20851 2016-04-25 DJ Delorie <dj@redhat.com>
20853 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
20854 (ashrhi3): Likewise.
20855 (lshrhi3): Likewise.
20857 2016-04-25 Richard Biener <rguenther@suse.de>
20859 PR tree-optimization/70780
20860 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
20861 wasn't visited yet.
20862 (compute_antic): Mark blocks with abnormal preds as visited as
20863 they have a final empty antic-in solution already.
20865 2016-04-25 Michael Collison <michael.collison@linaro.org>
20867 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
20869 2016-04-25 Michael Collison <michael.collison@linaro.org>
20871 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
20872 mode is VQI to improve mixed mode vectorization.
20873 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
20874 define_insn to match low half of signed vaddw.
20875 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
20876 define_insn to match high half of signed vaddw.
20877 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
20878 define_insn to match low half of unsigned vaddw.
20879 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
20880 define_insn to match high half of unsigned vaddw.
20881 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
20882 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20883 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
20885 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20886 * config/arm/predicates.md (vect_par_constant_high): Support
20887 big endian and simplify by calling
20888 arm_simd_check_vect_par_cnst_half
20889 (vect_par_constant_low): Likewise.
20891 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20893 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
20894 predicate for operand 2.
20896 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
20897 H.J. Lu <hongjiu.lu@intel.com>
20899 * config/i386/i386-protos.h (standard_sse_constant_p): Add
20900 machine_mode argument.
20901 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
20902 constm1_rtx operands. For VOIDmode constants, get mode from
20903 pred_mode. Check mode size if the mode is supported by ABI.
20904 (standard_sse_constant_opcode): Do not use standard_constant_p.
20905 Strictly check ABI support for all-ones operands.
20906 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
20907 immediates. Update calls to standard_sse_constant_p.
20908 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
20909 (ix86_rtx_costs): Ditto.
20910 * config/i386/i386.md (*movxi_internal_avx512f): Use
20911 nonimmediate_or_sse_const_operand instead of vector_move_operand.
20912 Use (v,BC) alternative instead of (v,C). Use register_operand
20913 checks instead of MEM_P.
20914 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
20915 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
20916 isa attribute. Use register_operand checks instead of MEM_P.
20917 (*movti_internal): Use nonimmediate_or_sse_const_operand for
20918 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
20919 alternative and corresponding sse2 isa attribute.
20920 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
20921 to standard_sse_constant_p.
20922 (FP constant splitters): Ditto.
20923 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
20925 * config/i386/predicates.md (constm1_operand): Remove.
20926 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
20927 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
20928 vector_all_ones_operand instead of constm1_operand.
20930 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20932 * print-rtl.c (print_rtx_insn_vec): New function.
20933 * print-rtl.h: New prototype.
20934 * store-motion.c (struct st_expr): Make avail_stores a vector.
20935 (st_expr_entry): Adjust.
20936 (free_st_expr_entry): Likewise.
20937 (print_store_motion_mems): Likewise.
20938 (find_moveable_store): Likewise.
20939 (compute_store_table): Likewise.
20940 (delete_store): Likewise.
20941 (build_store_vectors): Likewise.
20943 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20945 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
20947 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20949 * vec.h (vec_safe_contains): New function.
20950 (vec::contains): Likewise.
20951 (vec::begin): Likewise.
20952 (vec::end): Likewise.
20954 2016-04-23 Jakub Jelinek <jakub@redhat.com>
20957 * cfgexpand.c (expand_stack_vars): Fix typo.
20959 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20961 * system.h (list, map, set, vector): Include conditionally.
20962 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
20963 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
20964 * ipa-icf.c (INCLUDE_LIST): Define.
20965 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
20966 * config/sh/sh.c (INCLUDE_VECTOR): Define.
20967 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
20968 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
20969 * cp/logic.cc (INCLUDE_LIST): Define.
20970 * fortran/trans-common.c (INCLUDE_MAP): Define.
20972 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20974 * auto-profile.c: Remove <string.h> include.
20975 * ipa-icf-gimple.c: Remove <list> include.
20976 * diagnostic.c: Remove <new> include.
20977 * genmatch.c: Likewise.
20978 * pretty-print.c: Likewise.
20979 * toplev.c: Likewise
20980 * c/c-objc-common.c: Likewise.
20981 * cp/error.c: Likewise.
20982 * fortran/error.c: Likewise.
20984 2016-04-22 Richard Biener <rguenther@suse.de>
20986 * lto-streamer-in.c (input_ssa_names): Do not allocate
20987 GIMPLE_NOP for all SSA names.
20988 * lto-streamer-out.c (output_ssa_names): Do not output
20989 SSA names that should have been released.
20991 2016-04-22 Richard Biener <rguenther@suse.de>
20993 PR tree-optimization/70740
20994 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
20997 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
21000 * config/i386/predicates.md (call_insn_operand): Replace
21001 sibcall_memory_operand with memory_operand.
21003 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
21005 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
21006 has_single_use() tests.
21007 (register_edge_assert_for_1): Likewise.
21008 (find_assert_locations_1): Check the liveness bitmap instead of
21009 checking has_single_use().
21011 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
21014 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
21015 Extract AVX-512BW constraint from AVX.
21017 2016-04-21 Richard Biener <rguenther@suse.de>
21019 PR tree-optimization/70725
21020 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
21021 for phi_convertible_by_degenerating_args.
21022 (predicate_all_scalar_phis): Handle single-argument PHIs.
21024 2016-04-21 Richard Biener <rguenther@suse.de>
21026 PR middle-end/70747
21027 * fold-const.c (fold_comparison): Return properly typed
21030 2016-04-21 Bin Cheng <bin.cheng@arm.com>
21032 PR tree-optimization/70715
21033 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
21034 after expanding BASE using expand_simple_operations.
21036 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
21038 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
21039 New transformations.
21041 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
21043 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
21045 2016-04-20 Jan Hubicka <jh@suse.cz>
21047 * ipa-inline.c (can_inline_edge_p): Pass caller info to
21048 ultiimate_alias_target.
21049 (update_callee_keys): Likewise.
21050 (lookup_recursive_calls): Likewise.
21051 (speculation_useful_p): Likewise.
21053 2016-04-20 Jan Hubicka <jh@suse.cz>
21056 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
21057 (set_nothrow_flag_1): ... this; handle interposition correctly;
21058 recurse on aliases and thunks.
21059 (cgraph_node::set_nothrow_flag): New.
21060 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
21061 functions compiled with non-call exceptions that binds to current
21063 (propagate_nothrow): Be safe WRT interposition.
21064 * cgraph.h (set_nothrow_flag): Update prototype.
21066 2016-04-18 Jan Hubicka <jh@suse.cz>
21068 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21069 max_loop_iterations_int.
21070 (tree_unswitch_outer_loop): Likewise.
21072 2016-04-20 Bin Cheng <bin.cheng@arm.com>
21074 PR tree-optimization/69489
21075 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
21076 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
21077 Revise dump message.
21078 (if_convertible_bb_p): Remove check on edge count of basic block's
21081 2016-04-20 Bin Cheng <bin.cheng@arm.com>
21083 PR tree-optimization/56625
21084 PR tree-optimization/69489
21085 * tree-data-ref.h (DR_INNERMOST): New macro.
21086 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
21087 hashing struct innermost_loop_behavior.
21088 (ref_DR_map): Remove.
21089 (innermost_DR_map): New map.
21090 (baseref_DR_map): Revise comment.
21091 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
21092 to innermost_DR_map accroding to its innermost loop behavior.
21093 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
21094 to its innermost loop behavior.
21095 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
21096 Add initialization for innermost_DR_map. Record memory reference
21097 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
21098 have innermost loop behavior.
21099 (if_convertible_loop_p): Remove release for ref_DR_map. Release
21102 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
21104 * config/i386/i386.md (*lea<mode>_general_1): Rename from
21105 *lea_general_1. Use explicit SWI12 mode interator.
21106 (*lea<mode>_general_2): Rename from *lea_general_2.
21107 Use explicit SWI12 mode interator.
21108 (*lea<mode>_general_3): Rename from *lea_general_3.
21109 Use explicit SWI12 mode interator.
21110 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
21111 Use explicit SWI12 mode interator.
21112 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
21113 Use explicit SWI48 mode interator.
21115 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
21117 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21118 Short-cut unaligned load and store cases. Handle all integer
21120 (ix86_expand_vector_move_misalign): Short-cut unaligned load
21121 and store cases. Call ix86_avx256_split_vector_move_misalign
21122 directly without checking mode class.
21124 2016-04-20 Andrew Pinski <apinski@cavium.com>
21125 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21128 * config/aarch64/aarch64.md (sibcall): Force call
21129 address to be DImode for ILP32.
21130 (sibcall_value): Likewise.
21132 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
21134 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
21136 2016-04-20 Richard Biener <rguenther@suse.de>
21138 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
21139 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
21140 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
21141 (maybe_push_res_to_seq): Adjust.
21142 * gimple-fold.c (maybe_build_generic_op): Likewise.
21144 2016-04-20 Marek Polacek <polacek@redhat.com>
21146 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
21149 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
21151 * config/i386/sse.md (vec_unpacks_lo_hi): Always
21152 use kmovw to support AVX512F target.
21154 2016-04-20 Bin Cheng <bin.cheng@arm.com>
21156 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
21158 2016-04-20 Marek Polacek <polacek@redhat.com>
21160 PR tree-optimization/70725
21161 * tree-if-conv.c (is_false_predicate): New function.
21162 (predicate_mem_writes): Use it.
21164 2016-04-20 Richard Biener <rguenther@suse.de>
21166 PR tree-optimization/70726
21167 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
21168 shift amounts from a pattern stmt operand.
21170 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21173 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
21174 stack_restore_from_fpr pattern when restoring r15.
21175 (s390_optimize_prologue): Strip away the memory barrier in the
21176 parallel when trying to get rid of restore insns.
21177 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
21178 definition for loading the stack pointer from an FPR. Compared to
21179 the normal move insn this pattern includes a full memory barrier.
21181 2016-04-19 Jakub Jelinek <jakub@redhat.com>
21183 PR middle-end/70680
21184 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
21185 implicitly linear or lastprivate iterator on the outer context.
21187 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
21189 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
21191 * config/i386/i386.md (ssememalign): Removed.
21192 * config/i386/sse.md: Remove ssememalign attribute from patterns.
21194 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
21197 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
21198 const short * to __builtin_ia32_loaddquhi512_mask.
21199 (_mm512_maskz_loadu_epi16): Likewise.
21200 (_mm512_mask_storeu_epi16): Pass short * to
21201 __builtin_ia32_storedquhi512_mask.
21202 (_mm512_mask_loadu_epi8): Pass const char * to
21203 __builtin_ia32_loaddquqi512_mask.
21204 (_mm512_maskz_loadu_epi8): Likewise.
21205 (_mm512_mask_storeu_epi8): Pass char * to
21206 __builtin_ia32_storedquqi512_mask.
21207 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
21208 const double * to __builtin_ia32_loadupd512_mask.
21209 (_mm512_mask_loadu_pd): Likewise.
21210 (_mm512_maskz_loadu_pd): Likewise.
21211 (_mm512_storeu_pd): Pass double * to
21212 __builtin_ia32_storeupd512_mask.
21213 (_mm512_mask_storeu_pd): Likewise.
21214 (_mm512_loadu_ps): Pass const float * to
21215 __builtin_ia32_loadups512_mask.
21216 (_mm512_mask_loadu_ps): Likewise.
21217 (_mm512_maskz_loadu_ps): Likewise.
21218 (_mm512_storeu_ps): Pass float * to
21219 __builtin_ia32_storeups512_mask.
21220 (_mm512_mask_storeu_ps): Likewise.
21221 (_mm512_mask_loadu_epi64): Pass const long long * to
21222 __builtin_ia32_loaddqudi512_mask.
21223 (_mm512_maskz_loadu_epi64): Likewise.
21224 (_mm512_mask_storeu_epi64): Pass long long *
21225 to __builtin_ia32_storedqudi512_mask.
21226 (_mm512_loadu_si512): Pass const int * to
21227 __builtin_ia32_loaddqusi512_mask.
21228 (_mm512_mask_loadu_epi32): Likewise.
21229 (_mm512_maskz_loadu_epi32): Likewise.
21230 (_mm512_storeu_si512): Pass int * to
21231 __builtin_ia32_storedqusi512_mask.
21232 (_mm512_mask_storeu_epi32): Likewise.
21233 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
21234 char * to __builtin_ia32_storedquqi256_mask.
21235 (_mm_mask_storeu_epi8): Likewise.
21236 (_mm256_mask_loadu_epi16): Pass const short * to
21237 __builtin_ia32_loaddquhi256_mask.
21238 (_mm256_maskz_loadu_epi16): Likewise.
21239 (_mm_mask_loadu_epi16): Pass const short * to
21240 __builtin_ia32_loaddquhi128_mask.
21241 (_mm_maskz_loadu_epi16): Likewise.
21242 (_mm256_mask_loadu_epi8): Pass const char * to
21243 __builtin_ia32_loaddquqi256_mask.
21244 (_mm256_maskz_loadu_epi8): Likewise.
21245 (_mm_mask_loadu_epi8): Pass const char * to
21246 __builtin_ia32_loaddquqi128_mask.
21247 (_mm_maskz_loadu_epi8): Likewise.
21248 (_mm256_mask_storeu_epi16): Pass short * to.
21249 __builtin_ia32_storedquhi256_mask.
21250 (_mm_mask_storeu_epi16): Pass short * to.
21251 __builtin_ia32_storedquhi128_mask.
21252 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
21253 const double * to __builtin_ia32_loadupd256_mask.
21254 (_mm256_maskz_loadu_pd): Likewise.
21255 (_mm_mask_loadu_pd): Pass onst double * to
21256 __builtin_ia32_loadupd128_mask.
21257 (_mm_maskz_loadu_pd): Likewise.
21258 (_mm256_mask_storeu_pd): Pass double * to
21259 __builtin_ia32_storeupd256_mask.
21260 (_mm_mask_storeu_pd): Pass double * to
21261 __builtin_ia32_storeupd128_mask.
21262 (_mm256_mask_loadu_ps): Pass const float * to
21263 __builtin_ia32_loadups256_mask.
21264 (_mm256_maskz_loadu_ps): Likewise.
21265 (_mm_mask_loadu_ps): Pass const float * to
21266 __builtin_ia32_loadups128_mask.
21267 (_mm_maskz_loadu_ps): Likewise.
21268 (_mm256_mask_storeu_ps): Pass float * to
21269 __builtin_ia32_storeups256_mask.
21270 (_mm_mask_storeu_ps): ass float * to
21271 __builtin_ia32_storeups128_mask.
21272 (_mm256_mask_loadu_epi64): Pass const long long * to
21273 __builtin_ia32_loaddqudi256_mask.
21274 (_mm256_maskz_loadu_epi64): Likewise.
21275 (_mm_mask_loadu_epi64): Pass const long long * to
21276 __builtin_ia32_loaddqudi128_mask.
21277 (_mm_maskz_loadu_epi64): Likewise.
21278 (_mm256_mask_storeu_epi64): Pass long long * to
21279 __builtin_ia32_storedqudi256_mask.
21280 (_mm_mask_storeu_epi64): Pass long long * to
21281 __builtin_ia32_storedqudi128_mask.
21282 (_mm256_mask_loadu_epi32): Pass const int * to
21283 __builtin_ia32_loaddqusi256_mask.
21284 (_mm256_maskz_loadu_epi32): Likewise.
21285 (_mm_mask_loadu_epi32): Pass const int * to
21286 __builtin_ia32_loaddqusi128_mask.
21287 (_mm_maskz_loadu_epi32): Likewise.
21288 (_mm256_mask_storeu_epi32): Pass int * to
21289 __builtin_ia32_storedqusi256_mask.
21290 (_mm_mask_storeu_epi32): Pass int * to
21291 __builtin_ia32_storedqusi128_mask.
21292 * config/i386/i386-builtin-types.def (PCSHORT): New.
21293 (PINT64): Likewise.
21294 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
21295 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
21296 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
21297 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
21298 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
21299 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
21300 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
21301 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
21302 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
21303 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
21304 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
21305 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
21306 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
21307 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
21308 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
21309 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
21310 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
21311 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
21312 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
21313 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
21314 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
21315 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
21316 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
21317 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
21318 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
21319 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
21320 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
21321 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
21322 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
21323 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
21324 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
21325 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
21326 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
21327 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
21328 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
21329 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
21330 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
21331 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
21332 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
21333 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
21334 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
21335 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
21336 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
21337 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
21338 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
21339 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
21340 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
21341 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
21342 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
21344 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
21345 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
21347 (ix86_expand_vector_move_misalign): Likewise.
21348 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
21349 to scalar function prototype for unaligned load/store builtins.
21350 (ix86_expand_special_args_builtin): Updated.
21351 * config/i386/sse.md (UNSPEC_LOADU): Removed.
21352 (UNSPEC_STOREU): Likewise.
21353 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
21354 (VI_ULOADSTORE_F_AVX512VL): Likewise.
21355 (ssescalarsize): Handle V4TI, V2TI and V1TI.
21356 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21357 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21358 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
21359 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
21360 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
21361 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
21362 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
21363 (<avx512>_storedqu<mode>_mask): Likewise.
21364 (*sse4_2_pcmpestr_unaligned): Likewise.
21365 (*sse4_2_pcmpistr_unaligned): Likewise.
21366 (*mov<mode>_internal): Renamed to ...
21367 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
21368 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
21369 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
21370 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
21372 2016-04-19 Richard Biener <rguenther@suse.de>
21374 PR tree-optimization/70171
21375 * tree-ssa-phiprop.c: Include stor-layout.h.
21376 (phiprop_insert_phi): Handle the aggregate copy case.
21377 (propagate_with_phi): Likewise.
21379 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
21381 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
21382 instead of simplify_gen_subreg (... , 0).
21383 (ix86_delegitimize_address): Ditto.
21384 (ix86_split_divmod): Ditto.
21385 (ix86_split_copysign_const): Ditto.
21386 (ix86_split_copysign_var): Ditto.
21387 (ix86_expand_args_builtin): Ditto.
21388 (ix86_expand_round_builtin): Ditto.
21389 (ix86_expand_special_args_builtin): Ditto.
21390 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
21391 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
21392 (udivmodqi4): Ditto.
21393 (absneg splitters): Ditto.
21394 (*jcc_bt<mode>_1): Ditto.
21396 2016-04-19 Richard Biener <rguenther@suse.de>
21398 PR tree-optimization/70724
21399 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
21400 restoring out from ...
21401 (free_scc_vn): ... here.
21402 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
21403 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
21405 (pass_fre::execute): Restore SSA info.
21407 2016-04-19 Richard Biener <rguenther@suse.de>
21409 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
21410 * gimple-walk.c (walk_gimple_op): Initialize it.
21411 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
21412 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
21413 remapping SSA names of defs.
21414 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
21417 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
21419 PR middle-end/70689
21420 * lra-constraints.c (equiv_substition_p): New.
21421 (process_alt_operands): Use it.
21422 (swap_operands): Swap it.
21423 (curr_insn_transform): Update it.
21425 2016-04-18 Michael Matz <matz@suse.de>
21427 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
21428 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
21429 * tree-core.h (tree_type_common.align): Use bit-field.
21430 (tree_type_common.spare): New.
21431 (tree_decl_common.off_align): Make smaller.
21432 (tree_decl_common.align): Use bit-field.
21434 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
21435 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
21436 (scan_sharing_clauses): Ditto.
21437 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21438 (omp_finish_file): Ditto.
21439 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
21440 (layout_decl): Ditto.
21441 (relayout_decl): Ditto.
21442 (finalize_record_size): Use SET_TYPE_ALIGN.
21443 (finalize_type_size): Ditto.
21444 (finish_builtin_struct): Ditto.
21445 (layout_type): Ditto.
21446 (initialize_sizetypes): Ditto.
21447 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
21448 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
21449 (lookup_field_for_decl): Use SET_DECL_ALIGN.
21450 (get_chain_field): Ditto.
21451 (get_trampoline_type): Ditto.
21452 (get_nl_goto_field): Ditto.
21453 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
21455 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
21456 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
21457 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21458 (build_qualified_type): Use SET_TYPE_ALIGN.
21459 (build_aligned_type, build_range_type_1): Ditto.
21460 (build_atomic_base): Ditto.
21461 (build_common_tree_nodes): Ditto.
21462 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
21463 (expand_one_stack_var_at): Ditto.
21464 * coverage.c (build_var): Use SET_DECL_ALIGN.
21465 * except.c (init_eh): Ditto.
21466 * function.c (assign_parm_setup_block): Ditto.
21467 * symtab.c (increase_alignment_1): Ditto.
21468 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
21469 * tree-vect-stmts.c (ensure_base_align): Ditto.
21470 * varasm.c (align_variable): Ditto.
21471 (assemble_variable): Ditto.
21472 (build_constant_desc): Ditto.
21473 (output_constant_def_contents): Ditto.
21475 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
21476 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
21477 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
21478 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
21479 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
21481 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
21484 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
21485 replace %vmovsd with "%vmovq".
21486 (vec_concatv2df): Likewise.
21488 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
21490 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
21491 (*vec_extractv2si_0): Ditto.
21492 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
21493 (zero_extended_scalar_load_operand splitters): Ditto.
21494 (vec_extract splitters): Ditto.
21495 (*vec_extractv4si_0_zext): Ditto.
21496 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
21497 and lowpart_subreg.
21498 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
21499 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
21500 (*sse4_1_extractps): Use lowpart_subreg.
21501 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
21503 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21505 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
21507 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
21508 Mention Solaris 11 packaging changes.
21509 Update gas and gld requirements.
21510 Remove reference to pre-Solaris 10 bug.
21511 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
21513 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
21516 2016-04-17 Jan Hubicka <jh@suse.cz>
21518 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
21519 max_loop_iterations_int.
21521 2016-04-18 Richard Biener <rguenther@suse.de>
21523 PR tree-optimization/43434
21524 * tree-ssa-structalias.c (struct vls_data): New.
21525 (visit_loadstore): Handle all pointer-based accesses.
21526 (compute_dependence_clique): Compute a bitmap of restrict tags
21527 assigned bases and pass it to visit_loadstore.
21529 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
21532 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
21533 armv8.1-a and armv8.1-a+crc.
21535 2016-04-18 Richard Biener <rguenther@suse.de>
21537 PR tree-optimization/70701
21538 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
21539 references after translating through a memcpy.
21541 2016-04-18 Richard Biener <rguenther@suse.de>
21543 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
21544 (compute_antic): ... here. For partial antic use regular
21545 postorder and scrap iteration.
21546 (compute_partial_antic_aux): Remove unused return value.
21547 (init_pre): Do not allocate postorder.
21548 (fini_pre): Do not free postorder.
21550 2016-04-18 Richard Biener <rguenther@suse.de>
21552 PR middle-end/37870
21553 * expmed.c (extract_bit_field_1): Remove broken case
21554 using a wider MODE_INT mode.
21556 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
21558 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
21559 unless compiling with at least GCC-4.8.
21561 2016-04-17 Jan Hubicka <jh@suse.cz>
21564 * graphite.c (graphite_finalize): Update call to
21565 tree_estimate_probability.
21566 * predict.h (tree_estimate_probability): Update prototype.
21568 2016-04-17 Jan Hubicka <jh@suse.cz>
21570 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
21571 (tree_estimate_probability): Likewise.
21572 (pass_profile::execute): Update.
21573 (report_predictor_hitrates): New function.
21574 * profile.c (compute_branch_probabilities): Use it.
21575 * predict.h (report_predictor_hitrates): Declare.
21577 2016-04-17 Jan Hubicka <jh@suse.cz>
21580 * cgraph.h (cgraph_node::set_const_flag,
21581 cgraph_node::set_pure_flag): Update prototype to return bool;
21583 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
21584 of interposable symbol are interposable, too.
21585 (cgraph_set_const_flag_1): Rename to ...
21586 (set_const_flag_1): ... this one; change to self recursive function
21587 instead of call_for_symbol_thunks_and_aliases. Handle correctly
21588 clearnig the flag in all variants and also virtual thunks of const
21589 functions are pure; track if any change was done.
21590 (cgraph_node::set_const_flag): Update.
21591 (struct set_pure_flag_info): New struct.
21592 (cgraph_set_pure_flag_1): Rename to ...
21593 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
21594 rather than pointer encoded flags; track if any changes was done;
21595 handle correctly clearning flag and setting flag of aliases already
21597 (cgraph_node::set_pure_flag): Update.
21598 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
21600 2016-04-17 Tom de Vries <tom@codesourcery.com>
21603 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
21604 backslash in label.
21606 2016-04-17 Tom de Vries <tom@codesourcery.com>
21608 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
21609 '{}<> ' as escape-for-record.
21611 2016-04-17 Tom de Vries <tom@codesourcery.com>
21613 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
21616 2016-04-17 Tom de Vries <tom@codesourcery.com>
21619 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
21620 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
21621 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
21622 * passes.c (finish_optimization_passes): Only call
21623 finish_graph_dump_file if dfi->graph_dump_initialized.
21624 (execute_function_dump, pass_init_dump_file): Use
21625 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
21627 2016-04-17 Tom de Vries <tom@codesourcery.com>
21629 PR tree-optimization/70256
21630 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
21631 (debug_varmap): New function.
21633 2016-04-17 Tom de Vries <tom@codesourcery.com>
21636 * passes.c (pass_manager::register_pass): Propagate pflags.
21638 2016-04-17 Tom de Vries <tom@codesourcery.com>
21641 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
21642 * passes.c (pass_manager::pass_manager): Declare and init p_start in
21643 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
21644 check if it's equal to p_start.
21645 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
21647 2016-04-15 Jan Hubicka <jh@suse.cz>
21650 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
21651 function does not bind to current def.
21652 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
21653 handle conservatively calls to functions that does not need to bind
21655 (check_call): Update call of worse_state.
21656 (ignore_edge_for_nothrow): Update.
21657 (ignore_edge_for_pure_const): Likewise.
21658 (propagate_pure_const): Update calls to worse_state.
21659 (skip_function_for_local_pure_const): Reformat comments.
21661 2016-04-15 Jan Hubicka <jh@suse.cz>
21664 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
21665 (cgraph_node::function_symbol): Likewise.
21666 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21667 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
21668 (symtab_node::ultimate_alias_target): Add REF parameter.
21669 (symtab_node::binds_to_current_def_p): Declare.
21670 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
21671 (cgraph_node::function_symbol): Likewise.
21672 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21673 (cgraph_node::get_availability): Likewise.
21674 (cgraph_edge::binds_to_current_def_p): New inline function.
21675 (varpool_node::get_availability): Add REF parameter.
21676 (varpool_node::ultimate_alias_target): Likewise.
21677 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
21678 (symtab_node::binds_to_current_def_p): Likewise.
21679 * varpool.c (varpool_node::get_availability): Likewise.
21681 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21684 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
21685 Fix mode size check.
21687 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21689 * BASE-VER: Set to 7.0.0.
21691 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
21693 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
21695 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21697 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
21698 architecture revisions.
21700 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
21702 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
21703 * config/i386/i386.c (ix86_using_red_zone): No longer static.
21704 * config/i386/i386.md (stack decrement to push peepholes): Guard
21705 with !x86_using_red_zone ().
21707 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21710 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
21711 to dump_generic_node.
21712 (NIY): Pass also flags to do_niy.
21714 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
21716 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
21717 (simd_clone_vector_of_formal_parm_types)
21718 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
21719 (simd_clone_mangle, simd_clone_create)
21720 (simd_clone_adjust_return_type, create_tmp_simd_array)
21721 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
21722 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
21723 (ipa_simd_modify_function_body, simd_clone_linear_addend)
21724 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
21725 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
21726 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
21727 * omp-simd-clone.c: ... this new file.
21728 (simd_clone_vector_of_formal_parm_types): Make it static.
21729 * Makefile.in (OBJS): Add omp-simd-clone.o.
21731 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21734 * config/i386/sse.md: Use proper memory operand modifiers.
21737 2016-04-15 Richard Biener <rguenther@suse.de>
21738 Alan Modra <amodra@gmail.com>
21740 PR tree-optimization/70130
21741 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
21742 when alignment stays not the same and no not use the realign
21745 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21748 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21749 direct move handlers for KFmode. Change TFmode handlers test from
21750 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
21752 2016-04-14 Jakub Jelinek <jakub@redhat.com>
21755 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
21756 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
21757 (inlined_polymorphic_ctor_dtor_block_p): Use it.
21758 * tree-ssa-live.c (remove_unused_scope_block_p): When
21759 in_ctor_dtor_block, avoid discarding not just BLOCKs with
21760 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
21761 block_ultimate_origin is FUNCTION_DECL.
21762 (remove_unused_locals): If current_function_decl is
21763 polymorphic_ctor_dtor_p, pass initial true to
21764 remove_unused_scope_block_p' is_ctor_dtor_block.
21766 2016-04-14 Martin Sebor <msebor@redhat.com>
21771 * doc/extend.texi (Variable Length): Revert.
21773 2016-04-14 Marek Polacek <polacek@redhat.com>
21774 Jan Hubicka <hubicka@ucw.cz>
21777 * tree.c (verify_type): Disable the canonical type of main variant
21780 2016-04-14 Jason Merrill <jason@redhat.com>
21782 * cfgexpand.c, expr.c: Revert previous change.
21784 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
21786 PR middle-end/70643
21787 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
21788 when building a mem ref for the incoming reduction variable.
21790 2016-04-14 Richard Biener <rguenther@suse.de>
21792 PR tree-optimization/70614
21793 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
21794 loop if the evolution dropped to chrec_dont_know.
21795 (interpret_condition_phi): Likewise.
21797 2016-04-14 Richard Biener <rguenther@suse.de>
21799 PR tree-optimization/70623
21800 * tree-ssa-pre.c (changed_blocks): Make global ...
21801 (compute_antic): ... local here. Move and fix worklist
21802 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
21803 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
21804 worklist handling, dump when ANTIC_IN changed.
21805 (compute_partial_antic_aux): Remove worklist handling.
21806 (init_pre): Do not compute post dominators. Add a comment about
21807 the CFG order chosen.
21808 (fini_pre): Do not free post dominators.
21810 2016-04-13 Martin Sebor <msebor@redhat.com>
21815 * doc/extend.texi (Variable Length): Document C++ specifics.
21817 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21820 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
21821 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
21822 eh edges have been purged.
21825 * tree-sra.c (create_access_replacement,
21826 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
21828 * tree-pretty-print.c (dump_fancy_name): New function.
21829 (dump_decl_name, dump_generic_node): Use it.
21831 2016-04-13 Jason Merrill <jason@redhat.com>
21833 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
21834 * expr.c (expand_expr_real_1): Likewise.
21836 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
21838 * config/i386/i386.md (kunpckhi): Swap operands.
21839 (kunpcksi): Likewise.
21840 (kunpckdi): Likewise.
21841 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
21842 (vec_pack_trunc_<mode>): Likewise.
21844 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21847 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
21849 PR middle-end/70633
21850 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
21851 gimplification turns some element into non-constant.
21854 * rtl.h (convert_memory_address_addr_space_1): New prototype.
21855 * explow.c (convert_memory_address_addr_space_1): No longer static,
21856 add NO_EMIT argument and don't call convert_modes if true, pass
21857 it down recursively, remove break after return.
21858 (convert_memory_address_addr_space): Adjust caller.
21859 * simplify-rtx.c (simplify_unary_operation_1): Call
21860 convert_memory_address_addr_space_1 instead of convert_memory_address,
21861 if it returns NULL, don't simplify.
21863 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
21866 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
21868 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21870 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21871 Bump the upper SIMDLEN limits, so that if the return type or
21872 characteristic type if the return type is void can be passed in
21873 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
21876 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21879 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
21880 Do not use "=" constraint on an input constraint.
21881 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
21882 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
21883 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
21884 generates (neg (abs ...)) instead of (abs ...).
21886 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21888 PR rtl-optimization/70596
21889 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
21890 just invalidate LRA data and reset them. Adjust dump wording.
21892 2016-04-12 Martin Liska <mliska@suse.cz>
21895 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
21897 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21899 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21900 max_loop_iterations_int.
21901 (tree_unswitch_outer_loop): Likewise.
21902 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21903 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21905 2016-04-12 Tom de Vries <tom@codesourcery.com>
21907 PR tree-optimization/68756
21908 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
21909 instead of new_name.
21911 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21913 PR tree-optimization/70602
21914 * tree-sra.c (generate_subtree_copies): Don't write anything into
21915 constant pool decls.
21917 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
21918 regardless whether there are depend clauses or not.
21920 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21923 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
21924 target attribute and pragma from changing the -mfloat128
21925 and -mfloat128-hardware options.
21927 * doc/extend.texi (Additional Floating Types): Document PowerPC
21928 __float128 restrictions.
21930 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21933 * config/aarch64/driver-aarch64.c
21934 (aarch64_get_extension_string_for_isa_flags): New.
21935 (arch_extension): Rename to...
21936 (aarch64_arch_extension): ...This.
21937 (ext_to_feat_string): Rename to...
21938 (aarch64_extensions): ...This.
21939 (aarch64_core_data): Keep track of architecture extension flags.
21940 (cpu_data): Rename to...
21941 (aarch64_cpu_data): ...This.
21942 (aarch64_arch_driver_info): Keep track of architecture extension
21944 (get_arch_name_from_id): Rename to...
21945 (get_arch_from_id): ...This, change return type.
21946 (host_detect_local_cpu): Update and reformat for renames, handle
21947 extensions through common infrastructure.
21949 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21952 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
21953 track of a canonical flag name.
21954 (all_extensions): Likewise.
21955 (arch_to_arch_name): Also track extension flags enabled by the arch.
21956 (all_architectures): Likewise.
21957 (aarch64_parse_extension): Move to here.
21958 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
21960 (aarch64_rewrite_selected_cpu): Update for above change.
21961 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
21962 are handled, such that the single explicit value enabled by an
21963 extension is kept seperate from the implicit values it also enables.
21964 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
21966 (aarch64_parse_extension): New.
21967 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
21968 here to config/aarch64/aarch64-protos.h.
21969 (aarch64_parse_extension): Move from here to
21970 common/config/aarch64/aarch64-common.c.
21971 (aarch64_option_print): Update.
21972 (aarch64_declare_function_name): Likewise.
21973 (aarch64_start_file): Likewise.
21974 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
21975 the canonical flag for extensions.
21976 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
21979 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21981 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
21984 2016-04-09 Tom de Vries <tom@codesourcery.com>
21986 PR tree-optimization/68953
21987 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
21988 first to last subscript.
21990 2016-04-09 Jakub Jelinek <jakub@redhat.com>
21992 PR tree-optimization/70586
21993 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
21996 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
22000 PR tree-optimization/70373
22001 PR middle-end/70533
22002 PR middle-end/70534
22003 PR middle-end/70535
22004 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
22005 clauses for acc parallel reductions as necessary. Error on those
22007 * omp-low.c (scan_sharing_clauses): Don't install variables which
22008 are used in acc parallel reductions.
22009 (lower_rec_input_clauses): Remove dead code.
22010 (lower_oacc_reductions): Add support for reference reductions.
22011 (lower_reduction_clauses): Remove dead code.
22012 (lower_omp_target): Don't remap variables appearing in acc parallel
22014 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
22016 2016-04-08 Jakub Jelinek <jakub@redhat.com>
22018 PR middle-end/70593
22019 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
22020 with multiple SSA_NAME defs, force the outputs other than first
22021 to be live before calling live_track_process_def on each output.
22023 PR rtl-optimization/70574
22024 * fwprop.c (forward_propagate_and_simplify): Don't add
22025 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
22026 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
22027 paradoxical subregs within *loc.
22029 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
22031 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
22032 -ftree-parallelize-loops={0,1}.
22033 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
22034 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
22035 * config/ia64/hpux.h (LIB_SPEC): Likewise.
22036 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22037 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
22039 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
22042 * asan.c (instrument_derefs): If we get unknown location, extract it
22043 with EXPR_LOCATION.
22044 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
22046 2016-04-08 Tom de Vries <tom@codesourcery.com>
22048 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
22049 implicit firstprivate clause.
22051 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22054 * config/arm/thumb2.md (tst + branch-> lsls + branch
22055 peephole below *orsi_not_shiftsi_si): Require that condition
22056 register is dead after the peephole.
22057 (second peephole after the above): Likewise.
22059 2016-04-08 Alan Modra <amodra@gmail.com>
22062 * builtins.c (fold_builtin_classify): For IBM extended precision,
22063 look at just the high-order double to test for NaN.
22064 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
22065 test just the high double for Inf but both doubles for subnormal
22068 2016-04-07 Jakub Jelinek <jakub@redhat.com>
22070 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
22071 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
22072 node->simdclone->mask_mode != VOIDmode masks.
22073 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
22074 earlier, use it instead of node->simdclone.
22075 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22076 Set clonei->mask_mode.
22078 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
22081 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
22082 Pass it through to cp_parser_already_scoped_statement.
22083 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
22084 it through to cp_parser_statement.
22085 (cp_parser_statement): Pass IF_P through to
22086 cp_parser_iteration_statement.
22087 (cp_parser_pragma): Adjust call to
22088 cp_parser_iteration_statement.
22090 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
22093 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
22094 resolve a future -Wparentheses warning.
22095 * omp-low.c (scan_sharing_clauses): Likewise.
22096 * tree-parloops.c (eliminate_local_variables): Likewise.
22098 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
22100 PR rtl-optimization/70398
22101 * lra-constraints.c (process_address_1): Check zero scale and code
22102 for reloading with zero scale.
22104 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
22106 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
22107 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
22109 2016-04-06 Jakub Jelinek <jakub@redhat.com>
22111 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22112 Add support for AVX512F clones, include them by default for
22113 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
22114 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
22117 PR middle-end/70550
22118 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
22119 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
22120 firstprivate clauses.
22121 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
22122 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
22123 (lower_omp_target): Set TREE_NO_WARNING for
22124 non-addressable possibly uninitialized vars which are copied into
22125 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
22127 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
22129 * config/pa/predicates.md (integer_store_memory_operand): Accept
22130 REG+D operands with a large offset when reload_in_progress is true.
22131 (floating_point_store_memory_operand): Likewise.
22133 2016-04-05 Jakub Jelinek <jakub@redhat.com>
22136 * match.pd (nested int casts): Limit to GIMPLE.
22138 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
22141 * ipa-devirt.c (maybe_record_node): Fix comment; use
22142 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
22144 2016-04-05 Jakub Jelinek <jakub@redhat.com>
22146 PR rtl-optimization/70542
22147 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
22148 if there are any uses other than insn or debug insns.
22150 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
22151 Jakub Jelinek <jakub@redhat.com>
22153 PR tree-optimization/70509
22154 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
22155 Shift HOST_WIDE_INT_1U instead of 1.
22157 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
22159 PR tree-optimization/70509
22160 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
22161 of the vector base type for index.
22163 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
22166 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
22168 2016-04-05 Richard Biener <rguenther@suse.de>
22170 PR tree-optimization/70526
22171 * tree-sra.c (build_ref_for_offset): Use prev_base to
22172 extract the alias pointer type.
22174 2016-04-05 Richard Biener <rguenther@suse.de>
22176 * dse.c (struct store_info): Remove alias_set member.
22177 (struct read_info_type): Likewise.
22178 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
22179 spill_deleted, clear_alias_set_lookup): Remove.
22180 (get_group_info): Remove dead base == NULL_RTX case.
22181 (dse_step0): Remove initialization of removed variables.
22182 (delete_dead_store_insn): Reomve alias set dumping.
22183 (free_read_records): Remove alias_set handling.
22184 (canon_address): Remove alias_set_out parameter.
22185 (record_store): Remove spill_alias_set, it's always zero.
22186 (check_mem_read_rtx): Likewise.
22187 (dse_step2): Rename from ...
22188 (dse_step2_nospill): ... this. Adjust.
22189 (scan_stores): Rename from ...
22190 (scan_stores_nospill): ... this.
22191 (scan_reads): Rename from ...
22192 (scan_reads_nospill): ... this.
22193 (scan_stores_spill, scan_reads_spill): Remove.
22194 (dse_step3_scan): Remove for_spills argument which is always false.
22195 (dse_step3): Likewise.
22196 (dse_step5): Rename from ...
22197 (dse_step5_nospill): ... this. Remove alias_set handling.
22198 (rest_of_handle_dse): Adjust.
22200 2016-04-05 Jakub Jelinek <jakub@redhat.com>
22203 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
22204 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
22205 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
22206 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
22208 2016-04-05 Richard Biener <rguenther@suse.de>
22210 PR middle-end/70499
22211 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
22212 non-register type temporaries into SSA.
22214 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
22217 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
22218 calls when sanitizing.
22219 (possible_polymorphic_call_target_p): Fix formatting.
22221 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22222 Jakub Jelinek <jakub@redhat.com>
22224 PR middle-end/70457
22225 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
22226 to ensure a call statement is compatible with a built-in's
22228 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
22231 2016-04-04 Richard Biener <rguenther@suse.de>
22233 PR rtl-optimization/70484
22234 * rtl.h (canon_output_dependence): Declare.
22235 * alias.c (canon_output_dependence): New function.
22236 * dse.c (record_store): Use canon_output_dependence rather
22237 than canon_true_dependence.
22239 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22242 * cgraph.h (symtab_node::copy_visibility_from): New function.
22243 * symtab.c (symtab_node::copy_visibility_from): New function.
22244 * ipa-visibility.c (optimize_weakref): New function.
22245 (function_and_variable_visibility): Use it.
22247 2016-04-04 Martin Liska <mliska@suse.cz>
22250 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
22251 value that is really in range handled by SBR instruction.
22252 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
22253 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
22254 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
22256 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
22260 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
22261 set, but not for SP_REG operands.
22263 2016-04-02 Martin Sebor <msebor@redhat.com>
22266 * fold-const.c (maybe_nonzero_address): New function.
22267 (fold_comparison): Call it. Fold equality and relational
22268 expressions involving null pointers.
22269 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
22271 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
22273 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
22274 the "Y" constraint (scalar FP 0.0 immediate).
22276 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
22277 Add the "const_double" to the list of operand constraints.
22279 2016-04-01 Jakub Jelinek <jakub@redhat.com>
22281 PR rtl-optimization/70467
22282 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
22283 If low word of the last operand is 0, just emit addition/subtraction
22286 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22289 * config/s390/s390.c (s390_expand_insv): Check for everything
22290 constant instead of just VOIDmode stuff.
22292 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22295 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
22297 2016-04-01 Nathan Sidwell <nathan@acm.org>
22299 * tree.def (TRY_CATCH_EXPR): Correct documentation.
22301 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
22303 PR rtl-optimization/70461
22304 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
22307 2016-03-31 Martin Liska <mliska@suse.cz>
22310 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
22311 a tree value or an immediate integer value to a buffer
22312 that is eventually copied to a BRIG section.
22313 (emit_immediate_operand): Call the function here.
22314 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
22315 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
22316 of class' fields that are removed.
22317 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
22318 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
22319 m_brig_repr_size fields.
22321 2016-03-31 Martin Liska <mliska@suse.cz>
22324 * hsa-gen.c (hsa_function_representation::update_dominance): New
22326 (convert_addr_to_flat_segment): Likewise.
22327 (gen_hsa_memory_set): New alignment argument.
22328 (gen_hsa_ctor_assignment): Likewise.
22329 (gen_hsa_insns_for_single_assignment): Provide alignment
22330 to gen_hsa_ctor_assignment.
22331 (gen_hsa_insns_for_direct_call): Add new argument.
22332 (expand_lhs_of_string_op): New function.
22333 (expand_string_operation_builtin): Likewise.
22334 (expand_memory_copy): New function.
22335 (expand_memory_set): New function.
22336 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
22337 (convert_switch_statements): Change signature.
22338 (generate_hsa): Use a return value of the function.
22339 (pass_gen_hsail::execute): Do not call
22340 convert_switch_statements here.
22341 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
22342 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
22343 (hsa_function_representation::update_dominance): New function.
22345 2016-03-31 Martin Liska <mliska@suse.cz>
22348 * hsa-brig.c (emit_directive_variable): Emit alignment
22349 according to hsa_symbol::m_align.
22350 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
22351 (dump_hsa_symbol): Dump alignment of HSA symbols.
22352 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
22353 (gen_hsa_addr_with_align): New function.
22354 (hsa_bitmemref_alignment): Use newly added function.
22355 (gen_hsa_insns_for_load): Likewise.
22356 (gen_hsa_insns_for_store): Likewise.
22357 (gen_hsa_memory_copy): New argument added.
22358 (gen_hsa_insns_for_single_assignment): Respect
22359 alignment for assignments processed via gen_hsa_memory_copy.
22360 (gen_hsa_insns_for_direct_call): Likewise.
22361 (gen_hsa_insns_for_return): Likewise.
22362 (gen_function_def_parameters): Set default alignment.
22363 * hsa.c (hsa_object_alignment): New function.
22364 (hsa_byte_alignment): Pasted function.
22365 * hsa.h (hsa_symbol::m_align): New field.
22367 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22369 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
22370 scratch field for goto case.
22372 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
22374 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
22376 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
22379 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
22380 (scalar_chain::convert_insn): Call convert_op for reg
22381 moves to handle undefined registers.
22383 2016-03-31 Nathan Sidwell <nathan@acm.org>
22386 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
22387 Assert we don't want to move backwards.
22389 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
22392 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
22394 2016-03-31 Jakub Jelinek <jakub@redhat.com>
22396 PR rtl-optimization/70460
22397 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
22398 with operand from REG_LABEL_OPERAND, instead substitute
22399 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
22400 Don't do anything for REG_NON_LOCAL_GOTO jumps.
22402 2016-03-31 Martin Liska <mliska@suse.cz>
22404 * passes.c (execute_one_pass): Do not call
22405 todo_after for a discarded function.
22407 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22409 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
22410 (no_cost, infinite_cost): Initialize the new field.
22411 (get_computation_cost_at): Record setup cost.
22412 (determine_use_iv_cost_address): Skip cost computation for sub
22413 uses if we can estimate it without losing accuracy.
22415 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22417 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
22419 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
22420 max_loop_iterations_int.
22421 (tree_unswitch_outer_loop): Likewise.
22422 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
22423 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22425 2016-03-30 Richard Biener <rguenther@suse.de>
22427 PR middle-end/70450
22428 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
22430 2016-03-30 Jakub Jelinek <jakub@redhat.com>
22433 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
22434 in gen_blendm expander.
22436 2016-03-30 Nick Clifton <nickc@redhat.com>
22439 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
22440 case where we are already provided with an SImode SUBREG.
22442 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
22445 * config/i386/i386.c (ix86_expand_epilogue): Properly check
22446 conflict between DRAP register and __builtin_eh_return.
22448 2016-03-30 Michael Matz <matz@suse.de>
22449 Richard Biener <rguenther@suse.de>
22452 * ipa-polymorphic-call.c (struct type_change_info): Change
22453 speculative to an unsigned allowing to limit the work we do.
22454 (csftc_abort_walking_p): New inline function..
22455 (check_stmt_for_type_change): Limit the number of may-defs
22456 skipped for speculative devirtualization to
22457 max-speculative-devirt-maydefs.
22458 * params.def (max-speculative-devirt-maydefs): New param.
22459 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
22461 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
22464 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
22467 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
22469 PR tree-optimization/59124
22470 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
22471 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
22473 2016-03-29 Jeff Law <law@redhat.com>
22475 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
22477 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22479 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
22482 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
22484 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
22485 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
22486 gcrt0.o if linking dynamically.
22488 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22491 * ipa-devirt.c (methods_equal_p): New function.
22492 (compare_virtual_tables): Use it.
22493 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
22494 * cgraphclones.c (clone_function_name_1): Use
22495 symbol_table::symbol_suffix_separator.
22496 * coverage.c (build_var): Likewise.
22497 * symtab.c (symbol_table::symbol_suffix_separator): New.
22499 2016-03-29 Jakub Jelinek <jakub@redhat.com>
22501 PR rtl-optimization/70429
22502 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
22503 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
22504 mode != result_mode.
22507 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
22509 PR tree-optimization/70405
22510 * ssa-iterators.h (num_imm_uses): Add missing braces.
22512 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
22514 PR rtl-optimization/68695
22515 * ira-color.c (allocno_copy_cost_saving): New.
22516 (improve_allocation): Use it.
22518 2016-03-29 Richard Henderson <rth@redhat.com>
22520 PR middle-end/70355
22521 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
22523 2016-03-29 Richard Biener <rguenther@suse.de>
22525 PR middle-end/70424
22526 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
22527 use alignment returned by get_pointer_alignment_1 if it is
22528 bigger than BITS_PER_UNIT.
22529 * builtins.c (get_pointer_alignment_1): Do not return true
22530 for alignment extracted from SSA info.
22532 2016-03-28 James Bowman <james.bowman@ftdichip.com>
22534 * config/ft32/ft32.opt (mnodiv): New.
22535 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
22536 * doc/invoke.texi (FT32 Options -mnodiv): New.
22538 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
22541 * config/i386/i386.md (define_split, andn): Fix modes.
22543 2016-03-26 Richard Biener <rguenther@suse.de>
22544 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22547 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
22549 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
22550 as 2nd argument to cl_optimization_restore().
22552 2016-03-25 Richard Henderson <rth@redhat.com>
22555 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
22556 * config/aarch64/aarch64-protos.h: Declare it.
22557 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
22559 2016-03-25 Alan Modra <amodra@gmail.com>
22562 * config/rs6000/constraints.md (j): Simplify.
22563 * config/rs6000/predicates.md (easy_fp_constant): Exclude
22565 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
22566 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
22567 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
22568 in all constraint alternatives.
22569 (movtd_64bit_nodm): Delete "j" constraint alternative.
22571 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22573 * tree-ssa-propagate.c: Enhance docs for
22574 SSA_PROP_NOT_INTERESTING.
22576 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22578 * doc/extend.texi: Fix typo in documentation to pure attribute.
22580 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
22583 * config/pa/pa.md (bswapdi2): Use a scratch register.
22585 2016-03-24 Richard Henderson <rth@redhat.com>
22587 PR middle-end/69845
22588 * fold-const.c (extract_muldiv_1): Correct test for multiplication
22591 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
22593 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
22594 using ix86_expand_binary_operator instead of gen_andsi3.
22596 2016-03-24 Richard Biener <rguenther@suse.de>
22598 PR tree-optimization/70396
22599 * tree-vect-stmts.c (vectorizable_comparison): Use
22600 get_vectype_for_scalar_type.
22602 2016-03-24 Richard Biener <rguenther@suse.de>
22604 PR middle-end/70370
22605 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
22606 with register bases.
22608 2016-03-24 Richard Biener <rguenther@suse.de>
22610 PR tree-optimization/70372
22611 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
22612 build_all_ones_cst to also handle vector types correctly.
22614 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22617 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
22620 2016-03-23 Marek Polacek <polacek@redhat.com>
22623 * doc/invoke.texi: Document -Wignored-attributes.
22625 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22627 PR tree-optimization/69042
22628 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
22629 parameter from 30 to 40.
22631 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22633 PR tree-optimization/69042
22634 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
22635 for use with constant offset stripped in base.
22637 2016-03-23 Richard Biener <rguenther@suse.de>
22639 PR middle-end/70251
22640 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
22641 mode compatibility check.
22642 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22644 2016-03-23 Jeff Law <law@redhat.com>
22646 PR tree-optimization/64058
22647 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
22649 (struct ssa_conflicts): Move up earlier in the file.
22650 (conflicts_, var_map_): New static variables.
22651 (initialize_conflict_count): New function to initialize the
22652 CONFLICT_COUNT field for each conflict pair.
22653 (compare_pairs): Lazily initialize the conflict count and use it
22654 as the first tie-breaker.
22655 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
22656 and wipe conflicts_ and map_ around the call to qsort. Remove
22657 special case for 2 coalesce pairs.
22658 * bitmap.c (bitmap_count_unique_bits): New function.
22659 (bitmap_count_bits_in_word): New function, extracted from
22661 (bitmap_count_bits): Use bitmap_count_bits_in_word.
22662 * bitmap.h (bitmap_count_unique_bits): Declare it.
22664 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
22667 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
22668 transparent alias chain for decl assembler name.
22669 * config/sol2.c (solaris_assemble_visibility): Likewise.
22671 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22673 * config/arm/arm1020e.md (1020call_op): Reduce reservation
22675 (v10_fdivs): Likewise.
22676 (v10_fdivd): Likewise.
22678 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22681 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
22682 to not call fclose twice on file.
22684 2016-03-23 Jakub Jelinek <jakub@redhat.com>
22686 PR tree-optimization/70354
22687 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22688 oprnd0 is wider than oprnd1 and there is a cast from the wider
22689 type to oprnd1, mask it with the mask of the narrower type.
22692 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
22693 Optimize TARGET_STV splitters, if high or low word of last argument
22696 2016-03-22 Jeff Law <law@redhat.com>
22699 tree-ssa-threadbackward.c
22700 (fsm_find_control_statement_thread_paths): Correctly distinguish
22701 between old style jump threads vs FSM jump threads.
22703 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22706 * config/i386/i386.c (scalar_chain::convert_op): Support
22707 uninitialized register usage case.
22709 2016-03-22 Richard Biener <rguenther@suse.de>
22711 PR middle-end/70251
22712 * genmatch.c (gen_transform): Adjust last parameter to a three-state
22714 (capture::gen_transform): ... to change behavior when substituting
22715 a condition into cond or not-cond expr context.
22716 (dt_simplify::gen_1): Adjust.
22717 * gimple-match-head.c: Include gimplify.h for unshare_expr.
22718 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
22719 last change and instead change to
22720 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
22721 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22723 2016-03-22 Anthony Green <green@moxielogic.com>
22725 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
22726 issue for moxiebox targets.
22727 (CC1PLUS_SPEC): Ditto.
22729 2016-03-22 Richard Biener <rguenther@suse.de>
22731 PR middle-end/70333
22732 * fold-const.c (extract_muldiv_1): Properly perform multiplication
22735 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22737 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
22739 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22742 * config/i386/i386.c (def_builtin): Handle
22743 OPTION_MASK_ISA_AVX512VL to be and-ed with other
22745 (const struct builtin_description bdesc_special_args[]):
22746 Remove duplicate ISA bits.
22748 2016-03-22 Jakub Jelinek <jakub@redhat.com>
22751 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
22752 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
22753 in a way that works also for AVX512BW.
22756 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
22757 instead of source if operands[1] is xmm16 and above and
22758 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
22759 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
22762 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
22763 on assign if (*from_p) is a comparison, set it to
22764 TREE_NO_WARNING (*from_p).
22766 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22768 PR middle-end/70326
22769 * lra.c (restore_scratches): Ignore deleted insns.
22771 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
22772 Jakub Jelinek <jakub@redhat.com>
22774 PR tree-optimization/70317
22775 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
22778 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
22781 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
22782 of ix86_expand_move.
22784 (movti): Use general_operand for operand 1 predicate.
22786 2016-03-21 Martin Liska <mliska@suse.cz>
22788 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
22790 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
22792 2016-03-21 Martin Liska <mliska@suse.cz>
22795 * ipa-icf.c (sem_function::parse): Skip static
22796 constructors and destructors.
22798 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22801 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
22802 function-like macro, peek following token(s) if it is followed
22803 by CPP_OPEN_PAREN token with optional padding in between, and
22804 if not, don't treat it like a macro.
22806 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
22807 Alexander Monakov <amonakov@ispras.ru>
22809 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
22810 for the stabs debug format.
22812 2016-03-21 Richard Biener <rguenther@suse.de>
22814 PR tree-optimization/70310
22815 * tree-vect-generic.c (expand_vector_condition): Fold the built
22818 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
22821 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
22822 Block third alternative for AVX-512VL target,
22824 2016-03-21 Martin Liska <mliska@suse.cz>
22827 * hsa-brig.c (emit_function_directives): Mark unemitted
22828 global variables for emission.
22829 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
22830 (get_symbol_for_decl): Likewise.
22831 * hsa.h (struct hsa_symbol): New flag.
22833 2016-03-21 Richard Biener <rguenther@suse.de>
22835 PR tree-optimization/70288
22836 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
22837 we do not estimate unsimplified all-constant conditionals or
22838 switches as optimized away.
22840 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
22842 PR rtl-optimization/69102
22843 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
22844 when we have a readonly dependency context.
22846 2016-03-18 Jeff Law <law@redhat.com>
22848 PR rtl-optimization/70263
22849 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
22850 (update_equiv_regs): When trying to move a store to after the insn
22851 that sets the source of the store, make sure the store occurs after
22852 the insn that sets the source of the store. When successful note
22853 the REG_EQUIV note created in the dump file.
22855 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
22856 Bernd Schmidt <bschmidt@redhat.com>
22858 * doc/extend.texi: Document more potential problems with basic asms.
22860 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
22862 PR rtl-optimization/70278
22863 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
22866 2016-03-18 Jason Merrill <jason@redhat.com>
22868 * calls.c (load_register_parameters): Fix zero size sibcall logic.
22870 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22872 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
22873 values to 128b regs.
22875 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22877 PR tree-optimization/70252
22878 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
22879 boolean vector has a proper number of elements.
22880 (supportable_narrowing_operation): Likewise.
22882 2016-03-18 Tom de Vries <tom@codesourcery.com>
22885 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
22887 2016-03-18 Jakub Jelinek <jakub@redhat.com>
22889 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
22890 instead of replace_rtx for DEBUG_INSNs.
22892 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22894 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
22895 load type reservations.
22897 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
22900 * config/pa/constraints.md: Revert 2015-02-13 change. Use
22901 define_constraint for "Q" and "T" constraints.
22903 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
22905 Tweak the pipeline model for Exynos M1
22907 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
22910 2016-03-17 David Malcolm <dmalcolm@redhat.com>
22913 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
22914 where one or both locations aren't within a line_map.
22916 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
22919 * opts.c (finish_options): Don't set flag_pie to the default if
22920 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
22923 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
22925 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
22926 true as ALL_REGS argument to replace_rtx.
22928 2016-03-17 Richard Biener <rguenther@suse.de>
22931 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
22934 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22937 * rtl.h (replace_rtx): Add ALL_REGS argument.
22938 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
22939 equality and assert mode is the same, instead of just rtx pointer
22941 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
22942 true as ALL_REGS argument to replace_rtx.
22944 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
22946 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
22947 for boolean vector with vector mode only.
22948 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22950 2016-03-17 Nick Clifton <nickc@redhat.com>
22953 * config/rx/rx.c (rx_print_integer): Print negative constants in
22956 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22959 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
22961 2016-03-16 Richard Henderson <rth@redhat.com>
22962 Richard Biener <rguenth@suse.de>
22964 PR middle-end/70240
22965 PR middle-end/68215
22967 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
22968 first operand as is_gimple_condexpr.
22970 PR middle-end/70240
22971 PR middle-end/68215
22973 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
22974 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
22975 Do not gimplify the result.
22976 (do_unop): Adjust call to tree_vec_extract.
22977 (do_binop): Likewise.
22978 (do_compare): Likewise.
22979 (do_plus_minus): Likewise.
22980 (do_negate): Likewise.
22981 (expand_vector_condition): Likewise.
22982 (do_cond): Likewise.
22984 2016-03-16 Richard Henderson <rth@redhat.com>
22987 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
22988 (aarch64_classify_address): Use it.
22989 (aarch64_legitimize_address): Force all subexpressions of PLUS
22990 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
22992 2016-03-16 Jakub Jelinek <jakub@redhat.com>
22993 Richard Biener <rguenth@suse.de>
22996 * rtlanal.c (replace_rtx): For REG, if from is a REG,
22997 return to even if only REGNO is equal, and assert
23000 2016-03-11 Jeff Law <law@redhat.com>
23002 PR rtl-optimization/70224
23003 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
23005 2016-03-16 Richard Henderson <rth@redhat.com>
23007 PR middle-end/70199
23008 * function.h (struct function): Add has_forced_label_in_static.
23009 * gimplify.c (force_labels_r): Set it.
23010 * lto-streamer-in.c (input_struct_function_base): Read it.
23011 * lto-streamer-out.c (output_struct_function_base): Write it.
23012 * tree-inline.c (has_label_address_in_static_1): Remove.
23013 (copy_forbidden): Remove fndecl parameter; test
23014 has_forced_label_in_static.
23015 (inline_forbidden_p): Update call to copy_forbidden.
23016 (tree_versionable_function_p): Likewise.
23017 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
23018 (chkp_versioning): Likewise.
23019 * tree-inline.h (copy_forbidden): Update decl.
23021 2016-03-16 Marek Polacek <polacek@redhat.com>
23024 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
23025 function being thunked if the result type doesn't have fixed size.
23026 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
23027 doesn't have fixed size.
23029 2016-03-16 Bin Cheng <bin.cheng@arm.com>
23031 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
23032 reporting malformed loop nest.
23034 2016-03-16 Tom de Vries <tom@codesourcery.com>
23037 * ipa-devirt.c (possible_polymorphic_call_targets): Move
23038 nodes.length () == 1 test to before first nodes[0] access.
23040 2016-03-16 Tom de Vries <tom@codesourcery.com>
23042 PR tree-optimization/68715
23043 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
23044 single_pred_p test.
23046 2016-03-16 Tom de Vries <tom@codesourcery.com>
23048 PR tree-optimization/68809
23049 * graphite-scop-detection.c (same_close_phi_node): Test if result types
23052 2016-03-16 Carlos O'Donell <carlos@redhat.com>
23053 Sandra Loosemore <sandra@codesourcery.com>
23055 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
23056 on leaf attribute. Mention ELF interposition problems.
23058 2016-03-16 Alan Modra <amodra@gmail.com>
23060 PR rtl-optimization/69195
23061 PR rtl-optimization/47992
23062 * ira.c (indirect_jump_optimize): Ignore artificial defs.
23065 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
23068 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
23070 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23072 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
23074 2016-03-15 Jakub Jelinek <jakub@redhat.com>
23076 PR rtl-optimization/70222
23077 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
23078 optimization if mode is different from result_mode, queue up masking
23079 of the result in outer_op. Formatting fix.
23081 PR middle-end/70239
23082 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
23085 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
23087 PR rtl-optimization/69032
23088 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
23089 looping backwards over basic block insns.
23091 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
23094 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
23095 to non-speculative when propagating trap bits.
23097 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
23099 PR rtl-optimization/63384
23100 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
23101 DEBUG_INSN_P insns.
23103 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
23106 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
23107 factored out from ...
23108 (sched_analyze_insn): ... here.
23109 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
23110 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
23111 get_implicit_reg_pending_clobbers in it.
23112 (setup_id_reg_sets): Use setup_id_implicit_regs.
23113 (deps_init_id): Ditto.
23115 2016-03-15 Tom de Vries <tom@codesourcery.com>
23118 * cgraph.c (cgraph_node::get_body): Save, reset and restore
23120 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
23121 execute_function_dump.
23122 (execute_one_pass): Don't dump function if it will be dumped after ipa
23125 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
23127 * genrecog.c (match_pattern_2): If pred is NULL don't call
23128 safe_predicate_mode on it.
23130 2016-03-14 Jakub Jelinek <jakub@redhat.com>
23132 PR middle-end/70219
23133 * lra-constraints.c (delete_move_and_clobber): Change assertion
23134 to also allow dregno == 0.
23136 2016-03-14 Richard Henderson <rth@redhat.com>
23139 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
23140 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
23141 (reassociate_bb): Use optimize_vec_cond_expr; avoid
23142 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
23145 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
23148 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
23150 (lra_create_live_ranges_1): initialize hard register biggest_mode to
23152 * lra-constraints.c (split_reg): For hard regs, try to find the
23153 biggest single-register mode used in the function.
23155 2016-03-14 Richard Biener <rguenther@suse.de>
23157 PR tree-optimization/56365
23158 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
23159 constants to compare against.
23161 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
23164 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
23165 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
23166 (define_split for the GPR case): Use int_reg_operand instead of
23167 gpc_reg_operand for the output.
23169 2016-03-14 Tom de Vries <tom@codesourcery.com>
23171 PR tree-optimization/70045
23172 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
23173 create_empty_if_region_on_edge argument.
23175 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
23177 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
23178 (STACK_CHECK_PROTECT): Likewise.
23179 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23180 (STACK_CHECK_PROTECT): Likewise.
23181 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23182 (STACK_CHECK_PROTECT): Likewise.
23183 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
23184 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
23185 (STACK_CHECK_PROTECT): Likewise.
23187 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
23189 PR rtl-optimization/69307
23190 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
23191 registers in modes that span more than one register.
23193 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
23196 * lra-constraints.c (delete_move_and_clobber): New.
23197 (remove_inheritance_pseudos): Use it.
23199 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
23202 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
23203 the libcall is LCT_THROW.
23204 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
23205 for the checking routine.
23207 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23210 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
23211 optimization if we have direct move.
23212 (roundu32<mode>2_fprs): Likewise.
23214 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
23217 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
23219 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
23220 Arguments swapped. All callers changed. Take reg_renumber into
23221 account, and Calculate and compare register ranges for hard regs.
23223 2016-03-11 Jeff Law <law@redhat.com>
23225 PR tree-optimization/70190
23226 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23227 Handle cases where we can not extract the taken edge, even though we
23228 found a constant value.
23230 PR tree-optimization/64058
23231 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
23232 (num_coalesce_pairs): Move up earlier in file.
23233 (find_coalesce_pair): Initialize the INDEX field for each pair
23235 (compare_pairs): No longer sort on the elements in each pair.
23236 Instead break ties with the index of the coalesce pair.
23238 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23241 * config/aarch64/aarch64-protos.h
23242 (aarch64_save_restore_target_globals): New prototype.
23243 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
23244 Call the above when popping pragma.
23245 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
23247 (aarch64_set_current_function): Rewrite using the above.
23249 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23251 PR tree-optimization/70177
23252 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
23253 (extract_ops_from_tree): ... this. In the 2 argument
23254 overload remove _1 suffix.
23255 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
23256 (extract_ops_from_tree): ... this.
23257 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
23259 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
23260 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
23261 extract_ops_from_tree instead of 2 operand one.
23263 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
23265 PR tree-optimization/70013
23266 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
23267 for constant-pool entries.
23269 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23271 PR rtl-optimization/70174
23272 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
23273 followed by gen_lowpart on force_reg instead of just gen_lowpart.
23275 PR tree-optimization/70169
23276 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
23277 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
23280 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
23281 Jakub Jelinek <jakub@redhat.com>
23284 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
23285 of uninitialized values.
23287 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23289 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
23291 ("*trunctddd2"): New pattern definition.
23292 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
23295 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23297 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
23298 definitions for BFP and DFP rounding modes.
23299 ("fixuns_truncdddi2", "fixuns_trunctddi2")
23300 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
23301 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
23302 ("fix_trunctf<mode>2"): Use the new constants instead of magic
23305 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23307 * config/s390/constraints.md: Adjust comment.
23308 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
23309 s390_decompose_addrstyle_without_index.
23310 * config/s390/predicates.md (shift_count_or_setmem_operand):
23311 Rename to setmem_operand.
23312 * config/s390/s390-protos.h
23313 (s390_decompose_shift_count): Rename to
23314 s390_decompose_addrstyle_without_index.
23315 * config/s390/s390.c (s390_decompose_shift_count)
23316 (s390_mem_constraint, print_shift_count_operand)
23317 (print_operand_address, print_operand): Rename
23318 s390_decompose_shift_count to
23319 s390_decompose_addrstyle_without_index and rename
23320 print_shift_count_operand to print_addrstyle_operand troughout the
23322 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
23323 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
23324 Rename shift_count_or_setmem_operand to setmem_operand.
23325 * config/s390/vx-builtins.md ("vec_insert<mode>")
23326 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
23329 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23332 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23333 Handle overlapping retval and newval.
23335 2016-03-10 Nick Clifton <nickc@redhat.com>
23338 * config/aarch64/aarch64.c
23339 (aarch64_override_options_after_change_1): When forcing
23340 flag_omit_frame_pointer to be true, use a special value that can
23341 be detected if this function is called again, thus preventing
23342 flag_omit_leaf_frame_pointer from being forced to be false.
23344 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23346 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
23347 Set x_flag_omit_leaf_frame_pointer when handling
23348 -momit-leaf-frame-pointer.
23350 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23353 * cgraph.c (cgraph_node::dump): Dump split_part and
23354 indirect_call_target.
23355 * cgraph.h (cgraph_node): Add indirect_call_target flag.
23356 * ipa.c (has_addr_references_p): Cleanup.
23357 (is_indirect_call_target_p): New.
23358 (walk_polymorphic_call_targets): Do not mark virtuals that may be
23359 called indirectly as local.
23360 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
23362 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23365 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23366 on cxa_pure_virtual.
23368 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23371 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
23373 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23376 * tree.c (need_assembler_name_p): Only record main variant type names.
23378 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23381 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
23382 Always define to 0 or 1.
23383 (TARGET_FIX_ERR_A53_843419): New macro.
23384 * config/aarch64/aarch64-elf-raw.h
23385 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
23386 * config/aarch64/aarch64-linux.h: Likewise.
23387 * config/aarch64/aarch64.c
23388 (aarch64_override_options_after_change_1): Do not default
23389 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
23391 (aarch64_attributes): Handle fix-cortex-a53-843419.
23392 (aarch64_can_inline_p): Likewise.
23393 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
23395 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
23396 Jakub Jelinek <jakub@redhat.com>
23398 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
23399 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
23400 DECL_COMMONS if flag_unconstrained_commons is set.
23401 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23402 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
23403 (funconstrained-commons): Document.
23405 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23407 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
23408 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
23410 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
23412 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
23413 has a proper number of elements.
23415 2016-03-10 Alan Modra <amodra@gmail.com>
23417 PR rtl-optimization/69195
23418 PR rtl-optimization/47992
23419 * ira.c (recorded_label_ref): Delete.
23420 (update_equiv_regs): Return void.
23421 (indirect_jump_optimize): New function.
23422 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
23423 before regstat_compute_ri. Don't rebuild_jump_labels here.
23424 Delete update_regstat.
23426 2016-03-10 Richard Biener <rguenther@suse.de>
23428 PR tree-optimization/70128
23429 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23430 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
23432 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23434 PR tree-optimization/70152
23435 * tree-sra.c (replace_removed_params_ssa_names): Copy over
23436 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
23439 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
23440 instead of gen_sse2_loadlpd.
23441 * config/i386/sse.md (*vec_concatv2df): Rename to...
23442 (vec_concatv2df): ... this.
23444 PR tree-optimization/70127
23445 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
23447 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23451 * diagnostic-show-locus.c (compatible_locations_p): New function.
23452 (layout::layout): Sanitize ranges using compatible_locations_p.
23454 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23458 * diagnostic-show-locus.c (layout_range::layout_range): Replace
23459 location_range param with three const expanded_locations * and a
23461 (layout::layout): Replace call to
23462 rich_location::lazily_expand_location with get_expanded_location.
23463 Extract the range and perform location expansion here, passing
23464 the results to the layout_range ctor.
23465 * diagnostic.c (source_range::debug): Delete.
23466 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
23467 of rich_location::get_expanded_location.
23468 * gcc-rich-location.c (get_range_for_expr): Delete.
23469 (gcc_rich_location::add_expr): Reimplement to avoid the
23470 rich_location::add_range overload that took a location_range,
23471 passing a location_t instead.
23473 2016-03-09 Richard Biener <rguenther@suse.de>
23474 Jakub Jelinek <jakub@redhat.com>
23476 PR tree-optimization/70138
23477 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23478 Also skip vect_double_reduction_def.
23480 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23483 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
23484 if the operand is "m".
23486 2016-03-09 Nathan Sidwell <nathan@acm.org>
23488 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
23490 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23492 * config/i386/i386.c (processor_target_table): Fix cost table
23493 intialization order for znver1.
23495 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23497 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
23498 - becuase -> because.
23499 * ipa-reference.c (ignore_module_statics): Likewise.
23500 * cgraph.c (cgraph_node::get_body): Likewise.
23501 * ipa-inline.c (early_inliner): Likewise.
23502 * ipa-devirt.c (types_same_for_odr): Likewise.
23503 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
23504 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
23506 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23508 * tree-ssa-math-opts.c: Fix typo in comment.
23510 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23513 * config/i386/i386.c (scalar_chain::make_vector_copies,
23514 scalar_chain::convert_reg): Call end_sequence in between
23515 get_insns and emit_conversion_insns rather than after both
23518 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
23521 * config/i386/i386.h (machine_function): Add
23522 pc_thunk_call_expanded flag.
23523 (ix86_pc_thunk_call_expanded): New define.
23524 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
23525 (*set_got): Rename insn pattern from set_got.
23526 (*set_got_labelled): Rename inst pattern from set_got_labelled.
23527 * config/i386/i386.c (ix86_compute_frame_layout): Use
23528 ix86_pc_thunk_call_expanded to prevent red-zone.
23530 2016-03-07 Martin Jambor <mjambor@suse.cz>
23532 * hsa.h (hsa_get_ctor_statements): Declare.
23533 (hsa_get_dtor_statements): Likewise.
23534 (hsa_get_kernel_dispatch_type): Likewise.
23535 * hsa.c (hsa_get_ctor_statements): New function.
23536 (hsa_get_dtor_statements): Likewise.
23537 (hsa_get_kernel_dispatch_type): Likewise.
23538 * hsa-brig.c (hsa_cdtor_statements): Removed.
23539 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
23540 hsa_get_dtor_statements.
23541 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
23542 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
23544 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
23546 * config/arm/arm-cores.def (cortex-r8): New.
23547 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
23548 * config/arm/arm-tune.md: Likewise.
23549 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
23551 2016-03-07 Martin Sebor <msebor@redhat.com>
23553 PR rtl-optimization/19705
23554 * doc/invoke.texi (Options That Control Optimization): Clarify
23555 -fno-branch-count-reg.
23557 2016-02-26 Richard Biener <rguenther@suse.de>
23558 Jeff Law <law@redhat.com>
23560 PR tree-optimization/69740
23561 * cfghooks.c (remove_edge): Request loop fixups if we delete
23562 an edge that might turn an irreducible loop into a natural
23564 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
23565 Move after definition of loops_state_clear.
23567 2016-03-07 Bin Cheng <bin.cheng@arm.com>
23569 PR rtl-optimization/69052
23570 * rtlanal.c (commutative_operand_precedence): Set higher precedence
23573 2016-03-07 Tom de Vries <tom@codesourcery.com>
23575 PR tree-optimization/70116
23576 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
23577 is_tm_ending stmts and ubsan/asan internal functions.
23578 (find_duplicate): Use it. Don't test is_tm_ending here.
23580 2016-03-07 Richard Biener <rguenther@suse.de>
23582 PR tree-optimization/70115
23583 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
23584 (propagate_constants_for_unrolling): Use replace_uses_by.
23586 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
23588 PR middle-end/69916
23589 * omp-low.c (struct oacc_loop): Add ifns.
23590 (new_oacc_loop_raw): Initialize it.
23591 (finish_oacc_loop): Clear mask & flags if no ifns.
23592 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
23593 (oacc_loop_xform_loop): Add ifns arg & adjust.
23594 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
23596 2016-03-07 Richard Henderson <rth@redhat.com>
23599 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
23600 (insert_value_copy_on_edge): Likewise.
23602 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23604 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
23606 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23609 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
23611 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23613 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
23615 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23617 Fix sseimul type attribute.
23618 * config/i386/znver1.md
23619 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
23620 znver1_sseimul_avx256_load) : Fix the type attribute.
23621 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
23622 pipe usage and latency.
23624 2016-03-05 Jakub Jelinek <jakub@redhat.com>
23627 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
23628 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
23631 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23634 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
23636 PR rtl-optimization/69941
23637 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
23638 the reg share its mode.
23640 2016-03-04 Jeff Law <law@redhat.com>
23642 PR tree-optimization/69196
23643 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23644 If the both SSA_NAMEs are anonymous, then consider them unassociated
23645 and include the PHI in the statement count.
23647 2016-03-05 Tom de Vries <tom@codesourcery.com>
23649 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
23650 construct in oacc routine. Check for oacc region in oacc routine.
23652 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23655 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
23656 2016-02-22 changes, instead don't recurse if RECUR is already true.
23657 Don't change *dynamic_check if RECUR. Adjust recursive caller
23658 to pass true to the new argument.
23659 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
23662 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23663 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
23665 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
23667 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23669 PR rtl-optimization/57676
23670 * lra-assigns.c (lra_assign): Guard test for maximum iterations
23671 with flag_checking.
23673 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
23675 * tree-vect-patterns.c (search_type_for_mask): Handle
23676 comparison of booleans.
23678 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23680 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
23684 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
23685 all other ops that have dw_val_class_die_ref operands,
23686 and DW_OP_GNU_entry_value.
23688 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23690 PR rtl-optimization/69904
23691 * config/arm/arm.c (arm_cannot_copy_insn_p):
23692 Return true for load-exclusive instructions.
23694 2016-03-03 Jakub Jelinek <jakub@redhat.com>
23697 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
23698 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
23699 the pattern no matter if it is used just by non-pattern, pattern
23701 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
23702 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
23703 oprnd1 def_stmt is in pattern, don't look through it.
23705 2016-03-03 Marek Polacek <polacek@redhat.com>
23707 PR middle-end/70050
23708 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
23710 2016-03-03 Martin Liska <mliska@suse.cz>
23712 PR tree-optimization/70043
23713 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
23714 previous statement if we see a debug statement.
23716 2016-03-03 Richard Biener <rguenther@suse.de>
23718 PR tree-optimization/55936
23719 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
23720 parameter and guard unsafe equivalence use.
23721 (vrp_evaluate_conditional_warnv_with_ops): Always use
23722 safe equivalences but not via the quadratic compare_names
23725 2016-03-03 Michael Collison <michael.collison@linaro.org>
23728 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
23729 for operand 1 to s_register_operand. Change predicate for operand
23730 2 to arm_not_immediate_operand.
23732 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
23734 * doc/tm.texi: Regenerated.
23736 2016-03-02 Richard Henderson <rth@redhat.com>
23739 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
23740 simplification when all args are positive non-fixed registers.
23742 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23744 * target.def (lra_p): Specify that new ports should use LRA.
23746 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23749 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
23750 gimplify_type_sizes the type they refer to.
23751 (omp_notice_variable): Handle reference vars to VLAs.
23752 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
23753 reference to VLA decls in the second pass instead of first pass.
23755 2016-03-02 Tom de Vries <tom@codesourcery.com>
23757 PR tree-optimization/68659
23758 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
23759 new_expr == NULL_TREE.
23760 (get_new_name): Handle ADDR_EXPR.
23762 2016-03-02 Bin Cheng <bin.cheng@arm.com>
23764 PR rtl-optimization/69052
23765 * loop-invariant.c (canonicalize_address): New function.
23766 (inv_can_prop_to_addr_use): Check validity of address expression
23767 which is canonicalized by above function.
23769 2016-03-02 Alan Modra <amodra@gmail.com>
23772 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
23775 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23778 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
23779 (*movhi_internal): Put mask moves from and to memory separately
23780 from moves from/to GPRs.
23782 2016-03-02 Richard Biener <rguenther@suse.de>
23784 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
23785 GENERIC expressions in GIMPLE.
23787 2016-03-02 Richard Biener <rguenther@suse.de>
23789 * config/i386/i386.c (type_natural_mode): Fix typo.
23791 2016-03-02 Nick Clifton <nickc@redhat.com>
23793 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
23795 2016-03-02 Richard Biener <rguenther@suse.de>
23796 Uros Bizjak <ubizjak@gmail.com>
23799 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
23801 2016-03-02 Richard Biener <rguenther@suse.de>
23803 PR middle-end/67278
23804 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
23806 2016-03-02 Marek Polacek <polacek@redhat.com>
23809 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
23810 "is promoted to" warning.
23812 2016-03-01 DJ Delorie <dj@redhat.com>
23814 * config.gcc: Deprecate mep-*.
23816 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
23818 PR middle-end/70025
23819 * lra-constraints.c (regno_val_use_in): New.
23820 (match_reload): Use it instead of regno_use_in.
23822 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23824 PR rtl-optimization/70007
23825 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
23826 references present in REG_EQUAL notes attached to non-SET patterns.
23828 2016-03-01 Jeff Law <law@redhat.com>
23830 PR tree-optimization/69196
23831 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23832 Appropriately clamp the number of statements to copy when the
23833 thread path does not traverse a loop backedge.
23835 PR tree-optimization/69196
23836 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23837 Do count some PHIs in the thread path against the insn count. Decrease
23838 final statement count by one as the control statement in the last
23839 block will get removed. Remove special cased code for handling PHIs
23842 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
23845 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
23846 asm dialect alternatives to explicit GOTPCREL calls.
23848 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23851 * ira.c (do_reload): Issue warning for generic stack checking here...
23852 * reload1.c (reload): ...instead of here and streamline it.
23854 2016-03-01 Nick Clifton <nickc@redhat.com>
23856 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
23858 2016-03-01 Richard Biener <rguenther@suse.de>
23860 PR tree-optimization/69983
23861 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
23862 types and fall back to operand_equal_p.
23864 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23867 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23869 * config/s390/constraints.md ("jm8"): New constraint.
23870 * config/s390/predicates.md ("const_int_8bitset_operand"): New
23872 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
23874 ("*setmem_long<setmem_and>"): New pattern.
23875 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
23877 ("*setmem_long_31z<setmem_and>"): New pattern.
23878 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
23879 New substitution rules with the required attributes.
23882 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23885 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23887 * gensupport.c (process_substs_on_one_elem): Split loop to
23888 complete mark_operands_used_in_match_dup on all expressions in the
23890 (adjust_operands_numbers): Inline into process_substs_on_one_elem
23891 and remove function.
23893 2016-03-01 Richard Biener <rguenther@suse.de>
23895 PR middle-end/70022
23896 * fold-const.c (fold_indirect_ref_1): Fix range checking for
23897 vector BIT_FIELD_REF extract.
23899 2016-03-01 Richard Biener <rguenther@suse.de>
23901 PR tree-optimization/69994
23902 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
23904 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
23906 PR tree-optimization/69956
23907 * tree-vect-stmts.c (supportable_widening_operation): Support
23908 multi-step conversion of boolean vectors.
23909 (supportable_narrowing_operation): Likewise.
23911 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23913 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
23916 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23918 * config/s390/subst.md (DSI_VI): New mode iterator.
23919 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
23920 * config/s390/vector.md ("vec_set<mode>"): Move expander before
23921 the insn definition.
23922 ("*vec_set<mode>"): Change predicate and add alternative to
23923 support only either register or const_int operands as element
23925 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
23927 ("vec_extract<mode>"): New expander.
23928 ("*vec_extract<mode>"): New insn definition supporting reg and
23929 const_int element selectors.
23930 ("*vec_extract<mode>_plus"): New insn definition supporting
23931 reg+const_int element selectors.
23932 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
23933 following expander+insn definition.
23934 ("<vec_shifts_name><mode>3"): New expander.
23935 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
23937 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23939 * config/s390/s390.md ("*tabort_1"): Change predicate to
23940 nonmemory_operand. Add a second alternative to cover
23941 register as well as const int operands.
23942 ("*tabort_1_plus"): New pattern definition.
23944 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23946 * config/s390/s390.md ("*ashrdi3_cc_31")
23947 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
23948 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
23949 Merge insn definitions into ...
23950 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23951 New pattern definition.
23952 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
23953 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
23954 ("*ashr<mode>3_and"): Merge insn definitions into ...
23955 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23956 New pattern definition.
23957 * config/s390/subst.md ("addr_style_op_cc_subst")
23958 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
23959 substitutions patterns plus attributes.
23960 Add ashiftrt to SUBST iterator.
23962 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23964 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
23965 op2 to nonmemory_operand.
23966 ("*<shift>di3_31", "*<shift>di3_31_and"):
23967 Merge into single pattern definition ...
23968 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
23969 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
23970 pattern definition ...
23971 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
23972 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
23975 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23977 * config/s390/predicates.md (const_int_6bitset_operand): New
23979 * config/s390/s390.md: Include subst.md.
23980 ("rotl<mode>3"): New expander.
23981 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
23983 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
23984 * config/s390/subst.md: New file.
23986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23988 * config/s390/s390.md ("op_type", "atype", "length" attributes):
23989 Remove RRR type. It doesn't really exist.
23990 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
23992 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
23993 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
23994 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
23995 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
23996 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
23997 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
23998 `enabled' attribute.
24000 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24002 * gensupport.c (process_substs_on_one_elem): Split loop to
24003 complete mark_operands_used_in_match_dup on all expressions in the
24005 (adjust_operands_numbers): Inline into process_substs_on_one_elem
24006 and remove function.
24008 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
24011 * config/sparc/sparc.c (NWORDS_UP): Rename to...
24012 (CEIL_NWORDS): ...this. Use CEIL macro.
24013 (compute_fp_layout): Adjust to above renaming.
24014 (function_arg_union_value): Likewise.
24015 (sparc_arg_partial_bytes): Likewise.
24016 (sparc_function_arg_advance): Likewise.
24018 2016-02-29 Jeff Law <law@redhat.com>
24020 PR tree-optimization/70005
24021 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
24022 where an object with a boolean range is compared against a value
24025 PR tree-optimization/69999
24026 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
24027 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
24030 2016-02-29 Richard Biener <rguenther@suse.de>
24032 PR tree-optimization/69994
24033 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
24034 (get_unary_op): Look through nop conversions.
24035 (ops_equal_values_p): New function, look for equality diregarding
24037 (eliminate_plus_minus_pair): Use ops_equal_values_p
24038 (repropagate_negates): Do not use get_unary_op here.
24040 2016-02-29 Martin Liska <mliska@suse.cz>
24042 * system.h: Poison ENABLE_CHECKING macro.
24044 2016-02-29 Martin Liska <mliska@suse.cz>
24046 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
24047 is presented in dump flags.
24048 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24049 (hsa_regalloc): Likewise.
24051 2016-02-19 Richard Biener <rguenther@suse.de>
24053 PR tree-optimization/69980
24054 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
24055 permutation of those we need to keep.
24057 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
24060 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
24061 (NWORDS_UP): ...this
24062 (init_cumulative_args): Minor tweaks.
24063 (sparc_promote_function_mode): Likewise.
24064 (scan_record_type): Delete.
24065 (traverse_record_type): New function template.
24066 (classify_data_t): New structure type.
24067 (classify_registers): New inline function.
24068 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
24069 exhausted. Instantiate traverse_record_type on classify_registers and
24070 deal with the case of a structure passed in slot #15 with no FP field
24072 (assign_data_t): New structure type.
24073 (compute_int_layout): New static function.
24074 (compute_fp_layout): Likewise.
24075 (count_registers): New inline function.
24076 (assign_int_registers): New static function.
24077 (assign_fp_registers): Likewise.
24078 (assign_registers): New inline function.
24079 (function_arg_record_value_1): Delete.
24080 (function_arg_record_value_2): Likewise.
24081 (function_arg_record_value_3): Likewise.
24082 (function_arg_record_value): Adjust to above changes. Instantiate
24083 traverse_record_type on count_registers to first count the number of
24084 registers to be used and then on assign_registers to assign them.
24085 (function_arg_union_value): Adjust to above renaming.
24086 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
24087 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
24088 case of a structure passed in slot #15
24089 (sparc_function_arg_advance): Likewise.
24090 (function_arg_padding): Minor tweak.
24092 2016-02-29 Richard Biener <rguenther@suse.de>
24094 PR tree-optimization/69720
24095 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
24096 the adjustment_def path for possibly vectorized defs.
24097 (vect_create_epilog_for_reduction): Handle vectorized initial
24100 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
24102 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
24104 2016-02-27 Jeff Law <law@redhat.com>
24107 2016-02-26 Richard Biener <rguenther@suse.de>
24108 Jeff Law <law@redhat.com>
24110 PR tree-optimization/69740
24111 * cfghooks.c (remove_edge): Request loop fixups if we delete
24112 an edge that might turn an irreducible loop into a natural
24115 2016-02-27 Jakub Jelinek <jakub@redhat.com>
24117 PR rtl-optimization/69896
24118 * tree-vect-generic.c (get_compute_type): Avoid single element
24121 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
24123 Rename the AArch64 tuning option and related functions to enable the
24124 Newton series for the reciprocal square root to reflect its
24125 approximative characteristic.
24127 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
24128 function to "aarch64_emit_approx_rsqrt".
24129 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
24130 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
24131 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
24132 (xgene1_tunings): Likewise.
24133 (use_rsqrt_p): Likewise.
24134 (aarch64_emit_swrsqrt): Use new function name.
24135 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
24136 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
24137 text explaining this option.
24138 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
24140 2016-02-26 Jakub Jelinek <jakub@redhat.com>
24143 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24144 complain about -mallow-movmisalign without -mvsx if
24145 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
24147 2016-02-26 Joel Sherrill <joel@rtems.org>
24149 * config.gcc: Add x86_64-*-rtems*.
24150 * config/i386/rtems-64.h: New file.
24152 2016-02-26 Joel Sherrill <joel@rtems.org>
24154 * config.gcc: Add aarch64-*-rtems*.
24155 * config/aarch64/rtems.h: New file.
24157 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
24160 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
24161 shift amount using %h. Add comment.
24163 2016-02-26 Richard Biener <rguenther@suse.de>
24164 Jeff Law <law@redhat.com>
24166 PR tree-optimization/69740
24167 * cfghooks.c (remove_edge): Request loop fixups if we delete
24168 an edge that might turn an irreducible loop into a natural
24171 2016-02-26 Martin Jambor <mjambor@suse.cz>
24173 PR middle-end/69920
24174 * tree-sra.c (sra_modify_assign): Do not remove loads of
24175 uninitialized aggregates to SSA_NAMEs.
24177 2016-02-26 Richard Henderson <rth@redhat.com>
24180 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
24181 pseudo in case the target rtx matches the source of the left
24184 2016-02-26 Martin Jambor <mjambor@suse.cz>
24187 * hsa.h (hsa_type_packed_p): Declare.
24188 * hsa.c (hsa_type_packed_p): New function.
24189 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
24191 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
24192 * hsa-brig.c (emit_basic_insn): Likewise.
24194 2016-02-26 Martin Jambor <mjambor@suse.cz>
24197 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
24199 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
24201 2016-02-26 Martin Jambor <mjambor@suse.cz>
24203 * hsa.h (is_a_helper): New overload for hsa_op_immed for
24204 hsa_op_with_type operands.
24205 (hsa_unsigned_type_for_type): Declare.
24206 * hsa.c (hsa_unsigned_type_for_type): New function.
24207 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
24208 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
24209 the finalizer. Do not emit extra move.
24211 2016-02-26 Martin Jambor <mjambor@suse.cz>
24213 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
24214 atomic operations in private segment.
24216 2016-02-26 Martin Jambor <mjambor@suse.cz>
24218 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
24219 statements to wi->info. Also disallow omp simd constructs.
24220 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
24221 for not gridifying. Dump special string for omp_for.
24223 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24226 * config/aarch64/aarch64.c (aarch64_set_current_function):
24227 Save/restore target globals when switching to
24228 target_option_default_node.
24230 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24233 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
24234 Return 0 if !SHIFT_COUNT_TRUNCATED.
24236 2016-02-26 Jakub Jelinek <jakub@redhat.com>
24237 Eric Botcazou <ebotcazou@adacore.com>
24239 PR rtl-optimization/69891
24240 * dse.c (scan_insn): If we can't figure out memset arguments
24241 or they are non-constant, call clear_rhs_from_active_local_stores.
24243 2016-02-26 Martin Liska <mliska@suse.cz>
24245 * doc/extend.texi: Mention clog10, clog10f an clog10l
24246 in Builtins section.
24248 2016-02-26 Martin Liska <mliska@suse.cz>
24250 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
24252 (resolve_args_picking_1): Likewise.
24253 * dwarf2out.h (struct GTY): Likewise.
24255 2016-02-26 Martin Liska <mliska@suse.cz>
24257 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
24258 with flag_checking.
24259 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24261 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24262 Martin Liska <mliska@suse.cz>
24264 * doc/install.texi: Mention --enable-valgrind-annotations.
24266 2016-02-26 Richard Biener <rguenther@suse.de>
24268 PR tree-optimization/69551
24269 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
24270 looking through aliases adjust DECL_PT_UID to refer to the
24271 ultimate alias target.
24273 2016-02-25 Martin Liska <mliska@suse.cz>
24275 PR middle-end/69919
24276 * alloc-pool.c (after_memory_report): New variable.
24277 * alloc-pool.h (base_pool_allocator ::release): Do not use
24278 the infrastructure if after_memory_report.
24279 * toplev.c (toplev::main): Mark after memory report.
24281 2016-02-25 Richard Biener <rguenther@suse.de>
24283 PR tree-optimization/48795
24284 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
24286 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
24289 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
24290 offloading is enabled and -fopenacc or -fopenmp is specified.
24291 (CRTOFFLOADEND): Likewise.
24292 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
24293 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
24294 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
24295 (offload_objects_file_name): New static var.
24296 (tool_cleanup): Remove offload_objects_file_name file.
24297 (find_offloadbeginend): Replace with ...
24298 (find_crtoffloadtable): ... this.
24299 (run_gcc): Remove offload_argc and offload_argv.
24300 Get offload_objects_file_name from -foffload-objects=... option.
24301 Read names of object files with offload from this file, pass them to
24302 compile_images_for_offload_targets. Don't call find_offloadbeginend and
24303 don't pass offloadbegin and offloadend to the linker. Don't pass
24304 offload non-LTO files to the linker, because now they're not claimed.
24306 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
24309 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
24310 on builtin_unreachable.
24312 2016-02-25 Jakub Jelinek <jakub@redhat.com>
24314 PR rtl-optimization/69896
24315 * regcprop.c: Include cfgrtl.h.
24316 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
24317 than remembered mode, either delete it (if noop_move_p), or
24318 treat like copy_p but not noop_p instruction.
24320 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24323 * dwarf2out.c (gen_variable_die): Work around buggy LTO
24324 - allow NULL decl for Fortran DW_TAG_common_block variables.
24326 2016-02-24 Jason Merrill <jason@redhat.com>
24328 * common.opt (flifetime-dse): Add -flifetime-dse=1.
24330 2016-02-24 Richard Biener <rguenther@suse.de>
24331 Jakub Jelinek <jakub@redhat.com>
24333 PR middle-end/69760
24334 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
24335 conditionally executed ops to well-defined overflow behavior.
24337 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24339 PR middle-end/69915
24340 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
24343 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24345 PR rtl-optimization/69886
24346 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
24347 argument. Use it when checking validity of set instructions.
24348 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
24349 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
24351 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
24352 * store-motion.c (find_moveable_store): Update
24353 can_assign_to_reg_without_clobbers_p callsite.
24355 2016-02-24 Richard Biener <rguenther@suse.de>
24357 PR middle-end/68963
24358 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
24360 (record_nonwrapping_iv): Do not fall back to the low/high bound
24361 for non-constant IV bases if the stmt is not always executed.
24363 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24365 * config/arm/arm-cores.def (cortex-a32): New entry.
24366 * config/arm/arm-tables.opt: Regenerate.
24367 * config/arm/arm-tune.md: Regenerate.
24368 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
24369 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
24370 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
24371 for -mcpu and -mtune.
24373 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24376 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
24377 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
24378 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
24379 (atomic_loaddi_1): Delete.
24380 (atomic_loaddi): Rewrite expander using the above changes.
24382 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24385 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
24388 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24389 Richard Biener <rguenth@suse.de>
24391 PR middle-end/69909
24392 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
24393 set_mem_attributes if tem is SSA_NAME which got expanded
24396 2016-02-24 Richard Biener <rguenther@suse.de>
24398 PR tree-optimization/69907
24399 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
24400 end of permutations for BB vectorization.
24402 2016-02-24 Christian Bruel <christian.bruel@st.com>
24404 * config/arm/arm-c.c (arm_option_override): Initialize
24405 target_option_current_node.
24406 * config/arm/arm.c (arm_pragma_target_parse): Replace
24407 build_target_option_node call by target_option_current_node.
24408 Set target_option_current_node.
24411 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
24414 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
24415 define_insn_and_split to define_insn.
24416 (zero_extendqi<mode>2_dot2): Same.
24417 (extendqi<mode>2_dot): Same.
24418 (extendqi<mode>2_dot2): Same.
24420 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24422 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
24423 and add bypass for AES{D,E} and AESMC pairs.
24424 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
24427 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24429 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
24430 series for reciprocal square root in Exynos M1.
24432 2016-02-23 Martin Sebor <msebor@redhat.com>
24435 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
24436 __builtin_alloca_with_align.
24438 2016-02-23 Richard Henderson <rth@redhat.com>
24440 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
24441 (ix86_register_pragmas): Remove __seg_tls.
24442 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
24443 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
24444 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
24445 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
24446 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
24447 * doc/extend.texi (__seg_tls): Remove item.
24449 2016-02-23 Richard Biener <rguenther@suse.de>
24451 * alloc-pool.h (struct allocation_object): Make id member
24452 conditional on CHECKING_P again.
24453 (get_instance): Adjust.
24454 (base_pool_allocator): Likewise.
24456 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
24458 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
24459 (parallelize_loops): In OpenACC kernels mode, set n_threads to
24461 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
24463 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
24465 2016-02-23 Richard Biener <rguenther@suse.de>
24467 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
24468 * bitmap.h (struct bitmap_usage): Likewise.
24469 (bitmap_move): Declare.
24470 * bitmap.c (register_overhead): Take size_t argument.
24471 (bitmap_move): New function.
24472 * df-problems.c (df_rd_transfer_function): Use bitmap_move
24473 to properly account overhead.
24474 * tree.c (free_node): Use tree_size.
24476 2016-02-23 Jakub Jelinek <jakub@redhat.com>
24479 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
24480 when inverting comparison.
24483 * common.opt (Wunreachable-code): Add Warning flag.
24485 2016-02-23 Mark Wielaard <mjw@redhat.com>
24486 Jakub Jelinek <jakub@redhat.com>
24489 * cgraphunit.c (check_global_declaration): Check main_input_filename
24490 and DECL_SOURCE_FILE are not NULL.
24492 2016-02-23 Martin Jambor <mjambor@suse.cz>
24494 PR tree-optimization/69666
24495 * tree-sra.c (sra_modify_assign): Do not attempt to create
24496 default_def replacements for unscalarizable regions.
24498 2016-02-20 Mark Wielaard <mjw@redhat.com>
24501 * cgraphunit.c (check_global_declaration): Check level of
24502 warn_unused_const_variable and main_input_filename.
24503 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
24504 (-Wunused-variable): For C implies -Wunused-const-variable=1.
24505 (-Wunused-const-variable): Explain levels 1 and 2.
24507 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24510 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
24511 identical arguments. Formatting and spelling fixes.
24514 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
24519 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
24520 and m68k-devices.def.
24521 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
24522 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
24524 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
24526 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
24527 and HImode registers.
24529 2016-02-22 Richard Biener <rguenther@suse.de>
24531 PR tree-optimization/69882
24532 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
24533 preserve permutations present because of gaps.
24534 (vect_supported_load_permutation_p): Always continue checking
24535 permutations after vect_attempt_slp_rearrange_stmts.
24537 2016-02-22 Bin Cheng <bin.cheng@arm.com>
24539 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
24540 min_profitable_estimate, rather than min_profitable_iters.
24542 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24545 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
24546 SImode for last match_operand.
24548 2016-02-22 Martin Liska <mliska@suse.cz>
24550 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
24551 return bitsize - 1 as the return value.
24553 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
24557 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
24558 Handle negative shift counts.
24559 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
24560 force_reg on the shift constant.
24561 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
24562 (lshrsi3_d): Handle negative shift counts.
24564 2016-02-22 Richard Biener <rguenther@suse.de>
24565 Tom de Vries <tom@codesourcery.com>
24567 * graph.c: Include dumpfile.h.
24568 (print_graph_cfg): Split into three overloads.
24569 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
24571 2016-02-22 Tom de Vries <tom@codesourcery.com>
24573 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
24576 2016-02-22 Richard Biener <rguenther@suse.de>
24579 * ipa-inline-transform.c (inline_call): When not updating
24580 overall summaries adjust self size by the growth estimate.
24581 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
24582 hash-set, do not update overall summaries here. Renamed from ...
24583 (inline_to_all_callers): ... this which is now wrapping the
24584 above and performing delayed overall summary update.
24585 (early_inline_small_functions): Delay updating of the overall
24588 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
24590 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
24593 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24596 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
24597 :%* in %:gt() argument.
24598 (greater_than_spec_func): Adjust for expecting only numbers,
24599 if there are more than two numbers, compare the last two.
24601 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
24603 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
24604 -Wnarrowing with -std.
24606 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24609 * expr.c (store_field): Don't use bit-field path if exp is
24610 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
24611 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
24612 and the assignment can be performed by bitwise copy. Formatting
24615 PR middle-end/69838
24616 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
24617 call copy_reg_eh_region_note_forward on before and/or after sequences
24618 and remove note from insn if it no longer can throw.
24621 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
24622 if TARGET_AVX512BW.
24624 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24626 * config/s390/vector.md: Add missing commutative operand markers
24627 to the patterns which qualify for one.
24628 * config/s390/vx-builtins.md: Likewise.
24630 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24632 * config/s390/vector.md (VI, VI_QHS): Add single element vector
24633 types to mode iterators.
24634 (vec_double): ... and mode attribute.
24635 * config/s390/vx-builtins.md (non_vec_int): Likewise.
24637 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24639 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
24640 Change the predicate of op2 from nonimmediate to general and let
24641 reload fix it if necessary.
24643 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24645 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
24647 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24649 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
24652 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24654 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
24655 * config/s390/s390.c (s390_expand_vec_movstr): New function.
24656 * config/s390/s390.md ("movstr<P:mode>"): Call
24657 s390_expand_vec_movstr.
24659 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24661 * config/s390/s390.md: Add missing output modifier for operand 1
24662 to print it as address properly.
24664 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24666 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
24667 * config/s390/2964.md: New file.
24668 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
24669 of insn grouping attributes depending on the CPU level.
24670 (s390_get_unit_mask): New function.
24671 (s390_sched_score): Remove the OOO from the scheduling macros.
24672 Add loop to calculate a score for the instruction mix.
24673 (s390_sched_reorder): Likewise plus improve debug output.
24674 (s390_sched_variable_issue): Rename macros as above. Calculate
24675 the unit distances after actually scheduling an insn. Improve
24677 (s390_sched_init): Clear last_scheduled_unit_distance array.
24678 * config/s390/s390.md: Include 2964.md.
24680 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24683 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
24684 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
24685 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
24686 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
24687 *avx512f_<code>v8div16qi2_mask_1): New insns.
24689 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24692 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
24695 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
24696 earlyclobber from target. Use wF constraint for fused memory
24698 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
24700 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24701 Martin Liska <mliska@suse.cz>
24704 * cfgexpand.c (asan_sanitize_stack_p): New function.
24705 (partition_stack_vars): Use the function.
24706 (expand_stack_vars): Likewise.
24707 (defer_stack_allocation): Likewise.
24708 (expand_used_vars): Likewise.
24710 2016-02-18 Richard Biener <rguenther@suse.de>
24712 PR middle-end/69553
24713 * fold-const.c (operand_equal_p): Properly compare offsets for
24714 IMAGPART_EXPR and ARRAY_REF.
24716 2016-02-18 Nick Clifton <nickc@redhat.com>
24720 * config/arm/arm.c (arm_option_override_internal): Disable
24721 interworking if the target does not support thumb instructions.
24722 (arm_reload_in_hi): Handle the case where a register to register
24723 move needs reloading because there is no simple pattern to handle
24725 (arm_reload_out_hi): Likewise.
24727 2016-02-18 Richard Biener <rguenther@suse.de>
24729 PR middle-end/69854
24730 * match.pd: Don't use fold_binary or fold_unary for folding
24733 2016-02-17 Jakub Jelinek <jakub@redhat.com>
24736 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
24737 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
24738 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
24739 warn on gimple_no_warning_p statements.
24741 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
24743 * doc/extend.texi (C++ Attributes): Correct description of
24744 warn_unused type attribute.
24746 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24748 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
24749 correct instruction.
24751 2016-02-17 Richard Biener <rguenther@suse.de>
24753 PR rtl-optimization/69609
24754 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
24755 (find_traces_1_round): When ending a trace update cached priority
24757 (bb_to_key): Use cached priority when available.
24758 (copy_bb): Initialize cached priority.
24759 (reorder_basic_blocks_software_trace_cache): Likewise.
24761 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24764 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
24766 (aarch64_comparison_operator): Break overly long line into two.
24767 (aarch64_comparison_operation): Likewise.
24768 * config/aarch64/aarch64.md (cstorecc4): Use
24769 aarch64_comparison_operator_mode instead of
24770 aarch64_comparison_operator.
24771 (cstore<mode>4): Likewise.
24772 (aarch64_cstore<mode>): Likewise.
24773 (*cstoresi_insn_uxtw): Likewise.
24774 (cstore<mode>_neg): Likewise.
24775 (*cstoresi_neg_uxtw): Likewise.
24777 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24780 * config/arm/predicates.md (arm_comparison_operator_mode):
24782 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
24783 instead of arm_comparison_operator.
24784 (*mov_negscc): Likewise.
24785 (*mov_notscc): Likewise.
24786 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
24787 (*thumb2_mov_negscc): Likewise.
24788 (*thumb2_mov_negscc_strict_it): Likewise.
24789 (*thumb2_mov_notscc): Likewise.
24790 (*thumb2_mov_notscc_strict_it): Likewise.
24792 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
24794 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
24795 Add missing return.
24797 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
24799 * config/visium/visium.c (machine_libfunc_index): New enum.
24800 (machine_libfuncs): New structure.
24801 (visium_libfuncs): New static variable.
24802 (TARGET_INIT_LIBFUNCS): Define to...
24803 (visium_init_libfuncs): ...this. New function.
24804 (expand_block_move_4): Use the appropriate libfunc.
24805 (expand_block_move_2): Likewise.
24806 (expand_block_move_1): Likewise.
24807 (expand_block_set_4): Likewise.
24808 (expand_block_set_2): Likewise.
24809 (expand_block_set_1): Likewise.
24810 (visium_trampoline_init): Likewise.
24812 2016-02-17 Nick Clifton <nickc@redhat.com>
24814 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
24815 TI's devices.csv file as of March 2016.
24817 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
24820 * opts-global.c (handle_common_deferred_options): Introduce and
24821 initialize two global variables to remember command-line options
24822 specifying a stack-limiting register.
24823 * opts.h: Add extern declarations of the two new global variables.
24824 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
24825 variable based on the values of the two new global variables.
24827 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24830 * common.opt (Wnonnull-compare): New warning.
24831 * doc/invoke.texi (-Wnonnull): Remove text about comparison
24832 of arguments against NULL.
24833 (-Wnonnull-compare): Document.
24834 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
24835 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
24836 * passes.def (pass_warn_nonnull_compare): Add.
24837 * gimple-ssa-nonnull-compare.c: New file.
24839 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24841 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
24842 AARCH64_EXTRA_TUNE_RECIP_SQRT.
24844 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24846 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
24847 reciprocal sqrt for -mlow-precision-recip-sqrt.
24849 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24850 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24852 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
24853 always use lane loads to construct non-constant vectors.
24855 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24857 * config/aarch64/aarch64.md
24858 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
24859 constraints for operand 3.
24860 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
24862 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24863 Richard Biener <rguenther@suse.de>
24865 PR tree-optimization/69820
24866 * tree-vect-patterns.c (type_conversion_p): Return false if
24867 *orig_type is unsigned single precision or boolean.
24868 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
24871 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24873 PR rtl-optimization/69764
24874 PR rtl-optimization/69771
24875 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
24876 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
24878 2016-02-16 Richard Biener <rguenther@suse.de>
24880 PR tree-optimization/69776
24881 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
24883 (indirect_refs_may_alias_p): Likewise.
24884 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
24885 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
24886 according to tbaa_p.
24887 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
24888 (optimize_stmt): For redundant store discovery do not allow tbaa.
24890 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
24892 PR tree-optimization/69714
24893 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
24894 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
24896 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
24898 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
24899 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
24900 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
24901 * config/arc/arc.c (arc_init): Check FPU options.
24902 (get_arc_condition_code): Handle new CC_FPU* modes.
24903 (arc_select_cc_mode): Likewise.
24904 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
24905 register pair only. Allow access for ARCv2 accumulator.
24906 (gen_compare_reg): Whenever we have FPU support use FPU compare
24908 (arc_reorg): Don't generate brcc insns when FPU compare
24909 instructions are involved.
24910 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
24911 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
24912 floating point emulation.
24913 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
24914 (REVERSE_CONDITION): Add new CC_FPU* modes.
24915 (TARGET_FP_SP_BASE): Define.
24916 (TARGET_FP_DP_BASE): Likewise.
24917 (TARGET_FP_SP_FUSED): Likewise.
24918 (TARGET_FP_DP_FUSED): Likewise.
24919 (TARGET_FP_SP_CONV): Likewise.
24920 (TARGET_FP_DP_CONV): Likewise.
24921 (TARGET_FP_SP_SQRT): Likewise.
24922 (TARGET_FP_DP_SQRT): Likewise.
24923 (TARGET_FP_DP_AX): Likewise.
24924 * config/arc/arc.md (ARCV2_ACC): New constant.
24925 (type): New fpu type attribute.
24926 (SDF): Conditional iterator.
24927 (cstore<mode>, cbranch<mode>): Change expand condition.
24928 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
24929 handles FPU/FPX cases as well.
24930 * config/arc/arc.opt (mfpu): New option.
24931 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
24933 (adddf3, muldf3, subdf3): Removed.
24934 * config/arc/predicates.md (proper_comparison_operator): Recognize
24936 * config/arc/fpu.md: New file.
24937 * doc/invoke.texi (ARC Options): Document mfpu option.
24939 2016-02-16 Richard Biener <rguenther@suse.de>
24941 PR rtl-optimization/69291
24942 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
24943 noce_operand_ok check.
24945 2016-02-16 Tom de Vries <tom@codesourcery.com>
24948 * omp-low.c (simd_clone_create): Remove call to
24949 symtab->call_cgraph_insertion_hooks.
24951 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24953 PR tree-optimization/69802
24954 * tree-ssa-reassoc.c (update_range_test): If op is
24955 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
24956 op == 1 test of precision 1 integral op, otherwise handle
24957 that case as op itself. Fix up formatting.
24958 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
24961 2016-02-16 Richard Biener <rguenther@suse.de>
24963 PR tree-optimization/69586
24964 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
24965 types for conversion sources.
24967 2016-02-16 Richard Biener <rguenther@suse.de>
24969 PR middle-end/69801
24970 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
24971 mask OEP_ADDRESS_OF.
24973 2016-02-16 Alan Modra <amodra@gmail.com>
24976 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
24977 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
24978 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
24980 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
24981 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
24982 (p8_fmrgow_<mode>): Likewise.
24983 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
24985 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
24986 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
24987 to use movdi_internal64. Remove op0_di.
24988 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
24990 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
24992 Add support for the FCCMP insn types
24994 * config/aarch64/aarch64.md (fccmp): Change insn type.
24995 (fccmpe): Likewise.
24996 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
24997 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
24998 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
24999 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
25000 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
25001 * config/arm/types.md (fccmps): Add new insn type.
25002 (fccmpd): Likewise.
25004 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
25006 * alias.c (get_alias_set): Fix a typo in comment.
25008 2016-02-15 Richard Biener <rguenther@suse.de>
25010 PR tree-optimization/69595
25011 * match.pd: Complete range test simplification to true.
25013 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
25015 PR rtl-optimization/69648
25016 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
25017 pic_offset_table_rtx.
25019 PR rtl-optimization/69752
25020 * ira.c (update_equiv_regs): When looking for more than a single SET,
25021 also take other side effects into account.
25023 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
25025 * config/s390/s390.c (s390_function_profiler): Add a new sequence
25026 for z900+ CPUs in 31-bit mode.
25028 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
25030 * common/config/s390/s390-common.c (s390_supports_split_stack):
25032 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
25033 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
25034 * config/s390/s390.c (struct machine_function): New field
25035 split_stack_varargs_pointer.
25036 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
25037 in s390_emit_prologue.
25038 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
25040 (morestack_ref): New global.
25041 (SPLIT_STACK_AVAILABLE): New macro.
25042 (s390_expand_split_stack_prologue): New function.
25043 (s390_live_on_entry): New function.
25044 (s390_va_start): Use split-stack vararg pointer if appropriate.
25045 (s390_asm_file_end): Emit the split-stack note sections.
25046 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
25047 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
25048 (UNSPECV_SPLIT_STACK_CALL): New unspec.
25049 (UNSPECV_SPLIT_STACK_DATA): New unspec.
25050 (split_stack_prologue): New expand.
25051 (split_stack_space_check): New expand.
25052 (split_stack_data): New insn.
25053 (split_stack_call): New expand.
25054 (split_stack_call_*): New insn.
25055 (split_stack_cond_call): New expand.
25056 (split_stack_cond_call_*): New insn.
25058 2016-02-15 Richard Biener <rguenther@suse.de>
25060 PR tree-optimization/69783
25061 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25062 Add trivially correct cases.
25064 2016-02-15 Tom de Vries <tom@codesourcery.com>
25067 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
25069 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
25071 2016-02-15 Richard Biener <rguenther@suse.de>
25073 PR tree-optimization/69776
25074 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
25075 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
25076 indicate whether we can use TBAA to disambiguate against stores.
25077 Use alias-set zero if not.
25078 (visit_reference_op_store): Do not use TBAA when looking up
25080 * tree-ssa-pre.c (compute_avail): Use TBAA here.
25081 (eliminate_dom_walker::before_dom_children): But not when looking
25082 up redundant stores.
25084 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
25086 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
25088 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25090 * config/i386/znver1.md
25091 (znver1_pop, znver1_pop_mem,
25092 znver1_load_imov_double_store,
25093 znver1_load_imov_direct_store,
25094 znver1_load_imov_direct_load,
25095 znver1_load_imov_double_load): Add new.
25096 (znver1_insn, znver1_insn_load): Add icmov type.
25097 (znver1_sseavx_fma,
25098 znver1_sseavx_fma_load,
25100 znver1_avx256_fma_load): Fix pipe usage.
25102 2016-02-14 Alan Modra <amodra@gmail.com>
25105 * reload.c (find_reloads_address_1): For pre/post-inc/dec
25106 with an invalid hard reg, reload just the reg not the entire
25107 pre/post-inc/dec address expression.
25109 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
25112 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
25113 fixed R1_REG scratch reg.
25114 (sibcall_value_pcrel_fdpic): Likewise.
25116 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
25120 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
25122 2016-02-12 Walter Lee <walt@tilera.com>
25124 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
25125 * config/tilegx/t-tilegx: Likewise.
25127 2016-02-12 David Malcolm <dmalcolm@redhat.com>
25130 * diagnostic-show-locus.c (struct line_span): New struct.
25131 (layout::get_first_line): Delete.
25132 (layout::get_last_line): Delete.
25133 (layout::get_num_line_spans): New member function.
25134 (layout::get_line_span): Likewise.
25135 (layout::print_heading_for_line_span_index_p): Likewise.
25136 (layout::get_expanded_location): Likewise.
25137 (layout::calculate_line_spans): Likewise.
25138 (layout::m_first_line): Delete.
25139 (layout::m_last_line): Delete.
25140 (layout::m_line_spans): New field.
25141 (layout::layout): Update comment. Replace m_first_line and
25142 m_last_line with m_line_spans, replacing their initialization
25143 with a call to calculate_line_spans.
25144 (diagnostic_show_locus): When printing source lines and
25145 annotations, rather than looping over a single span
25146 of lines, instead loop over each line_span within
25147 the layout, with an inner loop over the lines within them.
25148 Call the context's start_span callback when changing line spans.
25149 * diagnostic.c (diagnostic_initialize): Initialize start_span.
25150 (diagnostic_build_prefix): Break out the building of the location
25151 part of the string into...
25152 (diagnostic_get_location_text): ...this new function, rewriting
25153 it from nested ternary expressions to a sequence of "if"
25155 (default_diagnostic_start_span_fn): New function.
25156 * diagnostic.h (diagnostic_start_span_fn): New typedef.
25157 (diagnostic_context::start_span): New field.
25158 (default_diagnostic_start_span_fn): New prototype.
25160 2016-02-12 David Malcolm <dmalcolm@redhat.com>
25163 * gcc.c (driver::finalize): Fix cleanup of "specs".
25165 2016-02-12 David Malcolm <dmalcolm@redhat.com>
25169 * gcc.c (driver::driver): Initialize m_option_suggestions.
25170 (driver::~driver): Clean up m_option_suggestions.
25171 (suggest_option): Convert to...
25172 (driver::suggest_option): ...this, and split out into
25173 driver::build_option_suggestions and find_closest_string.
25174 (driver::build_option_suggestions): New function, from
25175 first half of suggest_option. Special-case
25176 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
25177 the sanitizer_opts array. For options of enum types, add the
25178 various enum values to the candidate strings.
25179 (driver::handle_unrecognized_options): Remove "const".
25180 * gcc.h (driver::handle_unrecognized_options): Likewise.
25181 (driver::build_option_suggestions): New decl.
25182 (driver::suggest_option): New decl.
25183 (driver::m_option_suggestions): New field.
25184 * opts-common.c (add_misspelling_candidates): New function.
25185 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
25186 and make non-static.
25187 * opts.h (sanitizer_opts): New array decl.
25188 (add_misspelling_candidates): New function decl.
25189 * spellcheck.c (find_closest_string): New function.
25190 * spellcheck.h (find_closest_string): New function decl.
25192 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25194 PR rtl-optimization/69764
25195 PR rtl-optimization/69771
25196 * optabs.c (expand_binop_directly): For shift_optab_p, force
25197 convert_modes with VOIDmode if xop1 has VOIDmode.
25199 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
25202 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
25203 to correctly determine instrumentation thunks.
25205 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25208 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
25209 type by reference, force lhs on the call.
25212 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
25213 Compute retval and retbnd early in all cases if split_part_return_p
25214 and return_bb is not EXIT. Remove all clobber stmts and reset
25215 all debug stmts that refer to SSA_NAMEs defined in split part,
25216 except if it is retval, in that case replace the old retval with the
25217 lhs of the call to the split part.
25219 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25222 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25224 PR middle-end/66726
25225 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25226 whose result is used in PHI.
25227 (maybe_optimize_range_tests): Likewise.
25228 (final_range_test_p): Likweise.
25230 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25232 PR middle-end/66726
25233 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25234 whose result is used in PHI.
25235 (maybe_optimize_range_tests): Likewise.
25236 (final_range_test_p): Likweise.
25238 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25240 * cgraph.c: Spelling fixes - behaviour -> behavior and
25241 neighbour -> neighbor.
25242 * target.def: Likewise.
25243 * sel-sched.c: Likewise.
25244 * config/mips/mips.c: Likewise.
25245 * config/arc/arc.md: Likewise.
25246 * config/arm/cortex-a57.md: Likewise.
25247 * config/arm/arm.c: Likewise.
25248 * config/arm/neon.md: Likewise.
25249 * config/arm/arm-c.c: Likewise.
25250 * config/vms/vms-c.c: Likewise.
25251 * config/s390/s390.c: Likewise.
25252 * config/i386/znver1.md: Likewise.
25253 * config/i386/i386.c: Likewise.
25254 * config/ia64/hpux-unix2003.h: Likewise.
25255 * config/msp430/msp430.md: Likewise.
25256 * config/rx/rx.c: Likewise.
25257 * config/rx/rx.md: Likewise.
25258 * config/aarch64/aarch64-simd.md: Likewise.
25259 * config/aarch64/aarch64.c: Likewise.
25260 * config/nvptx/nvptx.c: Likewise.
25261 * config/bfin/bfin.c: Likewise.
25262 * config/cris/cris.opt: Likewise.
25263 * config/rs6000/rs6000.c: Likewise.
25264 * target.h: Likewise.
25265 * spellcheck.c: Likewise.
25266 * ira-build.c: Likewise.
25267 * tree-inline.c: Likewise.
25268 * builtins.c: Likewise.
25269 * lra-constraints.c: Likewise.
25270 * explow.c: Likewise.
25271 * hwint.h: Likewise.
25272 * targhooks.c: Likewise.
25273 * tree-vect-data-refs.c: Likewise.
25274 * expr.c: Likewise.
25275 * doc/tm.texi: Likewise.
25276 * doc/extend.texi: Likewise.
25277 * doc/install.texi: Likewise.
25278 * doc/md.texi: Likewise.
25279 * tree-ssa-tail-merge.c: Likewise.
25280 * sched-int.h: Likewise.
25281 * match.pd: Likewise.
25282 * sched-ebb.c: Likewise.
25283 * target.def (omit_struct_return_reg): Likewise.
25284 * gimple-ssa-isolate-paths.c: Likewise.
25285 (find_implicit_erroneous_behaviour): Renamed to...
25286 (find_implicit_erroneous_behavior): ... this.
25287 (find_explicit_erroneous_behaviour): Renamed to...
25288 (find_explicit_erroneous_behavior): ... this.
25289 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
25291 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
25293 PR rtl-optimization/64682
25294 PR rtl-optimization/69567
25295 PR rtl-optimization/69737
25296 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
25297 in I2 as well, just lose it.
25299 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25301 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
25303 (aarch64_last_printed_tune_string): Likewise.
25304 (aarch64_declare_function_name): Only output .arch assembler
25305 directive if it will be different from the previously output
25306 directive. Same for .tune comment but only if -dA is set.
25307 (aarch64_start_file): New function.
25308 (TARGET_ASM_FILE_START): Define.
25310 2016-02-11 David Malcolm <dmalcolm@redhat.com>
25313 * Makefile.in (PLUGIN_HEADERS): Add params.list.
25315 2016-02-11 Jakub Jelinek <jakub@redhat.com>
25318 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
25319 -Wmaybe-uninitialized warning.
25321 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
25324 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
25326 2016-02-11 Richard Biener <rguenther@suse.de>
25328 PR rtl-optimization/69291
25329 * ifcvt.c (noce_try_store_flag_constants): Do not allow
25330 subexpressions affected by changing the result.
25332 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
25335 * lra-constraints.c (curr_insn_transform): Find in/out operands
25336 for secondary memory moves. Update dups.
25338 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
25340 PR tree-optimization/69652
25341 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
25342 to nested loop, did source re-formatting, skip debug statements,
25343 add check on statement with volatile operand, remove dead scalar
25346 2016-02-10 Jakub Jelinek <jakub@redhat.com>
25347 Patrick Palka <ppalka@gcc.gnu.org>
25351 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
25352 calls if the return type is TREE_ADDRESSABLE.
25353 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
25354 * ipa-split.c (split_function): Fix doubled "we" in comment.
25355 Use void return type for the split part even if
25356 !split_point->split_part_set_retval.
25358 2016-02-10 Bin Cheng <bin.cheng@arm.com>
25360 PR tree-optimization/68021
25361 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
25362 when computing the value of biv cand by itself.
25364 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25366 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
25367 (cortexa57_tunings): Likewise.
25368 (cortexa72_tunings): Likewise.
25369 (arch_macro_fusion_pair_p): Add support for AES fusion.
25370 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
25371 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
25372 Allow virtual registers before reload so early scheduling works.
25373 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
25374 correct latency and pipeline.
25375 (cortex_a57_crypto_complex): Likewise.
25376 (cortex_a57_crypto_xor): Likewise.
25377 (define_bypass): Add AES bypass.
25379 2016-02-10 Richard Biener <rguenther@suse.de>
25381 PR tree-optimization/69726
25382 * passes.def: Add DCE pass before late uninit.
25383 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
25384 really fixup if-conversions job.
25386 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25388 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
25389 (arm_cortex_a57_tune): Likewise.
25390 (aarch_macro_fusion_pair_p): Add support for AES fusion.
25391 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
25393 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
25395 * timevar.def (TV_PHASE_DBGINFO): Delete.
25396 (TV_PHASE_CHECK_DBGINFO): Likewise.
25397 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
25399 2016-02-10 Richard Biener <rguenther@suse.de>
25401 PR tree-optimization/69719
25402 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25403 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
25405 2016-02-09 Andrew Pinski <apinski@cavium.com>
25408 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
25409 get_vcond_mask_icode returns false.
25411 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
25414 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
25415 an ADDIS that adds a pointer to a large constant that sets the
25416 upper16 bits with a load operation.
25418 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25421 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
25423 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
25425 (vzipq_s16): Likewise.
25426 (vzipq_s32): Likewise.
25427 (vzipq_f32): Likewise.
25428 (vzipq_u8): Likewise.
25429 (vzipq_u16): Likewise.
25430 (vzipq_u32): Likewise.
25431 (vzipq_p8): Likewise.
25432 (vzipq_p16): Likewise.
25434 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25437 * config/arm/arm.c (neon_endian_lane_map): New function.
25438 (neon_vector_pair_endian_lane_map): New function.
25439 (arm_evpc_neon_vuzp): Allow for big endian lane order.
25440 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
25442 (vuzpq_s16): Likewise.
25443 (vuzpq_s32): Likewise.
25444 (vuzpq_f32): Likewise.
25445 (vuzpq_u8): Likewise.
25446 (vuzpq_u16): Likewise.
25447 (vuzpq_u32): Likewise.
25448 (vuzpq_p8): Likewise.
25449 (vuzpq_p16): Likewise.
25451 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
25454 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
25457 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
25459 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
25460 truncate const_int operand 1 to QImode.
25462 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
25464 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
25465 corresponding to an abnormal edge.
25467 2016-02-09 Tom de Vries <tom@codesourcery.com>
25469 PR tree-optimization/69599
25470 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
25472 (find_func_aliases_for_builtin_call, find_func_clobbers)
25473 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
25476 2016-02-09 Richard Biener <rguenther@suse.de>
25478 PR tree-optimization/69715
25479 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
25480 LHS on calls as non-rewritable.
25482 2016-02-09 Tom de Vries <tom@codesourcery.com>
25485 * lto-wrapper.c (append_diag_options): New function.
25486 (compile_offload_image): Call append_diag_options.
25488 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
25491 * doc/extend.texi (Flag Output Operands): Correct sectioning.
25492 Minor copy-edit to fix verb tenses.
25494 2016-02-08 Jakub Jelinek <jakub@redhat.com>
25496 PR tree-optimization/69209
25497 * ipa-split.c (split_function): If split part is not
25498 returning retval, retval has gimple type but is not
25499 gimple value, force it into a SSA_NAME first.
25501 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
25503 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
25506 2016-02-08 Jason Merrill <jason@redhat.com>
25509 * convert.c (convert_to_integer_1): Check dofold on truncation
25511 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
25512 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
25513 Rename from *_nofold.
25514 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
25515 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
25517 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
25520 * tree.c (build_common_tree_nodes): Remove short_double argument.
25521 All callers changed.
25522 * tree.h (build_common_tree_nodes): Adjust declaration.
25523 * doc/invoke.texi (-fshort-double): Remove documentation.
25524 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25525 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
25526 * lto-wrapper.c (merge_and_complain, append_compiler_options)
25527 (append_linker_options): Don't handle OPT_fshort_double.
25529 PR rtl-optimization/68730
25530 * lra-remat.c (insn_to_cand_activation): New static variable.
25531 (lra_remat): Allocate and free it.
25532 (create_cand): New arg activation. Initialize a field in
25533 insn_to_cand_activation if it is nonnull.
25534 (create_cands): Pass the activation insn to create_cand when making
25535 a candidate involving an output reload. Reorganize code a little.
25536 (do_remat): Keep track of active status of candidates in a separate
25539 2016-02-08 Richard Biener <rguenther@suse.de>
25541 PR tree-optimization/69719
25542 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25543 Properly use absolute of the difference of the two offsets to
25544 compare or adjust the segment length.
25546 2016-02-08 Richard Biener <rguenther@suse.de>
25547 Jeff Law <law@redhat.com>
25550 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
25551 types for anonymous SSA names.
25553 2016-02-08 Richard Biener <rguenther@suse.de>
25555 PR rtl-optimization/69274
25556 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
25558 2016-02-08 Jeff Law <law@redhat.com>
25560 PR tree-optimization/65917
25561 * tree-ssa-dom.c (record_temporary_equivalences): Record both
25562 equivalences from if (x == y) style conditionals.
25563 (loop_depth_of_name): Remove.
25564 (record_equality): Remove loop depth check.
25565 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
25566 (const_and_copies::record_const_or_copy_raw): New member function.
25567 * tree-ssa-scopedtables.c
25568 (const_and_copies::record_const_or_copy_raw): New, factored out of
25569 (const_and_copies::record_const_or_copy): Call new member function.
25571 2016-02-05 Jeff Law <law@redhat.com>
25573 PR tree-optimization/68541
25574 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
25575 (count_stmts_in_block): New function.
25576 (poor_ifcvt_candidate_code): Likewise.
25577 (is_feasible_trace): Add some heuristics to determine when path
25578 splitting is profitable.
25579 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
25580 is a diamond with a single exit.
25582 2016-02-05 Martin Sebor <msebor@redhat.com>
25585 * doc/invoke.texi: Update -Wplacement-new to take an optional
25588 2016-02-06 Richard Henderson <rth@redhat.com>
25591 * tree.c (tree_nop_conversion_p): Do not strip casts into or
25592 out of non-standard address spaces.
25594 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25596 PR rtl-optimization/69691
25597 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
25599 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
25601 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
25602 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
25603 (*ieee128_mfvsrd_64bit): Likewise.
25604 (*ieee128_mfvsrd_32bit): Likewise.
25606 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
25610 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25612 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25613 instrumented_version.
25615 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
25617 * doc/invoke.texi (Optimize Options): In table of --param options
25618 rename second occurrence of tracer-min-branch-ratio to
25619 tracer-min-branch-probability, rename
25620 tracer-min-branch-ratio-feedback to
25621 tracer-min-branch-probability-feedback and clarify description,
25622 rename sched-spec-state-edge-prob-cutoff to
25623 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
25624 to selsched-insns-to-rename, rename lto-minpartition to
25625 lto-min-partition, delete reorder-blocks-duplicate and
25626 reorder-blocks-duplicate-feedback.
25628 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25630 * config/s390/s390.c (s390_register_info_set_ranges): Remove
25633 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
25635 * doc/extend.texi: S/390: Correct some typos.
25637 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25639 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
25641 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25644 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
25645 (s390_register_info_gprtofpr): Use new macros above.
25646 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
25648 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
25649 its name. Adjust restore and save gpr ranges.
25650 (s390_register_info_set_ranges): New function.
25651 (s390_register_info): Use new macros above. Call
25652 s390_register_info_set_ranges.
25653 (s390_optimize_register_info): Likewise.
25654 (s390_hard_regno_rename_ok): Use new macros.
25655 (s390_hard_regno_scratch_ok): Likewise.
25656 (s390_emit_epilogue): Likewise.
25657 (s390_can_use_return_insn): Likewise.
25658 (s390_optimize_prologue): Likewise.
25659 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
25661 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25664 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
25666 (ix86_option_override_internal): Disable TARGET_STV even for
25667 -m{incoming,preferred}-stack-boundary=3.
25669 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25671 * config.gcc: Mark deprecated rtems targets as obsolete.
25673 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
25675 PR rtl-optimization/64682
25676 PR rtl-optimization/69567
25677 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
25678 before I2 only if the register is both used and set in I2.
25680 2016-02-04 DJ Delorie <dj@redhat.com>
25682 * config/msp430/msp430.c (msp430_start_function): Add function type.
25684 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25687 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
25689 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
25691 PR rtl-optimization/69577
25693 2015-10-29 Richard Henderson <rth@redhat.com>
25697 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
25698 sse check to the exact conditions of PR 67609.
25700 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25703 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
25704 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
25705 not allowed into the traditional Altivec registers.
25706 (movtd_64bit_nodm): Likewise.
25707 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
25709 2016-02-04 David Malcolm <dmalcolm@redhat.com>
25711 * config/aarch64/cortex-a57-fma-steering.c
25712 (aarch64_register_fma_steering): Remove "static" from arguments
25715 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
25718 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
25719 twice when complex.
25721 2016-02-04 Mike Frysinger <vapier@gentoo.org>
25723 * doc/invoke.texi: Delete -mno-fma4.
25725 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
25727 PR rtl-optimization/69577
25728 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
25729 (find_subregs_of_mode): Update accordingly. Iterate over partial
25732 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
25734 * config/arm/arm-protos.h (neon_reinterpret): Remove.
25735 * config/arm/arm.c (neon_reinterpret): Remove.
25736 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
25737 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
25738 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
25739 vreinterpretti): Remove.
25740 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
25741 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
25742 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
25743 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
25744 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
25745 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
25746 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
25747 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
25748 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
25749 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
25750 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
25751 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
25752 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
25753 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
25754 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
25755 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
25756 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
25757 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
25758 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
25759 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
25760 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
25761 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
25762 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
25763 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
25764 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
25765 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
25766 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
25767 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
25768 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
25769 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
25770 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
25771 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
25772 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
25773 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
25774 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
25775 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
25776 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
25777 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
25778 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
25779 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
25780 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
25781 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
25782 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
25783 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
25784 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
25785 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
25786 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
25787 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
25788 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
25789 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
25790 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
25791 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
25792 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
25793 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
25794 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
25795 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
25796 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
25797 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
25798 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
25799 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
25800 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
25801 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
25802 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
25803 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
25804 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
25805 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
25806 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
25807 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
25808 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
25809 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
25810 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
25811 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
25812 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
25813 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
25814 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
25815 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
25816 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
25817 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
25818 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
25819 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
25820 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
25821 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
25822 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
25823 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
25824 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
25825 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
25826 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
25827 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
25828 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
25829 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
25830 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
25831 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
25832 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
25833 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
25834 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
25835 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
25836 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
25837 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
25838 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
25839 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
25840 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
25841 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
25842 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
25844 2016-02-04 Martin Liska <mliska@suse.cz>
25847 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
25848 that are gimple_store_p.
25849 (maybe_instrument_call): Likewise.
25851 2016-02-04 Bin Cheng <bin.cheng@arm.com>
25853 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
25854 register scaling out of memory reference and comment why.
25856 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25860 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
25861 folding the source of a SET.
25863 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25867 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
25868 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
25870 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
25874 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
25877 2016-02-04 Christian Bruel <christian.bruel@st.com>
25879 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
25880 * config/arm/arm.c (arm_set_current_function): Likewise.
25882 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25883 Ilya Enkovich <enkovich.gnu@gmail.com>
25884 H.J. Lu <hongjiu.lu@intel.com>
25887 * config/i386/i386.c (convert_scalars_to_vector): Remove
25888 stack alignment fixes.
25889 (ix86_option_override_internal): Disable TARGET_STV if stack
25890 might not be aligned enough.
25891 (ix86_minimum_alignment): Assert that TARGET_STV is false.
25893 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
25895 * config/i386/x86-tune.def: Disable default prefetching
25898 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25899 Vladimir Makarov <vmakarov@redhat.com>
25902 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
25903 in validating fused toc addresses.
25905 2016-02-03 Jakub Jelinek <jakub@redhat.com>
25908 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
25909 range->m_caret fields if range->m_show_caret_p is false.
25912 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25913 Force oldval into register if it does not satisfy reg_or_short_operand
25914 predicate. Fix up formatting.
25916 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
25917 Alexandre Oliva <aoliva@redhat.com>
25920 * lra-constraints.c (simplify_operand_subreg): Check additionally
25921 address validity after potential reloading.
25922 (process_address_1): Check insns validity. In case of failure do
25925 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
25928 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
25931 2016-02-02 Jakub Jelinek <jakub@redhat.com>
25933 * wide-int.cc (canonize_uhwi): New function.
25934 (wi::divmod_internal): Use it.
25936 2016-02-02 James Norris <jnorris@codesourcery.com>
25938 * gimplify.c (omp_notice_variable): Add usage check.
25940 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
25942 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
25943 like LE, GE, LT, GT when emitting relational operator.
25945 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25947 * ira-costs.c (find_costs_and_classes): Add extra argument.
25948 * target.def (ira_change_pseudo_allocno_class): Add parameter.
25949 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
25950 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
25951 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
25952 Add best_class parameter, and return it if not ALL_REGS.
25953 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
25955 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
25956 Update target hook.
25958 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25960 * config/aarch64/aarch64.c
25961 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
25962 (aarch64_ira_change_pseudo_allocno_class): New function.
25964 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
25967 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
25969 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25971 * config/avr/avr.c (avr_option_override): Set
25972 PARAM_ALLOW_STORE_DATA_RACES to 1.
25974 2016-02-02 Richard Biener <rguenther@suse.de>
25976 PR tree-optimization/69595
25977 * match.pd: Add range test simplifications to true/false.
25979 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
25981 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
25982 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
25985 2016-02-02 Richard Biener <rguenther@suse.de>
25987 PR tree-optimization/69606
25988 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
25989 info on the result before moving a stmt.
25991 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
25993 PR middle-end/68542
25994 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
25995 branch with vector comparison.
25996 * config/i386/sse.md (VI48_AVX): New mode iterator.
25997 (define_expand "cbranch<mode>4): Add support for conditional branch
25998 with vector comparison.
25999 * tree-vect-loop.c (optimize_mask_stores): New function.
26000 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
26001 has_mask_store field of vect_info.
26002 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
26003 vectorized loops having masked stores after vec_info destroy.
26004 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
26005 correspondent macros.
26006 (optimize_mask_stores): Add prototype.
26008 2016-02-02 Alan Modra <amodra@gmail.com>
26011 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
26014 2016-02-02 Alan Modra <amodra@gmail.com>
26017 * config/rs6000/rs6000.c (need_toc_init): New var, set it
26018 whenever toc_label_name used.
26019 (rs6000_file_start): Don't set up toc section here,
26020 (rs6000_output_function_epilogue): do so here instead,
26021 (rs6000_xcoff_file_start): and here.
26022 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
26023 (load_toc_aix_di): Likewise.
26025 2016-02-01 Jakub Jelinek <jakub@redhat.com>
26027 PR rtl-optimization/69592
26028 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
26029 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
26030 (num_sign_bit_copies_binary_arith_p): New inline function.
26031 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
26033 2016-02-01 Jeff Law <law@redhat.com>
26035 PR tree-optimization/69580
26036 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
26037 * tree-ssa-threadbackward.c
26038 (fsm_find_control_statement_thread_paths): Do not try to walk
26039 through large PHI nodes.
26041 2016-02-01 Jakub Jelinek <jakub@redhat.com>
26043 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
26044 when count is incremented above limit, don't analyze further
26047 * omp-low.c (oacc_parse_default_dims): Avoid
26048 -Wsign-compare warning, make sure value fits into int
26049 rather than just unsigned int.
26051 2016-02-01 Bin Cheng <bin.cheng@arm.com>
26053 PR tree-optimization/67921
26054 * fold-const.c (split_tree): New parameters. Convert pointer
26055 type variable part to proper type before negating.
26056 (fold_binary_loc): Pass new arguments to split_tree.
26058 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
26060 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
26061 (nvptx_goacc_validate_dims): Extend to handle global defaults.
26062 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
26063 * doc/tm.texti: Rebuilt.
26064 * doc/invoke.texi (fopenacc-dim): Document.
26065 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
26066 (append_compiler_options): Likewise.
26067 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
26068 (oacc_parse_default_dims): New.
26069 (oacc_validate_dims): Add USED arg. Select non-unity default when
26071 (oacc_loop_fixed_partitions): Return mask of used partitions.
26072 (oacc_loop_auto_partitions): Emit dump info.
26073 (oacc_loop_partition): Return mask of used partitions.
26074 (execute_oacc_device_lower): Parse default dimension arg. Adjust
26075 loop partitioning and validation calls.
26077 2016-02-01 Richard Biener <rguenther@suse.de>
26079 PR middle-end/69556
26080 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
26082 2016-02-01 Richard Biener <rguenther@suse.de>
26084 PR tree-optimization/69574
26085 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
26086 of asserting return chrec_dont_know.
26088 2016-02-01 Martin Liska <mliska@suse.cz>
26090 * mem-stats-traits.h: Add copyright header.
26091 * mem-stats.h: Likewise.
26093 2016-02-01 Richard Biener <rguenther@suse.de>
26095 PR tree-optimization/69579
26096 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
26097 Do not propagate through abnormal PHI results.
26099 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
26101 * postreload.c (reload_cse_simplify): Remove dead code.
26103 2016-02-01 Jakub Jelinek <jakub@redhat.com>
26105 PR rtl-optimization/69570
26106 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
26107 if there is more than one set, not if there is a single set.
26109 2016-02-01 Richard Henderson <rth@redhat.com>
26112 * combine.c (make_compound_operation): When looking through a
26113 subreg, make sure to re-extend to the width of the outer mode.
26115 2016-01-30 Jakub Jelinek <jakub@redhat.com>
26117 PR tree-optimization/69546
26118 * wide-int.cc (wi::divmod_internal): For unsigned division
26119 where both operands fit into uhwi, if o1 is 1 and o0 has
26120 msb set, if divident_prec is larger than bits per hwi,
26121 clear another quotient word and return 2 instead of 1.
26122 Similarly for remainder with msb in HWI set, if dividend_prec
26123 is larger than bits per hwi.
26125 2016-01-29 Martin Jambor <mjambor@suse.cz>
26127 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
26128 Use short lowercase names.
26129 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
26130 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
26131 acq_rel one. Protect warning agains segfaults if
26132 get_memory_order_name returns NULL.
26133 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
26134 with release semantics. Do not warn if get_memory_order already did.
26135 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
26136 semantics. Fix check for relaxed or acquire semantics. Do not warn
26137 if get_memory_order already did.
26139 2016-01-29 Sebastian Pop <s.pop@samsung.com>
26141 * doc/install.texi: Document that isl-0.16 is supported.
26143 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
26146 * config/i386/constraints.md (Bm): Describe as special memory
26148 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
26149 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26150 * genpreds.c (struct constraint_data): Add is_special_memory.
26151 (have_special_memory_constraints, special_memory_start): New
26153 (special_memory_end): Ditto.
26154 (add_constraint): Add new arg is_special_memory. Add code to
26155 process its true value. Update have_special_memory_constraints.
26156 (process_define_constraint): Pass the new arg.
26157 (process_define_register_constraint): Ditto.
26158 (choose_enum_order): Process special memory.
26159 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
26160 function insn_extra_special_memory_constraint.
26161 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26162 * gensupport.c (process_rtx): Process
26163 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26164 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
26165 * ira-lives.c (single_reg_class): Use
26166 insn_extra_special_memory_constraint.
26167 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
26168 * lra-constraints.c (process_alt_operands): Ditto.
26169 (curr_insn_transform): Use insn_extra_special_memory_constraint.
26170 * recog.c (asm_operand_ok, preprocess_constraints): Process
26172 * reload.c (find_reloads): Ditto.
26173 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
26174 * stmt.c (parse_input_constraint): Use
26175 insn_extra_special_memory_constraint.
26177 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
26180 * lra-splill.c (lra_final_code_change): Revert r229087 by
26181 removing all sub-registers.
26183 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
26186 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
26188 2016-01-29 Jakub Jelinek <jakub@redhat.com>
26191 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
26192 SSE1, copy target into the temporary reg first before recursing
26195 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
26197 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
26200 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
26202 * ginclude/stdarg.h: Test __cplusplus instead of
26203 __GXX_EXPERIMENTAL_CXX0X__.
26205 2016-01-29 Richard Biener <rguenther@suse.de>
26207 PR tree-optimization/69547
26208 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
26209 Do not mark clobbers necessary.
26210 (mark_all_reaching_defs_necessary_1): Likewise.
26212 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26214 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
26215 declaration name with %qs and print it in both error messages.
26216 Also fix indentation.
26218 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26221 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
26222 trailing blank line from error message.
26224 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
26227 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
26230 2016-01-29 Richard Biener <rguenther@suse.de>
26232 PR middle-end/69537
26233 * match.pd: Allow all integral types when simplifying a
26234 widening or sign-changing conversion.
26236 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26238 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
26239 back to setting codegen_error to fail codegen.
26241 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
26244 * config/i386/constraints.md (C): Only accept constant zero operand.
26245 (BC): New constraint.
26246 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
26247 instead of C constraint.
26248 * doc/md.texi (Machine Constraints): Update description
26251 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
26254 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
26256 2016-01-28 Jakub Jelinek <jakub@redhat.com>
26258 PR middle-end/69542
26259 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
26262 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
26264 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
26265 branches if using guessed profile.
26267 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
26269 * graphite-optimize-isl.c (optimize_isl): Fix dump.
26271 2016-01-28 Richard Henderson <rth@redhat.com>
26274 * config/aarch64/aarch64-modes.def (CC_Cmode): New
26275 * config/aarch64/aarch64-protos.h: Update.
26276 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
26277 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
26278 (aarch64_get_condition_code_1): Handle CC_Cmode.
26279 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
26280 (*add<mode>3_compareC_cconly_imm): New.
26281 (*add<mode>3_compareC_cconly): New.
26282 (*add<mode>3_compareC_imm): New.
26283 (add<mode>3_compareC): New.
26284 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
26285 to be first. Use aarch64_carry_operation.
26286 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
26287 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
26288 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
26289 (subti3): Use subdi3_compare1.
26290 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
26291 (sub<mode>3_compare1): New.
26292 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
26293 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
26294 (*subsi3_carryin_uxtw): Likewise.
26295 (*ngc<mode>, *ngcsi_uxtw): Likewise.
26296 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
26297 * config/aarch64/iterators.md (DWI): New.
26298 * config/aarch64/predicates.md (aarch64_carry_operation): New.
26299 (aarch64_borrow_operation): New.
26301 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26303 * graphite-optimize-isl.c (optimize_isl): Print a different debug
26304 message when isl does not return a valid schedule.
26306 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26308 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
26309 Remove comments from class declarations: they are already in the code
26312 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26314 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
26316 (ternary_op_to_tree): Same.
26317 (unary_op_to_tree): Same.
26318 (nary_op_to_tree): Same.
26319 (gcc_expression_from_isl_expr_op): Same.
26320 (gcc_expression_from_isl_expression): Same.
26321 (graphite_create_new_loop): Same.
26322 (graphite_create_new_loop_guard): Same.
26323 (build_iv_mapping): Same.
26324 (graphite_create_new_guard): Same.
26325 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
26326 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
26328 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26330 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
26331 instead of setting codegen_error to fail codegen.
26333 2016-01-28 Jason Merrill <jason@redhat.com>
26335 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
26337 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26339 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26340 Remove CONST_INT_P check in CCMP cost calculation.
26342 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26344 * config/aarch64/aarch64.c (generic_vector_cost):
26345 Set vec_permute_cost.
26346 (cortexa57_vector_cost): Likewise.
26347 (exynosm1_vector_cost): Likewise.
26348 (xgene1_vector_cost): Likewise.
26349 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
26350 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
26351 Add vec_permute_cost entry.
26353 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26355 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
26357 (add<mode>3_compare0): Likewise.
26358 (addsi3_compare0_uxtw): Likewise.
26359 (add<mode>3nr_compare0): Likewise.
26360 (compare_neg<mode>): Likewise.
26361 (<optab><mode>3): Likewise.
26363 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
26365 * tree-vect-stmts.c (vectorizable_comparison): Add
26366 NULL check for vectype.
26368 2016-01-28 Richard Biener <rguenther@suse.de>
26370 PR tree-optimization/69466
26371 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
26372 Account for PHIs we couldn't duplicate.
26374 2016-01-28 Martin Liska <mliska@suse.cz>
26377 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
26378 instead of ENABLE_VALGRIND_CHECKING.
26380 2016-01-27 Richard Henderson <rth@redhat.com>
26383 * lra-remat.c (subreg_regs): New.
26384 (dump_candidates_and_remat_bb_data): Dump it.
26385 (operand_to_remat): Reject if operand in subreg_regs.
26386 (set_bb_regs): Collect subreg_regs.
26387 (lra_remat): Init and free subreg_regs. Compute
26388 calculate_local_reg_remat_bb_data before create_cands.
26390 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
26393 * config/i386/i386.c (ix86_update_stack_boundary): Don't
26394 change stack_alignment_needed for __tls_get_addr call.
26396 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
26398 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
26400 2016-01-27 Jeff Law <law@redhat.com>
26402 PR tree-optimization/68398
26403 PR tree-optimization/69196
26404 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
26405 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
26406 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26407 Only count PHIs in the last block in the path. The others will
26408 const/copy propagate away. Add heuristic to allow more irreducible
26409 subloops to be created when it is likely profitable to do so.
26411 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26412 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
26413 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
26415 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26418 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
26419 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
26420 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
26421 * tree-streamer-in.c: Include asan.h.
26422 (streamer_get_builtin_tree): For builtins in sanitizer
26423 range call initialize_sanitizer_builtins and retry.
26425 2016-01-27 Ian Lance Taylor <iant@google.com>
26427 * common.opt (fkeep-gc-roots-live): New undocumented option.
26428 * tree-ssa-loop-ivopts.c (add_candidate_1): If
26429 -fkeep-gc-roots-live, skip pointers.
26430 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
26433 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
26436 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
26437 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
26439 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
26442 * configure.ac: NetBSD provides SSP in its C library.
26443 * configure: Updated.
26445 2016-01-27 Richard Biener <rguenther@suse.de>
26447 PR tree-optimization/69166
26448 * tree-vect-loop.c (vect_is_simple_reduction): Always check
26449 reduction code for commutativity / associativity.
26451 2016-01-27 Martin Jambor <mjambor@suse.cz>
26453 PR tree-optimization/69355
26454 * tree-sra.c (analyze_access_subtree): Correct hole detection when
26455 total_scalarization fails.
26457 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
26459 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
26462 2016-01-27 Christian Bruel <christian.bruel@st.com>
26465 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
26466 Move arm_reset_previous_fndecl and set_target_option_current_node in
26467 the conditional part. Call save_restore_target_globals.
26468 * config/arm/arm.c (arm_set_current_function):
26469 Refactor to better support #pragma target and attribute mix.
26470 Call save_restore_target_globals.
26471 * config/arm/arm-protos.h (save_restore_target_globals): New function.
26473 2016-01-27 Martin Liska <mliska@suse.cz>
26475 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
26476 reference for an HSA kernel and its host function.
26478 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26480 PR tree-optimization/69399
26481 * wide-int.h (wi::lrshift): For larger precisions, only
26482 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
26484 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26486 * config/arc/predicates.md (proper_comparison_operator): Reject
26487 constant-constant comparison.
26489 2016-01-26 Tom de Vries <tom@codesourcery.com>
26491 PR tree-optimization/69110
26492 * tree-data-ref.c (initialize_data_dependence_relation): Handle
26493 DR_NUM_DIMENSIONS == 0.
26495 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26496 Sebastian Pop <s.pop@samsung.com>
26498 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
26499 isl_ast_op_cond and isl_ast_op_select.
26500 (gcc_expression_from_isl_expr_op): Same.
26502 2016-01-26 Jason Merrill <jason@redhat.com>
26505 * tree.c (recompute_constructor_flags): Split out from
26507 (verify_constructor_flags): New.
26508 * tree.h: Declare them.
26510 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
26512 PR rtl-optimization/69217
26513 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
26514 are no TYPE_FIELDS set for the record type.
26516 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26519 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
26520 toc_label_name unconditionally.
26521 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
26522 SYMBOL_REF string. Use toc_label_name instead of constructing
26524 (rs6000_elf_declare_function_name): Use toc_label_name instead of
26525 constructing LCTOC1.
26527 2016-01-26 Martin Sebor <msebor@redhat.com>
26530 * doc/extend.texi (Common Type Attributes): Move text that talks about
26531 attribute packed from attribute aligned to the section discussing
26532 the former attribute for clarity.
26534 2016-01-26 Richard Henderson <rth@redhat.com>
26536 PR middle-end/60908
26537 * trans-mem.c (tm_region_init): Mark entry block as visited.
26539 2016-01-26 David Malcolm <dmalcolm@redhat.com>
26542 * diagnostic-show-locus.c (layout::print_source_line): Replace
26543 call to pp_newline with call to layout::print_newline.
26544 (layout::print_annotation_line): Likewise.
26545 (layout::move_to_column): Likewise.
26546 (layout::print_any_fixits): After printing any fixits, print a
26547 trailing newline, if necessary.
26548 (layout::print_newline): New method, resetting any colorization
26550 (diagnostic_show_locus): Move the pp_newline to before the
26551 early bailout. Remove dummy block enclosing the layout instance.
26552 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
26553 of pp_newline_and_flush with pp_flush.
26554 (diagnostic_append_note): Delete use of pp_newline.
26555 (diagnostic_append_note_at_rich_loc): Delete.
26556 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
26557 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
26558 when newline characters are added to the buffer.
26560 2016-01-26 Michael Matz <matz@suse.de>
26562 * configure.ac (ac_cv_std_swap_in_utility): New test.
26563 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
26564 * configure: Regenerate.
26565 * config.in: Regenerate.
26567 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
26569 * config/arc/arc.md (cstoresi4): Force operand into register.
26570 (arcset<code>): Fix predicate.
26571 (arcsetltu): Likewise.
26572 (arcsetgeu): Likewise.
26573 (arcsethi): Likewise.
26574 (arcsetls): Likewise.
26576 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26578 PR tree-optimization/69483
26579 * gimple-fold.c (canonicalize_constructor_val): Return NULL
26580 if base has error_mark_node type.
26582 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
26585 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
26586 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
26588 (vget_lane_f16): Handle big-endian.
26589 (vgetq_lane_f16): Likewise.
26590 (vset_lane_f16): Likewise.
26591 (vsetq_lane_f16): Likewise.
26592 * config/arm/iterators.md (VQXMOV): Add V8HF.
26593 (VDQ): Add V4HF and V8HF.
26594 (V_reg): Handle V4HF and V8HF.
26595 (Is_float_mode): Likewise.
26596 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
26597 neon_vdup_nv8hf): New patterns.
26598 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
26599 Use VD_LANE iterator.
26600 (neon_vld1_dup<mode>): Use VQ2 iterator.
26602 2016-01-26 Nathan Sidwell <nathan@acm.org>
26604 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
26605 (set_oacc_fn_attrib): Add IS_KERNEL arg.
26606 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
26607 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
26608 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
26609 (oacc_validate_dims): Add LEVEL arg, don't return level.
26610 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
26611 oacc_validate_dims.
26612 (execute_oacc_device_lower): Adjust, add more dump output.
26613 * tree-ssa-loop.c (gate_oacc_kernels): Use
26614 oacc_fn_attrib_kernels_p.
26615 * tree-parloops.c (create_parallel_loop): Adjust
26616 set_oacc_fn_attrib call.
26618 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26621 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
26622 (append_compiler_options): Handle -fcilkplus.
26623 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
26625 2016-01-26 Nick Clifton <nickc@redhat.com>
26628 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
26629 been marked as DECL_ONE_ONLY but we do not the means to make it
26630 so, then do not allow it to bind locally.
26632 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26635 * opts.h (parse_sanitizer_options): New prototype.
26636 * opts.c (sanitizer_opts): New array.
26637 (parse_sanitizer_options): New function.
26638 (common_handle_option): Use parse_sanitizer_options.
26640 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
26643 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
26644 alignment adjustment to ...
26645 (ix86_update_stack_boundary): Here. Don't over-align stack for
26647 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
26648 if __tls_get_addr is called.
26650 2016-01-26 Christian Bruel <christian.bruel@st.com>
26652 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
26654 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
26656 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
26658 2016-01-26 Richard Biener <rguenther@suse.de>
26660 PR middle-end/69467
26661 * match.pd: Guard X * CST CMP 0 pattern with single_use.
26663 2016-01-26 Richard Biener <rguenther@suse.de>
26665 PR tree-optimization/69452
26666 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
26667 (move_computations_dom_walker::before_dom_children): Rename
26669 (move_computations_worker): This.
26670 (move_computations): Perform an RPO rather than a DOM walk.
26672 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26675 * combine.c (combine_instructions): For REG_EQUAL note with
26676 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
26677 to the underlying register.
26678 * doc/rtl.texi (REG_EQUAL): Document the behavior of
26679 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
26681 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
26684 * config/aarch64/aarch64-builtins.c
26685 (aarch64_init_simd_builtin_types): Do not set structural
26686 equality to __Poly{8,16,64,128}_t types.
26688 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
26690 PR tree-optimization/69400
26691 * wide-int.cc (wi_pack): Take the precision as argument and
26692 perform canonicalization here rather than in the callers.
26693 Use the main loop to handle all full-width HWIs. Add a
26694 zero HWI if in_len isn't a full result.
26695 (wi::divmod_internal): Update accordingly.
26696 (wi::mul_internal): Likewise. Simplify.
26698 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26699 Sebastian Pop <s.pop@samsung.com>
26701 * graphite-poly.c (apply_poly_transforms): Simplify.
26702 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
26703 (print_isl_map): Same.
26704 (print_isl_union_map): Same.
26705 (print_isl_schedule): New.
26706 (debug_isl_schedule): New.
26707 * graphite-dependences.c (scop_get_reads): Do not call
26708 isl_union_map_add_map that is undocumented isl functionality.
26709 (scop_get_must_writes): Same.
26710 (scop_get_may_writes): Same.
26711 (scop_get_original_schedule): Remove.
26712 (scop_get_dependences): Do not call isl_union_map_compute_flow that
26713 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
26714 (compute_deps): Remove.
26715 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
26716 (debug_schedule_ast): New.
26717 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
26718 set_separate_option.
26719 (graphite_regenerate_ast_isl): Add dump.
26720 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
26721 from scop->transformed_schedule.
26722 (graphite_regenerate_ast_isl): Add more dump.
26723 * graphite-optimize-isl.c (optimize_isl): Set
26724 scop->transformed_schedule. Check whether schedules are equal.
26725 (apply_poly_transforms): Move here.
26726 * graphite-poly.c (apply_poly_transforms): ... from here.
26727 (free_poly_bb): Static.
26728 (free_scop): Static.
26729 (pbb_number_of_iterations_at_time): Remove.
26730 (print_isl_ast): New.
26731 (debug_isl_ast): New.
26732 (debug_scop_pbb): New.
26733 * graphite-scop-detection.c (print_edge): Move.
26734 (print_sese): Move.
26735 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
26736 (build_scop_scattering): Remove.
26737 (create_pw_aff_from_tree): Assert instead of bailing out.
26738 (add_condition_to_pbb): Remove unused code, do not fail.
26739 (add_conditions_to_domain): Same.
26740 (add_conditions_to_constraints): Remove.
26741 (build_scop_context): New.
26742 (add_iter_domain_dimension): New.
26743 (build_iteration_domains): Initialize pbb->iterators.
26744 Call add_conditions_to_domain.
26747 (index_outermost_in_loop): New.
26748 (index_pbb_in_loop): New.
26749 (outermost_pbb_in): New.
26750 (add_in_sequence): New.
26751 (add_outer_projection): New.
26752 (outer_projection_mupa): New.
26753 (add_loop_schedule): New.
26754 (build_schedule_pbb): New.
26755 (build_schedule_loop): New.
26756 (embed_in_surrounding_loops): New.
26757 (build_schedule_loop_nest): New.
26758 (build_original_schedule): New.
26759 (build_poly_scop): Call build_original_schedule.
26760 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
26761 (free_poly_dr): Remove.
26762 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
26763 (free_poly_bb): Remove.
26764 (debug_loop_vec): Remove.
26765 (print_isl_ast): Declare.
26766 (debug_isl_ast): Declare.
26767 (scop_do_interchange): Remove.
26768 (scop_do_strip_mine): Remove.
26769 (scop_do_block): Remove.
26770 (flatten_all_loops): Remove.
26771 (optimize_isl): Remove.
26772 (pbb_number_of_iterations_at_time): Remove.
26773 (debug_scop_pbb): Declare.
26774 (print_schedule_ast): Declare.
26775 (debug_schedule_ast): Declare.
26776 (struct scop): Remove schedule. Add original_schedule,
26777 transformed_schedule.
26778 (free_gimple_poly_bb): Remove.
26779 (print_generated_program): Remove.
26780 (debug_generated_program): Remove.
26781 (unify_scattering_dimensions): Remove.
26782 * sese.c (print_edge): ... here.
26783 (print_sese): ... here.
26784 (debug_edge): ... here.
26785 (debug_sese): ... here.
26786 * sese.h (print_edge): Declare.
26787 (print_sese): Declare.
26788 (dump_edge): Declare.
26789 (dump_sese): Declare.
26791 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26792 Sebastian Pop <s.pop@samsung.com>
26794 * Makefile.in: Set ISLVER in site.exp.
26796 2016-01-25 Jakub Jelinek <jakub@redhat.com>
26798 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
26799 DECL_VALUE_EXPR of new_var even for the non-array case. Look
26800 through DECL_VALUE_EXPR for expansion.
26802 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
26804 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
26805 the frame info after reload completed.
26807 2016-01-25 Jeff Law <law@redhat.com>
26809 PR tree-optimization/69196
26810 PR tree-optimization/68398
26811 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
26812 tree-ssa-threadupdate.c.
26813 (determine_bb_domination_status): Prototype
26814 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
26815 (determine_bb_domination_status): No longer static.
26816 (valid_jump_thread_path): Remove code to detect characteristics
26817 of the jump thread path not associated with correctness.
26818 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
26819 Correct test for thread path length. Count PHIs for real operands as
26820 statements that need to be copied. Do not count ASSERT_EXPRs.
26821 Look at all the blocks in the thread path. Compute and selectively
26822 filter thread paths based on threading through the latch, threading
26823 a multiway branch or crossing a multiway branch.
26825 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26827 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
26828 decl with __attribute__ ((unused)) annotation.
26830 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
26833 * tree-vect-stmts.c (vectorizable_condition): Check vectype
26834 of operands is compatible with a statement vectype.
26836 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
26838 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
26839 improve wording for mixed storage order support.
26841 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
26843 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
26844 (vcvt_u64_f64): Likewise.
26845 (vcvta_s64_f64): Likewise.
26846 (vcvta_u64_f64): Likewise.
26847 (vcvtm_s64_f64): Likewise.
26848 (vcvtm_u64_f64): Likewise.
26849 (vcvtn_s64_f64): Likewise.
26850 (vcvtn_u64_f64): Likewise.
26851 (vcvtp_s64_f64): Likewise.
26852 (vcvtp_u64_f64): Likewise.
26854 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
26856 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
26857 (arc_init): Check validity mll64 option.
26858 (arc_save_restore): Use double load/store instruction.
26859 (arc_expand_movmem): Likewise.
26860 (arc_split_move): Don't split if we have double load/store
26861 instructions. Returns a boolean.
26862 (arc_process_double_reg_moves): Change function to return boolean
26863 instead of a sequence of instructions.
26864 (arc_dwarf_register_span): New function.
26865 * config/arc/arc-protos.h (arc_split_move): Change prototype.
26866 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
26867 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
26868 (*movdf_insn): Likewise.
26869 * config/arc/arc.opt (mll64): New option.
26870 * config/arc/predicates.md (even_register_operand): New predicate.
26871 * doc/invoke.texi (ARC Options): Add mll64 documentation.
26873 2016-01-25 Richard Biener <rguenther@suse.de>
26876 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
26877 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
26879 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
26881 2016-01-25 Richard Biener <rguenther@suse.de>
26883 PR tree-optimization/69376
26884 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
26886 (VN_INFO_ANTI_RANGE_P): New inline.
26887 (VN_INFO_RANGE_TYPE): Likewise.
26888 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
26889 SSA_NAME_ANTI_RANGE_P.
26890 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
26891 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26892 Properly query VN_INFO_RANGE_TYPE.
26894 2016-01-25 Nick Clifton <nickc@redhat.com>
26897 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
26899 2016-01-23 Tom de Vries <tom@codesourcery.com>
26901 PR tree-optimization/69426
26902 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
26905 2016-01-23 Jakub Jelinek <jakub@redhat.com>
26907 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
26908 "the the" with "the" in the comments.
26909 * ipa-devirt.c (build_type_inheritance_graph,
26910 update_type_inheritance_graph): Likewise.
26911 * tree.c (build_function_type_list_1): Likewise.
26912 * cfgloopmanip.c (scale_loop_profile): Likewise.
26913 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
26914 * gimple-ssa-split-paths.c
26915 (find_block_to_duplicate_for_splitting_paths): Likewise.
26916 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
26917 * expr.c (convert_move): Likewise.
26918 * var-tracking.c (vt_stack_adjustments): Likewise.
26919 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
26920 * tree-vrp.c (test_for_singularity): Likewise.
26922 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
26923 directly instead of building a temporary tree.
26926 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
26927 remove <algorithm> include.
26929 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26932 * config/i386/i386.c: Include dojump.h.
26933 (expand_small_movmem_or_setmem,
26934 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
26936 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
26937 if dynamic_check != -1.
26939 2016-01-21 Jeff Law <law@redhat.com>
26941 PR middle-end/69347
26942 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
26943 record_temporary_equivalences. Rewritten to avoid unnecessary calls
26944 into dominated_by_p.
26945 (cprop_into_successor_phis): Avoid unnecessary tests.
26947 2016-01-22 Richard Henderson <rth@redhat.com>
26950 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
26951 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
26953 2016-01-22 Michael Matz <matz@suse.de>
26955 * system.h (string, algorithm): Include only conditionally.
26956 (new): Include always under C++.
26957 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
26958 * final.c (toplevel): Ditto.
26959 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
26960 * genconditions.c (write_header): Make gencondmd.c define
26962 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
26964 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
26965 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
26967 2016-01-22 Christian Bruel <christian.bruel@st.com>
26970 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
26972 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26975 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
26976 define_insn_and_split. Ensure operands[1] and operands[0] do not
26977 get assigned the same register.
26979 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
26981 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
26983 2016-01-22 Christian Bruel <christian.bruel@st.com>
26985 * config/arm/arm-c.c (arm_pragma_target_parse):
26986 Remove warn_builtin_macro_redefined overwrite.
26988 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
26990 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
26991 flag_non_call_exceptions compatibility.
26993 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26996 * dwarf2out.c (add_child_die_after): New function.
26997 (dwarf_qual_info_t): New type.
26998 (dwarf_qual_info): New variable.
26999 (qualified_die_p): New function.
27000 (modified_type_die): For -fdebug-types-section, ensure
27001 canonical order of qualifiers. Put qualified DIEs adjacent
27002 to the corresponding non-qualified type DIE and search there
27003 for existing qualified DIEs.
27005 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
27007 * doc/extend.texi (scalar_storage_order type attribute): Document
27008 restriction on type punning and aliasing, and remove future tense.
27010 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
27013 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
27016 2016-01-21 Jeff Law <law@redhat.com>
27018 PR middle-end/69347
27019 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
27020 useless call to record_temporary_equivalences.
27021 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
27022 allocate 10 slots in the bb_path vector and let it grow as needed.
27023 (fsm_find_control_statement_thread_paths): Similarly for the next_path
27026 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
27028 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
27030 * configure: Regenerate.
27032 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
27034 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
27035 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
27037 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
27039 PR middle-end/66178
27040 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
27041 drop EXPAND_INITIALIZER.
27042 * rtl.h (contains_symbolic_reference_p): Declare.
27043 * rtlanal.c (contains_symbolic_reference_p): New function.
27044 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
27045 a subtraction into a NOT if symbolic constants are involved.
27047 2016-01-21 Anton Blanchard <anton@samba.org>
27048 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27051 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
27053 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
27056 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
27058 * config/microblaze/microblaze.c
27059 (get_branch_target): New.
27060 (insert_wic_for_ilb_runout): New.
27062 (microblaze_machine_dependent_reorg): New.
27063 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
27064 * config/microblaze/microblaze.md
27065 (UNSPEC_IPREFETCH): Define.
27066 (iprefetch): New pattern
27067 * config/microblaze/microblaze.opt
27068 (mxl-prefetch): New flag.
27070 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
27072 * config/microblaze/microblaze.h
27073 (FIXED_REGISTERS): Update in macro.
27074 (CALL_USED_REGISTERS): Update in macro.
27076 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
27078 PR rtl-optimization/68920
27079 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
27082 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
27084 PR rtl-optimization/68990
27085 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
27086 pseudo instead of inheritance ones.
27088 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27089 Nick Clifton <nickc@redhat.com>
27093 * config/mips/mips.c (mips_compute_frame_info): Initialise
27094 args_size and hard_frame_pointer_offset fields of the frame
27095 structure before calling mips_global_pointer.
27097 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
27099 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
27101 * configure: Regenerate.
27103 2016-01-21 Richard Biener <rguenther@suse.de>
27105 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
27107 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
27109 * config/s390/s390.c (s390_asm_declare_function_size): Add code
27110 to actually emit the .size directive.
27112 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
27113 Jakub Jelinek <jakub@redhat.com>
27117 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
27118 args array size by one to avoid buffer overflow.
27120 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
27122 * config/s390/s390.md (pool_section_start): Use switch_to_section
27123 to select proper read-only data section instead of hardcoding
27125 (pool_section_end): Use switch_to_section to match the above.
27127 2016-01-21 Richard Biener <rguenther@suse.de>
27129 PR tree-optimization/69378
27130 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
27131 (set_ssa_val_to): Use it for dominance checks taking into
27132 account not executable edges.
27134 2016-01-21 Jakub Jelinek <jakub@redhat.com>
27137 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
27138 for bitsize instead of GET_MODE_PRECISION (mode).
27140 2016-01-20 Martin Sebor <msebor@redhat.com>
27143 * extend.texi (__sync Builtins): Clarify the semantics of
27144 __sync_fetch_and_OP built-ins on pointers.
27145 (__atomic Builtins): Same.
27147 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27148 Sebastian Pop <s.pop@samsung.com>
27150 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
27151 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
27152 (is_valid_rename): Same.
27153 (translate_isl_ast_to_gimple::get_rename): Same.
27154 (translate_isl_ast_to_gimple::rename_all_uses): Same.
27155 (translate_isl_ast_to_gimple::rename_uses): Same.
27156 (get_new_name): Check for close_phi nodes.
27157 (copy_loop_phi_args): Use phi_node_kind.
27158 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
27159 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
27161 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27162 Sebastian Pop <s.pop@samsung.com>
27164 Revert commit r229783.
27165 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
27166 Remove use of parameter_rename_map.
27167 (copy_def): Remove.
27168 (copy_internal_parameters): Remove.
27169 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
27170 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
27171 (free_sese_info): Do not free parameter_rename_map.
27172 (set_rename): Do not use parameter_rename_map.
27173 (rename_uses): Update call to set_rename.
27174 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
27175 * sese.h (parameter_rename_map_t): Remove.
27176 (struct sese_info_t): Remove field parameter_rename_map.
27178 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27179 Sebastian Pop <s.pop@samsung.com>
27181 * graphite-isl-ast-to-gimple.c: Fix comment.
27182 * graphite-scop-detection.c (defined_in_loop_p): New.
27183 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
27184 names defined in loop.
27186 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27187 Sebastian Pop <s.pop@samsung.com>
27189 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
27190 Discard unstructured if-then-else regions.
27192 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27193 Sebastian Pop <s.pop@samsung.com>
27195 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
27196 (cleanup_loop_iter_dom): Remove.
27197 (build_loop_iteration_domains): Remove.
27198 (build_scop_context): Remove.
27199 (build_scop_iteration_domain): Remove.
27200 (add_loop_constraints): New.
27201 (build_iteration_domains): New.
27202 (build_poly_scop): Call build_iteration_domains.
27204 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27205 Sebastian Pop <s.pop@samsung.com>
27207 * graphite-scop-detection.c
27208 (scop_detection::harmful_loop_in_region): Free dom and loops.
27209 (scop_detection::loop_body_is_valid_scop): Free bbs.
27211 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27212 Sebastian Pop <s.pop@samsung.com>
27214 * graphite-scop-detection.c (record_loop_in_sese): New.
27215 (gather_bbs::before_dom_children): Call record_loop_in_sese.
27216 (build_scops): Remove call to build_sese_loop_nests.
27217 * sese.c (sese_record_loop): Remove.
27218 (build_sese_loop_nests): Remove.
27219 (new_sese_info): Remove region->loops.
27220 (free_sese_info): Same.
27221 * sese.h (sese_contains_loop): Same.
27222 (build_sese_loop_nests): Remove.
27223 (sese_contains_loop): Remove.
27225 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27226 Sebastian Pop <s.pop@samsung.com>
27228 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
27229 loop_is_valid_in_scop.
27230 (scop_detection::harmful_stmt_in_region): Renamed
27231 harmful_loop_in_region.
27232 Call loop_is_valid_in_scop.
27234 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27235 Sebastian Pop <s.pop@samsung.com>
27237 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
27240 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27241 Sebastian Pop <s.pop@samsung.com>
27243 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
27244 * graphite.h (struct poly_bb): Remove field is_reduction.
27245 (PBB_IS_REDUCTION): Remove.
27247 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27248 Sebastian Pop <s.pop@samsung.com>
27250 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
27251 (add_pdr_constraints): Same.
27252 (scop_get_reads): Same.
27253 (scop_get_must_writes): Same.
27254 (scop_get_may_writes): Same.
27255 (scop_get_original_schedule): Same.
27256 (extend_schedule): Same.
27257 (apply_schedule_on_deps): Same.
27258 (carries_deps): Same.
27259 (compute_deps): Same.
27260 (scop_get_dependences): Same.
27261 * graphite-isl-ast-to-gimple.c
27262 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
27263 * graphite-optimize-isl.c (get_schedule_for_band): Same.
27264 (get_schedule_for_band_list): Same.
27265 (get_schedule_map): Same.
27266 (apply_schedule_map_to_scop): Same.
27267 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27268 (build_loop_iteration_domains): Same.
27269 (add_condition_to_pbb): Same.
27270 (add_param_constraints): Same.
27271 (pdr_add_memory_accesses): Same.
27272 (pdr_add_data_dimensions): Same.
27274 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27276 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
27279 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27281 * common.opt (feliminate-dwarf2-dups): Replace references to
27282 "DWARF 2" with just "DWARF".
27283 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
27284 * doc/extend.texi: Likewise.
27285 * doc/cpp.texi: Likewise.
27286 * doc/invoke.texi: Likewise.
27287 (Option Summary): Add -gdwarf to list of Debugging Options.
27288 (Debugging Options): Document -gdwarf.
27289 * doc/contrib.texi: Spell "DWARF" like that.
27291 2016-01-21 Jakub Jelinek <jakub@redhat.com>
27293 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
27294 warning. Fix up formatting.
27296 PR middle-end/67653
27297 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
27298 attempt to mark memory input operand addressable and
27299 call prepare_gimple_addressable in that case. Don't adjust
27300 input_location for diagnostics, use error_at instead.
27302 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
27304 * config/rs6000/ppc-auxv.h: New file.
27305 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
27306 (cpu_is): Likewise.
27307 (cpu_supports): Likewise.
27308 * config/rs6000/rs6000.c: include "ppc-auxv.h".
27309 (cpu_is_info): New variable.
27310 (cpu_supports_info): Likewise.
27311 (tcb_verification_symbol): Likewise.
27312 (cpu_builtin_p): Likewise.
27313 (cpu_expand_builtin): New function.
27314 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
27315 (rs6000_init_builtins): Likewise.
27316 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
27317 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
27318 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
27319 * configure: Regenerate.
27320 * config.in: Likewise.
27321 * doc/extend.texi (PowerPC Built-in Functions): Document
27322 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
27324 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
27327 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
27329 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
27332 2016-01-20 Richard Henderson <rth@redhat.com>
27338 * tree.c (tm_define_builtin): New.
27339 (find_tm_vector_type): New.
27340 (build_tm_vector_builtins): New.
27341 (build_common_builtin_nodes): Call it.
27343 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
27345 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
27346 (arm_fp_ok): Likewise.
27347 (arm_fp): Likewise.
27348 (arm_crypto): Likewise.
27350 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27351 Richard Biener <rguenther@suse.de>
27353 PR tree-optimization/69328
27354 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
27355 vectors have same number of elements.
27356 (vectorizable_condition): Fix masked version recognition.
27358 2016-01-20 Richard Biener <rguenther@suse.de>
27360 PR tree-optimization/69345
27361 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
27362 (VN_INFO_PTR_INFO): Likewise.
27363 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
27364 info when it is equal between non-dominating SSA names.
27365 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27366 Make sure to look at original SSA infos.
27368 2016-01-20 Jeff Law <law@redhat.com>
27371 * config/m68k/predicates.md (pow2_m1_operand): New predicate
27373 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
27374 (pc_or_label_operand): New predicate.
27375 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
27376 tests for small integers that are 2^n - 1.
27378 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
27380 * doc/invoke.texi (Options Summary): Add '.' after @xref.
27382 2016-01-19 Jeff Law <law@redhat.com>
27384 PR middle-end/69347
27385 * tree-ssa-threadbackwards.c
27386 (fsm_find_control_statement_thread_paths): Do not try to lookup
27387 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
27389 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27391 * doc/lto.texi: Remove text that says only Gold has linker plugin
27394 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
27396 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
27397 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
27398 the DIE accordingly.
27399 (modified_type_die): Add REVERSE parameter and pass it recursively,
27400 as well as to base_type_die. Adjust presence check accordingly.
27401 (base_type_for_mode): Adjust call to modified_type_die.
27402 (add_type_attribute): Add REVERSE parameter and pass it to
27404 (generic_parameter_die): Adjust call to add_type_attribute.
27405 (add_scalar_info): Likewise.
27406 (add_subscript_info): Likewise.
27407 (gen_array_type_die): Likewise.
27408 (gen_descr_array_type_die): Likewise.
27409 (gen_entry_point_die): Likewise.
27410 (gen_enumeration_type_die): Likewise.
27411 (gen_formal_parameter_die): Likewise.
27412 (gen_subprogram_die): Likewise.
27413 (gen_variable_die ): Likewise.
27414 (gen_const_die): Likewise.
27415 (gen_field_die): Likewise.
27416 (gen_pointer_type_die): Likewise.
27417 (gen_reference_type_die): Likewise.
27418 (gen_ptr_to_mbr_type_die): Likewise.
27419 (gen_inheritance_die): Likewise.
27420 (gen_subroutine_type_die): Likewise.
27421 (gen_typedef_die): Likewise.
27422 (force_type_die): Adjust call to modified_type_die.
27424 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
27426 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
27427 flow throughout the file. Fix broken link to Objective-C 2.0
27429 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
27432 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27434 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
27436 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27439 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
27440 (maybe_record_node): Record cxa_pure_virtual as the only possible
27441 target if there are not ohter candidates.
27442 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
27444 2016-01-19 Richard Biener <rguenther@suse.de>
27446 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
27447 (get_memory_order): Likewise.
27449 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
27451 * tree-vect-stmts.c (vectorizable_store): Check
27454 2016-01-19 David Malcolm <dmalcolm@redhat.com>
27457 * gcc.c (driver::decode_argv): Add call to
27458 init_opts_obstack before init_options_struct.
27459 * opts.c (init_opts_obstack): Remove idempotency.
27460 (init_options_struct): Replace call to init_opts_obstack
27461 with a gcc_assert to verify that it has already been called.
27462 * toplev.c (toplev::main): Add call to init_opts_obstack before
27463 calls to init_options_struct.
27464 (toplev::finalize): Move cleanup of opts_obstack next to
27465 cleanup of save_decoded_options, clearing the latter, and
27466 save_decoded_options_count.
27468 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27471 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
27472 attribute to unconditional. Remove %? from output template.
27474 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27475 Jiong Wang <jiong.wang@arm.com>
27477 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
27478 generated from different expand order.
27480 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27482 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
27483 Add support for CCMP costing.
27485 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27487 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
27488 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
27489 (fccmpe<mode>): Likewise.
27490 (fcmp): Rename to fcmp and globalize pattern.
27492 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
27493 (aarch64_gen_ccmp_next): Add FP support.
27495 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27497 * target.def (gen_ccmp_first): Update documentation.
27498 (gen_ccmp_next): Likewise.
27499 * doc/tm.texi (gen_ccmp_first): Update documentation.
27500 (gen_ccmp_next): Likewise.
27501 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
27502 expand_ccmp_expr_1. Improve comments.
27503 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
27504 (ccmp_ior<mode>): Remove pattern.
27505 (cmp<mode>): Remove expand.
27506 (cmp): Globalize pattern.
27507 (cstorecc4): Use cc_register.
27508 (mov<mode>cc): Remove ccmp_cc_register check.
27509 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
27510 Simplify after removal of CC_DNE/* modes.
27511 (aarch64_ccmp_mode_to_code): Remove.
27512 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
27513 In 'k' case use integer as condition.
27514 (aarch64_nzcv_codes): Remove inverted cases.
27515 (aarch64_code_to_ccmode): Remove.
27516 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
27517 comparison with CC register to be used in folowing CCMP/branch/CSEL.
27518 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
27519 pattern. Return the comparison with CC register. Invert conditions
27520 when bitcode is OR.
27521 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
27522 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
27524 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27526 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
27527 instrumented_version.
27529 2016-01-19 Richard Biener <rguenther@suse.de>
27531 PR tree-optimization/69336
27532 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
27533 handled components with get_ref_base_and_extent.
27534 (equal_mem_array_ref_p): Adjust.
27536 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27539 * shrink-wrap.c: Include valtrack.h.
27540 (move_insn_for_shrink_wrap): Add DEBUG argument. If
27541 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
27542 in between insn and where it will be moved to. Call
27543 dead_debug_insert_temp.
27544 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
27545 first and dead_debug_local_finish at the end.
27546 For uses and defs bitmap, handle all regs in between REGNO and
27547 END_REGNO, not just the first one.
27549 2016-01-19 Richard Biener <rguenther@suse.de>
27551 PR tree-optimization/69352
27552 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
27553 (equal_mem_array_ref_p): Constrain size and max size properly.
27554 Compare the reverse flag.
27556 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
27558 * ira.c (ira): Update regstat data if we deleted insns.
27560 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27562 PR rtl-optimization/68955
27563 PR rtl-optimization/64557
27564 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
27565 here. Fix up formatting.
27566 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
27568 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27571 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
27572 assume that the node has body.
27573 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
27576 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27578 * lto-streamer-out.c (lto_output): Do not stream instrumentation
27581 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27583 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
27584 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
27586 2016-01-19 Martin Jambor <mjambor@suse.cz>
27587 Martin Liska <mliska@suse.cz>
27588 Michael Matz <matz@suse.de>
27590 * Makefile.in (OBJS): Add new source files.
27591 (GTFILES): Add hsa.c.
27592 * common.opt (disable_hsa): New variable.
27593 (-Whsa): New warning.
27594 * config.in (ENABLE_HSA): New.
27595 * configure.ac: Treat hsa differently from other accelerators.
27596 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
27597 $enable_offloading.
27598 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
27599 * doc/install.texi (Configuration): Document --with-hsa-runtime,
27600 --with-hsa-runtime-include, --with-hsa-runtime-lib and
27601 --with-hsa-kmt-lib.
27602 * doc/invoke.texi (-Whsa): Document.
27603 (hsa-gen-debug-stores): Likewise.
27604 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
27605 to invoke offload compiler for hsa acclerator.
27606 * opts.c (common_handle_option): Determine whether HSA offloading
27607 should be performed.
27608 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
27609 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
27610 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
27611 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
27612 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
27613 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
27614 GF_OMP_FOR_KIND_GRID_LOOP.
27615 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
27616 (pp_gimple_stmt_1): Likewise.
27617 * gimple-walk.c (walk_gimple_stmt): Likewise.
27618 * gimple.c (gimple_build_omp_grid_body): New function.
27619 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
27620 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
27621 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
27622 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
27623 GF_OMP_TEAMS_GRID_PHONY.
27624 (gimple_statement_omp_single_layout): Updated comments.
27625 (gimple_build_omp_grid_body): New function.
27626 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
27627 (gimple_omp_for_grid_phony): New function.
27628 (gimple_omp_for_set_grid_phony): Likewise.
27629 (gimple_omp_parallel_grid_phony): Likewise.
27630 (gimple_omp_parallel_set_grid_phony): Likewise.
27631 (gimple_omp_teams_grid_phony): Likewise.
27632 (gimple_omp_teams_set_grid_phony): Likewise.
27633 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
27634 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
27635 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
27636 (BUILT_IN_GOMP_TARGET): Updated type.
27637 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
27638 (adjust_for_condition): New function.
27639 (get_omp_for_step_from_incr): Likewise.
27640 (extract_omp_for_data): Moved parts to adjust_for_condition and
27641 get_omp_for_step_from_incr.
27642 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
27643 (fixup_child_record_type): Bail out if receiver_decl is NULL.
27644 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
27645 (scan_omp_parallel): Do not create child functions for phony
27647 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
27648 (scan_omp_1_op): Checking assert we are not remapping to
27649 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
27650 (parallel_needs_hsa_kernel_p): New function.
27651 (expand_parallel_call): Register apprpriate parallel child
27652 functions as HSA kernels.
27653 (grid_launch_attributes_trees): New type.
27654 (grid_attr_trees): New variable.
27655 (grid_create_kernel_launch_attr_types): New function.
27656 (grid_insert_store_range_dim): Likewise.
27657 (grid_get_kernel_launch_attributes): Likewise.
27658 (get_target_argument_identifier_1): Likewise.
27659 (get_target_argument_identifier): Likewise.
27660 (get_target_argument_value): Likewise.
27661 (push_target_argument_according_to_value): Likewise.
27662 (get_target_arguments): Likewise.
27663 (expand_omp_target): Call get_target_arguments instead of looking
27664 up for teams and thread limit.
27665 (grid_expand_omp_for_loop): New function.
27666 (grid_arg_decl_map): New type.
27667 (grid_remap_kernel_arg_accesses): New function.
27668 (grid_expand_target_kernel_body): New function.
27669 (expand_omp): Call it.
27670 (lower_omp_for): Do not emit phony constructs.
27671 (lower_omp_taskreg): Do not emit phony constructs but create for them
27672 a temporary variable receiver_decl.
27673 (lower_omp_taskreg): Do not emit phony constructs.
27674 (lower_omp_teams): Likewise.
27675 (lower_omp_grid_body): New function.
27676 (lower_omp_1): Call it.
27677 (grid_reg_assignment_to_local_var_p): New function.
27678 (grid_seq_only_contains_local_assignments): Likewise.
27679 (grid_find_single_omp_among_assignments_1): Likewise.
27680 (grid_find_single_omp_among_assignments): Likewise.
27681 (grid_find_ungridifiable_statement): Likewise.
27682 (grid_target_follows_gridifiable_pattern): Likewise.
27683 (grid_remap_prebody_decls): Likewise.
27684 (grid_copy_leading_local_assignments): Likewise.
27685 (grid_process_kernel_body_copy): Likewise.
27686 (grid_attempt_target_gridification): Likewise.
27687 (grid_gridify_all_targets_stmt): Likewise.
27688 (grid_gridify_all_targets): Likewise.
27689 (execute_lower_omp): Call grid_gridify_all_targets.
27690 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
27691 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
27692 (tree_omp_clause): Added union field dimension.
27693 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
27694 * tree.c (omp_clause_num_ops): Added number of arguments of
27695 OMP_CLAUSE__GRIDDIM_.
27696 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
27697 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
27698 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
27699 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
27700 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
27701 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
27702 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
27703 * tree-pass.h (make_pass_gen_hsail): Declare.
27704 (make_pass_ipa_hsa): Likewise.
27705 * ipa-hsa.c: New file.
27706 * lto-section-in.c (lto_section_name): Add hsa section name.
27707 * lto-streamer.h (lto_section_type): Add hsa section.
27708 * timevar.def (TV_IPA_HSA): New.
27709 * hsa-brig-format.h: New file.
27710 * hsa-brig.c: New file.
27711 * hsa-dump.c: Likewise.
27712 * hsa-gen.c: Likewise.
27715 * toplev.c (compile_file): Call hsa_output_brig.
27716 * hsa-regalloc.c: New file.
27718 2016-01-18 Jeff Law <law@redhat.com>
27720 PR tree-optimization/69320
27721 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
27722 ranged object, do nothing if the RHS constant is not [0..1].
27723 (optimize_stmt): Comparing a boolean ranged object against a
27724 constant outside [0..1] results in a compile-time constant.
27726 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
27729 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
27731 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27732 (Option Summary): Update to reflect new section and moved options.
27733 (C++ Dialect Options): Move -fstats to new section.
27734 (Debugging Options): Move all dump, statistics, and other GCC
27735 developer options to new section. Rewrite section introduction
27736 and re-order remaining options to put the more basic ones first.
27737 (Optimization Options): Move -fira-verbose and -flto-report* to
27739 (Developer Options): New section incorporating moved options.
27740 * doc/cppopts.texi (-dM): Update cross-reference.
27742 2016-01-18 Richard Henderson <rth@redhat.com>
27745 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
27746 operands to pseudo only if CSE is expected. Split long immediate
27747 operands only after reload, and for the stack pointer.
27748 (*add<GPI>3_pluslong): Remove.
27749 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
27750 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
27751 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
27752 (*add<GPI>3 peepholes): New.
27753 (*add<GPI>3 splitters): New.
27754 * config/aarch64/constraints.md (Upl): New.
27755 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
27757 2016-01-18 Richard Biener <rguenther@suse.de>
27759 PR tree-optimization/69297
27760 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
27762 (vect_bb_vectorization_profitable_p): Clear visited flag again.
27764 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
27766 PR middle-end/68542
27767 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
27768 of mixind vector and scalar types.
27769 (fold_relational_const): Add handling of vector
27770 comparison with boolean result.
27771 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
27772 comparison of vector operands with boolean result for EQ/NE only.
27773 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
27774 (verify_gimple_cond): Likewise.
27775 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
27778 2016-01-18 Joseph Myers <joseph@codesourcery.com>
27780 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
27783 2016-01-18 Richard Biener <rguenther@suse.de>
27785 PR middle-end/69308
27786 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
27788 2016-01-18 Tom de Vries <tom@codesourcery.com>
27790 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
27792 2016-01-18 Tom de Vries <tom@codesourcery.com>
27794 * omp-low.c (set_oacc_fn_attrib): Make extern.
27795 * omp-low.h (set_oacc_fn_attrib): Declare.
27796 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
27797 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
27798 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
27799 Add and handle function parameter oacc_kernels_p.
27800 (find_reduc_addr, get_omp_data_i_param): New function.
27801 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
27802 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
27803 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
27804 Calculate dominance info. Skip loops that are not in a kernels region
27805 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
27806 (pass_parallelize_loops::execute): Call parallelize_loops with
27807 oacc_kernels_p argument.
27808 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
27809 New member function.
27810 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
27811 * passes.def: Add argument to pass_parallelize_loops instantation.
27813 2016-01-18 Tom de Vries <tom@codesourcery.com>
27815 * tree-parloops.c (pass_parallelize_loops::execute): Allow
27816 pass_parallelize_loops to be run outside the loop pipeline.
27818 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27820 * tree-scalar-evolution.c (follow_copies_to_constant): New.
27821 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
27823 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27826 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
27827 using get_ref_base_and_extent.
27828 (equal_mem_array_ref_p): New.
27829 (hashable_expr_equal_p): Add call to previous.
27831 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27834 * tree-sra.c (disqualified_constants, constant_decl_p): New.
27835 (sra_initialize): Allocate disqualified_constants.
27836 (sra_deinitialize): Free disqualified_constants.
27837 (disqualify_candidate): Update disqualified_constants when appropriate.
27838 (create_access): Scan for constant-pool entries as we go along.
27839 (scalarizable_type_p): Add check against type_contains_placeholder_p.
27840 (maybe_add_sra_candidate): Allow constant-pool entries.
27841 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
27842 (initialize_constant_pool_replacements): New.
27843 (sra_modify_assign): Avoid mangling assignments created by previous,
27844 and don't generate writes into constant pool.
27845 (sra_modify_function_body): Call initialize_constant_pool_replacements.
27847 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27849 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
27850 andnot instruction.
27851 (scalar_chain::convert_op): Likewise.
27852 * config/i386/i386.md (*andndi3_doubleword): New.
27854 2016-01-18 Richard Biener <rguenther@suse.de>
27856 PR tree-optimization/69170
27857 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
27858 building a vector from scalar results of a pattern stmt.
27860 2016-01-18 Jakub Jelinek <jakub@redhat.com>
27862 * haifa-sched.c (autopref_multipass_init): Work around
27863 -Wmaybe-uninitialized warning.
27865 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
27867 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
27868 against the constant 0.
27870 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27872 PR tree-optimization/68799
27873 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
27874 look up phi candidates in the statement-candidate map.
27875 (phi_add_costs): Likewise.
27876 (record_phi_increments): Likewise.
27877 (phi_incr_cost): Likewise.
27878 (ncd_with_phi): Likewise.
27879 (all_phi_incrs_profitable): Likewise.
27881 2016-01-17 Jakub Jelinek <jakub@redhat.com>
27883 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
27884 -Wmaybe-uninitialized warning.
27886 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
27888 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27889 (Option Summary): Update to reflect new section and moved options.
27890 (C++ Dialect Options): Move -fvtable-verify and related options.
27891 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
27892 and profiling-related options.
27893 (Optimization Options): Move profile generation options and
27894 -fstack-protector and related options.
27895 (Instrumentation Options): New section incorporating moved options.
27896 (Code Generation Options): Move -finstrument-functions and
27897 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
27899 2016-01-16 Tom de Vries <tom@codesourcery.com>
27901 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
27903 2016-01-16 Tom de Vries <tom@codesourcery.com>
27905 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
27907 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
27909 * hash-table.h (hash_table::empty): Turn into an inline wrapper
27910 that checks whether the table is already empty. Rename the
27911 original implementation to...
27912 (hash_table::empty_slot): ...this new private function.
27914 2016-01-15 David Malcolm <dmalcolm@redhat.com>
27916 PR diagnostic/68899
27917 * diagnostic-show-locus.c (layout::print_source_line): Move x
27918 offset of line until after call to
27919 get_line_width_without_trailing_whitespace.
27921 2016-01-15 Jeff Law <law@redhat.com>
27923 PR tree-optimization/69270
27924 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
27925 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
27926 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
27927 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
27928 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27929 ssa_name_has_boolean_range and constant_boolean_node.
27931 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
27933 PR rtl-optimization/69030
27934 * lra-spills.c (remove_pseudos): Check nrefs and make the function
27936 (spill_pseudos): Delete debug insn for dead pseudo.
27937 (lra_spill): Initiate spill_hard_reg and slots memory separately.
27939 2016-01-15 Jiong Wang <jiong.wang@arm.com>
27941 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
27943 (TYPES_UNOPUS): Likewise.
27944 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
27945 builtin type, from UNOP to UNOPUS.
27946 (lbtruncuv4sf): Likewise.
27947 (lbtruncuv2df): Likewise.
27948 (lrounduv2sf): Likewise.
27949 (lrounduv4sf): Likewise.
27950 (lrounduv2df): Likewise.
27951 (lroundusf): Likewise.
27952 (lroundusf): Likewise.
27953 (lceiluv2sf): Likewise.
27954 (lceiluv4sf): Likewise.
27955 (lceiluv2df): Likewise.
27956 (lceilusf): Likewise.
27957 (lceiludf): Likewise.
27958 (lflooruv2sf): Likewise.
27959 (lflooruv4sf): Likewise.
27960 (lflooruv2df): Likewise.
27961 (lfloorusf): Likewise.
27962 (lfloorudf): Likewise.
27963 (lfrintnuv2sf): Likewise.
27964 (lfrintnuv4sf): Likewise.
27965 (lfrintnuv2df): Likewise.
27966 (lfrintnusf): Likewise.
27967 (lfrintnudf): Likewise.
27968 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
27970 (vcvtq_u32_f32): Likewise.
27971 (vcvtq_u64_f64): Likewise.
27972 (vcvta_u32_f32): Likewise.
27973 (vcvtaq_u32_f32): Likewise.
27974 (vcvtaq_u64_f64): Likewise.
27975 (vcvtm_u32_f32): Likewise.
27976 (vcvtmq_u32_f32): Likewise.
27977 (vcvtmq_u64_f64): Likewise.
27978 (vcvtn_u32_f32): Likwise.
27979 (vcvtnq_u32_f32): Likewise.
27980 (vcvtnq_u64_f64): Likewise.
27981 (vcvtp_u32_f32): Likewise.
27982 (vcvtpq_u32_f32): Likewise.
27983 (vcvtpq_u64_f64): Likewise.
27984 (vcvtmd_u64_f64): Likewise.
27985 (vcvtms_u32_f32): Likewise.
27986 (vcvtad_u64_f64): Likewise.
27987 (vcvtas_u32_f32): Likewise.
27988 (vcvtnd_u64_f64): Likewise.
27989 (vcvtns_u32_f32): Likewise.
27990 (vcvtpd_u64_f64): Likewise.
27991 (vcvtps_u32_f32): Likewise.
27993 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27995 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
27996 CSEL of zero_extended registers.
27998 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28000 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28001 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
28003 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28005 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
28006 false when argument string is not found in the attributes table
28009 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
28012 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
28013 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
28014 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
28015 precision estimate.
28017 2016-01-15 Richard Biener <rguenther@suse.de>
28019 PR tree-optimization/66856
28020 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
28021 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
28022 (vect_create_new_slp_node): Increment stmt reference count.
28023 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
28024 an SLP tree before swapping operands.
28025 (vect_build_slp_tree): Likewise.
28026 (destroy_bb_vec_info): Free stmt info after SLP instances.
28027 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
28028 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
28029 (STMT_VINFO_NUM_SLP_USES): New macro.
28031 2016-01-15 Richard Biener <rguenther@suse.de>
28034 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
28035 (add_linkage_name): ... here.
28036 (gen_typedef_die): Use add_linkage_name_raw instead of
28037 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
28040 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
28042 * gimplify.c (oacc_default_clause): Decode reference and pointer
28043 types for both kernels and parallel regions.
28045 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
28047 PR middle-end/69246
28048 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
28050 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28052 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
28053 (convert_scalars_to_vector): Likewise.
28055 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
28057 * doc/extend.texi (Type Traits): Fix grammar.
28059 2016-01-15 Martin Jambor <mjambor@suse.cz>
28061 * tree-inline.c (remap_decl): Use existing dclarations if
28062 remapping a type and prevent_decl_creation_for_types.
28063 (replace_locals_stmt): Do an initial remapping of non-VLA typed
28064 decls first. Do real remapping with
28065 prevent_decl_creation_for_types set.
28066 * tree-inline.h (copy_body_data): New field
28067 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
28070 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
28072 * config/s390/s390.opt (mmvcle): More verbose help text.
28074 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
28076 * config/s390/s390.opt: Add period to -mzvector option text.
28078 2016-01-15 Richard Biener <rguenther@suse.de>
28080 PR tree-optimization/68961
28081 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
28082 of invariants in stores again.
28084 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
28086 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
28088 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28090 * config/i386/i386.c (ix86_expand_branch): Don't split
28091 DI mode xor instruction to SI mode.
28093 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
28096 * ipa-icf.c (sem_function::merge): Virtual functions may become
28097 reachable even if they address is not taken and there are no
28100 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
28102 * lto-streamer-out.c (subtract_estimated_size): New function.
28103 (get_symbol_initial_value): Use it.
28105 2016-01-15 Christian Bruel <christian.bruel@st.com>
28108 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
28109 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
28110 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
28111 use add_builtin_function_ext_scope instead of add_builtin_function.
28112 (neon_set_p, neon_crypto_set_p): Remove.
28113 (arm_init_builtins): Always call arm_init_neon_builtins and
28114 arm_init_crypto_builtins.
28115 (arm_expand_builtin): Check that builtins are allowed for the arch.
28116 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
28117 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
28118 arm_init_neon_builtins call.
28120 2016-01-15 Richard Biener <rguenther@suse.de>
28122 PR tree-optimization/69117
28123 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
28124 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
28125 of the leader conservatively.
28126 (free_scc_vn): Restore original SSA name infos.
28128 2016-01-14 Jeff Law <law@redhat.com>
28130 PR tree-optimization/69270
28131 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
28132 single bit of precision, verify it's also unsigned.
28133 (record_edge_info): Use constant_boolean_node rather than fold_convert
28134 to convert boolean_true/boolean_false to the right type.
28136 2016-01-14 Richard Henderson <rth@redhat.com>
28139 * loop-doloop.c (record_reg_sets): New.
28140 (doloop_optimize): Reject the transform if the sequence
28141 clobbers registers live at the end of the loop block.
28142 (doloop_optimize_loops): Enable df_live if needed.
28144 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28146 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
28147 * config/rs6000/rs6000.c: Likewise.
28148 * config/rs6000/rs6000.h: Likewise.
28149 * config/rs6000/rs6000.md: Likewise.
28150 * doc/extend.texi: Likewsie.
28152 2016-01-14 Jeff Law <law@redhat.com>
28154 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
28157 2016-01-14 Richard Henderson <rth@redhat.com>
28161 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
28162 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
28163 instead of builtin_decl_declared_p to test for declaration.
28165 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
28167 * doc/loop.texi (Loop Analysis and Representation): Document
28168 loop_depth function.
28170 2016-01-14 Tom de Vries <tom@codesourcery.com>
28172 PR tree-optimization/68773
28173 * omp-low.c (expand_omp_target): Don't set force_output.
28174 * varpool.c (varpool_node::get_create): Same.
28175 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
28176 offload_funcs with force_output.
28178 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28181 * lra-eliminations.c (move_plus_up): Don't change anything if either
28182 the outer or inner subreg mode is not MODE_INT.
28183 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
28184 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
28186 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
28188 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
28189 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
28190 reduc_uplus_@var{m}): Remove.
28191 * expr.c (expand_expr_real_2): Remove expansion path for
28192 reduc_[us](min|max|plus) optabs.
28193 * optabs-tree.c (scalar_reduc_to_vector): Remove.
28194 * optabs-tree.h (scalar_reduc_to_vector): Remove.
28195 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
28196 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
28197 * tree-vect-loop.c (vectorizable_reduction): Remove test for
28198 reduc_[us](min|max|plus) optabs.
28200 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
28202 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
28203 (reduc_plus_scal_v2sf): New.
28204 (reduc_smax_v2sf): Rename to...
28205 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
28206 (reduc_smin_v2sf): Rename to...
28207 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
28209 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
28211 * alias.c (compare_base_symbol_refs): New function.
28212 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
28215 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28217 PR middle-end/68146
28218 PR tree-optimization/69155
28219 * tree-complex.c: Include cfganal.h.
28220 (phis_to_revisit): New variable.
28221 (extract_component): Add phiarg_p argument. Assert that returned
28222 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
28223 (update_phi_components): Partly rewrite to use loop over real/imag
28224 components instead of code duplication. If extract_component returns
28225 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
28226 create_tmp_reg into the PHI node instead, and mention the phi triplet
28227 in phis_to_revisit.
28228 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
28229 in phis_to_revisit at the end.
28231 2016-01-14 Richard Biener <rguenther@suse.de>
28233 PR tree-optimization/68060
28234 * tree-vect-loop.c (vect_is_simple_reduction): Check the
28235 outer loop reduction is only used in the inner loop before
28236 detecting a double reduction.
28238 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28241 * combine.c (expand_field_assignment): Punt if compute_mode is
28242 unsupported scalar mode.
28244 2016-01-14 Richard Biener <rguenther@suse.de>
28246 PR tree-optimization/66856
28247 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
28248 SLP node only if it built successfully.
28249 (vect_analyze_slp_instance): Adjust.
28251 2016-01-14 Jeff Law <law@redhat.com>
28253 PR tree-optimization/69270
28254 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
28255 (record_edge_info): Use it. Convert boolean_{true,false}_node
28256 to the type of op0.
28258 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
28261 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
28262 use block_ultimate_origin
28263 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
28265 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28267 * doc/invoke.texi (Submodel Options): Rename section to
28268 "Machine-Dependent Options" to better reflect its content.
28269 Rewrite introductory text to remove archaic CPU names.
28272 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28274 * doc/invoke.texi (Code Gen Options): Move section up in file,
28275 before target-specific options. Update menu and option summary
28276 to reflect the new section ordering.
28278 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28280 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
28281 (C++ Dialect Options): Add cross-reference to -std option.
28282 * doc/standards.texi (C++ Language): Document C++14 support.
28284 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
28286 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
28287 for pack/unpack functions for __ibm128.
28288 (PACK_IF): Likewise.
28289 (UNPACK_IF): Likewise.
28291 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28292 support for __ibm128 pack/unpack functions.
28293 (rs6000_invalid_builtin): Likewise.
28294 (rs6000_init_builtins): Likewise.
28295 (rs6000_opt_masks): Likewise.
28297 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
28298 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
28300 (RS6000_BTM_COMMON): Likewise.
28302 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
28303 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
28304 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
28305 128-bit floating point. Add support for the double values to be
28306 in Altivec registers for TF/IF packing and unpacking, but restrict
28307 TD packing sub-fields to be FPR registers. Don't allow overlapped
28308 register support for packing. Allow pack inputs to be memory
28309 locations. Don't build generator functions for unpack<mode>_dm
28310 and unpack<mode>_nodm.
28311 (unpack<mode>_dm): Likewise.
28312 (unpack<mode>_nodm): Likewise.
28313 (pack<mode>): Likewise.
28315 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
28316 built-in functions to pack/unpack explicit __ibm128 values.
28317 (__builtin_unpack_ibm128): Likewise.
28319 * doc/extend.texi (PowerPC Built-in Functions): Document
28320 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
28322 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
28325 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
28326 Add new arg loc and pass it down as context.
28327 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
28328 to the location to use for the warning.
28329 (check_function_arguments): New arg loc. All callers changed. Pass
28330 it to check_function_nonnull.
28331 * c-common.h (check_function_arguments): Adjust declaration.
28333 2016-01-13 Jakub Jelinek <jakub@redhat.com>
28335 PR tree-optimization/69156
28336 * gimple.c (validate_type): Removed.
28337 (gimple_builtin_call_types_compatible_p): Use
28338 useless_type_conversion_p instead of validate_type.
28339 * value-prof.c (gimple_stringop_fixed_value): Fold
28340 icall_size to correct type.
28342 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28344 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
28347 2016-01-13 Richard Henderson <rth@redhat.com>
28350 * target.def (builtin_tm_load, builtin_tm_store): Remove.
28351 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
28352 (ix86_builtin_tm_store): Remove.
28353 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28354 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28355 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28356 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28357 * doc/tm.texi: Rebuild.
28359 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
28360 (BUILT_IN_TM_MEMCPY_RTWN): New.
28361 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
28362 fallback from vector to integer helpers.
28363 (build_tm_load): Handle vector types directly, instead of
28365 (build_tm_store): Likewise.
28366 (expand_assign_tm): Prepare for register types not handled by
28367 the above. Copy them to memory and use memcpy.
28368 * tree.c (tm_define_builtin): New.
28369 (find_tm_vector_type): New.
28370 (build_tm_vector_builtins): New.
28371 (build_common_builtin_nodes): Call it.
28373 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
28375 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
28376 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
28378 2016-01-13 Tom de Vries <tom@codesourcery.com>
28380 PR tree-optimization/69169
28381 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
28382 handled_struct_type param.
28383 (create_variable_info_for, intra_create_variable_infos): Call
28384 create_variable_info_for_1 with extra arg.
28386 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
28388 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
28389 and "armv8.1-a+crc" entries.
28391 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
28394 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
28395 Change first operand predicate from register_or_constm1_operand
28396 to register_operand.
28397 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
28398 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
28399 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
28400 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
28401 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
28402 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
28403 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
28404 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
28405 comparison with constm1_rtx from vec_prefetch_gen part.
28407 2016-01-13 Richard Biener <rguenther@suse.de>
28409 PR tree-optimization/69013
28410 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
28411 Exchange assert for a test.
28413 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28416 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
28418 2016-01-13 Richard Biener <rguenther@suse.de>
28420 PR tree-optimization/69242
28421 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
28422 assert with a check.
28424 2016-01-13 Richard Biener <rguenther@suse.de>
28426 PR tree-optimization/69186
28427 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28428 Properly guard vect_update_misalignment_for_peel call.
28430 2016-01-12 Jeff Law <law@redhat.com>
28432 PR tree-optimization/pr67755
28433 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
28434 "need_profile_correction".
28435 (thread_block_1): Initialize new field to false by default. If we
28436 have multiple thread paths through a common joiner to different
28437 final targets, then set new field to true.
28438 (compute_path_counts): Only do count adjustment when it's really
28441 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28443 * doc/invoke.texi (Spec Files): Move section down in file, past
28444 all command-line option descriptions.
28446 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28448 PR middle-end/54809
28449 * doc/gty.texi: Remove documentation of mark_hook.
28450 * gengtype.c (struct write_types_data): Remove code to support
28451 mark_hook attribute.
28452 (walk_type): Likewise.
28453 (write_func_for_structure): Likewise.
28455 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28457 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
28458 Directory Options, and -specs= to Overall Options.
28459 (Overall Options): Adjust similarly. Reorder to group related
28460 options together. Make -specs= cross-reference the spec file details.
28461 (Directory Options): Adjust similarly.
28463 2016-01-12 Jeff Law <law@redhat.com>
28465 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
28467 2016-01-12 Olivier Hainque <hainque@adacore.com>
28469 * gcc.c (spec_undefvar_allowed): New global.
28470 (process_command): Set to true when running for --version or --help,
28472 (getenv_spec_function): When the variable is not defined, use the
28473 variable name as the variable value if we're allowed not to issue
28476 2016-01-12 Bin Cheng <bin.cheng@arm.com>
28478 PR tree-optimization/68911
28479 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
28480 information computed for expression "init + nit * step".
28482 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28484 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
28485 about name of GCC executable. Remove deleted node from menu.
28486 (Directory Options) <-B>: Remove cross-reference to deleted node.
28487 (Target Options): Delete section.
28489 2016-01-12 Christian Bruel <christian.bruel@st.com>
28492 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
28493 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
28495 2016-01-12 Jakub Jelinek <jakub@redhat.com>
28498 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
28499 aligned_mem is properly set for AVX512-VL floating point masked
28503 * ifcvt.c (cond_exec_process_if_block): When removing the last
28504 insn from then_bb, remove also any possible barriers that follow it.
28506 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
28510 * config/i386/iamcu.h (SIZE_TYPE): New macro.
28511 (PTRDIFF_TYPE): Likewise.
28512 (WCHAR_TYPE): Likewise.
28513 (WCHAR_TYPE_SIZE): Likewise.
28514 (STDINT_LONG32): Likewise.
28516 2016-01-12 Richard Biener <rguenther@suse.de>
28518 PR tree-optimization/69053
28519 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
28520 convert initial value for cond reductions.
28522 2016-01-12 Richard Biener <rguenther@suse.de>
28524 PR tree-optimization/69007
28525 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
28526 widen_sum after dot_prod and sad.
28528 2016-01-12 Richard Biener <rguenther@suse.de>
28530 PR tree-optimization/69168
28531 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
28532 pattern stmt SLP type.
28533 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
28534 end up unused so cope with that case.
28536 2016-01-12 Richard Biener <rguenther@suse.de>
28538 PR tree-optimization/69157
28539 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
28540 stmts def type only during analyze phase.
28541 (vectorizable_call): Likewise.
28542 (vectorizable_simd_clone_call): Likewise.
28543 (vectorizable_conversion): Likewise.
28544 (vectorizable_assignment): Likewise.
28545 (vectorizable_shift): Likewise.
28546 (vectorizable_operation): Likewise.
28547 (vectorizable_store): Likewise.
28548 (vectorizable_load): Likewise.
28550 2016-01-12 Richard Biener <rguenther@suse.de>
28552 PR tree-optimization/69174
28553 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
28555 (vectorizable_load): Properly compute the number of loads needed
28556 for permuted strided SLP loads and do not spuriously assign
28557 to SLP_TREE_VEC_STMTS.
28559 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
28561 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
28562 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
28563 (MD_EXEC_PREFIX): Remove.
28564 (MD_STARTFILE_PREFIX) Removee.
28565 (FILE_NAME_ABSOLUTE_P): Remove.
28566 (CPP_SPEC): Do not read macros from sys/version.h.
28567 (LINK_COMMAND_SPEC): Remove.
28568 (LOCAL_INCLUDE_DIR): Remove.
28569 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
28570 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
28571 (POST_LINK_SPEC): Define to invoke stubify after linker
28572 (LIBSTDCXX): Remove define
28573 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
28574 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
28575 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
28576 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
28577 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
28578 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
28579 (i386_djgpp_asm_named_section): Add propotype of new procedure
28581 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
28582 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
28583 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
28584 in config/i386/djgpp.h).
28585 (STANDARD_STARTFILE_PREFIX_2): Define identical to
28586 STANDARD_STARTFILE_PREFIX_1.
28587 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
28588 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
28589 installation errors.
28590 (MAX_OFILE_ALIGNMENT): Define to 128.
28591 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
28593 * config/i386/djgpp.c: New file. Add implementation of
28594 i386_djgpp_asm_named_section.
28596 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
28598 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
28599 Add rule for building djgpp.o.
28601 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28603 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
28604 (rtx_is_swappable_p): Reductions are swappable.
28605 (insn_is_swappable_p): V2DF reductions are swappable.
28607 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
28609 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
28610 reloads for other unsupported memory operands.
28612 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28613 Jim Wilson <jim.wilson@linaro.org>
28616 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
28617 copy_to_mode_reg instead of force_reg.
28619 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28622 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
28623 TARGET_80387 is true.
28625 2016-01-11 Jakub Jelinek <jakub@redhat.com>
28628 * lra-eliminations.c (move_plus_up): Only move plus up
28629 if subreg of the constant can be simplified into constant
28630 and use the simplified subreg of the constant instead of
28631 the original constant.
28633 * fold-const.c (fold_convertible_p): Don't return true
28634 for conversion of VECTOR_TYPE to same sized integral type.
28635 (fold_convert_loc): Fix up formatting. Fold conversion of
28636 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
28637 instead of NOP_EXPR.
28639 PR tree-optimization/69214
28640 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
28641 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28644 PR tree-optimization/69207
28645 * tree-vect-slp.c (vect_get_constant_vectors): For
28646 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
28647 fold_convertible_p to vector_type's element type, and always
28648 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
28650 2016-01-11 Richard Biener <rguenther@suse.de>
28652 PR tree-optimization/69173
28653 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
28654 fixup the cycle if all stmts are in a pattern.
28656 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
28658 PR middle-end/68999
28659 * alias.c (base_alias_check): Move check for addresses with
28660 alignment ANDs before the call for compare_base_decls.
28661 (memrefs_conflict_p): Return -1 for different decls
28662 that went through alignment adjustments.
28664 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28666 PR rtl-optimization/68796
28667 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
28668 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
28669 and QImode comparisons against zero with CC_NZmode.
28670 * config/aarch64/iterators.md (short_mask): New mode_attr.
28672 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28674 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
28675 (<avx512>_store<mode>_mask): Likewise.
28677 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
28678 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28680 PR rtl-optimization/68841
28681 * ifcvt.c (struct noce_if_info): Add orig_x field.
28682 (bbs_ok_for_cmove_arith): Add to_rename parameter.
28683 Don't record conflicts on to_rename if it's present.
28684 Allow memory destinations in sets.
28685 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
28686 blocks, passing orig_x to the checks.
28687 (noce_process_if_block): Set if_info->orig_x appropriately.
28689 2016-01-11 Tom de Vries <tom@codesourcery.com>
28691 PR tree-optimization/69069
28692 * tree-parloops.c (create_parallel_loop): Add missing phi args.
28694 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
28696 PR rtl-optimization/68920
28697 * config/i386/i386.c (ix86_option_override_internal): Restrict number
28698 of conditional moves for RTL if-conversion to 1 for
28699 TARGET_ONE_IF_CONV_INSN.
28700 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
28701 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
28702 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
28703 parameter to restirct number of conditional moves for
28705 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
28706 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
28709 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
28712 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
28713 onepart vars. Fix typo in comment. Fix reversed condition in
28715 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
28718 * var-tracking.c (dump_onepart_variable_differences): New.
28719 (dataflow_set_different): If a detailed dump is requested,
28720 delay early returns and dump differences between onepart
28721 variables present before and after, and added variables.
28723 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28726 * expr.c (expand_expr_real_1): For boolean vector constants
28727 with a scalar mode use const_scalar_mask_from_tree.
28728 (const_scalar_mask_from_tree): New.
28729 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
28730 assigned to a mask type to handle constants.
28732 2016-01-11 Martin Jambor <mjambor@suse.cz>
28735 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
28736 useless parameters if we cannot change function signature.
28738 2016-01-11 Martin Jambor <mjambor@suse.cz>
28741 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
28744 2016-01-11 Tom de Vries <tom@codesourcery.com>
28746 PR tree-optimization/69109
28747 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
28750 2016-01-11 Tom de Vries <tom@codesourcery.com>
28752 PR tree-optimization/69108
28753 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
28754 res is not used in a phi.
28756 2016-01-11 Yury Gribov <y.gribov@samsung.com>
28759 * common.opt (frandom-seed): Fix parameter name.
28760 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
28762 2016-01-11 Tom de Vries <tom@codesourcery.com>
28764 PR tree-optimization/69058
28765 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
28768 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
28770 * config/arc/arc.opt (mdiv-rem): Add period to the end.
28771 (mcode-density): Likewise.
28773 2016-01-10 Tom de Vries <tom@codesourcery.com>
28775 PR tree-optimization/69062
28776 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
28777 (parallelize_loops): Don't paralelize loop that has phi with address
28780 2016-01-10 Tom de Vries <tom@codesourcery.com>
28782 PR tree-optimization/69039
28783 * tree-parloops.c (try_create_reduction_list): Only allow single exit
28786 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
28788 PR middle-end/68743
28789 * match.pd: Require target has function_c99_misc before doing
28790 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
28792 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
28794 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
28796 * configure: Regenerate.
28798 2016-01-09 Jakub Jelinek <jakub@redhat.com>
28800 PR middle-end/50865
28801 PR tree-optimization/69097
28802 * fold-const.h (expr_not_equal_to): New prototype.
28803 * fold-const.c: Include stringpool.h and tree-ssanames.h.
28804 (expr_not_equal_to): New function.
28805 * match.pd (X % -Y is the same as X % Y): Don't optimize
28806 unless X is known not to be equal to minimum or Y is known
28807 not to be equal to -1.
28808 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
28809 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
28810 (simplify_stmt_using_ranges): Adjust caller.
28811 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
28812 substitute_and_fold.
28814 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
28816 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
28819 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28821 PR tree-optimization/69167
28822 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
28823 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
28825 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
28827 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28828 Richard Biener <rguenther@suse.de>
28830 PR tree-optimization/68707
28831 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
28832 instances that can be handled via vect_load_lanes.
28834 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
28836 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
28837 if we can't determine address equivalence.
28838 * alias.c (compare_base_decl): Update for changed return value of
28839 symtab_node::equal_address_to.
28841 2016-01-08 Jason Merrill <jason@redhat.com>
28845 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
28846 * expr.c (store_field): Not here.
28847 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
28848 call with TREE_ADDRESSABLE type.
28849 * tree-cfg.c (verify_gimple_call): Adjust.
28851 2016-01-08 Olivier Hainque <hainque@adacore.com>
28853 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
28856 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28858 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
28859 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
28860 (reduc_smin_v2sf): Rename to...
28861 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
28862 (reduc_splus_v2sf): Rename to...
28863 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
28865 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28867 PR tree-optimization/69162
28868 * gimplify.c (gimplify_va_arg_expr): Encode original type of
28869 valist argument in another argument.
28870 (gimplify_modify_expr): Adjust for the above change. Cleanup.
28871 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
28872 to determine the va_list type, build a MEM_REF instead of
28873 build_fold_indirect_ref.
28875 PR tree-optimization/69172
28876 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
28879 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
28881 PR tree-optimization/67781
28882 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
28883 and cmpnop in two steps: first the ones not accessed in original
28884 gimple expression in a endian independent way and then the ones not
28885 accessed in the final result in an endian-specific way.
28887 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28889 PR tree-optimization/69083
28890 * tree-vect-slp.c (vect_get_constant_vectors): For
28891 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
28892 element type. If op is fold_convertible_p to vector_type's element
28893 type, use NOP_EXPR instead of VCE.
28895 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
28897 PR rtl-optimization/67778
28898 PR rtl-optimization/68634
28899 PR rtl-optimization/68909
28900 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
28901 block from the stack until done with it. Remove a superfluous
28902 bitmap set. Remove a superfluous bitmap test.
28904 2016-01-07 Martin Sebor <msebor@redhat.com>
28907 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
28908 constraint on the type of arguments.
28910 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
28912 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
28913 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
28914 unaligned_access on the gcc_options set.
28915 * config/arm/arm.c (arm_option_override_internal): Use
28916 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
28918 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28921 * config/i386/i386.c (ix86_frame_pointer_required): Enable
28922 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
28924 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28927 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28930 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28931 depending on frame_pointer_needed before remaining integer and SSE
28932 registers are saved.
28934 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
28937 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
28939 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
28942 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
28943 Use the "xBm" constraint.
28944 (float<sseintvecmodelower><mode>2<mask_name><round_name):
28946 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
28947 (sse_cvtsi2ssq<round_name>): Likewise.
28948 (sse_cvtss2si<round_name>): Likewise.
28949 (sse_cvtss2siq<round_name>): Likewise.
28950 (sse2_cvtsi2sdq<round_name>): Likewise.
28951 (sse2_cvtsd2si<round_name>): Likewise.
28952 (sse2_cvtsd2siq<round_name>): Likewise.
28953 * config/i386/subst.md (round_nimm_scalar_predicate): New
28956 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
28958 PR middle-end/67639
28959 * varasm.c (make_decl_rtl): Mark invalid register vars as
28962 PR rtl-optimization/66206
28963 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
28964 All callers changed.
28966 2016-01-07 Jakub Jelinek <jakub@redhat.com>
28968 PR tree-optimization/69141
28969 * tree-ssa-pre.c: Include langhooks.h.
28970 (eliminate_dom_walker::before_dom_children): Use
28971 lang_hooks.decl_printable_name instead of
28972 cgraph_node::get ()->name ().
28974 PR middle-end/68960
28975 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
28976 it and DECL_ALIGN too.
28978 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
28980 * config/mips/mips-ftypes.def: Sort to lexicographical order.
28982 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28985 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28986 depending on frame_pointer_needed before remaining integer and SSE
28987 registers are saved.
28989 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28991 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
28992 mode iterator with VSX_M2.
28993 (*p9_vecstore_<mode>): Likewise.
28994 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
28995 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
28996 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
28997 (define_split for VSX_LE128 stores): Likewise.
28998 (define_peephole2 for TImode LE swaps): Likewise.
28999 (define_split for VSX_LE128 post-reload stores): Likewise.
29001 2016-01-06 Marek Polacek <polacek@redhat.com>
29004 * convert.c (convert_to_integer_1): Adjust call to
29005 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
29006 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
29007 EXPR instead of ARG.
29008 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
29010 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
29013 * doc/extend.texi (RL78 Variable Attributes): New section.
29015 2016-01-05 Marek Polacek <polacek@redhat.com>
29018 * builtins.c (get_memmodel): Use expansion point location rather than
29019 the input location. Call warning_at rather than warning.
29020 (expand_builtin_atomic_compare_exchange): Likewise.
29021 (expand_builtin_atomic_load): Likewise.
29022 (expand_builtin_atomic_store): Likewise.
29023 (expand_builtin_atomic_clear): Likewise.
29025 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
29028 * config/i386/i386.c (ix86_expand_vector_logical_operator):
29029 Replace nonimmediate_operand with vector_operand.
29030 * config/i386/predicates.md (vector_operand): New predicate.
29031 (general_vector_operand): Replace nonimmediate_operand with
29033 * config/i386/sse.md: Replace nonimmediate_operand with
29034 vector_operand and m constraint with Bm constraint on SSE
29035 patterns with 16-byte memory operand.
29036 * config/i386/subst.md (round_nimm_predicate): Replace
29037 nonimmediate_operand with vector_operand.
29038 (round_saeonly_nimm_predicate): Likewise.
29039 (round_saeonly_nimm_scalar_predicate): New.
29041 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
29044 * config/i386/constraints.md (Bm): New constraint.
29045 * config/i386/predicates.md (vector_memory_operand): New
29047 * config/i386/sse.md: Replace xm with xBm in plusminus and
29048 any_logic patterns.
29050 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
29053 * doc/extend.texi (V850 Function Attributes): New section.
29054 (V850 Variable Attributes): New section.
29056 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
29059 * doc/extend.texi (MicroBlaze Function Attributes): Document
29060 interrupt_handler and fast_interrupt attributes.
29062 2016-01-05 Sergei Trofimovich <siarheit@google.com>
29065 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
29066 for local symbolic operands.
29067 * config/ia64/predicates.md (local_symbolic_operand64): New
29070 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29072 PR rtl-optimization/68651
29073 * combine.c (combine_simplify_rtx): Canonicalize x + x into
29076 2016-01-05 Nathan Sidwell <nathan@acm.org>
29078 * alias.c (compare_base_decls): Use symtab_node::get.
29080 2016-01-05 Nick Clifton <nickc@redhat.com>
29083 * ira-costs.c (copy_cost): Initialise the t_icode field of the
29084 secondary_reload_info structure.
29087 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
29088 decls if weak support is available.
29090 2016-01-04 Martin Sebor <msebor@redhat.com>
29092 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
29094 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
29096 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
29097 OPTION_MASK_P9_DFORM.
29099 * config/rs6000/constraints.md (wo constraint): New constraint for
29102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
29104 (rs6000_init_hard_regno_mode_ok): Likewise.
29106 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
29109 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
29110 expanders not to have constraints. Add support for ISA 3.0 xxperm
29111 instruction. Add support for fusing xxlor with xxperm.
29112 (altivec_vperm_<mode>_internal): Likewise.
29113 (altivec_vperm_v8hiv16qi): Likewise.
29114 (altivec_vperm_<mode>v16q): Likewise.
29115 (altivec_vperm_<mode>_uns): Likewise.
29116 (vperm_v8hiv4si): Likewise.
29117 (vperm_v16qiv8hi): Likewise.
29119 * doc/md.texi (RS/6000 constraints): Document wo constraint.
29121 2016-01-04 Jakub Jelinek <jakub@redhat.com>
29123 Update copyright years.
29125 * gcc.c (process_command): Update copyright notice dates.
29126 * gcov-dump.c (print_version): Ditto.
29127 * gcov.c (print_version): Ditto.
29128 * gcov-tool.c (print_version): Ditto.
29129 * gengtype.c (create_file): Ditto.
29130 * doc/cpp.texi: Bump @copying's copyright year.
29131 * doc/cppinternals.texi: Ditto.
29132 * doc/gcc.texi: Ditto.
29133 * doc/gccint.texi: Ditto.
29134 * doc/gcov.texi: Ditto.
29135 * doc/install.texi: Ditto.
29136 * doc/invoke.texi: Ditto.
29138 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
29140 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
29141 modes larger than TImode as TImode if NEON is not enabled.
29143 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
29146 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
29147 mode for %f0-%f31 only if TARGET_FPU.
29149 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
29152 * config/sparc/sparc.c (scan_record_type): Take into account subfields
29153 to compute the PACKED_P predicate.
29154 (function_arg_record_value): Minor tweaks.
29156 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
29158 * doc/install.texi (--with-multilib-list): Describe the meaning of the
29159 option for arm*-*-* targets.
29161 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
29163 * doc/extend.texi (Common Function Attributes): Move docs for
29164 MSP430-specific attributes to....
29165 (MSP430 Function Attributes): ...here. Delete the redundant
29166 entries and copy-edit the remaining text.
29167 (MSP430 Variable Attributes): Use uniform format for index
29168 entries and add a cross-reference to the corresponding function
29171 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
29173 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
29175 (x86 Options): Likewise.
29177 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
29181 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
29182 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
29183 to corresponding attribute.
29185 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
29187 * doc/extend.texi (Common Function Attributes) <noplt>: Move
29188 to correct alphabetization of table. Copy-edit and correct
29190 <stack_protect>: Likewise.
29191 <target_clones>: Likewise.
29193 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
29194 Correct punctuation.
29195 (Code Gen Options) <-fno-plt>: Copy-edit.
29197 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29200 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
29201 SI values. Explicitly convert SI to DI and vice-versa.
29203 2016-01-01 Jakub Jelinek <jakub@redhat.com>
29205 PR tree-optimization/69070
29206 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
29207 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
29210 * ubsan.c (ubsan_instrument_float_cast): Call
29211 initialize_sanitizer_builtins.
29214 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
29216 Copyright (C) 2016 Free Software Foundation, Inc.
29218 Copying and distribution of this file, with or without modification,
29219 are permitted in any medium without royalty provided the copyright
29220 notice and this notice are preserved.