1 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
4 Move comments into more natural position.
6 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
8 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
9 (PTRDIFF_TYPE): Define as int.
11 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13 * ccmp.c (expand_ccmp_expr_1): Adjust.
14 (expand_ccmp_expr): Likewise.
15 (expand_ccmp_next): Likewise.
16 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
17 (aarch64_gen_ccmp_first): Likewise.
18 * doc/tm.texi: Regenerate.
19 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
20 (gen_ccmp_next): Likewise.
22 2016-11-03 Bin Cheng <bin.cheng@arm.com>
24 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
25 (vect_is_simple_reduction): Swap cond_reduction by inversion.
27 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
29 * config/i386/i386.c (ix86_init_libfuncs): New. Call
30 darwin_rename_builtins here.
31 (ix86_expand_divmod_libfunc): New.
32 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
33 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
35 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
36 Nathan Sidwell <nathan@acm.org>
38 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
40 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
42 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
44 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
45 to format MODE_INT and MODE_PARTIAL_INT literals.
47 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
50 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
51 NULL if TARGET_SPE_ABI.
53 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
56 clear padding bits even when they're less than a byte.
58 2016-11-02 Richard Biener <rguenther@suse.de>
60 * gimple-ssa-store-merging.c: Include gimplify-me.h.
61 (imm_store_chain_info::output_merged_stores): Force base_addr
62 to be proper GIMPLE for a MEM_REF address.
63 (pass_store_merging::execute): Restrict negative bitpos
64 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
65 check. Take into account non-NULL_TREE offset if the base
66 is already addressable.
68 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
70 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
72 (aarch64_be_crypto_sha1hv4si): New pattern.
74 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
76 * config/aarch64/aarch64.md (add<mode>3): Remove
77 redundant code. Don't split frame based additions.
79 2016-11-02 Richard Biener <rguenther@suse.de>
81 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
82 redundant val and dest members.
83 (store_immediate_info::store_immediate_info): Adjust.
84 (merged_store_group::merged_store_group): Adjust.
85 (merged_store_group::apply_stores): Likewise.
86 (struct imm_store_chain_info): Add base_addr field.
87 (imm_store_chain_info::imm_store_chain_info): New constructor.
88 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
89 (imm_store_chain_info::output_merged_store): Likewise. Use
90 addr_base which is already the address.
91 (imm_store_chain_info::output_merged_stores): Likewise.
92 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
93 imm_store_chain_info instead of base. Fix alias check.
94 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
95 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
96 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
97 use the address of the base and adjust for other changes.
99 2016-11-02 Martin Liska <mliska@suse.cz>
101 * fold-const-call.c (host_size_t_cst_p): Test whether
102 t is convertible to size_t.
104 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
106 PR tree-optimization/78170
107 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
108 introduced by native_encode_expr on little-endian as well.
110 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
112 PR tree-optimization/78162
113 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
116 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
118 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
120 (aarch64_next_callee_save): Likewise.
121 (aarch64_pushwb_single_reg): Likewise.
122 (aarch64_gen_storewb_pair): Likewise.
123 (aarch64_push_regs): Likewise.
124 (aarch64_gen_loadwb_pair): Likewise.
125 (aarch64_pop_regs): Likewise.
126 (aarch64_gen_store_pair): Likewise.
127 (aarch64_gen_load_pair): Likewise.
128 (aarch64_save_callee_saves): Likewise.
129 (aarch64_restore_callee_saves): Likewise.
131 2016-11-02 Richard Biener <rguenther@suse.de>
133 PR tree-optimization/78035
134 PR tree-optimization/77964
135 * gimple-pretty-print.c (pp_points_to_solution): Print
136 vars_contains_interposable.
137 * tree-ssa-alias.c: Include varasm.h.
138 (ptrs_compare_unequal): Check vars_contains_interposable and
139 decl_binds_to_current_def_p.
140 (dump_points_to_solution): Dump vars_contains_interposable.
141 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
143 * tree-ssa-structalias.c: Include varasm.h.
144 (set_uids_in_ptset): Record whether vars contains a
145 not decl_binds_to_current_def_p variable in vars_contains_interposable.
146 (ipa_escaped_pt): Update initializer.
148 2016-11-02 Richard Biener <rguenther@suse.de>
150 PR tree-optimization/78047
151 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
152 fake field at offset zero conservatively regarding to may_have_pointers.
154 2016-11-02 Richard Biener <rguenther@suse.de>
156 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
157 infer_value_range on stmt ops and update value-ranges.
158 Dump visited stmts and blocks.
159 (evrp_dom_walker::push_value_range): Dump changes.
160 (evrp_dom_walker::pop_value_range): Likewise.
161 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
163 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
165 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
167 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
169 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
171 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
173 * cfgrtl.h (delete_insn_chain): Adjust prototype.
175 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
177 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
179 (transcode_memory_rtx): Likewise.
180 (move_to_acc): Likewise.
181 (move_from_acc): Likewise.
182 (move_acc_to_reg): Likewise.
183 (move_to_x): Likewise.
184 (move_to_hl): Likewise.
185 (move_to_de): Likewise.
186 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
187 (rs6000_emit_savres_rtx): Likewise.
188 (rs6000_emit_prologue): Likewise.
189 * reorg.c (update_reg_unused_notes): Likewise.
190 * rtl.h (remove_note): Adjust prototype.
191 * rtlanal.c (remove_note): Make argument type rtx_insn *.
193 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
195 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
196 variables so some can be rtx_insn *.
197 (alpha_emit_xfloating_libcall): Likewise.
198 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
199 (mips_legitimize_tls_address): Likewise.
200 * optabs.c (expand_binop): Likewise.
201 * reload1.c (gen_reload): Likewise.
203 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
205 * reorg.c (relax_delay_slots): Split up the trial variable.
207 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
209 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
210 of variables rtx_insn *.
211 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
212 (legitimize_tls_address): Likewise.
213 * config/bfin/bfin.c (hwloop_optimize): Likewise.
214 (bfin_gen_bundles): Likewise.
215 * config/c6x/c6x.c (reorg_split_calls): Likewise.
216 (c6x_reorg): Likewise.
217 * config/frv/frv.c (frv_reorder_packet): Likewise.
218 * config/i386/i386.c (ix86_split_idivmod): Likewise.
219 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
220 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
221 * config/mn10300/mn10300.c: Likewise.
222 * config/rl78/rl78.c: Likewise.
223 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
224 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
225 (sh_expand_cmpnstr): Likewise.
226 (sh_expand_strlen): Likewise.
227 (sh_expand_setmem): Likewise.
228 * config/sh/sh.md: Likewise.
229 * emit-rtl.c (emit_pattern_before): Likewise.
230 * except.c: Likewise.
234 2016-11-01 Jason Merrill <jason@redhat.com>
236 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
237 a COND_EXPR with constant condition.
239 2016-11-01 Jakub Jelinek <jakub@redhat.com>
241 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
242 and its initialization.
244 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
246 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
249 2016-11-01 Jakub Jelinek <jakub@redhat.com>
251 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
252 argument, don't call add_linkage_name if it is true.
253 (gen_variable_die): For C++ inline static data members, consider the
254 initial call when old_die is NULL to be declaration and call
255 add_name_and_src_coords_attributes in that case with true as
256 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
257 (gen_member_die): For C++ inline static data members, emit a
258 definition DIE right away in DW_TAG_compile_unit context.
260 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
263 * config/pa/pa.md: Add new shift/add patterns to handle
264 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
266 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
268 * config/xtensa/xtensa-protos.h
269 (xtensa_use_return_instruction_p): New prototype.
270 * config/xtensa/xtensa.c (xtensa_current_frame_size,
271 xtensa_callee_save_size): Remove.
272 (struct machine_function): Add new fields: current_frame_size,
273 callee_save_size, frame_laid_out and epilogue_done.
274 (compute_frame_size, xtensa_expand_prologue,
275 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
276 cfun->machine->callee_save_size and xtensa_current_frame_size
277 with cfun->machine->current_frame_size.
278 (compute_frame_size): Update cfun->machine->frame_laid_out and
279 don't update frame layout after reload completion.
280 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
281 instead of zeroing xtensa_current_frame_size.
282 (xtensa_use_return_instruction_p): New function.
283 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
285 (INITIAL_ELIMINATION_OFFSET): Use return value of
286 compute_frame_size instead of xtensa_current_frame_size value.
287 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
288 function xtensa_use_return_instruction_p instead of inline code.
290 2016-11-01 Jakub Jelinek <jakub@redhat.com>
292 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
293 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
294 * dwarf2out.c (rnglist_idx): New variable.
295 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
296 (DEBUG_RNGLISTS_SECTION): Define.
297 (ranges_base_label): New variable.
298 (size_of_die) <case dw_val_class_range_list>: If using
299 DW_FORM_rnglistx, count size of uleb128 of range list index.
300 (value_format) <case dw_val_class_range_list>: For
301 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
302 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
303 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
304 (add_ranges_num): Remove useless prototype. Don't multiply
305 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
306 for new fields added to dw_ranges struct.
307 (add_ranges): Add maybe_new_sec argument and pass it
308 through to add_ranges_num.
309 (note_rnglist_head): New function.
310 (add_ranges_by_labels): Pass true as maybe_new_sec to
311 add_ranges_num, call note_rnglist_head on the head of the list.
312 (output_ranges): Add function comment. Switch to
313 .debug_ranges section here and emit .Ldebug_ranges0 label.
314 (index_rnglists, output_rnglists): New functions.
315 (gen_subprogram_die): Formatting fixes.
316 (add_high_low_attributes): Don't divide offsets
317 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
318 first list element or when pointing into the middle of
319 a list. Pass true as second argument to add_ranges on the
320 first block fragment after cold/hot section switch.
321 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
322 section instead of .debug_ranges. Initialize
323 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
324 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
325 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
326 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
327 Call output_rnglists for -gdwarf-5.
328 (dwarf2out_c_finalize): Clear rnglist_idx.
330 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
332 * combine.c (simplify_compare_const): Add gcc_fallthrough.
334 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
335 Tamar Christina <tamar.christina@arm.com>
337 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
338 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
339 (vmaxnmq_f32): Likewise.
340 (vminnm_f32): Likewise.
341 (vminnmq_f32): Likewise.
342 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
344 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
347 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
349 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
350 binary floating point types supported by the hardware except for
352 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
353 vector instruction for optimizing extracting a SImode from a
354 V4SImode vector and converting it to floating point.
355 (vsx_xvcvuxwdp_df): Likewise.
356 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
357 registers to be any VSX register. Move stores to the end of the
359 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
360 to optimize extracting a SImode from a V4SImode vector and
361 converting it to a binary floating point type supported by the
362 hardware. Use the vector converts instead of extracting the
363 element, sign extending it, and then converting it to double.
364 Other floating point types than double first convert to double,
365 then the double is converted to that type.
366 (vsx_extract_si_<uns>float_<mode>): Likewise.
368 2016-10-31 Andrew Pinski <apinski@cavium.com>
370 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
371 Rewrite handling of part num to handle the case where
372 multiple implementers share the same part num.
374 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
375 Jakub Jelinek <jakub@redhat.com>
377 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
378 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
380 2016-10-31 Jakub Jelinek <jakub@redhat.com>
382 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
383 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
384 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
385 (is_cu_die, is_unit_die): Likewise.
386 (should_move_die_to_comdat, break_out_comdat_types): Adjust
387 comments for DWARF5 DW_UT_type units.
388 (output_compilation_unit_header): Add UT argument, output
389 start of DWARF5 .debug_info section header.
390 (output_comp_unit): Add dwo_id argument. Adjust
391 output_compilation_unit_header caller, for DW_UT_split_compile
392 emit dwo_id field, otherwise padding1. Emit padding2 field.
393 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
394 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
395 (output_skeleton_debug_sections): Add dwo_id argument, for
396 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
397 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
398 DW_UT_type or DW_UT_split_type units rather than .debug_types.
399 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
400 DW_TAG_compile_unit for skeleton unit die. Don't add
401 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
402 address to output_comp_unit and output_skeleton_debug_sections.
404 * dwarf2out.c (debug_line_str_section): New variable.
405 (debug_line_str_hash): Likewise.
406 (DEBUG_LINE_STR_SECTION): Define.
407 (set_indirect_string): Handle DW_FORM_line_strp like
409 (find_string_form): Fix up formatting.
410 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
412 (output_die): Handle DW_FORM_line_strp.
413 (DWARF5_USE_DEBUG_LINE_STR): Define.
414 (output_line_string): New function.
415 (output_file_names): Add -gdwarf-5 support.
416 (output_line_info): Likewise.
417 (init_sections_and_labels): Initialize debug_line_str_section.
418 (output_indirect_string): Change 2nd argument from void *
419 to enum dwarf_form form, compare with form rather than
421 (output_indirect_strings): Pass DW_FORM_strp to
422 output_indirect_string traversion.
423 (dwarf2out_finish): Output .debug_line_str strings.
424 (dwarf2out_c_finalize): Clear debug_line_str_section and
427 2016-10-31 Tom Tromey <tom@tromey.com>
430 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
431 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
432 DW_OP_GNU_push_tls_address case.
433 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
435 2016-10-31 Jakub Jelinek <jakub@redhat.com>
437 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
438 for frame_offset_rel bit.
439 (struct array_descr_info): Add rank field.
440 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
441 and placeholder_seen fields.
442 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
443 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
444 DW_OP_pick 1 into DW_OP_over.
445 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
446 gen_variant_part): Clear placeholder_{arg,seen}.
447 (loc_list_from_tree_1): Drop const from context argument.
448 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
449 (loc_list_for_address_of_addr_expr_of_indirect_ref,
450 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
452 (add_scalar_info): Drop const from context argument. Handle
453 context->placeholder_arg.
454 (add_bound_info): Drop const from context argument.
455 (gen_descr_array_type_die): Drop const from ctx variable.
456 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
457 attribute and use a single DW_TAG_generic_subrange instead of
458 7 DW_TAG_subrange_type for assumed rank arrays.
460 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
461 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
462 from bool to 1-bit uchar bitfield. Add num_assigned and
463 offset_emitted bitfields.
464 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
465 for dw_val_class_lineptr and dw_val_class_macptr. Handle
466 dw_val_class_loclistsptr.
467 (new_addr_loc_descr): Fix up formatting.
468 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
469 (add_AT_low_high_pc): Fix up formatting.
470 (add_AT_loclistsptr): New function.
471 (AT_lbl): Allow dw_val_class_loclistsptr.
472 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
473 Handle dw_val_class_loclistsptr.
474 (loc_list_idx): New variable.
475 (output_loclists_offsets, assign_location_list_indexes): New
477 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
478 add size_of_uleb128 of the index. Drop never used
479 dwarf_split_debug_info AT_index handling. Handle
480 dw_val_class_loclistsptr.
481 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
482 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
483 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
484 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
485 DW_FORM_loclistx indexes.
486 (output_attr_index_or_value): Fix up formatting. Don't handle
487 dw_val_class_loc_list here.
488 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
489 For dw_val_class_loc_list call output_loc_list_offset rather than
490 output_attr_index_or_value.
491 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
492 or .debug_loclists.dwo section name for debug_loc_section.
493 (resolve_addr_in_expr): Formatting fix.
494 (index_location_lists): Likewise.
495 (dwarf2out_finish): If there are any location lists, for
496 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
497 index_location_lists only if have_location_lists. Call
498 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
499 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
500 -gsplit-dwarf also emit offset table.
502 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
503 (size_of_die, value_format, output_die): Use
504 DW_FORM_data16 for 128-bit dw_val_class_const_double or
505 dw_val_class_wide_int.
507 * dwarf2out.c (dwarf_op): Renamed to ...
508 (dwarf_OP): ... this.
509 (convert_descriptor_to_mode, scompare_loc_descriptor,
510 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
511 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
513 (dwarf_AT, dwarf_TAG): New functions.
514 (check_die): Disallow DW_AT_call_all_calls next to
515 DW_AT_GNU_all_call_sites.
516 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
517 and attributes instead of the corresponding GNU tag and attributes.
518 (gen_subprogram_die): Likewise. Emit call site information even
519 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
520 DW_AT_defaulted in comment.
521 (resolve_addr): Handle DW_AT_call_origin attribute on
522 DW_TAG_call_site DIE like DW_AT_abstract_origin on
523 DW_TAG_GNU_call_site DIE.
525 * dwarf2out.c (dwarf_op): New function.
526 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
527 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
528 (output_loc_operands, output_loc_operands_raw): Likewise.
529 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
530 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
531 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
532 if dwarf_version < 5.
533 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
535 (scompare_loc_descriptor, ucompare_loc_descriptor,
536 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
537 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
538 optimize_location_into_implicit_ptr): Likewise. Only punt for
539 !dwarf_strict if dwarf_version < 5.
540 (string_cst_pool_decl): Adjust comment.
541 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
543 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
544 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
545 (struct dw_val_node): Add val_file_implicit field.
546 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
547 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
548 output_die): Handle dw_val_class_const_implicit,
549 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
550 (abbrev_die_table): Change into va_gc vec.
551 (abbrev_die_table_allocated, abbrev_die_table_in_use,
552 ABBREV_DIE_TABLE_INCREMENT): Remove.
553 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
554 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
556 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
557 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
559 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
561 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
563 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
565 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
566 unit. Call optimize_abbrev_table.
567 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
568 abbrev_die_table being a va_gc vec.
570 PR tree-optimization/77860
571 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
572 also integral complex and vector constants.
574 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
575 optimize_macinfo_range, save_macinfo_strings): Replace
576 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
577 (output_macinfo): Likewise. Emit .debug_macro* rather than
578 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
579 (init_sections_and_labels): Use .debug_macro* labels rather than
580 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
581 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
582 or DW_AT_GNU_macros for -gdwarf-5.
584 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
586 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
588 2016-09-11 Le-Chun Wu <lcwu@google.com>
589 Mark Wielaard <mjw@redhat.com>
591 * common.opt (Wshadow=global): New option. Default for -Wshadow.
592 (Wshadow=local): New option.
593 (Wshadow-local): Hidden alias for -Wshadow=local.
594 (Wshadow=compatible-local): New option.
595 (Wshadow-compatible-local): Hidden alias for
596 -Wshadow=compatible-local.
597 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
598 Wshadow=compatible-local.
600 2016-10-31 Bin Cheng <bin.cheng@arm.com>
602 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
603 Check slp defs for COND_EXPR by swapping/inverting operands if the
604 new parameter SWAP indicates so.
605 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
606 is isomorphic to the first stmt via swapping/inverting. Store swap
607 information in the new parameter SWAP.
608 (vect_build_slp_tree): New local array SWAP and pass it to function
609 vect_build_slp_tree_1. Cleanup result handling code for function
610 call to vect_get_and_check_slp_defs. Skip operand swapping if the
611 order of operands has been fixed as indicated by SWAP[i].
613 2016-10-31 Bin Cheng <bin.cheng@arm.com>
615 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
616 unnecessary data dependence check after visited store stmt.
618 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
620 PR tree-optimization/71915
621 PR tree-optimization/71490
622 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
624 (find_basis_for_base_expr): Require stride types to match when
626 (alloc_cand_and_find_basis): Record the stride type.
627 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
628 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
629 the expressions having those types.
630 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
631 (create_mul_ssa_cand): Likewise.
632 (create_mul_imm_cand): Likewise.
633 (create_add_ssa_cand): Likewise.
634 (create_add_imm_cand): Likewise.
635 (legal_cast_p_1): Change interface to accept types rather than the
636 expressions having those types.
637 (legal_cast_p): Pass types to legal_cast_p_1.
638 (slsr_process_cast): Pass stride type to
639 alloc_cand_and_find_basis.
640 (slsr_process_copy): Likewise.
641 (dump_candidate): Display stride type when a cast exists.
642 (create_add_on_incoming_edge): Introduce a cast when necessary for
644 (analyze_increments): Change the code checking for invalid casts
645 to rely on the stride type, and update the documentation and
646 example. Change the code checking for pointer multiplies to rely
648 (insert_initializers): Introduce a cast when necessary for the
649 stride type. Use the stride type for the type of the initializer.
651 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
653 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
655 2016-10-29 Jakub Jelinek <jakub@redhat.com>
657 PR rtl-optimization/77919
658 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
659 into memory if both modes are complex and their inner modes have the
660 same precision. If the two modes are different complex modes, convert
661 each part separately and generate a new CONCAT.
663 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
665 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
667 2016-10-29 Jakub Jelinek <jakub@redhat.com>
670 * gimple-ssa-store-merging.c
671 (imm_store_chain_info::output_merged_store): Use build_aligned_type
672 instead of SET_TYPE_ALIGN on shared integral type.
674 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
676 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
677 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
680 2016-10-28 Jeff Law <law@redhat.com>
682 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
683 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
685 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
687 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
689 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
691 * target.def (min_arithmetic_precision): New hook.
692 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
693 * doc/tm.texi: Regenerate.
694 * internal-fn.c (expand_arith_overflow): Adjust handling of target
695 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
696 * targhooks.c (default_min_arithmetic_precision): New function.
697 * targhooks.h (default_min_arithmetic_precision): Declare.
698 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
699 (sparc_min_arithmetic_precision): New function.
701 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
704 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
705 Swap commutative operands in new RTL if needed. Handle zero_ext
707 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
710 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
711 Kugan Vivekanandarajah <kuganv@linaro.org>
712 Jim Wilson <jim.wilson@linaro.org>
714 PR tree-optimization/43721
715 * target.def: New hook expand_divmod_libfunc.
716 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
717 * doc/tm.texi: Regenerate.
718 * internal-fn.def: Add new entry for DIVMOD ifn.
719 * internal-fn.c (expand_DIVMOD): New.
720 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
722 (widen_mul_stats): Add new field divmod_calls_inserted.
723 (target_supports_divmod_p): New.
724 (divmod_candidate_p): Likewise.
725 (convert_to_divmod): Likewise.
726 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
727 renumber_gimple_stmt_uids at beginning of function. Call
728 convert_to_divmod and record stats for divmod.
729 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
730 TARGET_EXPAND_DIVMOD_LIBFUNC.
731 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
734 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
735 Segher Boessenkool <segher@kernel.crashing.org>
737 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
738 swapping the arms of the branch.
739 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
740 sequence for the generic signed-signed-signed case.
742 2016-10-28 Jeff Law <law@redhat.com>
744 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
746 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
748 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
750 PR rtl-optimization/78029
751 * function.c (prologue_contains, epilogue_contains): New functions.
752 (record_prologue_seq, record_epilogue_seq): New functions.
753 * function.h (prologue_contains, epilogue_contains,
754 record_prologue_seq, record_epilogue_seq): New declarations.
755 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
756 mixing prologue and epilogue insns.
757 (init_deps): Initialize the new fields in struct deps_desc.
758 * sched-int.h (struct deps_desc): New fields last_prologue,
759 last_epilogue, and last_logue_was_epilogue.
760 * shrink-wrap.c (emit_common_heads_for_components): Record all
761 emitted prologue and epilogue insns.
762 (emit_common_tails_for_components): Ditto.
763 (insert_prologue_epilogue_for_components): Ditto.
765 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
768 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
769 * common.opt (fstore-merging): New Optimization option.
770 * opts.c (default_options_table): Add entry for
771 OPT_ftree_store_merging.
772 * fold-const.h (can_native_encode_type_p): Declare prototype.
773 * fold-const.c (can_native_encode_type_p): Define.
774 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
775 (PARAM_MAX_STORES_TO_MERGE): Likewise.
776 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
777 * passes.def: Insert pass_tree_store_merging.
778 * tree-pass.h (make_pass_store_merging): Declare extern
780 * gimple-ssa-store-merging.c: New file.
781 * doc/invoke.texi (Optimization Options): Document
783 (--param documentation): Document store-merging-allow-unaligned
784 and max-stores-to-merge.
786 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
789 * gimplify.c (gimplify_init_constructor): Move emit of constructor
790 assignment to earlier in the if/else logic.
792 2016-10-28 Richard Biener <rguenther@suse.de>
796 * fold-const.c (make_bit_field_ref): Only adjust alias set
797 when the original alias set was zero.
799 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
801 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
802 (s390_adjust_loops): New function.
803 (s390_reorg): Invoke s390_adjust_loops.
804 * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
805 ("osc_break"): New insn definition.
807 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
809 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
810 * config.gcc: Support alternate archXX cpu levels with
811 --with-arch= and --with-tune=.
812 * config/s390/linux.h: Translate new archXX cpu levels to the
813 original names when calling GAS.
814 * config/s390/tpf.h: Likewise.
815 * doc/invoke.texi: Document the alternate cpu level names.
817 2016-10-28 Jakub Jelinek <jakub@redhat.com>
819 PR rtl-optimization/77919
820 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
821 MEM if mode1 is not a complex mode.
823 PR rtl-optimization/78132
824 * ree.c (combine_reaching_defs): Give up if copy_needed and
825 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
827 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
829 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
831 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
833 * config/rs6000/constraints.md (wH constraint): Add new
834 constraints for allowing 32-bit integers (and eventually 8/16-bit
835 integers) into the vector registers.
836 (wI constraint): Likewise.
837 (wJ constraint): Likewise.
838 (wK constraint): Likewise.
839 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
840 -mvsx-small-integer as a default option for ISA 2.07
842 (POWERPC_MASKS): Likewise.
843 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
844 switch to turn off small integer support in vector registers.
845 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
846 test for -mupper-regs-di, since it is already done with the
847 reg_add[mode].scalar_in_vsx_p. Add support for the switch
849 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
851 (rs6000_setup_reg_addr_masks): Likewise.
852 (rs6000_init_hard_regno_mode_ok): Likewise.
853 (rs6000_option_override_internal): Add consistency checks for
855 (rs6000_secondary_reload_simple_move): SImode is a simple move if
857 (rs6000_secondary_reload): Use std::swap.
858 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
859 VSX_REGS for small integers in vector registers, since there is no
860 D-FORM address mode for such types.
861 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
862 (rs6000_opt_masks): Add -mvsx-small-integer.
863 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
865 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
866 extracts can be done on ISA 2.07.
867 (vsx_extract_<mode>): Add support for small integers in vsx
869 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
870 longer support V4SImode in this pattern.
871 (vsx_extract_si): New insn to support extraction of SImode in ISA
872 2.07 using either xxextractuw or vspltw.
873 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
874 longer support V4SImode in this pattern.
875 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
876 wJ, and wK constraints.
877 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
878 storing SDmode with VSX instructions.
879 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
880 GPR load and before the FPR and VSX loads. Remove ??, ! from the
881 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
882 small integers in vector registers.
883 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
884 load and before the FPR and VSX loads. Remove ??, ! from the
885 constraints. Add VEXTSW2D support for small integers in vector
887 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
888 integers in vector registers.
889 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
890 move instead of using an UNSPEC.
891 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
892 integers in vector registers.
893 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
894 move instead of using an UNSPEC.
895 (movsi_internal1): Add support for -mvsx-small-integer. Align
896 columns so that it is more readable.
897 (SImode splitter for ISA 3.0 constants): Add splitter for
898 -128..127 constants that can easily be constructed on ISA 3.0.
899 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
902 2016-10-27 Jakub Jelinek <jakub@redhat.com>
905 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
908 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
910 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
911 PIC_OFFSET_TABLE_REGNUM twice.
913 2016-10-27 Bin Cheng <bin.cheng@arm.com>
915 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
916 support for constant operand for OP.
918 2016-10-27 Jakub Jelinek <jakub@redhat.com>
920 * dwarf2out.c (gen_member_die): Only reparent_child instead of
921 splice_child_die if child doesn't have DW_AT_specification attribute.
923 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
925 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
926 (TARGET_HAVE_LDREXBH): Likewise.
927 (TARGET_HAVE_LDACQ): Likewise.
929 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
931 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
932 logic to to decide whether to copy over old value to register for new
934 * config/arm/sync.md: Add comments explaning why mode and code
935 attribute are not defined in iterators.md
936 (thumb1_atomic_op_str): New code attribute.
937 (thumb1_atomic_newop_str): Likewise.
938 (thumb1_atomic_fetch_op_str): Likewise.
939 (thumb1_atomic_fetch_newop_str): Likewise.
940 (thumb1_atomic_fetch_oldop_str): Likewise.
941 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
942 mirror the more restrictive constraints of the Thumb-1 insns after
943 split compared to Thumb-2 counterpart insns.
944 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
945 in sync with non atomic version.
946 (atomic_nand<mode>): Likewise.
947 (atomic_fetch_<sync_optab><mode>): Likewise.
948 (atomic_fetch_nand<mode>): Likewise.
949 (atomic_<sync_optab>_fetch<mode>): Likewise.
950 (atomic_nand_fetch<mode>): Likewise.
951 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
952 in sync with atomic version.
953 (thumb1_subsi3_insn): Likewise.
954 (thumb1_andsi3_insn): Likewise.
955 (thumb1_iorsi3_insn): Likewise.
956 (thumb1_xorsi3_insn): Likewise.
958 2016-10-27 Nick Clifton <nickc@redhat.com>
960 * plugin.c (register_plugin_info): Produce an error message if the
961 plugin is not found in the hash table.
963 2016-10-27 Bin Cheng <bin.cheng@arm.com>
965 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
968 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
971 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
972 define builtin functions from the bdesc_spe_predicates or
973 bdesc_spe_evsel arrays if the builtin mask is not compatible with
974 the current compiler configuration.
975 (paired_init_builtins): Modify loop to not define define builtin
976 functions from the bdesc_paried_preds array if the builtin mask is
977 not compatible with the current compiler configuration.
978 (altivec_init_builtins): Modify loops to not define the
979 __builtin_altivec_stxvl function nor the builtin functions from
980 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
981 builtin mask is not compatible with the current compiler
984 2016-10-26 Jeff Law <law@redhat.com>
986 * config/sh/sh.c (output_branch): Add missing fallthru comments.
987 (gen_shl_and): Likewise.
988 * config/sh/sh.md (movsicc): Add missing fallthru comments.
990 * config/mips/mips.c (mips16_constant_cost): Add missing
992 (mips16_build_call_stub): Increase buffer size. Adjust
995 2016-10-26 David Malcolm <dmalcolm@redhat.com>
997 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
998 INSN_UIDs for all insns in compact mode.
999 (rtx_writer::print_rtx): Likewise.
1000 * print-rtl.h (rtx_writer::flag_compact): Update comment.
1001 * rtl-tests.c (selftest::test_dumping_insns): Update expected
1002 output to include INSN_UID.
1003 (selftest::test_uncond_jump): Likewise.
1005 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
1007 * haifa-sched.c (call_used_regs_num): Rename to...
1008 (call_saved_regs_num): ...this.
1009 (fixed_regs_num): New variable.
1010 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
1012 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
1014 2016-10-26 David Malcolm <dmalcolm@redhat.com>
1016 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
1018 * print-rtl.c (outfile): Delete global.
1019 (sawclose): Likewise.
1021 (in_call_function_usage): Likewise.
1022 (flag_compact): Likewise.
1023 (flag_simple): Likewise.
1024 (rtx_writer::rtx_writer): New ctor.
1025 (print_rtx_operand_code_0): Convert to...
1026 (rtx_writer::print_rtx_operand_code_0): ...this.
1027 (print_rtx_operand_code_e): Convert to...
1028 (rtx_writer::print_rtx_operand_code_e): ...this.
1029 (print_rtx_operand_codes_E_and_V): Convert to...
1030 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
1031 (print_rtx_operand_code_i): Convert to...
1032 (rtx_writer::print_rtx_operand_code_i): ...this.
1033 (print_rtx_operand_code_r): Convert to...
1034 (rtx_writer::print_rtx_operand_code_r): ...this.
1035 (print_rtx_operand_code_u): Convert to...
1036 (rtx_writer::print_rtx_operand_code_u): ...this.
1037 (print_rtx_operand): Convert to...
1038 (rtx_writer::print_rtx_operand): ...this.
1039 (print_rtx): Convert to...
1040 (rtx_writer::print_rtx): ...this.
1041 (print_inline_rtx): Rewrite in terms of class rtx_writer.
1042 (debug_rtx): Likewise.
1043 (print_rtl): Convert to...
1044 (rtx_writer::print_rtl): ...this.
1045 (print_rtl): Reimplement in terms of class rtx_writer.
1046 (print_rtl_single): Rewrite in terms of class rtx_writer.
1047 (print_rtl_single_with_indent): Convert to..
1048 (rtx_writer::print_rtl_single_with_indent): ...this.
1049 (print_simple_rtl): Rewrite in terms of class rtx_writer.
1050 * print-rtl.h (flag_compact): Delete decl.
1051 (class rtx_writer): New class.
1052 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
1055 2016-10-26 Jeff Law <law@redhat.com>
1057 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
1060 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
1061 (check_if_valid_sleep_operand): Add missing fallthru comment.
1062 (arc_register_move_cost): Increase buffer size.
1063 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
1065 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
1067 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
1068 comment. Add gcc_unreachable for path that should never happen.
1070 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
1073 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1074 Martin Liska <mliska@suse.cz>
1077 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1078 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1079 on outer context if any.
1081 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1083 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
1084 by increment rather than double it.
1085 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
1086 emit a space before args[4].
1087 (END): Don't emit a space before with_arg.
1089 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1091 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
1092 Baseline only alternatives to (i) hold store atomic success value in a
1093 return register rather than a scratch register, (ii) use a low register
1094 for it and to (iii) ensure the cbranchsi insn generated by the split
1095 respect the constraints of Thumb-1 cbranchsi4_insn and
1097 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
1098 constraints must match those in atomic_compare_and_swap.
1099 (cbranchsi4_scratch): Likewise.
1101 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1103 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
1104 variable. Add the new parameter to the insn generator. Set that
1105 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
1106 return value from the negation of that parameter for Thumb-1, keeping
1107 the logic unchanged otherwise except for using bdst as the destination
1108 register of the compare_and_swap insn.
1109 (arm_split_compare_and_swap): Add explanation about how is the value
1110 returned to the function comment. Rename scratch variable to
1111 neg_bval. Adapt initialization of variables holding operands to the
1112 new operand numbers. Use return register to hold result of store
1113 exclusive for Thumb-1, scratch register otherwise. Construct the
1114 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
1115 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
1116 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
1117 for strongly ordered compare_and_swap.
1118 * config/arm/predicates.md (cc_register_operand): New predicate.
1119 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
1120 match_operand with the new predicate to accept either the CC flag or a
1121 destination register for the boolean return value, restricting it to
1122 CC flag only via constraint. Adapt operand numbers accordingly.
1124 2016-10-26 Jeff Law <law@redhat.com>
1126 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
1128 * config/frv/frv.c (comparison_string): Do not fall through after
1131 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
1133 (expand_one_builtin): Add missing break.
1135 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
1136 (m32c_legitimate_address_p): Likewise.
1138 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
1140 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
1142 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
1145 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
1148 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
1150 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
1152 (rl78_asm_ctor_dtor): Increase buffer size.
1154 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
1156 (xstormy16_asm_output_constructor): Likewise.
1158 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
1161 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
1162 comment to silence warning.
1164 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
1165 (spu_legitimate_address_p): Fix logic error and add missing fallthru
1168 2016-10-26 Michael Matz <matz@suse.de>
1170 PR tree-optimization/78060
1171 PR tree-optimization/78061
1172 PR tree-optimization/78088
1173 * tree-ssa-loop-split.c (easy_exit_values): New function.
1174 (tree_ssa_split_loops): Use it.
1175 (compute_new_first_bound): Change order of operations,
1176 fix invalid use of types.
1178 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
1180 gen-pass-instances.awk is sensitive to the order in which
1181 passes are added; passes that appear later have to be added first.
1185 * config/avr/avr-passes.def: Swap order of directives for
1186 gen-pass-instances.awk.
1188 2016-10-25 Jeff Law <law@redhat.com>
1190 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
1191 (vax_notice_update_cc): Likewise.
1193 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1195 * config.gcc (sparc*-*-solaris2*): Adjust.
1196 (sparc64-*-linux*): Likewise.
1197 * config/sparc/default-64.h: Rename to...
1198 * config/sparc/default64.h: ...this.
1199 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
1201 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
1202 * config/sparc/sparc.h: Minor tweaks.
1203 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
1204 TARGET_ARCH32 throughout. Minor various tweaks throughout.
1206 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1208 * input.c (fcache::file_patch): Add comment about lifetime.
1209 (selftest::cpp_reader_ptr): New class.
1210 (selftest::lexer_test): Convert m_parser from cpp_reader *
1211 to a cpp_reader_ptr, and move m_tempfile to after it.
1212 (selftest::lexer_test::lexer_test): Update for above reordering.
1213 (lexer_test::~lexer_test): Move cleanup of m_parser to
1214 cpp_reader_ptr's dtor.
1216 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1218 * toplev.c (toplev::main): Remove call to
1219 location_adhoc_data_fini.
1221 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1223 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1224 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
1226 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1228 * ggc-tests.c (forcibly_ggc_collect): Rename to...
1229 (selftest::forcibly_ggc_collect): ...this, and remove "static".
1230 (test_basic_struct): Update for above renaming.
1231 (test_length): Likewise.
1232 (test_union): Likewise.
1233 (test_finalization): Likewise.
1234 (test_deletable_global): Likewise.
1235 (test_inheritance): Likewise.
1236 (test_chain_next): Likewise.
1237 (test_user_struct): Likewise.
1238 (test_tree_marking): Likewise.
1239 * selftest-run-tests.c (selftest::run_tests): Call
1240 selftest::forcibly_ggc_collect at the end of the selftests.
1241 * selftest.h (selftest::forcibly_ggc_collect): New decl.
1243 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1246 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
1247 * optabs.c (expand_vec_cond_expr): For comparison codes
1248 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
1249 (expand_vec_cmp_expr): For comparison codes
1250 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
1251 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
1252 Add enum tree_code argument.
1253 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
1255 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
1256 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
1258 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
1259 NE_EXPR, attempt to use vcondeq_optab as fallback.
1260 * tree-vect-generic.c (expand_vector_comparison,
1261 expand_vector_divmod, expand_vector_condition): Adjust
1262 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
1263 * tree-vect-stmts.c (vectorizable_condition,
1264 vectorizable_comparison): Likewise.
1265 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
1266 check_bool_pattern, search_type_for_mask_1): Likewise.
1267 * expr.c (do_store_flag): Likewise.
1268 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
1269 @code{vcondeq@var{m}@var{n}}): Document.
1270 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
1273 2016-10-25 Jeff Law <law@redhat.com>
1275 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
1277 (v850_output_aligned_bss): Add missing break.
1279 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
1281 2016-10-25 Martin Liska <mliska@suse.cz>
1284 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
1285 statements as they can also contain possibly a freeing call.
1287 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
1288 Martin Liska <mliska@suse.cz>
1291 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
1292 * ipa-icf.c (sem_function::get_hash): Add target optimization
1295 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
1298 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
1299 Remove partial overlap check for shift by 1.
1300 (ashldi3_neon): Likewise.
1302 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1304 * config/arm/constraints.md (Q constraint): Document its use for
1306 (Pf constraint): New constraint for relaxed, consume or relaxed memory
1308 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
1309 alternatives to allow any register when memory model matches Pf and
1310 thus lda is used, but only low registers otherwise. Use unpredicated
1311 output template for Thumb-1 targets.
1312 (atomic_store<mode>): Likewise for stl.
1313 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
1314 whose output template does not have predication.
1315 (arm_load_acquire_exclusive<mode>): Likewise.
1316 (arm_load_exclusivesi): Likewise.
1317 (arm_load_acquire_exclusivesi): Likewise.
1318 (arm_store_release_exclusive<mode>): Likewise.
1319 (arm_store_exclusive<mode>): Use unpredicated output template for
1322 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1324 * internal-fn.def (LAUNDER): New internal function.
1325 * internal-fn.c (expand_LAUNDER): New function.
1327 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1328 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1330 New avr target pass to work around performance loss by PR fix.
1334 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
1335 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
1336 * config/avr/predicates.md (extend_operator): New.
1337 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
1338 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
1339 (make_avr_pass_casesi): New prototypes.
1340 * config/avr/avr.c (print-rtl.h): Include it.
1341 (pass_data avr_pass_data_casesi): Data for new pass.
1342 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
1343 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
1344 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
1345 (avr_optimize_casesi): New functions.
1347 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1348 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1352 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
1354 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1356 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
1357 DW_AT_rvalue_reference attributes.
1359 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1361 * doc/invoke.text (Wint-in-bool-context): Update documentation.
1362 * value-prof.c (stringop_block_profile): Fix a warning.
1364 2016-10-24 Martin Sebor <msebor@redhat.com>
1367 * builtins.c (string_length): New function.
1368 (c_strlen): Use string_length. Correctly handle wide strings.
1369 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
1371 (target_int_max): Call target_max_value.
1372 (format_result::knownrange): New data member.
1373 (fmtresult::fmtresult): Define default constructor.
1374 (format_integer): Use it and set format_result::knownrange.
1375 Handle global constants.
1376 (format_floating_max): Add third argument.
1377 (format_floating): Recompute maximum value for %a for each argument.
1378 (get_string_length): Use fmtresult default ctor.
1379 (format_string): Set format_result::knownrange.
1380 (format_directive): Check format_result::knownrange.
1381 (add_bytes): Same. Correct caret placement in diagnostics.
1382 (pass_sprintf_length::compute_format_length): Set
1383 format_result::knownrange.
1384 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
1386 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1388 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
1389 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
1391 2016-10-24 Ximin Luo <infinity0@pwned.gg>
1394 * dwarf2out.c (file_table_relative_p): Remove.
1395 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
1396 also for absolute paths.
1397 * doc/tm.texi: Update.
1398 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
1399 * target.def (force_at_comp_dir): Remove hook.
1400 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
1402 2016-10-24 Richard Biener <rguenther@suse.de>
1404 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
1405 backedges when identifying the single predecessor to take
1406 conditional info from. Use SCEV to get at ranges for loop IVs.
1407 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
1408 avoid false warning.
1410 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
1413 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
1414 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
1415 (avr_address_tiny_absdata_p): New static function.
1416 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
1417 it to determine validity of constant addresses.
1418 (avr_attribute_table) [absdata]: New variable attribute...
1419 (avr_handle_absdata_attribute): ...and handler.
1420 (avr_decl_absdata_p): New static function.
1421 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
1422 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
1423 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
1425 2016-10-24 Richard Biener <rguenther@suse.de>
1427 PR tree-optimization/78076
1428 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
1429 also on the loop tree root.
1431 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1433 * config/i386/i386.c (ix86_fold_builtin): Handle
1434 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
1435 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1436 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
1437 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1439 2016-10-24 Martin Liska <mliska@suse.cz>
1442 * opts.c (finish_options): Skip conditionally.
1444 2016-10-23 Martin Sebor <msebor@redhat.com>
1447 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
1448 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
1450 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1452 * config/sparc/sparc.md (cpu_feature): Minor tweak.
1453 (enabled): Likewise.
1454 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1455 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1456 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1457 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1458 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1459 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1461 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1463 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1464 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
1466 2016-10-21 Andrew Pinski <apinski@cavium.com>
1468 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
1470 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
1471 implementer_id to unsigned char.
1472 Change part_no to unsigned int.
1473 (AARCH64_BIG_LITTLE): New define.
1474 (INVALID_IMP): New define.
1475 (INVALID_CORE): New define.
1476 (cpu_data): Change the last element's implementer_id and part_no to
1478 (valid_bL_string_p): Rewrite to ..
1479 (valid_bL_core_p): this for integers instead of strings.
1480 (parse_field): New function.
1481 (contains_string_p): Rewrite to ...
1482 (contains_core_p): this for integers and only for the part_no.
1483 (host_detect_local_cpu): Rewrite handling of implementation and
1484 par num to be integers; simplifying the code.
1486 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1488 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
1489 value range for pointers in more cases.
1491 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1493 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
1494 Add extra argument to allow emitting the move immediate.
1495 Use add/sub with positive immediate.
1496 (aarch64_add_constant): Add inline function.
1497 (aarch64_add_sp): Likewise.
1498 (aarch64_sub_sp): Likewise.
1499 (aarch64_expand_prologue): Call aarch64_sub_sp.
1500 (aarch64_expand_epilogue): Call aarch64_add_sp.
1501 Decide when to leave out move.
1502 (aarch64_output_mi_thunk): Call aarch64_add_constant.
1504 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1506 * config/aarch64/aarch64.c (aarch64_layout_frame):
1507 Align FP callee-saves.
1509 2016-10-21 Jakub Jelinek <jakub@redhat.com>
1511 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
1512 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
1514 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
1515 _rdseed64_step): Likewise.
1516 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
1519 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1520 and tree-ssanames.h.
1521 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1522 with INTEGER_CST argument.
1523 (ix86_gimple_fold_builtin): New function.
1524 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1526 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
1527 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
1528 (ranges_table_allocated, ranges_table_in_use,
1529 ranges_by_label_allocated, ranges_by_label_in_use,
1530 RANGES_TABLE_INCREMENT): Removed.
1531 (add_ranges_num): Use vec_safe_push into ranges_table.
1532 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
1533 (output_ranges): Adjust for ranges_table and ranges_by_label
1534 conversion from arrays to vec.
1535 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
1536 conversion from arrays to vec.
1537 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
1538 ranges_table_in_use, ranges_by_label_allocated and
1539 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
1541 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
1542 if needed. Re-add origin_die variable and its initialization.
1544 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
1545 even for -fstack-reuse=none, or for volatile vars etc.
1547 2016-10-21 David Malcolm <dmalcolm@redhat.com>
1549 * print-rtl-function.c (flag_compact): Move extern decl to...
1550 * print-rtl.h (flag_compact): ...here.
1551 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
1552 (ASSERT_RTL_DUMP_EQ): New macro.
1553 (selftest::test_dumping_regs): New function.
1554 (selftest::test_dumping_insns): New function.
1555 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
1557 (selftest::rtl_tests_c_tests): Call the new test functions.
1559 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1561 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1562 (outgoing_edges_match): Likewise.
1563 (try_crossjump_to_edge): Likewise.
1564 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1565 (rtl_tidy_fallthru_edge): Likewise.
1566 * rtl.h (tablejump_p): Adjust prototype.
1567 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
1569 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1571 * rtl.h (label_ref_label): New function.
1572 (set_label_ref_label): New function.
1573 (LABEL_REF_LABEL): Delete.
1574 * alias.c (rtx_equal_for_memref_p): Adjust.
1575 * cfgbuild.c (make_edges): Likewise.
1576 (purge_dead_tablejump_edges): Likewise.
1577 * cfgexpand.c (convert_debug_memory_address): Likewise.
1578 * cfgrtl.c (patch_jump_insn): Likewise.
1579 * combine.c (distribute_notes): Likewise.
1580 * cse.c (hash_rtx_cb): Likewise.
1581 (exp_equiv_p): Likewise.
1582 (fold_rtx): Likewise.
1583 (check_for_label_ref): Likewise.
1584 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1585 (cselib_hash_rtx): Likewise.
1586 * emit-rtl.c (mark_label_nuses): Likewise.
1587 * explow.c (convert_memory_address_addr_space_1): Likewise.
1588 * final.c (output_asm_label): Likewise.
1589 (output_addr_const): Likewise.
1590 * gcse.c (add_label_notes): Likewise.
1591 * genconfig.c (walk_insn_part): Likewise.
1592 * genrecog.c (validate_pattern): Likewise.
1593 * ifcvt.c (cond_exec_get_condition): Likewise.
1594 (noce_emit_store_flag): Likewise.
1595 (noce_get_alt_condition): Likewise.
1596 (noce_get_condition): Likewise.
1597 * jump.c (maybe_propagate_label_ref): Likewise.
1598 (mark_jump_label_1): Likewise.
1599 (redirect_exp_1): Likewise.
1600 (rtx_renumbered_equal_p): Likewise.
1601 * lra-constraints.c (operands_match_p): Likewise.
1602 * print-rtl.c (print_value): Likewise.
1603 * reload.c (find_reloads): Likewise.
1604 * reload1.c (set_label_offsets): Likewise.
1605 * reorg.c (get_branch_condition): Likewise.
1606 * rtl-tests.c (test_uncond_jump): Likewise.
1607 * rtl.c (rtx_equal_p_cb): Likewise.
1608 (rtx_equal_p): Likewise.
1609 * rtlanal.c (reg_mentioned_p): Likewise.
1610 (rtx_referenced_p): Likewise.
1611 (get_condition): Likewise.
1612 * varasm.c (const_hash_1): Likewise.
1613 (compare_constant): Likewise.
1614 (const_rtx_hash_1): Likewise.
1615 (output_constant_pool_1): Likewise.
1617 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1620 * reload.c (find_valid_class_1): Allow regclass if atleast one
1621 regno in regclass is ok. Compute and use rclass size based on
1622 actually available regnos for mode in rclass.
1624 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
1626 * config/sparc/sparc-modes.def (CCV): New.
1628 * config/sparc/predicates.md (v_comparison_operator): New.
1629 (icc_comparison_operator): Add support for CCV/CCXV.
1630 (xcc_comparison_operator): Likewise.
1631 * config/sparc/sparc.c (output_cbranch): Likewise.
1632 (sparc_print_operand): Likewise.
1633 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1634 (uaddvdi4): New expander.
1635 (addvdi4): Likewise.
1636 (uaddvdi4_sp32): New instruction.
1637 (addvdi4_sp32): Likewise.
1638 (uaddvsi4): New expander.
1639 (addvsi4): Likewise.
1640 (cmp_ccc_plus_sltu_set): New instruction.
1641 (cmp_ccv_plus): Likewise.
1642 (cmp_ccxv_plus): Likewise.
1643 (cmp_ccv_plus_set): Likewise.
1644 (cmp_ccxv_plus_set): Likewise.
1645 (cmp_ccv_plus_sltu_set): Likewise.
1646 (uaddvdi4): New expander.
1647 (subvdi4): Likewise.
1648 (usubdi4_sp32): New instruction.
1649 (subvdi4_sp32): Likewise.
1650 (usubvsi4): New expander.
1651 (subvsi4): Likewise.
1652 (cmpsi_minus_sltu_set): New instruction.
1653 (cmp_ccv_minus): Likewise.
1654 (cmp_ccxv_minus): Likewise.
1655 (cmp_ccv_minus_set): Likewise.
1656 (cmp_ccxv_minus_set): Likewise.
1657 (cmp_ccv_minus_sltu_set): Likewise.
1658 (unegvdi3): New expander.
1659 (negvdi3): Likewise.
1660 (unegdi3_sp32): New instruction.
1661 (negvdi3_sp32): Likewise.
1662 (unegvsi3): New expander.
1663 (negvsi3): Likewise.
1664 (cmp_ccc_neg_sltu_set): New instruction.
1665 (cmp_ccv_neg): Likewise.
1666 (cmp_ccxv_neg): Likewise.
1667 (cmp_ccv_neg_set): Likewise.
1668 (cmp_ccxv_neg_set): Likewise.
1669 (cmp_ccv_neg_sltu_set): Likewise.
1671 * tree-ssa-loop-split.c: Remove trailing spaces.
1672 * match.pd: Likewise.
1674 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1676 PR rtl-optimization/78038
1677 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1678 be deduced to set REG through the RTL structure.
1679 (make_defs_and_copies_lists): Return false on a failing get_defs call.
1681 2016-10-21 Richard Biener <rguenther@suse.de>
1683 PR tree-optimization/78051
1684 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
1685 and mark replaced if folding did something.
1687 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
1689 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
1690 and "protected" in visibility types.
1691 (rs6000_xcoff_declare_function_name): Fix formatting.
1692 (rs6000_xcoff_declare_object_name): Fix formatting.
1694 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
1696 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
1697 and IX86_BUILTIN_HUGE_VALQ here ...
1698 (ix86_expand_builtin): ... not here.
1700 2016-10-20 Jakub Jelinek <jakub@redhat.com>
1702 * doc/gty.texi (for_user): Use @item next to @findex.
1704 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
1707 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1708 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1709 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1710 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1711 __builtin_ia32_lzcnt_u16.
1712 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1713 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1714 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1715 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1716 (bmi_tzcnt_<mode>): New expander.
1717 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1718 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1719 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1720 (lzcnt_<mode>): New expander.
1721 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1722 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1723 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1724 (UINT64_FTYPE_UINT64): New.
1725 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1726 (__builtin_ia32_lzcnt_u16): New description.
1727 (__builtin_ia32_lzcnt_u32): Ditto.
1728 (__builtin_ia32_lzcnt_u64): Ditto.
1729 (__builtin_ctzs): Remove description.
1730 (__builtin_ia32_tzcnt_u16): New description.
1731 (__builtin_ia32_tzcnt_u32): Ditto.
1732 (__builtin_ia32_tzcnt_u64): Ditto.
1733 * config/i386/i386.c (ix86_expand_args_builtin): Handle
1734 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1736 2016-10-20 Martin Liska <mliska@suse.cz>
1739 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
1740 comparison with STMT_UID_NOT_IN_RANGE.
1741 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
1744 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
1746 * compare-elim.c (conforming_compare): Accept UNSPECs.
1747 (find_comparison_dom_walker::before_dom_children): Deal with
1748 instructions both using and killing the flags register.
1749 (equivalent_reg_at_start): New function extracted from...
1750 (try_eliminate_compare): ...here. Use it and add support for
1751 registers and UNSPECs as second operand of the compare.
1752 * config/visium/visium-modes.def (CCV): New.
1753 * config/visium/predicates.md (visium_v_comparison_operator): New.
1754 (visium_branch_operator): Deal with CCV mode.
1755 * config/visium/visium.c (visium_select_cc_mode): Likewise.
1756 (output_cbranch): Likewise.
1757 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1758 (uaddv<mode>4): New expander.
1759 (addv<mode>4): Likewise.
1760 (add<mode>3_insn_set_carry): New instruction.
1761 (add<mode>3_insn_set_overflow): Likewise.
1762 (addsi3_insn_set_overflow): Likewise.
1763 (usubv<mode>4): New expander.
1764 (subv<mode>4): Likewise.
1765 (sub<mode>3_insn_set_carry): New instruction.
1766 (sub<mode>3_insn_set_overflow): Likewise.
1767 (subsi3_insn_set_overflow): Likewise.
1768 (unegv<mode>3): New expander.
1769 (negv<mode>3): Likewise.
1770 (neg<mode>2_insn_set_overflow): New instruction.
1771 (addv_tst<mode>): Likewise.
1772 (subv_tst<mode>): Likewise.
1773 (negv_tst<mode>): Likewise.
1774 (cbranch<mode>4_addv_insn): New splitter and instruction.
1775 (cbranch<mode>4_subv_insn): Likewise.
1776 (cbranch<mode>4_negv_insn): Likewise.
1778 2016-10-20 Richard Biener <rguenther@suse.de>
1780 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
1781 Handle decls possibly not bound.
1782 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
1783 nothing_id for decls that might not be bound if we are interested
1785 (get_constraint_for_component_ref): Deal with that.
1787 2016-10-20 Michael Matz <matz@suse.de>
1790 * common.opt (-fsplit-loops): New flag.
1791 * passes.def (pass_loop_split): Add.
1792 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
1793 (enable_fdo_optimizations): Add loop splitting.
1794 * timevar.def (TV_LOOP_SPLIT): Add.
1795 * tree-pass.h (make_pass_loop_split): Declare.
1796 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
1797 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
1798 * tree-ssa-loop-split.c: New file.
1799 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
1800 * doc/invoke.texi (fsplit-loops): Document.
1801 * doc/passes.texi (Loop optimization): Add paragraph about loop
1804 2016-10-20 Richard Biener <rguenther@suse.de>
1806 * cgraphunit.c (analyze_functions): Set node->definition to
1807 false to signal symbol removal to debug_hooks->late_global_decl.
1808 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
1809 WPA signal symbol removal to the debuginfo machinery.
1810 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
1811 using early_finised to guard the we're called for symbol
1812 removal case look at the symtabs definition flag.
1813 (gen_variable_die): Remove redundant check.
1815 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1817 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
1819 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1821 PR tree-optimization/53979
1822 * match.pd ((a ^ b) | a -> a | b): New pattern.
1824 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
1826 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
1827 config/pa/pa64-hpux-lib.h.
1828 (PA_CRTBEGIN_HACK): Likewise.
1829 (DTOR_LIST_BEGIN): Likewise.
1831 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1833 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1834 register only if "in" and "out" are different registers.
1836 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
1838 * omp-low.c (pass_oacc_device_lower::gate): New method.
1839 (execute): Always call execute_oacc_device_lower.
1841 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1843 PR tree-optimization/77916
1844 PR tree-optimization/77937
1845 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
1847 (insert_initializers): Requirement of initializer for -1 should be
1848 based on pointer-typedness of the candidate basis.
1850 2016-10-19 Bin Cheng <bin.cheng@arm.com>
1852 PR tree-optimization/78005
1853 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
1854 upper (included) bound for niters of prolog loop.
1855 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
1856 Compute niters of scalar loop above which vectorized loop is
1857 preferred, as well as the upper (included) bound for the niters.
1858 (vect_do_peeling): Record niter bound for loops accordingly.
1860 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
1863 * tree-core.h (enum tree_index): Put the complex types after their
1865 * tree-streamer.c (verify_common_node_recorded): New function.
1866 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
1868 2016-10-19 Martin Liska <mliska@suse.cz>
1870 * cgraph.h (cgraph_edge::binds_to_current_def_p):
1871 Replace NULL with false as a return value.
1873 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
1875 PR tree-optimization/78024
1876 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
1877 don't clear BB_VISITED after processing.
1879 2016-10-19 Richard Biener <rguenther@suse.de>
1881 * domwalk.c (dom_walker::walk): Use RPO order.
1883 2016-10-19 Richard Biener <rguenther@suse.de>
1885 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
1887 (evrp_dom_walker::~evrp_dom_walker): Free it.
1888 (evrp_dom_walker::stmts_to_remove): Add.
1889 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
1890 whose output we fully propagate for removal. Propagate
1891 into BB destination PHI arguments.
1892 (execute_early_vrp): Remove queued stmts. Dump value ranges
1893 before stmt removal.
1895 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1897 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
1898 * passes.def: Add two instances of pass_walloca.
1899 * tree-pass.h (make_pass_walloca): New.
1900 * gimple-ssa-warn-alloca.c: New file.
1901 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
1902 -Wvla-larger-than= options.
1904 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
1906 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
1907 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
1909 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
1911 * config/rs6000/altivec.h (vec_xl_len): New macro.
1912 (vec_xst_len): New macro.
1913 (vec_cmpnez): New macro.
1914 (vec_cntlz_lsbb): New macro.
1915 (vec_cnttz_lsbb): New macro.
1916 (vec_xlx): New macro.
1917 (vec_xrx): New macro.
1918 (vec_all_nez): New C++ predicate template.
1919 (vec_any_eqz): New C++ predicate template.
1920 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
1921 conditional compilation.
1922 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
1923 conditional compilation.
1924 (vec_all_nez): New macro.
1925 (vec_any_eqz): New macro.
1926 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
1928 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
1930 * config/rs6000/vector.md (VI): Moved this mode iterator
1931 definition from altivec.md to vector.md.
1932 (UNSPEC_NEZ_P): New value.
1933 (vector_ne_<mode>_p): New expansion for implementation of
1934 vec_all_ne and vec_any_eq built-in functions.
1935 (vector_nez_<mode>_p): New expansion for implementation of
1936 vec_all_nez and vec_any_eqz built-in functions.
1937 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
1938 and vec_any_eq built-in function.
1939 (cr6_test_for_zero): New commentary to explain this expansion.
1940 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
1941 (cr6_test_for_lt): New commentary to explain this expansion.
1942 (cr6_test_for_lt_reverse): New commentary to explain this
1944 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1945 overloaded function prototypes for vec_all_ne, vec_all_nez,
1946 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
1947 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
1949 (altivec_resolve_overloaded_builtin): Modify the handling of
1950 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
1951 the compiler is configured to support TARGET_P9_VECTOR.
1952 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
1953 to explain the special processing that is given to predicate
1954 built-ins introduced using this macro.
1955 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
1956 the special processing given to predicate built-ins introduced
1958 (BU_VSX_P): Likewise.
1959 (BU_P8V_AV_P): Likewise.
1960 (BU_P9V_AV_P): Likewise.
1961 (BU_P9V_AV_X): New macro.
1962 (BU_P9V_64BIT_AV_X): New macro.
1963 (BU_P9V_VSX_3): New macro.
1964 (BU_P9V_OVERLOAD_P): New macro.
1965 (LXVL): New BU_P9V_64BIT_VSX_2.
1966 (VEXTUBLX): New BU_P9V_AV_2.
1967 (VEXTUBRX): Likewise.
1968 (VEXTUHLX): Likewise.
1969 (VEXTUHRX): Likewise.
1970 (VEXTUWLX): Likewise.
1971 (VEXTUWRX): Likewise.
1972 (STXVL): New BU_P9V_64BIT_AV_X.
1973 (VCLZLSBB): New BU_P9V_AV_1.
1974 (VCTZLSBB): Likewise.
1975 (CMPNEB): New BU_P9V_AV_2.
1980 (VCMPNEB_P): New BU_P9V_AV_P.
1981 (VCMPNEH_P): Likewise.
1982 (VCMPNEW_P): Likewise.
1983 (VCMPNED_P): Likewise.
1984 (VCMPNEFP_P): Likewise.
1985 (VCMPNEDP_P): Likewise.
1986 (CMPNEZB): New BU_P9V_AV_2.
1987 (CMPNEZH): Likewise.
1988 (CMPNEZW): Likewise.
1989 (VCMPNEZB_P): New BU_P9V_AV_P.
1990 (VCMPNEZH_P): Likewise.
1991 (VCMPNEZW_P): Likewise.
1992 (LXVL): New BU_P9V_OVERLOAD_2.
1993 (STXVL): New BU_P9V_OVERLOAD_3.
1994 (VEXTULX): New BU_P9V_OVERLOAD_2.
1995 (VEXTURX): Likewise.
1997 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
1998 (VCMPNE_P): Likewise.
1999 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
2000 (VCTZLSBB): Likewise.
2001 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
2002 comment to explain mode used for scratch register.
2003 (altivec_expand_stxvl_builtin): New function.
2004 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
2005 (altivec_init_builtins): Add initialized variable
2006 void_ftype_v16qi_pvoid_long and use this type to define the
2007 built-in function __builtin_altivec_stxvl.
2008 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
2009 (UNSPEC_STXVL): New value.
2010 (UNSPEC_VCLZLSBB): New value.
2011 (UNSPEC_VCTZLSBB): New value.
2012 (UNSPEC_VEXTUBLX): New value.
2013 (UNSPEC_VEXTUHLX): New value.
2014 (UNSPEC_VEXTUWLX): New value.
2015 (UNSPEC_VEXTUBRX): New value.
2016 (UNSPEC_VEXTUHRX): New value.
2017 (UNSPEC_VEXTUWRX): New value.
2018 (UNSPEC_VCMPNEB): New value.
2019 (UNSPEC_VCMPNEZB): New value.
2020 (UNSPEC_VCMPNEH): New value.
2021 (UNSPEC_VCMPNEZH): New value.
2022 (UNSPEC_VCMPNEW): New value.
2023 (UNSPEC_VCMPNEZW): New value.
2024 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2025 vector of integer modes.
2026 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2027 vector of float or double modes.
2028 (*vector_nez_<mode>_p): New insn for vector test all not equal or
2030 (lxvl): New expand for load VSX vector with length.
2031 (*lxvl): New insn for load VSX vector with length.
2032 (stxvl): New expand for store VSX vector with length.
2033 (*stxvl): New insn for store VSX vector with length.
2034 (vcmpneb): New insn for vector of byte compare not equal.
2035 (vcmpnezb): New insn for vector of byte compare not equal or zero.
2036 (vcmpneh): New insn for vector of half word compare not equal.
2037 (vcmpnezh): New insn for vector of half word compare not equal or
2039 (vcmpnew): New insn for vector of word compare not equal.
2040 (vcmpne<VSs>): New insn for vector of float or double compare not
2042 (vcmpnezw): New insn for vector of word compare not equal or zero.
2043 (vclzlsbb): New insn for vector count leading zero
2044 least-significant bits byte.
2045 (vctzlsbb): New insn for vector count trailing zero least
2046 signficant bits byte.
2047 (vextublx): New insn for vector extract unsigned byte left
2049 (vextubrx): New insn for vector extract unsigned byte right
2051 (vextuhlx): New insn for vector extract unsigned half word left
2053 (vextuhrx): New insn for vector extract unsigned half word right
2055 (vextuwlx): New insn for vector extract unsigned word left
2057 (vextuwrx): New insn for vector extract unsigned word right
2059 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
2060 clarify intent of this constant.
2061 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
2062 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
2063 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
2064 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
2065 and vec_xrx functions.
2067 2016-10-18 Andrew Pinski <apinski@cavium.com>
2070 * predict.c (is_exit_with_zero_arg): New function.
2071 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
2074 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
2077 * config/i386/i386.c (legitimize_tls_address)
2078 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
2079 convert dest to Pmode if different than Pmode.
2081 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2083 PR tree-optimization/77916
2084 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
2085 stopgap fix, as pointers with -1 increment are still broken.
2087 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
2089 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
2090 mapping class decoration from here...
2091 (rs6000_xcoff_encode_section): ...to here.
2093 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
2094 if shrink-wrapping and optimizing for speed.
2096 2016-10-18 Richard Biener <rguenther@suse.de>
2098 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2099 not visited but non-executable predecessors. Return taken edge.
2100 Simplify conditions and refactor propagation vs. folding step.
2102 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
2104 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
2105 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
2106 (rs6000_get_separate_components): Assert we do not have those
2107 strategies selected.
2109 2016-10-18 Richard Biener <rguenther@suse.de>
2111 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
2112 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
2114 (substitute_and_fold_dom_walker): Adjust constructor.
2115 (substitute_and_fold_dom_walker::before_dom_children): Remove
2116 do_dce flag and handling (always true).
2117 (substitute_and_fold): Likewise.
2118 * tree-vrp.c (vrp_finalize): Adjust.
2119 (execute_early_vrp): Remove final BB_VISITED clearing.
2120 * tree-ssa-ccp.c (ccp_finalize): Adjust.
2121 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2122 * ira.c (ira): Call clear_bb_flags.
2124 2016-10-18 Richard Biener <rguenther@suse.de>
2126 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
2127 get at the operand to look at with TREE_OPERAND for generic
2130 2016-10-18 David Malcolm <dmalcolm@redhat.com>
2132 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
2134 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
2135 (write_test_expr): Use rtx_reader_ptr for calls to
2137 (write_attr_value): Likewise.
2138 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
2139 call to print_md_ptr_loc.
2140 (write_one_condition): Likewise for calls to print_c_condition.
2141 * genconstants.c: Include "statistics.h" and "vec.h".
2142 (main): Update for conversion to member functions.
2143 * genemit.c (emit_c_code): Use rtx_reader_ptr for
2144 call to print_md_ptr_loc.
2145 * genenums.c: Include "statistics.h" and "vec.h".
2146 (main): Update for conversion of traverse_enum_types to a method.
2147 * genmddeps.c: Include "statistics.h" and "vec.h".
2148 * genoutput.c (process_template): Use rtx_reader_ptr for call to
2150 * genpreds.c (write_predicate_subfunction): Likewise.
2151 (write_predicate_expr): Likewise for calls to print_c_condition.
2152 * genrecog.c (print_test): Likewise.
2153 * gensupport.c (process_rtx): Likewise for calls to
2154 copy_md_ptr_loc and join_c_conditions.
2155 (alter_test_for_insn): Likewise for call to join_c_conditions.
2156 (process_substs_on_one_elem): Likewise.
2157 (gen_mnemonic_setattr): Update for move of string_obstack to a
2158 field of rtx_reader.
2159 (mnemonic_htab_callback): Likewise. Fix formatting.
2160 (gen_mnemonic_attr): Likewise.
2161 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
2162 to print_c_condition.
2163 * read-md.c: Include "statistics.h" and "vec.h".
2164 (string_obstack): Convert this global to field "m_string_obstack"
2165 of class rtx_reader.
2166 (ptr_locs): Likewise, as "m_ptr_locs".
2167 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
2168 (joined_conditions): Likewise, as "m_joined_conditions".
2169 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
2170 (md_constants): Likewise, as "m_md_constants".
2171 (enum_types): Likewise, as "m_enum_types".
2172 (set_md_ptr_loc): Convert to...
2173 (rtx_reader::set_md_ptr_loc): ...member function.
2174 (get_md_ptr_loc): Convert to...
2175 (rtx_reader::get_md_ptr_loc): ...member function.
2176 (copy_md_ptr_loc): Convert to...
2177 (rtx_reader::copy_md_ptr_loc): ...member function.
2178 (fprint_md_ptr_loc): Convert to...
2179 (rtx_reader::fprint_md_ptr_loc): ...member function.
2180 (print_md_ptr_loc): Convert to...
2181 (rtx_reader::print_md_ptr_loc): ...member function.
2182 (join_c_conditions): Convert to...
2183 (rtx_reader::join_c_conditions): ...member function.
2184 (fprint_c_condition): Convert to...
2185 (rtx_reader::fprint_c_condition): ...member function.
2186 (print_c_condition): Convert to...
2187 (rtx_reader::print_c_condition): ...member function.
2188 (read_name): Convert to...
2189 (rtx_reader::read_name): ...member function.
2190 (read_escape): Convert to...
2191 (rtx_reader::read_escape): ...member function.
2192 (read_quoted_string): Convert to...
2193 (rtx_reader::read_quoted_string): ...member function.
2194 (read_braced_string): Convert to...
2195 (rtx_reader::read_braced_string): ...member function.
2196 (read_string): Convert to...
2197 (rtx_reader::read_string): ...member function.
2198 (read_skip_construct): Convert to...
2199 (rtx_reader::read_skip_construct): ...member function.
2200 (handle_constants): Convert to...
2201 (rtx_reader::handle_constants): ...member function.
2202 (traverse_md_constants): Convert to...
2203 (rtx_reader::traverse_md_constants): ...member function.
2204 (handle_enum): Convert to...
2205 (rtx_reader::handle_enum): ...member function.
2206 (lookup_enum_type): Convert to...
2207 (rtx_reader::lookup_enum_type): ...member function.
2208 (traverse_enum_types): Convert to...
2209 (rtx_reader::traverse_enum_types): ...member function.
2210 (rtx_reader::rtx_reader): Move initializations
2211 of various former global data from rtx_reader::read_md_files to
2212 here, as fields, along with the call to unlock_std_streams.
2213 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
2215 (rtx_reader::read_md_files): Move initializations of various
2216 global data from here to the ctor.
2217 * read-md.h (read_name): Convert to...
2218 (rtx_reader::read_name): ...member function.
2219 (rtx_reader::read_escape): New method decl.
2220 (read_quoted_string): Convert to...
2221 (rtx_reader::read_quoted_string): ...member function.
2222 (rtx_reader::read_braced_string): New method decl.
2223 (read_string): Convert to...
2224 (rtx_reader::read_string): ...member function.
2225 (rtx_reader::read_skip_construct): New method decl.
2226 (rtx_reader::set_md_ptr_loc): New method decl.
2227 (rtx_reader::get_md_ptr_loc): New method decl.
2228 (copy_md_ptr_loc): Convert to...
2229 (rtx_reader::copy_md_ptr_loc): ...member function.
2230 (fprint_md_ptr_loc): Convert to...
2231 (rtx_reader::fprint_md_ptr_loc): ...member function.
2232 (print_md_ptr_loc): Convert to...
2233 (rtx_reader::print_md_ptr_loc): ...member function.
2234 (rtx_reader::lookup_enum_type): New method decl.
2235 (rtx_reader::traverse_enum_types): New method decl.
2236 (rtx_reader::handle_constants): New method decl.
2237 (traverse_md_constants): Convert to...
2238 (rtx_reader::traverse_md_constants): ...member function.
2239 (rtx_reader::handle_enum): New method decl.
2240 (rtx_reader::join_c_conditions): New method decl.
2241 (fprint_c_condition): Convert to...
2242 (rtx_reader::fprint_c_condition): ...member function.
2243 (print_c_condition): Convert to...
2244 (rtx_reader::print_c_condition): ...member function.
2245 (rtx_reader::apply_iterator_to_string): New method decl.
2246 (rtx_reader::copy_rtx_for_iterators): New method decl.
2247 (rtx_reader::read_conditions): New method decl.
2248 (rtx_reader::record_potential_iterator_use): New method decl.
2249 (rtx_reader::read_mapping): New method decl.
2250 (rtx_reader::read_rtx): New method decl.
2251 (rtx_reader::read_rtx_code): New method decl.
2252 (rtx_reader::read_rtx_operand): New method decl.
2253 (rtx_reader::read_nested_rtx): New method decl.
2254 (rtx_reader::read_rtx_variadic): New method decl.
2255 (rtx_reader::get_string_obstack): New method.
2256 (rtx_reader::get_md_constants): New method.
2257 (string_obstack): Convert global variable decl to...
2258 (rtx_reader::m_string_obstack): ...this new field.
2259 (rtx_reader::m_ptr_locs): New field.
2260 (rtx_reader::m_ptr_loc_obstack): New field.
2261 (rtx_reader::m_joined_conditions): New field.
2262 (rtx_reader::m_joined_conditions_obstack): New field.
2263 (rtx_reader::m_md_constants): New field.
2264 (rtx_reader::m_enum_types): New field.
2265 * read-rtl.c (apply_iterator_to_string): Convert to...
2266 (rtx_reader::apply_iterator_to_string): ...member function.
2267 (copy_rtx_for_iterators): Convert to...
2268 (rtx_reader::copy_rtx_for_iterators): ...member function.
2269 (add_condition_to_string): Use rtx_reader_ptr for
2270 calls join_c_conditions.
2271 (apply_iterators): Use rtx_reader_ptr for calls to
2272 join_c_conditions and copy_rtx_for_iterators.
2273 (read_conditions): Convert to...
2274 (rtx_reader::read_conditions): ...member function.
2275 (record_potential_iterator_use): Convert to...
2276 (rtx_reader::record_potential_iterator_use): ...member function.
2277 (read_mapping): Convert to...
2278 (rtx_reader::read_mapping): ...member function.
2279 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
2280 (read_rtx): Convert to...
2281 (rtx_reader::read_rtx): ...member function.
2282 (read_rtx_code): Convert to...
2283 (rtx_reader::read_rtx_code): ...member function.
2284 (read_rtx_operand): Convert to...
2285 (rtx_reader::read_rtx_operand): ...member function. Update for move
2286 of string_obstack to a field.
2287 (read_nested_rtx): Convert to..
2288 (rtx_reader::read_nested_rtx): ...member function.
2289 (read_rtx_variadic): Convert to..
2290 (rtx_reader::read_rtx_variadic): ...member function.
2292 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2294 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
2296 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2298 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
2299 for pointer type too.
2300 (ipcp_update_vr): set_ptr_nonnull for pointer.
2302 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2304 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
2305 pt_solution_singleton_p.
2306 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
2307 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
2308 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
2309 pointer nonnull computed by VRP.
2310 Also Conservatively set pt.null to 1.
2311 (pt_solution_reset): Conservatively set pt.null to 1.
2312 (pt_solution_singleton_or_null_p): Renamed from
2313 pt_solution_singleton_p.
2314 * tree-ssanames.h (set_ptr_nonnull): Declare.
2315 (get_ptr_nonnull): Likewise.
2316 * tree-ssanames.c (set_ptr_nonnull): New.
2317 (get_ptr_nonnull): Likewise.
2318 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
2319 (evrp_dom_walker::before_dom_children): Likewise.
2321 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2323 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2324 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2325 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2326 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2327 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
2328 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2329 (rs6000_option_override_internal): Clear it if ABI_AIX.
2330 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2331 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
2333 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2335 * gimple-ssa-strength-reduction.c (record_increment): Remove
2338 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2340 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
2341 that the result is non-zero if it is true.
2342 (maybe_expand_shift): New wrapper around expand_shift_1.
2343 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
2345 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2347 PR tree-optimization/77916
2348 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
2349 Don't allow a MINUS_EXPR for pointer arithmetic for either known
2351 (record_increment): Increments of -1 for unknown strides just use
2352 a multiply initializer like other negative values.
2353 (analyze_increments): Remove stopgap solution for -1 increment
2354 applied to pointer arithmetic.
2356 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2358 * dominance.c (dom_info::dom_info): Add new constructor for region
2359 which is vector of basic blocks.
2360 (dom_init): New method to initialize members common for both
2362 (dom_info::dom_info): Invoke dom_init for partial initialization.
2363 (dom_info::get_idom): Add check to corner cases on basic blocks which
2365 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
2366 to detect unreachable bbs.
2367 (dom_info::calc_idoms): Likewise.
2368 (compute_dom_fast_query_in_region): New function.
2369 (calculate_dominance_info_for_region): Likewise.
2370 (free_dominance_info_for_region): Likewise.
2371 * dominance.h: Add prototypes for introduced region-based functions
2372 tree-if-conv.c: (build_region): New function.
2373 (if_convertible_loop_p_1): Invoke local version of post-dominators
2374 calculation before basic block predication with subsequent freeing
2375 post-dominator info.
2376 (tree_if_conversion): Remove free of post-dominator info
2377 (pass_if_conversion::execute): Delete detection of infinite loops
2378 and fake edges to exit block since post-dominator calculation is
2379 performed per if-converted loop only.
2381 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2384 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
2385 register explicitly.
2386 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
2387 optimizing for size.
2389 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2391 * config/aarch64/aarch64.c: Delete inclusion of
2392 cortex-a57-fma-steering.h.
2393 (aarch64_override_options): Delete call
2394 to aarch64_register_fma_steering.
2395 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
2396 * config/aarch64/cortex-a57-fma-steering.h: Delete.
2397 * config/aarch64/aarch64-passes.def: New file.
2398 * config/aarch64/cortex-a57-fma-steering.c
2399 (aarch64_register_fma_steering): Delete definition.
2400 (make_pass_fma_steering): Remove static qualifier.
2401 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
2402 (cortex-a57-fma-steering.o): Remove dependency on
2403 cortex-a57-fma-steering.h.
2405 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2407 * explow.c (validize_mem): Do not modify the argument in-place.
2409 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
2411 * tree-streamer.c (record_common_node): Explicitly list expected
2414 2016-10-17 Richard Biener <rguenther@suse.de>
2416 PR tree-optimization/77988
2417 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
2419 2016-10-17 Marek Polacek <polacek@redhat.com>
2421 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
2423 2016-10-17 Richard Biener <rguenther@suse.de>
2425 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
2428 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2430 PR tree-optimization/71636
2431 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
2433 2016-10-17 Richard Biener <rguenther@suse.de>
2435 * gimplify.c (gimplify_function_tree): Do not move the outer
2438 2016-10-17 Jakub Jelinek <jakub@redhat.com>
2440 * langhooks.h (struct lang_hooks_for_decls): Remove
2441 function_decl_explicit_p, function_decl_deleted_p and
2442 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
2443 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
2444 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2445 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
2446 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
2447 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
2448 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2449 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
2450 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
2451 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
2452 * langhooks.c (lhd_decl_dwarf_attribute): New function.
2453 * dwarf2out.c (gen_subprogram_die): Use
2454 lang_hooks.decls.decl_dwarf_attribute instead of
2455 lang_hooks.decls.function_decl_*.
2457 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2461 * common.opt (-ftrampolines): New option.
2462 * doc/invoke.texi (Code Gen Options): Document it.
2463 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2464 * doc/tm.texi: Regenerate.
2465 * builtins.def: Add init_descriptor and adjust_descriptor.
2466 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
2467 on platforms with descriptors.
2468 (expand_builtin_init_descriptor): New function.
2469 (expand_builtin_adjust_descriptor): Likewise.
2470 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
2471 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
2472 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
2473 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
2474 Set STATIC_CHAIN_REG_P on the static chain register, if any.
2475 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
2476 (expand_call): Likewise. Move around call to prepare_call_address
2477 and pass all flags to it.
2478 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
2479 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
2480 (gimple_call_set_by_descriptor): New setter.
2481 (gimple_call_by_descriptor_p): New getter.
2482 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
2483 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
2484 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
2485 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2486 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
2487 * rtl.h (STATIC_CHAIN_REG_P): New macro.
2488 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
2489 * target.def (custom_function_descriptors): New POD hook.
2490 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
2491 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
2492 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
2493 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
2494 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
2495 (build_common_builtin_nodes): Initialize init_descriptor and
2497 * tree-nested.c: Include target.h.
2498 (struct nesting_info): Add 'any_descr_created' field.
2499 (get_descriptor_type): New function.
2500 (lookup_element_for_decl): New function extracted from...
2501 (create_field_for_decl): Likewise.
2502 (lookup_tramp_for_decl): ...here. Adjust.
2503 (lookup_descr_for_decl): New function.
2504 (convert_tramp_reference_op): Deal with descriptors.
2505 (build_init_call_stmt): New function extracted from...
2506 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
2507 * defaults.h (FUNCTION_ALIGNMENT): Define.
2508 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
2509 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2510 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2511 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
2512 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2514 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2516 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
2517 constants in CONST_VECTORs.
2519 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2521 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
2522 register as destination of bmask.
2523 (vector_init_bshuffle): Likewise.
2524 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2525 (bmaskdi_vis): Enable only in 64-bit mode.
2527 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
2529 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
2530 make LR a separately shrink-wrapped component unless savres_strategy
2531 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
2532 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
2533 wrapping when not both {SAVE,REST}_INLINE_GPRS.
2535 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2537 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
2538 and keep looping on failure.
2540 2016-10-14 David Malcolm <dmalcolm@redhat.com>
2542 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
2544 (print_rtx_function): Update example in comment for...
2545 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
2546 non-virtual pseudos with a '%' sigil followed by the regno, offset
2547 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
2548 pseudo is dumped as "%0".
2550 2016-10-14 Jakub Jelinek <jakub@redhat.com>
2553 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
2556 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
2558 * config/sparc/sparc-passes.def: New file.
2559 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
2560 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
2561 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
2563 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2565 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
2566 loop peel to loops with exit test at the beginning.
2568 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2570 PR rtl-optimization/68212
2571 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
2572 frequency when computing scale factor for peeled copies.
2573 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
2574 values for switch/peel blocks/edges.
2576 2016-10-14 Pedro Alves <palves@redhat.com>
2578 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
2580 2016-10-14 Catherine Moore <clm@codesourcery.com>
2582 * config/mips/mips.c (mips_prepare_pch_save): Initialize
2583 micromips_globals to zero.
2585 2016-10-14 Richard Biener <rguenther@suse.de>
2587 PR tree-optimization/77979
2588 * tree-vrp.c (compare_name_with_value): Handle released SSA names
2589 in the equivalency sets.
2590 (compare_names): Likewise.
2592 2016-10-14 Martin Liska <mliska@suse.cz>
2594 * builtins.h(target_char_cst_p): Declare the function.
2595 * builtins.c (fold_builtin_memchr): Remove.
2596 (target_char_cst_p): Move the function from gimple-fold.c.
2597 (fold_builtin_3): Do not call the function.
2598 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
2599 (gimple_fold_builtin): Call the function.
2600 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
2602 2016-10-14 Martin Liska <mliska@suse.cz>
2604 * builtins.c (fold_builtin_strcmp): Remove function.
2605 (fold_builtin_strncmp): Likewise.
2606 (fold_builtin_2): Remove call of the function.
2607 (fold_builtin_3): Likewise.
2608 * fold-const-call.c (fold_const_call): Add constant folding
2609 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
2610 * fold-const-call.h (build_cmp_result): Declare the function.
2611 * gimple-fold.c (gimple_load_first_char): New function.
2612 (gimple_fold_builtin_string_compare): Likewise.
2613 (gimple_fold_builtin): Call the function.
2615 2016-10-14 Nathan Sidwell <nathan@acm.org>
2617 * gcov-io.c (gcov_open): Deconstify 'mode'.
2619 2016-10-14 Martin Liska <mliska@suse.cz>
2621 * fold-const.c (c_getstr): Support of properly \0-terminated
2622 string constants. New argument is added.
2623 * fold-const.h: New argument is added.
2625 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2627 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
2629 (aarch64_print_hint_for_core): Likewise.
2630 (aarch64_print_hint_for_arch): Likewise.
2631 (aarch64_validate_march): Use it. Fix indentation in type signature.
2632 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
2633 (aarch64_validate_mtune): Likewise.
2634 (aarch64_handle_attr_arch): Likewise.
2635 (aarch64_handle_attr_cpu): Likewise.
2636 (aarch64_handle_attr_tune): Likewise.
2638 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2640 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
2643 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
2645 * config/m68k/m68k.c (m68k_option_override): Check
2646 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
2647 instead of stack_limit_rtx.
2649 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2651 * dwarf2out.c (gen_member_die): Handle inline static data member
2654 2016-10-13 Nathan Sidwell <nathan@acm.org>
2656 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
2657 gcov_var.mode. Remove unnecessary fstat.
2659 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
2662 * function.c (thread_prologue_and_epilogue_insns): Call all
2663 make_*logue_seq in the same order as traditional. Call them
2664 all a second time if shrink_wrapped_separate.
2666 2016-10-13 Marek Polacek <polacek@redhat.com>
2668 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2669 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
2672 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2674 PR tree-optimization/77937
2675 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
2676 to infinite when we have a pointer with an increment of -1.
2678 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2680 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
2682 * memmodel.h: This file.
2683 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
2684 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
2685 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
2686 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
2687 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
2688 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
2689 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
2690 compare-elim.c, config/aarch64/aarch64-builtins.c,
2691 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
2692 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
2693 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
2694 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
2695 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
2696 config/darwin.c, config/epiphany/epiphany.c,
2697 config/epiphany/mode-switch-use.c,
2698 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
2699 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2700 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
2701 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2702 config/m68k/m68k.c, config/mcore/mcore.c,
2703 config/microblaze/microblaze.c, config/mmix/mmix.c,
2704 config/mn10300/mn10300.c, config/moxie/moxie.c,
2705 config/msp430/msp430.c, config/nds32/nds32-cost.c,
2706 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2707 config/nds32/nds32-memory-manipulation.c,
2708 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
2709 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
2710 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
2711 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
2712 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
2713 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
2714 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2715 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2716 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
2717 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
2718 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
2719 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
2720 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
2721 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
2722 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
2723 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
2724 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
2725 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
2726 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
2727 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2728 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
2729 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
2730 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
2731 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
2732 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
2733 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
2734 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
2735 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
2736 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
2737 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
2738 var-tracking.c, varasm.c: Include memmodel.h.
2739 * genattrtab.c (write_header): Include memmodel.h in generated file.
2740 * genautomata.c (main): Likewise.
2741 * gengtype.c (open_base_files): Likewise.
2742 * genopinit.c (main): Likewise.
2743 * genconditions.c (write_header): Include memmodel.h earlier in
2745 * genemit.c (main): Likewise.
2746 * genoutput.c (output_prologue): Likewise.
2747 * genpeep.c (main): Likewise.
2748 * genpreds.c (write_insn_preds_c): Likewise.
2749 * genrecog.c (write_header): Likewise.
2750 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
2752 2016-10-13 David Malcolm <dmalcolm@redhat.com>
2754 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
2755 for new "compact" param of print_rtx_function. Check for "cinsn"
2757 * print-rtl-function.c (flag_compact): New decl.
2758 (print_rtx_function): Add param "compact" and use it to set
2759 flag_compact, adding a description of the effect to the leading
2760 comment, and updating the example output.
2761 * print-rtl.c (flag_compact): New variable.
2762 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
2764 (print_rtx_operand_code_i): When printing source locations, wrap
2765 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
2766 (print_rtx_operand_code_r): Don't print regnos for hard regs and
2767 virtuals in compact mode.
2768 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
2769 apart from in LABEL_REFs.
2770 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
2771 Don't print basic block ids in compact mode.
2772 (print_rtx): In compact mode, prefix the code of insns with "c",
2773 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
2774 * print-rtl.h (print_rtx_function): Add "compact" param.
2776 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
2778 * arm.h (TARGET_VFP): Delete.
2779 (TARGET_VFPD32): Remove references to TARGET_VFP.
2780 (TARGET_VFP3, TARGET_VFP5): Likewise.
2781 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
2782 (TARGET_NEON_FP16): Likewise.
2783 (TARGET_FMA): Likewise.
2784 (TARGET_CRYPTO): Likewise.
2785 (TARGET_NEON): Likewise.
2786 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2787 (FUNCTION_ARG_REGNO_P): Likewise.
2788 * arm.c (arm_option_check_internal): Likewise.
2789 (arm_option_override): Likewise.
2790 (use_return_insn): Likewise.
2791 (arm_function_value_regno_p): Likewise.
2792 (arm_apply_result_size): Likewise.
2793 (use_vfp_abi): Likewise.
2794 (arm_legitimate_address_outer_p): Likewise.
2795 (thumb2_legitimate_address_p): Likewise.
2796 (arm_legitimate_index_p): Likewise.
2797 (thumb2_legitimate_index_p): Likewise.
2798 (arm_legitimate_address): Likewise.
2799 (arm_get_vfp_saved_size): Likewise.
2800 (arm_emit_vfp_multi_reg_pop): Likewise.
2801 (arm_get_frame_offsets): Likewise.
2802 (arm_save_coproc_regs): Likewise.
2803 (arm_hard_regno_mode_ok): Likewise.
2804 (arm_expand_epilogue_apcs_frame): Likewise.
2805 (arm_expand_epilogue): Likewise.
2806 (arm_file_start): Likewise.
2807 (arm_conditional_register_usage): Likewise.
2808 (arm_validize_comparison): Use vfp_compare_operand directly.
2809 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
2810 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
2812 (arm_atomic_assign_expand_fenv): Likewise.
2813 * arm.md (divsf3): Likewise.
2814 (arm_negsi2): Likewise.
2816 (arm_movdi): Likewise.
2817 (arm_movt): Likewise.
2818 (cbranchsf4): Change predicate to vfp_compare_operand.
2819 (cbranchdf4): Change predicate to vfp_compare_operand.
2820 (cstorehf4): Change predicate to vfp_compare_operand.
2821 (cstoresf4): Change predicate to vfp_compare_operand.
2822 (cstoredf4): Change predicate to vfp_compare_operand.
2823 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
2824 (movhi_insn_arch4, movhi_bytes): Likewise.
2825 * constraints.md (Dt): Likewise.
2827 * iterators.md (SDF): Likewise.
2828 * predicates.md (arm_float_compare_operand): Delete.
2829 (const_double_vcvt_power_of_two_reciprocal): Remove references to
2831 (const_double_vcvt_power_of_two): Likewise.
2832 * thumb2.md thumb2_movsi_insn): Likewise.
2833 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
2834 (movhf_vfp): Likewise.
2835 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
2836 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2837 (movsf_vfp, thumb2_movsf_vfp): Likewise.
2838 (movdf_vfp, thumb2_movdf_vfp): Likewise.
2839 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
2840 (subsf3_vfp, divsf3_vfp): Likewise.
2841 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
2842 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
2843 (mulsf3negsfsubsf_vfp): Likewise.
2844 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
2845 (floatunssisf2, sqrtsf2_vfp): Likewise.
2846 (movcc_vfp): Likewise.
2847 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
2848 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
2849 (push_multi_vfp): Likewise.
2850 (set_fpscr, get_fpscr): Likewise.
2851 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
2853 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
2855 * arm.h (TARGET_VFP): Unconditionally define to 1.
2856 (arm_fpu_desc): Remove 'model' field.
2857 (TARGET_FPU_MODEL): Delete.
2858 * arm.c (all_fpus): Don't initialize the model field.
2859 (arm_can_inline_p): Don't check the FPU model.
2860 * arm-fpus.def: Remove redundant model field from all FPU
2863 2016-10-13 Richard Biener <rguenther@suse.de>
2866 * genmatch.c (struct capture): Add value_match member.
2867 (commutate): Preserve value_match.
2868 (lower_opt_convert): Likewise.
2869 (lower_cond): Likewise.
2870 (replace_id): Likewise.
2871 (struct dt_operand): Add value_match member.
2872 (decision_tree::cmp_node): Compare it.
2873 (decision_tree::insert_operand): Honor it when finding and
2874 when appending a DT_MATCH.
2875 (dt_operand::gen_match_op): Generate a type check after
2876 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
2877 (parser::get_internal_capture_id): New helper.
2878 (parser::finish_match_operand): New function lowering @@<id>.
2879 (parser::parse_capture): Parse @@<id> as value-match.
2880 (parser::parse_expr): Use get_internal_capture_id.
2881 (parser::parse_simplify): Call finish_match_operand.
2882 (walk_captures): New helper.
2883 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
2885 ((X /[ex] A) * A -> X): Likewise.
2886 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
2887 convert[12] and value-matching.
2888 ((A | B) & (A | C) -> A | (B & C)): Likewise.
2889 ((X | Y) | Y -> X | Y): Likewise.
2890 ((X ^ Y) ^ Y -> X): Likewise.
2891 (A - (A & B) -> ~B & A): Likewise.
2892 ((T)(P + A) - (T)P -> (T) A): Likewise.
2893 ((T)P - (T)(P + A) -> -(T) A): Likewise.
2894 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
2895 * doc/match-and-simplify.texi: Amend capture section.
2897 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
2899 * config/arc/arc.md (umul_600): Remove predicated variant.
2900 (umul64_600): Likewise.
2902 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
2904 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
2906 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2908 * tree-vect-loop.c (loop_niters_no_overflow): New func.
2909 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
2910 no-overflow information to vect_do_peeling_for_loop_bound and
2911 vect_gen_vector_loop_niters.
2913 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2915 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
2918 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2920 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
2921 adjust_vec automatically.
2922 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
2923 param exit_bb to guard_to.
2924 (slpeel_checking_verify_cfg_after_peeling):
2925 (set_prologue_iterations):
2926 (create_lcssa_for_virtual_phi): New func which is factored out from
2927 slpeel_tree_peel_loop_to_edge.
2928 (slpeel_tree_peel_loop_to_edge):
2929 (iv_phi_p): New func.
2930 (vect_can_advance_ivs_p): Call iv_phi_p.
2931 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
2932 new gimple stmts in basic block.
2933 (vect_gen_niters_for_prolog_loop): Rename to...
2934 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
2935 adjust implementation.
2936 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
2937 sizetype if necessary.
2938 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
2939 it to external function.
2940 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
2941 (vect_gen_vector_loop_niters_mult_vf): New.
2942 (slpeel_update_phi_nodes_for_loops): New.
2943 (slpeel_update_phi_nodes_for_guard1): Reimplement.
2944 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
2945 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
2946 * tree-vect-loop.c (vect_build_loop_niters): Move to file
2947 tree-vect-loop-manip.c
2948 (vect_generate_tmps_on_preheader): Delete.
2949 (vect_transform_loop): Rename vectorization_factor to vf. Call
2950 vect_do_peeling instead of vect_do_peeling-* functions.
2951 * tree-vectorizer.h (vect_do_peeling): New decl.
2952 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
2953 (vect_do_peeling_for_loop_bound): Delete.
2954 (vect_do_peeling_for_alignment): Delete.
2956 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2958 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
2959 duplicated loop after its preheader and after the original loop.
2961 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2963 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
2964 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
2966 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2968 * tree-vect-loop.c (vectorizable_live_operation): Support handling
2969 for live variable outside loop but not in lcssa form.
2971 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2973 * cfg.c (reset_original_copy_tables): New func.
2974 * cfg.h (reset_original_copy_tables): New decl.
2976 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2979 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
2981 * varasm.c (default_binds_local_p_3): Formatting fix.
2983 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2985 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
2987 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2988 Remove useless code.
2990 2016-10-13 Martin Liska <mliska@suse.cz>
2992 PR tree-optimization/77943
2993 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
2994 a different EH landing pads.
2996 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2999 * hooks.h (hook_tree_void_null): Declare.
3000 * hooks.c (hook_tree_void_null): New function.
3001 * langhooks.c (lhd_return_null_tree_v): Remove.
3002 * langhooks-def.h (lhd_return_null_tree_v): Remove.
3003 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
3004 set y to const0_rtx.
3005 * function.c (stack_protect_epilogue): Likewise.
3006 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
3007 if TARGET_THREAD_SSP_OFFSET is defined.
3008 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3009 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3010 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3011 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3012 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3013 (ix86_stack_protect_guard): New function.
3015 2016-10-13 Richard Biener <rguenther@suse.de>
3017 * dwarf2out.c (tree_add_const_value_attribute): Do not try
3018 rtl_for_decl_init during early phase.
3019 (gen_variable_die): Do not create locations during early phase.
3020 (gen_label_die): Likewise.
3021 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
3024 2016-10-12 Richard Biener <rguenther@suse.de>
3026 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
3027 try_add_new_range and made to eturn new range.
3028 (evrp_dom_walker::before_dom_children): Push op1 value range before
3029 pushing op0 value range.
3031 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3033 PR tree-optimization/77937
3034 * gimple-ssa-strength-reduction.c (analyze_increments): Use
3035 POINTER_TYPE_P on the candidate type to determine whether
3036 candidates in this chain require pointer arithmetic.
3038 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
3040 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
3041 correction if the type is smaller than a word.
3042 (visium_select_cc_mode): Add ... fall through ... comment.
3044 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3046 * config/rs6000/rs6000.c (machine_function): Add new fields
3047 gpr_is_wrapped_separately and lr_is_wrapped_separately.
3048 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
3049 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
3050 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
3051 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
3052 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
3053 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
3054 (rs6000_get_separate_components): New function.
3055 (rs6000_components_for_bb): New function.
3056 (rs6000_disqualify_components): New function.
3057 (rs6000_emit_prologue_components): New function.
3058 (rs6000_emit_epilogue_components): New function.
3059 (rs6000_set_handled_components): New function.
3060 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
3061 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
3062 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
3063 (rs6000_emit_epilogue): Don't emit GPR restores if
3064 gpr_is_wrapped_separately for that register. Don't make a
3065 REG_CFA_RESTORE note for registers we did not restore, either.
3067 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3069 * function.c (thread_prologue_and_epilogue_insns): Call
3070 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
3071 if it has possibly changed. Compute the split_prologue_seq and
3072 epilogue_seq later, too.
3073 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
3074 (dump_components): New function.
3075 (struct sw): New struct.
3077 (init_separate_shrink_wrap): New function.
3078 (fini_separate_shrink_wrap): New function.
3079 (place_prologue_for_one_component): New function.
3080 (spread_components): New function.
3081 (disqualify_problematic_components): New function.
3082 (emit_common_heads_for_components): New function.
3083 (emit_common_tails_for_components): New function.
3084 (insert_prologue_epilogue_for_components): New function.
3085 (try_shrink_wrapping_separate): New function.
3086 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
3088 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3090 * regrename.c (build_def_use): Invalidate chains that have a
3091 REG_CFA_RESTORE on some instruction.
3093 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3095 * dce.c (delete_unmarked_insns): Don't delete instructions with
3096 a REG_CFA_RESTORE note.
3098 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3100 * common.opt (-fshrink-wrap-separate): New flag.
3101 * doc/invoke.texi: Document it.
3102 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
3103 * doc/tm.texi: Regenerate.
3104 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
3105 * target.def (shrink_wrap): New hook vector.
3106 (get_separate_components, components_for_bb, disqualify_components,
3107 emit_prologue_components, emit_epilogue_components,
3108 set_handled_components): New hooks.
3110 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3112 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
3113 vector return by reference only if -Wpsabi.
3114 (rs6000_pass_by_reference): Similarly, for argument passing.
3116 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3118 * function-tests.c: Include "print-rtl.h".
3119 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
3120 function, and verify what is dumped.
3121 * print-rtl-function.c (print_edge): New function.
3122 (begin_any_block): New function.
3123 (end_any_block): New function.
3124 (can_have_basic_block_p): New function.
3125 (print_rtx_function): Track the basic blocks of insns in the
3126 chain, wrapping those that are within blocks within "(block)"
3127 directives. Remove the "(cfg)" directive.
3129 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3131 * selftest.c (selftest::read_file): New function.
3132 (selftest::test_read_file): New function.
3133 (selftest::selftest_c_tests): Call test_read_file.
3134 * selftest.h (selftest::read_file): New decl.
3136 2016-10-12 Richard Biener <rguenther@suse.de>
3139 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
3142 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
3144 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
3146 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
3147 dwarf2out_assembly_start.
3149 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
3151 * Makefile.in (SELFTEST_FLAGS): New variable.
3152 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
3154 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
3157 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
3159 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
3160 dumped in RTL dumps.
3162 2016-10-12 Martin Liska <mliska@suse.cz>
3164 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
3165 (gimple_fold_builtin_memory_op): Use the function.
3166 (gimple_fold_builtin_strchr): Likewise.
3167 (gimple_fold_builtin_strcat): Likewise.
3168 (gimple_build): Likewise.
3170 2016-10-12 Nathan Sidwell <nathan@acm.org>
3172 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
3174 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3176 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
3177 equivalent 32-bit constant (modulo 2**32) when that yields
3178 smaller instructions.
3179 (size_of_int_loc_descriptor): Update accordingly.
3181 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3183 * dwarf2out.c (dwarf2out_early_global_decl): For nested
3184 functions, call dwarf2out_decl on the parent function first.
3186 2016-10-12 Richard Biener <rguenther@suse.de>
3188 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
3191 2016-10-12 Richard Biener <rguenther@suse.de>
3193 * tree-ssa-propagate.c
3194 (substitute_and_fold_dom_walker::before_dom_children): Do not
3195 ignore ASSERT_EXPRs but only preserve them.
3196 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
3197 that have been propagated into.
3198 (vrp_finalize): Enable DCE for substitute_and_fold.
3200 2016-10-12 Richard Biener <rguenther@suse.de>
3202 PR tree-optimization/77920
3203 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
3204 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
3205 (simplify_abs_using_ranges): Likewise.
3206 (simplify_conversion_using_ranges): Likewise.
3207 (simplify_stmt_using_ranges): Adjust.
3209 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3211 PR tree-optimization/77929
3212 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
3213 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
3215 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3218 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
3219 needs a base register for arg 1.
3221 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3223 * common.opt (Wimplicit-fallthrough) Turn into alias to
3224 -Wimplicit-fallthrough=3. Remove EnabledBy.
3225 (Wimplicit-fallthrough=): New option.
3226 * gimplify.c (warn_implicit_fallthrough_r): Use
3227 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
3228 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
3229 to -Wimplicit-fallthrough=3.
3230 (-Wimplicit-fallthrough=): Document.
3232 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3234 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
3235 and GEU in DImode if TARGET_SUBXC.
3236 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
3237 (seqdi<W:mode>_zero_subxc): Delete.
3238 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
3239 (neg_seqdi<W:mode>_zero_vis3): Delete.
3240 (plus_seqdi<W:mode>_zero): Likewise.
3241 (minus_seqdi<W:mode>_zero): Likewise.
3242 (plus_plus_sltu<W:mode>): Accept only register.
3243 (addx<W:mode>): Likewise.
3244 (plus_sltu<W:mode>_vis3): Likewise.
3245 (plus_plus_sltu<W:mode>_vis3): Likewise.
3246 (neg_sgeu<W:mode>_vis3): Delete.
3247 (minus_sgeu<W:mode>_vis3): Likewise.
3248 (addxc<W:mode>): Accept only registers.
3249 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3250 (minus_neg_sltu<W:mode>_subxc): Accept only register.
3251 (neg_plus_sltu<W:mode>_subxc): Likewise.
3252 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3253 (minus_minus_sltu<W:mode>_subxc): Accept only register.
3254 (sgeu<W:mode>_insn_subxc): Delete.
3255 (plus_sgeu<W:mode>_subxc): Likewise.
3256 (subxc<W:mode>): Accept only register.
3257 (scc splitter): Split always GEU again.
3259 2016-10-11 Jeff Law <law@redhat.com>
3261 PR tree-optimization/77424
3262 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
3263 dead conditionals. Assert that all e->aux fields are NULL.
3265 2016-10-11 David Malcolm <dmalcolm@redhat.com>
3267 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
3268 operand-printing "switch" statement into...
3269 (print_rtx_operand_code_0): ...this new function, ...
3270 (print_rtx_operand_code_e): ...this new function, ...
3271 (print_rtx_operand_codes_E_and_V): ...this new function, ...
3272 (print_rtx_operand_code_i): ...this new function, ...
3273 (print_rtx_operand_code_r): ...this new function, ...
3274 (print_rtx_operand_code_u): ...this new function, ...
3275 (print_rtx_operand): ...and this new function.
3277 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
3279 * config/alpha/alpha-passes.def: New file.
3280 * config/alpha/t-alpha: New file.
3281 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
3282 (make_pass_handle_trap_shadows): New prototype.
3283 (make_pass_align_insns): Ditto.
3284 * config/alpha/alpha.c (alpha_option_override): Don't register
3286 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
3288 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3291 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
3292 distinct __ibm128 IBM extended double type if long doubles are
3293 128-bits and the default format for long double is IEEE 128-bit.
3295 2016-10-11 Richard Biener <rguenther@suse.de>
3297 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
3298 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
3299 (verify_die): New function.
3300 (dwarf2out_finish): Call it.
3301 (output_line_info): Handle case of -gsplit-dwarf without
3302 DWARF2_ASM_LINE_DEBUG_INFO.
3304 2016-10-11 Richard Biener <rguenther@suse.de>
3307 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
3308 sub-chains of BLOCK_VARS and gimple_bind_vars.
3310 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3312 * config/i386/znver1.md : Fix imov/imovx load type reservations.
3314 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3316 * config/sparc/sparc.opt (msubxc): New option.
3317 * doc/invoke.texi (SPARC options): Document it and tidy up.
3318 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
3319 * doc/tm.texi: Regenerate.
3320 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
3322 (CCX_NOOV): Rename into...
3326 * config/sparc/predicates.m (fcc_register_operand): Simplify.
3327 (fcc0_register_operand): Likewise.
3328 (icc_register_operand): New.
3329 (icc_or_fcc_register_operand): Simplify.
3330 (nz_comparison_operator): New.
3331 (c_comparison_operator): Likewise.
3332 (noov_compare_operator): Rename into...
3333 (icc_comparison_operator): ...this. Use above predicates.
3334 (noov_compare64_operator): Rename into...
3335 (v9_comparison_operator): ...this and tidy up.
3336 (fcc_comparison_operator): New.
3337 (icc_or_fcc_comparison_operator): Likewise.
3338 (v9_register_compare_operator): Rename info...
3339 (v9_register_comparison_operator): ...this.
3340 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3341 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
3343 (sparc_fixed_condition_code_regs): New function.
3344 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
3345 renaming and add support for CCC/CCXC.
3346 (output_cbranch): Likewise.
3347 (sparc_print_operand): Likewise.
3348 (gen_v9_scc): Remove obsolete assertion.
3349 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
3350 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
3351 (output_cbcond): Remove bogus handling of CC modes.
3352 (sparc_register_move_cost): Return 100 for NO_REGS.
3353 * config/sparc/sparc.md (W): New mode iterator.
3354 (length): Adjust for noov_compare64_operator renaming.
3355 (cmpsi_sne): New instruction.
3356 (cmpdi_sne): Likewise.
3357 (seqdi_special): Delete.
3358 (seqdi_special): Likewise.
3359 (snesi<P:mode>_special): Likewise.
3360 (snedi_special): Likewise.
3361 (snedi_special_vis3): Likewise.
3362 (snesi patterns): Use W iterator.
3363 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
3364 (sltu patterns): Likewise.
3365 (sgeu patterns): Likewise.
3366 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
3367 (normal_branch): Use icc_comparison_operator predicate.
3368 (inverted_branch): Likewise.
3369 (cbcond_sp32): Use comparison_operator predicate.
3370 (cbcond_sp64): Likewise.
3371 (normal_int_branch_sp64): Adjust for renaming
3372 (inverted_int_branch_sp64): Likewise.
3373 (mov<I:mode>_cc_reg_sp64): Likewise.
3374 (movsf_cc_reg_sp6): Likewise.
3375 (movdf_cc_reg_sp64): Likewise.
3376 (movtf_cc_reg_hq_sp64): Likewise.
3377 (movtf_cc_reg_sp64): Likewise.
3378 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
3379 (movsf_cc_v9): Likewise.
3380 (movdf_cc_v9): Likewise.
3381 (movtf_cc_hq_v9): Likewise.
3382 (movtf_cc_v9): Likewise.
3383 (adddi3): Call gen_adddi3_sp32.
3384 (adddi3_insn_sp32): Rename to...
3385 (adddi3_sp32): ...this. Accept only register_operand as operand #1
3386 and use CCCmode for the carry.
3387 (addx_extend_sp32): Use CCCmode for the carry.
3388 (addx_extend_sp64): Delete.
3389 (adddi3_extend_sp32): Use CCCmode for the carry.
3390 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
3391 (subdi3): Call gen_subdi3_sp32.
3392 (subdi3_insn_sp32): Rename to...
3393 (subdi3_sp32): ...this and use CCmode for the carry.
3394 (subx_extend_sp32): Use CCCmode for the carry.
3395 (subx_extend_sp64): Delete.
3396 (subdi3_extend_sp32): Use CCmode for the carry.
3397 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
3398 (negdi3): Call gen_negdi3_sp32.
3399 (negdi3_sp32): Use CCCmode for the carry.
3400 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
3401 (cmp_nz_ashift_1): Use CCNZ mode.
3402 (cmp_nz_set_ashift_1): Likewise.
3403 (ctrapsi4): Use comparison_operator predicate.
3404 (ctrapdi4): Likewise.
3405 (trapsi_insn): Use icc_comparison_operator predicate.
3406 (trapdi_insn): Likewise.
3407 (edge8 patterns): Use CCNZmode.
3408 (edge16 patterns): Likewise.
3409 (edge32 patterns): Likewise.
3411 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3413 * config/visium/visium-modes.def (CC_NOOV): Rename into...
3415 (CC_BTST): Rename into...
3417 * config/visium/predicates.md (real_add_operand): New.
3418 (visium_btst_operator): Rename into...
3419 (visium_equality_comparison_operator): ...this.
3420 (visium_noov_operator): Rename into...
3421 (visium_nz_comparison_operator): ...this.
3422 (visium_c_comparison_operator): New.
3423 (visium_branch_operator): Adjust and deal with all CC modes.
3424 * config/visium/visium.c (visium_adjust_cost): Adjust.
3425 (visium_split_double_add): Use the *_set_carry patterns.
3426 (visium_select_cc_mode): Add support for CCC mode and adjust.
3427 (output_cbranch): Adjust and use the carry-based operators for
3428 floating-point comparisons.
3429 * config/visium/visium.md (flags_subst_arith): Adjust.
3430 (addsi3_insn_set_carry): New instruction.
3431 (subsi3_insn_set_carry): Likewise.
3432 (negsi2_insn_set_carry): Likewise.
3434 (cmp<mode>_sne): Likewise.
3435 (cbranch<mode>4): Use ordered_comparison_operator.
3436 (cbranch<mode>4_insn): Likewise.
3437 (cbranchsi4_btst_insn): Adjust.
3439 2016-10-11 Tom de Vries <tom@codesourcery.com>
3442 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3445 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3447 * tree.h (build_complex_type): Add second parameter with default.
3448 * tree.c (build_complex_type): Add NAMED second parameter and adjust
3449 recursive call. Create a TYPE_DECL only if NAMED is true.
3450 (build_common_tree_nodes): Pass true in calls to build_complex_type.
3452 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
3454 New avr-passes.def to register AVR specific passes.
3456 * config/avr/avr-passes.def: New file.
3457 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
3458 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
3459 (make_avr_pass_recompute_note): New proto.
3460 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
3461 (avr_pass_recompute_notes): Use anonymous namespace.
3462 (avr_register_passes): Remove function...
3463 (avr_option_override): ...and its call.
3465 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
3467 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
3468 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
3469 PTF_AVOID_BRANCHLIKELY_SPEED for others.
3470 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
3472 * config/mips/mips.c (mips_option_override): Enable the branch
3473 likely depending on the tune flags and optimization level.
3474 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
3475 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
3476 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
3477 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
3479 2016-10-11 Richard Biener <rguenther@suse.de>
3481 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
3482 (output_function): Properly stream the whole block tree.
3483 * lto-streamer-in.c (input_function): Likewise.
3485 2016-10-11 Marek Polacek <polacek@redhat.com>
3487 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
3489 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3491 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
3492 (evrp_dom_walker::before_dom_children): Infer and push new value
3493 ranges for x in y < x.
3495 2016-10-10 Joseph Myers <joseph@codesourcery.com>
3498 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
3499 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3500 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3501 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3502 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3503 (IA64_NO_LIBGCC_TFMODE): Likewise.
3505 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3507 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
3510 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
3512 * config.gcc: Add aarch64-*-freebsd* support.
3513 * config.host: Likewise.
3514 * config/aarch64/aarch64-freebsd.h: New file.
3515 * config/aarch64/t-aarch64-freebsd: Ditto.
3517 2016-10-10 Jeff Law <law@redhat.com>
3519 PR tree-optimization/71947
3520 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
3521 B with A within a single statement.
3523 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3525 PR tree-optimization/77824
3526 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
3527 zero cost for copies.
3528 (find_candidates_dom_walker::before_dom_children): Replace
3529 MODIFY_EXPR with SSA_NAME.
3530 (replace_mult_candidate): Likewise.
3531 (replace_profitable_candidates): Likewise.
3533 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3535 * config/s390/s390.h: Wrap more macros args in brackets and fix
3537 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
3539 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
3541 2016-10-10 Andreas Schwab <schwab@suse.de>
3544 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
3545 pseudo is not DImode.
3547 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
3549 * common/config/arc/arc-common.c (arc_option_optimization_table):
3550 Remove compact casesi option.
3551 * config/arc/arc.c (arc_override_options): Use compact casesi
3552 option only for pre-ARCv2 cores.
3553 * doc/invoke.texi (mcompact-casesi): Update text.
3555 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3557 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
3558 Add macro to say we can efficiently handle overlapping unaligned
3560 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
3561 poor code for processors older than p8.
3563 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
3565 * gen-pass-instances.awk: Remove GNUism.
3567 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3569 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
3570 NULL of (*ipcp_transformations)][node->uid].
3572 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
3574 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3575 (MALLOC_ABI_ALIGNMENT): Define.
3577 2016-10-09 Jakub Jelinek <jakub@redhat.com>
3579 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
3580 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
3581 VAR_OR_FUNCTION_DECL_P macros.
3582 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
3583 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
3584 chkp_find_bounds_1): Likewise.
3585 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
3586 * hsa-gen.c (get_symbol_for_decl): Likewise.
3587 * cgraphunit.c (check_global_declaration, analyze_functions,
3588 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
3590 * gimple-fold.c (can_refer_decl_in_current_unit_p,
3591 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
3593 * tree.c (set_decl_section_name, copy_node_stat,
3594 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
3595 merge_dllimport_decl_attributes, handle_dll_attribute,
3596 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
3597 verify_type): Likewise.
3598 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
3599 find_explicit_erroneous_behavior): Likewise.
3600 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
3601 * ipa.c (process_references): Likewise.
3602 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
3603 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
3604 notice_global_symbol, assemble_variable, mark_decl_referenced,
3605 build_constant_desc, output_constant_def_contents, do_assemble_alias,
3606 make_decl_one_only, default_section_type_flags,
3607 categorize_decl_for_section, default_encode_section_info): Likewise.
3608 * trans-mem.c (requires_barrier): Likewise.
3609 * gimple-expr.c (mark_addressable): Likewise.
3610 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
3611 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
3612 expand_debug_expr): Likewise.
3613 * tree-dump.c (dequeue_and_dump): Likewise.
3614 * ubsan.c (instrument_bool_enum_load): Likewise.
3615 * tree-pretty-print.c (print_declaration): Likewise.
3616 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3617 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
3618 * asan.c (asan_protect_global, instrument_derefs): Likewise.
3619 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
3620 pass_build_ssa::execute): Likewise.
3621 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
3622 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
3624 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
3626 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
3627 can_be_nonlocal, remap_decls, copy_debug_stmt,
3628 initialize_inlined_parameters, add_local_variables,
3629 reset_debug_binding, replace_locals_op): Likewise.
3630 * dse.c (can_escape): Likewise.
3631 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
3633 * tree-diagnostic.c (default_tree_printer): Likewise.
3634 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
3635 unpack_ts_decl_with_vis_value_fields,
3636 lto_input_ts_decl_common_tree_pointers): Likewise.
3637 * builtins.c (builtin_save_expr, fold_builtin_expect,
3638 readonly_data_expr): Likewise.
3639 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
3640 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
3642 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3643 * gimplify.c (force_constant_size, gimplify_bind_expr,
3644 gimplify_decl_expr, gimplify_var_or_parm_decl,
3645 gimplify_compound_lval, gimplify_init_constructor,
3646 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
3647 gimplify_type_sizes): Likewise.
3648 * cgraphbuild.c (record_reference, record_type_list, mark_address,
3649 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
3650 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
3651 remove_unused_locals): Likewise.
3652 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
3653 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
3654 * function.c (instantiate_expr, instantiate_decls_1,
3655 setjmp_vars_warning, add_local_decl): Likewise.
3656 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
3658 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
3659 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
3660 optimize_va_list_gpr_fpr_size): Likewise.
3661 * tree-nrv.c (pass_nrv::execute): Likewise.
3662 * tsan.c (instrument_expr): Likewise.
3663 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3664 * vtable-verify.c (verify_bb_vtables): Likewise.
3665 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
3666 get_ref_base_and_extent): Likewise.
3667 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
3669 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
3670 analyze_all_variable_accesses): Likewise.
3671 * tree-nested.c (get_nonlocal_debug_decl,
3672 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
3673 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
3674 get_local_debug_decl, convert_local_omp_clauses,
3675 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
3677 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
3678 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
3679 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
3680 dbxout_symbol, dbxout_common_check): Likewise.
3681 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
3682 string_constant): Likewise.
3683 * hsa.c (hsa_get_declaration_name): Likewise.
3684 * passes.c (rest_of_decl_compilation): Likewise.
3685 * tree-ssanames.c (make_ssa_name_fn): Likewise.
3686 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
3687 pack_ts_decl_with_vis_value_fields,
3688 write_ts_decl_common_tree_pointers): Likewise.
3689 * stor-layout.c (place_field): Likewise.
3690 * symtab.c (symtab_node::maybe_create_reference,
3691 symtab_node::verify_base, symtab_node::make_decl_local,
3692 symtab_node::copy_visibility_from,
3693 symtab_node::can_increase_alignment_p): Likewise.
3694 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
3695 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
3696 fortran_common, add_location_or_const_value_attribute,
3697 add_scalar_info, add_linkage_name, set_block_abstract_flags,
3698 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
3699 optimize_one_addr_into_implicit_ptr,
3700 optimize_location_into_implicit_ptr): Likewise.
3701 * gimple-low.c (record_vars_into): Likewise.
3702 * ipa-visibility.c (update_vtable_references): Likewise.
3703 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
3705 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
3706 DFS::DFS_write_tree_body, write_symbol): Likewise.
3707 * langhooks.c (lhd_warn_unused_global_decl,
3708 lhd_set_decl_assembler_name): Likewise.
3709 * attribs.c (decl_attributes): Likewise.
3710 * except.c (output_ttype): Likewise.
3711 * varpool.c (varpool_node::get_create, ctor_for_folding,
3712 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
3713 * fold-const.c (fold_unary_loc): Likewise.
3714 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3715 ipa_find_agg_cst_from_init): Likewise.
3716 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
3717 expand_omp_target, lower_omp_regimplify_p,
3718 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
3719 find_link_var_op): Likewise.
3720 * tree-chrec.c (chrec_contains_symbols): Likewise.
3721 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
3722 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
3723 execute_fixup_cfg): Likewise.
3725 PR tree-optimization/77901
3726 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
3727 if ranges[i].exp is SSA_NAME when looking for >= and only when
3728 ranges[i].exp is NULL or SSA_NAME when looking for the other
3731 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3733 * ipa-cp.c (ipcp_alignment_lattice): Remove.
3734 (ipcp_param_lattices): Remove field alignment.
3735 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
3736 (set_all_contains_variable): Remove call to
3737 ipcp_alignment_lattice::set_to_bottom.
3738 (initialize_node_lattices): Likewise.
3739 (propagate_alignment_accross_jump_function): Remove.
3740 (propagate_constants_accross_call): Remove call to
3741 propagate_alignment_accross_jump_function.
3742 (ipcp_store_alignment_results): Remove.
3743 (ipcp_driver): Remove call to ipcp_store_alignment_results.
3744 (propagate_bits_accross_jump_function): Handle ancestor jump function.
3745 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
3746 pretty-printing of alignment jump function.
3747 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
3748 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
3749 alignments and remove computing ipa_alignment jump function.
3750 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
3751 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
3752 (ipa_read_jump_function): Remove reading of ipa_alignment.
3753 (write_ipcp_transformation_info): Remove streaming for alignment
3754 propagation summary.
3755 (read_ipcp_transformation_info): Remove reading of alignment
3756 propagation summary.
3757 (ipcp_update_alignments): Remove.
3758 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
3760 (ipcp_transform_function): Remove call to ipcp_update_alignments()
3761 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
3762 * ipa-prop.h (ipa_alignment): Remove.
3763 (ipa_jump_func): Remove field alignment.
3764 (ipcp_transformation_summary): Remove field alignments.
3765 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
3766 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
3767 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
3769 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
3771 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
3773 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
3775 (visium_expand_fp_cstore): Likewise.
3777 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3779 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
3780 * diagnostic.c (warning_at_rich_loc_n): New function.
3781 (diagnostic_n_impl_richloc): Likewise.
3782 (diagnostic_n_impl): Move most of the function to
3783 diagnostic_n_impl_richloc and call it.
3785 2016-10-08 Jakub Jelinek <jakub@redhat.com>
3787 * gen-pass-instances.awk: Rewritten.
3788 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
3789 $(PASSES_EXTRA) after passes.def to the script.
3790 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
3791 * config/i386/i386-passes.def: New file.
3792 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
3793 make_pass_stv): Declare.
3794 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
3796 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
3798 (pass_stv::clone, pass_stv::set_pass_param): New methods.
3799 (pass_stv::timode_p): New non-static data member.
3800 (ix86_option_override): Don't register passes here.
3802 * doc/invoke.texi: Document accepting Else, fallthrough.
3804 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
3807 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
3808 FALLTHRU comment styles.
3810 2016-10-07 Andrew Pinski <apinski@cavium.com>
3812 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
3813 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
3814 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
3816 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
3818 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
3820 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
3821 (AARCH64_ARCH): Likewise.
3822 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
3824 (AARCH64_CORE): Likewise.
3825 (AARCH64_ARCH): Likewise.
3826 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
3827 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3828 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
3829 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3830 (AARCH64_ARCH): Likewise.
3831 (AARCH64_CORE): Likewise.
3832 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
3833 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
3834 (AARCH64_CORE): Likewise.
3835 (AARCH64_ARCH): Likewise.
3837 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3839 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
3840 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
3841 floating point type infrastructre, and -mfloat128 that enables the
3842 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
3843 if -mfloat128-type. Define __ibm128 to be long double by default.
3844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
3845 the IEEE 128-bit floating point type infrastructure should
3846 automatically be enabled.
3847 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
3848 instead of -mfloat128 to enable KFmode.
3849 (rs6000_option_override_internal): Split the option -mfloat128
3850 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
3851 systems, automatically set -mfloat128-type, but don't enable it on
3852 other operating systems. Move setting the long double size and
3853 IEEE quad support before the IEEE 128-bit floating point changes.
3854 (rs6000_init_builtins): Do not create a unique type for __ibm128
3855 if long double is IBM extended double, instead rely on __ibm128
3856 being defined as 'long double'. If -mfloat128-type and not
3857 -mfloat128, create the KFmode type with an undocumented __ieee128
3859 (rs6000_init_libfuncs): Use -mfloat128-type instead of
3860 -mfloat128 for tests about the types, but keep tests for
3861 -mfloat128 to enable the keyword support.
3862 (rs6000_complex_function_value): Likewise.
3863 (rs6000_scalar_mode_supported_p): Likewise.
3864 (rs6000_floatn_mode): Likewise.
3865 (rs6000_c_mode_for_suffix): Likewise.
3866 (rs6000_opt_masks): Add -mfloat128-type.
3867 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
3868 -mfloat128-type being split from -mfloat128. Add
3869 -mfloat128-hardware, which was missing.
3870 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
3871 -mfloat128 and -mfloat128-type:
3872 (-mfloat128-type): Likewise.
3873 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
3874 that 64-bit Linux systems with enable -mfloat128-type by default
3876 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
3877 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
3878 -mfloat128-type instead of -mfloat128.
3879 (FLOAT128_2REG_P): Likewise.
3880 (MASK_FLOAT128_TYPE): Likewise.
3881 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3882 (RS6000_BTM_FLOAT128): Likewise.
3883 (TARGET_FLOAT128): Poison old identifiers.
3884 (OPTION_MASK_FLOAT128): Likewise.
3885 (MASK_FLOAT128): Likewise.
3886 * config/rs6000/rs6000.md (FP): Likewise.
3887 (FLOAT128): Likewise.
3888 (fix_trunc<mode>di2): Likewise.
3889 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3890 (floatdi<mode>2): Likewise.
3891 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
3892 (neg<mode>2, FLOAT128 iterator): Likewise.
3893 (abs<mode>2, FLOAT128 iterator): Likewise.
3894 (ieee_128bit_negative_zero): Likewise.
3895 (ieee_128bit_vsx_neg<mode>2): Likewise.
3896 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3897 (ieee_128bit_vsx_abs<mode>2): Likewise.
3898 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3899 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3900 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3901 (extendiftf2): Likewise.
3902 (extendifkf2): Likewise.
3903 (extendtfkf2): Likewise.
3904 (trunciftf2): Likewise.
3905 (truncifkf2): Likewise.
3906 (trunckftf2): Likewise.
3907 (trunctfif2): Likewise.
3908 (extendkftf2): Likewise.
3909 (trunctfkf2): Likewise.
3911 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3913 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
3914 before merging in bytes to pass down to real_from_target.
3916 2016-10-07 Richard Biener <rguenther@suse.de>
3918 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
3920 (substitute_and_fold_dom_walker::before_dom_children):
3921 Substitute and fold before pass specific folding to avoid
3922 feeding that with SSA names that will be later released.
3923 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
3924 introduced by folding and visited by evaluate_stmt called during
3926 (likely_value): Likewise.
3927 (evaluate_stmt): Likewise.
3928 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
3929 (simplify_div_or_mod_using_ranges): Likewise.
3930 (simplify_min_or_max_using_ranges): Likewise.
3931 (simplify_abs_using_ranges): Likewise.
3932 (simplify_conversion_using_ranges): Likewise.
3933 (simplify_float_conversion_using_ranges): Likewise.
3934 (simplify_stmt_using_ranges): Likewise.
3936 2016-10-07 Marek Polacek <polacek@redhat.com>
3938 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
3939 FALLTHROUGH_LABEL_P here...
3940 (warn_implicit_fallthrough_r): ...not here.
3942 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
3944 PR tree-optimization/77880
3945 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
3948 2016-10-07 Marek Polacek <polacek@redhat.com>
3951 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
3953 2016-10-07 Richard Biener <rguenther@suse.de>
3955 * bitmap.h: Document constraints on bitmap modification while
3958 2016-10-07 Richard Biener <rguenther@suse.de>
3960 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
3961 * bitmap.h (bmp_iter_set): When advancing to the next element
3962 check that we didn't remove the current one.
3963 (bmp_iter_and): Likewise.
3964 (bmp_iter_and_compl): Likewise.
3965 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
3966 we currently iterate on but keep a one-level queue.
3967 * sched-deps.c (remove_from_deps): Do not clear current bit
3968 but keep a one-level queue.
3970 2016-10-07 Jakub Jelinek <jakub@redhat.com>
3972 PR tree-optimization/77664
3973 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
3974 for the other ranges.
3975 (optimize_range_tests_diff): Fix up formatting.
3976 (optimize_range_tests_var_bound): New function.
3977 (optimize_range_tests): Use it.
3979 2016-10-07 Martin Liska <mliska@suse.cz>
3981 * coverage.c (build_gcov_exit_decl): Fix priority what
3982 should be really 99.
3984 2016-10-07 Richard Biener <rguenther@suse.de>
3986 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
3987 vars in gimple_bind_vars but not in BLOCK_VARS.
3989 2016-10-07 Richard Biener <rguenther@suse.de>
3991 PR tree-optimization/77879
3992 * tree-ssa-structalias.c (handle_const_call): Properly handle
3994 (handle_pure_call): Likewise.
3996 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3998 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
3999 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
4002 2016-10-06 Andrew Pinski <apinski@cavium.com>
4004 * config/aarch64/aarch64-cores.def: Add a comment before each
4007 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
4009 PR tree-optimization/77862
4010 * tree-vrp.c (add_equivalence): Use get_value_range so that
4011 num_vr_values is checked before accessing vr_values.
4013 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
4015 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4018 2016-10-05 Jeff Law <law@redhat.com>
4020 PR tree-optimization/71661
4021 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
4022 removal of a forwarder exposes a new natural loop.
4024 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
4026 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
4027 Introduce ssesuffix variable.
4028 (<mask_codefor><code><mode>3<mask_name>): Ditto.
4029 (*<code><mode>3): Ditto.
4031 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
4033 * postreload.c (reload_cse_simplify): Skip also USE when detecting
4036 2016-10-06 Richard Biener <rguenther@suse.de>
4038 PR tree-optimization/77855
4039 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
4040 instead of removing the current item while iterating over the set
4043 2016-10-06 James Clarke <jrtc27@jrtc27.com>
4044 Eric Botcazou <ebotcazou@adacore.com>
4047 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
4048 (classify_registers): Don't set it
4049 (function_arg_slotno): Don't initialize and test it. Tidy up.
4051 2016-10-06 Richard Biener <rguenther@suse.de>
4053 PR tree-optimization/77839
4054 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
4057 2016-10-06 Martin Liska <mliska@suse.cz>
4059 * gcc.c: Set -fprofile-update=atomic when profiling is
4060 enabled and -pthread is set. Warn when one combines
4061 -pthread and -fprofile-update=single for an app using
4064 2016-10-06 Martin Liska <mliska@suse.cz>
4067 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
4068 * gimple-ssa-strength-reduction.c (slsr_process_cast):
4069 Initialize a pointer to NULL.
4070 (slsr_process_copy): Likewise.
4071 * input.c (location_get_source_line): Likewise.
4072 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4074 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
4076 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
4077 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
4078 (ix86_handle_option): Deleted handle of OPT_mpcommit.
4079 * config.gcc: Deleted pcommitintrin.h
4080 * config/i386/pcommitintrin.h: Deleted file.
4081 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
4082 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
4084 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
4086 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
4087 (PTA_PCOMMIT): Deleted define.
4088 (ix86_option_override_internal): Deleted handle of option.
4089 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
4090 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
4091 __builtin_ia32_pcommit): Deleted.
4092 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
4093 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
4094 (pcommit): Deleted instruction.
4095 * config/i386/i386.opt: Mention -mpcommit deprecation.
4096 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
4098 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
4101 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
4102 Remove wrong assert.
4103 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
4104 Use <round_constraint> as operand 1 constraint.
4106 2016-10-05 Jakub Jelinek <jakub@redhat.com>
4109 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
4110 (ubsan_instrument_float_cast): And not here.
4113 * ubsan.c (ubsan_ids): New GTY(()) array.
4114 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
4115 instead of static local counters.
4117 2016-10-05 Martin Sebor <msebor@redhat.com>
4120 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
4121 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
4122 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
4123 (default_printf_pointer_format): Define function.
4124 * targhooks.c (linux_printf_pointer_format): Define new function.
4125 * targhooks.h (linux_printf_pointer_format): Declare.
4126 (gnu_libc_printf_pointer_format): Remove declaration.
4128 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4130 * fold-const.c (native_encode_real): Fix logic for selecting offset
4131 to write to when BYTES_BIG_ENDIAN.
4133 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
4135 * builtins.c (fold_builtin_strchr): Remove function.
4136 (fold_builtin_strrchr): Likewise.
4137 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
4138 * gimple-fold.c (target_char_cst_p): New function.
4139 (gimple_fold_builtin_strchr) Add more foldings.
4140 (gimple_fold_builtin): Add index, strrchr, rindex cases.
4142 2016-10-05 Richard Biener <rguenther@suse.de>
4145 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
4146 capture ids in c-exprs.
4148 2016-10-05 Richard Biener <rguenther@suse.de>
4151 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
4152 with types_match for GIMPLE code gen to handle type mismatched
4154 (dt_operand::gen): Adjust.
4155 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
4158 2016-10-05 Richard Biener <rguenther@suse.de>
4160 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
4162 2016-10-05 Richard Biener <rguenther@suse.de>
4165 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
4167 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
4169 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
4170 version check to protect only DW_TAG_imported_module generation.
4172 2016-10-05 Richard Biener <rguenther@suse.de>
4175 * match.pd (min(a,-a) -> -abs(a)): New pattern.
4177 2016-10-04 Ian Lance Taylor <iant@golang.org>
4179 * explow.c (allocate_dynamic_stack_space): Call
4180 do_pending_stack_adjust before handling flag_split_stack.
4182 2016-10-04 David Malcolm <dmalcolm@redhat.com>
4184 * genattrtab.c (make_internal_attr): Supply dummy column number to
4187 * genoutput.c (init_insn_for_nothing): Likewise.
4188 * gensupport.c (add_define_attr): Likewise.
4189 * read-md.c (message_at_1): Print column number.
4190 (fatal_with_file_and_line): Likewise.
4191 (rtx_reader::read_char): Track column numbers.
4192 (rtx_reader::unread_char): Likewise.
4193 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
4194 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
4195 (rtx_reader::handle_file): Initialize m_read_md_colno.
4196 (rtx_reader::get_current_location): Supply column number to
4198 * read-md.h (struct file_location): Add field "colno".
4199 (file_location::file_location): Likewise.
4200 (rtx_reader::get_colno): New accessor.
4201 (rtx_reader::m_read_md_colno): New field.
4202 (rtx_reader::m_last_line_colno): New field.
4204 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4206 * doc/extend.texi (Java Exceptions): Remove.
4207 (java_interface): Remove.
4209 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
4211 PR tree-optimization/77808
4212 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
4213 and addr are different before copying points-to information.
4215 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
4217 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
4218 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
4219 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
4220 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
4222 2016-10-04 Richard Biener <rguenther@suse.de>
4224 PR tree-optimization/77399
4225 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
4226 verify the target can convert.
4228 2016-10-04 Richard Biener <rguenther@suse.de>
4231 * explow.c (plus_constant): Verify the mode of the constant
4232 pool offset before calling plus_constant.
4234 2016-10-04 Richard Biener <rguenther@suse.de>
4237 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
4238 type support, mark with :C.
4239 (X / -X -> -1): Mark with :C.
4241 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4243 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
4244 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
4245 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
4246 * doc/tm.texi: Regenerated.
4247 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
4248 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
4249 * config/darwin.h (JCR_SECTION_NAME): Remove.
4250 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
4251 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
4252 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
4253 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
4254 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
4255 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
4257 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4259 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
4260 between "because" and "param" in dump message in call to fprintf.
4262 2016-10-03 Jeff Law <law@redhat.com>
4264 PR tree-optimization/71550
4265 PR tree-optimization/71403
4266 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
4267 (profitable_jump_thread_path): Also return boolean indicating if
4268 the realized path will create an irreducible loop.
4269 Remove loop depth tests from 71403.
4270 (fsm_find_control_statement_thread_paths): Remove loop depth tests
4271 from 71403. If threading will create an irreducible loop, then
4272 throw away loop iteration and related information.
4274 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
4276 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
4277 -Woverloaded-virtual checks for warning options.
4278 * configure: Regenerate.
4280 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4282 PR preprocessor/77699
4283 * input.c (maybe_grow): Don't allocate one byte extra headroom.
4284 (get_next_line): Return false on error.
4285 (read_next_line): Removed, use get_next_line instead.
4286 (read_line_num): Don't copy the line.
4287 (location_get_source_line): Don't use static data.
4288 (selftest::test_reading_source_line): Add more test cases.
4290 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4293 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4295 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4296 (noce_process_if_block): Use it.
4298 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4300 * doc/invoke.texi: Update -Wint-in-bool-context.
4302 2016-10-02 Jakub Jelinek <jakub@redhat.com>
4304 * dwarf2out.c (output_fde, output_call_frame_info,
4305 dwarf2out_do_cfi_startproc, set_indirect_string,
4306 gen_internal_sym, output_die, output_line_info): Use
4307 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
4308 ASM_GENERATE_INTERNAL_LABEL output.
4310 2016-10-01 Richard Biener <rguenther@suse.de>
4313 * genmatch.c (get_operand_type): Add operand position arg
4314 and handle COND_EXPR comparison operand with fixed boolean_type_node.
4315 (expr::gen_transform): Adjust.
4316 (dt_simplify::gen_1): Likewise.
4318 2016-10-01 Jakub Jelinek <jakub@redhat.com>
4320 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
4321 comments. Simplify asserts, remove unnecessary conditions.
4323 (*<code><mode>3): Likewise.
4325 2016-09-30 Jakub Jelinek <jakub@redhat.com>
4327 * doc/invoke.texi (-Wregister): Document.
4329 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4331 * configure.ac: Split CHECKING_P into CHECKING_P and
4332 ENABLE_EXTRA_CHECKING.
4333 * configure: Regenerated.
4334 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
4335 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
4337 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
4340 * gcc.c (process_command): For @filename handling, output
4341 the correct name if the file does not exist.
4343 2016-09-30 Marek Polacek <polacek@redhat.com>
4345 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
4346 * config/alpha/predicates.md: Likewise.
4348 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4350 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4351 (noce_process_if_block): Use it.
4353 2016-09-30 Martin Liska <mliska@suse.cz>
4355 * doc/invoke.texi: Document asan-use-after-return that
4356 it's disabled by default in runtime.
4358 2016-09-30 Richard Biener <rguenther@suse.de>
4360 * tree-vrp.c (intersect_ranges): If we failed to handle
4361 the intersection choose a constant singleton range if available.
4363 2016-09-30 Richard Biener <rguenther@suse.de>
4365 PR tree-optimization/77399
4366 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4367 float <-> int conversions.
4369 2016-09-30 Alan Modra <amodra@gmail.com>
4371 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
4373 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4375 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
4376 ext_level before calling CPUID with 0x80000008.
4377 Simplify xgetbv checks.
4379 2016-09-29 David Malcolm <dmalcolm@redhat.com>
4381 * Makefile.in (OBJS): Add print-rtl-function.o.
4382 * print-rtl-function.c: New file.
4383 * print-rtl.h (print_rtx_function): New decl.
4385 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4388 * config/i386/cpuid.h (__get_cpuid_count): New.
4389 (__get_cpuid): Rename __level to __leaf.
4391 2016-09-29 Marek Polacek <polacek@redhat.com>
4393 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
4395 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
4397 * builtins.c (expand_builtin_memcmp): don't swap args unless
4398 result is only being compared with zero.
4400 2016-09-29 Marek Polacek <polacek@redhat.com>
4402 * dwarf2out.c (loc_descriptor): Add fall through comment.
4403 (add_const_value_attribute): Likewise.
4405 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
4407 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
4408 with "v6t2". Move "arch" attribute above "pool_range".
4409 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
4411 (*thumb2_movhi_vfp): Likewise.
4412 (*arm_movhi_fp16): Likewise.
4413 (*thumb2_movhi_fp16): Likewise.
4414 (*arm_movsi_vfp): Remove "arch" attribute.
4415 (*thumb2_movsi_vfp): Likewise.
4417 2016-09-29 Martin Liska <mliska@suse.cz>
4419 * doc/extend.texi: Remove limitation of Objective C for
4420 __attribute__((constructor)) and __attribute__((destructor)).
4422 2016-09-29 Richard Biener <rguenther@suse.de>
4424 PR tree-optimization/77768
4425 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4426 Handle stores to readonly memory when removing redundant stores.
4428 2016-09-29 Richard Biener <rguenther@suse.de>
4431 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
4432 X / -X -> -1 simplifications.
4434 2016-09-29 Richard Biener <rguenther@suse.de>
4437 * match.pd: Add max(a,-a) -> abs(a) pattern.
4438 * tree-ssa-phiopt.c (minmax_replacement): Disable for
4439 HONOR_SIGNED_ZEROS types.
4441 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
4443 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
4444 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
4446 2016-09-29 Richard Biener <rguenther@suse.de>
4448 * tree-vrp.c (set_defs_to_varying): New helper avoiding
4449 writing to vr_const_varying.
4450 (vrp_initialize): Call it.
4451 (vrp_visit_stmt): Likewise.
4452 (evrp_dom_walker::before_dom_children): Likewise.
4454 2016-09-29 Richard Biener <rguenther@suse.de>
4456 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
4457 constructors with vector elements.
4459 2016-09-29 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/77768
4462 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
4463 with stores to a place we know has a constant value.
4465 2016-09-29 Alan Modra <amodra@gmail.com>
4467 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
4468 * doc/invoke.texi: Document it.
4469 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
4470 (rs6000_passes_float): Comment.
4471 (rs6000_passes_long_double): New static var.
4472 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
4473 (init_cumulative_args): Set up to emit fp .gnu_attribute for
4474 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
4475 to include fp values returned in vectors.
4476 Set rs6000_passes_long_double.
4477 (rs6000_function_arg_advance_1): Likewise for function args.
4478 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
4479 and SPE. Emit long double tag value too.
4480 (rs6000_opt_vars): Add gnu-attr.
4481 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
4482 * configure: Regenerate.
4483 * config.in: Regenerate.
4485 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4487 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
4489 (format_floating, format_string, format_directive,
4490 get_destination_size, pass_sprintf_length::handle_gimple_call):
4493 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4495 * gimple-ssa-sprintf.c: Fix comment formatting.
4496 (format_integer): Use is_gimple_assign.
4497 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
4498 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
4499 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
4500 (pass_sprintf_length::execute): Use is_gimple_call.
4502 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4504 * gimple-fold.c (gimple_fold_builtin): After failing to fold
4505 strchr, also try the generic folding.
4507 2016-09-28 Martin Sebor <msebor@redhat.com>
4510 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
4513 2016-09-28 Martin Sebor <msebor@redhat.com>
4516 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
4517 length modifier is not expected.
4518 (format_floating): Ignore l length modifier and fail gracefuly
4519 when it isn't one of the other expected ones.
4521 2016-09-28 Martin Sebor <msebor@redhat.com>
4524 * varasm.c (assemble_addr_to_section): Increase local buffer size.
4526 2016-09-27 Richard Biener <rguenther@suse.de>
4528 * dwarf2out.c (cu_die_list): New global.
4529 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
4530 main_comp_unit_die to cu_die_list if we created it.
4531 Move break_out_includes ...
4532 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
4535 2016-09-28 Richard Biener <rguenther@suse.de>
4537 * dwarf2out.c (struct die_struct): Add removed flag.
4538 (lookup_type_die): If the DIE is marked as removed, clear
4539 TYPE_SYMTAB_DIE and return NULL.
4540 (lookup_decl_die): If the DIE is marked as removed, remove it
4541 from the hash and return NULL.
4542 (mark_removed): New helper.
4543 (prune_unused_types_prune): Call it for removed DIEs.
4544 (gen_subprogram_die): Move the premark_used_types call to after
4545 DIEs for the functions scopes are generated.
4546 (process_scope_var): Do not re-create pruned types or type decls.
4547 Make sure to also re-parent type decls.
4548 (dwarf2out_finish): Move unused type pruning and debug_types
4550 (dwarf2out_early_finish): ... here.
4552 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4554 * config/arc/arc-c.c: New file.
4555 * config/arc/arc-c.def: Likewise.
4556 * config/arc/t-arc: Likewise.
4557 * config.gcc: Include arc-c.o as c and cpp object.
4558 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
4559 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
4560 arc_cpu_cpp_builtins.
4562 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4564 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
4565 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
4567 2016-09-28 Nathan Sidwell <nathan@acm.org>
4569 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
4572 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4574 PR tree-optimization/61056
4575 * gimple-fold.c (gimple_fold_builtin_strchr):
4576 New function to optimize strchr (s, 0) to strlen.
4577 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
4579 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
4581 PR tree-optimization/77724
4582 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
4583 Add tree_fits_shwi_p check.
4585 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4587 * auto-inc-dec.c (try_merge): Remove break after return.
4588 * cselib.c (autoinc_split): Likewise.
4589 * explow.c (promote_mode): Likewise.
4590 * fixed-value.c (fixed_arithmetic): Likewise.
4591 * hsa.c (hsa_internal_fn::get_arity): Likewise.
4592 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
4593 * trans-mem.c (get_attrs_for): Likewise.
4594 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
4595 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
4596 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
4597 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
4598 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
4599 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
4600 * config/cris/cris.c (cris_op_str): Likewise.
4601 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
4602 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
4604 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
4606 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
4607 IFN_GOACC_REDUCTION_CODES): New.
4608 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
4609 ifn_goacc_reduction_kind): Use them.
4610 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
4611 of internal functions, when applicable.
4613 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
4615 * config/mips/constraints.md (d): Fix documentation.
4616 * doc/md.texi (Machine Constraints): Update accordingly.
4618 2016-09-27 Richard Biener <rguenther@suse.de>
4620 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
4621 cur_line_info_table initialization ...
4622 (dwarf2out_assembly_start): ... here.
4624 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
4626 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
4627 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
4628 (*thumb2_movhi_vfp): Likewise.
4629 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
4630 template. Expand predicable attribute to mark VMOV.F16 as not
4631 predicable. Add "arch" attribute.
4632 (*thumb2_movhi_fp16): Likewise.
4633 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
4634 (*thumb2_movsi_vfp): Add "arch" attribute.
4636 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
4638 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
4641 2016-09-27 Marek Polacek <polacek@redhat.com>
4643 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
4646 * config/c6x/c6x.h: Adjust fall through comment.
4647 * config/sh/sh.c (final_prescan_insn): Likewise.
4648 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
4649 (visium_expand_fp_cstore): Likewise.
4651 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4653 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
4654 expected by -Wimplicit-fallthrough.
4655 (thumb1_size_rtx_costs): Likewise.
4656 (thumb2_reorg): Likewise.
4657 (tls_mentioned_p): Add "Fall through" comment.
4658 (thumb2_reorg): Likewise.
4659 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
4660 comment form expected by -Wimplicit-fallthrough.
4662 2016-09-27 Martin Liska <mliska@suse.cz>
4664 PR gcov-profile/46266
4665 * input.h (RESERVED_LOCATION_P): New macro.
4666 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
4667 instread of comparison with UNKNOWN_LOCATION.
4669 2016-09-27 Richard Biener <rguenther@suse.de>
4671 PR tree-optimization/77745
4672 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4673 When removing redundant stores make sure to check compatibility
4674 of the TBAA state for downstream accesses.
4675 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
4676 value-numbering virtual operands for store matches.
4678 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4681 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
4682 movrt patterns. Match them before anything else in the SET case.
4684 2016-09-27 Martin Liska <mliska@suse.cz>
4686 PR gcov-profile/7970
4687 PR gcov-profile/16855
4688 PR gcov-profile/44779
4689 * coverage.c (build_gcov_exit_decl): New function.
4690 (coverage_obj_init): Call the function and generate __gcov_exit
4692 * doc/gcov.texi: Document when __gcov_exit function is called.
4694 2016-09-27 Marek Polacek <polacek@redhat.com>
4697 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4698 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
4699 -Wno-error instead of -Wno-implicit-fallthrough.
4701 2016-09-27 Martin Liska <mliska@suse.cz>
4704 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
4706 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4708 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
4709 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
4710 comments. Remove break after return.
4711 (ix86_fp_compare_code_to_integer, has_dispatch,
4712 ix86_simd_clone_usable): Remove break after return.
4714 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4716 PR rlt-optimization/77714
4717 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
4720 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
4723 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
4724 extract_range_from_unary_expr to convert value_range.
4725 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
4726 (extract_range_from_unary_expr): This.
4727 * tree-vrp.h (extract_range_from_unary_expr): Declare.
4729 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
4731 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
4733 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4735 * config/i386/i386.c (ix86_print_operand)
4736 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
4737 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
4738 (epilogue_renumber): Likewise.
4740 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
4743 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
4744 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
4746 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4748 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4749 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
4750 is_mm_seq_cst, is_mm_sync): Move to ...
4751 * memmodel.h: This. New file.
4752 * builtins.c: Include memmodel.h.
4753 * optabs.c: Likewise.
4755 * config/aarch64/aarch64.c: Likewise.
4756 * config/alpha/alpha.c: Likewise.
4757 * config/arm/arm.c: Likewise.
4758 * config/i386/i386.c: Likewise.
4759 * config/ia64/ia64.c: Likewise.
4760 * config/mips/mips.c: Likewise.
4761 * config/rs6000/rs6000.c: Likewise.
4762 * config/sparc/sparc.c: Likewise.
4763 * genconditions.c: Include memmodel.h in generated file.
4764 * genemit.c: Likewise.
4765 * genoutput.c: Likewise.
4766 * genpeep.c: Likewise.
4767 * genpreds.c: Likewise.
4768 * genrecog.c: Likewise.
4770 2016-09-26 David Malcolm <dmalcolm@redhat.com>
4772 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
4773 "c" instead when parsing characters. Move operand parsing into...
4774 (read_rtx_operand): ...this new function, renaming "i" to "idx",
4775 and tightening the scope of various locals.
4777 2016-09-26 Liu Hao <lh_mouse@126.com>
4779 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
4781 2016-09-26 Marek Polacek <polacek@redhat.com>
4783 * system.h: Use __has_attribute to check whether the fallthrough
4784 attribute is supported.
4786 2016-09-26 Marek Polacek <polacek@redhat.com>
4788 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
4789 gimple_call_internal_p.
4790 * ipa-split.c (find_return_bb): Likewise.
4791 (execute_split_functions): Likewise.
4792 * omp-low.c (dump_oacc_loop_part): Likewise.
4793 (oacc_loop_xform_head_tail): Likewise.
4794 * predict.c (predict_loops): Likewise.
4795 * sanopt.c (pass_sanopt::execute): Likewise.
4796 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
4797 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
4798 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
4799 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
4800 (expand_ifn_va_arg): Likewise.
4801 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4802 (optimize_mask_stores): Likewise.
4803 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
4804 (vect_transform_stmt): Likewise.
4805 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
4806 * tsan.c (instrument_memory_accesses): Likewise.
4808 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4809 Alexander Monakov <amonakov@ispras.ru>
4811 * regrename.c (rename_chains): Check
4812 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
4813 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
4814 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4816 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4818 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
4819 (s390_sched_score): Likewise.
4821 2016-09-26 Martin Liska <mliska@suse.cz>
4823 * doc/gcov.texi: Update program output of gcov tool.
4825 2016-09-26 Martin Liska <mliska@suse.cz>
4827 PR gcov-profile/23332
4828 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
4829 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
4830 * value-prof.c (dump_histogram_value): Do not handle
4831 HIST_TYPE_CONST_DELTA.
4832 (stream_in_histogram_value): Likewise.
4833 (gimple_find_values_to_profile): Likewise.
4834 * value-prof.h (enum hist_type): Likewise.
4836 2016-09-26 Martin Liska <mliska@suse.cz>
4838 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
4839 from default sanitize recover values.
4840 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
4841 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
4842 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
4844 * opts.c (finish_options): Do a generic loop over options
4845 that can be recovered.
4846 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
4848 (common_handle_option): Likewise.
4849 * opts.h: Declare can_recover to sanitizer_opts_s.
4851 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
4853 * target.def(elf_flags_numeric): Change documentation to present tense.
4854 * doc/tm.texi: Regenerate.
4856 2016-09-26 Marek Polacek <polacek@redhat.com>
4859 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4860 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
4861 -Wno-switch-fallthrough.
4862 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
4863 (expand_builtin): Likewise.
4864 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
4865 * convert.c (convert_to_real_1): Likewise.
4866 (convert_to_integer_1): Likewise.
4867 * final.c (output_alternate_entry_point): Likewise.
4868 * genattrtab.c (make_canonical): Likewise.
4869 (write_test_expr): Likewise.
4870 * genpreds.c (validate_exp): Likewise.
4871 * gimple-ssa-strength-reduction.c
4872 (find_candidates_dom_walker::before_dom_children): Likewise.
4873 * godump.c (go_format_type): Likewise.
4874 * reload1.c (elimination_effects): Likewise.
4875 * resource.c (mark_referenced_resources): Likewise.
4876 (mark_set_resources): Likewise.
4877 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
4878 * varasm.c (output_addressed_constants): Likewise.
4880 2016-09-26 Marek Polacek <polacek@redhat.com>
4883 * common.opt (Wimplicit-fallthrough): New option.
4884 * doc/extend.texi: Document statement attributes and the fallthrough
4886 * doc/invoke.texi: Document -Wimplicit-fallthrough.
4887 * gimple.h (gimple_call_internal_p): New function.
4888 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
4889 (struct label_entry): New struct.
4890 (find_label_entry): New function.
4891 (case_label_p): New function.
4892 (collect_fallthrough_labels): New function.
4893 (last_stmt_in_scope): New function.
4894 (should_warn_for_implicit_fallthrough): New function.
4895 (warn_implicit_fallthrough_r): New function.
4896 (maybe_warn_implicit_fallthrough): New function.
4897 (expand_FALLTHROUGH_r): New function.
4898 (expand_FALLTHROUGH): New function.
4899 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
4900 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
4901 (gimplify_label_expr): New function.
4902 (gimplify_case_label_expr): Set location.
4903 (gimplify_expr): Call gimplify_label_expr.
4904 * internal-fn.c (expand_FALLTHROUGH): New function.
4905 * internal-fn.def (FALLTHROUGH): New internal function.
4906 * langhooks.c (lang_GNU_OBJC): New function.
4907 * langhooks.h (lang_GNU_OBJC): Declare.
4908 * system.h (gcc_fallthrough): Define.
4909 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
4910 * tree.h (FALLTHROUGH_LABEL_P): Define.
4912 2016-09-26 Richard Biener <rguenther@suse.de>
4914 * dwarf2out.c (stripattributes): Remove unused function.
4915 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
4916 Push dwarf_split_debug_info handling into init_sections_and_labels.
4917 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
4918 (DEBUG_MACRO_SECTION_FLAGS): Remove.
4919 (debug_macinfo_section_name): New global.
4920 (output_macinfo): Use debug_macinfo_section_name.
4921 (init_sections_and_labels): Split out section and label generation
4922 from dwarf2out_init. Set debug_macinfo_section_name.
4923 (dwarf2out_init): Move text section label generation and emission
4925 (dwarf2out_assembly_start): ... here.
4926 (dwarf2out_finish): Call init_sections_and_labels before DWARF
4929 2016-09-26 Richard Biener <rguenther@suse.de>
4932 * cgraphunit.c (analyze_functions): Before early removing
4933 global vars calls the late_global_decl debug handler mark
4934 the variable as readonly.
4936 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4939 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
4940 (sh_rtx_costs): Handle SET of movt and movrt patterns.
4941 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
4942 declare new overloads.
4943 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
4946 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4948 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
4949 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
4951 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
4953 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
4954 * configure: Regenerate.
4956 2016-09-24 Marek Polacek <polacek@redhat.com>
4959 * doc/invoke.texi: Document -Wbool-operation.
4961 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4963 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
4964 * config/rs6000/rs6000.c (expand_block_compare): New function used by
4965 cmpmemsi pattern to do builtin expansion of memcmp ().
4966 (compute_current_alignment): Add helper function for
4967 expand_block_compare used to compute alignment as the compare proceeds.
4968 (select_block_compare_mode): Used by expand_block_compare to select
4969 the mode used for reading the next chunk of bytes in the compare.
4970 (do_load_for_compare): Used by expand_block_compare to emit the load
4971 insns for the compare.
4972 (rs6000_emit_dot_insn): Moved this function to avoid a forward
4973 reference from expand_block_compare ().
4974 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
4975 prototype for this function.
4976 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
4977 target option for controlling how much code inline expansion of
4978 memcmp() will be allowed to generate.
4980 2016-09-23 Jakub Jelinek <jakub@redhat.com>
4982 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
4983 hook_bool_mode_false, hook_bool_mode_true,
4984 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
4985 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
4986 hook_bool_const_rtx_insn_const_rtx_insn_true,
4987 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
4988 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
4989 hook_bool_const_tree_hwi_hwi_const_tree_false,
4990 hook_bool_const_tree_hwi_hwi_const_tree_true,
4991 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
4992 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
4993 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
4994 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
4995 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
4996 hook_bool_const_tree_true, hook_bool_tree_tree_false,
4997 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
4998 hook_bool_rtx_insn_true, hook_bool_rtx_false,
4999 hook_bool_uintp_uintp_false,
5000 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
5001 hook_rtx_tree_int_null, hook_uint_mode_0,
5002 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
5003 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
5004 hook_constcharptr_const_rtx_insn_null,
5005 hook_constcharptr_const_tree_const_tree_null,
5006 hook_constcharptr_int_const_tree_null,
5007 hook_constcharptr_int_const_tree_const_tree_null,
5008 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
5009 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
5010 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
5012 * vec.h (vNULL): Extend comment to say = vNULL initialization
5013 isn't needed for static vars.
5015 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
5016 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
5017 = vNULL initialization of file scope vec.
5018 * passes.c (pass_tab, enabled_pass_uid_range_tab,
5019 disabled_pass_uid_range_tab): Likewise.
5020 * haifa-sched.c (sched_luids, h_i_d): Likewise.
5021 * tree-chkp-opt.c (check_infos): Likewise.
5022 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
5024 * vec.h (vnull::operator vec): Add constexpr keyword for
5027 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
5029 PR tree-optimization/77654
5030 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
5031 to duplicate_ssa_name_ptr_info.
5033 2016-09-23 David Malcolm <dmalcolm@redhat.com>
5035 PR preprocessor/77672
5036 * input.c (selftest::test_lexer_string_locations_simple): Update
5037 test to expect location information of the terminator character
5038 at the location of the final closing quote.
5039 (selftest::test_lexer_string_locations_hex): Likewise.
5040 (selftest::test_lexer_string_locations_oct): Likewise.
5041 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
5042 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
5043 (selftest::test_lexer_string_locations_ucn4): Likewise.
5044 (selftest::test_lexer_string_locations_ucn8): Likewise.
5045 (selftest::test_lexer_string_locations_u8): Likewise.
5046 (selftest::test_lexer_string_locations_utf8_source): Likewise.
5047 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
5048 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
5049 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
5050 (selftest::test_lexer_string_locations_macro): Likewise.
5051 (selftest::test_lexer_string_locations_long_line): Likewise.
5053 2016-09-23 Richard Biener <rguenther@suse.de>
5055 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
5056 virtual definition to virtual use if the call devirtualizes
5057 to a const or pure function.
5058 (visit_use): Also visit calls we can devirtualize to a
5059 const or pure function.
5061 2016-09-23 Richard Biener <rguenther@suse.de>
5063 PR tree-optimization/77697
5064 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
5065 signal error if we have sth ternary or unhandled.
5067 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5069 * config/arm/arm_neon.h (vabd_f16): New.
5103 (vcvt_f16_s16): New.
5104 (vcvt_f16_u16): New.
5105 (vcvt_s16_f16): New.
5106 (vcvt_u16_f16): New.
5107 (vcvtq_f16_s16): New.
5108 (vcvtq_f16_u16): New.
5109 (vcvtq_s16_f16): New.
5110 (vcvtq_u16_f16): New.
5111 (vcvta_s16_f16): New.
5112 (vcvta_u16_f16): New.
5113 (vcvtaq_s16_f16): New.
5114 (vcvtaq_u16_f16): New.
5115 (vcvtm_s16_f16): New.
5116 (vcvtm_u16_f16): New.
5117 (vcvtmq_s16_f16): New.
5118 (vcvtmq_u16_f16): New.
5119 (vcvtn_s16_f16): New.
5120 (vcvtn_u16_f16): New.
5121 (vcvtnq_s16_f16): New.
5122 (vcvtnq_u16_f16): New.
5123 (vcvtp_s16_f16): New.
5124 (vcvtp_u16_f16): New.
5125 (vcvtpq_s16_f16): New.
5126 (vcvtpq_u16_f16): New.
5127 (vcvt_n_f16_s16): New.
5128 (vcvt_n_f16_u16): New.
5129 (vcvtq_n_f16_s16): New.
5130 (vcvtq_n_f16_u16): New.
5131 (vcvt_n_s16_f16): New.
5132 (vcvt_n_u16_f16): New.
5133 (vcvtq_n_s16_f16): New.
5134 (vcvtq_n_u16_f16): New.
5148 (vmul_lane_f16): New.
5151 (vmulq_lane_f16): New.
5173 (vrsqrteq_f16): New.
5177 (vrsqrtsq_f16): New.
5181 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5183 * config.gcc (extra_headers): Add arm_fp16.h
5184 * config/arm/arm_fp16.h: New.
5185 * config/arm/arm_neon.h: Include "arm_fp16.h".
5187 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5189 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
5191 (vmulf): New (v8hf, v4hf variants).
5192 (vfma): New (v8hf, v4hf variants).
5193 (vfms): New (v8hf, v4hf variants).
5194 (vsub): New (v8hf, v4hf variants).
5195 (vcage): New (v8hf, v4hf variants).
5196 (vcagt): New (v8hf, v4hf variants).
5197 (vcale): New (v8hf, v4hf variants).
5198 (vcalt): New (v8hf, v4hf variants).
5199 (vceq): New (v8hf, v4hf variants).
5200 (vcgt): New (v8hf, v4hf variants).
5201 (vcge): New (v8hf, v4hf variants).
5202 (vcle): New (v8hf, v4hf variants).
5203 (vclt): New (v8hf, v4hf variants).
5204 (vceqz): New (v8hf, v4hf variants).
5205 (vcgez): New (v8hf, v4hf variants).
5206 (vcgtz): New (v8hf, v4hf variants).
5207 (vcltz): New (v8hf, v4hf variants).
5208 (vclez): New (v8hf, v4hf variants).
5209 (vabd): New (v8hf, v4hf variants).
5210 (vmaxf): New (v8hf, v4hf variants).
5211 (vmaxnm): New (v8hf, v4hf variants).
5212 (vminf): New (v8hf, v4hf variants).
5213 (vminnm): New (v8hf, v4hf variants).
5214 (vpmaxf): New (v4hf variant).
5215 (vpminf): New (v4hf variant).
5216 (vpadd): New (v4hf variant).
5217 (vrecps): New (v8hf, v4hf variants).
5218 (vrsqrts): New (v8hf, v4hf variants).
5219 (vabs): New (v8hf, v4hf variants).
5220 (vneg): New (v8hf, v4hf variants).
5221 (vrecpe): New (v8hf, v4hf variants).
5222 (vrnd): New (v8hf, v4hf variants).
5223 (vrnda): New (v8hf, v4hf variants).
5224 (vrndm): New (v8hf, v4hf variants).
5225 (vrndn): New (v8hf, v4hf variants).
5226 (vrndp): New (v8hf, v4hf variants).
5227 (vrndx): New (v8hf, v4hf variants).
5228 (vrsqrte): New (v8hf, v4hf variants).
5229 (vmul_lane): Add v4hf and v8hf variants.
5230 (vmul_n): Add v4hf and v8hf variants.
5231 (vext): New (v8hf, v4hf variants).
5232 (vcvts): New (v8hi, v4hi variants).
5233 (vcvts): New (v8hf, v4hf variants).
5234 (vcvtu): New (v8hi, v4hi variants).
5235 (vcvtu): New (v8hf, v4hf variants).
5236 (vcvts_n): New (v8hf, v4hf variants).
5237 (vcvtu_n): New (v8hi, v4hi variants).
5238 (vcvts_n): New (v8hi, v4hi variants).
5239 (vcvtu_n): New (v8hf, v4hf variants).
5240 (vbsl): New (v8hf, v4hf variants).
5241 (vcvtas): New (v8hf, v4hf variants).
5242 (vcvtau): New (v8hf, v4hf variants).
5243 (vcvtms): New (v8hf, v4hf variants).
5244 (vcvtmu): New (v8hf, v4hf variants).
5245 (vcvtns): New (v8hf, v4hf variants).
5246 (vcvtnu): New (v8hf, v4hf variants).
5247 (vcvtps): New (v8hf, v4hf variants).
5248 (vcvtpu): New (v8hf, v4hf variants).
5250 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5252 * config/arm/arm-builtins.c (hf_UP): New.
5254 (vfp_builtin_data): New. Update comment.
5255 (enum arm_builtins): Include "arm_vfp_builtins.def".
5256 (ARM_BUILTIN_VFP_PATTERN_START): New.
5257 (arm_init_vfp_builtins): New.
5258 (arm_init_builtins): Add arm_init_vfp_builtins.
5259 (arm_expand_vfp_builtin): New.
5260 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
5262 * config/arm/arm_vfp_builtins.def: New file.
5263 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
5264 (arm-builtins.o): Likewise.
5266 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5269 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
5270 from constant while creating value range.
5272 2016-09-23 Renlin Li <renlin.li@arm.com>
5274 * ira.c (ira): Move ira_use_lra_p initialization code to ...
5275 (ira_init_once): Here.
5277 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
5278 Jakub Jelinek <jakub@redhat.com>
5280 * hooks.h (hook_uint_uintp_false): Rename to...
5281 (hook_bool_uint_uintp_false): ... this.
5282 * hooks.c (hook_uint_uintp_false): Rename to...
5283 (hook_bool_uint_uintp_false): ... this.
5284 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
5285 instead of hook_uint_uintp_false.
5287 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5289 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
5290 (arm_init_builtins): Move body of a loop to the standalone
5291 function arm_init_neon_builtin.
5292 (arm_expand_neon_builtin_1): New. Update comment. Function body
5293 moved from arm_neon_builtin with some white-space fixes.
5294 (arm_expand_neon_builtin): Move code into the standalone function
5295 arm_expand_neon_builtin_1.
5297 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5299 * config/arm/iterators.md (VCVTHI): New.
5300 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
5304 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
5305 (V_HALF): Add V4HF. Fix white-space.
5306 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
5307 (V_s_elem): Likewise.
5308 (V_sz_elem): Fix white-space.
5309 (V_elem_ch): Likewise.
5311 (scalar_mul_constraint): Add V8HF and V4HF.
5312 (Is_float_mode): Fix white-space.
5313 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
5314 (q): Add HF. Fix white-space.
5317 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
5318 (neon_vfm_lane_as): New.
5319 * config/arm/neon.md (add<mode>3_fp16): New.
5320 (sub<mode>3_fp16): New.
5321 (mul<mode>3add<mode>_neon): New.
5322 (fma<VH:mode>4_intrinsic): New.
5323 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
5324 (fmsub<VH:mode>4_intrinsic): New.
5325 (<absneg_str><mode>2): New.
5326 (neon_v<absneg_str><mode>): New.
5327 (neon_v<fp16_rnd_str><mode>): New.
5328 (neon_vrsqrte<mode>): New.
5329 (neon_vpaddv4hf): New.
5330 (neon_vadd<mode>): New.
5331 (neon_vsub<mode>): New.
5332 (neon_vmulf<mode>): New.
5333 (neon_vfma<VH:mode>): New.
5334 (neon_vfms<VH:mode>): New.
5335 (neon_vc<cmp_op><mode>): New.
5336 (neon_vc<cmp_op><mode>_fp16insn): New
5337 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
5338 (neon_vca<cmp_op><mode>): New.
5339 (neon_vca<cmp_op><mode>_fp16insn): New.
5340 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
5341 (neon_vc<cmp_op>z<mode>): New.
5342 (neon_vabd<mode>): New.
5343 (neon_v<maxmin>f<mode>): New.
5344 (neon_vp<maxmin>fv4hf: New.
5345 (neon_<fmaxmin_op><mode>): New.
5346 (neon_vrecps<mode>): New.
5347 (neon_vrsqrts<mode>): New.
5348 (neon_vrecpe<mode>): New (VH variant).
5349 (neon_vdup_lane<mode>_internal): New.
5350 (neon_vdup_lane<mode>): New.
5351 (neon_vcvt<sup><mode>): New (VCVTHI variant).
5352 (neon_vcvt<sup><mode>): New (VH variant).
5353 (neon_vcvt<sup>_n<mode>): New (VH variant).
5354 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
5355 (neon_vcvt<vcvth_op><sup><mode>): New.
5356 (neon_vmul_lane<mode>): New.
5357 (neon_vmul_n<mode>): New.
5358 * config/arm/unspecs.md (UNSPEC_VCALE): New
5359 (UNSPEC_VCALT): New.
5360 (UNSPEC_VFMA_LANE): New.
5361 (UNSPECS_VFMS_LANE): New.
5363 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5365 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
5366 ("*extzv<mode><clobbercc_or_nocc>"):
5367 Correct a typo in a comment.
5369 ("*insv<mode>_zEC12", "*insv<mode>_z10")
5370 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
5371 ("*insv<mode>_zEC12_appendbitsleft")
5372 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
5373 ("*insv<mode>_z10_appendbitsleft"): Ditto.
5374 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
5375 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
5376 Provide pattern with operands switched.
5377 ("*pre_z10_extv<mode>"):
5378 Use new subst patterns.
5379 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
5380 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
5381 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
5382 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
5383 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
5384 ("*<risbg_n>_sidi_ior_and_lshiftrt")
5385 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
5387 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
5388 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5389 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
5391 ("SINT"): New mode_iterator with SI, HI, QI.
5392 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
5393 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
5396 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5398 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
5399 new interface of s390_contiguous_bitmask_p.
5400 ("contiguous_bitmask_nowrap_operand"): New predicate.
5401 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
5402 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
5403 of s390_contiguous_bitmask_p.
5404 ("NxxDw"): Rename NxxDq constraint to NxxDw.
5405 ("NxxSw"): New constraint.
5406 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
5407 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
5409 (s390_contiguous_bitmask_nowrap_p): Export.
5410 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
5411 former s390_contiguous_bitmask_p.
5412 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
5413 detect contiguous bit ranges with wraparound. Change signature to
5414 return START and END position instead of POS and LENGTH.
5415 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
5416 ranges with wraparound.
5417 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
5418 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
5419 Adapt to new signature of s390_contiguous_bitmask_p.
5421 2016-09-23 Bin Cheng <bin.cheng@arm.com>
5423 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
5424 (create_intersect_range_checks): New.
5425 (vect_create_cond_for_alias_checks): Call above function.
5427 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5429 * config/arm/iterators.md (Code iterators): Fix some white-space
5433 (FCVT): Moved from vfp.md.
5434 (VCVT_HF_US_N): New.
5435 (VCVT_SI_US_N): New.
5440 (FCVTI32typename): Moved from vfp.md.
5441 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
5442 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
5443 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
5444 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
5445 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
5447 (fp16_rnd_str): New.
5448 (fp16_rnd_insn): New.
5449 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
5450 (UNSPEC_VCVT_HF_U_N): New.
5451 (UNSPEC_VCVT_SI_S_N): New.
5452 (UNSPEC_VCVT_SI_U_N): New.
5453 (UNSPEC_VCVTH_S): New.
5454 (UNSPEC_VCVTH_U): New.
5455 (UNSPEC_VCVTA_S): New.
5456 (UNSPEC_VCVTA_U): New.
5457 (UNSPEC_VCVTM_S): New.
5458 (UNSPEC_VCVTM_U): New.
5459 (UNSPEC_VCVTN_S): New.
5460 (UNSPEC_VCVTN_U): New.
5461 (UNSPEC_VCVTP_S): New.
5462 (UNSPEC_VCVTP_U): New.
5463 (UNSPEC_VCVTP_S): New.
5464 (UNSPEC_VCVTP_U): New.
5466 (UNSPEC_VRNDA): New.
5467 (UNSPEC_VRNDI): New.
5468 (UNSPEC_VRNDM): New.
5469 (UNSPEC_VRNDN): New.
5470 (UNSPEC_VRNDP): New.
5471 (UNSPEC_VRNDX): New.
5472 * config/arm/vfp.md (<absneg_str>hf2): New.
5474 (neon_v<fp16_rnd_str>hf): New.
5475 (neon_vrndihf): New.
5480 (*mulsf3neghf_vfp): New.
5481 (*negmulhf3_vfp): New.
5482 (*mulsf3addhf_vfp): New.
5483 (*mulhf3subhf_vfp): New.
5484 (*mulhf3neghfaddhf_vfp): New.
5485 (*mulhf3neghfsubhf_vfp): New.
5488 (fmsubhf4_fp16): New.
5492 (neon_vsqrthf): New.
5493 (neon_vrsqrtshf): New.
5494 (FCVT): Move to iterators.md.
5495 (FCVTI32typename): Likewise.
5496 (neon_vcvth<sup>hf): New.
5497 (neon_vcvth<sup>si): New.
5498 (neon_vcvth<sup>_nhf_unspec): New.
5499 (neon_vcvth<sup>_nhf): New.
5500 (neon_vcvth<sup>_nsi_unspec): New.
5501 (neon_vcvth<sup>_nsi): New.
5502 (neon_vcvt<vcvth_op>h<sup>si): New.
5503 (neon_<fmaxmin_op>hf): New.
5505 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5507 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
5508 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
5509 ("*insv<mode>_zEC12_appendbitsleft")
5510 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
5511 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
5513 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5515 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
5516 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
5517 construct values without normalization.
5518 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
5519 static local lhs_ops to vNULL.
5521 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5522 Jiong Wang <jiong.wang@arm.com>
5524 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
5525 available when FP16 instructions are available.
5526 (output_move_vfp): Add support for 16-bit data moves.
5527 (arm_validize_comparison): Fix some white-space. Support HFmode
5528 by conversion to SFmode.
5529 * config/arm/arm.md (truncdfhf2): Fix a comment.
5530 (extendhfdf2): Likewise.
5532 (movsicc): Fix some white-space.
5534 (movsfcc): Fix some white-space.
5536 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
5537 instructions are available.
5538 (*thumb2_movhi_vfp): Likewise.
5539 (*arm_movhi_fp16): New.
5540 (*thumb2_movhi_fp16): New.
5541 (*movhf_vfp_fp16): New.
5542 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
5543 (*movhf_vfp): Likewise.
5544 (extendhfsf2): Enable when VFP FP16 instructions are available.
5545 (truncsfhf2): Enable when VFP FP16 instructions are available.
5547 2016-09-23 Martin Liska <mliska@suse.cz>
5549 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
5551 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5553 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
5555 (arm_evpc_neon_vtrn): Likewise.
5556 (arm_evpc_neon_vrev): Likewise.
5557 (arm_evpc_neon_vext): Likewise.
5558 * config/arm/arm_neon.h (vbsl_f16): New.
5562 (vdup_lane_f16): New.
5563 (vdupq_lane_f16): New.
5576 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
5577 (vdup_lane): New (v8hf, v4hf variants).
5578 (vext): New (v8hf, v4hf variants).
5579 (vbsl): New (v8hf, v4hf variants).
5580 * config/arm/iterators.md (VDQWH): New.
5582 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
5583 (Scalar_mul_8_16): Fix white-space.
5584 (Is_d_reg): Add V4HF and V8HF.
5585 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
5586 (neon_vdup_lane<mode>): New.
5587 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
5588 (*neon_vtrn<mode>_insn): Likewise.
5589 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
5590 (*neon_vzip<mode>_insn): Likewise
5591 (neon_vuzp<mode>_internal): Likewise.
5592 (*neon_vuzp<mode>_insn): Likewise
5593 * config/arm/vec-common.md (vec_perm_const<mode>): New.
5595 2016-09-23 Jiong Wang <jiong.wang@arm.com>
5596 Matthew Wahab <matthew.wahab@arm.com>
5598 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
5599 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
5600 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
5601 available. Also fix some white-space.
5602 * config/arm/vfp.md (*arm_movhi_vfp): New.
5603 (*thumb2_movhi_vfp): New.
5605 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5607 * config/arm/arm-c.c (arm_cpu_builtins): Define
5608 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
5609 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
5611 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5613 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
5614 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
5615 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
5616 arm_v8_2a_fp16_neon_hw.
5617 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
5620 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5622 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
5623 arm_fp16_alternative_ok and arm_fp16_none_ok.
5625 2016-09-23 Martin Liska <mliska@suse.cz>
5627 * ipa-icf.c (sem_variable::merge): Replace adress with address.
5629 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5631 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
5633 ("armv8.2-a+fp16"): New.
5634 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
5635 (FL2_FP16INST): New.
5636 (FL2_FOR_ARCH8_2A): New.
5637 * config/arm/arm-tables.opt: Regenerate.
5638 * config/arm/arm.c (arm_arch8_2): New.
5639 (arm_fp16_inst): New.
5640 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
5641 for incompatible fp16-format settings.
5642 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
5643 (TARGET_NEON_FP16INST): New.
5644 (arm_arch8_2): Declare.
5645 (arm_fp16_inst): Declare.
5646 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
5647 march=armv8.2-a and march=armv8.2-a+fp16.
5648 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
5650 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
5651 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
5653 2016-09-23 Martin Liska <mliska@suse.cz>
5655 * doc/extend.texi: Remove fused-madd from i386 target options.
5657 2016-09-23 Martin Liska <mliska@suse.cz>
5659 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5662 2016-09-23 Martin Liska <mliska@suse.cz>
5664 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5667 2016-09-23 Martin Liska <mliska@suse.cz>
5670 * config/i386/i386.c (ix86_option_override_internal): Change
5671 signature and return false when there's an error related to
5673 (release_options_strings): New function.
5674 (ix86_valid_target_attribute_tree): Call the function.
5676 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5678 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
5679 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
5680 (gen_hsa_ctor_assignment): Likewise.
5681 * print-tree.c (print_node): Likewise.
5682 * tree-dump.c (dequeue_and_dump): Likewise.
5683 * tree-sra.c (sra_modify_constructor_assign): Likewise.
5684 * expr.c (store_constructor): Likewise.
5685 * fold-const.c (operand_equal_p): Likewise.
5686 * tree-pretty-print.c (dump_generic_node): Likewise.
5687 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
5688 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
5690 2016-09-23 Richard Biener <rguenther@suse.de>
5692 * hooks.h (hook_uint_uintp_false): Declare.
5694 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5696 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
5697 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
5699 2016-09-22 Martin Sebor <msebor@redhat.com>
5702 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
5703 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
5704 (target_int_min): Correct computation.
5705 (format_integer): Use long long as the argument for the ll length
5707 (format_floating): Use target_int_max().
5708 (get_string_length): Same.
5709 (format_string): Avoid setting the bounded flag for strings
5711 (try_substitute_return_value): Avoid setting range info when
5712 the result isn't bounded.
5713 * varasm.c (assemble_name): Increase buffer size.
5715 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
5716 Terry Guo <terry.guo@arm.com>
5718 * target.def (elf_flags_numeric): New target hook.
5719 * targhooks.h (default_asm_elf_flags_numeric): New.
5720 * varasm.c (default_asm_elf_flags_numeric): New.
5721 (default_elf_asm_named_section): Use new target hook.
5722 * config/arm/arm.opt (mpure-code): New.
5723 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
5724 * config/arm/arm.c (arm_asm_init_sections): Add section
5725 attribute to default text section if -mpure-code.
5726 (arm_option_check_internal): Diagnose use of option with
5727 non supported targets and/or options.
5728 (arm_asm_elf_flags_numeric): New.
5729 (arm_function_section): New.
5730 (arm_elf_section_type_flags): New.
5731 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
5733 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
5734 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
5736 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
5738 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
5740 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5742 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
5743 * rtl.h: Adjust prototype.
5745 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5747 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
5748 (prev_active_insn): Likewise.
5749 (active_insn_p): Likewise.
5750 * rtl.h: Adjust prototypes.
5751 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5752 * config/arc/arc.md: Likewise.
5753 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
5754 (branch_needs_nop_p): Likewise.
5755 (use_skip_p): Likewise.
5756 * config/sh/sh.c (gen_block_redirect): Likewise.
5757 (split_branches): Likewise.
5758 * reorg.c (optimize_skip): Likewise.
5759 (fill_simple_delay_slots): Likewise.
5760 (fill_slots_from_thread): Likewise.
5761 (relax_delay_slots): Likewise.
5762 * resource.c (mark_target_live_regs): Likewise.
5764 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5766 * config/cris/cris.c (cris_asm_output_case_end): Change argument
5768 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
5769 (prev_nonnote_nondebug_insn): Likewise.
5770 * config/cris/cris-protos.h: Adjust prototype.
5772 * jump.c (rtx_renumbered_equal_p): Adjust.
5774 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5776 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
5777 * rtl.h: Adjust prototype.
5778 * config/sh/sh.md: Adjust.
5779 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5781 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5783 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
5784 (prev_nondebug_insn): Likewise.
5785 * loop-doloop.c (doloop_condition_get): Likewise.
5786 * rtl.h: Adjust prototype.
5787 * cfgloop.h: Likewise.
5789 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5791 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
5792 (prev_nonnote_insn): Likewise.
5793 * jump.c (reversed_comparison_code_parts): Likewise.
5794 (reversed_comparison): Likewise.
5795 * rtl.h: Adjust prototypes.
5796 * config/arc/arc.md: Adjust.
5797 * cse.c (find_comparison_args): Likewise.
5798 * reorg.c (redundant_insn): Change return type to rtx_insn *.
5799 (fix_reg_dead_note): Change argument type to rtx_insn *.
5800 (delete_prior_computation): Likewise.
5801 (delete_computation): Likewise.
5802 (fill_slots_from_thread): Adjust.
5803 (relax_delay_slots): Likewise.
5804 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5805 (simplify_relational_operation_1): Likewise.
5806 (simplify_ternary_operation): Likewise.
5808 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5810 * config/arc/arc-protos.h (arc_label_align): Change type of
5811 variables from rtx to rtx_insn *.
5812 * config/arc/arc.c (arc_label_align): Likewise.
5813 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
5814 * config/bfin/bfin.c (workaround_speculation): Likewise.
5815 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
5816 (find_last_same_clock): Likewise.
5817 (reorg_split_calls): Likewise.
5818 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
5819 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
5820 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
5821 (same_cmp_following_p): Likewise.
5822 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
5823 (same_cmp_following_p): Likwise.
5824 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
5825 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
5826 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
5827 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
5828 (rl78_alloc_physical_registers_cmp): Likewise.
5829 (rl78_alloc_physical_registers_umul): Likewise.
5830 (rl78_calculate_death_notes): Likewise.
5831 * config/s390/s390-protos.h (s390_label_align): Likewise.
5832 * config/s390/s390.c (s390_label_align): Likewise.
5833 * config/sh/sh.c (barrier_align): Likewise.
5834 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
5835 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
5836 (emit_cbcond_nop): Likewise.
5838 2016-09-22 Martin Liska <mliska@suse.cz>
5841 * ipa-icf.c (sem_variable::merge): Yield merge operation if
5842 alias address matters, not necessarily address of original.
5844 2016-09-22 Richard Biener <rguenther@suse.de>
5847 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
5850 2016-09-22 Richard Biener <rguenther@suse.de>
5853 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
5854 from constant folding results.
5855 (gimple_resimplify2): Likewise.
5856 (gimple_resimplify3): Likewise.
5858 2016-09-22 Richard Biener <rguenther@suse.de>
5861 * expr.c (expand_expr_real_1): Guard array access against negative
5864 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5866 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
5868 (format_floating): Likewise.
5870 2016-09-22 Jakub Jelinek <jakub@redhat.com>
5873 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
5874 for all IFN_GOMP_SIMD_* internal fns, not just for
5875 IFN_GOMP_SIMD_ORDERED_*.
5877 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5880 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
5881 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
5882 instructions when you want to invert the test.
5883 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
5884 correct order for XXSEL.
5885 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
5886 for using XSCMP{EQ,GT,GE}DP.
5888 2016-09-21 David Malcolm <dmalcolm@redhat.com>
5890 * genconstants.c (main): Introduce noop_reader and convert call
5891 to read_md_files to a method call.
5892 * genenums.c (main): Likewise.
5893 * genmddeps.c (main): Likewise.
5894 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
5895 rtx_reader_ptr->get_top_level_filename ().
5896 (write_tm_preds_h): Likewise.
5897 (write_insn_preds_c): Likewise.
5898 * gensupport.c (class gen_reader): New subclass of rtx_reader.
5899 (rtx_handle_directive): Convert to...
5900 (gen_reader::handle_unknown_directive): ...this.
5901 (init_rtx_reader_args_cb): Convert return type from bool to
5902 rtx_reader *. Create a gen_reader instance, using it for the
5903 call to read_md_files. Return it if no errors occur.
5904 (init_rtx_reader_args): Convert return type from bool to
5906 * gensupport.h (init_rtx_reader_args_cb): Likewise.
5907 (init_rtx_reader_args_cb): Likewise.
5908 * read-md.c (struct file_name_list): Move to class rtx_reader.
5909 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
5910 (read_md_filename): Delete in favor of
5911 rtx_reader::m_read_md_filename.
5912 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
5913 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
5914 (base_dir): Delete in favor of rtx_reader::m_base_dir.
5915 (first_dir_md_include): Delete in favor of
5916 rtx_reader::m_first_dir_md_include.
5917 (last_dir_md_include_ptr): Delete in favor of
5918 rtx_reader::m_last_dir_md_include_ptr.
5919 (max_include_len): Delete.
5920 (rtx_reader_ptr): New.
5921 (fatal_with_file_and_line): Use get_filename and get_lineno
5922 accessors of rtx_reader_ptr.
5923 (require_char_ws): Likewise.
5924 (rtx_reader::read_char): New method, based on ::read_char.
5925 (rtx_reader::unread_char): New method, based on ::unread_char.
5926 (read_escape): Use get_filename and get_lineno accessors of
5928 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
5929 (read_string): Use get_filename and get_lineno accessors of
5931 (rtx_reader::rtx_reader): New ctor.
5932 (rtx_reader::~rtx_reader): New dtor.
5933 (handle_include): Convert from a function to...
5934 (rtx_reader::handle_include): ...this method, converting
5935 handle_directive from a callback to a virtual function.
5936 (handle_file): Likewise, converting to...
5937 (rtx_reader::handle_file): ...this method.
5938 (handle_toplevel_file): Likewise, converting to...
5939 (rtx_reader::handle_toplevel_file): ...this method.
5940 (rtx_reader::get_current_location): New method.
5941 (parse_include): Convert from a function to...
5942 (rtx_reader::add_include_path): ...this method, dropping redundant
5943 update to unused max_include_len.
5944 (read_md_files): Convert from a function to...
5945 (rtx_reader::read_md_files): ...this method, converting
5946 handle_directive from a callback to a virtual function.
5947 (noop_reader::handle_unknown_directive): New method.
5948 * read-md.h (directive_handler_t): Delete this typedef.
5950 (read_md_file): Delete.
5951 (read_md_lineno): Delete.
5952 (read_md_filename): Delete.
5953 (class rtx_reader): New class.
5954 (rtx_reader_ptr): New decl.
5955 (class noop_reader): New subclass of rtx_reader.
5956 (read_char): Reimplement in terms of rtx_reader::read_char.
5957 (unread_char): Reimplement in terms of rtx_reader::unread_char.
5958 (read_md_files): Delete.
5959 * read-rtl.c (read_rtx_code): Update for deletion of globals
5960 read_md_filename and read_md_lineno.
5962 2016-09-21 Jason Merrill <jason@redhat.com>
5964 * input.h (from_macro_definition_at): New.
5966 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
5968 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
5970 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5972 PR tree-optimization/77550
5973 * tree-vect-stmts.c (create_array_ref): Change parameters.
5974 (get_group_alias_ptr_type): New function.
5975 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
5977 2016-09-21 Marek Polacek <polacek@redhat.com>
5979 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5980 Add falls through comment.
5982 2016-09-21 Richard Biener <rguenther@suse.de>
5984 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
5985 (replace_child): Likewise.
5986 (remove_child_TAG): Adjust.
5987 (move_marked_base_types): Likewise.
5988 (prune_unused_types_prune): Clear die_sib of removed children.
5990 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
5993 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
5994 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
5996 2016-09-21 Richard Biener <rguenther@suse.de>
5998 PR tree-optimization/77648
5999 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
6001 (make_transitive_closure_constraints): Adjust comment.
6002 (make_any_offset_constraints): New function.
6003 (handle_rhs_call): Make sure to first expand a pointer to all
6004 subfields before transitively closing it.
6005 (handle_const_call): Likewise. Properly expand returned
6007 (handle_pure_call): Likewise.
6009 2016-09-21 Richard Biener <rguenther@suse.de>
6010 Jakub Jelinek <jakub@redhat.com>
6012 PR tree-optimization/77621
6013 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
6014 group at non-vectorizable stmts.
6016 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6018 PR tree-optimization/72835
6019 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
6020 (make_new_ssa_for_all_defs): Likewise.
6021 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
6023 2016-09-20 Martin Sebor <msebor@redhat.com>
6026 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
6027 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
6028 * config/linux.c (gnu_libc_printf_pointer_format): New function.
6029 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
6030 * config/sol2.c (solaris_printf_pointer_format): New function.
6031 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
6033 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
6034 * doc/tm.texi: Regenerate.
6035 * gimple-fold.h (get_range_strlen): New function.
6036 (get_maxval_strlen): Declare existing function.
6037 * gimple-fold.c (get_range_strlen): Add arguments and compute both
6038 maximum and minimum.
6039 (get_range_strlen): Define overload.
6040 (get_maxval_strlen): Adjust.
6041 * gimple-ssa-sprintf.c: New file and pass.
6042 * passes.def (pass_sprintf_length): Add new pass.
6043 * targhooks.h (default_printf_pointer_format): Declare new function.
6044 (gnu_libc_printf_pointer_format): Same.
6045 (solaris_libc_printf_pointer_format): Same.
6046 * targhooks.c (default_printf_pointer_format): Define new function.
6047 * tree-pass.h (make_pass_sprintf_length): Declare new function.
6048 * print-tree.c: Increase buffer size.
6050 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6052 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
6054 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6056 * common.opt: New option -fipa-vrp.
6057 * ipa-cp.c (ipa_get_vr_lat): New.
6058 (ipcp_vr_lattice::print): Likewise.
6059 (print_all_lattices): Call ipcp_vr_lattice::print.
6060 (ipcp_vr_lattice::meet_with): New.
6061 (ipcp_vr_lattice::meet_with_1): Likewise.
6062 (ipcp_vr_lattice::top_p): Likewise.
6063 (ipcp_vr_lattice::bottom_p): Likewsie.
6064 (ipcp_vr_lattice::set_to_bottom): Likewise.
6065 (set_all_contains_variable): Call VR set_to_bottom.
6066 (initialize_node_lattices): Init VR lattices.
6067 (propagate_vr_accross_jump_function): New.
6068 (propagate_constants_accross_call): Call
6069 propagate_vr_accross_jump_function.
6070 (ipcp_store_vr_results): New.
6071 (ipcp_driver): Handle VR.
6072 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
6073 (ipa_set_jf_unknown): Likewise.
6074 (ipa_compute_jump_functions_for_edge): Likewise.
6075 (ipa_node_params_t::duplicate): Likewise.
6076 (ipa_write_jump_function): Likewise.
6077 (ipa_read_jump_function): Likewise.
6078 (write_ipcp_transformation_info): Likewise.
6079 (read_ipcp_transformation_info): Likewise.
6080 (ipcp_update_vr): New.
6081 (ipcp_transform_function): Handle VR.
6082 * ipa-prop.h (struct ipa_vr): New.
6083 * cgraph.c: Include tree-vrp.h.
6084 * cgraphunit.c: Likewise.
6085 * ipa-utils.c: Likewise.
6088 * toplev.c: Likewise.
6089 * ipa-devirt.c: Likewise.
6090 * ipa-inline-transform.c: Likewise.
6091 * ipa-inline.c: Likewise.
6092 * ipa-profile.c: Likewise.
6094 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6096 * doc/invoke.texi: Document -fdump-tree-evrp.
6097 * passes.def: Define new pass_early_vrp.
6098 * timevar.def: Define new TV_TREE_EARLY_VRP.
6099 * tree-pass.h (make_pass_early_vrp): New.
6100 * tree-ssa-propagate.c: Make replace_uses_in non static.
6101 * tree-ssa-propagate.h: Export replace_uses_in.
6102 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
6103 (extract_range_from_assert): Factor out
6104 extract_range_for_var_from_comparison_expr.
6105 (vrp_initialize_lattice): New.
6106 (vrp_initialize): Factor out vrp_initialize_lattice.
6107 (vrp_valueize): Fix it to reject complex value ranges.
6108 (vrp_free_lattice): New.
6109 (evrp_dom_walker::before_dom_children): Likewise.
6110 (evrp_dom_walker::after_dom_children): Likewise.
6111 (evrp_dom_walker::push_value_range): Likewise.
6112 (evrp_dom_walker::pop_value_range): Likewise.
6113 (execute_early_vrp): Likewise.
6114 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
6115 (make_pass_early_vrp): New.
6117 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6119 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
6120 instead of exact_log2.
6122 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6125 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
6126 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
6127 (ix86_add_stmt_cost): Penalize DFmode vector operations
6128 for !TARGET_VECTORIZE_DOUBLE.
6130 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
6132 * doc/invoke.texi (Warning Options): Simplify language.
6133 (Optimize Options): Complete sentence.
6135 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
6137 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
6140 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6143 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
6144 inits on power8 and above, use the VMRGEW instruction instead of a
6147 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
6148 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
6151 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6153 * config/aarch64/arm_neon.h
6154 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
6155 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
6156 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
6158 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6160 * config/var/vax.h (ELIMINABLE_REGS): Define.
6161 (INITIAL_ELIMINATION_OFFSET): Define.
6163 2016-09-20 Jakub Jelinek <jakub@redhat.com>
6166 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
6167 cast to void * if the cast is from some other pointer type.
6169 2016-09-20 Richard Biener <rguenther@suse.de>
6171 PR tree-optimization/77646
6172 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
6175 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6177 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
6178 attributes to all inlined functions and make them extern.
6180 2016-09-20 Richard Biener <rguenther@suse.de>
6182 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
6184 * debug.c (do_nothing_debug_hooks): Adjust.
6185 * dbxout.c (dbx_debug_hooks): Likewise.
6186 * sdbout.c (sdb_debug_hooks): Likewise.
6187 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
6188 (dwarf2out_finish): Move producer, filename and
6190 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
6191 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
6193 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6196 * doc/invoke.texi: Document -Wint-in-bool-context.
6199 * dwarf2out.c (output_loc_operands): Fix an assertion.
6201 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6203 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
6204 (CR_DECIMAL_DIG): New macro.
6206 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6208 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
6211 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
6213 PR rtl-optimization/77416
6214 * lra-remat.c (operand_to_remat): Process hard coded insn
6217 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6219 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
6220 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
6222 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
6224 * target.def (lra_p): Wordsmithing.
6225 * doc/tm.texi: Regenerate.
6227 2016-09-19 Jakub Jelinek <jakub@redhat.com>
6228 Jan Hubicka <jh@suse.cz>
6231 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
6232 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
6233 Call ultimate_alias_target just once, not up to 4 times.
6235 2016-09-19 Richard Biener <rguenther@suse.de>
6237 * dwarf2out.c (early_dwarf_finished): New global.
6238 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
6240 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
6241 if called from LTO exit early.
6242 (dwarf2out_late_global_decl): When being during the early
6243 debug phase do not add locations but only const value attributes.
6244 Adjust the way we generate early DIEs for LTO.
6246 2016-09-19 Richard Biener <rguenther@suse.de>
6249 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
6250 proper niter to bound the loops.
6252 2016-09-19 Richard Biener <rguenther@suse.de>
6254 PR tree-optimization/77514
6255 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
6256 search for folded stmt.
6258 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
6260 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
6261 * tree-pass.h (make_pass_early_thread_jumps): Declare.
6262 * tree-ssa-threadbackward.c (fsm_find_thread_path,
6263 fsm_find_thread_path, profitable_jump_thread_path,
6264 fsm_find_control_statement_thread_paths,
6265 find_jump_threads_backwards): Add speed_p parameter.
6266 (pass_data_early_thread_jumps): New pass.
6267 (make_pass_early_thread_jumps): New function.
6269 2016-09-17 Andreas Schwab <schwab@suse.de>
6271 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
6272 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6274 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
6276 * recog.c (rest_of_handle_split_after_reload): Delete.
6277 (pass_split_after_reload::gate): New method.
6278 (pass_split_after_reload::execute): Call split_all_insns directly.
6280 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
6282 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
6283 parameters for functions taking long long arguments.
6285 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6288 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
6289 splat with truncate.
6291 2016-09-16 Jason Merrill <jason@redhat.com>
6293 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
6295 * hwint.c (exact_log2): Use pow2p_hwi.
6296 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
6297 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
6298 * builtins.c (get_object_alignment_2, get_object_alignment)
6299 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
6301 * calls.c (compute_argument_addresses, store_one_arg): Use
6303 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
6304 * combine.c (force_to_mode): Use least_bit_hwi.
6305 (contains_muldiv, find_split_point, combine_simplify_rtx)
6306 (simplify_if_then_else, simplify_set, force_to_mode)
6307 (if_then_else_cond, simplify_and_const_int_1)
6308 (simplify_compare_const): Use pow2p_hwi.
6309 * cse.c (fold_rtx): Use pow2p_hwi.
6310 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
6312 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
6313 (init_expmed_one_conv): Use pow2p_hwi.
6314 * expr.c (is_aligning_offset): Use pow2p_hwi.
6315 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
6316 (fold_binary_loc): Use pow2p_hwi.
6317 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
6318 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
6319 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
6320 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
6322 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
6323 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
6324 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
6325 * omp-low.c (oacc_loop_fixed_partitions)
6326 (oacc_loop_auto_partitions): Use least_bit_hwi.
6327 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
6328 * stor-layout.c (place_field): Use least_bit_hwi.
6329 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
6330 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
6331 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
6332 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
6333 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
6334 * tree-vect-data-refs.c (vect_analyze_group_access_1)
6335 (vect_grouped_store_supported, vect_grouped_load_supported)
6336 (vect_permute_load_chain, vect_shift_permute_load_chain)
6337 (vect_transform_grouped_load): Use pow2p_hwi.
6338 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
6339 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
6340 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
6342 * tsan.c (instrument_expr): Use least_bit_hwi.
6343 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
6345 2016-09-16 Andreas Schwab <schwab@suse.de>
6347 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
6349 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6351 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6354 * combine.c (rest_of_handle_combine): If any edges have been purged,
6355 free dominators if available.
6357 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6358 Eric Botcazou <ebotcazou@adacore.com>
6361 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
6362 through into expand_addsub_overflow after expand_neg_overflow.
6364 2016-09-15 David Malcolm <dmalcolm@redhat.com>
6366 * diagnostic-show-locus.c
6367 (selftest::test_fixit_insert_containing_newline): New function.
6368 (selftest::test_fixit_replace_containing_newline): New function.
6369 (selftest::diagnostic_show_locus_c_tests): Call the above.
6371 2016-09-15 Bin Cheng <bin.cheng@arm.com>
6373 PR tree-optimization/77503
6374 * tree-vect-loop.c (vectorizable_reduction): Record reduction
6375 code for CONST_COND_REDUCTION at analysis stage and use it at
6377 * tree-vectorizer.h (struct _stmt_vec_info): New field.
6378 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
6379 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
6382 2016-09-15 Richard Biener <rguenther@suse.de>
6385 * fold-const.c (split_tree): Do not split constant ~X.
6387 2016-09-15 Jakub Jelinek <jakub@redhat.com>
6389 PR rtl-optimization/77425
6390 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
6394 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
6395 use %qs instead of %s where desirable, use argument instead of arg in
6396 the diagnostic wording, add list of supported strategies and
6398 (ix86_option_override_internal): Emit target("m...") instead of
6399 option("m...") in the diagnostic. Use %qs instead of %s in invalid
6400 -march/-mtune option diagnostic. Add list of supported arches/tunings
6401 and spellcheck hint. Remove prefix, suffix and sw variables, use
6402 main_args_p ? "..." : "..." in diagnostics to make translation
6405 2016-09-15 Richard Biener <rguenther@suse.de>
6407 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
6408 extra offset argument.
6409 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
6410 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
6411 to reflect new offset parameter.
6412 * doc/tm.texi: Regenerate.
6413 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6414 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
6416 (darwin_asm_output_dwarf_offset): Likewise.
6417 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
6419 (darwin_asm_output_dwarf_offset): Pass offset argument through.
6420 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6421 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6423 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
6426 * ipa-icf.c (set_alias_uids): New function.
6427 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
6428 all the merged variable's referring aliases.
6430 2016-09-15 Richard Biener <rguenther@suse.de>
6432 PR tree-optimization/77514
6433 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
6434 only forced_stmts sequence.
6436 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
6438 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
6439 * cfgexpand.c (update_alias_info_with_stack_vars): Use
6440 FOR_EACH_SSA_NAME to iterate over SSA variables.
6441 (pass_expand::execute): Likewise.
6442 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
6443 * tree-cfg.c (dump_function_to_file): Likewise.
6444 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
6445 (update_ssa): Likewise.
6446 * tree-ssa-alias.c (dump_alias_info): Likewise.
6447 * tree-ssa-ccp.c (ccp_finalize): Likewise.
6448 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
6449 (create_outofssa_var_map): Likewise.
6450 (coalesce_ssa_name): Likewise.
6451 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
6452 * tree-ssa-pre.c (compute_avail): Likewise.
6453 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6454 (scc_vn_restore_ssa_info): Likewise.
6455 (free_scc_vn): Likwise.
6456 (run_scc_vn): Likewise.
6457 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
6458 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
6459 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6460 * tree-ssa.c (verify_ssa): Likewise.
6462 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
6464 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
6465 and mips64r2 as default 32-bit and 64-bit architectures.
6466 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
6467 as default 32-bit and 64-bit architectures.
6469 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
6471 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
6474 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6476 * target.def (lra_p): Change commentary (for the manual) for the
6478 * doc/tm.texi: Regenerate.
6480 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6482 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
6483 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
6484 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
6485 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
6487 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6489 * targhooks.c (default_lra_p): Return true instead of false.
6491 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6493 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
6494 hook_bool_void_false.
6495 * config/avr/avr.c: Ditto.
6496 * config/bfin/bfin.c: Ditto.
6497 * config/c6x/c6x.c: Ditto.
6498 * config/cr16/cr16.c: Ditto.
6499 * config/cris/cris.c: Ditto.
6500 * config/epiphany/epiphany.c: Ditto.
6501 * config/fr30/fr30.c: Ditto.
6502 * config/frv/frv.c: Ditto.
6503 * config/h8300/h8300.c: Ditto.
6504 * config/ia64/ia64.c: Ditto.
6505 * config/iq2000/iq2000.c: Ditto.
6506 * config/lm32/lm32.c: Ditto.
6507 * config/m32c/m32c.c: Ditto.
6508 * config/m32r/m32r.c: Ditto.
6509 * config/m68k/m68k.c: Ditto.
6510 * config/mcore/mcore.c: Ditto.
6511 * config/microblaze/microblaze.c: Ditto.
6512 * config/mmix/mmix.c: Ditto.
6513 * config/mn10300/mn10300.c: Ditto.
6514 * config/moxie/moxie.c: Ditto.
6515 * config/msp430/msp430.c: Ditto.
6516 * config/nios2/nios2.c: Ditto.
6517 * config/nvptx/nvptx.c: Ditto.
6518 * config/pa/pa.c: Ditto.
6519 * config/pdp11/pdp11.c: Ditto.
6520 * config/rl78/rl78.c: Ditto.
6521 * config/sparc/sparc.c: Ditto.
6522 * config/spu/spu.c: Ditto.
6523 * config/stormy16/stormy16.c: Ditto.
6524 * config/tilegx/tilegx.c: Ditto.
6525 * config/tilepro/tilepro.c: Ditto.
6526 * config/v850/v850.c: Ditto.
6527 * config/vax/vax.c: Ditto.
6528 * config/visium/visium.c: Ditto.
6529 * config/xtensa/xtensa.c: Ditto.
6531 2016-09-14 Jakub Jelinek <jakub@redhat.com>
6534 * tsan.c: Include target.h.
6535 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
6536 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
6537 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
6538 BUILT_IN_ATOMIC_TEST_AND_SET entries.
6539 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
6541 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6542 Martin Liska <mliska@suse.cz>
6545 * predict.c (force_edge_cold): Add braces to a condition.
6547 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
6549 PR rtl-optimization/77289
6550 * lra-constraints.c (get_final_hard_regno): Removed.
6551 (get_hard_regno): Add new parameter final_p.
6552 (get_reg_class): Directly call lra_get_elimination_hard_regno.
6553 (operands_match_p): Adjust call to get_hard_regno.
6554 (uses_hard_regs_p): Likewise.
6555 (process_alt_operands): Likewise.
6557 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
6560 * config/msp430/msp430.c (msp430_start_function): Emit an error
6561 if a function is both weak and specifies an interrupt number.
6563 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6565 PR tree-optimization/77454
6566 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
6567 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
6570 2016-09-13 Tamar Christina <tamar.christina@arm.com>
6572 * config/aarch64/aarch64-builtins.c
6573 (aarch64_init_simd_builtins): Fix builtin type signature printing.
6575 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
6577 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
6578 SFmode and SCmode arguments by reference.
6580 2016-09-13 David Malcolm <dmalcolm@redhat.com>
6582 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
6584 (selftest::test_one_liner_fixit_insert_before): ...this, and update
6585 for renaming of add_fixit_insert to add_fixit_insert_before.
6586 (selftest::test_one_liner_fixit_insert_after): New function.
6587 (selftest::test_one_liner_fixit_validation_adhoc_locations):
6588 Update for renaming of add_fixit_insert to add_fixit_insert_before.
6589 (selftest::test_one_liner_many_fixits): Likewise.
6590 (selftest::test_diagnostic_show_locus_one_liner): Update for
6591 renaming, call new test function.
6592 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
6593 renaming of add_fixit_insert to add_fixit_insert_before.
6594 (selftest::test_fixit_consolidation): Likewise.
6595 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
6597 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
6598 (selftest::test_applying_fixits_insert_before): ...this.
6599 (selftest::test_applying_fixits_insert): Update for renaming of
6600 add_fixit_insert to add_fixit_insert_before.
6601 (selftest::test_applying_fixits_insert_after): New function.
6602 (selftest::test_applying_fixits_insert_after_at_line_end): New
6604 (selftest::test_applying_fixits_insert_after_failure): New function.
6605 (selftest::test_applying_fixits_multiple): Update for renaming of
6606 add_fixit_insert to add_fixit_insert_before.
6607 (selftest::change_line): Likewise.
6608 (selftest::test_applying_fixits_unreadable_file): Likewise.
6609 (selftest::test_applying_fixits_line_out_of_range): Likewise.
6610 (selftest::test_applying_fixits_column_validation): Likewise.
6611 (selftest::test_applying_fixits_column_validation): Likewise.
6612 (selftest::edit_context_c_tests): Update for renamed test function;
6613 call new test functions.
6615 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
6617 PR tree-optimization/77536
6618 PR rtl-optimization/68212
6619 * config/rs6000/rs6000.md (div->recip splitter): Remove
6620 optimize_insn_for_speed_p condition.
6622 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
6624 * optabs.c (prepare_cmp_insn): Update documentation comment.
6626 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6627 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6630 * opts.h (candidates_list_and_hint): Declare.
6631 * opts-common.c (candidates_list_and_hint): New function.
6632 (cmdline_handle_error): Use it.
6634 2016-09-12 David Malcolm <dmalcolm@redhat.com>
6636 * edit-context.c (edited_line::get_len): New accessor.
6637 (edited_file::print_diff): Split out hunk-printing into...
6638 (edited_file::print_diff_hunk): New method.
6639 (edited_file::print_diff_line): New method.
6641 2016-09-12 Andrew Pinski <apinski@cavium.com>
6643 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
6645 * config/aarch64/aarch64.c (thunderx_tunings): Enable
6646 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
6647 (aarch64_operands_ok_for_ldpstp): Return false if
6648 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
6649 was SImode and the alignment is less than 8 byte.
6650 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6652 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
6655 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
6657 2016-09-12 Marek Polacek <polacek@redhat.com>
6659 * doc/extend.texi: Use lowercase "boolean".
6660 * doc/invoke.texi: Likewise.
6661 * doc/md.texi: Likewise.
6662 * target.def: Likewise.
6663 * doc/tm.texi: Regenerated.
6665 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6668 * expmed.c (synth_mult): Delete duplicate mode check.
6670 2016-09-10 Tom de Vries <tom@codesourcery.com>
6673 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
6675 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
6676 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
6678 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
6680 PR rtl-optimization/77289
6681 * lra-constraints.c (get_final_hard_regno): Add support for non hard
6682 register numbers. Remove support for subregs.
6683 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
6684 (get_reg_class): Delete removed get_final_hard_regno() argument.
6685 (uses_hard_regs_p): Call get_final_hard_regno().
6687 2016-09-09 Martin Sebor <msebor@redhat.com>
6691 * pretty-print.c (pp_quoted_string): New function.
6692 (pp_format): Call it for %c and %s directives.
6694 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
6696 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
6697 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
6698 INITIAL_ELIMINATION_OFFSET) : Update documentation.
6699 * target.def (frame_pointer_required, can_eliminate): Likewise.
6700 * doc/tm.texi: Regenerated.
6701 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
6703 * df-scan.c (df_hard_reg_init): Likewise.
6704 * ira.c (ira_setup_eliminable_regset): Likewise.
6705 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
6706 init_elim_table): Likewise.
6707 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
6708 set_initial_elim_offsets, update_eliminables,
6709 init_elim_table): Likewise.
6710 * rtlanal.c (get_initial_register_offset): Likewise.
6711 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6712 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6713 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6714 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6715 * config/fr30/fr30.h: Fix comment.
6716 * config/frv/frv.c: Likewise.
6717 * config/frv/frv.h: Likewise.
6718 * config/ft32/ft32.h: Likewise.
6719 * config/visium/visium.h: Likewise.
6720 * config/pa/pa64-linux.h: Likewise.
6721 * config/v850/v850.h: Likewise.
6722 * config/cris/cris.c: Likewise.
6723 * config/ia64/ia64.h: Likewise.
6724 * config/moxie/moxie.h: Likewise.
6725 * config/m32r/m32r.h: Likewise.
6727 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6730 * config.in: Regenerate.
6731 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
6733 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
6734 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
6735 static-libmpxwrappers case.
6736 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
6737 MPX_LD_AS_NEEDED_GUARD_POP.
6738 * configure: Regenerate.
6739 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
6740 defined if linker support "--push-state"/"--pop-state".
6742 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6744 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
6746 2016-09-09 Joseph Myers <joseph@codesourcery.com>
6748 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
6749 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
6750 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
6751 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
6752 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
6753 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
6754 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
6756 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
6757 width macros from TS 18661-1.
6758 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
6760 2016-09-08 Jakub Jelinek <jakub@redhat.com>
6763 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
6764 OMP_CLAUSE_SAFELEN_EXPR.
6766 2016-09-07 David Malcolm <dmalcolm@redhat.com>
6768 * Makefile.in (OBJS): Add substring-locations.o.
6769 * langhooks-def.h (class substring_loc): New forward decl.
6770 (lhd_get_substring_location): New decl.
6771 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
6772 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
6773 * langhooks.c (lhd_get_substring_location): New function.
6774 * langhooks.h (class substring_loc): New forward decl.
6775 (struct lang_hooks): Add field get_substring_location.
6776 * substring-locations.c: New file, taking definition of
6777 format_warning_va and format_warning_at_substring from
6778 c-family/c-format.c, making them non-static.
6779 * substring-locations.h (class substring_loc): Move class here
6780 from c-family/c-common.h. Add and rewrite comments.
6781 (format_warning_va): New decl.
6782 (format_warning_at_substring): New decl.
6783 (get_source_location_for_substring): Add comment.
6785 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
6787 * config/i386/i386.c: Add 'U' suffix to processor feature bits
6788 to avoid -Wnarrowing warning.
6789 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
6790 * opts.c: Likewise for SANITIZER_OPT bitmasks.
6792 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
6794 * config/aarch64/aarch64.c (aarch64_legitimize_address):
6795 Avoid use of base_offset if offset already in range.
6797 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
6799 * config/sh/sh-protos.h (struct sh_atomic_model,
6800 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6801 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6802 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
6803 * config/sh/sh.h (struct sh_atomic_model,
6804 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6805 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6806 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
6807 Guard with __cplusplus.
6809 2016-09-06 Jakub Jelinek <jakub@redhat.com>
6812 * config/i386/i386.c (ix86_expand_builtin): For builtin with
6813 unsupported or unknown ISA, use expand_call.
6815 2016-09-06 Martin Liska <mliska@suse.cz>
6817 PR gcov-profile/77378
6818 PR gcov-profile/77466
6819 * tree-profile.c (tree_profiling): Detect whether target can use
6820 -fprofile-update=atomic.
6822 2016-09-06 Richard Biener <rguenther@suse.de>
6824 PR tree-optimization/77479
6825 * tree-vrp.c (update_value_range): Extend overflow handling to
6828 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6831 * config/i386/i386.md (isa): Add x64_avx512bw.
6832 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
6833 (kmov_isa): New mode attr.
6834 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
6835 (*zero_extend<mode>si2): Likewise.
6836 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
6838 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
6840 * doc/invoke.texi (SPU Options): nops -> NOPs.
6841 (x86 Options): Ditto.
6843 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6846 * toplev.c (process_options): Temporarily set input_location
6847 to UNKNOWN_LOCATION around targetm.target_option.override () call.
6849 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
6851 PR rtl-optimization/77452
6852 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
6853 inner-mode reference to a CONST_VECTOR constant in the constant pool.
6855 2016-09-05 Marek Polacek <polacek@redhat.com>
6858 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
6860 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6863 * gensupport.c (alter_output_for_subst_insn): Remove redundant
6864 *insn_out == '*' test. Don't copy unnecessary to yet another
6865 memory buffer, and don't leak it.
6867 PR rtl-optimization/77425
6868 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
6870 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
6872 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
6874 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6876 * common.opt (fdiagnostics-generate-patch): New option.
6877 * diagnostic.c: Include "edit-context.h".
6878 (diagnostic_initialize): Initialize context->edit_context_ptr.
6879 (diagnostic_finish): Delete context->edit_context_ptr.
6880 (diagnostic_report_diagnostic): Add fix-it hints from the
6881 diagnostic to context->edit_context_ptr, if any.
6882 * diagnostic.h (class edit_context): Add forward decl.
6883 (struct diagnostic_context): Add field "edit_context_ptr".
6884 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6885 -fdiagnostics-generate-patch.
6886 (-fdiagnostics-generate-patch): New item.
6887 * toplev.c: Include "edit-context.h".
6888 (process_options): Set global_dc->edit_context_ptr to a new
6889 edit_context if the options need one.
6890 (toplev::main): Handle -fdiagnostics-generate-patch by using
6891 global_dc->edit_context_ptr.
6893 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6896 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
6897 map and firstprivate clauses on target construct for _Atomic
6899 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
6900 on target construct for _Atomic qualified decls.
6901 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
6903 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
6904 _Atomic qualified arguments not mentioned in uniform clause.
6906 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6908 * Makefile.in (OBJS-libcommon): Add edit-context.o.
6909 * diagnostic-color.c (color_dict): Add "diff-filename",
6910 "diff-hunk", "diff-delete", and "diff-insert".
6911 (parse_gcc_colors): Update default value of GCC_COLORS in comment
6912 to reflect above changes.
6913 * doc/invoke.texi (-fdiagnostics-color): Update description of
6914 default GCC_COLORS, and of the supported capabilities.
6915 * edit-context.c: New file.
6916 * edit-context.h: New file.
6917 * input.c (struct fcache): Add field "missing_trailing_newline".
6918 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
6920 (add_file_to_cache_tab): Likewise.
6921 (fcache::fcache): Likewise.
6922 (get_next_line): Update c->missing_trailing_newline.
6923 (location_missing_trailing_newline): New function.
6924 * input.h (location_missing_trailing_newline): New decl.
6925 * selftest-run-tests.c (selftest::run_tests): Call
6926 edit_context_c_tests.
6927 * selftest.h (edit_context_c_tests): New decl.
6929 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6930 Richard Biener <rguenth@suse.de>
6932 PR tree-optimization/77444
6933 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
6934 as steptype, remove redundant initialization.
6936 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6939 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
6940 (sanopt_optimize_walker): Optimize away
6941 __asan_before_dynamic_init (...) followed by
6942 __asan_after_dynamic_init () without intervening memory loads/stores.
6943 * ipa-pure-const.c (special_builtin_state): Handle
6944 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
6945 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
6947 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6949 * cfg.c (free_original_copy_tables): Replace second assignment of
6950 bb_copy = NULL by bb_original = NULL.
6952 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6955 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
6956 assignment added in r216794.
6958 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6960 * Makefile.in (OBJS): Add typed-splay-tree.o.
6961 * selftest-run-tests.c (selftest::run_tests): Call
6962 typed_splay_tree_c_tests.
6963 * selftest.h (typed_splay_tree_c_tests): New decl.
6964 * typed-splay-tree.c: New file.
6965 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
6966 (typed_splay_tree::max): New method.
6967 (typed_splay_tree::min): New method.
6968 (typed_splay_tree::foreach): New method.
6969 (typed_splay_tree::closure): New struct.
6970 (typed_splay_tree::inner_foreach_fn): New function.
6972 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6974 * ipa-cp.c (ipcp_store_bits_results): Change option name from
6975 -fipa-cp-bit to -fipa-bit-cp.
6977 2016-09-01 Martin Sebor <msebor@redhat.com>
6979 PR tree-optimization/71831
6980 * tree-object-size.h: Return bool instead of the size and add
6981 argument for the size.
6982 * tree-object-size.c (compute_object_offset): Update signature.
6983 (addr_object_size): Same.
6984 (compute_builtin_object_size): Return bool instead of the size
6985 and add argument for the size. Handle POINTER_PLUS_EXPR when
6986 optimization is disabled.
6987 (expr_object_size): Adjust.
6988 (plus_stmt_object_size): Adjust.
6989 (pass_object_sizes::execute): Adjust.
6990 * builtins.c (fold_builtin_object_size): Adjust.
6991 * doc/extend.texi (Object Size Checking): Update.
6992 * ubsan.c (instrument_object_size): Adjust.
6994 2016-09-01 Martin Sebor <msebor@redhat.com>
6996 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
6997 it fits the output of the formatted function regardless of its
6999 * genmodes.c (parser::parse_expr): Same.
7000 * gimplify.c (gimplify_asm_expr): Same.
7001 * passes.c (pass_manager::register_one_dump_file): Same.
7002 * print-tree.c (print_node): Same.
7004 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7006 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
7008 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7010 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
7012 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7014 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
7015 * config/rs6000/vector.md: Ditto.
7016 * config/rs6000/vsx.md: Ditto.
7018 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
7020 * ipa-inline-analysis.c (param_change_prob): Get to the base object
7023 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7025 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
7026 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
7027 *return_and_restore_gpregs_<mode>_r11,
7028 *return_and_restore_gpregs_<mode>_r12,
7029 *return_and_restore_gpregs_<mode>_r1,
7030 *return_and_restore_fpregs_<mode>_r11,
7031 *return_and_restore_fpregs_<mode>_r12,
7032 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
7033 directly instead of via the "l" constraint. Renumber operands.
7036 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7038 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
7039 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
7040 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
7041 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
7042 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
7043 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
7044 *call_value_nonlocal_darwin64, reload_macho_picbase,
7045 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
7046 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
7047 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
7048 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
7049 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
7050 *save_fpregs_<mode>_r1): Ditto.
7051 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
7052 *return_and_restore_gpregs_spe): Ditto.
7054 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7056 * config/rs6000/rs6000.md
7057 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
7058 the use of the link register.
7059 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
7061 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7062 Michael Meissner <meissner@linux.vnet.ibm.com>
7065 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
7066 reg+reg addressing for TImode.
7067 (rs6000_legitimate_address_p): Only allow register indirect
7068 addressing for TImode, even without TARGET_QUAD_MEMORY.
7070 2016-09-01 Richard Biener <rguenther@suse.de>
7073 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
7074 check whether the result fits the desired result type.
7076 2016-09-01 Nathan Sidwell <nathan@acm.org>
7078 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
7080 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
7082 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
7084 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
7086 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7088 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
7089 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
7090 for comparisons of integer ZERO_EXTEND against zero.
7092 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
7094 * config/i386/i386.c (ix86_option_override_internal): Also disable the
7095 STV pass if -mstackrealign is enabled.
7097 2016-08-31 Ilya Verbin <iverbin@gmail.com>
7099 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
7102 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7104 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
7105 (layout_range::intersects_line_p): New method.
7106 (test_range_contains_point_for_single_point): Rename to...
7107 (test_layout_range_for_single_point): ...this, and add testing
7108 for layout_range::intersects_line_p.
7109 (test_range_contains_point_for_single_line): Rename to...
7110 (test_layout_range_for_single_line): ...this, and add testing
7111 for layout_range::intersects_line_p.
7112 (test_range_contains_point_for_multiple_lines): Rename to...
7113 (test_layout_range_for_multiple_lines): ...this, and add testing
7114 for layout_range::intersects_line_p.
7115 (layout::layout): Populate m_fixit_hints.
7116 (layout::get_expanded_location): Handle the case of a line-span
7118 (layout::validate_fixit_hint_p): New method.
7119 (get_line_span_for_fixit_hint): New function.
7120 (layout::calculate_line_spans): Add spans for fixit-hints.
7121 (layout::should_print_annotation_line_p): New method.
7122 (layout::print_any_fixits): Drop param "richloc", instead using
7123 validated fixits in m_fixit_hints. Add "const" to hint pointers.
7124 (diagnostic_show_locus): Avoid printing blank annotation lines.
7125 (selftest::test_diagnostic_context::test_diagnostic_context):
7126 Initialize show_column and start_span.
7127 (selftest::test_diagnostic_context::start_span_cb): New static
7129 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
7130 (selftest::diagnostic_show_locus_c_tests): Update for function
7131 renamings. Call test_diagnostic_show_locus_fixit_lines.
7133 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7135 PR tree-optimization/73714
7136 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
7138 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7140 * selftest.c: Move "namespace selftest {" to top of file,
7141 removing explicit "selftest::" qualifiers throughout.
7143 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7145 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
7147 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
7148 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
7149 Replace builtin with vector extension.
7150 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
7152 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
7153 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
7154 Replace builtin with vector extension.
7155 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
7156 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
7157 Replace builtin with vector extension.
7158 * config/i386/xmmintrin.h (__m128_u): New type.
7159 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
7160 (_mm_load_ps, _mm_store_ps): Simplify.
7162 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
7164 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
7166 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7168 * diagnostic-show-locus.c (colorizer::begin_state): Support more
7169 than 3 ranges per diagnostic by alternating between color 1 and
7171 (layout::layout): Replace use of rich_location::MAX_RANGES
7172 with richloc->get_num_locations ().
7173 (layout::calculate_line_spans): Replace use of
7174 rich_location::MAX_RANGES with m_layout_ranges.length ().
7175 (layout::print_annotation_line): Handle arbitrary numbers of
7176 ranges in caret-printing by defaulting to '^'.
7177 (selftest::test_one_liner_many_fixits): New function.
7178 (test_diagnostic_show_locus_one_liner): Call it.
7179 * diagnostic.c (diagnostic_initialize): Update for renaming
7180 of rich_location::MAX_RANGES to
7181 rich_location::STATICALLY_ALLOCATED_RANGES.
7182 * diagnostic.h (struct diagnostic_context): Likewise.
7184 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7186 * selftest.c (selftest::named_temp_file::named_temp_file): New
7188 (selftest::temp_source_file::~temp_source_file): Move to...
7189 (selftest::named_temp_file::~named_temp_file): ...here.
7190 (selftest::test_named_temp_file): New function.
7191 (selftest::selftest_c_tests): Call test_named_temp_file.
7192 * selftest.h (class named_temp_file): New class.
7193 (class temp_source_file): Convert to a subclass of named_temp_file.
7195 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
7197 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
7198 USEs of LR_REGNO in returns and sibcalls.
7199 (rs6000_output_mi_thunk): Similar.
7200 (rs6000_sibcall_aix): Similar.
7201 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
7202 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
7203 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
7204 Remove the USE of LR_REGNO from the patterns as well. Delete an
7206 (return_internal_<mode>): Delete.
7208 2016-08-30 Tamar Christina <tamar.christina@arm.com>
7210 * config/aarch64/aarch64-simd.md
7211 (aarch64_ld2<mode>_dreg_le): New.
7212 (aarch64_ld2<mode>_dreg_be): New.
7213 (aarch64_ld2<mode>_dreg): Removed.
7214 (aarch64_ld3<mode>_dreg_le): New.
7215 (aarch64_ld3<mode>_dreg_be): New.
7216 (aarch64_ld3<mode>_dreg): Removed.
7217 (aarch64_ld4<mode>_dreg_le): New.
7218 (aarch64_ld4<mode>_dreg_be): New.
7219 (aarch64_ld4<mode>_dreg): Removed.
7220 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
7222 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7224 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
7225 redundant location param.
7226 (test_one_liner_fixit_remove): Likewise.
7227 (test_one_liner_fixit_replace): Likewise.
7228 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
7229 * gcc-rich-location.c
7230 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
7231 get_range_from_loc. Drop overload taking a const char *.
7232 * gcc-rich-location.h
7233 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
7236 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7238 * config/linux.c (linux_libc_has_function): Return true on musl.
7240 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7242 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
7244 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
7246 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
7247 used for abnormal egdes.
7249 2016-08-30 Jakub Jelinek <jakub@redhat.com>
7251 PR tree-optimization/72866
7252 * tree-vect-patterns.c (search_type_for_mask): Turn into
7253 a small wrapper, move all code to ...
7254 (search_type_for_mask_1): ... this new function. Add caching
7255 and adjust recursive calls.
7258 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
7259 instead of lookup_type_die (type_main_variant (type)) even for array
7263 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
7264 constant pool reference return x instead of c.
7266 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
7268 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
7271 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7274 (selftest::test_make_location_nonpure_range_endpoints): Fix
7277 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7279 * diagnostic-show-locus.c
7280 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
7282 (selftest::test_diagnostic_show_locus_one_liner): Call it.
7283 * input.c (get_pure_location): Move to libcpp/line-map.c.
7284 * input.h (get_pure_location): Convert decl to an inline function
7285 calling implementation in libcpp.
7287 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
7290 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
7291 template for intel asm dialect.
7292 (vec_set_hi_<mode><mask_name>): Ditto.
7294 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7296 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
7297 (selftest::fail_formatted): Likewise.
7299 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7301 * input.c (make_location): Call get_start and get_finish
7302 on the endpoints to avoid storing packed ranges or ad-hoc
7304 (selftest::test_make_location_nonpure_range_endpoints): New function.
7305 (selftest::input_c_tests): Call it.
7306 * input.h (get_start): New inline function.
7308 2016-08-29 Tom de Vries <tom@codesourcery.com>
7311 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
7314 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
7316 * Makefile.in (gcov-iov.h): Add dummy recipe.
7318 2016-08-29 Nathan Sidwell <nathan@acm.org>
7320 * config/nvptx/nvptx.c: #include tree-vrp.h.
7322 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
7325 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
7326 HIGH+LO construct during reload.
7328 2016-08-28 Tom de Vries <tom@codesourcery.com>
7331 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
7332 'sysv_abi va_list' attribute.
7333 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
7334 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
7337 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7339 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
7340 * emit-rtl.c (unshare_all_rtl_1): Adjust.
7341 (unshare_all_rtl_again): Likewise.
7342 * function.c (assign_stack_local_1): Likewise.
7343 (assign_stack_temp_for_type): Likewise.
7345 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7347 * cfgbuild.c (make_edges): Adjust.
7348 * cfgrtl.c (can_delete_label_p): Likewise.
7349 * dwarf2cfi.c (create_trace_edges): Likewise.
7350 * except.c (sjlj_emit_dispatch_table): Likewise.
7351 * function.h (struct expr_status): make x_forced_labels a vector.
7352 * jump.c (rebuild_jump_labels_1): Adjust.
7353 * reload1.c (set_initial_label_offsets): Likewise.
7354 * stmt.c (force_label_rtx): Likewise.
7355 (expand_label): Likewise.
7357 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7359 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
7361 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
7363 PR tree-optimization/71077
7364 PR tree-optimization/68542
7365 * fold-const.c (fold_relational_const): Fix folding of
7366 VECTOR_CST comparisons that have a scalar boolean result type.
7367 (selftest::test_vector_folding): New static function.
7368 (selftest::fold_const_c_tests): Call it.
7370 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
7372 * doc/extend.texi (SPU Built-in Functions): Remove stale
7373 references to material formerly at IBM and Sony.
7375 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
7378 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
7380 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7382 * diagnostic-show-locus.c
7383 (selftest::test_fixit_consolidation): New function.
7384 (selftest::diagnostic_show_locus_c_tests): Call it.
7385 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
7386 constructor based on source_range.
7388 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7390 * diagnostic-color.c (color_dict): Add "fixit-insert" and
7392 (parse_gcc_colors): Update description of default GCC_COLORS.
7393 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
7394 (colorizer::set_fixit_insert): New method.
7395 (colorizer::set_fixit_delete): New method.
7396 (colorizer::get_color_by_name): New method.
7397 (colorizer::STATE_FIXIT_INSERT): New constant.
7398 (colorizer::STATE_FIXIT_DELETE): New constant.
7399 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
7400 fields in favor of new field "m_stop_color". Add fields
7401 "m_fixit_insert" and "m_fixit_delete".
7402 (colorizer::colorizer): Update for above changes. Replace
7403 colorize_start calls with calls to get_color_by_name.
7404 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
7405 STATE_FIXIT_DELETE. Update for field renamings.
7406 (colorizer::finish_state): Simplify by using m_stop_color,
7407 rather than multiple identical "*_ce" fields.
7408 (colorizer::get_color_by_name): New method.
7409 (layout::print_any_fixits): Print insertions and replacements
7410 using the "fixit-insert" color, and deletions using the
7411 "fixit-delete" color.
7412 * doc/invoke.texi (-fdiagnostics-color): Update description of
7413 default GCC_COLORS, and of the supported capabilities.
7415 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
7417 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
7418 current_function_static_stack_size variable with the static
7419 stack frame size of the current function when
7420 flag_stack_usage_info is enabled.
7422 2016-08-26 Nathan Sidwell <nathan@acm.org>
7424 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
7425 assignment inside if condition.
7427 2016-08-26 Richard Biener <rguenther@suse.de>
7429 PR tree-optimization/69047
7430 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
7431 extracts similar to what FRE does.
7432 (non_rewritable_mem_ref_base): Likewise.
7434 2016-08-26 Joseph Myers <joseph@codesourcery.com>
7436 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
7437 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7438 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7439 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7440 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
7442 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7443 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7444 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7445 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
7446 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7448 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7451 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
7452 reservation duration to 15 cycles.
7453 (cortex_a8_vfp_macs): Likewise.
7454 (cortex_a8_vfp_macd): Likewise.
7455 (cortex_a8_vfp_divs): Likewise.
7456 (cortex_a8_vfp_divd): Likewise.
7458 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7460 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
7461 (aarch_macro_fusion_pair_p): Use above to avoid early return.
7463 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7464 Martin Jambhor <mjambor@suse.cz>
7466 * common.opt: New option -fipa-bit-cp.
7467 * doc/invoke.texi: Document -fipa-bit-cp.
7468 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
7469 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
7470 * tree-ssa-ccp.h: New header file.
7471 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
7472 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
7473 Replace all occurences of tree parameter by two new params: signop, int.
7474 (bit_value_unop_1): Change to bit_value_unop and export it.
7475 Replace all occurences of tree parameter by two new params: signop,
7477 (bit_value_binop): Change call from bit_value_binop_1 to
7479 (bit_value_assume_aligned): Likewise.
7480 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
7481 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
7483 (ccp_finalize): Skip processing if val->mask == 0.
7484 * ipa-cp.c: Include tree-ssa-ccp.h
7485 (ipcp_bits_lattice): New class.
7486 (ipcp_param_lattice (bits_lattice): New member.
7487 (print_all_lattices): Call ipcp_bits_lattice::print.
7488 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
7489 (initialize_node_lattices): Likewise.
7490 (propagate_bits_accross_jump_function): New function.
7491 (propagate_constants_accross_call): Call
7492 propagate_bits_accross_jump_function.
7493 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
7494 (ipcp_store_bits_results): New function.
7495 (ipcp_driver): Call ipcp_store_bits_results.
7496 * ipa-prop.h (ipa_bits): New struct.
7497 (ipa_jump_func): Add new member bits of type ipa_bits.
7498 (ipa_param_descriptor): Change decl to decl_or_type.
7499 (ipa_get_param): Change decl to decl_or_type and assert on
7501 (ipa_get_type): New function.
7502 (ipcp_transformation_summary): New member bits.
7503 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
7504 (ipa_populate_param_decls): Likewise.
7505 (ipa_dump_param): Likewise.
7506 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
7508 (ipa_set_jf_unknown): Set ipa_bits::known to false.
7509 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
7511 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
7512 (ipa_write_jump_function): Add streaming for ipa_bits.
7513 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
7514 (write_ipcp_transformation_info): Add streaming for ipa_bits
7516 (read_ipcp_transfomration_info): Add support for reading streamed
7518 (ipcp_update_bits): New function.
7519 (ipcp_transform_function): Call ipcp_update_bits.
7521 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
7523 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
7524 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
7526 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
7528 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
7530 2016-08-25 Richard Biener <rguenther@suse.de>
7532 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
7533 Only add locations in late dwarf.
7534 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
7535 (dwarf2out_early_finish): But do it here.
7537 2016-08-24 Michael Collison <michael.collison@linaro.org>
7538 Michael Collison <michael.collison@arm.com>
7540 * config/arm/arm-modes.def: Add new condition code mode CC_V
7541 to represent the overflow bit.
7542 * config/arm/arm.c (maybe_get_arm_condition_code):
7543 Add support for CC_Vmode.
7544 (arm_gen_unlikely_cbranch): New function to generate common
7545 rtl conditional branches for overflow patterns.
7546 * config/arm/arm-protos.h: Add prototype for
7547 arm_gen_unlikely_cbranch.
7548 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
7549 addsi3_compareV_upper): New patterns to support signed
7550 builtin overflow add operations.
7551 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
7552 New patterns to support unsigned builtin add overflow operations.
7553 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
7554 builtin overflow subtract operations,
7555 (usubv<mode>4): New patterns to support unsigned builtin subtract
7556 overflow operations.
7557 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
7558 to support builtin overflow negate operations.
7560 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7563 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7565 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7566 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7569 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7571 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
7572 MULTILIB_OPTIONS should be used. Small wording fixes.
7573 * genmultilib: Memorize set of all option combinations in
7574 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
7575 found in MULTILIB_OPTIONS by checking if option set is listed in
7576 combination_space. Output new and existing error message to stderr.
7578 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7580 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
7581 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
7582 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
7583 (MULTILIB_REUSE): Remove reuse rules for option set including
7584 -mfpu=fp-armv8 and -mfpu=vfpv4
7586 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
7588 * config/arm/t-rtems: Add vfp multilib.
7590 2016-08-23 Ian Lance Taylor <iant@golang.org>
7592 * config/s390/s390.c (s390_asm_file_start): Call
7595 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7597 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
7598 initialization of all 0's to the 0 constant, instead of directly
7599 generating XOR. Add support for V4SImode vector initialization on
7600 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
7601 initialization. Change variables used in V4SFmode vector
7602 intialization. For V4SFmode vector splat on ISA 3.0, make sure
7603 any memory addresses are in index form. Add support for using
7604 VSPLTH/VSPLTB to initialize vector short and vector char vectors
7605 with all of the same element.
7606 (regno_or_subregno): New helper function to return a register
7607 number for either REG or SUBREG.
7608 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
7609 Use regno_or_subregno where possible.
7610 (rs6000_split_v4si_init_di_reg): New helper function to build up a
7611 DImode value from two SImode values in order to generate V4SImode
7612 vector initialization on 64-bit systems with direct move.
7613 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
7615 (rtx_is_swappable_p): V4SImode vector initialization insn is not
7617 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
7619 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
7620 attributes to initialize V8HImode and V16QImode vectors with the
7622 (VSX_SPLAT_COUNT): Likewise.
7623 (VSX_SPLAT_SUFFIX): Likewise.
7624 (UNSPEC_VSX_VEC_INIT): New unspec.
7625 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
7626 Allow SFmode values to come from Altivec registers.
7627 (vsx_init_v4si): New insn/split for V4SImode vector initialization
7628 on 64-bit systems with direct move.
7629 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
7630 vector initializations, to allow V4SImode vector initializations
7631 on 64-bit systems with direct move.
7632 (vsx_splat_v4si): Likewise.
7633 (vsx_splat_v4si_di): Likewise.
7634 (vsx_splat_v4sf): Likewise.
7635 (vsx_splat_v4sf_internal): Likewise.
7636 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
7638 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
7639 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
7640 initializing V8HImode and V16QImode vectors with the same
7642 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
7643 optimization if -maltivec=be.
7645 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
7647 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
7648 attribute for alternatives 3 and 4.
7650 2016-08-23 David Malcolm <dmalcolm@redhat.com>
7652 * selftest.c (selftest::assert_str_contains): New function.
7653 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
7654 * selftest.h (selftest::assert_str_contains): New decl.
7655 (ASSERT_STR_CONTAINS): New macro.
7657 2016-08-23 Richard Biener <rguenther@suse.de>
7659 PR tree-optimization/77286
7660 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
7662 (vect_transform_loop): Split exit edges of loop and scalar
7663 loop if required and at the appropriate time.
7665 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7667 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7668 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7670 Correct a typo in a comment.
7672 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7674 * config/s390/s390.md ("*andc_split"): New splitter for and with
7677 2016-08-23 Richard Biener <rguenther@suse.de>
7679 PR tree-optimization/27336
7680 * tree-vrp.c (infer_value_range): Handle stmts that can throw
7681 by looking for a non-EH edge.
7682 (process_assert_insertions_for): Likewise.
7684 2016-08-23 Richard Biener <rguenther@suse.de>
7687 * statistics.c (statistics_counter_event): Robustify against
7690 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7692 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
7693 for targets amdfam10 and barcelona.
7695 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
7697 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
7698 (zero_extend<mode>di2): Ditto.
7699 (*zero_extend<mode>si2): Ditto.
7700 (*zero_extendqihi2): Ditto.
7702 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7705 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
7706 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
7708 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
7710 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
7711 identical consecutive elements.
7712 [SSA_NAME]: Print the name's def stmt on its own line. When printing
7713 the node's def stmt, avoid printing an unwanted trailing newline by
7714 replacing the call to print_gimple_stmt() with its inlined body and
7715 adjusting it to not set pp_needs_newline and to call pp_flush()
7716 instead of pp_newline_and_flush().
7718 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7720 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
7721 (float32_type_node, float64_type_node, float32x_type_node)
7722 (float128x_type_node): New macros.
7723 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
7724 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
7725 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
7726 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
7727 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
7728 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
7729 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
7730 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
7731 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
7732 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
7733 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
7734 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
7735 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
7736 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
7737 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
7738 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
7739 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
7740 (copysign, fabs, huge_val, inf, nan, nans): Use it.
7741 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
7743 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
7744 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
7745 * doc/extend.texi (Other Builtins): Document these built-in
7747 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
7750 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
7752 * doc/install.texi (Binaries): www.opencsw.org now uses https.
7754 2016-08-22 Richard Biener <rguenther@suse.de>
7756 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
7758 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
7761 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
7762 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
7763 non-SSE2 athlons only, otherwise prefer SSE prefetches.
7765 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7767 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
7768 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
7769 (vrp_visit_switch_stmt): Likewise.
7770 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
7771 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
7772 (vrp_visit_stmt): Use extract_range_from_stmt.
7773 (vrp_visit_phi_node): Use extract_range_from_phi_node.
7775 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7777 * Makefile.in: Add tree-vrp.h to GTFILES.
7778 * gengtype.c (open_base_files): Add tree-vrp.h.
7779 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
7780 * builtins.c: Likewise.
7781 * fold-const.c: Likewise.
7782 * gimple-builder.c: Likewise.
7783 * gimple-laddress.c: Likewise.
7784 * hsa-gen.c: Likewise.
7785 * internal-fn.c: Likewise.
7787 * targhooks.c: Liewise,
7788 * tree-ssa-address.c: Likewise.
7789 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
7790 * tree-vrp.c (struct value_range): Move to tree-vrp.h
7791 * tree-vrp.h: New file.
7793 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7795 PR tree-optimization/61839
7796 * tree-vrp.c (two_valued_val_range_p): New.
7797 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
7798 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
7799 Also Convert VAR BINOP CST where VAR is two-valued to
7800 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
7802 2016-08-19 David Malcolm <dmalcolm@redhat.com>
7804 * diagnostic-show-locus.c
7805 (layout::annotation_line_showed_range_p): New method.
7806 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
7807 Reimplement case fixit_hint::REPLACE to cover removals, and
7808 replacements where the range of the replacement isn't one
7809 of the ranges in the rich_location.
7810 (test_one_liner_fixit_replace): Likewise.
7811 (selftest::test_one_liner_fixit_replace_non_equal_range): New
7813 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
7815 (selftest::test_diagnostic_show_locus_one_liner): Call the new
7817 * diagnostic.c (print_parseable_fixits): Remove case
7820 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
7823 * config/i386/i386.c (ix86_option_override_internal): Remove
7824 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
7825 Enable SSE prefetch also for TARGET_PREFETCHWT1.
7826 Do not try to enable TARGET_PRFCHW ISA flag here.
7827 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
7828 Rewrite expander function body.
7829 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
7831 2016-08-19 Joseph Myers <joseph@codesourcery.com>
7834 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
7835 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
7836 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
7837 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
7838 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
7839 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
7840 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
7841 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
7842 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
7844 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
7846 (struct floatn_type_info): New structure type.
7847 (floatn_nx_types): New variable declaration.
7848 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
7849 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
7850 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
7851 * tree.c (floatn_nx_types): New variable.
7852 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
7853 corresponding complex types.
7854 * target.def (floatn_mode): New hook.
7855 * targhooks.c: Include "real.h".
7856 (default_floatn_mode): New function.
7857 * targhooks.h (default_floatn_mode): New prototype.
7858 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
7860 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
7861 effective-target and dg-add-options keywords.
7862 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
7863 Document new effective-target keywords.
7864 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
7865 * doc/tm.texi: Regenerate.
7866 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
7867 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
7868 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
7870 * real.h (struct real_format): Add field ieee_bits.
7871 * real.c (ieee_single_format, mips_single_format)
7872 (motorola_single_format, spu_single_format, ieee_double_format)
7873 (mips_double_format, motorola_double_format)
7874 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
7875 (ieee_extended_intel_128_format)
7876 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
7877 (mips_extended_format, ieee_quad_format, mips_quad_format)
7878 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
7879 (decimal_double_format, decimal_quad_format, ieee_half_format)
7880 (arm_half_format, real_internal_format: Initialize ieee_bits
7882 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
7883 float128_type_node. Set float80_type_node to float64x_type_node
7884 if appropriate and long_double_type_node not appropriate.
7885 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
7886 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
7887 Initialize ieee_bits field.
7888 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
7889 (rs6000_init_builtins): Set ieee128_float_type_node to
7891 (rs6000_floatn_mode): New function.
7893 2016-08-19 Jakub Jelinek <jakub@redhat.com>
7895 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7896 _rdseed64_step): Uglify argument names and/or local variable names
7897 in inline functions.
7898 * config/i386/rtmintrin.h (_xabort): Likewise.
7899 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
7900 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
7901 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
7902 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
7903 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
7904 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
7905 _mm_maskz_ternarylogic_epi32): Likewise.
7906 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
7907 __lwpins32, __lwpins64): Likewise.
7908 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
7909 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
7910 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
7911 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
7912 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
7913 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
7914 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
7915 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
7916 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
7917 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
7918 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
7919 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
7920 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
7921 _mm256_mask_i64gather_epi32): Likewise.
7922 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7923 * config/i386/ia32intrin.h (__writeeflags): Likewise.
7924 * config/i386/pkuintrin.h (_wrpkru): Likewise.
7925 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
7926 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
7927 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
7928 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
7929 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
7930 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
7931 _mm512_mask_prefetch_i64scatter_ps): Likewise.
7932 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7933 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
7934 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
7935 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
7936 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
7937 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
7938 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
7939 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
7941 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
7943 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
7944 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
7946 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
7947 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
7949 (_rdpkru_u32): Add space after function name.
7951 * config/i386/t-i386 (i386-c.o): Don't depend on
7952 i386-builtin-types.inc.
7953 (i386.o): Depend on i386-builtin-types.inc.
7955 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
7958 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
7959 Use const_vec_duplicate to check for duplicated elements.
7961 2016-08-19 Richard Biener <rguenther@suse.de>
7963 PR tree-optimization/77290
7964 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7965 Fix flag_tree_parallelize_loops check.
7967 2016-08-19 Richard Biener <rguenther@suse.de>
7969 * match.pd (x | 0 -> x): Add.
7971 2016-08-19 Richard Biener <rguenther@suse.de>
7973 PR tree-optimization/77286
7974 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7975 Deal with virtual PHIs being out-of-order.
7977 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7979 * doc/invoke.texi (fverbose-asm): Note that source code lines
7980 are emitted, and provide an example.
7981 * final.c (asm_show_source): New function.
7982 (final_scan_insn): Call asm_show_source.
7984 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7986 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
7987 param with diagnostic_kind.
7988 (class colorizer): Similarly replace field m_diagnostic with
7990 (colorizer::colorizer): Replace diagnostic
7991 param with diagnostic_kind.
7992 (colorizer::begin_state): Update for above field change.
7993 (layout::layout): Replace diagnostic param with rich_location *
7994 and diagnostic_kind.
7995 (diagnostic_show_locus): Replace diagnostic param with richloc
7996 and diagnostic_kind.
7997 (class selftest::test_diagnostic_context): New class.
7998 (selftest::test_diagnostic_show_locus_unknown_location): New
8000 (selftest::test_one_liner_simple_caret): New function.
8001 (selftest::test_one_liner_caret_and_range): New function.
8002 (selftest::test_one_liner_multiple_carets_and_ranges): New
8004 (selftest::test_one_liner_fixit_remove): New function.
8005 (selftest::test_one_liner_fixit_replace): New function.
8006 (selftest::test_diagnostic_show_locus_one_liner): New function.
8007 (selftest::diagnostic_show_locus_c_tests): Call the new test
8009 * diagnostic.c (diagnostic_initialize): Initialize
8010 colorize_source_p, show_ruler_p and parseable_fixits_p.
8011 (default_diagnostic_finalizer): Update for change to
8012 diagnostic_show_locus.
8013 (diagnostic_append_note): Likewise.
8014 * diagnostic.h (diagnostic_show_locus): Replace
8015 const diagnostic_info * param with location * and diagnostic_t.
8017 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8019 * input.c (saved_line_table): New global.
8020 (class selftest::temp_line_table): Rename to line_table_test and
8021 move declaration to selftest.h, and drop field m_old_line_table.
8022 (selftest::temp_line_table::temp_line_table): Rename ctor to...
8023 (selftest::line_table_test::line_table_test): ...this. Add a
8024 default ctor. Store current value of line_table within
8026 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
8027 (selftest::line_table_test::~line_table_test): ...this, and
8028 restore line_table from the saved_line_table, rather than
8030 (selftest::test_accessing_ordinary_linemaps): Update for above
8032 (selftest::test_lexer): Likewise.
8033 (struct selftest::lexer_test): Likewise.
8034 (selftest::lexer_test::lexer_test): Likewise.
8035 (selftest::input_c_tests): Move the looping over test cases from
8037 (selftest::for_each_line_table_case): New function.
8038 * input.h (saved_line_table): New decl.
8039 * selftest.h (struct selftest::line_table_case): New forward decl.
8040 (class selftest::line_table_test): New class, moved here from
8041 selftest::temp_line_table in input.c, and renamed.
8042 (selftest::for_each_line_table_case): New decl.
8044 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
8047 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
8049 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8052 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
8053 enclosing parallel construct for reduction variables on OpenACC loop
8056 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
8058 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
8059 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
8061 (function_to_dwarf_procedure): Update comment.
8063 2016-08-18 David Malcolm <dmalcolm@redhat.com>
8065 * input.c (diagnostics_file_cache_forcibly_evict_file): New
8067 * input.h (diagnostics_file_cache_forcibly_evict_file): New
8069 * selftest.c (selftest::temp_source_file::~temp_source_file):
8070 Evict m_filename from the diagnostic file cache.
8072 2016-08-18 Richard Biener <rguenther@suse.de>
8074 * tree-pass.h (make_pass_materialize_all_clones): Declare.
8075 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
8076 make_pass_materialize_all_clones): New simple IPA pass encapsulating
8077 clone materialization.
8078 * passes.def (all_late_ipa_passes): Start with
8079 pass_materialize_all_clones.
8080 * cgraphunit.c (symbol_table::compile): Remove call to
8081 materialize_all_clones.
8082 * tree-into-ssa.c: Include statistics.h.
8083 (update_ssa): Count number of times we do incremental/rewrite
8086 2016-08-18 Richard Biener <rguenther@suse.de>
8088 PR tree-optimization/77282
8089 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8090 When doing auto-parallelizing also prevent use of PHIs that
8091 carry dependences across loop backedges.
8093 2016-08-18 Tamar Christina <tamar.christina@arm.com>
8094 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8096 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
8098 2016-08-18 Richard Biener <rguenther@suse.de>
8100 * ssa-iterators.h (ssa_vuse_operand): New inline.
8101 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
8102 (predicate_all_scalar_phis): Use remove_phi_node to remove
8103 phi nodes predicated. Delay removing virtual PHIs.
8104 (predicate_mem_writes): Update virtual operands.
8105 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
8106 (tree_if_conversion): Do not rewrite virtual SSA form.
8107 * tree-phinodes.c (release_phi_node): Make static.
8108 * tree-phinodes.h (release_phi_node): Remove.
8110 2016-08-18 Jakub Jelinek <jakub@redhat.com>
8112 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
8113 codes that appear in bdesc_* arrays, instead include i386-builtin.def
8114 twice to define those.
8115 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
8116 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
8117 bdesc_multi_arg): Define by including i386-builtin.def the third time.
8118 * config/i386/i386-builtin.def: New file.
8120 2016-08-17 David Malcolm <dmalcolm@redhat.com>
8122 * input.c (get_source_range_for_char): Rename to...
8123 (selftest::get_source_range_for_char): ...this, and move within
8124 the #if CHECKING_P guard.
8125 (get_num_source_ranges_for_substring): Rename to...
8126 (selftest::get_num_source_ranges_for_substring): ...this, move
8127 within the #if CHECKING_P guard, and make static.
8128 (selftest::assert_num_substring_ranges): Initialize
8131 2016-08-18 Alan Modra <amodra@gmail.com>
8133 PR rtl-optimization/72771
8134 * reload.c (find_reloads): Don't assume that a subreg mem is OK
8135 when find_reloads_toplev returns address_reloaded==-1.
8136 (alternative_allows_const_pool_ref): Update comment.
8138 2015-08-17 Alan Hayward <alan.hayward@arm.com>
8140 PR tree-optimization/71752
8141 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
8142 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
8144 2016-08-17 Jakub Jelinek <jakub@redhat.com>
8146 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
8147 instead of testing ECF_NORETURN bit in gimple_call_flags.
8148 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
8149 * predict.c (tree_bb_level_predictions): Likewise.
8150 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
8153 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
8154 turning a call into __builtin_unreachable-like noreturn call, adjust
8155 gimple_call_set_fntype.
8156 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
8157 gimple_call_fntype has void return type.
8159 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
8161 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
8162 maybe_lookup_decl, to handle nested acc loop directives.
8164 2016-08-17 Richard Biener <rguenther@suse.de>
8166 PR tree-optimization/76490
8167 * tree-vrp.c (update_value_range): Preserve overflow infinities
8168 when intersecting with ranges from get_range_info.
8169 (operand_less_p): Handle overflow infinities correctly.
8170 (value_range_constant_singleton): Use vrp_operand_equal_p
8171 to handle overflow max/min correctly.
8172 (vrp_valueize): Likewise.
8173 (union_ranges): Likewise.
8174 (intersect_ranges): Likewise.
8175 (vrp_visit_phi_node): Improve iteration limitation to only
8176 apply when we'll possibly re-visit the PHI via a changed argument
8179 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
8181 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
8182 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
8183 rather than those that should not be built.
8185 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
8188 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
8190 2016-08-17 Richard Biener <rguenther@suse.de>
8192 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
8193 (verify_vssa): New function verifying virtual SSA form.
8194 (verify_ssa): Call it.
8195 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
8196 Do not apply loop-closed SSA handling to virtuals.
8197 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
8198 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
8199 when rewriting their symbol.
8200 (prepare_def_site_for): Likewise.
8201 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
8202 operands of moved stmts.
8204 2016-08-17 Richard Biener <rguenther@suse.de>
8206 PR tree-optimization/23855
8207 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
8208 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
8209 find guards to hoist. Do not update SSA form but rewrite virtuals
8210 into loop closed SSA.
8211 (find_loop_guard): Adjust to skip already hoisted guards. Do
8212 not mark virtuals for renaming or update SSA form.
8214 2016-08-17 Martin Liska <mliska@suse.cz>
8216 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
8217 a LONG_LONG_TYPE_SIZE comparison.
8218 * gcov-io.h: Remove macro definitions.
8219 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
8220 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
8223 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8225 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
8226 that builtins not mentioned in bdesc_* arrays come first, then
8227 the ones mentioned in bdesc_* arrays in the order they appear in
8228 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
8229 IX86_BUILTIN__BDESC_*_LAST enumerator.
8230 (bdesc_mpx): Fix up a comment typo.
8231 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
8232 __builtin_ia32_vpcomneu[bwdq] builtins.
8233 (BDESC_VERIFY, BDESC_VERIFYS): Define.
8234 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
8235 enum ix86_builtins ordering.
8236 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
8237 for direct bdesc_* array member access instead of searching all the
8238 arrays until an fcode match is found.
8240 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
8242 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
8243 pattern as define_insn_and_split. Split insn before reload to
8245 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
8246 <shift_insn><mode>3_1.
8247 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
8248 <rotate_insn><mode>3_1.
8250 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8253 * input.c (get_source_range_for_substring): Rename to...
8254 (get_source_location_for_substring): ...this, adding param
8255 "caret_idx", and converting output param from source_range * to
8257 (get_source_range_for_char): New function.
8258 (get_num_source_ranges_for_substring): Update comment to reflect
8260 (assert_char_at_range): Update to use get_source_range_for_char
8261 rather than get_source_range_for_substring.
8262 (test_lexer_string_locations_concatenation_2): Likewise.
8263 * substring-locations.h (get_source_range_for_substring): Rename
8265 (get_source_location_for_substring): ...this, and adding param
8266 "caret_idx", and converting output param from source_range * to
8269 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8271 * input.c (class selftest::temp_source_file): Move to
8273 (selftest::temp_source_file::temp_source_file): Move to
8275 (selftest::temp_source_file::~temp_source_file): Likewise.
8276 * selftest.c (selftest::temp_source_file::temp_source_file): Move
8278 (selftest::temp_source_file::~temp_source_file): Likewise.
8279 * selftest.h (class selftest::temp_source_file): Move here from
8282 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8285 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
8286 inlining, add cgraph edge for the added __builtin_unreachable call.
8289 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
8290 only cast it to SHWI for the final comparison.
8292 2016-08-16 Martin Liska <mliska@suse.cz>
8294 PR gcov-profile/36412
8295 * doc/gcov.texi: Document --hash-filenames(-x).
8296 * gcov.c (print_usage): Add the option.
8297 (process_args): Process the option, sort options alphabetically.
8298 (md5sum_to_hex): New function.
8299 (make_gcov_file_name): Do the md5sum and append it to a
8302 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8304 PR tree-optimization/69848
8305 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
8306 and swtich operands to avoid additional NOT instruction.
8307 (vcond<v_cmp_mixed><mode>): Ditto.
8308 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8310 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8312 * doc/install.texi (*-*-solaris2*): Adjust latest change.
8314 2016-08-16 Richard Biener <rguenther@suse.de>
8316 PR tree-optimization/76783
8317 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
8318 BB visited flags at start.
8320 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8322 PR tree-optimization/72817
8323 PR tree-optimization/73450
8324 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
8325 multiple_of_p for adjusted IV.base.
8327 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
8330 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
8331 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
8332 for !flag_finite_math_only or flag_signed_zeros.
8333 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
8334 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
8335 depend on flag_finite_math_only.
8336 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
8338 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
8339 (*ieee_smin<mode>3): Ditto.
8340 (*ieee_smax<mode>3): Ditto.
8341 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
8342 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
8344 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
8345 depend on flag_finite_math_only.
8346 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
8347 (*mmx_<code>v2sf3): Remove.
8348 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
8349 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
8350 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
8352 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
8354 PR rtl-optimization/73650
8355 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
8356 it is not a simple move.
8358 2016-08-15 Martin Liska <mliska@suse.cz>
8361 * gcc.c (do_spec_1): Call save_string with the right size.
8362 (save_string): Do an assert about string we copy.
8364 2016-08-15 Richard Biener <rguenther@suse.de>
8366 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
8367 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
8369 (pass_data_stv): Likewise.
8371 2016-08-15 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/73434
8374 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
8375 TBAA info on the base when forwarding a non-invariant address.
8377 2016-08-15 Jakub Jelinek <jakub@redhat.com>
8379 * dwarf2out.c (struct checksum_attributes): Add
8380 at_string_length_bit_size and at_string_length_byte_size fields.
8381 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
8382 and DW_AT_string_length_byte_size.
8383 (die_checksum_ordered): Handle at_string_length_bit_size and
8384 at_string_length_byte_size.
8385 (gen_array_type_die): For dwarf_version >= 5 emit
8386 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8387 (adjust_string_types): For dwarf_version >= 5 remove
8388 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8389 (resolve_addr): Likewise.
8392 * dwarf2out.c (string_types): New variable.
8393 (gen_array_type_die): Change early_dwarf handling of
8394 DW_AT_string_length, create DW_OP_call4 referencing the
8395 length var temporarily. Handle parameters that are pointers
8397 (adjust_string_types): New function.
8398 (gen_subprogram_die): Temporarily set string_types to local var,
8399 call adjust_string_types if needed.
8400 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
8402 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
8404 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
8406 * doc/install.texi (*-*-solaris2*): Fix version number and document
8407 requirement on GNU make for building libjava with the Solaris linker.
8409 2016-08-15 Martin Liska <mliska@suse.cz>
8410 Jakub Jelinek <jakub@redhat.com>
8412 PR tree-optimization/72824
8413 * tree-loop-distribution.c (const_with_all_bytes_same)
8414 <case VECTOR_CST>: Fix a typo.
8416 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
8419 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
8420 Renamed from _mm512_undefined_si512.
8421 (_mm_undefined_si512): New definition.
8423 2016-08-13 Richard Biener <rguenther@suse.de>
8425 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
8426 into PHIs and update the lattice for its def.
8428 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8431 * ubsan.c (instrument_si_overflow): Pass true instead of false
8433 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
8434 of bbs. Return TODO_cleanup_cfg if any returned true.
8436 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8438 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
8439 ISA 3.0 MTVSRDD instruction.
8440 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
8443 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
8445 PR tree-optimization/71083
8446 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
8447 bitfield access when possible.
8449 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
8452 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
8453 sign-changing cast from a shorter unsigned type to a wider
8456 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8458 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
8459 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
8460 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
8462 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8464 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
8465 Correct costs for vec_construct.
8467 2016-08-12 Bin Cheng <bin.cheng@arm.com>
8469 PR tree-optimization/69848
8470 * tree-vectorizer.h (enum vect_def_type): New condition reduction
8471 type CONST_COND_REDUCTION.
8472 * tree-vect-loop.c (vectorizable_reduction): Support new condition
8473 reudction type CONST_COND_REDUCTION.
8475 2016-08-12 Richard Biener <rguenther@suse.de>
8477 PR tree-optimization/57326
8478 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
8479 returning an SSA name.
8480 (phi_translate_1): When fully_constant_expression returns a NAME
8481 make sure we have a leader for it.
8483 2016-08-12 Martin Liska <mliska@suse.cz>
8484 Adam Fineman <afineman@afineman.com>
8486 * gcov.c (process_file): Create .gcov file when .gcda
8489 2016-08-12 Marek Polacek <polacek@redhat.com>
8492 * alias.c (find_base_value): Adjust fall through comment.
8493 * cfgexpand.c (expand_debug_expr): Likewise.
8494 * combine.c (find_split_point): Likewise.
8495 (expand_compound_operation): Likewise. Add FALLTHRU.
8496 (make_compound_operation): Adjust fall through comment.
8497 (canon_reg_for_combine): Add FALLTHRU.
8498 (force_to_mode): Adjust fall through comment.
8499 (simplify_shift_const_1): Likewise.
8500 (simplify_comparison): Likewise.
8501 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
8503 * config/aarch64/predicates.md: Likewise.
8504 * config/i386/i386.c (function_arg_advance_32): Likewise.
8505 (ix86_gimplify_va_arg): Likewise.
8506 (print_reg): Likewise.
8507 (ix86_print_operand): Likewise.
8508 (ix86_build_const_vector): Likewise.
8509 (ix86_expand_branch): Likewise.
8510 (ix86_sched_init_global): Adjust fall through comment.
8511 (ix86_expand_args_builtin): Add FALLTHRU.
8512 (ix86_expand_builtin): Likewise.
8513 (ix86_expand_vector_init_one_var): Likewise.
8514 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
8515 (rs6000_adjust_cost): Likewise.
8516 (insn_must_be_first_in_group): Likewise.
8517 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
8518 * dbxout.c (dbxout_symbol): Adjust fall through comment.
8519 * df-scan.c (df_uses_record): Likewise.
8520 * dojump.c (do_jump): Add FALLTHRU.
8521 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
8523 (resolve_args_picking_1): Adjust fall through comment.
8524 (loc_list_from_tree_1): Likewise.
8525 * expmed.c (make_tree): Likewise.
8526 * expr.c (expand_expr_real_2): Add FALLTHRU.
8527 (expand_expr_real_1): Likewise. Adjust fall through comment.
8528 * fold-const.c (const_binop): Adjust fall through comment.
8529 (fold_truth_not_expr): Likewise.
8530 (fold_cond_expr_with_comparison): Add FALLTHRU.
8531 (fold_binary_loc): Likewise.
8532 (contains_label_1): Adjust fall through comment.
8533 (multiple_of_p): Likewise.
8534 * gcov-tool.c (process_args): Add FALLTHRU.
8535 * genattrtab.c (check_attr_test): Likewise.
8536 (write_test_expr): Likewise.
8537 * genconfig.c (walk_insn_part): Likewise.
8538 * genpreds.c (validate_exp): Adjust fall through comment.
8539 (needs_variable): Likewise.
8540 * gensupport.c (get_alternatives_number): Add FALLTHRU.
8541 (subst_dup): Likewise.
8542 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
8543 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
8544 (gimplify_scan_omp_clauses): Add FALLTHRU.
8545 (goa_stabilize_expr): Likewise.
8546 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
8548 * hsa-gen.c (get_address_from_value): Likewise.
8549 * ipa-icf.c (sem_function::hash_stmt): Likewise.
8550 * ira.c (ira_setup_alts): Add FALLTHRU.
8551 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
8553 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
8554 * opts.c (common_handle_option): Likewise.
8555 * read-rtl.c (read_rtx_code): Likewise.
8556 * real.c (round_for_format): Likewise.
8557 * recog.c (asm_operand_ok): Likewise.
8558 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
8559 * reload1.c (set_label_offsets): Likewise.
8560 (eliminate_regs_1): Likewise.
8561 (reload_reg_reaches_end_p): Likewise.
8562 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
8563 (rtx_cost): Likewise.
8564 * sched-rgn.c (is_exception_free): Likewise.
8565 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
8566 * stor-layout.c (int_mode_for_mode): Likewise.
8567 * toplev.c (print_to_asm_out_file): Likewise.
8568 (print_to_stderr): Likewise.
8569 * tree-cfg.c (gimple_verify_flow_info): Likewise.
8570 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
8571 (chrec_fold_multiply): Likewise.
8572 (evolution_function_is_invariant_rec_p): Likewise.
8573 (for_each_scev_op): Likewise.
8574 * tree-data-ref.c (siv_subscript_p): Likewise.
8575 (get_references_in_stmt): Likewise.
8576 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
8577 (substitute_in_expr): Likewise.
8578 (type_cache_hasher::equal): Likewise.
8579 (walk_type_fields): Likewise.
8580 * var-tracking.c (adjust_mems): Add FALLTHRU.
8581 (set_dv_changed): Adjust fall through comment.
8582 * varasm.c (default_function_section): Add FALLTHRU.
8584 2016-08-12 Marek Polacek <polacek@redhat.com>
8587 * tree-complex.c (expand_complex_division): Add missing break.
8589 2016-08-12 Richard Biener <rguenther@suse.de>
8591 * passes.c (execute_todo): Do not push/pop TV_TODO.
8592 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
8593 (execute_one_pass): Likewise.
8594 * common.opt (ftime-report-details): New switch.
8595 * doc/invoke.texi (ftime-report-details): Document.
8596 * timevar.h (timer::print_row): Adjust signature.
8597 (timer::all_zero): New static helper.
8598 (timer::child_map_t): New typedef.
8599 (timer::time_var_def): Add children field.
8600 * timevar.c (timer::named_items::print): Adjust.
8601 (timer::~timer): Free timevar recorded children.
8602 (timer::pop_internal): When -ftime-report-details record
8603 time spent in sub-timevars.
8604 (timer::print_row): Adjust.
8605 (timer::print): Print sub-timevar stats, use all_zero.
8606 * timevar.def (TV_TODO): Remove.
8608 2016-08-12 Richard Biener <rguenther@suse.de>
8610 PR tree-optimization/72851
8611 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
8612 worklists to use bitmaps indexed in execution order.
8613 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
8614 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
8615 (cfg_blocks): Make a bitmap.
8616 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
8618 (cfg_blocks_empty_p): Adjust.
8619 (cfg_blocks_add): Likewise.
8620 (cfg_blocks_get): Likewise.
8621 (add_ssa_edge): Likewise.
8622 (add_control_edge): Likewise.
8623 (simulate_stmt): Likewise.
8624 (process_ssa_edge_worklist): Likewise.
8625 (simulate_block): Likewise.
8626 (ssa_prop_init): Compute PRE order and stmt UIDs.
8627 (ssa_prop_fini): Adjust.
8628 (ssa_propagate): Adjust.
8630 2016-08-12 Richard Biener <rguenther@suse.de>
8632 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
8633 the currently executable edges have fixed ranges. Always
8634 go through update_value_range.
8636 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
8640 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
8641 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
8642 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
8643 (LANG_HOOKS_DECLS): Add it.
8644 * langhooks.h (struct lang_hooks_for_decls): Add
8645 function_decl_defaulted. Const_tree-ify
8646 function_decl_explicit_p and function_decl_deleted_p.
8647 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
8648 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
8649 also at strict DWARF v5.
8652 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
8653 TYPE_QUAL_CONST in reference-typed decls.
8656 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
8657 in DW_OP_pieces, just enough to handle pointers to member
8659 (gen_remaining_tmpl_value_param_die_attribute): Use a location
8660 expression on DWARFv5 if a constant value doesn't work.
8662 2016-08-11 David Malcolm <dmalcolm@redhat.com>
8664 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
8665 * selftest.c (selftest::test_assertions): New function.
8666 (selftest::selftest_c_tests): New function.
8667 * selftest.h (selftest::selftest_c_tests): New declaration.
8669 2016-08-11 Richard Biener <rguenther@suse.de>
8670 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8672 PR rtl-optimization/72855
8673 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
8675 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8678 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
8679 (vsx_store_<mode>): Likewise.
8681 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8683 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
8684 TImode CONST_WIDE_INT store.
8685 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
8687 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8689 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
8690 mode if unaligned SSE load and store are optimal.
8692 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8694 PR tree-optimization/71083
8695 * tree-predcom.c (ref_at_iteration): Correctly align the
8698 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8700 * config/s390/s390-builtin-types.def: Add INT128 types.
8701 * config/s390/s390-builtins.def: Add INT128 variants for the add
8702 sub low-level builtins dealing with TImode.
8703 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
8704 via subreg when expanding a builtin.
8705 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
8706 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
8708 * config/s390/vecintrin.h: Adjust builtin names accordingly.
8709 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
8710 ("vec_addc<mode>", "vec_addc_u128"): Merge to
8711 "vacc<bhfgq>_<mode>".
8712 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
8713 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
8714 ("vec_subc<mode>", "vec_subc_u128"): Merge to
8715 "vscbi<bhfgq>_<mode>".
8716 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
8717 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
8719 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8721 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
8723 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8725 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
8727 (vcond<v_cmp_mixed><mode>): Ditto.
8728 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8730 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8732 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
8733 variable explicitly, also assert on it before use.
8735 2016-08-11 Richard Biener <rguenther@suse.de>
8737 PR tree-optimization/72772
8738 * cfgloopmanip.c (create_preheader): Use split_edge if there
8739 is a single loop entry, avoiding degenerate PHIs.
8741 2016-08-11 Richard Biener <rguenther@suse.de>
8743 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
8744 unconditional TODO_cleanup_cfg.
8745 (pass_thread_jumps::execute): Initialize loops, perform a CFG
8746 cleanup only if we threaded a jump.
8748 2016-08-11 Alan Modra <amodra@gmail.com>
8751 * lra-constraints.c (simplify_operand_subreg): Allow subreg
8752 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
8753 slow. Emit two reloads for slow mem case, first loading in
8754 fast innermode, then converting to required mode.
8756 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8758 * config/rs6000/altivec.h (vec_extract_exp): New macro.
8759 (vec_extract_sig): New macro.
8760 (vec_insert_exp): New macro.
8761 (vec_test_data_class): New macro.
8762 (scalar_extract_exp): New macro.
8763 (scalar_extract_sig): New macro.
8764 (scalar_insert_exp): New macro.
8765 (scalar_test_data_class): New macro.
8766 (scalar_test_neg): New macro.
8767 (scalar_cmp_exp_gt): New macro.
8768 (scalar_cmp_exp_lt): New macro.
8769 (scalar_cmp_exp_eq): New macro.
8770 (scalar_cmp_exp_unordered): New macro.
8771 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
8772 to enforce constraint that operand is a 7-bit unsigned literal.
8773 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
8774 for power9 built-ins.
8775 (BU_P9V_VSX_2): Likewise.
8776 (BU_P9V_64BIT_VSX_2): Likewise.
8777 (VSEEDP): Add scalar extract exponent support.
8778 (VSEESP): Add scalar extract signature support.
8779 (VSTDCNDP): Add scalar test negative support.
8780 (VSTDCNSP): Likewise.
8781 (VSIEDP): Add scalar insert exponent support.
8782 (VSCEDPGT): Add scalar compare exponent greater than support.
8783 (VSCEDPLT): Add scalar compare exponent less than support.
8784 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
8785 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
8786 (VSTDCDP): Add scalar test data class support.
8787 (VSTDCSP): Likewise.
8788 (VSEEDP): Add overload support for scalar extract exponent
8790 (VSESDP): Add overload support for scalar extract signature
8792 (VSTDCN): Add overload support for scalar test negative
8794 (VSTDCNDP): Add overload support for scalar test negative
8796 (VSTDCNSP): Add overload support for scalar test negative
8798 (VSIEDP): Add overload support for scalar insert exponent
8800 (VSTDC): Add overload support for scalar test data class
8802 (VSTDCDP): Add overload support for scalar test data class
8804 (VSTDCSP): Add overload support for scalar test data class
8806 (VSCEDPGT): Add overload support for scalar compare exponent
8807 greater than operation.
8808 (VSCEDPLT): Add overload support for scalar compare exponent
8809 less than operation.
8810 (VSCEDPEQ): Add overload support for scalar compare exponent
8811 test-for-equality operation.
8812 (VSCEDPUO): Add overload support for scalar compare exponent
8813 test-for-unordered operation.
8814 (VEEDP): Add vector extract exponent support.
8816 (VESDP): Add vector extract significand support.
8818 (VIEDP): Add vector insert exponent support.
8820 (VTDCDP): Add vector test data class support.
8822 (VES): Add overload support for vector extract significand operation.
8825 (VEE): Add overload support for vector extract exponent operation.
8828 (VTDC): Add overload support for vector test data class operation.
8831 (VIE): Add overload support for vector insert exponent operation.
8834 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8835 overloaded binary floating point functions.
8836 (altivec_resolve_overloaded_builtin): Improve error messages to
8837 distinguish between functions not supported in the current
8838 compiler configuration and functions that were invoked with an
8839 invalid parameter combination, and include the built-in function
8840 name in both error messages.
8841 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
8843 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
8845 (rs6000_expand_binop_builtin): Add check to enforce that argument
8846 2 of the test data class operations is a 7-bit unsigned literal.
8847 (rs6000_invalid_builtin): Add code to issue an error message if a
8848 built-in function that requires the power9_vector and -m32
8849 command-line options is compiled without these options.
8850 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
8851 (UNSPEC_VSX_SXSIGDP): New value.
8852 (UNSPEC_VSX_SXSIGPDP): New value.
8853 (UNSPEC_VSX_SIEXPDP): New value.
8854 (UNSPEC_VSX_SCMPEXPDP): New value.
8855 (UNSPEC_VSX_STSTDC): New value.
8856 (UNSPEC_VSX_VXEXP): New value.
8857 (UNSPEC_VSX_VXSIG): New value.
8858 (UNSPEC_VSX_VIEXP): New value.
8859 (UNSPEC_VSX_VTSTDC): New value.
8860 (xsxexpdp): New insn for scalar extract exponent.
8861 (xsxsigdp): New insn for scalar extract significand.
8862 (xsiexpdp): New insn for scalar insert exponent.
8863 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
8864 (*xscmpexpdp): New insn for scalar compare exponents.
8865 (xststdc<Fvsx): New expansion for both single- and
8866 double-precision scalar test data class operations.
8867 (xststdcneg<Fvsx>): New expansion for both single- and
8868 double-precision scalar test for negative value operations.
8869 (*xststdc<Fvsx>): New insn for scalar test data class
8871 (xvxexp<VSs>): New insn for single- and double-precision
8872 vector extract exponent operation.
8873 (xvxsig<VSs>): New insn for single- and double-precision
8874 vector extract significand operation.
8875 (xviexp<VSs>): New insn for single- and double-precision
8876 vector insert exponent operation.
8877 (xvtstdc<VSs>): New insn for single- and double-precision
8878 vector test data class operation.
8879 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8880 built-in functions to represent the Power9 binary floating-point
8881 support instructions.
8883 2016-08-10 bin cheng <bin.cheng@arm.com>
8885 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
8887 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
8888 Renlin Li <renlin.li@arm.com>
8889 Bin Cheng <bin.cheng@arm.com>
8891 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
8892 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
8893 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
8894 (aarch64_vcond_internal<mode><mode>): Delete pattern.
8895 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
8896 (vcond<v_cmp_result><mode>): Ditto.
8897 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
8898 (vcondu<mode><mode>): Ditto.
8899 (vcond<v_cmp_mixed><mode>): New pattern.
8900 (vcondu<mode><v_cmp_mixed>): New pattern.
8901 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
8902 of aarch64_vcond_internal.
8904 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
8905 Renlin Li <renlin.li@arm.com>
8906 Bin Cheng <bin.cheng@arm.com>
8908 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
8909 (vec_cmp<mode><v_cmp_result>): New pattern.
8910 (vec_cmpu<mode><mode>): New pattern.
8911 (vcond_mask_<mode><v_cmp_result>): New pattern.
8913 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8915 PR tree-optimization/71734
8916 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
8917 REF_LOOP, invoke ref_indep_loop_p_1.
8918 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
8919 to ref_indep_loop_p.
8920 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
8921 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
8922 is inside LOOP, do not cache dpendence value for loops with
8924 (ref_indep_loop_p_2): Delete function.
8925 (can_sm_ref_p): Pass LOOP as additional argument to
8928 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8931 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
8932 being an offsettable address.
8934 2016-08-10 Martin Liska <mliska@suse.cz>
8936 PR gcov-profile/58306
8937 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
8938 atomic variants of profile update functions.
8940 2016-08-10 Martin Liska <mliska@suse.cz>
8942 Cherry picked (and modified) from google-4_7 branch
8943 2012-12-26 Rong Xu <xur@google.com>
8944 * common.opt (fprofile-update): Add new flag.
8945 * coretypes.h: Define enum profile_update.
8946 * doc/invoke.texi: Document -fprofile-update.
8947 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
8948 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
8949 * tree-profile.c (gimple_init_edge_profiler): Generate
8950 also atomic profiler update.
8951 (gimple_gen_edge_profiler): Likewise.
8953 2016-08-10 David Malcolm <dmalcolm@redhat.com>
8955 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
8956 stack_usage_file to NULL after fclose calls.
8958 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8961 * reload.c (push_reload): Compute subreg_in_class for
8962 subregs of constants and plus expressions. Remove special
8963 handling of SYMBOL_REFs.
8965 2016-08-10 Alan Modra <amodra@gmail.com>
8968 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
8969 SImode for TARGET_E500_DOUBLE when given SImode.
8971 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
8973 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
8974 unused variable __O.
8976 2016-08-09 Martin Liska <mliska@suse.cz>
8978 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
8979 _gcov_reset to __gcov_reset.
8980 * doc/gcov-tool.texi: Fix typo.
8982 2016-08-09 Martin Liska <mliska@suse.cz>
8984 * value-prof.c (gimple_divmod_values_to_profile): Do not
8985 instrument MOD histogram if a value is not a SSA name.
8987 2016-08-09 Martin Liska <mliska@suse.cz>
8989 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
8992 2016-08-09 Renlin Li <renlin.li@arm.com>
8995 * calls.c (prepare_call_address): Convert funexp to Pmode when
8997 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
8998 (sibcall_value): Likewise.
9000 2016-08-09 Marek Polacek <polacek@redhat.com>
9003 * cselib.c (cselib_expand_value_rtx_1): Add return.
9004 * gengtype.c (dbgprint_count_type_at): Likewise.
9005 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
9006 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
9008 2016-08-09 Martin Jambor <mjambor@suse.cz>
9011 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
9012 if instance is a MEM_REF.
9014 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
9017 * config/i386/i386.md (*movtf_internal): Use
9018 lra_in_progress || reload_completed instead of !can_create_pseudo_p
9019 in the insn constraint.
9020 (*movxf_internal): Ditto.
9021 (*movdf_internal): Ditto.
9022 (*movsf_internal): Ditto.
9024 2016-08-09 Bin Cheng <bin.cheng@arm.com>
9026 PR tree-optimization/72772
9027 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9030 2016-08-09 Bin Cheng <bin.cheng@arm.com>
9032 PR tree-optimization/72772
9033 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
9035 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
9036 parameter STOP and update calls. Move expand_simple_operations
9037 function call from here...
9038 (simplify_using_initial_conditions): ...to here. Delete parameter
9040 (tree_simplify_using_condition): Delete parameter STOP.
9041 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
9042 simplify_using_initial_conditions.
9044 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
9047 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
9048 Use create_tmp_var_raw instead of create_tmp_var.
9050 2016-08-09 Richard Biener <rguenther@suse.de>
9052 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
9053 Treat same SSA names related.
9055 2016-08-09 Jakub Jelinek <jakub@redhat.com>
9057 PR tree-optimization/72824
9058 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
9059 real_zerop is not negative.
9061 2016-08-09 Richard Biener <rguenther@suse.de>
9063 PR tree-optimization/71802
9064 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
9065 all merge opportunities with the predecessor.
9067 2016-08-09 Richard Biener <rguenther@suse.de>
9070 * ipa-prop.c (ipa_modify_formal_parameters): Build
9071 parameter types with natural alignment also for the
9074 2016-08-08 Andi Kleen <ak@linux.intel.com>
9076 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
9078 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9081 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
9082 do-nothing langhook.
9083 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
9084 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
9085 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
9086 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
9088 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9091 * input.c: Ensure that HAVE_ICONV is defined.
9093 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9096 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
9097 private vars for lastprivate and for linear iterator.
9100 * omp-simd-clone.c: Include varasm.h.
9101 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
9102 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
9103 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
9104 update function name.
9106 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9108 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
9109 (avr_diagnose_devicespecs_error): Remove.
9110 (avr_devicespecs_file): Remove composing absolute path for specfile
9111 and its verbose info. Remove conditions to check specs-file,
9113 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9115 PR rtl-optimization/72821
9116 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
9117 just return false for them.
9119 2016-08-08 Alan Modra <amodra@gmail.com>
9122 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
9123 toc refs created during reload. Update function comment.
9125 2016-08-08 Alan Modra <amodra@gmail.com>
9128 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
9129 alternatives. Put loads first, then stores, and reg/reg moves
9130 within same class later. Delete attr length.
9132 2016-08-08 Alan Modra <amodra@gmail.com>
9135 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
9136 (mem_operand_ds_form): New predicate.
9137 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
9138 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
9139 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
9140 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
9141 (extendsfdf2_fpr): Replace o constraint with wY.
9143 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
9145 * tree-ssa-threadbackward.c: Include tree-inline.h
9146 (profitable_jump_thread_path): Use estimate_num_insns to estimate
9147 size of copied block; for cold paths reduce duplication.
9148 (find_jump_threads_backwards): Remove redundant tests.
9149 (pass_thread_jumps::gate): Enable for -Os.
9151 2016-08-07 Jakub Jelinek <jakub@redhat.com>
9154 * stor-layout.c (layout_decl): Fix up formatting.
9155 (relayout_decl): Allow DECL to be FIELD_DECL.
9157 2016-08-07 Alan Modra <amodra@gmail.com>
9159 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
9161 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9163 * data-streamer-in.c (streamer_read_wide_int): New.
9164 (streamer_read_widest_int): Renamed function.
9165 * data-streamer-out.c (streamer_write_wide_int): New
9166 (streamer_write_widest_int): Renamed function.
9167 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
9169 (input_cfg): Call renamed function.
9170 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
9172 (output_cfg): Call renamed function.
9173 * data-streamer.h: Add declarations.
9175 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9177 * tree-ssa-ccp.c (extend_mask): New param sgn.
9178 Remove ORing with wi::mask.
9179 (get_default_value): Adjust call to extend_mask to pass sign.
9180 (evaluate_stmt): Likewise.
9182 2016-08-06 Jakub Jelinek <jakub@redhat.com>
9184 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
9187 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9189 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
9190 transform if operand's type is pointer to function or method.
9192 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9194 PR tree-optimization/18046
9195 * tree-ssa-threadedge.c: Include cfganal.h.
9196 (simplify_control_statement_condition): If simplifying a
9197 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
9198 with the dominating ASSERT_EXPR before handing it off to VRP.
9199 Mention that a CASE_LABEL_EXPR may be returned.
9200 (thread_around_empty_blocks): Adjust to handle
9201 simplify_control_statement_condition() returning a
9203 (thread_through_normal_block): Likewise.
9204 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
9205 a switch statement by trying to determine which case label
9208 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
9210 PR rtl-optimization/69847
9211 * lra-constraints.c (process_invariant_for_inheritance): Save
9212 pattern instead of src.
9213 (remove_inheritance_pseudos): Use the pattern. Add assert.
9215 2016-08-05 David Malcolm <dmalcolm@redhat.com>
9217 * input.c (string_concat::string_concat): New constructor.
9218 (string_concat_db::string_concat_db): New constructor.
9219 (string_concat_db::record_string_concatenation): New method.
9220 (string_concat_db::get_string_concatenation): New method.
9221 (string_concat_db::get_key_loc): New method.
9222 (class auto_cpp_string_vec): New class.
9223 (get_substring_ranges_for_loc): New function.
9224 (get_source_range_for_substring): New function.
9225 (get_num_source_ranges_for_substring): New function.
9226 (class selftest::lexer_test_options): New class.
9227 (struct selftest::lexer_test): New struct.
9228 (class selftest::ebcdic_execution_charset): New class.
9229 (selftest::ebcdic_execution_charset::s_singleton): New variable.
9230 (selftest::lexer_test::lexer_test): New constructor.
9231 (selftest::lexer_test::~lexer_test): New destructor.
9232 (selftest::lexer_test::get_token): New method.
9233 (selftest::assert_char_at_range): New function.
9234 (ASSERT_CHAR_AT_RANGE): New macro.
9235 (selftest::assert_num_substring_ranges): New function.
9236 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
9237 (selftest::assert_has_no_substring_ranges): New function.
9238 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
9239 (selftest::test_lexer_string_locations_simple): New function.
9240 (selftest::test_lexer_string_locations_ebcdic): New function.
9241 (selftest::test_lexer_string_locations_hex): New function.
9242 (selftest::test_lexer_string_locations_oct): New function.
9243 (selftest::test_lexer_string_locations_letter_escape_1): New function.
9244 (selftest::test_lexer_string_locations_letter_escape_2): New function.
9245 (selftest::test_lexer_string_locations_ucn4): New function.
9246 (selftest::test_lexer_string_locations_ucn8): New function.
9247 (selftest::uint32_from_big_endian): New function.
9248 (selftest::test_lexer_string_locations_wide_string): New function.
9249 (selftest::uint16_from_big_endian): New function.
9250 (selftest::test_lexer_string_locations_string16): New function.
9251 (selftest::test_lexer_string_locations_string32): New function.
9252 (selftest::test_lexer_string_locations_u8): New function.
9253 (selftest::test_lexer_string_locations_utf8_source): New function.
9254 (selftest::test_lexer_string_locations_concatenation_1): New
9256 (selftest::test_lexer_string_locations_concatenation_2): New
9258 (selftest::test_lexer_string_locations_concatenation_3): New
9260 (selftest::test_lexer_string_locations_macro): New function.
9261 (selftest::test_lexer_string_locations_stringified_macro_argument):
9263 (selftest::test_lexer_string_locations_non_string): New function.
9264 (selftest::test_lexer_string_locations_long_line): New function.
9265 (selftest::test_lexer_char_constants): New function.
9266 (selftest::input_c_tests): Call the new test functions once per
9267 case within the line_table test matrix.
9268 * input.h (struct string_concat): New struct.
9269 (struct location_hash): New struct.
9270 (class string_concat_db): New class.
9271 * substring-locations.h: New header.
9273 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9275 PR tree-optimization/72810
9276 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
9277 the type of the case labels when truncating.
9279 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9282 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
9283 (aarch64_fp16_ptr_type_node): Likewise.
9284 * config/aarch64/aarch64-simd-builtins.c
9285 (aarch64_fp16_ptr_type_node): Define.
9286 (aarch64_init_fp16_types): New, refactored out of...
9287 (aarch64_init_builtins): ...here, update to call
9288 aarch64_init_fp16_types.
9289 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
9291 (aapcs_vfp_sub_candidate): Likewise.
9293 2016-08-05 Martin Liska <mliska@suse.cz>
9294 Joshua Cranmer <Pidgeot18@gmail.com>
9296 * gcov.c (line_t::has_block): New function.
9297 (enum loop_type): New enum.
9298 (handle_cycle): New function.
9299 (unblock): Likewise.
9300 (circuit): Likewise.
9301 (get_cycles_count): Likewise.
9302 (accumulate_line_counts): Use new loop detection algorithm.
9304 2016-08-05 Martin Liska <mliska@suse.cz>
9306 * gcov.c (output_intermediate_file): Rename
9307 function_info::line_next to next_file_fn.
9308 (process_file): Likewise.
9309 (read_graph_file): Likewise.
9310 (accumulate_line_counts): Likewise.
9311 (output_lines): Likewise.
9313 2016-08-05 Richard Biener <rguenther@suse.de>
9315 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
9316 restriction on threading to a loop header.
9318 2016-08-05 Richard Biener <rguenther@suse.de>
9320 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
9321 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
9322 adjust loop info accordingly.
9324 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9326 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
9327 before folding call to __builtin_constant_p with parameters to false.
9329 2016-08-05 Alan Modra <amodra@gmail.com>
9331 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
9332 code accidentally committed 2016-05-02 providing class when given
9335 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9337 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
9338 the case label ranges that partially overlap with OP's value
9341 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
9344 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
9345 Cast builtin function result to __mmask16 instead of __mmask8.
9346 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9347 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
9348 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9350 2016-08-04 David Malcolm <dmalcolm@redhat.com>
9352 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
9353 (ASSERT_TRUE_AT): New macro.
9354 (ASSERT_FALSE): Reimplement in terms of...
9355 (ASSERT_FALSE_AT): New macro.
9356 (ASSERT_STREQ_AT): Fix typo in comment.
9358 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9360 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
9361 labels are exhaustive, designate the label with the widest
9362 range to be the default label.
9364 2016-08-04 Andrew Pinski <apinski@cavium.com>
9366 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
9367 (thunderx_tunings): Use thunderx_vector_cost instead of
9368 generic_vector_cost.
9370 2016-08-04 Martin Liska <mliska@suse.cz>
9372 * gcov.c (main): Fix GNU coding style.
9373 (output_intermediate_file): Likewise.
9374 (process_file): Likewise.
9375 (generate_results): Likewise.
9376 (release_structures): Likewise.
9377 (create_file_names): Likewise.
9378 (find_source): Likewise.
9379 (read_graph_file): Likewise.
9380 (find_exception_blocks): Likewise.
9381 (canonicalize_name): Likewise.
9382 (make_gcov_file_name): Likewise.
9383 (mangle_name): Likewise.
9384 (accumulate_line_counts): Likewise.
9385 (output_branch_count): Likewise.
9386 (read_line): Likewise.
9388 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9390 PR rtl-optimization/71779
9391 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
9392 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
9393 or if it was truncated.
9395 PR rtl-optimization/70903
9396 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
9398 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9400 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
9401 accessing SSA_NAME_PTR_INFO.
9403 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9406 * common/config/avr/avr-common.c (avr_option_optimization_table)
9407 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
9409 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9412 * config/avr/avr.md: New pattern to work around do_store_flag
9413 generating shift instructions for bit extractions.
9415 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9417 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
9419 (add_equivalence): Likewise.
9420 (get_value_range): Allocate value range with vrp_value_range_pool.
9421 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
9422 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
9424 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
9426 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
9427 the default for the rs6000 port.
9429 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9432 * calls.c (special_function_p): Remove special handling of
9433 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
9434 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
9435 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
9437 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
9440 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
9441 Don't stop on regular insns.
9443 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9445 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
9446 size to DImode boundary.
9447 (nvptx_propagate): Likewise.
9449 2016-08-03 Alan Modra <amodra@gmail.com>
9451 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
9452 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
9453 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
9454 from -mefficient-unaligned-vector. Note that this affects fp too.
9456 2016-08-03 Alan Modra <amodra@gmail.com>
9458 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
9461 2016-08-03 Alan Modra <amodra@gmail.com>
9463 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
9464 to a reg. Localize vars.
9466 2016-08-03 Alan Modra <amodra@gmail.com>
9468 * config/rs6000/rs6000.opt: Remove negatives from help strings
9471 2016-08-03 Alan Modra <amodra@gmail.com>
9473 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
9474 Delete duplicated code.
9476 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9479 * lra-spills.c (regno_in_use_p): New.
9480 (lra_final_code_change): Use it.
9482 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9484 PR rtl-optimization/69847
9485 * lra-int.h (struct lra-reg): Use restore_rtx instead of
9487 (lra_rtx_hash): New.
9488 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
9490 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
9491 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
9492 * lra-spills.c (lra_final_code_change): Don't delete insn when the
9493 next insn is USE with the same reg as the current insn source.
9494 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
9496 (lra_constraints_init): Call initiate_invariants.
9497 (lra_constraints_finish): Call finish_invariants.
9498 (struct invariant, invariant_t, invariant_ptr_t): New.
9499 (const_invariant_ptr_t, invariants, invariants_pool): New.
9500 (invariant_table, invariant_hash, invariant_eq_p): New.
9501 (insert_invariant, initiate_invariants, finish_invariants): New.
9502 (clear_invariants, invalid_invariant_regs): New.
9503 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
9504 instead of restore_regno.
9505 (invariant_p, process_invariant_for_inheritance): New.
9506 (inherit_in_ebb): Implement invariant inheritance.
9507 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
9508 (remove_inheritance_pseudos): Implement undoing invariant
9510 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
9511 instead of restore_regno.
9512 * lra-assigns.c (regno_live_length): New.
9513 (reload_pseudo_compare_func): Use regno_live_length.
9514 (assign_by_spills): Use restore_rtx instead of restore_regno.
9515 (lra_assign): Ditto. Initiate regno_live_length.
9517 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
9519 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
9520 __builtin_aarch64_fmindf.
9522 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9524 PR tree-optimization/34114
9525 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
9526 information for more control IVs.
9528 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9530 PR tree-optimization/34114
9531 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
9532 PLUS_EXPR case. Handle SSA_NAME case.
9534 2016-08-02 Tamar Christina <tamar.christina@arm.com>
9536 * config/aarch64/aarch64-simd-builtins.def
9537 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
9538 (__builtin_aarch64_fmaxdf): Likewise.
9539 (__builtin_aarch64_smin_nandf): Likewise.
9540 (__builtin_aarch64_smax_nandf): Likewise.
9541 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
9542 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
9543 (<fmaxmin><mode>3): ...this.
9544 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
9545 (vminnm_f64): Likewise.
9546 (vmin_f64): Likewise.
9547 (vmax_f64): Likewise.
9548 * config/aarch64/iterators.md (FMAXMIN): Merge with...
9549 (FMAXMIN_UNS): ...this.
9550 (fmaxmin): Merged with
9551 (fmaxmin_op): ...this...
9552 (maxmin_uns_op): ...in to this.
9554 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9556 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9557 Add support for vec_extract on vector float, vector int, vector
9558 short, and vector char vector types.
9559 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9560 vector float, vector int, vector short, and vector char
9561 optimizations on 64-bit ISA 2.07 systems for both constant and
9562 variable element numbers.
9563 (rs6000_split_vec_extract_var): Likewise.
9564 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
9565 Altivec registers on ISA 2.07 and above.
9566 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
9567 which never was matched due to the split occuring before register
9568 allocation (and the code would not have worked on little endian
9569 systems if it did match). Allow extracts to go to the Altivec
9570 registers if ISA 2.07 (power8). Change from using "" around the
9571 C++ code to using {}'s.
9572 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
9573 vec_extracts when the vector is in memory.
9574 (vsx_extract_v4sf_var): New insn to optimize vector float
9575 vec_extracts when the element number is variable on 64-bit ISA
9577 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
9578 for 64-bit ISA 2.07 as well as ISA 3.0.
9579 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
9580 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
9581 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
9582 optimize vector int, vector short, and vector char vec_extracts
9583 when the vector is in memory.
9584 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
9585 optimize vector int, vector short, and vector char vec_extracts
9586 when the element number is variable.
9588 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9591 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
9592 does not overlap with other symbol flags.
9594 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
9596 * config/aarch64/aarch64.h (aarch64_frame):
9597 Remove padding0 and hardfp_offset. Add locals_offset,
9598 initial_adjust, callee_adjust, callee_offset and final_adjust.
9599 * config/aarch64/aarch64.c (aarch64_layout_frame):
9600 Remove unused padding0 and hardfp_offset initializations.
9601 Choose frame layout and set frame variables accordingly.
9602 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
9603 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
9604 (aarch64_pop_regs): Likewise.
9605 (aarch64_expand_prologue): Remove all decision code, just emit
9606 prolog according to frame variables.
9607 (aarch64_expand_epilogue): Remove all decision code, just emit
9608 epilog according to frame variables.
9609 (aarch64_initial_elimination_offset): Use offset to local/arg area.
9611 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
9614 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
9615 fix_debug_reg_uses after changing source register mode to
9616 V1TImode if source register is undefined.
9618 2015-08-01 Alan Hayward <alan.hayward@arm.com>
9620 PR tree-optimization/71818
9621 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
9622 with non invariant evolutions
9624 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9627 * config/avr/avr.md (length) [branch]: Correct insn length
9628 attribute for forward branches.
9630 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9632 * doc/extend.texi (AVR Built-in Functions): Document
9634 * config/avr/builtins.def (NOPS): New.
9635 * config/avr/avr.c (avr_expand_nops): New static function.
9636 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
9638 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9640 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
9641 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
9644 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
9646 * config/aarch64/aarch64.c (vulcan_tunings): Update
9647 vulcan L1 cache_line_size.
9649 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9651 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
9652 function that takes a vector memory address, a hard register, an
9653 element number and a temporary base register, and recreates an
9654 address that points to the appropriate element within the vector.
9655 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
9656 (rs6000_split_vec_extract_var): Add support for the target of a
9657 vec_extract with variable element number being a scalar memory
9659 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
9661 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
9662 vsx_extract_<mode>_load insn with a new insn that optimizes
9663 storing either element to a memory location, using scratch
9664 registers to pick apart the vector and reconstruct the address.
9665 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
9666 (vsx_extract_<mode>_store): Rework alternatives to more correctly
9667 support Altivec registers. Add support for ISA 3.0 Altivec d-form
9669 (vsx_extract_<mode>_var): Add support for extracting a variable
9670 element number from memory.
9672 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9674 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
9675 when testing for compares against constants of the form 0xabab.
9677 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9679 PR tree-optimization/57558
9680 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
9682 (vect_loop_versioning): Support versioning with niter assumptions.
9683 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
9684 (vect_get_loop_niters): New parameter. Reimplement to support
9685 assumptions in loop niter info.
9686 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
9687 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
9688 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
9689 Support loop versioning for niters.
9690 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
9691 (vect_free_loop_info_assumptions): New function.
9692 (vectorize_loops): Free loop niter info for loops with flag
9693 LOOP_F_ASSUMPTIONS set if vectorization failed.
9694 * tree-vectorizer.h (struct _loop_vec_info): New field
9695 num_iters_assumptions.
9696 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
9697 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
9698 (LOOP_REQUIRES_VERSIONING): New macro.
9699 (vect_free_loop_info_assumptions): New decl.
9701 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9703 * cfgloop.h (struct loop): New field constraints.
9704 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
9705 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
9707 * cfgloop.c (alloc_loop): Initialize new field.
9708 * cfgloopmanip.c (copy_loop_info): Copy constraints.
9709 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9710 Adjust niter analysis wrto loop constraints.
9711 * doc/loop.texi (@node Number of iterations): Add description for loop
9714 2016-07-29 Marek Polacek <polacek@redhat.com>
9717 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
9718 (ix86_expand_round_builtin): Likewise.
9720 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9721 Georg-Johann Lay <avr@gjlay.de>
9723 PR rtl-optimization/71976
9724 * combine.c (get_last_value): Return 0 if the argument for which
9725 the function is called has a wider mode than the recorded value.
9727 2016-07-29 Marek Polacek <polacek@redhat.com>
9730 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
9731 (altivec_expand_st_builtin): Likewise.
9733 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9735 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
9736 introduced in r238381.
9738 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9741 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
9742 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
9744 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9746 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
9748 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9749 Add support for vec_extract of vector double or vector long having
9750 a variable element number on 64-bit ISA 2.07 systems or newer.
9751 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9753 (rs6000_split_vec_extract_var): New function to split a
9754 vec_extract built-in function with variable element number.
9755 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
9757 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
9758 (UNSPEC_VSX_EXTRACT): Likewise.
9759 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
9760 direct move instructions to be generated on 64-bit ISA 2.07
9761 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
9763 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
9764 arguments for vec_extract variable element.
9765 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
9766 vec_extract with variable element on V2DFmode and V2DImode
9768 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
9769 -mupper-regs-df requirement, since it isn't needed.
9770 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
9771 do direct moves on 64-bit systems, which allows optimization of
9772 vec_extract on 64-bit ISA 2.07 systems and newer.
9774 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9775 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9777 * config/aarch64/aarch64.md
9778 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
9780 (<optab>qihi2_aarch64): Likewise, and split into two.
9781 (extendqihi2_aarch64): New.
9782 (zero_extendqihi2_aarch64): New.
9783 * config/aarch64/iterators.md (ldrxt): Remove.
9784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
9787 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
9791 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9793 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
9794 (aarch64_push_reg): New function to push 1 or 2 registers.
9795 (aarch64_pop_reg): New function to pop 1 or 2 registers.
9796 (aarch64_expand_prologue): Use aarch64_push_regs.
9797 (aarch64_expand_epilogue): Use aarch64_pop_regs.
9799 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
9801 PR tree-optimization/71734
9802 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
9803 attribute instead of REF_LOOP and use it.
9804 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
9805 set it for Loops having non-zero safelen attribute.
9806 (ref_indep_loop_p): Pass zero as initial value for safelen.
9808 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
9812 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
9813 call using chkp_gimple_call_builtin_p.
9814 (chkp_copy_bounds_for_assign): Likewise.
9816 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9818 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
9819 * config/arm/arm-protos.h (struct tune_params): Likewise.
9820 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9821 (cortex_a9_sched_adjust_cost): Likewise.
9822 (fa726te_sched_adjust_cost): Likewise.
9823 (arm_adjust_cost): Likewise.
9824 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
9825 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
9826 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
9827 * config/i386/i386.c (ix86_adjust_cost): Likewise.
9828 * config/ia64/ia64.c: Likewise.
9829 * config/m68k/m68k.c: Likewise.
9830 * config/mep/mep.c (mep_adjust_cost): Likewise.
9831 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9833 * config/mips/mips.c (mips_adjust_cost): Likewise.
9834 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
9836 * config/pa/pa.c (pa_adjust_cost): Likewise.
9837 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
9838 (rs6000_debug_adjust_cost): Likewise.
9839 * config/sh/sh.c (sh_adjust_cost): Likewise.
9840 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
9841 (hypersparc_adjust_cost): Likewise.
9842 (sparc_adjust_cost): Likewise.
9843 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
9844 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
9845 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
9847 * config/visium/visium.c (visium_adjust_cost): Likewise.
9848 * doc/tm.texi: Regenerate.
9849 * haifa-sched.c (dep_cost_1): Adjust.
9850 * target.def: Merge adjust_cost and adjust_cost_2.
9852 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9854 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
9856 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9858 * store-motion.c (struct st_expr): Make pattern_regs a vector.
9859 (extract_mentioned_regs): Append to a vector instead of
9860 returning a rtx_expr_list.
9861 (st_expr_entry): Adjust.
9862 (free_st_expr_entry): Likewise.
9863 (store_ops_ok): Likewise.
9864 (store_killed_in_insn): Likewise.
9865 (find_moveable_store): Likewise.
9867 2016-07-28 Martin Liska <mliska@suse.cz>
9869 PR gcov-profile/68025
9870 * tree-profile.c (tree_profiling): Respect
9871 no_profile_instrument_function attribute.
9872 * doc/extend.texi: Document no_profile_instrument_function
9875 2016-07-28 Martin Liska <mliska@suse.cz>
9877 PR rtl-optimization/70944
9878 * combine.c (make_compound_operation):
9879 Do not allow make_compound_operation for vector mode
9881 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
9884 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
9885 before calling get_ops.
9887 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9889 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
9890 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
9891 (BITS_PER_UNIT_LOG): Remove.
9892 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
9893 * expr.c (expand_assignment): Likewise.
9894 * stor-layout.c (initialize_sizetypes): Likewise.
9896 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9898 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
9899 signature of rs6000_expand_vector_extract so that the element
9900 number is a RTX instead of a constant integer.
9901 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
9903 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
9904 (altivec_expand_vec_ext_builtin): Likewise.
9905 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
9906 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
9907 MFVSRLD instruction.
9909 2016-07-27 David Malcolm <dmalcolm@redhat.com>
9911 * input.c (get_pure_location): Move here from tree.c.
9912 (make_location): Likewise. Add header comment.
9913 (selftest::test_accessing_ordinary_linemaps): Verify
9914 pure_location_p, make_location, get_location_from_adhoc_loc and
9916 * input.h (get_pure_location): Move declaration here from tree.h.
9917 (get_finish): Likewise for inline function.
9918 (make_location): Likewise for declaration.
9919 * tree.c (get_pure_location): Move to input.c.
9920 (make_location): Likewise.
9921 * tree.h (get_pure_location): Move declaration to tree.h.
9922 (get_finish): Likewise for inline function.
9923 (make_location): Likewise for declaration.
9925 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9928 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
9930 2016-07-27 David Malcolm <dmalcolm@redhat.com>
9932 * system.h (STATIC_ASSERT): Use static_assert if building
9935 2016-07-27 Richard Biener <rguenther@suse.de>
9937 PR tree-optimization/72517
9938 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9939 Revert change to not compute read-read dependences.
9941 2016-07-27 Richard Biener <rguenther@suse.de>
9943 * predict.c (set_even_probabilities): Make nedges unsigned.
9945 2016-07-27 Martin Liska <mliska@suse.cz>
9947 * predict.c (set_even_probabilities): Handle unlikely edges.
9948 (combine_predictions_for_bb): Likewise.
9950 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9953 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
9954 __float128 support when we don't have hardware support, so that
9955 the IEEE built-in functions like isgreater, first call __unordkf3
9956 to make sure neither operand is a NaN, and if both operands are
9957 ordered, do the normal comparison.
9959 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
9961 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
9963 (extract_code_and_val_from_cond_with_ops): Verify that name is
9964 either cond_op0 or cond_op1.
9966 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
9968 PR tree-optimization/18046
9969 * genmodes.c (emit_mode_size_inline): Emit an assert that
9970 verifies that mode is a valid array index.
9971 (emit_mode_nuinits_inline): Likewise.
9972 (emit_mode_inner_inline): Likewise.
9973 (emit_mode_unit_size_inline): Likewise.
9974 (emit_mode_unit_precision_inline): Likewise.
9975 * tree-vrp.c: Include params.h.
9976 (find_switch_asserts): Register edge assertions for the default
9977 label which correspond to the anti-ranges of each case label.
9978 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
9979 * doc/invoke.texi: Document it.
9981 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9983 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
9984 and unnecessary call to gimple_bb.
9986 2016-07-26 Richard Biener <rguenther@suse.de>
9988 PR rtl-optimization/71984
9989 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
9992 2016-07-26 Richard Biener <rguenther@suse.de>
9995 * expmed.c (extract_bit_field_1): Constrain the vector mode
9996 with element size matching the extraction mode size when
9997 choosing a better vector mode to do the extraction from.
9999 2016-07-26 Richard Biener <rguenther@suse.de>
10000 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10002 PR middle-end/70920
10003 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
10006 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10008 * tree-ssa-structalias.c (struct scc_info): Change types of
10009 members to auto_sbitmap and auto_vec.
10010 (scc_info::scc_info): New constructor.
10011 (scc_info::~scc_info): New destructor.
10012 (init_scc_info): Remove.
10013 (free_scc_info): Remove.
10014 (find_indirect_cycles): Adjust.
10015 (perform_var_substitution): Likewise.
10016 (free_var_substitution_info): Likewise.
10018 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10020 * tree-outof-ssa.c (struct elim_graph): Change type of members
10021 to auto_vec and auto_sbitmap.
10022 (elim_graph::elim_graph): New constructor.
10023 (delete_elim_graph): Remove.
10024 (expand_phi_nodes): Adjust.
10026 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10028 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
10029 (new_elim_graph): Adjust.
10030 (clear_elim_graph): Likewise.
10031 (delete_elim_graph): Likewise.
10032 (elim_graph_size): Likewise.
10033 (elim_graph_add_node): Likewise.
10034 (elim_graph_add_edge): Likewise.
10035 (elim_graph_remove_succ_edge): Likewise.
10036 (eliminate_name): Likewise.
10037 (eliminate_build): Likewise.
10038 (elim_forward): Likewise.
10039 (elim_unvisited_predecessor): Likewise.
10040 (elim_backward): Likewise.
10041 (elim_create): Likewise.
10042 (eliminate_phi): Likewise.
10043 (expand_phi_nodes): Likewise.
10045 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10047 * bt-load.c (compute_out): Use auto_sbitmap class.
10048 (link_btr_uses): Likewise.
10049 * cfganal.c (mark_dfs_back_edges): Likewise.
10050 (post_order_compute): Likewise.
10051 (inverted_post_order_compute): Likewise.
10052 (pre_and_rev_post_order_compute_fn): Likewise.
10053 (single_pred_before_succ_order): Likewise.
10054 * cfgexpand.c (pass_expand::execute): Likewise.
10055 * cfgloop.c (verify_loop_structure): Likewise.
10056 * cfgloopmanip.c (fix_bb_placements): Likewise.
10057 (remove_path): Likewise.
10058 (update_dominators_in_loop): Likewise.
10059 * cfgrtl.c (break_superblocks): Likewise.
10060 * ddg.c (check_sccs): Likewise.
10061 (create_ddg_all_sccs): Likewise.
10062 * df-core.c (df_worklist_dataflow): Likewise.
10063 * dse.c (dse_step3): Likewise.
10064 * except.c (eh_region_outermost): Likewise.
10065 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10066 * gcse.c (prune_expressions): Likewise.
10067 (prune_insertions_deletions): Likewise.
10068 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
10069 * graph.c (draw_cfg_nodes_no_loops): Likewise.
10070 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
10071 * lcm.c (compute_earliest): Likewise.
10072 (compute_farthest): Likewise.
10073 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
10074 (unroll_loop_runtime_iterations): Likewise.
10075 (unroll_loop_stupid): Likewise.
10076 * lower-subreg.c (decompose_multiword_subregs): Likewise.
10077 * lra-lives.c: Likewise.
10078 * lra.c (lra): Likewise.
10079 * modulo-sched.c (schedule_reg_moves): Likewise.
10080 (optimize_sc): Likewise.
10081 (get_sched_window): Likewise.
10082 (sms_schedule_by_order): Likewise.
10083 (check_nodes_order): Likewise.
10084 (order_nodes_of_sccs): Likewise.
10085 (order_nodes_in_scc): Likewise.
10086 * recog.c (split_all_insns): Likewise.
10087 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
10088 * reload1.c (reload): Likewise.
10089 * sched-rgn.c (haifa_find_rgns): Likewise.
10090 (split_edges): Likewise.
10091 (compute_trg_info): Likewise.
10092 * sel-sched.c (init_seqno): Likewise.
10093 * store-motion.c (remove_reachable_equiv_notes): Likewise.
10094 * tree-into-ssa.c (update_ssa): Likewise.
10095 * tree-ssa-live.c (live_worklist): Likewise.
10096 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
10097 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10099 (try_peel_loop): Likewise.
10100 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10102 * tree-ssa-pre.c (compute_antic): Likewise.
10103 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
10104 * tree-stdarg.c (reachable_at_most_once): Likewise.
10105 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
10106 * var-tracking.c (vt_find_locations): Likewise.
10108 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10110 * sbitmap.h (auto_sbitmap): New class.
10112 2016-07-26 Alan Modra <amodra@gmail.com>
10115 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
10118 2016-07-25 David Malcolm <dmalcolm@redhat.com>
10120 * input.c (selftest::temp_source_file::temp_source_file): Fix
10121 missing "%s" in fprintf.
10123 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
10125 PR middle-end/71732
10126 * cselib.c (cselib_process_insn): Invalidate argument slots for
10129 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10131 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
10132 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
10133 vmulxh_lane_f16, vmulxh_laneq_f16): New.
10135 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10137 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10138 * config/aarch64/aarch64.md (fma, fnma): Support HF.
10139 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
10141 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10143 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10144 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
10146 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
10147 (add<mode>3): Likewise.
10148 (sub<mode>3): Likewise.
10149 (mul<mode>3): Likewise.
10150 (div<mode>3): Likewise.
10151 (*div<mode>3): Likewise.
10152 (<fmaxmin><mode>3): Extend to HF.
10153 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
10154 (fabd<mode>3): Likewise.
10155 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
10156 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
10157 (aarch64_fmulx<mode>): Likewise.
10158 (aarch64_fac<optab><mode>): Likewise.
10159 (aarch64_frecps<mode>): Likewise.
10160 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
10161 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
10162 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
10163 (VSDQ_HSDI): Support HI.
10164 (fcvt_target, FCVT_TARGET): Likewise.
10165 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
10166 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
10167 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
10168 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
10169 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
10170 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
10171 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
10172 vrsqrtsh_f16): New.
10174 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10176 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
10177 * config/aarch64/aarch64-builtins.c (hi_UP): New.
10178 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10179 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
10181 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10182 (aarch64_cm<optab><mode>): Likewise.
10183 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
10184 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
10185 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
10186 (sqrt<mode>2): Likewise.
10187 (*sqrt<mode>2): Likewise.
10188 (abs<mode>2): Likewise.
10189 (<optab><mode>hf2): New pattern for HF mode.
10190 (<optab>hihf2): Likewise.
10191 * config/aarch64/arm_neon.h: Include arm_fp16.h.
10192 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
10193 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
10195 * config/aarch64/arm_fp16.h: New file.
10196 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
10197 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
10198 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
10199 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
10200 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
10201 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
10202 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
10203 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
10204 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
10205 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
10206 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
10207 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
10210 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10212 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
10213 reduc_smin_scal_): Use VDQIF_F16.
10214 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
10215 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
10217 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
10218 * config/aarch64/iterators.md (VDQIF_F16): New.
10219 (vp): Support HF modes.
10220 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
10221 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
10223 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10225 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
10226 "*aarch64_mulx_elt_from_dup<mode>".
10227 (*aarch64_mul3_elt<mode>): Update schedule type.
10228 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
10229 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
10230 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10231 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
10232 (f, fp): Support HF modes.
10233 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
10234 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
10235 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
10236 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
10237 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
10238 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
10240 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10242 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10243 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
10245 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
10248 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10250 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10251 * config/aarch64/aarch64-simd.md
10252 (aarch64_rsqrts<mode>): Extend to HF modes.
10253 (fabd<mode>3): Likewise.
10254 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
10255 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
10256 (aarch64_<maxmin_uns>p<mode>): Likewise.
10257 (<su><maxmin><mode>3): Likewise.
10258 (<maxmin_uns><mode>3): Likewise.
10259 (<fmaxmin><mode>3): Likewise.
10260 (aarch64_faddp<mode>): Likewise.
10261 (aarch64_fmulx<mode>): Likewise.
10262 (aarch64_frecps<mode>): Likewise.
10263 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
10264 (add<mode>3): Extend to HF modes.
10265 (sub<mode>3): Likewise.
10266 (mul<mode>3): Likewise.
10267 (div<mode>3): Likewise.
10268 (*div<mode>3): Likewise.
10269 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
10271 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
10272 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
10273 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
10274 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
10275 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
10276 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
10277 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
10278 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
10279 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
10280 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
10281 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
10282 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
10283 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
10284 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
10286 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10288 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
10289 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10290 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
10291 (neg<mode>2): Likewise.
10292 (abs<mode>2): Likewise.
10293 (<frint_pattern><mode>2): Likewise.
10294 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10295 (<optab><VDQF:mode><fcvt_target>2): Likewise.
10296 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
10297 (ftrunc<VDQF:mode>2): Likewise.
10298 (<optab><fcvt_target><VDQF:mode>2): Likewise.
10299 (sqrt<mode>2): Likewise.
10300 (*sqrt<mode>2): Likewise.
10301 (aarch64_frecpe<mode>): Likewise.
10302 (aarch64_cm<optab><mode>): Likewise.
10303 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
10305 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
10306 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
10308 * config/aarch64/arm_neon.h (vdup_n_f16): New.
10309 (vdupq_n_f16): Likewise.
10310 (vld1_dup_f16): Use vdup_n_f16.
10311 (vld1q_dup_f16): Use vdupq_n_f16.
10312 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
10313 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
10314 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
10315 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
10316 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
10317 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
10318 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
10319 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
10320 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
10321 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
10322 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
10323 vsqrt_f16, vsqrtq_f16): New.
10325 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10327 * config/aarch64/aarch64-simd.md
10328 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
10329 (aarch64_ext<mode>): Likewise.
10330 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
10331 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
10332 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
10334 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
10336 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
10337 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
10338 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
10339 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
10340 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
10341 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
10342 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
10344 (vmov_n_f16): Reimplement using vdup_n_f16.
10345 (vmovq_n_f16): Reimplement using vdupq_n_f16..
10347 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10349 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
10350 "frame_related_p". Generate CFA annotation when it's necessary.
10351 (aarch64_expand_prologue): Use aarch64_add_constant.
10352 (aarch64_expand_epilogue): Likewise.
10353 (aarch64_output_mi_thunk): Pass "false" when calling
10354 aarch64_add_constant.
10356 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10358 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
10361 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10363 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
10364 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
10365 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
10366 (aarch64_build_constant): Delete.
10368 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
10371 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10373 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10374 flag_toplevel_reorder.
10376 2016-07-25 Richard Biener <rguenther@suse.de>
10378 * cgraph.c (cgraph_node::verify_node): Compare against builtin
10379 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
10380 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
10381 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
10382 (streamer_get_builtin_tree): Likewise.
10383 (streamer_write_builtin): Likewise.
10384 * lto-streamer.h (LTO_builtin_decl): Remove.
10385 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
10386 (lto_input_scc): Remove LTO_builtin_decl handling.
10387 (lto_input_tree_1): Liekwise.
10388 * lto-streamer-out.c (lto_output_tree_1): Remove special
10389 handling of builtins.
10390 (DFS::DFS): Likewise.
10391 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
10392 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
10394 (streamer_write_builtin): Remove.
10396 2016-07-25 Martin Liska <mliska@suse.cz>
10398 * lto-cgraph.c (input_symtab): Don't call get_working_sets
10399 if flag_auto_profile is set to true.
10401 2016-07-25 Martin Liska <mliska@suse.cz>
10403 PR gcov-profile/71868
10404 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
10405 have a function with multiple latches, count them all.
10407 2016-07-25 Martin Liska <mliska@suse.cz>
10409 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
10411 2016-07-25 Martin Liska <mliska@suse.cz>
10413 PR tree-optimization/71987
10414 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
10415 just for SSA_NAMEs. Fix GNU coding style.
10417 2016-07-25 Martin Liska <mliska@suse.cz>
10419 PR gcov-profile/64874
10420 * gcov-io.h: Update command about file format.
10421 * gcov-iov.c (main): Adapt the numbering scheme.
10423 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
10425 PR middle-end/66726
10426 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
10427 whose result is used in PHI.
10428 (final_range_test_p): Likewise.
10429 (maybe_optimize_range_tests): Likewise.
10431 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10433 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10434 Reformat two multi-line strings.
10436 2016-07-22 Martin Sebor <msebor@redhat.com>
10438 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
10440 2016-07-22 Martin Sebor <msebor@redhat.com>
10443 * doc/extend.texi (Compound Literals): Correct and clarify.
10444 (Cast to Union): Same.
10446 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
10448 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10449 comments to explain why certain error messages make mention of
10450 undocumented options.
10451 (rs6000_invalid_builtin): Change error messages to replace mention
10452 of undocumented options with mention of the -mcpu=power9 option
10453 that enables those undocumented options.
10454 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
10455 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
10456 definition of this macro to correct an existing error.
10457 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
10458 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
10459 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
10460 descriptions of built-in functions so that they depend on
10461 -mcpu=power9 instead of on the corresponding undocumented flags.
10462 * doc/invoke.texi (Option Summary): Remove all mention of newly
10463 undocumented flags.
10464 (IBM RS/6000 and PowerPC Options): Likewise.
10465 * doc/md.texi (Constraints for Particuliar Machines): Remove all
10466 mention of newly undocumented flags.
10468 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
10470 * ipa-cp.c (determine_versionability): Do not create constprop clones,
10471 when target_clones attribute is set.
10473 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10475 * common.opt (funsafe-loop-optimizations): Mark ignore.
10476 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
10477 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
10479 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
10480 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
10482 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10484 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10486 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10488 (number_of_iterations_exit): Warn missed loop optimization for
10489 possible infinite loops.
10491 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
10494 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
10495 when to emit a ".machine" pseudo-op.
10497 2016-07-22 Martin Liska <mliska@suse.cz>
10499 PR gcov-profile/69028
10500 PR gcov-profile/62047
10501 * coverage.c (coverage_compute_lineno_checksum): Do not
10502 calculate checksum for fns w/o xloc.file.
10503 (coverage_compute_profile_id): Likewise.
10505 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
10507 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
10508 (avr_secondary_reload): ...and implementation.
10509 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
10510 * config/avr/avr.md (reload_in<mode>): Remove insns.
10511 (adjust_len) [lpm]: Remove insn attribute value.
10512 * config/avr/predicates.md (flash_operand): Remove insn predicate.
10514 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10516 PR middle-end/71876
10517 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
10519 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
10520 * calls.c (special_function_p): Remove the special handling of the
10521 "__builtin_" prefix.
10523 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10525 PR middle-end/71876
10526 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
10527 if STMT may be an alloca call.
10528 (gimple_alloca_call_p, alloca_call_p): Return only true for the
10529 builtin alloca call.
10530 * calls.h (gimple_maybe_alloca_call_p): New function.
10531 * tree-inline.c (inline_forbidden_p_stmt): Use
10532 gimple_maybe_alloca_call_p here.
10534 2016-07-21 David Malcolm <dmalcolm@redhat.com>
10536 * spellcheck-tree.c (best_macro_match::best_macro_match):
10537 Explictly specify the template arguments when invoking the base
10538 class constructor, to help older C++ compilers.
10540 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10543 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
10544 before builtin_decl_implicit.
10546 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10548 * optabs.c (emit_condiitonal_move): Short circuit for identical
10551 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10553 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
10554 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
10555 (noce_conversion_profitable_p): New.
10556 (noce_try_store_flag_constants): Use it.
10557 (noce_try_addcc): Likewise.
10558 (noce_try_store_flag_mask): Likewise.
10559 (noce_try_cmove): Likewise.
10560 (noce_try_cmove_arith): Likewise.
10561 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
10563 (noce_convert_multiple_sets): Move cost model to here, from...
10564 (bb_ok_for_noce_convert_multiple_sets) ...here.
10565 (noce_process_if_block): Update calls for above changes.
10566 (noce_find_if_block): Record new noce_if_info parameters.
10568 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10570 * target.def (max_noce_ifcvt_seq_cost): New.
10571 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
10572 * doc/tm.texi: Regenerate.
10573 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
10574 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
10575 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
10576 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
10577 * doc/invoke.texi: Document new params.
10579 2016-07-21 Richard Biener <rguenther@suse.de>
10581 PR tree-optimization/71947
10582 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
10583 ranges have useful limit_vr information.
10585 2016-07-21 Richard Biener <rguenther@suse.de>
10587 * function-tests.c (build_trivial_generic_function): Set
10588 BLOCK_SUPERCONTEXT of DECL_INITIAL.
10589 * omp-low.c (create_omp_child_function): Likewise.
10590 (grid_expand_target_grid_body): Likewise.
10591 * cgraphunit.c (init_lowered_empty_function): Likewise.
10592 (cgraph_node::expand_thunk): Likewise.
10593 * tree-parloops.c (create_loop_fn): Likewise.
10594 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
10596 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10598 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
10601 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
10603 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
10604 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
10605 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
10606 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
10607 values for insn attribute.
10608 * config/avr/avr.c (avr_out_insert_notbit): New function.
10609 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
10610 ADJUST_LEN_INSV_NOTBIT_0/_7.
10611 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
10613 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10615 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
10616 (chrec_convert_1, chrec_convert): Ditto.
10617 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
10618 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
10619 * tree-vrp.c (adjust_range_with_scev): Ditto.
10620 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
10621 (scev_var_range_cant_overflow): New function.
10622 (scev_probably_wraps_p): New parameter. Call above function.
10623 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
10625 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10627 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
10628 by removing computation of may_be_zero.
10630 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10632 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
10634 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
10636 Improving concepts performance and diagnostics.
10637 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
10638 for constraint satisfaction and subsumption.
10639 * timevar.h (auto_timevar): New constructor that matches the push/pop
10640 pattern of usage in pt.c.
10642 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10644 * hwint.h (HOST_WIDE_INT_0): New define.
10645 (HOST_WIDE_INT_0U): Ditto.
10646 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
10647 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
10648 * simplify-rtx.c: Ditto.
10649 * tree-object-size.c: Ditto.
10651 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10653 * config/s390/s390.c (s390_encode_section_info): Remove mode size
10656 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10658 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
10659 * combine.c: Use HOST_WIDE_INT_M1U instead of
10660 ~(unsigned HOST_WIDE_INT) 0.
10661 * double-int.h: Ditto.
10663 * dwarf2asm.c:Ditto.
10665 * genmodes.c: Ditto.
10667 * read-rtl.c: Ditto.
10668 * tree-ssa-loop-ivopts.c: Ditto.
10669 * tree-ssa-loop-prefetch.c: Ditto.
10670 * tree-vect-generic.c: Ditto.
10671 * tree-vect-patterns.c: Ditto.
10674 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10676 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
10677 constant addresses outside [0,0xc0] into a register.
10678 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
10679 cases where the base address register is unused after.
10680 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
10681 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
10682 (avr_out_store_psi_reg_disp_tiny): Same.
10684 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10686 Implement attribute progmem on reduced Tiny cores by adding
10687 flash offset 0x4000 to respective symbols.
10690 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
10691 documentation how it works on reduced Tiny cores.
10692 (AVR Named Address Spaces): No support for reduced Tiny.
10693 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
10694 (avr_address_tiny_pm_p): New static function.
10695 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
10696 if the address is in progmem.
10697 (avr_assemble_integer): Same.
10698 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
10699 for symbol_ref in progmem.
10700 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
10701 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
10702 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
10704 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
10706 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
10707 * configure: Regenerate.
10708 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
10709 (USE_THIN_ARCHIVES): New variable.
10710 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
10711 this archive as a thin archive.
10713 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10715 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
10716 same location as last time, don't skip if we have fix-it hints.
10717 Clarify the skipping logic by converting it from one "if" clause
10718 to repeated "if" clauses.
10719 * spellcheck-tree.c: Include "cpplib.h".
10720 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
10721 (best_macro_match::best_macro_match): New constructor.
10722 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
10723 Move here from c/c-decl.c.
10724 (class best_macro_match): Move here from c/c-decl.c, converting
10725 from a typedef to a subclass, gaining a ctor.
10727 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10729 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
10730 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
10732 (avr_addr_space_diagnose_usage): ...and implementation.
10733 (avr_addr_space_supported_p): New function.
10734 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
10735 report bad address space usage if that space is supported.
10736 (avr_insert_attributes): Same. No more complain about unsupported
10738 * config/avr/avr-c.c (tm_p.h): Include it.
10739 (avr_cpu_cpp_builtins): Only define addr-space related built-in
10740 macro if avr_addr_space_supported_p.
10742 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10744 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10745 flag_toplevel_reorder.
10747 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10749 * gcc-rich-location.c
10750 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
10752 * gcc-rich-location.h
10753 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
10755 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10757 * target.def (addr_space): Add new diagnose_usage to hook vector.
10758 * targhooks.c (default_addr_space_diagnose_usage): Add default
10759 implementation and...
10760 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
10761 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
10762 is some address space, call targetm.addr_space.diagnose_usage.
10763 * doc/tm.texi.in (Named Address Spaces): Add anchor for
10764 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
10765 * doc/tm.texi: Regenerate.
10767 2016-07-20 Martin Liska <mliska@suse.cz>
10769 PR middle-end/71898
10770 * graphite-isl-ast-to-gimple.c (later_of_the_two):
10771 Properly handly PHI stmts.
10773 2016-07-20 Bin Cheng <bin.cheng@arm.com>
10775 PR tree-optimization/71503
10776 PR tree-optimization/71683
10777 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
10780 2016-07-20 Martin Liska <mliska@suse.cz>
10782 * doc/invoke.texi (-fipa-ra): Document when the option is
10783 disabled. Fix a typo.
10785 2016-07-20 Martin Liska <mliska@suse.cz>
10787 * Makefile.in: Include fibonacci_heap.c
10788 * fibonacci_heap.c: New file.
10789 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
10790 (fibonacci_heap::union_with): Fix deletion of the second heap.
10791 * selftest-run-tests.c (selftest::run_tests): Incorporate
10792 fibonacci heap tests.
10793 * selftest.h: Declare fibonacci_heap_c_tests.
10795 2016-07-20 Martin Liska <mliska@suse.cz>
10797 * selftest-run-tests.c (selftest::run_tests): New function.
10798 * selftest.h (sreal_c_tests): Declare.
10799 * sreal.c (sreal_verify_basics): New function.
10800 (verify_aritmetics): Likewise.
10801 (sreal_verify_arithmetics): Likewise.
10802 (verify_shifting): Likewise.
10803 (sreal_verify_shifting): Likewise.
10804 (void sreal_c_tests): Likewise.
10806 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10808 PR rtl-optimization/71916
10809 * cfgrtl.c (contains_no_active_insn_p): Return false also for
10810 bb which have a single succ fake edge.
10812 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
10815 * dwarf2out.c (gen_subprogram_die): Only call
10816 gen_unspecified_parameters_die while dumping early dwarf.
10818 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10820 PR middle-end/71874
10821 * gimple-fold.c (fold_builtin_memory_op): Use
10822 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10824 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
10826 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
10827 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
10828 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
10829 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
10830 * combine.c: Ditto.
10833 * double-int.c: Ditto.
10835 * dwarf2out.c: Ditto.
10838 * fold-const.c: Ditto.
10839 * function.c: Ditto.
10841 * genmodes.c: Ditto.
10845 * loop-doloop.c: Ditto.
10846 * loop-invariant.c: Ditto.
10847 * loop-iv.c: Ditto.
10852 * rtlanal.c: Ditto.
10853 * simplify-rtx.c: Ditto.
10854 * stor-layout.c: Ditto.
10856 * tree-ssa-loop-ivopts.c: Ditto.
10857 * tree-vect-generic.c: Ditto.
10858 * tree-vect-patterns.c: Ditto.
10863 * wide-int-print.cc: Ditto.
10864 * wide-int.cc: Ditto.
10865 * wide-int.h: Ditto.
10867 2016-07-19 David Malcolm <dmalcolm@redhat.com>
10869 * selftest.c (selftest::assert_streq): Handle NULL values of
10870 val_actual and val_expected.
10872 2016-07-19 Martin Jambor <mjambor@suse.cz>
10875 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
10876 rather than cgraph_create_node to get a call graph node.
10878 2016-07-19 Richard Biener <rguenther@suse.de>
10880 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
10881 handle all tcc_constant bases and valueize SSA names.
10882 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
10883 tcc_constant bases.
10885 2016-07-19 David Malcolm <dmalcolm@redhat.com>
10887 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
10888 the flags of the exit block and bb2, not just the entry block.
10890 2016-07-19 Richard Biener <rguenther@suse.de>
10892 PR tree-optimization/71901
10893 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10894 align member, group stuff with the bitfield.
10895 (vn_ref_op_align_unit): New inline.
10896 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
10897 record element alignment and operand 3 unchanged.
10898 (ao_ref_init_from_vn_reference): Adjust.
10899 (valueize_refs_1): Likewise.
10900 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10902 2016-07-19 Richard Biener <rguenther@suse.de>
10904 PR tree-optimization/71908
10905 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
10906 symbolic constants in a more reliable way.
10908 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
10910 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
10912 (vect_update_inits_of_drs): Likewise.
10913 (vect_create_cond_for_alias_checks): Likewise.
10914 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
10916 2016-07-19 Richard Biener <rguenther@suse.de>
10919 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
10920 with an abstract origin that is not an inlined function outer
10921 scope add a self-reference as abstract origin.
10922 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
10924 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10927 * config/rs6000/rs6000.c (rs6000_function_value): Fix
10928 unintentional System V.4 structure return breakage for structures
10929 with a single floating point element.
10931 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10933 PR tree-optimization/71734
10934 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
10935 contains REF, use it to check safelen, assume that safelen value
10936 must be greater 1, fix style.
10937 (ref_indep_loop_p_2): Add REF_LOOP argument.
10938 (ref_indep_loop_p): Pass LOOP as additional argument to
10939 ref_indep_loop_p_2.
10941 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
10943 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
10944 allocation in the prologue.
10945 * explow.c (get_dynamic_stack_base): New function to return an address
10946 expression for the dynamic stack base.
10947 (get_dynamic_stack_size): New function to do the required dynamic stack
10948 space size calculations.
10949 (allocate_dynamic_stack_space): Use new functions.
10950 (align_dynamic_address): Move some code from
10951 allocate_dynamic_stack_space to new function.
10952 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
10954 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10956 * config/s390/s390.c (s390_encode_section_info): Always set
10957 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
10960 2016-07-18 Richard Biener <rguenther@suse.de>
10962 PR tree-optimization/71893
10963 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
10964 for sizetype cast added by array_ref_element_size.
10965 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10967 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
10969 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
10970 register parameters. Remove code to initialize argument pointer
10971 on TARGET_64BIT. Optimize call to _mcount when it can be reached
10972 using a pc-relative branch. Cleanup conditional code.
10973 * config/pa/pa.md (call_mcount): New expander.
10974 (call_mcount_nonpic): New insn.
10975 (call_mcount_pic): New insn and split.
10976 (call_mcount_pic_post_reload): New insn.
10977 (call_mcount_64bit): New insn and split.
10978 (call_mcount_64bit_post_reload): New insn.
10980 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
10982 * config/avr/predicates.md (const_m255_to_m1_operand): New.
10983 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
10984 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
10985 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
10986 (*usum_widenqihi3, *udiff_widenqihi3)
10987 (*addhi3_zero_extend.const): New combiner insns.
10988 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
10989 just 1 bit is affected.
10990 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
10991 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
10993 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10995 * omp-low.c (lower_omp_target): Mark data clauses with
10996 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
10997 zero-length subarrays.
10999 2016-07-15 Richard Biener <rguenther@suse.de>
11001 PR tree-optimization/71881
11002 * tree-loop-distribution.c (destroy_loop): Remove blocks in
11003 reverse DOM order to make debug temp generation happy.
11005 2016-07-15 Richard Biener <rguenther@suse.de>
11007 PR tree-optimization/71887
11008 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
11009 verify it is not zero for division / modulo handling.
11010 (value_replacement): Adjust.
11012 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
11013 Julian Brown <julian@codesourcery.com>
11015 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
11016 * config/aarch64/aarch64-cost-tables.h
11017 (vulcan_extra_costs): New variable.
11018 * config/aarch64/aarch64.c
11019 (vulcan_addrcost_table): Likewise.
11020 (vulcan_regmove_cost): Likewise.
11021 (vulcan_vector_cost): Likewise.
11022 (vulcan_branch_cost): Likewise.
11023 (vulcan_tunings): Likewise.
11025 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
11027 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
11028 (output_in_order): Loop over undefined variables too. Output them
11029 via assemble_undefined_decl. Skip variables that correspond to hard
11030 registers or have value-exprs.
11031 * varpool.c (symbol_table::output_variables): Handle undefined
11032 variables together with defined ones.
11034 2016-07-15 Richard Biener <rguenther@suse.de>
11036 * tree-ssa-pre.c (get_representative_for): Make sure to return
11037 the value number of SSA names.
11038 (phi_translate_1): get_representative_for cannot return NULL.
11039 (do_pre_regular_insertion): Remove redundant call to
11040 fully_constant_expression.
11041 (do_pre_partial_partial_insertion): Likewise.
11043 2016-07-15 Bin Cheng <bin.cheng@arm.com>
11045 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
11046 (derive_simple_iv_with_niters): New function.
11047 (simple_iv): Rewrite using simple_iv_with_niters.
11048 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
11049 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
11051 (number_of_iterations_exit): Rewrite using above function.
11052 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
11055 2016-07-15 Richard Biener <rguenther@suse.de>
11057 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
11058 vec_construct cost.
11060 2016-07-14 Jakub Jelinek <jakub@redhat.com>
11062 PR tree-optimization/71872
11063 * tree-data-ref.c (get_references_in_stmt): Ignore references
11064 with is_gimple_constant get_base_address.
11066 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11068 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
11069 (TARGET_HAVE_LDACQD): New macro.
11070 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
11071 than TARGET_HAVE_LDACQ.
11072 (arm_load_acquire_exclusivedi): Likewise.
11073 (arm_store_release_exclusivedi): Likewise.
11075 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11077 PR rtl-optimization/71878
11078 * lra-constraints.c (match_reload): Pass information about other
11079 output operands. Create new unique register value if matching input
11080 operand shares same register value as output operand being considered.
11081 (curr_insn_transform): Record output operands already processed.
11083 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11086 PR tree-optimization/70923
11087 * tree-vect-patterns.c: Include mult-synthesis.h.
11088 (target_supports_mult_synth_alg): New function.
11089 (synth_lshift_by_additions): Likewise.
11090 (apply_binop_and_append_stmt): Likewise.
11091 (vect_synth_mult_by_constant): Likewise.
11092 (target_has_vecop_for_code): Likewise.
11093 (vect_recog_mult_pattern): Use above functions to synthesize vector
11094 multiplication by integer constants.
11096 2016-07-14 Alan Modra <amodra@gmail.com>
11098 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
11099 gpr alternatives. Correct '*' placement on Y,r alternative.
11100 Add '*' on operand 1 of r,r alternative.
11102 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11104 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
11105 * expmed.h: ... Here.
11107 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
11109 * gimple.h (stmt_can_terminate_bb_p): New function.
11110 * tree-cfg.c (need_fake_edge_p): Rename to ...
11111 (stmt_can_terminate_bb_p): ... this; return true if stmt can
11112 throw external; handle const and pure calls.
11113 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
11115 2016-07-14 Richard Biener <rguenther@suse.de>
11117 PR tree-optimization/71866
11118 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
11119 (do_hoist_insertion): Avoid endless recursion when we
11120 didn't insert anything because we managed to simplify
11121 things down to a constant or SSA name.
11122 (fully_constant_expression): Re-write in terms of ...
11123 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
11124 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
11125 vn_nary_build_or_lookup_1.
11126 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
11127 (vn_nary_build_or_lookup): ... this which now wraps it.
11129 2016-07-14 Alan Modra <amodra@gmail.com>
11132 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
11133 with p9_vector override before power9-dform override.
11135 2016-07-13 Andi Kleen <ak@linux.intel.com>
11137 * value-prof.c (gimple_value_profile_transformations): Don't run
11138 when auto_profile is on.
11140 2016-07-13 Andi Kleen <ak@linux.intel.com>
11142 * auto-profile.c (update_inlined_ind_target,
11143 afdo_indirect_call): Print information to dump file.
11145 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
11147 * genrecog.c (special_predicate_operand_p): New function.
11148 (predicate_name): Move function.
11149 (validate_pattern): Don't warn about missing mode for all
11150 define_special_predicate predicates.
11152 2016-07-13 Bin Cheng <bin.cheng@arm.com>
11154 * tree-vect-data-refs.c (vect_no_alias_p): New function.
11155 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
11156 resolve alias checks which are known at compilation time.
11157 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
11158 alias checks are resolved. Move dump info for too many runtime
11159 alias checks to here...
11160 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
11162 2016-07-13 Richard Biener <rguenther@suse.de>
11164 PR tree-optimization/24574
11165 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
11166 position and add shift, rotate, divison and modulo support
11168 (value_replacement): Pass in argument position to absorbing_element_p.
11170 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
11173 * ipa-inline-transform.c (inline_call): Support
11174 instrumented thunks.
11176 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11178 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
11179 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
11181 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
11182 Baseline. Make initial alternative TARGET_32BIT only.
11183 (udivsi3): Likewise.
11184 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
11185 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
11188 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11190 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
11191 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
11192 availability with TARGET_HAVE_MOVT.
11193 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
11194 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
11195 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
11197 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
11198 extra instruction if MOVW is available. Use a cost variable
11199 incremented by COSTS_N_INSNS (1) when the condition match rather than
11200 returning an arithmetic expression based on COSTS_N_INSNS. Make
11201 constant with bottom half word zero cost 2 instruction if MOVW is
11203 * config/arm/arm.md (define_attr "arch"): Add v8mb.
11204 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
11205 target is ARMv8-M Baseline.
11206 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
11207 (arm_movtas_ze): Likewise.
11208 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
11209 alternative for constants satisfying j constraint.
11210 (thumb1_movsi_insn): Likewise.
11211 (movsi splitter for K alternative): Tighten condition to not trigger
11212 if movt is available and j constraint is satisfied.
11213 (Pe immediate splitter): Likewise.
11214 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
11215 constant fitting in an halfword to use MOVW.
11216 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
11219 2016-07-13 Richard Biener <rguenther@suse.de>
11221 PR middle-end/71104
11222 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
11223 gimplifying the LHS. Make sure to gimplify a returning twice
11224 call LHS without using SSA names.
11226 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11228 * tree-data-ref.c (find_data_references_in_stmt): Remove
11229 unnecessary call to vec::release.
11230 (graphite_find_data_references_in_stmt): Likewise.
11231 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
11232 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11234 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11236 * cfgexpand.c (expand_used_vars): Make the type of a local
11238 * genmatch.c (lower_for): Likewise.
11239 * haifa-sched.c (haifa_sched_init): Likewise.
11240 (add_to_speculative_block): Likewise.
11241 (create_check_block_twin): Likewise.
11242 * predict.c (handle_missing_profiles): Likewise.
11243 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
11244 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
11245 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11247 (maybe_lower_iteration_bound): Likewise.
11248 * tree-ssa-sccvn.c (DFS): Likewise.
11249 * tree-stdarg.c (reachable_at_most_once): Likewise.
11250 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
11251 (vectorizable_store): Likewise.
11253 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11255 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
11256 (sccvn_dom_walker): make cond_stack an auto_vec.
11258 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11260 * ree.c (struct ext_state): Make type of members auto_vec.
11261 (find_and_remove_re): Adjust.
11263 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11265 * cfgexpand.c (struct stack_vars_data): Make type of fields
11267 (expand_used_vars): Adjust.
11269 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11271 * ipa.c (record_cdtor_fn): Adjust.
11272 (build_cdtor_fns): Likewise.
11273 (ipa_cdtor_merge): Make static_ctors and static_dtors local
11276 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11278 * genextract.c (struct accum_extract): Add constructor and make
11280 (gen_insn): Adjust.
11282 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11284 * tree.c (struct free_lang_data_d): Add constructor and change
11285 types of members to ones that automatically manage resources.
11286 (fld_worklist_push): Adjust.
11287 (find_decls_types): Likewise.
11288 (find_decls_types_in_eh_region): Likewise.
11289 (free_lang_data_in_cgraph): Stop manually creating and
11290 destroying members of free_lang_data_d.
11292 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
11294 PR rtl-optimization/68961
11295 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
11296 peephole variant. Use sse_reg_operand predicates.
11298 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
11300 * config/i386/predicates.md (x86_64_immediate_operand)
11301 <case CONST_INT>: Remove unneeded truncation to DImode.
11302 <case CONST>: Ditto.
11303 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11305 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11308 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
11309 The xxperm and xxpermr instructions require that the 2nd input
11310 operand overlap with the output operand, and not the 1st.
11311 (altivec_vperm_v8hiv16qi): Likewise.
11312 (altivec_vperm_<mode>_uns_internal): Likewise.
11313 (altivec_vpermr_<mode>_internal): Likewise.
11314 (vperm_v8hiv4si): Likewise.
11315 (vperm_v16qiv8hi): Likewise.
11317 2016-07-12 Nathan Sidwell <nathan@acm.org>
11319 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
11320 when -mno-pic-data-is-text-relative is in effect, by default.
11321 * doc/invoke.texi (mpic-data-is-text-relative): Document new
11322 behavior and clarify.
11324 2016-07-12 Martin Liska <mliska@suse.cz>
11326 * params.def: Add avg-loop niter.
11327 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
11328 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
11329 * doc/invoke.texi: Document the new parameter.
11331 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11333 PR middle-end/71700
11334 * expr.c (store_constructor): Mask sign-extended bits when widening
11335 sub-word constructor element at the start of a word.
11337 2016-07-12 Martin Liska <mliska@suse.cz>
11339 * Makefile.in: Append rule for params-options.h.
11340 * params-options.h: New file.
11342 2016-07-12 Martin Liska <mliska@suse.cz>
11344 * ira-build.c (mark_loops_for_removal): Properly iterate
11347 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
11348 Richard Biener <rguenther@suse.de>
11350 PR tree-optimization/23286
11351 PR tree-optimization/70159
11352 * doc/invoke.texi: Document -fcode-hoisting.
11353 * common.opt (fcode-hoisting): New flag.
11354 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
11355 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
11356 (do_regular_insertion): Rename to ...
11357 (do_pre_regular_insertion): ... this and amend general comments
11358 on insertion strathegy.
11359 (do_partial_partial_insertion): Rename to ...
11360 (do_pre_partial_partial_insertion): ... this.
11361 (do_hoist_insertion): New function.
11362 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
11363 and call do_hoist_insertion properly.
11365 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
11366 (pass_pre::execute): Register hoist_insert stats.
11368 2016-07-12 Jakub Jelinek <jakub@redhat.com>
11370 PR middle-end/71716
11371 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
11372 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
11373 is different from mode's bitsize. Small cleanup.
11375 2016-07-12 Richard Biener <rguenther@suse.de>
11377 PR rtl-optimization/68961
11378 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
11379 to simplify to a non-constant.
11381 2016-07-11 Jakub Jelinek <jakub@redhat.com>
11383 PR middle-end/71758
11384 * omp-low.c (expand_omp_target): Gimplify device.
11386 PR tree-optimization/71823
11387 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
11388 to get vec_oprnds2 from op2.
11390 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
11392 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
11393 Hoist common subexpressions.
11394 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11396 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
11399 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
11400 prevent generation of 'stxsiwx' on pre Power8 hardware.
11402 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11404 * input.c: Include cpplib.h.
11405 (selftest::temp_source_file): New class.
11406 (selftest::temp_source_file::temp_source_file): New ctor.
11407 (selftest::temp_source_file::~temp_source_file): New dtor.
11408 (selftest::should_have_column_data_p): New function.
11409 (selftest::test_should_have_column_data_p): New function.
11410 (selftest::temp_line_table): New class.
11411 (selftest::temp_line_table::temp_line_table): New ctor.
11412 (selftest::temp_line_table::~temp_line_table): New dtor.
11413 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
11414 it to create a temp_line_table.
11415 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
11416 locations that are known to have column data.
11417 (selftest::line_table_case): New struct.
11418 (selftest::test_reading_source_line): Move tempfile handling
11419 to class temp_source_file.
11420 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
11421 (selftest::assert_token_loc_eq): New function.
11422 (ASSERT_TOKEN_LOC_EQ): New macro.
11423 (selftest::test_lexer): New function.
11424 (selftest::boundary_locations): New array.
11425 (selftest::input_c_tests): Call test_should_have_column_data_p.
11426 Loop over a test matrix of interesting values of location and
11427 default_range_bits, calling test_lexer on each case in the matrix.
11428 Move call to test_accessing_ordinary_linemaps into the matrix.
11429 * selftest.h (ASSERT_EQ): Reimplement in terms of...
11430 (ASSERT_EQ_AT): New macro.
11432 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
11435 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11436 Don't convert TImode in debug insn.
11438 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11440 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
11441 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
11442 (tree_type_common::lang_flag_7): New.
11443 (tree_type_common::spare): Reduce size.
11444 * tree.h (TYPE_ALIGN_OK): Remove.
11445 (TYPE_LANG_FLAG_7): New.
11446 (get_inner_reference): Adjust header.
11447 * print-tree.c (print_node): Adjust.
11448 * expr.c (get_inner_reference): Remove parameter keep_aligning.
11449 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
11450 calls to get_inner_reference.
11451 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
11452 handling of TYPE_ALIGN_OK.
11453 * builtins.c (get_object_alignment_2): Adjust call to
11454 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
11455 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
11457 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
11458 * cfgexpand.c (expand_debug_expr): Likewise.
11459 * dbxout.c (dbxout_expand_expr): Likewise.
11460 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
11461 loc_list_from_tree, fortran_common): Likewise.
11462 * fold-const.c (optimize_bit_field_compare,
11463 decode_field_reference, fold_unary_loc, fold_comparison,
11464 split_address_to_core_and_offset): Likewise.
11465 * gimple-laddress.c (execute): Likewise.
11466 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
11467 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
11468 * hsa-gen.c (gen_hsa_addr): Likewise.
11469 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
11470 * tsan.c (instrument_expr): Likewise.
11471 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
11472 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
11473 * tree-affine.c (tree_to_aff_combination,
11474 get_inner_reference_aff): Adjust calls to get_inner_reference.
11475 * tree-data-ref.c (split_constant_offset_1,
11476 dr_analyze_innermost): Likewise.
11477 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
11478 * tree-sra.c (ipa_sra_check_caller): Likewise.
11479 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
11480 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
11481 bswap_replace): Likewise.
11482 * tree-vect-data-refs.c (vect_check_gather,
11483 vect_analyze_data_refs): Likewise.
11484 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
11485 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
11488 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11490 * Makefile.in (selftest-valgrind): New phony target.
11491 * function-tests.c (selftest::build_cfg): Delete pass instances
11492 created by the test.
11493 (selftest::convert_to_ssa): Likewise.
11494 (selftest::test_expansion_to_rtl): Likewise.
11495 * tree-cfg.c (selftest::test_linear_chain): Release dominator
11497 (selftest::test_diamond): Likewise.
11499 2016-07-11 Richard Biener <rguenther@suse.de>
11501 PR tree-optimization/71816
11502 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
11503 than replacing all of its operands.
11505 2016-07-11 Alan Modra <amodra@gmail.com>
11507 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
11508 (ctr<mode>): Add unspec.
11509 (ctr<mode>_internal*): Likewise.
11511 2016-07-08 James Bowman <james.bowman@ftdichip.com>
11513 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
11514 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
11516 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
11518 PR rtl-optimization/71621
11519 * lra-constraints.c (process_alt_operands): Check combination of
11520 reg class and mode.
11522 2016-07-08 Jason Merrill <jason@redhat.com>
11523 Richard Biener <rguenther@suse.de>
11525 P0145: Refining Expression Order for C++.
11526 * gimplify.c (initial_rhs_predicate_for): New.
11527 (gimplfy_modify_expr): Gimplify RHS before LHS.
11529 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11532 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11533 Allow standard error handling to take over when a wrong number
11534 of arguments is presented to __builtin_vec_ld () or
11535 __builtin_vec_st ().
11537 2016-07-08 Jiong Wang <jiong.wang@arm.com>
11539 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
11544 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
11545 __builtin_aarch64_fmaxv2sf.
11546 (vmaxnmq_f32): Likewise.
11547 (vmaxnmq_f64): Likewise.
11548 (vminnm_f32): Likewise.
11549 (vminnmq_f32): Likewise.
11550 (vminnmq_f64): Likewise.
11552 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11555 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
11556 enable -mfloat128-hardware by default.
11557 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
11558 that IEEE 128-bit hardware support needs.
11559 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11560 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
11561 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
11562 floating point requires.
11563 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11564 -mfloat128 and -mfloat128-hardware changes.
11566 2016-07-08 Alan Hayward <alan.hayward@arm.com>
11568 PR tree-optimization/71667
11569 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
11571 2016-07-08 Martin Liska <mliska@suse.cz>
11573 PR middle-end/71606
11574 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
11575 folding produces SAVE_EXPRs, thus return false for the type.
11577 2016-07-07 Martin Liska <mliska@suse.cz>
11579 * file-find.c (remove_prefix): New function.
11580 * file-find.h (remove_prefix): Declare the function.
11581 * gcc-ar.c (main): Skip a folder of the wrapper if
11582 a wrapped binary would point to the same file.
11584 2016-07-07 Jan Hubicka <jh@suse.cz>
11586 * tree-scalar-evolution.c (iv_can_overflow_p): export.
11587 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
11588 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
11590 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
11593 * ipa-inline-analysis.c (compute_inline_parameters): Set
11594 local.can_change_signature to false for intrumentation
11597 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11599 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
11600 with TARGET_HAVE_MOVT.
11601 (TARGET_HAVE_MOVT): Define.
11602 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
11603 availability with TARGET_HAVE_MOVT.
11604 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
11606 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
11608 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
11609 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
11610 * config/arm/constraints.md (define_constraint "j"): Use
11611 TARGET_HAVE_MOVT to check MOVT availability.
11613 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11615 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
11617 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11619 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
11620 (armv8-m.main): Likewise.
11621 (armv8-m.main+dsp): Likewise.
11622 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
11623 (FL_FOR_ARCH8M_MAIN): Likewise.
11624 * config/arm/arm-tables.opt: Regenerate.
11625 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
11626 armv8-m.main+dsp to BE8_LINK_SPEC.
11627 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
11628 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
11629 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
11630 Baseline and Mainline.
11631 (arm_option_override_internal): Also disable arm_restrict_it when
11632 !arm_arch_notm. Update comment for -munaligned-access to also cover
11634 (arm_file_start): Increase buffer size for printing architecture name.
11635 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
11636 and armv8-m.main+dsp.
11637 (mno-unaligned-access): Clarify that this is disabled by default for
11638 ARMv8-M Baseline architectures as well.
11640 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11642 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
11643 decide whether to prevent some libgcc routines being included for some
11644 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
11645 link between this condition and the one in
11646 libgcc/config/arm/lib1func.S.
11648 2016-07-07 Richard Biener <rguenther@suse.de>
11650 * tree-ssa-pre.c: Include alias.h.
11651 (compute_avail): If we have multiple VN_REFERENCEs with the
11652 same hashtable entry adjust that to make it a valid replacement
11653 for all of them with respect to alignment and aliasing
11654 when doing insertion.
11655 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
11656 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
11658 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
11662 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11663 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
11666 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11668 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
11669 (adjust_mems): Adjust.
11670 (adjust_insn): Likewise.
11671 (prepare_call_arguments): Likewise.
11673 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11675 * gcse.c (struct ls_expr): Make stores field a vector.
11676 (ldst_entry): Adjust.
11677 (free_ldst_entry): Likewise.
11678 (print_ldst_list): Likewise.
11679 (compute_ld_motion_mems): Likewise.
11680 (update_ld_motion_stores): Likewise.
11682 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11684 * gcse.c (struct ls_expr): Remove loads field.
11685 (ldst_entry): Adjust.
11686 (free_ldst_entry): Likewise.
11687 (print_ldst_list): Likewise.
11688 (compute_ld_motion_mems): Likewise.
11690 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11692 * store-motion.c (struct st_expr): Make antic_stores a vector.
11693 (st_expr_entry): Adjust.
11694 (free_st_expr_entry): Likewise.
11695 (print_store_motion_mems): Likewise.
11696 (find_moveable_store): Likewise.
11697 (compute_store_table): Likewise.
11698 (remove_reachable_equiv_notes): Likewise.
11699 (replace_store_insn): Likewise.
11700 (build_store_vectors): Likewise.
11702 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11704 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
11705 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
11707 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
11709 PR tree-optimization/71518
11710 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
11711 misalign also for outer loops with negative step.
11713 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
11715 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
11716 (cortex_a53_shift): Add mov_shift.
11717 (cortex_a53_shift_reg): Add new reservation for register shifts.
11718 (cortex_a53_alu): Remove bfm.
11719 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
11720 (cortex_a53_alu_extr): Add new reservation for EXTR.
11721 (bypasses): Improve bypass modelling.
11723 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11726 * config/avr/avr.c (avr_asm_select_section): Strip off
11727 SECTION_DECLARED from flags when calling get_section.
11729 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11731 * tree-vectorizer.h (vect_memory_access_type): Add
11732 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
11733 * tree-vect-stmts.c (compare_step_with_zero): New function.
11734 (perm_mask_for_reverse): Move further up file.
11735 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
11737 (get_negative_load_store_type): New function.
11738 (get_load_store_type): Call it. Add an ncopies argument.
11739 (vectorizable_mask_load_store): Update call accordingly and
11740 remove tests for negative steps.
11741 (vectorizable_store, vectorizable_load): Likewise. Handle new
11742 memory_access_types.
11744 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11746 * tree-vectorizer.h (vect_memory_access_type): New enum.
11747 (_stmt_vec_info): Add a memory_access_type field.
11748 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
11749 (vect_model_store_cost): Take an access type instead of a boolean.
11750 (vect_model_load_cost): Likewise.
11751 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
11752 vect_model_store_cost and vect_model_load_cost.
11753 * tree-vect-stmts.c (vec_load_store_type): New enum.
11754 (vect_model_store_cost): Take an access type instead of a
11755 store_lanes_p boolean. Simplify tests.
11756 (vect_model_load_cost): Likewise, but for load_lanes_p.
11757 (get_group_load_store_type, get_load_store_type): New functions.
11758 (vectorizable_store): Use get_load_store_type. Record the access
11759 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
11760 (vectorizable_load): Likewise.
11761 (vectorizable_mask_load_store): Likewise. Replace is_store
11762 variable with vls_type.
11764 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11766 * tree-vectorizer.h (vect_grouped_load_supported): Add a
11767 single_element_p parameter.
11768 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11769 Check the PR65518 case here rather than in vectorizable_load.
11770 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
11771 * tree-vect-stmts.c (vectorizable_load): Likewise.
11773 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11775 * tree-vectorizer.h (gather_scatter_info): New structure.
11776 (vect_check_gather_scatter): Return a bool rather than a decl.
11777 Replace return-by-pointer arguments with a single
11778 gather_scatter_info *.
11779 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
11780 (vect_analyze_data_refs): Update call accordingly.
11781 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11782 (vectorizable_mask_load_store): Likewise. Also record the
11783 offset dt and vectype in the gather_scatter_info.
11784 (vectorizable_store): Likewise.
11785 (vectorizable_load): Likewise.
11787 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11789 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
11790 strided groups, use the cost of N scalar accesses instead
11791 of ncopies vector accesses.
11792 (vect_model_load_cost): Likewise.
11794 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11796 * tree-vect-stmts.c (vect_cost_group_size): Delete.
11797 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
11798 variable to indicate when once-per-group costs are being used.
11799 (vect_model_load_cost): Likewise. Fix comment and misindented code.
11801 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11803 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
11804 peeling-for-gaps condition.
11806 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11808 * config/s390/s390.c (s390_expand_vec_init): Force initializer
11809 element to register if it doesn't match general_operand.
11811 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11812 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11814 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
11816 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
11817 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
11818 (SIGNBIT): New mode iterator.
11819 (Fsignbit): New mode attribute.
11820 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
11821 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
11822 when direct moves are available.
11823 (signbit<mode>2_dm): New define_insn_and_split).
11824 (signbit<mode>2_dm2): New define_insn.
11826 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11828 PR rtl-optimization/71594
11829 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
11830 into subregs of appropriate mode before trying to emit a conditional
11833 2016-07-05 Jan Hubicka <jh@suse.cz>
11835 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
11836 (simple_iv): Use it.
11838 2016-07-05 Jan Hubicka <jh@suse.cz>
11840 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
11842 2016-07-05 Jiong Wang <jiong.wang@arm.com>
11844 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
11847 2016-07-05 Jan Hubicka <jh@suse.cz>
11849 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
11852 2016-07-05 Richard Biener <rguenther@suse.de>
11854 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
11855 Handle empty else block.
11856 (is_feasible_trace): Likewise.
11857 (split_paths): Likewise.
11859 2016-07-05 Richard Biener <rguenther@suse.de>
11861 * tree-loop-distribution.c (distribute_loop): Fix issue with
11862 the cost model loop.
11864 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
11866 * config/arm/neon-testgen.ml: Delete.
11867 * config/arm/neon.ml: Delete.
11869 2016-07-04 Jakub Jelinek <jakub@redhat.com>
11872 * tree.c (attribute_value_equal): Use get_attribute_name instead of
11873 directly using TREE_PURPOSE.
11875 2016-07-04 Jiong Wang <jiong.wang@arm.com>
11877 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
11878 * config/aarch64/aarch64_neon.h: Likewise.
11879 * config/aarch64/arm_neon.h: Likewise.
11880 * config/aarch64/atomics.md: Likewise.
11881 * config/aarch64/aarch64-simd-builtins.def: Likewise.
11882 * doc/invoke.texi: Likewise.
11884 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
11886 * config/s390/s390.md: Add "z13" cpu_facility.
11887 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
11888 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
11889 condition" type instructions.
11891 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
11892 Jeff Law <law@redhat.com>
11894 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
11895 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
11897 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
11899 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
11900 permutation for TARGET_AVX512F.
11901 (ix86_expand_vec_one_operand_perm_avx512): New function.
11902 (expand_vec_perm_1): Invoke introduced function.
11903 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
11904 it may be not valid after vectorization.
11906 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11909 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
11910 typo in comment. Only force to memory if it is a weak
11911 external reference.
11913 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
11914 Jiong Wang <jiong.wang@arm.com>
11916 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
11917 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
11918 (AARCH64_FL_F16): New.
11919 (AARCH64_FL_FOR_ARCH8_2): New.
11920 (AARCH64_ISA_8_2): New.
11921 (AARCH64_ISA_F16): New.
11922 (TARGET_FP_F16INST): New.
11923 (TARGET_SIMD_F16INST): New.
11924 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
11925 ("fp"): Disabling "fp" also disables "fp16".
11926 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
11927 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
11928 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
11929 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
11931 2016-07-04 Jan Beulich <jbeulich@suse.com>
11933 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
11935 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11938 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
11939 the insns, use an insn form that does not adjust the offset on
11940 little endian systems.
11942 2016-07-01 Jan Beulich <jbeulich@suse.com>
11944 * varasm.c (get_variable_section): Validate initializer in
11945 named .bss-like sections.
11947 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
11949 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
11950 Exchange the order of the second and third operands in the vpermr
11951 instruction tmeplate.
11953 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
11956 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
11957 Disallow TDmode values.
11959 2016-07-01 Alan Modra <amodra@gmail.com>
11961 PR rtl-optimization/71709
11962 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
11963 being set, not referenced.
11965 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
11967 PR tree-optimization/70729
11968 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
11969 of loop since it can be not valid after transformation.
11971 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11973 * config/arm/arm.c (thumb_reload_in_hi): Delete.
11974 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
11976 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
11978 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
11981 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11984 * config/rs6000/constraints.md (wY constraint): New constraint to
11985 match the requirements for the LXSD and STXSD instructions.
11986 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
11987 predicate to match the requirements for the LXSD and STXSD
11989 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
11990 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
11991 to make sure that the bottom 2 bits of offset are 0, the address
11992 form is offsettable, and no updating is done in the address mode.
11993 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
11994 (movdi_internal32): Likewise
11995 (movdi_internal64): Likewise.
11997 2016-06-30 Jakub Jelinek <jakub@redhat.com>
11999 PR tree-optimization/71707
12000 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
12001 strinfo even for ADDR_EXPR ptr.
12003 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
12005 * config/rs6000/altivec.md (darn_32): Change the condition to
12006 TARGET_P9_MISC instead of TARGET_MODULO.
12007 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
12008 condition expression.
12009 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
12010 condition expression.
12011 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
12012 (DFP_TEST): New code iterator.
12013 (dfptstsfi_<code>_mode>): New define_expand.
12014 (*dfp_sgnfcnc_<mode>): New define_insn.
12015 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
12016 definition next to BU_P9_MISC_1 definition and change the MASK
12017 value to RS6000_BTM_P9_MISC.
12018 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
12019 (BU_P9_64BIT_MISC_0): Likewise.
12020 (BU_P9_DFP_MISC_0): New macro definition.
12021 (BU_P9_DFP_MISC_1): New macro definition.
12022 (BU_P9_DFP_MISC_2): New macro definition.
12023 (BU_P9_DFP_OVERLOAD_1): New macro definition.
12024 (BU_P9_DFP_OVERLOAD_2): New macro definition.
12025 (BU_P9_DFP_OVERLOAD_3): New macro definition.
12026 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
12027 (TSTSFI_LT_TD): Likewise.
12028 (TSTSFI_EQ_DD): Likewise.
12029 (TSTSFI_EQ_TD): Likewise.
12030 (TSTSFI_GT_DD): Likewise.
12031 (TSTSFI_GT_TD): Likewise.
12032 (TSTSFI_OV_DD): Likewise.
12033 (TSTSFI_OV_TD): Likewise.
12034 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
12035 (TSTSFI_LT_DD): Likewise.
12036 (TSTSFI_LT_TD): Likewise.
12037 (TSTSFI_EQ): Likewise.
12038 (TSTSFI_EQ_DD): Likewise.
12039 (TSTSFI_EQ_TD): Likewise.
12040 (TSTSFI_GT): Likewise.
12041 (TSTSFI_GT_DD): Likewise.
12042 (TSTSFI_GT_TD): Likewise.
12043 (TSTSFI_OV): Likewise.
12044 (TSTSFI_OV_DD): Likewise.
12045 (TSTSFI_OV_TD): Likewise.
12046 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12047 overloaded test significance functions.
12048 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12049 OPTION_MASK_P9_MISC into the representation of this mask.
12050 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
12052 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
12053 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
12055 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
12056 argument is a 6-bit unsigned literal value if the icode argument
12057 represents a DFP test significance built-in call.
12058 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
12059 flag used independently and in combination with the
12060 RS6000_BTM_64BIT flag.
12061 (rs6000_opt_masks): Add entry for power9-misc command-line option.
12062 (rs6000_builtin_mask_names): Add entry for power9-misc
12063 command-line option.
12064 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
12065 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
12066 RS6000_BTM_P9_MISC macros.
12067 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
12068 option and change the description of the -mpower9-vector option to
12069 enable only vector instructions, removing its erroneously claimed
12070 support for scalar instructions.
12071 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12072 the ISA 3.0 digital floating point test significance built-in
12075 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
12077 * config/aarch64/aarch64.c (cortexa35_tunings):
12078 Enable AES fusion. Use cortexa57_branch_cost.
12079 (cortexa53_tunings): Use cortexa57_branch_cost.
12080 (cortexa72_tunings): Use cortexa57_branch_cost.
12081 Use AUTOPREFETCHER_WEAK.
12082 (cortexa73_tunings): Use cortexa57_branch_cost.
12084 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12085 James Greenhalgh <james.greenhalgh@arm.com>
12087 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
12088 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
12089 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
12090 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
12091 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
12092 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
12093 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
12094 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
12095 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
12096 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
12097 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
12098 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
12099 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
12102 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
12103 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12105 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
12107 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
12109 2016-06-30 David Malcolm <dmalcolm@redhat.com>
12112 * gcc.c (driver::build_option_suggestions): Pass "option" to
12113 add_misspelling_candidates.
12114 * opts-common.c (add_misspelling_candidates): Add "option" param;
12115 use it to avoid adding negated forms for options marked with
12117 * opts.h (add_misspelling_candidates): Add "option" param.
12119 2016-06-30 Jakub Jelinek <jakub@redhat.com>
12121 PR middle-end/71693
12122 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
12123 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
12124 first when permuting bitwise operation with rotate. Cast
12125 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
12127 2016-06-29 David Malcolm <dmalcolm@redhat.com>
12129 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
12130 for misspelled param names.
12131 * params.c: Include spellcheck.h.
12132 (find_param_fuzzy): New function.
12133 * params.h (find_param_fuzzy): New prototype.
12134 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
12135 * spellcheck.h (struct edit_distance_traits<const char *>):
12138 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12140 * config/rs6000/predicates.md (const_0_to_7_operand): New
12141 predicate, recognize 0..7.
12142 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12143 support for doing extracts from V16QImode, V8HImode, V4SImode
12145 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
12146 vector extract support.
12147 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
12148 for ISA 3.0 vector extract.
12149 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
12150 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
12151 extracts of a constant element number from small integer vectors
12152 on 64-bit ISA 3.0 systems.
12153 (vsx_extract_<mode>_di): Likewise.
12154 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
12155 say when we can do ISA 3.0 vector extracts.
12156 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
12157 registers, using the stxsiwx instruction.
12159 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
12161 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
12162 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
12163 qdf24xx_regmove_cost, qdf24xx_tunings): New.
12164 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
12165 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
12166 * config/arm/arm.c (arm_qdf24xx_tune): New.
12168 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
12170 * config/aarch64/aarch64.c (cortexa53_tunings):
12171 Increase loop alignment to 8. Set function alignment to 16.
12172 (cortexa35_tunings): Likewise.
12173 (cortexa57_tunings): Increase loop alignment to 8.
12174 (cortexa72_tunings): Likewise.
12175 (cortexa73_tunings): Likewise.
12177 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
12179 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
12180 for arm_fp16_ok and arm_fp16_hw.
12181 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
12182 arm_fp16_alternative.
12184 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
12186 PR tree-optimization/71655
12187 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
12188 types when swapping operands.
12190 2016-06-29 Martin Liska <mliska@suse.cz>
12192 PR middle-end/71585
12193 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
12194 * ipa-inline-transform.c (inline_call): Remove unnecessary call
12195 of build_optimization_node.
12197 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
12199 PR tree-optimization/70729
12200 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
12201 independent in loops having positive safelen value.
12202 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12203 it may be not valid after vectorization.
12205 2016-06-29 Jakub Jelinek <jakub@redhat.com>
12207 PR tree-optimization/71625
12208 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
12209 is sorted by ascending list->offset. If PTR is non-NULL and there is
12210 previous strinfo, call get_stridx_plus_constant.
12211 (get_stridx): Pass exp as second argument to get_addr_stridx.
12212 (addr_stridxptr): Add missing list = list->next, so that there can be
12213 more than one entries in the list. Bump limit from 16 to 32. Ensure
12214 the list is sorted by ascending list->offset.
12215 (get_stridx_plus_constant): Adjust so that it can be also called with
12216 ADDR_EXPR instead of SSA_NAME as PTR.
12217 (handle_char_store): Pass NULL_TREE as second argument to
12220 2016-06-29 Richard Biener <rguenther@suse.de>
12222 PR rtl-optimization/68961
12223 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
12225 2016-06-29 Richard Biener <rguenther@suse.de>
12227 PR middle-end/71002
12228 * alias.c (component_uses_parent_alias_set_from): Handle
12229 type punning through union accesses by using the union alias set.
12230 * gimple.c (gimple_get_alias_set): Remove union type punning case.
12232 2016-07-29 Richard Biener <rguenther@suse.de>
12234 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
12235 precision not matching mode precision.
12237 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
12239 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
12240 pa_output_arg_descriptor.
12241 (call_val_symref_64bit_post_reload): Likewise.
12242 (call_val_powf_64bit_post_reload): Likewise.
12243 (sibcall_internal_symref_64bit): Likewise.
12244 (sibcall_value_internal_symref_64bit): Likewise.
12246 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12248 PR middle-end/71626
12249 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
12250 a constant, force its SUBREG_REG into memory or register instead
12253 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12256 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
12257 * doc/invoke.texi (AVR Options): Document it.
12259 2016-06-28 Walter Lee <walt@tilera.com>
12261 * config/tilegx/linux.h: Do not include arch/icache.h
12262 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12263 * config/tilepro/linux.h: Do not include arch/icache.h
12264 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12266 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
12268 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
12269 for big-endian BIT_FIELD_REF.
12271 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
12273 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
12274 ('size' attribute): Add '128'.
12276 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
12277 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
12278 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
12279 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
12280 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
12281 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
12282 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
12283 *trunc<mode>df2_odd): Set size attribute to '128'.
12284 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
12285 * config/rs6000/power6.md (power6-fp): Include dfp type.
12286 * config/rs6000/power7.md (power7-fp): Likewise.
12287 * config/rs6000/power8.md (power8-fp): Likewise.
12288 * config/rs6000/power9.md: New file.
12289 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
12290 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
12291 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
12293 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
12294 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12295 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
12296 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
12297 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
12298 dfp_dscri_<mode>): Change type attribute to dfp.
12299 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
12300 attribute to vecsimple.
12301 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
12302 and prefetch streams.
12303 (rs6000_option_override_internal): Remove temporary code setting
12304 tuning to power8. Don't set rs6000_sched_groups for power9.
12305 (last_scheduled_insn): Change to rtx_insn *.
12306 (divide_cnt, vec_load_pendulum): New variables.
12307 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
12308 (rs6000_issue_rate): Set issue rate for Power9.
12309 (is_power9_pairable_vec_type): New.
12310 (power9_sched_reorder2): New.
12311 (rs6000_sched_reorder2): Call new function for Power9 specific
12313 (insn_must_be_first_in_group): Remove Power9.
12314 (insn_must_be_last_in_group): Likewise.
12315 (force_new_group): Likewise.
12316 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
12317 Initialize divide_cnt/vec_load_pendulum.
12318 (_rs6000_sched_context, rs6000_init_sched_context,
12319 rs6000_set_sched_context): Handle context save/restore of new
12322 2016-06-28 Richard Biener <rguenther@suse.de>
12324 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12325 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
12326 COMPONENT_REF operand.
12327 (nonoverlapping_component_refs_p): Likewise.
12328 * stor-layout.c (start_bitfield_representative): Mark
12329 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
12331 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12333 * Makefile.in: Don't cat ../stage_current if it does not exist.
12335 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
12336 last argument is a bit-field.
12338 PR rtl-optimization/71673
12339 * internal-fn.c (expand_arith_overflow_result_store): Use
12340 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
12341 expand_simple_binop.
12343 PR middle-end/66867
12344 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
12345 expand_ifn_atomic_compare_exchange): New functions.
12346 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
12347 * tree.h (build_call_expr_internal_loc): Rename to ...
12348 (build_call_expr_internal_loc_array): ... this. Fix up type of
12350 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
12351 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
12352 ATOMIC_COMPARE_EXCHANGE result.
12353 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
12354 * gimple-fold.h (optimize_atomic_compare_exchange_p,
12355 fold_builtin_atomic_compare_exchange): New prototypes.
12356 * gimple-fold.c (optimize_atomic_compare_exchange_p,
12357 fold_builtin_atomic_compare_exchange): New functions..
12358 * tree-ssa.c (execute_update_addresses_taken): If
12359 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
12360 of call when finding addressable vars, and if such var becomes
12361 non-addressable, call fold_builtin_atomic_compare_exchange.
12363 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
12366 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
12367 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
12369 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
12371 * config/rs6000/rs6000.md ('type' attribute): Add
12372 veclogical,veccmpfx,vecexts,vecmove insn types.
12373 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
12374 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
12375 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
12376 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
12377 *nabs<mode>2_hw): Change type to vecmove.
12378 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
12379 *boolcc<mode>3_internal, *eqv<mode>3_internal,
12380 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
12381 *ieee_128bit_vsx_abs<mode>2_internal,
12382 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
12383 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
12384 *ieee128_mtvsrd_32bit): Change type to veclogical.
12385 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12386 *movdi_internal32, *movdi_internal64): Update insn types.
12387 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
12388 vsx_extract_<mode>): Change type to veclogical.
12389 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
12390 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
12391 *vsx_sign_extend_si_v2di): Change type to vecexts.
12392 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
12393 type to veclogical.
12394 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
12395 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
12396 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
12397 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
12398 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12399 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
12400 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
12401 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
12402 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
12403 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
12404 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
12405 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
12406 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
12407 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
12408 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
12409 (ppc7450-vecsimple): Add veclogical, vecmove.
12410 (ppc7450-veccmp): Add veccmpfx.
12411 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
12413 (ppc8540_vector_compare): Add veccmpfx.
12414 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
12415 * config/rs6000/cell.md (cell-fp): Add fpsimple.
12416 (cell-vecsimple): Add veclogical, vecmove.
12417 (cell-veccmp): Add veccmpfx.
12418 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
12419 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
12421 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
12422 * config/rs6000/power4.md (power4-fp): Add fpsimple.
12423 (power4-vecsimple): Add veclogical, vecmove.
12424 (power4-veccmp): Add veccmpfx.
12425 * config/rs6000/power5.md (power5-fp): Add fpsimple.
12426 * config/rs6000/power6.md (power6-fp): Add fpsimple.
12427 (power6-vecsimple): Add veclogical, vecmove.
12428 (power6-veccmp): Add veccmpfx.
12429 * config/rs6000/power7.md (power7-fp): Add fpsimple.
12430 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
12431 * config/rs6000/power8.md (power8-fp): Add fpsimple.
12432 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
12433 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
12434 * config/rs6000/titan.md (titan_fp): Add fpsimple.
12435 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
12437 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
12439 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
12442 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12443 OPTION_MASK_P9_DFORM_VECTOR.
12444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12445 disable -mpower9-dform-vector when using reload.
12446 (quad_address_p): Remove 'gpr_p' argument and all associated code.
12447 New 'strict' argument. Update all callers. Add strict addressing
12449 (rs6000_legitimate_offset_address_p): Remove call to
12450 virtual_stack_registers_memory_p.
12451 (rs6000_legitimize_reload_address): Add quad address support.
12452 (rs6000_legitimate_address_p): Move call to quad_address_p above
12453 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
12454 to account for new strict usage.
12455 (rs6000_output_move_128bit): Adjust quad_address_p args to account
12456 for new strict usage.
12457 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
12459 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
12466 * config/i386/i386.c (ix86_spill_class): Disable condition to
12467 always return NO_REGS.
12469 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
12471 * predict.c: Include gimple-pretty-print.h
12472 (predicted_by_loop_heuristics_p): Check also
12473 PRED_LOOP_EXIT_WITH_RECURSION
12474 (predict_loops): Find self recursive calls and use special purpose
12475 predictors for them; dump log about decisions.
12476 (pass_profile::execute): Dump info about #of iterations.
12477 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
12478 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
12480 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
12482 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
12483 output_asm_insn calls and shorten long lines. Output .CALL
12484 argument descriptor using pa_output_arg_descriptor. Add various
12485 inline $$dyncall and other optimizations.
12486 (pa_attr_length_indirect_call): Adjust ordering and lengths.
12488 2016-06-25 Jakub Jelinek <jakub@redhat.com>
12490 PR tree-optimization/71643
12491 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
12494 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
12495 leak a bitmap if dep_bb is NULL.
12497 PR tree-optimization/71631
12498 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
12499 to rewrite_expr_tree even if negate_result, move new_lhs var
12500 declaration and initialization earlier, for powi_result set afterwards
12501 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
12502 if new_lhs != lhs, and don't shadow gsi var.
12504 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12506 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
12507 Add in_loop parameter.
12508 (predict_loops): Add loop guard heuristics.
12509 * predict.def (PRED_LOOP_GUARD): New heuristics.
12511 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12513 * predict.c: Include ipa-utils.h
12514 (tree_bb_level_prediction): Predict recursive calls.
12515 (tree_estimate_probability_bb): Skip inexpensive calls for call
12517 * predict.def (PRED_RECURSIVE_CALL): New.
12519 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12521 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
12522 (BU_FLOAT128_1): Likewise.
12524 (COPYSIGNQ): Likewise.
12525 (RS6000_BUILTIN_NANQ): Likewise.
12526 (RS6000_BUILTIN_NANSQ): Likewise.
12527 (RS6000_BUILTIN_INFQ): Likewise.
12528 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
12529 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
12530 (TARGET_FOLD_BUILTIN): New #define.
12531 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
12532 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
12533 (rs6000_fold_builtin): New target hook implementation, handling
12534 folding of 128-bit NaNs and infinities.
12535 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
12536 entries are filled in to avoid problems during bootstrap
12537 self-test; define builtins for 128-bit NaNs and infinities.
12538 (rs6000_opt_mask): Add entry for float128.
12539 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
12540 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
12541 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
12542 (const_str_type_node): New #define.
12543 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
12544 to a define_expand that dispatches to either copysign<mode>3_soft
12545 or copysign<mode>3_hard.
12546 (copysign<mode>3_hard): Rename from copysign<mode>3.
12547 (copysign<mode>3_soft): New define_insn.
12548 * doc/extend.texi: Document new builtins.
12550 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12552 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
12553 PRIu64 instead of lu.
12555 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
12558 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
12559 copy the type name.
12561 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12563 PR tree-optimization/71647
12564 * omp-low.c (lower_rec_input_clauses): Convert
12565 omp_clause_aligned_alignment (c) to size_type_node for the
12566 last argument of __builtin_assume_aligned.
12568 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
12570 * configure.ac (calling ___tls_get_addr via GOT): New
12571 assembler/linker check.
12572 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
12573 assembler and linker supports calling ___tls_get_addr via GOT.
12574 Otherise, defined to 0.
12575 * config.in: Regenerated.
12576 * configure: Likewise.
12577 * config/i386/constraints.md (Yb): New constraint.
12578 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
12579 (REG_CLASS_NAMES): Likewise.
12580 (REG_CLASS_CONTENTS): Likewise.
12581 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
12582 the b constraint with the Yb constraint. Call ___tls_get_addr
12583 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
12585 (*tls_local_dynamic_base_32_gnu): Likewise.
12586 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
12587 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
12588 (*tls_local_dynamic_base_64_<mode>): Likewise.
12590 2016-06-24 Martin Liska <mliska@suse.cz>
12592 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
12593 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
12595 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
12596 argument to true if the expected number of iterations is
12599 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
12601 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
12602 assemble for 32bit target.
12603 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
12604 and $ld_ix86_gld_32_opt to link for 32bit target.
12605 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
12606 * configure: Regenerate.
12608 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12610 * config/arm/arm.c (int_log2): Delete definition and prototype.
12611 (shift_op): Use exact_log2 instead of int_log2.
12612 (vfp3_const_double_for_fract_bits): Likewise.
12614 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12616 * internal-fn.c (expand_arith_set_overflow): New function.
12617 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
12619 (expand_arith_overflow_result_store): Likewise. Handle precision
12620 smaller than mode precision.
12621 * tree-vrp.c (extract_range_basic): For imag part, handle
12622 properly signed 1-bit precision result.
12623 * doc/extend.texi (__builtin_add_overflow): Document that last
12624 argument can't be pointer to enumerated or boolean type.
12625 (__builtin_add_overflow_p): Document that last argument can't
12626 have enumerated or boolean type.
12628 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12629 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12631 * config/rs6000/predicates.md (splat_input_operand): Rework.
12632 Don't allow constants, since the insns that use this predicate
12633 don't support constants. Constants are handled by other insns
12634 that are created via combine. During and after register
12635 allocation, only allow indexed or indirect addresses, and not
12636 general addresses. Only allow modes supported by the hardware.
12637 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
12638 comment. Move check for using VSPLTIS<x> to a common location,
12639 instead of doing it in two different places.
12641 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
12643 * config/i386/driver-i386.c (host_detect_local_cpu): Set
12644 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
12645 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
12646 signature_CENTAUR_ebx.
12648 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
12652 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
12653 (as_ix86_gas_32_opt): This.
12654 (ld_ix86_tls_ldm_opt): Renamed to ...
12655 (ld_ix86_gld_32_opt): This.
12656 (R_386_TLS_LDM reloc): Updated.
12657 (R_386_GOT32X reloc): New assembler/linker check.
12658 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
12659 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
12661 * config.in: Regenerated.
12662 * configure: Likewise.
12663 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
12664 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
12665 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
12666 if ix86_force_load_from_GOT_p returns true.
12667 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
12668 ix86_force_load_from_GOT_p returns true.
12669 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
12670 the external function address via the GOT slot.
12671 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
12672 HAVE_AS_IX86_GOT32X before returning false.
12673 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
12674 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
12676 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
12678 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
12680 2016-06-23 Andi Kleen <ak@linux.intel.com>
12682 * Makefile.in: Regenerate.
12683 * doc/install.texi: Document autoprofiledbootstrap.
12685 2016-06-23 Andi Kleen <ak@linux.intel.com>
12687 * config/i386/gcc-auto-profile: New file.
12689 2016-06-23 Martin Liska <mliska@suse.cz>
12691 PR middle-end/71619
12692 * predict.c (predict_loops): Revert the hunk that was removed
12695 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
12697 * config.gcc: Add support for arm*-*-phoenix* targets.
12698 * config/arm/t-phoenix: New.
12699 * config/phoenix.h: New.
12701 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
12702 H.J. Lu <hongjiu.lu@intel.com>
12705 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
12706 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
12707 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
12708 ix86_force_load_from_GOT_p returns true.
12709 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
12710 ix86_force_load_from_GOT_p returns true.
12711 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
12712 ix86_force_load_from_GOT_p returns true.
12713 (ix86_expand_move): Load the external function address via the
12714 GOT slot if ix86_force_load_from_GOT_p returns true.
12715 * config/i386/predicates.md (x86_64_immediate_operand): Return
12716 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
12717 (x86_64_zext_immediate_operand): Ditto.
12719 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
12721 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
12723 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12726 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
12727 * diagnostic.c (pedwarn_at_rich_loc): New function.
12728 * spellcheck.h (best_match::best_match): Add a
12729 "best_distance_so_far" optional parameter.
12730 (best_match::set_best_so_far): New method.
12731 (best_match::get_best_distance): New accessor.
12732 (best_match::get_best_candidate_length): New accessor.
12734 2016-06-22 Nick Clifton <nickc@redhat.com>
12736 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
12737 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
12738 modes are accepted as well.
12739 (ucompare_loc_descriptor): Likewise.
12740 (minmax_loc_descriptor): Likewise.
12741 (clz_loc_descriptor): Likewise.
12742 (popcount_loc_descriptor): Likewise.
12743 (bswap_loc_descriptor): Likewise.
12744 (rotate_loc_descriptor): Likewise.
12745 (mem_loc_descriptor): Likewise.
12746 (loc_descriptor): Likewise.
12748 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12750 * common.opt (fdiagnostics-parseable-fixits): New option.
12751 * diagnostic.c: Include "selftest.h".
12752 (print_escaped_string): New function.
12753 (print_parseable_fixits): New function.
12754 (diagnostic_report_diagnostic): Call print_parseable_fixits.
12755 (selftest::assert_print_escaped_string): New function.
12756 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
12757 (selftest::test_print_escaped_string): New function.
12758 (selftest::test_print_parseable_fixits_none): New function.
12759 (selftest::test_print_parseable_fixits_insert): New function.
12760 (selftest::test_print_parseable_fixits_remove): New function.
12761 (selftest::test_print_parseable_fixits_replace): New function.
12762 (selftest::diagnostic_c_tests): New function.
12763 * diagnostic.h (struct diagnostic_context): Add field
12764 "parseable_fixits_p".
12765 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12766 -fdiagnostics-parseable-fixits.
12767 (-fdiagnostics-parseable-fixits): New option.
12768 * opts.c (common_handle_option): Handle
12769 -fdiagnostics-parseable-fixits.
12770 * selftest-run-tests.c (selftest::run_tests): Call
12771 selftest::diagnostic_c_tests.
12772 * selftest.h (selftest::diagnostic_c_tests): New prototype.
12774 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
12776 PR tree-optimization/71488
12777 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
12778 comparison of boolean vectors.
12779 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
12780 of boolean vectors using bitwise operations.
12782 2016-06-22 Andreas Schwab <schwab@suse.de>
12784 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
12785 Remove declaration.
12787 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
12789 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
12791 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
12793 * config/i386/i386.c (print_reg): Emit an error message on attempt to
12796 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12798 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
12799 * config/arm/arm-cores.def (cortex-a73): New entry.
12800 (cortex-a73.cortex-a35): Likewise.
12801 (cortex-a73.cortex-a53): Likewise.
12802 * config/arm/arm-tables.opt: Regenerate.
12803 * config/arm/arm-tune.md: Likewise.
12804 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
12805 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12806 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
12807 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12808 * doc/invoke.texi (ARM Options): Document cortex-a73,
12809 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
12811 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12813 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
12814 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
12815 (cortex-a73.cortex-a35): Likewise.
12816 (cortex-a73.cortex-a53): Likewise.
12817 * config/aarch64/aarch64-tune.md: Regenerate.
12818 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
12819 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
12822 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12824 * configure.ac (gcc_cv_as_compress_debug): Remove
12825 --compress-debug-sections as extra as switch.
12826 Handle gas --compress-debug-sections=type.
12827 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
12828 Handle gld --compress-debug-sections=type.
12829 * configure: Regenerate.
12831 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
12833 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
12835 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
12837 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
12838 (do_rewrite): likewise.
12840 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12842 * common/config/mep/mep-common.c: Remove.
12843 * config.gcc: Remove mep-* support.
12844 * config/mep/constraints.md: Remove.
12845 * config/mep/default.h: Remove.
12846 * config/mep/intrinsics.h: Remove.
12847 * config/mep/intrinsics.md: Remove.
12848 * config/mep/ivc2-template.h: Remove.
12849 * config/mep/mep-c5.cpu: Remove.
12850 * config/mep/mep-core.cpu: Remove.
12851 * config/mep/mep-default.cpu: Remove.
12852 * config/mep/mep-ext-cop.cpu: Remove.
12853 * config/mep/mep-intrin.h: Remove.
12854 * config/mep/mep-ivc2.cpu: Remove.
12855 * config/mep/mep-pragma.c: Remove.
12856 * config/mep/mep-protos.h: Remove.
12857 * config/mep/mep.c: Remove.
12858 * config/mep/mep.cpu: Remove.
12859 * config/mep/mep.h: Remove.
12860 * config/mep/mep.md: Remove.
12861 * config/mep/mep.opt: Remove.
12862 * config/mep/predicates.md: Remove.
12863 * config/mep/t-mep: Remove.
12864 * doc/install.texi: Remove mep-* documentation.
12865 * doc/md.texi: Likewise.
12867 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12869 * config.gcc: Remove support for avr-rtems.
12870 * config/avr/gen-avr-mmcu-specs.c: Likewise.
12871 * config/avr/rtems.h: Remove.
12872 * config/avr/t-rtems: Remove.
12874 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12876 * config.gcc: Remove m32r-rtems support.
12877 * config/m32r/rtems.h: Remove.
12879 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12881 * config.gcc: Remove h8300-rtems support.
12882 * config/h8300/rtems.h: Remove.
12883 * config/h8300/t-rtems: Remove.
12885 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12887 * config.gcc: Remove support for knetbsd.
12888 * configure.ac: Likewise.
12889 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
12890 * config/knetbsd-gnu.h: Remove.
12891 * configure: Regenerate.
12893 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12895 * config.gcc: Remove support for openbsd 2 and 3.
12896 * config/openbsd-oldgas.h: Remove.
12898 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12900 * config.gcc: Remove interix support.
12901 * config/i386/i386-interix.h: Remove.
12902 * config/i386/interix.opt: Remove.
12903 * config/i386/t-interix: Remove.
12904 * configure: Regenerate.
12905 * configure.ac: Remove interix support.
12906 * doc/install.texi: Remove interix documentation.
12908 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
12910 * config/rs6000/rs6000.h: Add conditional preprocessing directives
12911 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
12914 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
12916 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
12917 they are both PLACEHOLDER_EXPRs.
12919 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12921 * stor-layout.c (layout_type): Move setting complex MODE to
12922 layout_type, instead of setting it ahead of time by the caller.
12923 * tree.c (build_complex_type): Likewise.
12925 2016-06-21 Martin Liska <mliska@suse.cz>
12927 * predict.c (force_edge_cold): Replace imposisble with
12930 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
12932 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
12933 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
12935 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
12937 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
12939 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
12940 Ilya Enkovich <ilya.enkovich@intel.com>
12943 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
12944 New member function to convert V1TImode register to SUBREG
12945 TImode in debug insn.
12946 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
12947 after changing register mode to V1TImode.
12949 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
12951 * config/aarch64/aarch64-cores.def (vulcan): New core.
12952 * config/aarch64/aarch64-tune.md: Regenerate.
12953 * doc/invoke.texi: Document vulcan as an available option.
12955 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
12957 * cse.c (canon_asm_operands): New function extracted from...
12958 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
12959 either standalone or member of a PARALLEL.
12961 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
12964 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
12965 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
12966 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
12968 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
12971 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
12972 constant addresses if can_create_pseudo_p.
12974 2016-06-21 Jakub Jelinek <jakub@redhat.com>
12976 PR tree-optimization/71588
12977 * tree-ssa-strlen.c (valid_builtin_call): New function.
12978 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
12981 2016-06-20 Jakub Jelinek <jakub@redhat.com>
12983 PR middle-end/71581
12984 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
12985 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
12986 for conversion of scalar user var to complex type and use the
12987 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
12990 PR rtl-optimization/71591
12991 * toplev.c (toplev::run_self_tests): If no_backend, complain and
12992 don't run any tests.
12994 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
12997 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
12998 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
12999 space for PIC with non-v32 and the common non-PIC "jump".
13001 2016-06-20 Jakub Jelinek <jakub@redhat.com>
13004 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
13005 returned values and add UN*/LTGT/*ORDERED cases with values matching
13006 D operand modifier on vcmp for AVX.
13008 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13010 * config/aarch64/aarch64.opt
13011 (mpc-relative-literal-loads): Rename internal option name.
13012 * config/aarch64/aarch64.c
13013 (aarch64_nopcrelative_literal_loads): Rename to
13014 aarch64_pcrelative_literal_loads.
13015 (aarch64_expand_mov_immediate): Likewise.
13016 (aarch64_secondary_reload): Likewise.
13017 (aarch64_can_use_per_function_literal_pools_p): Likewise.
13018 (aarch64_override_options_after_change_1): Rename and simplify logic.
13019 (aarch64_classify_symbol): Merge large model checks into switch,
13020 remove pc-relative load check.
13022 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13024 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
13025 costs relative to the cost of a register move.
13027 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13029 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
13030 (vcvt_n_f64_u64): Likewise.
13031 (vcvt_n_s64_f64): Likewise.
13032 (vcvt_n_u64_f64): Likewise.
13033 (vcvt_f64_s64): Likewise.
13034 (vrecpe_f64): Likewise.
13035 (vcvt_f64_u64): Likewise.
13036 (vrecps_f64): Likewise.
13038 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13040 * config/aarch64/aarch64.md
13041 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
13043 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
13045 * config/aarch64/aarch64-builtins.c
13046 (aarch64_types_binop_uss_qualifiers): Delete.
13047 (TYPES_BINOP_USS): Likewise.
13048 (aarch64_types_binop_sus_qualifiers): Likewise.
13049 (TYPES_BINOP_SUS): Likewise.
13050 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
13051 (TYPES_FCVTIMM_SUS): Likewise.
13052 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
13054 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
13055 (fcvtzs): Use SHIFTIMM rather than BINOP.
13056 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
13058 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
13060 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
13061 costs relative to the cost of a register move.
13063 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13065 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
13066 Allow scalar/single vector modes to be tieable.
13068 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
13070 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
13072 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13074 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
13076 * tree.h (TYPE_ALIGN): Likewise.
13078 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13081 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
13083 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13085 * config/avr/avr.c (avr_print_operand): Fix "format not a string
13086 literal" build warnings.
13087 (avr_print_operand_address): Dito.
13089 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
13092 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
13093 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
13095 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
13097 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
13099 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
13102 * reload1.c (reload): Pass 0 to finish_spills when called because
13103 update_eliminables_and_spill returns true and remove did_spill.
13104 (finish_spills): Adjust comment and document GLOBAL parameter.
13106 2016-06-17 DJ Delorie <dj@redhat.com>
13109 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
13110 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
13111 (umulqihi3_virt): Likewise.
13112 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
13113 (umulqihi3_real): Likewise.
13115 2016-06-17 Martin Liska <mliska@suse.cz>
13117 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
13119 2016-06-17 Martin Liska <mliska@suse.cz>
13121 * predict.def: PRED_LOOP_EXIT from 92 to 85.
13123 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
13125 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
13127 (vaddq_f32): Likewise.
13128 (vmul_f32): Likewise.
13129 (vmulq_f32): Likewise.
13130 (vsub_f32): Likewise.
13131 (vsubq_f32): Likewise.
13133 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13135 PR tree-optimization/71347
13136 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
13137 cost for all uses in group.
13139 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13141 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
13142 insert gimple seq if it's not empty.
13144 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13146 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
13148 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
13149 rather than OFFSET.
13150 (comp_dr_with_seg_len_pair): Ditto.
13151 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
13152 struct dr_with_seg_len_pair against DR_OFFSET.
13153 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
13154 DR_OFFSET directly.
13156 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
13158 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
13160 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
13162 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
13163 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
13164 (pa_output_millicode_call): Likewise.
13165 (pa_output_call): Likewise.
13166 (pa_output_indirect_call): Likewise.
13167 (pa_asm_output_mi_thunk): Likewise.
13169 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13171 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
13173 2016-06-16 Martin Liska <mliska@suse.cz>
13175 * predict.c (combine_predictions_for_insn): When we find a first
13176 match predictor, we should consider just predictors with
13177 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
13178 DS theory predictor.
13179 (combine_predictions_for_bb): Likewise.
13181 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13183 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
13184 with base of reference to struct.
13186 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13188 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
13190 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13193 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
13194 progmem_swtable_section.
13195 (progmem_swtable_section): Remove.
13196 (avr_asm_function_rodata_section): Remove.
13197 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13198 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
13200 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
13202 * config/i386/driver-i386.c (host_detect_local_cpu): Set
13203 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
13204 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
13205 signature_CENTAUR_ebx.
13206 * config/i386/i386.c (ix86_option_override_internal): Add
13207 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
13208 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
13209 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
13211 2016-06-16 Martin Liska <mliska@suse.cz>
13213 * predict.def: Add fortran loop preheader predictor.
13214 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
13215 fold IFN_BUILTIN_EXPECT with a known constant argument.
13217 2016-06-16 Martin Liska <mliska@suse.cz>
13219 * predict.def: Add 'Fortran' to display text of all
13220 PRED_FORTRAN_* predictors.
13222 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13225 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
13226 [IA64_BUILTIN_NANSQ]: Ditto.
13227 (ia64_fold_builtin): New function.
13228 (TARGET_FOLD_BUILTIN): New define.
13229 (ia64_init_builtins) Declare const_string_type node.
13230 Add __builtin_nanq and __builtin_nansq builtin functions.
13231 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
13233 2016-06-16 Nick Clifton <nickc@redhat.com>
13235 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
13236 MSP430_HWMULT_ prefix to enum values.
13237 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
13238 * config/msp430/msp430.c: Update use of enum values.
13239 * config/msp430/msp430.md: Likewise.
13240 * config/msp430/msp430.opt: Likewise.
13242 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
13244 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
13245 of comparsions in the last iteration.
13247 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13248 Joern Rennecke <joern.rennecke@embecosm.com>
13250 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
13252 (arc_needs_pcl_p): Add GOTOFFPC.
13253 (arc_legitimate_pic_addr_p): Likewise.
13254 (arc_output_pic_addr_const): Likewise.
13255 (arc_legitimize_pic_address): Generate a pc-relative address using
13257 (arc_output_libcall): Use @pcl syntax.
13258 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
13259 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
13260 (*movsi_insn): Use @pcl syntax.
13261 (doloop_begin_i): Likewise.
13263 2016-06-16 Martin Liska <mliska@suse.cz>
13265 * predict.def: Define a new predictor.
13267 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13269 * config/arc/arc.opt (mtp-regno): Update text.
13271 2016-06-16 Renlin Li <renlin.li@arm.com>
13273 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
13275 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13278 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
13279 (setcc + and peephole2): Likewise.
13281 PR rtl-optimization/71532
13282 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
13285 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13287 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
13288 DImode constants with XXSPLTIB in vector registers.
13289 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
13290 vsx_extract_<mode>_internal{1,2} into a single insn that handles
13291 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
13292 extraction of the element at the top of the register as a scalar
13294 (vsx_extract_<mode>_internal1): Likewise.
13295 (vsx_extract_<mode>_internal2): Likewise.
13296 * config/rs6000/constraints.md (wi constraint): Remove a comment
13297 about DImode not being allowed in Altivec registers.
13298 (wB constraint): New constraint for constants that can be
13299 generated in Altivec registers with VSPLTISW/VUPKHSW.
13300 * config/rs6000/predicates.md (xxspltib_constant_split): Update
13302 (xxspltib_constant_nosplit): Likewise.
13303 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
13304 support for -mupper-regs-di to enable DImode to go into Altivec
13306 (POWERPC_MASKS): Likewise.
13307 (power7 cpu): Likewise.
13308 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
13309 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
13310 for DImode being allowed in Altivec registers. Update wi/wj
13311 constraints. Set scalar_in_vmx_p flag.
13312 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
13313 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
13314 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
13315 (rs6000_opt_masks): Add -mupper-regs-di.
13316 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
13317 direct move to use wi and not wj.
13318 (lfiwzx): Likewise.
13319 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
13321 (floatunssi<mode>2_lfiwzx_mem): Likewise.
13322 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
13323 any VSX register, instead of just Altivec registers, to allow
13324 either operand to be an Altivec register or both.
13325 (fixuns_trunc<mode>di2_fctiduz): Likewise.
13326 (movdi_internal32): Add support for -mupper-regs-di. Add support
13327 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
13328 the alternatives and attributes to be lined up to be easier to
13330 (movdi_internal64): Likewise.
13331 (64-bit DImode splitters): Change predicates to only split loading
13332 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
13333 load constants in ISA 3.0 or ISA 2.07 respectively.
13334 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13335 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
13336 mention -mcpu=power9 sets these options.
13337 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
13340 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13343 * config/avr/avr.c (avr_set_current_function): Warn misspelled
13344 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
13345 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
13346 by default to warn misspelled interrupt/ signal handler.
13347 * doc/invoke.texi (AVR Options): Document it. Update description
13348 for -nodevicelib option.
13350 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13352 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
13353 up parentheses. Use GET_MODE_UNIT_BITSIZE.
13354 (aarch64_<sur>shll2_n<mode>): Likewise.
13356 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
13358 PR middle-end/71529
13359 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
13360 DECL_CONTEXT for copied arguments.
13362 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13364 PR tree-optimization/71483
13365 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
13368 2016-06-15 Martin Liska <mliska@suse.cz>
13370 * predict.c (tree_predict_by_opcode): Call predict_edge_def
13371 instead of predict_edge w/o a probability.
13373 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13375 PR tree-optimization/71439
13376 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
13379 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13381 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
13382 register subregs in SET_SRC.
13384 2016-06-15 Richard Biener <rguenther@suse.de>
13386 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
13387 store restrictions.
13389 2016-06-15 Richard Biener <rguenther@suse.de>
13391 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
13392 not consider dependences between accesses that belong to the
13394 (vect_analyze_data_ref_dependences): Do not analyze read-read
13395 or self-dependences.
13397 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13399 * spellcheck-tree.c: Include spellcheck-tree.h rather than
13401 (find_closest_identifier): Reimplement in terms of
13402 best_match<tree,tree>.
13403 * spellcheck-tree.h: New file.
13404 * spellcheck.c (struct edit_distance_traits<const char *>): New
13406 (find_closest_string): Reimplement in terms of
13407 best_match<const char *, const char *>.
13408 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
13409 overload to spellcheck-tree.h.
13410 (find_closest_identifier): Likewise.
13411 (struct edit_distance_traits<T>): New template.
13412 (class best_match): New class.
13414 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13416 * selftest-run-tests.c (selftest::run_tests): Call
13417 selftest::spellcheck_tree_c_tests.
13418 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
13419 * spellcheck-tree.c: Include selftest.h and stringpool.h.
13420 (selftest::test_find_closest_identifier): New function.
13421 (selftest::spellcheck_tree_c_tests): New function.
13422 * spellcheck.c (selftest::test_find_closest_string): Verify that
13423 the order of the vec does not affect the results for this case.
13424 (selftest::test_data): New array.
13425 (selftest::test_metric_conditions): New function.
13426 (selftest::spellcheck_c_tests): Add a test of case-comparison.
13427 Call selftest::test_metric_conditions.
13429 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13431 * config/rs6000/rs6000-builtin.def (commentary): Typo.
13432 (BU_P9_MISC_1): Likewise.
13433 (BU_P9_64BIT_MISC_0): Likewise.
13434 (BU_P9_MISC_0): Likewise.
13436 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13438 * gcc-rich-location.c
13439 (gcc_rich_location::add_fixit_misspelled_id): New method.
13440 * gcc-rich-location.h
13441 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
13443 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
13445 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
13446 FreeBSD 11 and above.
13448 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
13450 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
13452 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13454 * expmed.h: Close parenthesis in "at your option" in copyright
13456 * lower-subreg.h: Likewise.
13458 2016-06-14 Richard Biener <rguenther@suse.de>
13460 PR middle-end/71526
13461 * genmatch.c (expr::gen_transform): Use in_type for comparisons
13464 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13466 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
13468 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
13469 mask+shift version.
13470 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
13472 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
13473 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
13475 2016-06-14 Richard Biener <rguenther@suse.de>
13477 PR tree-optimization/71522
13478 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
13479 copying into float copying.
13481 2016-06-14 Jakub Jelinek <jakub@redhat.com>
13483 PR tree-optimization/71520
13484 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
13485 (replace_block_by): Move user labels from bb1 to bb2.
13487 2016-06-14 Richard Biener <rguenther@suse.de>
13489 PR middle-end/71310
13491 * expr.h (get_bit_range): Declare.
13492 * expr.c (get_bit_range): Export.
13493 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
13494 word_mode again to constrain the bitfield access.
13496 2016-06-14 Richard Biener <rguenther@suse.de>
13498 PR tree-optimization/71521
13499 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
13500 division int_const_binop against zero divisor.
13502 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13504 * config/i386/i386.md (signbittf2): New expander.
13505 * config/i386/sse.md (ptesttf2): New insn pattern.
13507 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13510 * input.c (selftest::test_reading_source_line): Avoid reading from
13511 __FILE__ by creating a tempfile with known content and reading
13514 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13516 * pretty-print.c (assert_pp_format_colored): Skip the test if
13518 (test_pp_format): Remove comment about GCC_COLORS.
13520 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13522 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
13523 * pretty-print.c (assert_pp_format_va): Add location param and use
13524 it with ASSERT_STREQ_AT.
13525 (assert_pp_format): Add location param and pass it to
13526 assert_pp_format_va.
13527 (assert_pp_format_colored): Likewise.
13528 (ASSERT_PP_FORMAT_1): New.
13529 (ASSERT_PP_FORMAT_2): New.
13530 (ASSERT_PP_FORMAT_3): New.
13531 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
13532 explicitly, or implicitly via the above macros.
13533 * selftest.c (selftest::pass): Use a selftest::location rather
13534 than file and line.
13535 (selftest::fail): Likewise. Print the function name.
13536 (selftest::fail_formatted): Likewise.
13537 (selftest::assert_streq): Use a selftest::location rather than
13539 * selftest.h (selftest::location): New struct.
13540 (SELFTEST_LOCATION): New macro.
13541 (selftest::pass): Accept a const location & rather than file
13543 (selftest::fail): Likewise.
13544 (selftest::fail_formatted): Likewise.
13545 (selftest::assert_streq): Likewise.
13546 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
13547 (ASSERT_FALSE): Likewise.
13548 (ASSERT_EQ): Likewise.
13549 (ASSERT_NE): Likewise.
13550 (ASSERT_STREQ): Likewise.
13551 (ASSERT_PRED1): Likewise.
13552 (ASSERT_STREQ_AT): New macro.
13554 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13556 * selftest.c (selftest::fail_formatted): New function.
13557 (selftest::assert_streq): New function.
13558 * selftest.h (selftests::fail_formatted): New decl.
13559 (selftest::assert_streq): New decl.
13560 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
13562 2016-06-13 Jeff Law <law@redhat.com>
13564 PR tree-optimization/71403
13565 * tree-ssa-threadbackward.c
13566 (convert_and_register_jump_thread_path): No longer accept reference
13567 to path. Do not pop items off the path anymore.
13568 (fsm_find_control_statement_thread_paths): Do not allow threading
13569 to a deeper loop nest. Pop the last item off the path here rather
13570 than in convert_and_register_jump_thread_path.
13572 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13573 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
13575 [AArch64] Emit division using the Newton series
13577 * config/aarch64/aarch64-protos.h
13578 (cpu_approx_modes): Add new member "division".
13579 (aarch64_emit_approx_div): Declare new function.
13580 * config/aarch64/aarch64.c
13581 (generic_approx_modes): New member "division".
13582 (exynosm1_approx_modes): Likewise.
13583 (xgene1_approx_modes): Likewise.
13584 (aarch64_emit_approx_div): Define new function.
13585 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
13586 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
13587 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
13588 * doc/invoke.texi (-mlow-precision-div): Describe new option.
13590 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13591 Wilco Dijkstra <wilco.dijkstra@arm.com>
13593 [AArch64] Emit square root using the Newton series
13595 * config/aarch64/aarch64-protos.h
13596 (aarch64_emit_approx_rsqrt): Replace with new function
13597 "aarch64_emit_approx_sqrt".
13598 (cpu_approx_modes): New member "sqrt".
13599 * config/aarch64/aarch64.c
13600 (generic_approx_modes): New member "sqrt".
13601 (exynosm1_approx_modes): Likewise.
13602 (xgene1_approx_modes): Likewise.
13603 (aarch64_emit_approx_rsqrt): Replace with new function
13604 "aarch64_emit_approx_sqrt".
13605 (aarch64_override_options_after_change_1): Handle new option.
13606 * config/aarch64/aarch64-simd.md
13607 (rsqrt<mode>2): Use new function instead.
13608 (sqrt<mode>2): New expansion and insn definitions.
13609 * config/aarch64/aarch64.md: Likewise.
13610 * config/aarch64/aarch64.opt
13611 (mlow-precision-sqrt): Add new option description.
13612 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
13614 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13616 [AArch64] Add more choices for the reciprocal square root approximation
13618 Allow a target to prefer such operation depending on the operation mode.
13620 * config/aarch64/aarch64-protos.h
13621 (AARCH64_APPROX_MODE): New macro.
13622 (AARCH64_APPROX_{NONE,ALL}): Likewise.
13623 (cpu_approx_modes): New structure.
13624 (tune_params): New member "approx_modes".
13625 * config/aarch64/aarch64-tuning-flags.def
13626 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
13627 * config/aarch64/aarch64.c
13628 (generic_approx_modes): New core "cpu_approx_modes" structure.
13629 (exynosm1_approx_modes): Likewise.
13630 (xgene1_approx_modes): Likewise.
13631 (generic_tunings): New member "approx_modes".
13632 (cortexa35_tunings): Likewise.
13633 (cortexa53_tunings): Likewise.
13634 (cortexa57_tunings): Likewise.
13635 (cortexa72_tunings): Likewise.
13636 (exynosm1_tunings): Likewise.
13637 (thunderx_tunings): Likewise.
13638 (xgene1_tunings): Likewise.
13639 (use_rsqrt_p): New argument for the mode and use new member from
13641 (aarch64_builtin_reciprocal): Devise mode from builtin.
13642 (aarch64_optab_supported_p): New argument for the mode.
13643 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
13645 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13647 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
13648 RS6000_BTM_MODULO flag into the set of flags that are considered
13649 to be part of the common configuration.
13651 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13653 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
13654 difference unsigned.
13655 (vec_absdb): New macro for vector absolute difference unsigned
13657 (vec_absdh): New macro for vector absolute difference unsigned
13659 (vec_absdw): New macro for vector absolute difference unsigned word.
13660 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
13661 (vadu<mode>3): New insn.
13662 (*p9_vadu<mode>3): New insn.
13663 * config/rs6000/rs6000-builtin.def (vadub): New built-in
13665 (vaduh): New built-in definition.
13666 (vaduw): New built-in definition.
13667 (vadu): New overloaded built-in definition.
13668 (vadub): New overloaded built-in definition.
13669 (vaduh): New overloaded built-in definition.
13670 (vaduw): New overloaded built-in definition.
13671 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13672 overloaded vector absolute difference unsigned functions.
13673 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13674 the ISA 3.0 vector absolute difference unsigned built-in functions.
13676 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
13678 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
13679 update shared_lookup_references only once after changing operands.
13681 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
13683 PR middle-end/71373
13684 * tree-nested.c (convert_nonlocal_omp_clauses)
13685 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
13687 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
13688 * tree.def (CASE_LABEL_EXPR): Likewise.
13690 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13693 * input.c (test_builtins): Fix an assertion.
13695 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13697 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
13698 (paritysi2): Ditto.
13700 (isinf<mode>2): Ditto.
13702 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13704 * ggc-tests.c (test_finalization): Only test need_finalization_p
13705 for GCC_VERSION >= 4003.
13707 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13709 * config/s390/vecintrin.h: Fix file description in comment.
13711 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13713 * config/s390/s390-builtin-types.def: Change builtin type naming
13714 scheme to match builtin-types.def.
13716 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
13718 * fold-const.c (optimize_minmax_comparison): Remove.
13719 (fold_comparison): Remove call to the above.
13720 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
13721 New transformations.
13723 2016-06-13 Alan Hayward <alan.hayward@arm.com>
13725 PR tree-optimization/71416
13726 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
13729 2016-06-13 Martin Liska <mliska@suse.cz>
13731 * predict.c (enum predictor_reason): Prefix enum with REASON_.
13732 (combine_predictions_for_insn): Likewise.
13733 (prune_predictions_for_bb): Likewise.
13734 (combine_predictions_for_bb): Likewise.
13736 2016-06-13 Richard Biener <rguenther@suse.de>
13738 PR tree-optimization/71505
13739 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
13740 assert match comment.
13742 2016-06-13 Marek Polacek <polacek@redhat.com>
13744 PR middle-end/71476
13745 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
13746 gimplify_switch_expr.
13747 (warn_switch_unreachable_r): New function.
13749 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13752 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
13755 2016-06-13 Richard Biener <rguenther@suse.de>
13757 PR middle-end/64516
13758 * fold-const.c (fold_unary_loc): Preserve alignment when
13759 folding a VIEW_CONVERT_EXPR into a MEM_REF.
13761 2016-06-13 Martin Liska <mliska@suse.cz>
13764 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
13765 w/ -fsanitize=bounds.
13767 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13769 * config/i386/i386.c (ix86_init_builtins): Calculate
13770 FLOAT128_FTYPE_CONST_STRING function type only once.
13771 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
13772 built-in functions are available for x86-32 and x86-64 targets.
13774 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13777 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
13778 New primitive type.
13779 (FLOAT128_FTYPE_CONST_STRING): New function type.
13780 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
13781 [IX86_BUILTIN_NANSQ]: Ditto.
13782 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13783 (ix86_init_builtin_types): Declare const_string_type_node.
13784 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
13786 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13787 * doc/extend.texi (x86 Built-in Functions): Document
13788 __builtin_nanq and __builtin_nansq.
13790 2016-06-11 Jiong Wang <jiong.wang@arm.com>
13793 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
13794 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
13795 length for pop patterns.
13796 (arm_attr_length_push_multi): Update comments.
13797 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
13799 (*pop_multiple_with_writeback_and_return): Likewise.
13800 (*pop_multiple_with_return): Likewise.
13802 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
13804 PR middle-end/71310
13805 * fold-const.c (optimize_bit_field_compare): Don't try to use
13806 word_mode unconditionally for reading the bit field, look at
13807 DECL_BIT_FIELD_REPRESENTATIVE instead.
13809 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
13811 PR middle-end/71478
13812 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
13813 vector integer type.
13815 2016-06-10 Jakub Jelinek <jakub@redhat.com>
13817 PR middle-end/71494
13818 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
13819 without LABEL_DECL, set *handled_ops_p to false instead of true.
13821 2016-06-10 Martin Sebor <msebor@redhat.com>
13824 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
13825 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
13826 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
13828 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
13829 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
13830 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
13831 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
13832 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
13833 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
13834 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
13835 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
13837 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13839 * config/arm/arm.h (pool_vector_label,
13840 return_used_this_function): Remove.
13842 2016-06-10 Jeff Law <law@redhat.com>
13844 PR tree-optimization/71335
13845 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
13846 zero length paths here.
13847 (convert_and_register_jump_thread_path): Remove hacks related to
13848 duplicated blocks in the jump thread path.
13849 (fsm_find_control_statement_thread_paths): Avoid putting the same
13850 block on the thread path twice, but ensure the thread path is
13851 unchanged from the caller's point of view.
13853 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
13855 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
13856 * predict.def (PRED_LOOP_BRANCH): Remove.
13858 2016-06-10 David Malcolm <dmalcolm@redhat.com>
13860 * Makefile.in (OBJS): Add ggc-tests.o.
13861 (GTFILES): Add ggc-tests.c.
13862 * ggc-tests.c: New file.
13863 * selftest-run-tests.c (selftest::run_tests): Call
13864 selftest::ggc_tests_c_tests.
13865 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
13867 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
13869 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
13871 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
13874 * varasm.c (place_block_symbol): Adjust alignment for asan protected
13875 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
13877 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
13879 * profile.c: Include cfgloop.h.
13880 (branch_prob): Compute estimated number of iterations.
13881 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
13882 recompute estimate number of iterations from profile.
13884 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13886 PR inline-asm/68843
13887 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
13888 must be grouped on top of stack. Don't force early clobber
13889 on ordinary reg outputs.
13891 2016-06-10 Richard Biener <rguenther@suse.de>
13893 * targhooks.c (default_builtin_vectorization_cost): Adjust
13894 vec_construct cost.
13896 2016-06-10 Richard Biener <rguenther@suse.de>
13898 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
13899 to fold the RHS to a constant if possible.
13901 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13903 PR middle-end/71373
13904 * tree-nested.c (convert_nonlocal_omp_clauses)
13905 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
13906 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
13907 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
13909 * gimplify.c (gimplify_adjust_omp_clauses): Discard
13911 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
13913 * omp-low.c (scan_sharing_clauses): Don't expect
13914 OMP_CLAUSE__CACHE_.
13916 2016-06-10 Alan Hayward <alan.hayward@arm.com>
13918 PR tree-optimization/71407
13919 PR tree-optimization/71416
13920 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
13921 BIT_FIELD_REF type.
13923 2016-06-10 Richard Biener <rguenther@suse.de>
13925 PR middle-end/71477
13926 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
13928 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
13930 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
13932 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
13933 Jiong Wang <jiong.wang@arm.com>
13935 PR rtl-optimization/70751
13936 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
13937 spilled into memory.
13939 2016-06-09 Jonathan Yong <10walls@gmail.com>
13942 2015-09-21 Jonathan Yong <10walls@gmail.com>
13944 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13945 sysroot/usr/lib/32api for additional win32 libraries,
13946 fixes failing Cygwin bootstrapping.
13948 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
13950 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
13953 2016-06-09 David Malcolm <dmalcolm@redhat.com>
13956 * pretty-print.c (pp_indent): Specify that %p is printed in a
13957 host-dependent manner.
13958 (test_pp_format): Remove the test for %p.
13960 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
13962 * config/mips/mips.c (mips_output_jump): Fix formatting.
13964 2016-06-09 Richard Biener <rguenther@suse.de>
13966 PR tree-optimization/71462
13967 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
13970 2016-06-09 Martin Liska <mliska@suse.cz>
13972 * predict.c (dump_prediction): Add new argument.
13973 (enum predictor_reason): New enum.
13974 (struct predictor_hash): New struct.
13975 (predictor_hash::hash): New function.
13976 (predictor_hash::equal): Likewise.
13977 (not_removed_prediction_p): New function.
13978 (prune_predictions_for_bb): Likewise.
13979 (combine_predictions_for_bb): Prune predictions.
13981 2016-06-09 Martin Liska <mliska@suse.cz>
13983 * predict.c (filter_predictions): New function.
13984 (remove_predictions_associated_with_edge): Use the filter
13986 (equal_edge_p): New function.
13988 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
13990 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
13991 Correct usage of @samp vs @option, add @samp where appropriate.
13992 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
13993 Add armv6s-m and document it, as it is no official ARM name.
13995 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13997 * ifcvt.c (struct noce_if_info): Add transform_name field.
13998 (noce_try_move): Set if_info->transform_name to the function name.
13999 (noce_try_ifelse_collapse): Likewise.
14000 (noce_try_store_flag): Likewise.
14001 (noce_try_inverse_constants): Likewise.
14002 (noce_try_store_flag_constants): Likewise.
14003 (noce_try_addcc): Likewise.
14004 (noce_try_store_flag_mask): Likewise.
14005 (noce_try_cmove): Likewise.
14006 (noce_try_cmove_arith): Likewise.
14007 (noce_try_minmax): Likewise.
14008 (noce_try_abs): Likewise.
14009 (noce_try_sign_mask): Likewise.
14010 (noce_try_bitop): Likewise.
14011 (noce_convert_multiple_sets): Likewise.
14012 (noce_process_if_block): Print if_info->transform_name to
14013 dump_file if transformation succeeded.
14015 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14017 * config/arm/cortex-a57.md (cortex_a57_alu):
14020 2016-06-08 Martin Sebor <msebor@redhat.com>
14021 Jakub Jelinek <jakub@redhat.com>
14025 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
14026 BUILT_IN_MUL_OVERFLOW_P): New builtins.
14027 * builtins.c: Include gimple-fold.h.
14028 (fold_builtin_arith_overflow): Handle
14029 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
14030 (fold_builtin_3): Likewise.
14031 * doc/extend.texi (Integer Overflow Builtins): Document
14032 __builtin_{add,sub,mul}_overflow_p.
14034 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
14036 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
14037 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
14039 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
14041 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
14042 Rewrite, looking one level down for records and arrays.
14044 2016-06-08 David Malcolm <dmalcolm@redhat.com>
14046 * pretty-print.c: Include "selftest.h".
14047 (pp_format): Fix comment.
14048 (identifier_to_locale): Likewise.
14049 (selftest::test_basic_printing): New function.
14050 (selftest::assert_pp_format): New function.
14051 (selftest::test_pp_format): New function.
14052 (selftest::pretty_print_c_tests): New function.
14053 * selftest-run-tests.c (selftest::run_tests): Call
14054 selftest::pretty_print_c_tests.
14055 * selftest.h (pretty_print_c_tests): New declaration.
14057 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14059 * invoke.texi (max-loop-headers-insns): Document.
14060 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
14061 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
14062 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
14064 2016-06-08 Richard Biener <rguenther@suse.de>
14066 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
14067 on strided SLP loads and fall back to scalar loads in case
14068 we can't chunk them.
14070 2016-06-08 Richard Biener <rguenther@suse.de>
14072 PR tree-optimization/71452
14073 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
14074 type used for the SSA rewrite has enough precision to cover
14075 the dynamic type of the location.
14077 2016-06-08 Jakub Jelinek <jakub@redhat.com>
14078 Richard Biener <rguenther@suse.de>
14081 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
14082 the same as DECL_P (base0) for indirect_base0. Use equality_code
14083 in one further place.
14085 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
14087 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
14088 to one word if the field is known to overlap other words.
14089 (extract_bit_field_1): Likewise.
14090 (store_split_bit_field): Remove compensating code.
14091 (extract_split_bit_field): Likewise.
14093 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
14097 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
14099 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14101 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
14103 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
14104 (arch64_addpv4sf): Delete.
14105 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
14106 "gen_aarch64_addpv4sf".
14107 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
14109 (vpadds_f32): Likewise.
14110 (vpaddq_f32): Likewise.
14111 (vpaddq_f64): Likewise.
14113 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14115 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
14117 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
14118 to VALLF. Rename to "fabd<mode>3".
14119 "*fabd_scalar<mode>3): Delete.
14120 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
14122 (vabdd_f64): Likewise.
14123 (vabd_f32): Likewise.
14124 (vabd_f64): Likewise.
14125 (vabdq_f32): Likewise.
14126 (vabdq_f64): Likewise.
14128 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14130 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
14132 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
14133 "aarch64_rsqrts<mode>".
14134 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
14135 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
14137 (vrsqrtsd_f64): Likewise.
14138 (vrsqrts_f32): Likewise.
14139 (vrsqrts_f64): Likewise.
14140 (vrsqrtsq_f32): Likewise.
14141 (vrsqrtsq_f64): Likewise.
14143 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14145 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
14147 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
14148 "aarch64_rsqrte<mode>".
14149 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
14150 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
14152 (vrsqrted_f64): Likewise.
14153 (vrsqrte_f32): Likewise.
14154 (vrsqrte_f64): Likewise.
14155 (vrsqrteq_f32): Likewise.
14156 (vrsqrteq_f64): Likewise.
14158 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14160 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
14162 (fcvtzs): Likewise.
14163 (fcvtzu): Likewise.
14164 * config/aarch64/aarch64-simd.md
14165 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
14166 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
14167 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
14169 (vcvt_n_f32_u32): Likewise.
14170 (vcvt_n_s32_f32): Likewise.
14171 (vcvt_n_u32_f32): Likewise.
14172 (vcvtq_n_f32_s32): Likewise.
14173 (vcvtq_n_f32_u32): Likewise.
14174 (vcvtq_n_f64_s64): Likewise.
14175 (vcvtq_n_f64_u64): Likewise.
14176 (vcvtq_n_s32_f32): Likewise.
14177 (vcvtq_n_s64_f64): Likewise.
14178 (vcvtq_n_u32_f32): Likewise.
14179 (vcvtq_n_u64_f64): Likewise.
14180 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
14181 (VSDQ_SDI): Likewise.
14182 (fcvt_target): Support V4DI, V4SI and V2SI.
14183 (FCVT_TARGET): Likewise.
14185 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14187 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
14188 (TYPES_BINOP_SUS): Likewise.
14189 (aarch64_simd_builtin_data): Update include file name.
14190 (aarch64_builtins): Likewise.
14191 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
14192 for conversion between scalar float-point and fixed-point.
14194 (fcvtzs): Likewise.
14195 (fcvtzu): Likewise.
14196 * config/aarch64/aarch64.md
14197 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
14198 pattern for conversion between scalar float to fixed-pointer.
14199 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
14200 (UNSPEC_FCVTZS): New UNSPEC enumeration.
14201 (UNSPEC_FCVTZU): Likewise.
14202 (UNSPEC_SCVTF): Likewise.
14203 (UNSPEC_UCVTF): Likewise.
14204 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
14206 (vcvtd_n_f64_u64): Likewise.
14207 (vcvtd_n_s64_f64): Likewise.
14208 (vcvtd_n_u64_f64): Likewise.
14209 (vcvtd_n_f32_s32): Likewise.
14210 (vcvts_n_f32_u32): Likewise.
14211 (vcvtd_n_s32_f32): Likewise.
14212 (vcvts_n_u32_f32): Likewise.
14213 * config/aarch64/iterators.md (fcvt_target): Support integer to float
14215 (FCVT_TARGET): Likewise.
14216 (FCVT_FIXED2F): New iterator.
14217 (FCVT_F2FIXED): Likewise.
14218 (fcvt_fixed_insn): New define_int_attr.
14220 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14222 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
14223 some statements was removed.
14225 2016-06-08 Alan Hayward <alan.hayward@arm.com>
14227 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
14228 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
14229 (vect_can_advance_ivs_p): likewise.
14230 (vect_update_ivs_after_vectorizer): likewise.
14231 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
14232 (vect_analyze_scalar_cycles_1): likewise.
14233 (vect_analyze_loop_operations): likewise.
14234 (report_vect_op): likewise.
14235 (vect_is_slp_reduction): likewise.
14236 (vect_is_simple_reduction): likewise.
14237 (get_initial_def_for_induction): likewise.
14238 (vect_transform_loop): likewise.
14239 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
14240 (vect_recog_sad_pattern): likewise.
14241 (vect_recog_widen_sum_pattern): likewise.
14242 (vect_recog_widening_pattern): likewise.
14243 (vect_recog_divmod_pattern): likewise.
14244 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
14245 (vect_analyze_slp_instance): likewise.
14246 (vect_transform_slp_perm_load): likewise.
14247 (vect_schedule_slp_instance): likewise.
14249 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14251 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
14252 (return_prediction): PRED_CONST_RETURN predict return as not taken.
14253 * predict.def (PRED_CONTINUE): Change hitrate 50->67
14254 (PRED_LOOP_BRANCH): Document predictor as broken.
14255 (PRED_LOOP_EXIT): Change hitrate 91->92.
14256 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
14257 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
14258 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
14259 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
14260 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
14261 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
14262 (PRED_CALL): Chane hitrate 71->67.
14263 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
14264 (PRED_GOTO): Document as unused right now.
14265 (PRED_CONST_RETURN): Change hitrate 67->69
14266 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
14267 (PRED_NULL_RETURN): Change hitrate 91->90.
14268 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
14269 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
14270 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
14272 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
14274 * config/rs6000/altivec.h: Add __builtin_vec_mul.
14275 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
14276 special case Altivec builtin.
14277 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
14278 VSX_BUILTIN_VEC_MUL (replaced with special case code).
14279 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14280 code for ALTIVEC_BUILTIN_VEC_MUL.
14281 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
14282 for __builtin_vec_mul.
14284 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
14286 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
14289 2016-06-07 David Malcolm <dmalcolm@redhat.com>
14291 * spellcheck.c (selftest::test_find_closest_string): New function.
14292 (spellcheck_c_tests): Call the above.
14294 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14296 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
14298 2016-06-07 Jakub Jelinek <jakub@redhat.com>
14300 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
14301 Yv=Yv,C alternatives.
14303 2016-06-07 Richard Biener <rguenther@suse.de>
14306 * common.opt (ffast-math): Make Optimization.
14308 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
14309 Prachi Godbole <prachi.godbole@imgtec.com>
14311 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
14312 `fabs' and `fneg' type attributes.
14313 (p5600_fpu_fabs): Add `fmove' to the comment.
14315 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14317 * gimple.c: Include builtins.h
14318 (gimple_inexpensive_call_p): New function.
14319 * gimple.h (gimple_inexpensive_call_p): Declare.
14320 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
14321 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
14324 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
14326 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
14327 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
14328 warning_at_rich_loc, warning_n, pedwarn, permerror,
14329 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
14330 sorry, fatal_error, internal_error, internal_error_no_backtrace):
14333 2016-06-07 Richard Biener <rguenther@suse.de>
14335 PR tree-optimization/71428
14336 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
14337 BIT_FIELD_REF op vs. load.
14339 2016-06-07 Richard Biener <rguenther@suse.de>
14341 PR middle-end/71423
14342 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
14345 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14347 * config/pa/pa.md (call): Generate indirect long calls to non-local
14348 functions on TARGET_64BIT.
14349 (call_value): Likewise.
14351 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14353 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
14354 pattern and subsequent splitters.
14355 (call_val_reg_64bit_post_reload): Likewise.
14357 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14359 PR middle-end/71408
14360 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
14361 propagate_op_to_single_use.
14363 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14365 PR middle-end/71281
14366 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
14368 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
14370 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
14371 (enum x86_dirflag_state): New enum.
14372 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
14373 (machine_function): Remove needs_cld.
14374 (ix86_current_function_needs_cld): Remove.
14375 * config/i386/i386.c (ix86_set_func_type): Set
14376 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
14377 (ix86_expand_prologue): Do not emit CLD here.
14378 (ix86_dirflag_mode_needed): New function.
14379 (ix86_dirflag_mode_entry): Ditto.
14380 (ix86_mode_needed): Handle X86_DIRFLAG entity.
14381 (ix86_mode_after): Ditto.
14382 (ix86_mode_entry): Ditto.
14383 (ix86_mode_exit): Ditto.
14384 (ix86_emit_mode_set): Ditto.
14385 * config/i386/i386.md (strmov_singleop): Set
14386 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
14387 Do not set ix86_current_function_needs_cld.
14389 (strset_singleop): Ditto.
14391 (cmpstrnqi_nz_1): Ditto.
14392 (cmpstrnqi_1): Ditto.
14393 (strlenqi_1): Ditto.
14395 2016-06-06 Jakub Jelinek <jakub@redhat.com>
14397 PR tree-optimization/71259
14398 * tree-vect-slp.c (vect_get_constant_vectors): For
14399 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
14400 one for constant op, and use COND_EXPR for non-constant.
14402 2016-06-06 David Malcolm <dmalcolm@redhat.com>
14404 * Makefile.in (OBJS): Add function-tests.o,
14405 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
14406 selftest-run-tests.o.
14407 (OBJS-libcommon): Add selftest.o.
14408 (OBJS-libcommon-target): Add selftest.o.
14409 (all.internal): Add "selftest".
14410 (all.cross): Likewise.
14411 (selftest): New phony target.
14412 (s-selftest): New target.
14413 (selftest-gdb): New phony target.
14414 (COLLECT2_OBJS): Add selftest.o.
14415 * bitmap.c: Include "selftest.h".
14416 (selftest::test_gc_alloc): New function.
14417 (selftest::test_set_range): New function.
14418 (selftest::test_clear_bit_in_middle): New function.
14419 (selftest::test_copying): New function.
14420 (selftest::test_bitmap_single_bit_set_p): New function.
14421 (selftest::bitmap_c_tests): New function.
14422 * common.opt (fself-test): New.
14423 * diagnostic-show-locus.c: Include "selftest.h".
14424 (make_range): New function.
14425 (test_range_contains_point_for_single_point): New function.
14426 (test_range_contains_point_for_single_line): New function.
14427 (test_range_contains_point_for_multiple_lines): New function.
14428 (assert_eq): New function.
14429 (test_get_line_width_without_trailing_whitespace): New function.
14430 (selftest::diagnostic_show_locus_c_tests): New function.
14431 * et-forest.c: Include "selftest.h".
14432 (selftest::test_single_node): New function.
14433 (selftest::test_simple_tree): New function.
14434 (selftest::test_disconnected_nodes): New function.
14435 (selftest::et_forest_c_tests): New function.
14436 * fold-const.c: Include "selftest.h".
14437 (selftest::assert_binop_folds_to_const): New function.
14438 (selftest::assert_binop_folds_to_nonlvalue): New function.
14439 (selftest::test_arithmetic_folding): New function.
14440 (selftest::fold_const_c_tests): New function.
14441 * function-tests.c: New file.
14442 * gimple.c: Include "selftest.h".
14443 Include "gimple-pretty-print.h".
14444 (selftest::verify_gimple_pp): New function.
14445 (selftest::test_assign_single): New function.
14446 (selftest::test_assign_binop): New function.
14447 (selftest::test_nop_stmt): New function.
14448 (selftest::test_return_stmt): New function.
14449 (selftest::test_return_without_value): New function.
14450 (selftest::gimple_c_tests): New function.
14451 * hash-map-tests.c: New file.
14452 * hash-set-tests.c: New file.
14453 * input.c: Include "selftest.h".
14454 (selftest::assert_loceq): New function.
14455 (selftest::test_accessing_ordinary_linemaps): New function.
14456 (selftest::test_unknown_location): New function.
14457 (selftest::test_builtins): New function.
14458 (selftest::test_reading_source_line): New function.
14459 (selftest::input_c_tests): New function.
14460 * rtl-tests.c: New file.
14461 * selftest-run-tests.c: New file.
14462 * selftest.c: New file.
14463 * selftest.h: New file.
14464 * spellcheck.c: Include "selftest.h".
14465 (selftest::levenshtein_distance_unit_test_oneway): New function,
14466 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
14467 (selftest::levenshtein_distance_unit_test): Likewise.
14468 (selftest::spellcheck_c_tests): Likewise.
14469 * toplev.c: Include selftest.h.
14470 (toplev::run_self_tests): New.
14471 (toplev::main): Handle -fself-test.
14472 * toplev.h (toplev::run_self_tests): New.
14473 * tree.c: Include "selftest.h".
14474 (selftest::test_integer_constants): New function.
14475 (selftest::test_identifiers): New function.
14476 (selftest::test_labels): New function.
14477 (selftest::tree_c_tests): New function.
14478 * tree-cfg.c: Include "selftest.h".
14479 (selftest::push_fndecl): New function.
14480 (selftest::test_linear_chain): New function.
14481 (selftest::test_diamond): New function.
14482 (selftest::test_fully_connected): New function.
14483 (selftest::tree_cfg_c_tests): New function.
14484 * vec.c: Include "selftest.h".
14485 (selftest::safe_push_range): New function.
14486 (selftest::test_quick_push): New function.
14487 (selftest::test_safe_push): New function.
14488 (selftest::test_truncate): New function.
14489 (selftest::test_safe_grow_cleared): New function.
14490 (selftest::test_pop): New function.
14491 (selftest::test_safe_insert): New function.
14492 (selftest::test_ordered_remove): New function.
14493 (selftest::test_unordered_remove): New function.
14494 (selftest::test_block_remove): New function.
14495 (selftest::reverse_cmp): New function.
14496 (selftest::test_qsort): New function.
14497 (selftest::vec_c_tests): New function.c.
14498 * wide-int.cc: Include selftest.h and wide-int-print.h.
14499 (selftest::from_int <wide_int>): New function.
14500 (selftest::from_int <offset_int>): New function.
14501 (selftest::from_int <widest_int>): New function.
14502 (selftest::assert_deceq): New function.
14503 (selftest::assert_hexeq): New function.
14504 (selftest::test_printing <VALUE_TYPE>): New function template.
14505 (selftest::test_ops <VALUE_TYPE>): New function template.
14506 (selftest::test_comparisons <VALUE_TYPE>): New function template.
14507 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
14509 (selftest::wide_int_cc_tests): New function.
14511 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14513 PR middle-end/37780
14514 * ifcvt.c (noce_try_ifelse_collapse): New function.
14516 (noce_process_if_block): Call noce_try_ifelse_collapse.
14517 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
14518 (simplify_ternary_operation): Use the above to simplify
14519 conditional CLZ/CTZ expressions.
14521 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14523 PR middle-end/37780
14524 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
14525 define_insn_and_split.
14527 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14529 PR middle-end/37780
14530 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
14532 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
14535 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
14536 Implicitly clobber memory for basic asm with non-empty assembler
14537 string. Use targetm.md_asm_adjust also here.
14538 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
14539 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
14540 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
14541 non-empty assembler string.
14542 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
14543 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
14544 (decode_asm_operands): Handle basic asm in PARALLEL block.
14545 (extract_insn): Handle basic asm in PARALLEL block.
14546 * doc/extend.texi: Mention new behavior of basic asm.
14547 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
14548 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
14549 branch_needs_nop_p): Use asm_noperands.
14551 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
14553 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
14554 Include the M7 SPARC DFA scheduler.
14555 New attribute v3pipe.
14556 Annotate insns with v3pipe where appropriate.
14557 Define cpu_feature vis4.
14558 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
14559 Add (V8QI "8") to vbits.
14560 Add insns {add,sub}v8qi3
14561 Add insns ss{add,sub}v8qi3
14562 Add insns us{add,sub}{v8qi,v4hi}3
14563 Add insns {min,max}{v8qi,v4hi,v2si}3
14564 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
14565 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
14566 * config/sparc/niagara4.md: Add a comment explaining the
14567 discrepancy between the documented latenty numbers and the
14569 * config/sparc/niagara7.md: New file.
14570 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
14571 supports SPARC5 and VIS 4.0 instructions.
14572 * configure: Regenerate.
14573 * config.in: Likewise.
14574 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
14575 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
14576 TARGET_CPU_niagara7.
14577 (ASM_CPU64_DEFAULT_SPEC): Likewise.
14578 (CPP_CPU_SPEC): Handle niagara7.
14579 (ASM_CPU_SPEC): Likewise.
14580 * config/sparc/sparc-opts.h (processor_type): Add
14581 PROCESSOR_NIAGARA7.
14582 (mvis4): New option.
14583 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
14584 (AS_NIAGARA7_FLAG): Define.
14585 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
14586 (CPP_CPU64_DEFAULT_SPEC): Likewise.
14587 (CPP_CPU_SPEC): Handle niagara7.
14588 (ASM_CPU_SPEC): Likewise.
14589 * config/sparc/sparc.c (niagara7_costs): Define.
14590 (sparc_option_override): Handle niagara7 and adjust cache-related
14591 parameters with better values for niagara cpus. Also support VIS4.
14592 (sparc32_initialize_trampoline): Likewise.
14593 (sparc_use_sched_lookahead): Likewise.
14594 (sparc_issue_rate): Likewise.
14595 (sparc_register_move_cost): Likewise.
14596 (dump_target_flag_bits): Support VIS4.
14597 (sparc_vis_init_builtins): Likewise.
14598 (sparc_builtins): Likewise.
14599 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
14601 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
14603 * config/sparc/sparc.opt (sparc_processor_type): New value
14605 * config/sparc/visintrin.h (__attribute__): Prototypes for the
14607 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
14609 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14612 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
14614 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
14616 2016-06-06 Richard Biener <rguenther@suse.de>
14618 PR tree-optimization/71398
14619 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
14622 2016-06-05 James Bowman <james.bowman@ftdichip.com>
14624 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
14625 ft32_expand_prolog, ft32_expand_epilogue):
14626 Handle pretend_args.
14627 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
14628 * config/ft32/ft32.md: Add pretend_returner.
14630 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
14633 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14634 Copy op1 RTX to avoid invalid sharing.
14635 (ix86_expand_vector_move_misalign): Ditto.
14637 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
14639 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
14642 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14644 * predict.c (predicted_by_loop_heuristics_p): New function.
14645 (predict_iv_comparison): Use it.
14646 (predict_loops): Walk from innermost loops; do not predict edges
14647 leaving multiple loops multiple times; implement
14648 PRED_LOOP_ITERATIONS_MAX heuristics.
14649 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
14651 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14653 * cfg.c (check_bb_profile): Do not report mismatched profiles when
14654 only edges out of BB are EH edges.
14656 2016-06-04 Martin Sebor <msebor@redhat.com>
14657 Marcin Baczyński <marbacz@gmail.com>
14660 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
14661 a void expression in a void function.
14663 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14665 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
14666 aux; dump reasons of decisions.
14667 (should_duplicate_loop_header_p): Likewise.
14668 (do_while_loop_p): Likewise.
14669 (ch_base::copy_headers): Dump asi num insns duplicated.
14671 2016-06-04 Jakub Jelinek <jakub@redhat.com>
14673 PR tree-optimization/71405
14674 * tree-ssa.c (execute_update_addresses_taken): For clobber with
14675 incompatible type, build a new clobber with the right type instead
14676 of building a VIEW_CONVERT_EXPR around it.
14678 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14680 PR tree-optimization/52171
14681 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
14682 by_pieces_ninsns instead of move_by_pieces_ninsns.
14684 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14686 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
14687 for reg+reg addressing mode.
14689 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14691 * rs6000-c.c (c/c-tree.h): Add #include.
14692 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
14693 in C++ when found in the base position of vec_ld or vec_st.
14695 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14697 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
14698 use of profile unless profile status is PROFILE_READ.
14699 * profile.c (compute_branch_probabilities): Set profile status
14700 only after reporting predictor hitrates.
14702 2016-06-03 Joseph Myers <joseph@codesourcery.com>
14706 * common.opt (ffp-int-builtin-inexact): New option.
14707 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14708 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
14709 (ceil@var{m}2): Document dependence on this option.
14710 * ipa-inline-transform.c (inline_call): Handle
14711 flag_fp_int_builtin_inexact.
14712 * ipa-inline.c (can_inline_edge_p): Likewise.
14713 * config/i386/i386.md (rintxf2): Do not test
14714 flag_unsafe_math_optimizations.
14715 (rint<mode>2_frndint): New define_insn.
14716 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
14717 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
14718 for 387 instead of extending and truncating.
14719 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
14720 !flag_trapping_math instead of flag_unsafe_math_optimizations.
14721 Change to frndint<mode>2_<rounding>.
14722 (frndintxf2_<rounding>_i387): Likewise. Change to
14723 frndint<mode>2_<rounding>_i387.
14724 (<rounding_insn>xf2): Likewise.
14725 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
14726 !flag_trapping_math instead of flag_unsafe_math_optimizations for
14727 x87. Test TARGET_ROUND || !flag_trapping_math ||
14728 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
14729 SSE. Use ROUND_NO_EXC in constant operand of
14730 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
14731 for 387 instead of extending and truncating.
14733 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
14734 Julia Koval <julia.koval@intel.com>
14746 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
14747 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
14748 all registers, except for function return registers if there are
14749 no caller-saved registers.
14750 (ix86_set_func_type): New function.
14751 (ix86_set_current_function): Call ix86_set_func_type to set
14752 no_caller_saved_registers and func_type. Call reinit_regs if
14753 caller-saved registers are changed. Don't allow MPX, SSE, MMX
14754 nor x87 instructions in interrupt handler nor function with
14755 no_caller_saved_registers attribute.
14756 (ix86_function_ok_for_sibcall): Return false if there are no
14757 caller-saved registers.
14758 (type_natural_mode): Don't warn ABI change for MMX in interrupt
14760 (ix86_function_arg_advance): Skip for callee in interrupt handler.
14761 (ix86_function_arg): Return special arguments in interrupt handler.
14762 (ix86_promote_function_mode): Promote pointer to word_mode only
14763 for normal functions.
14764 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
14766 (ix86_epilogue_uses): New function.
14767 (ix86_hard_regno_scratch_ok): Likewise.
14768 (ix86_save_reg): Preserve all registers in interrupt handler
14769 after reload. Preserve all registers, except for function return
14770 registers, if there are no caller-saved registers after reload.
14771 (find_drap_reg): Always use callee-saved register if there are
14772 no caller-saved registers.
14773 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
14774 for interrupt handler.
14775 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
14776 Emit cld instruction if stringops are used in interrupt handler
14777 or interrupt handler isn't a leaf function.
14778 (ix86_expand_epilogue): Generate interrupt return for interrupt
14779 handler and pop the 'ERROR_CODE' off the stack before interrupt
14780 return in exception handler.
14781 (ix86_expand_call): Disallow calling interrupt handler directly.
14782 If there are no caller-saved registers, mark all registers that
14783 are clobbered by the call which returns as clobbered.
14784 (ix86_handle_no_caller_saved_registers_attribute): New function.
14785 (ix86_handle_interrupt_attribute): Likewise.
14786 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
14788 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
14789 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
14790 accumulation in interrupt function if stack may be realigned to
14792 (EPILOGUE_USES): New.
14793 (function_type): New enum.
14794 (machine_function): Add func_type and no_caller_saved_registers.
14795 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
14796 (interrupt_return): New pattern.
14797 * doc/extend.texi: Document x86 interrupt and
14798 no_caller_saved_registers attributes.
14800 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
14802 PR tree-optimization/52171
14803 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
14804 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
14805 Look for constant strings. Move some code to emit_block_cmp_hints
14807 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
14808 * defaults.h (COMPARE_MAX_PIECES): New macro.
14809 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
14810 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
14811 (clear_by_pieces_1): Don't declare. Move definition before use.
14812 (can_do_by_pieces): New static function.
14813 (can_move_by_pieces): Use it. Return bool.
14814 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
14815 OP. All callers changed. Handle COMPARE_BY_PIECES.
14816 (class pieces_addr); New.
14817 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
14818 pieces_addr::adjust, pieces_addr::increment_address,
14819 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
14821 (class op_by_pieces_d): New.
14822 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
14824 (class move_by_pieces_d, class compare_by_pieces_d,
14825 class store_by_pieces_d): New subclasses of op_by_pieces_d.
14826 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
14827 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
14828 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
14829 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
14830 compare_by_pieces_d::finish_mode): New member functions.
14831 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
14833 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
14834 (emit_block_cmp_hints): New function.
14835 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
14836 use the newly defined classes.
14837 * expr.h (by_pieces_constfn): New typedef.
14838 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
14839 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
14840 (move_by_pieces_ninsns): Don't declare.
14841 (can_move_by_pieces): Change return value to bool.
14842 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
14843 (compare_by_pieces_branch_ratio): New hook.
14844 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
14845 (by_pieces_ninsns): Declare.
14846 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
14848 (default_compare_by_pieces_branch_ratio): New function.
14849 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
14850 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
14851 * doc/tm.texi: Regenerate.
14852 * tree-ssa-strlen.c: Include "builtins.h".
14853 (handle_builtin_memcmp): New static function.
14854 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
14855 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
14857 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14859 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
14860 relevant stmts which are simple and invariant.
14861 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
14862 instead of simple and invariant
14864 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14866 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
14867 (vectorizable_reduction): Check for new relevant state.
14868 (vectorizable_live_operation): vectorize live stmts using
14869 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
14870 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
14871 (vect_stmt_relevant_p): Check for stmts which are only used live.
14872 (process_use): Use of a stmt does not inherit it's live value.
14873 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
14874 (vect_analyze_stmt): Check for new relevant state.
14875 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
14876 outside the loop, but not inside it.
14878 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14880 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
14881 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
14882 (vect_get_vec_def_for_operand): Split out code.
14884 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14886 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
14888 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14890 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
14892 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14894 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
14896 2016-06-03 Jakub Jelinek <jakub@redhat.com>
14898 PR middle-end/71387
14899 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
14900 to noreturn e->callee->decl that has void return type and void
14901 arguments, adjust gimple_call_fntype and remove lhs even if it had
14902 previously addressable type.
14904 2016-06-02 Jeff Law <law@redhat.com>
14906 PR tree-optimization/71328
14907 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
14908 error when checking for a jump back onto the copied path.
14910 2016-06-02 David Malcolm <dmalcolm@redhat.com>
14912 * config/microblaze/microblaze.c (get_branch_target): Add return
14913 NULL_RTX for the non-CALL_P case.
14914 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
14915 (insert_wic): Remove unused local "j".
14917 2016-06-02 Martin Liska <mliska@suse.cz>
14919 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
14921 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
14922 Julia Koval <julia.koval@intel.com>
14924 * function.c (assign_parm_setup_stack): Force source into a
14925 register if needed.
14926 * target.def (function_incoming_arg): Update documentation to
14927 allow arbitrary address computation based on hard register.
14928 * doc/tm.texi: Regenerated.
14930 2016-06-02 Martin Liska <mliska@suse.cz>
14932 * predict.c (combine_predictions_for_bb): Fix first match in
14933 cases where a first predictor contains more than one occurence
14934 in list of predictors. Take the best value in such case.
14936 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14938 PR rtl-optimization/71295
14939 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
14940 offset would go over the size of the inner mode reject it.
14942 2016-06-02 Jakub Jelinek <jakub@redhat.com>
14944 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
14945 x=x,x and v=v,m instead of x=x,m.
14947 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
14948 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
14949 alternative to v=rm,C.
14951 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
14952 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
14953 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
14954 instead of vex for the last two above mentioned alternatives.
14956 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14959 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
14961 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
14963 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
14965 2016-06-01 David Malcolm <dmalcolm@redhat.com>
14967 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
14968 from int to unsigned.
14970 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14972 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
14973 alternatives, eliminating preferred register class. Add support
14974 for the MTVSRDD instruction in ISA 3.0.
14975 (vsx_splat_v4si_internal): Use splat_input_operand instead of
14976 reg_or_indexed_operand.
14977 (vsx_splat_v4sf_internal): Likewise.
14979 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14982 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
14983 for loading up all 0's or all 1's.
14985 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
14987 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
14989 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
14991 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
14993 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
14994 * gcc.c (set_source_date_epoch_envvar): New function, sets
14995 the SOURCE_DATE_EPOCH environment variable to the current time.
14997 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
14999 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
15000 the factor for live Phi nodes.
15002 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
15004 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
15005 * tree-parloops.c (parallelize_loops): likewise.
15006 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
15007 tree_unswitch_outer_loop): likewise.
15009 2016-06-01 Jakub Jelinek <jakub@redhat.com>
15011 PR middle-end/71371
15012 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
15013 around creation of the temporary.
15015 2016-06-01 Richard Biener <rguenther@suse.de>
15017 PR tree-optimization/71366
15018 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
15019 (unloop_loops): Move removing edges here ...
15020 (try_unroll_loop_completely): ... from here.
15021 (try_peel_loop): ... and here.
15022 (tree_unroll_loops_completely_1): Track parent loops via
15023 bitmap of header BBs.
15024 (tree_unroll_loops_completely): Adjust for that.
15026 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15028 * config/rs6000/altivec.h (vec_slv): New macro.
15029 (vec_srv): New macro.
15030 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
15031 (UNSPEC_VSRV): New value.
15034 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
15035 (vsrv): New builtin definition.
15036 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
15037 define argument types for new builtin.
15038 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
15040 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
15043 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
15044 Jocelyn Mayer <l_indien@magic.fr>
15047 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
15048 detect processor family for signature_CENTAUR_ebx.
15049 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
15050 signature_CENTAUR_ebx.
15051 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
15052 <default>: Pass x86-64 for has_longmode.
15054 2016-06-01 Nathan Sidwell <nathan@acm.org>
15056 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
15059 2016-06-01 Richard Biener <rguenther@suse.de>
15061 PR tree-optimization/71261
15062 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
15063 of stmts successfully put in the bool pattern. Remove
15064 single-use restriction.
15065 (adjust_bool_pattern_cast): Add cast at the use site via the
15066 pattern def sequence.
15067 (adjust_bool_pattern): Remove recursion, maintain a hash-map
15068 of patterned defs. Use the pattern def seqence instead of
15069 multiple independent patterns.
15070 (sort_after_uid): New qsort compare function.
15071 (adjust_bool_stmts): New function to process stmts in the bool
15072 pattern in IL order.
15073 (vect_recog_bool_pattern): Adjust.
15074 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
15075 (ifcvt_walk_pattern_tree): Likewise.
15076 (stmt_is_root_of_bool_pattern): Likewise.
15077 (ifcvt_repair_bool_pattern): Likewise.
15078 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
15080 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
15082 * loop-unroll.c (decide_unroll_constant_iterations,
15083 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
15084 likely upper bounds.
15085 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
15087 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
15089 * tree-core.h (enum omp_clause_code): Remove
15090 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
15092 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15094 * config/arm/sync.md (arm_store_exclusive<mode>):
15095 Use 'H' output modifier on operands[2] rather than creating a new
15096 entry in out-of-bounds memory of the operands array.
15097 (arm_store_release_exclusivedi): Likewise.
15099 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15101 * config/arm/arm.c (arm_fusion_enabled_p): New function.
15102 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
15103 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
15104 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15106 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
15108 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
15109 into account live statements for mask producers.
15111 2016-06-01 Richard Biener <rguenther@suse.de>
15113 PR tree-optimization/71311
15114 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
15115 restrict to non-INTEGER_CST @0.
15117 2016-06-01 Richard Biener <rguenther@suse.de>
15119 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
15120 (relational patterns): Use :c to avoid pattern duplications.
15122 2016-06-01 Richard Biener <rguenther@suse.de>
15124 * genmatch.c (comparison_code_p): New predicate.
15125 (swap_tree_comparison): New function.
15126 (commutate): Add for_vec parameter to append new for entries.
15127 Support commutating relational operators by swapping it alongside
15129 (lower_commutative): Adjust.
15130 (dt_simplify::gen): Do not pass artificial operators to gen
15132 (decision_tree::gen): Do not add artificial operators as parameters.
15133 (parser::parse_expr): Verify operator commutativity when :c is
15134 applied. Allow :C to override this.
15135 * match.pd: Adjust patterns to use :C instead of :c where required.
15137 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
15139 PR tree-optimization/71077
15140 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
15141 the combining step, use boolean_false_node and boolean_true_node
15142 as the designated false/true return values.
15144 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15146 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
15147 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
15148 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
15151 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15153 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
15154 of flags impliying the register renaming.
15155 * toplev.c (process_options): Do not imply flag_rename_registers with
15158 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15160 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
15161 default implementation.
15163 2016-05-31 Nathan Sidwell <nathan@acm.org>
15165 * dwarf2out.c (cur_line_info_table): Add GTY marker.
15167 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15169 * config/sh/constraints.md (b): Remove constraint.
15170 * config/sh/predicates.md (arith_reg_operand): Remove
15172 * config/sh/sh-modes.def (PDI): Remove.
15173 * config/sh/sh.c (sh_target_reg_class,
15174 sh_optimize_target_register_callee_saved): Remove functions.
15175 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
15176 (sh_expand_epilogue): Update comment.
15177 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
15178 sh_secondary_reload): Remove TARGET_REGS related code.
15179 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
15180 TARGET_REGISTER_P): Remove macros.
15181 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
15182 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
15183 TR1_REG, TR2_REG): Remove constants.
15184 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
15186 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15188 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
15189 define_expand patterns.
15190 (adddi3_compact): Rename to adddi3.
15191 (subdi3_compact): Rename to subdi3.
15192 (*negdi2): Rename to negdi2.
15193 (*abs<mode>2): Rename to abs<mode>2.
15195 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15197 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
15198 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
15199 (atomic_sub_fetchsi): ... this new pattern.
15200 (mvtc): Add CC_REG clobber.
15202 2016-05-31 Marek Polacek <polacek@redhat.com>
15204 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
15206 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15208 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
15209 aarch64_fusion_enabled_p to check for fusion capabilities.
15211 2016-05-31 Richard Biener <rguenther@suse.de>
15213 PR tree-optimization/71352
15214 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
15215 minus one and a negate.
15217 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15219 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
15220 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
15222 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
15223 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
15224 Remove use of aarch64_simd_attr_length_move, set length attribute
15226 (*aarch64_be_movoi): Likewise.
15227 (*aarch64_be_movci): Likewise.
15228 (*aarch64_be_movxi): Likewise.
15230 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15232 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
15233 It no longer does that.
15234 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
15236 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
15238 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
15239 attribute __unused__.
15241 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
15243 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
15244 * config/arm/arm.c (arm_arch_thumb1): Define.
15245 (arm_option_override): Initialize arm_arch_thumb1.
15246 * config/arm/arm.h (arm_arch_thumb1): Declare.
15247 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
15248 support Thumb-1 ISA.
15250 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
15253 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
15254 `Yv' for scalar operand.
15256 2016-05-31 Tom de Vries <tom@codesourcery.com>
15258 PR tree-optimization/69068
15259 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
15260 phis with more than two args.
15262 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
15264 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
15265 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
15268 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
15270 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
15272 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
15274 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
15275 cpu_32, cpu_64, tune_32 and tune_64.
15276 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
15278 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
15280 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
15282 2016-05-30 Andi Kleen <ak@linux.intel.com>
15284 * auto-profile.c (read_profile): Replace asserts with errors
15285 when file does not exist.
15286 * gcov-io.c (gcov_read_words): Dito.
15288 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15290 * tree-cfg.c (print_loop): Print likely upper bounds.
15292 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15294 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
15295 * opts.c (default_options): Enable peel loops at -O3.
15296 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
15297 (try_peel_loop): Do not re-peel already peeled loops;
15298 use likely upper bounds; fix profile updating.
15299 (pass_complete_unroll::execute): Initialize peeled_loops.
15301 2016-05-30 Martin Liska <mliska@suse.cz>
15303 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
15304 computed costs by frequency of BB they belong to.
15305 (get_scaled_computation_cost_at): New function.
15307 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
15308 Marc Glisse <marc.glisse@inria.fr>
15310 PR tree-optimization/71289
15311 * match.pd (-1 / B < A, A > -1 / B): New transformations.
15313 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15315 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
15317 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15319 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
15320 for peeled copies; avoid underflow when updating estimates; correctly
15321 scale loop profile.
15323 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15325 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
15326 r236875. Corrected oe3 to oe2 as obvious.
15328 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15330 PR middle-end/71269
15331 PR middle-end/71252
15332 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
15333 that inserted stmt will not dominate stmts that defines its operand.
15334 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
15335 (rewrite_expr_tree_parallel): Likewise.
15337 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15339 PR middle-end/71252
15340 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
15341 all fields including stmt_to_insert are swapped.
15343 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15345 * predict.h (force_edge_cold): Declare.
15346 * predict.c (force_edge_cold): New function.
15347 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
15349 (canonicalize_loop_induction_variables): Fix formating.
15351 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
15353 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
15354 (visium_expand_copysign): Use gen_int_mode directly.
15355 (visium_compute_frame_size): Minor tweaks.
15357 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15359 * tree-vect-loop.c (vect_analyze_loop_2): Use
15360 likely_max_stmt_executions_int.
15362 2016-05-30 Tom de Vries <tom@codesourcery.com>
15364 PR tree-optimization/69067
15365 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
15367 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
15370 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
15371 New peepholes to remove unneeded fild/fistp pairs.
15372 (define_peephole2 atomic_loaddi_fpu): Ditto.
15374 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15376 * predict.c (maybe_hot_frequency_p): Avoid division.
15378 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
15380 * doc/install.texi: Use https for shop.fsf.org.
15382 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15384 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
15385 likely_max_stmt_executions_int.
15387 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15389 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
15390 likely_max_stmt_executions_int.
15392 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15394 * profile.c (compute_branch_probabilities): Do not report hitrates
15396 (branch_prob): Report hitrates here.
15397 * predict.c (gimple_predict_edge): Do not assert profile status;
15398 fix formatting issues.
15400 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15402 * predict.c (edge_predicted_by_p): New function.
15403 (predict_paths_for_bb): Do not put multiple predictions of the same type
15406 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15408 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
15411 2016-05-28 Alan Modra <amodra@gmail.com>
15413 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
15415 2016-05-28 Alan Modra <amodra@gmail.com>
15417 PR rtl-optimization/71275
15418 * ira.c (ira): Free dominance info.
15420 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
15422 * doc/sourcebuild.texi: New address for upstream Go repository.
15424 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15426 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
15427 (TARGET_ARM_V7M): Likewise.
15429 2016-05-26 Jeff Law <law@redhat.com>
15431 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
15432 (thread_across_edge): Remove calls to find_jump_threads_backwards.
15433 * passes.def: Add jump threading passes before DOM/VRP.
15434 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
15435 argument to a basic block from an edge. Remove tests which are
15437 (pass_data_thread_jumps, class pass_thread_jumps): New.
15438 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
15439 (make_pass_thread_jumps): Likewise.
15440 * tree-pass.h (make_pass_thread_jumps): Declare.
15442 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
15444 * config/visium/visium-protos.h (split_double_move): Rename into...
15445 (visium_split_double_move): ...this.
15446 (visium_split_double_add): Declare.
15447 * config/visium/visium.c (split_double_move): Rename into...
15448 (visium_split_double_move): ...this.
15449 (visium_split_double_add): New function.
15450 (visium_expand_copysign): Renumber operands for consistency.
15451 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
15452 (DFmode move splitter): Likewise.
15453 (*addi3_insn): Split by means of visium_split_double_add.
15454 (*adddi3_insn_flags): Delete.
15455 (*plus_plus_sltu<subst_arith>): New insn.
15456 (*subdi3_insn): Split by means of visium_split_double_add.
15457 (subdi3_insn_flags): Delete.
15458 (*minus_minus_sltu<subst_arith>): New insn.
15459 (*negdi2_insn): Split by means of visium_split_double_add.
15460 (*negdi2_insn_flags): Delete.
15462 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
15464 * configure.ac: Treat a --with-headers option without argument
15465 the same as the default (i.e. consult sys-include directory).
15466 * configure: Regenerate.
15468 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15470 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
15471 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
15473 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
15474 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15476 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15479 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
15480 tree-stdarg analysis results.
15481 (aarch64_setup_incoming_varargs): Likewise.
15483 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15485 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
15486 va_list_gpr_counter_field and va_list_fpr_counter_field.
15488 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
15491 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
15492 * config/aarch64/aarch64.c
15493 (aarch64_cannot_change_mode_class): Remove function.
15494 * config/aarch64/aarch64-protos.h
15495 (aarch64_cannot_change_mode_class): Remove.
15497 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15499 * cfgloop.c (record_niter_bound): Record likely upper bounds.
15500 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
15501 get_likely_max_loop_iterations_int): New.
15502 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
15503 any_likely_upper_bound.
15504 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
15506 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
15507 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
15509 (unroll_loop_constant_iterations): Likewise.
15510 (unroll_loop_runtime_iterations): Likewise.
15511 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
15512 * lto-streamer-out.c (output_cfg): Likewise.
15513 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
15515 (canonicalize_loop_induction_variables): Dump likely upper bounds.
15516 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
15517 (likely_max_loop_iterations): New.
15518 (likely_max_loop_iterations_int): New.
15519 (likely_max_stmt_executions): New.
15520 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
15521 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
15522 likely_max_stmt_executions): Declare.
15524 2016-05-27 Marek Polacek <polacek@redhat.com>
15526 PR middle-end/71308
15527 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
15529 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15531 * config/s390/s390.md (2x risbg splitters): Use
15532 reg_overlap_mentioned_p instead of rtx_equal_p.
15534 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15536 * combine.c (make_compound_operation): Take known zero bits into
15537 account when checking for possible zero_extend.
15539 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15541 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
15542 Use const_int_operand for operand 2 predicate. Simplify expand code
15545 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
15547 PR middle-end/71279
15548 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
15551 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15553 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
15554 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
15555 that returns CC_SESWPmode and CC_ZESWPmode.
15556 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
15558 (aarch64_rtx_costs): Likewise.
15560 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15562 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
15563 for ISA 3.0 min/max support.
15564 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
15565 conditional move support.
15566 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
15567 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
15569 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
15570 conditional moves where the comparison type is different from move
15572 (fp_minmax): New code iterator for smin/smax.
15573 (minmax): New code attributes for min/max.
15574 (SMINMAX): Likewise.
15575 (smax<mode>3): Combine min, max insns into one insn using the
15576 fp_minmax code iterator. Add support for ISA 3.0 min/max
15577 instructions that don't need -ffast-math.
15578 (s<minmax><mode>3): Likewise.
15579 (smax<mode>3_vsx): Likewise.
15580 (smin<mode>3): Likewise.
15581 (s<minmax><mode>3_vsx): Likewise.
15582 (smin<mode>3_vsx): Likewise.
15583 (pre-VSX min/max splitters): Likewise.
15584 (s<minmax><mode>3_fpr): Likewise.
15585 (movsfcc): Rewrite floating point conditional moves to combine
15586 SFmode/DFmode into a single insn.
15587 (mov<mode>cc): Likewise.
15588 (movdfcc): Likewise.
15589 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
15590 SFDF2 iterators to handle all combinations.
15591 (fseldfsf4): Likewise.
15592 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
15593 (fseldfdf4): Likewise.
15594 (fselsfdf4): Likewise.
15595 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
15596 comparison instructions that set a 0/-1 mask, and use it for
15597 floating point conditional move via XXSEL.
15598 (fpmask<mode>): Likewise.
15599 (xxsel<mode>): Likewise.
15600 * config/rs6000/predicates.md (min_max_operator): Delete, no
15602 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
15603 instructions that generate a 0/-1 mask for use with XXSEL.
15604 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
15605 say whether floating point min/max is available, either through
15606 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
15607 (TARGET_MINMAX_DF): Likewise.
15609 2016-05-27 Alan Modra <amodra@gmail.com>
15611 PR rtl-optimization/71275
15612 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
15613 for update_equiv_regs and combine_and_move_insns.
15615 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
15617 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
15618 if_then_else or cond RTXes to calculate attribute value.
15619 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
15620 <attr "length_immediate>: Ditto.
15621 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
15622 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
15623 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
15624 <attr "type">: Ditto.
15625 <attr "prefix_data16">: Ditto.
15626 <attr "prefix_extra">: Ditto.
15627 <attr "length_immediate">: Ditto.
15628 <attr "prefix">: Ditto.
15629 (vec_set<mode>_0) <attr "isa">: Ditto.
15630 <attr "prefix_extra">: Ditto.
15631 <attr "length_immediate">: Ditto.
15632 <attr "prefix">: Ditto.
15633 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
15634 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
15635 (sse2_storelpd) <attr "prefix_data16">: Ditto.
15636 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
15637 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
15638 <attr "length_immediate">: Ditto.
15639 <attr "prefix">: Ditto.
15640 (sse2_movsd) <attr "length_immediate">: Ditto.
15641 <attr "prefix">: Ditto.
15642 (vec_concatv2df) <attr "isa">: Ditto.
15643 <attr "prefix">: Ditto.
15644 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
15645 (*vec_extractv2di_1) <attr "isa">: Ditto.
15646 <attr "type">: Ditto.
15647 <attr "length_immediate">: Ditto.
15648 <attr "prefix_rex">: Ditto.
15649 <attr "prefix_extra">: Ditto.
15650 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
15651 <attr "prefix_extra">: Ditto.
15652 <attr "length_immediate">: Ditto.
15653 (vec_concatv2di) <attr "isa">: Ditto.
15654 <attr "prefix_extra">: Ditto.
15655 <attr "length_immediate">: Ditto.
15656 <attr "prefix">: Ditto.
15658 2016-05-26 Martin Liska <mliska@suse.cz>
15660 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
15662 (operator+): Likewise.
15663 (operator-): Likewise.
15664 (comp_cost::operator+=): Likewise.
15665 (comp_cost::operator-=): Likewise.
15666 (comp_cost::operator/=): Likewise.
15667 (comp_cost::operator*=): Likewise.
15668 (operator<): Likewise.
15669 (operator==): Likewise.
15670 (operator<=): Likewise.
15671 (new_cost): Remove.
15672 (infinite_cost_p): Likewise.
15673 (add_costs): Likewise.
15674 (sub_costs): Likewise.
15675 (compare_costs): Likewise.
15676 (set_group_iv_cost): Use the newly introduced functions.
15677 (get_address_cost): Likewise.
15678 (get_shiftadd_cost): Likewise.
15679 (force_expr_to_var_cost): Likewise.
15680 (split_address_cost): Likewise.
15681 (ptr_difference_cost): Likewise.
15682 (difference_cost): Likewise.
15683 (get_computation_cost_at): Likewise.
15684 (determine_group_iv_cost_generic): Likewise.
15685 (determine_group_iv_cost_address): Likewise.
15686 (determine_group_iv_cost_cond): Likewise.
15687 (autoinc_possible_for_pair): Likewise.
15688 (determine_group_iv_costs): Likewise.
15689 (cheaper_cost_pair): Likewise.
15690 (iv_ca_recount_cost): Likewise.
15691 (iv_ca_set_no_cp): Likewise.
15692 (iv_ca_set_cp): Likewise.
15693 (iv_ca_cost): Likewise.
15694 (iv_ca_new): Likewise.
15695 (iv_ca_dump): Likewise.
15696 (iv_ca_narrow): Likewise.
15697 (iv_ca_prune): Likewise.
15698 (iv_ca_replace): Likewise.
15699 (try_add_cand_for): Likewise.
15700 (try_improve_iv_set): Likewise.
15701 (find_optimal_iv_set): Likewise.
15703 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
15705 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
15706 that internal functions will clobber all caller-saved registers.
15708 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15710 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
15711 Return a better case_values_threshold when optimizing.
15713 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15715 * config/aarch64/aarch64-simd.md (aarch64_combinez):
15716 Add ? to integer variant.
15717 (aarch64_combinez_be): Likewise.
15719 2016-05-26 Jakub Jelinek <jakub@redhat.com>
15721 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15722 instead of x constraint.
15723 (vcvtps2ph256<mask_name>): Likewise.
15725 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
15726 alternative. Formatting fix.
15728 * config/i386/sse.md
15729 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
15731 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
15732 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
15733 maybe_evex prefix instead of vex.
15734 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
15735 EXT_REX_SSE_REG_P (op0) case in the splitter.
15737 2016-05-25 Jeff Law <law@redhat.com>
15739 PR tree-optimization/71272
15740 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
15741 Update comments. Add test for empty path.
15743 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15745 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
15746 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
15747 special case builtin.
15748 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15749 code for ALTIVEC_BUILTIN_VEC_CMPNE.
15750 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15751 for __builtin_vec_cmpne.
15753 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
15755 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
15756 redundant test and bail out if the type of the new operand is not
15757 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
15759 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15761 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
15762 (x_ix86_target_flags_explicit): Remove.
15763 * config/i386/i386.c (ix86_function_specific_save): Do not copy
15764 x_ix86_target_flags_explicit.
15765 (ix86_function_specific_restore): Ditto.
15767 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15768 H.J. Lu <hongjiu.lu@intel.com>
15771 * common/config/i386/i386-common.c
15772 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
15773 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
15774 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
15775 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
15776 (-mgeneral-regs-only): Add new option.
15777 * config/i386/i386.c (ix86_option_override_internal): Don't enable
15778 x87 instructions if only general registers are allowed.
15779 (ix86_target_string): Add ix86_flags argument. Handle additional
15780 flags options through ix86_flags argument. Update all callers.
15781 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
15783 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15785 PR rtl-optimization/66940
15786 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
15787 decrementing desired_val will not overflow before performing these
15790 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
15792 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
15793 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
15794 * config/i386/i386.c (enum ix86_builtins): Add
15795 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
15796 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
15797 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
15798 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
15799 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
15800 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
15801 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
15802 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
15803 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
15804 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
15805 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
15806 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
15807 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
15808 __builtin_ia32_cvtps2dq512_mask.
15809 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
15810 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
15811 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
15812 * config/i386/sse.md
15813 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
15815 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
15816 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
15818 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
15819 (avx512f_vec_pack_sfix_v8df): New define_expand.
15820 (avx512f_roundpd512): Rename to ...
15821 (avx512f_round<castmode>512): ... this. Change iterator.
15822 (avx512f_roundps512_sfix): New define_expand.
15823 (round<mode>2_sfix): Change iterator.
15825 2016-05-25 Nick Clifton <nickc@redhat.com>
15827 * config/msp430/msp430.c (msp430_attr): Produce an error if a
15828 static interrupt handler is detected.
15829 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
15830 default linker script.
15831 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
15832 the low part of a symbolic pointer.
15834 2016-05-25 Richard Biener <rguenther@suse.de>
15836 PR tree-optimization/71261
15837 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
15838 interesting stmt instead of immediate uses when looking
15839 for the use operand to replace.
15841 2016-05-25 Martin Liska <mliska@suse.cz>
15843 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
15845 2016-05-25 Richard Biener <rguenther@suse.de>
15847 PR tree-optimization/71264
15848 * tree-vect-stmts.c (vect_init_vector): Properly deal with
15851 2016-05-25 Martin Liska <mliska@suse.cz>
15853 PR tree-optimization/71239
15854 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
15855 if DECL_SIZE is NULL.
15857 2016-05-25 Richard Biener <rguenther@suse.de>
15859 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
15860 * tree-if-conv.c (pass_data_if_conversion): Use it.
15862 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
15864 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
15865 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
15866 * varpool.c (varpool_node::get_availability): Likewise.
15868 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15870 * config/rs6000/altivec.md (VNEG iterator): New iterator for
15871 VNEGW/VNEGD instructions.
15872 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
15873 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
15874 support for ISA 3.0 VNEGW/VNEGD instructions.
15876 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
15878 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
15879 pointers inside OACC_DATA regions.
15880 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
15881 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
15882 (gimplify_adjust_omp_clauses): Fix typo in comment.
15884 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15886 * config/rs6000/altivec.md (VParity): New mode iterator for vector
15887 parity built-in functions.
15888 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
15890 (p9v_parity<mode>2): Likewise.
15891 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
15893 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
15894 (parity<mode>2): ISA 3.0 expander for vector parity.
15895 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
15897 (BU_P9_64BIT_MISC_0): Likewise.
15898 (BU_P9_MISC_0): Likewise.
15899 (BU_P9V_AV_1): Likewise.
15900 (BU_P9V_AV_2): Likewise.
15901 (BU_P9V_AV_3): Likewise.
15902 (BU_P9V_AV_P): Likewise.
15903 (BU_P9V_VSX_1): Likewise.
15904 (BU_P9V_OVERLOAD_1): Likewise.
15905 (BU_P9V_OVERLOAD_2): Likewise.
15906 (BU_P9V_OVERLOAD_3): Likewise.
15907 (VCTZB): Add vector count trailing zeros support.
15911 (VPRTYBD): Add vector parity support.
15912 (VPRTYBQ): Likewise.
15913 (VPRTYBW): Likewise.
15914 (VCTZ): Add overloaded vector count trailing zeros support.
15915 (VPRTYB): Add overloaded vector parity support.
15916 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15917 overloaded vector count trailing zeros and parity instructions.
15918 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
15919 vector parity support.
15920 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
15921 trailing zeros support.
15922 (vec_cntlz): Likewise.
15923 (vec_vctzb): Likewise.
15924 (vec_vctzd): Likewise.
15925 (vec_vctzh): Likewise.
15926 (vec_vctzw): Likewise.
15927 (vec_vprtyb): Add ISA 3.0 vector parity support.
15928 (vec_vprtybd): Likewise.
15929 (vec_vprtybw): Likewise.
15930 (vec_vprtybq): Likewise.
15931 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15932 the ISA 3.0 vector count trailing zeros and vector parity built-in
15935 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15937 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
15938 when there is stmt_to_insert.
15940 2016-05-24 Martin Sebor <msebor@redhat.com>
15943 * tree.h (complete_or_array_type_p): New inline function.
15945 2016-05-24 Jakub Jelinek <jakub@redhat.com>
15947 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
15948 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
15949 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
15951 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
15952 Limit 1st alternative to noavx isa, split 2nd alternative into one
15953 noavx and one avx alternative, use *x and Bm in the former and
15954 x and m in the latter.
15956 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
15957 of sse4 for the first alternative, drop %v from the template
15958 and d operand modifier. Split second alternative into one sse4_noavx
15959 and one avx alternative, use *x instead of *v in the former and v
15960 instead of *v in the latter.
15961 (*sse4_1_extractps): Use noavx isa instead of * for the first
15962 alternative, drop %v from the template. Split second alternative into
15963 one noavx and one avx alternative, use *x instead of *v in the
15964 former and v instead of *v in the latter.
15965 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
15966 with noavx and the last one with avx.
15967 (sse4_1_phminposuw): Guard first alternative with noavx isa,
15968 split the second one into one noavx and one avx alternative,
15969 use *x and Bm in the former and x and m in the latter one.
15970 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
15973 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
15974 first two alternatives to noavx, use *x instead of *v in the second
15975 one, add avx alternative without *.
15976 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
15977 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
15978 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
15980 2016-05-24 Jeff Law <law@redhat.com>
15982 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
15983 New function, extracted from...
15984 (fsm_find_control_statement_thread_paths): Here. Use the new function.
15985 Allow simple copies and constant initializations in the SSA chain.
15987 2016-05-24 Marek Polacek <polacek@redhat.com>
15990 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
15993 2016-05-24 Jakub Jelinek <jakub@redhat.com>
15996 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
15997 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
15998 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
15999 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
16000 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
16002 2016-05-24 Richard Biener <rguenther@suse.de>
16004 PR tree-optimization/71240
16005 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
16008 2016-05-24 Richard Biener <rguenther@suse.de>
16010 PR tree-optimization/71230
16011 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
16013 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16015 * tree-vectorizer.h (vectorizable_comparison): Delete.
16016 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
16017 PURE_SLP_STMT check.
16018 * tree-vect-stmts.c (vectorizable_call): Likewise.
16019 (vectorizable_simd_clone_call): Likewise.
16020 (vectorizable_conversion): Likewise.
16021 (vectorizable_assignment): Likewise.
16022 (vectorizable_shift): Likewise.
16023 (vectorizable_operation): Likewise.
16024 (vectorizable_load): Likewise.
16025 (vectorizable_condition): Likewise.
16026 (vectorizable_store): Likewise. Assert that we don't have
16028 (vectorizable_comparison): Make static. Remove redundant
16029 PURE_SLP_STMT check.
16030 (vect_transform_stmt): Assert that we always have an slp_node
16033 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16035 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
16036 operands[2] against 1 with comparison against CONST1_RTX.
16037 (<shift>di3_neon): Likewise.
16038 * config/arm/predicates.md (const0_operand): Replace with comparison
16039 against CONST0_RTX.
16041 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16043 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
16044 operands[2] against 1 with comparison against CONST1_RTX.
16045 (ashrdi3): Likewise.
16046 (lshrdi3): Likewise.
16047 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
16049 (ashrsi3): Likewise.
16050 (lshrsi3): Likewise.
16051 (rotrsi3): Likewise.
16052 (define_split above *compareqi_eq0): Likewise.
16053 (define_split above "prologue"): Likewise.
16054 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
16055 * config/arm/predicates.md (shift_operator): Likewise.
16056 (shift_nomul_operator): Likewise.
16057 (sat_shift_operator): Likewise.
16058 (thumb1_cmp_operand): Likewise.
16059 (const_neon_scalar_shift_amount_operand): Replace manual range
16060 check with IN_RANGE.
16061 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
16062 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
16064 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16066 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
16067 with HOST_WIDE_INT_1.
16069 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
16070 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
16071 (arm_canonicalize_comparison): Likewise.
16072 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
16074 (thumb1_size_rtx_costs): Likewise.
16075 (vfp_const_double_index): Replace cast of 1 to unsigned
16076 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16077 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
16079 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
16080 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16081 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
16082 HOST_WIDE_INT with HOST_WIDE_INT_1.
16084 2016-05-24 Marek Polacek <polacek@redhat.com>
16086 * tree-cfg.h (should_remove_lhs_p): New predicate.
16087 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16088 * gimplify.c (gimplify_modify_expr): Likewise.
16089 * tree-cfg.c (verify_gimple_call): Likewise.
16090 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16091 * gimple-fold.c: Include "tree-cfg.h".
16092 (gimple_fold_call): Use should_remove_lhs_p.
16094 2016-05-24 Richard Biener <rguenther@suse.de>
16096 PR tree-optimization/71253
16097 * cfganal.h (control_dependences): Make robust against edge
16099 (control_dependences::control_dependences): Remove edge_list argument.
16100 (control_dependences::get_edge): Remove.
16101 (control_dependences::get_edge_src): Add.
16102 (control_dependences::get_edge_dest): Likewise.
16103 (control_dependences::m_el): Make a vector of edge src/dest index.
16104 * cfganal.c (control_dependences::find_control_dependence): Adjust.
16105 (control_dependences::control_dependences): Likewise.
16106 (control_dependences::~control_dependence): Likewise.
16107 (control_dependences::get_edge): Remove.
16108 (control_dependences::get_edge_src): Add.
16109 (control_dependences::get_edge_dest): Likewise.
16110 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
16112 (perform_tree_ssa_dce): Adjust.
16113 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
16115 (pass_loop_distribution::execute): Adjust. Do loop destroying
16116 conditional on changed.
16118 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16121 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
16122 return. Reindent transformation comment and mention the ARM state
16125 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16127 PR middle-end/71252
16128 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
16129 after build_and_add_sum creates new use stmt.
16131 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16133 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
16134 load_lanes/grouped_load classification comes first. Don't check
16135 whether the vectorization factor is a multiple of the group size
16138 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16140 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
16141 GROUP_GAP for single-element interleaving.
16142 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
16145 2016-05-24 Richard Biener <rguenther@suse.de>
16147 PR middle-end/70434
16149 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
16150 bases which are accessed with non-invariant indices.
16151 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
16152 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
16154 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16156 PR middle-end/71170
16157 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
16158 (add_to_ops_vec): Add stmt_to_insert.
16159 (add_repeat_to_ops_vec): Init stmt_to_insert.
16160 (insert_stmt_before_use): New.
16161 (transform_add_to_multiply): Remove mult_stmt insertion and add it
16163 (get_ops): Init stmt_to_insert.
16164 (maybe_optimize_range_tests): Likewise.
16165 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
16166 (rewrite_expr_tree_parallel): Likewise.
16167 (reassociate_bb): Likewise.
16169 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16172 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
16173 ISA 3.0 xxperm fusion alternative.
16174 (altivec_vperm_v8hiv16qi): Likewise.
16175 (altivec_vperm_<mode>_uns_internal): Likewise.
16176 (vperm_v8hiv4si): Likewise.
16177 (vperm_v16qiv8hi): Likewise.
16179 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16180 Kelvin Nilsen <kelvin@gcc.gnu.org>
16182 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
16183 vpermr/xxpermr on ISA 3.0.
16184 (altivec_expand_vec_perm_le): Likewise.
16185 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
16186 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
16189 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
16191 * config/i386/i386.h (IS_STACK_MODE): Enable for
16192 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
16193 SSE_FLOAT_MODE_P macros.
16194 * config/i386/i386.c (ix86_preferred_reload_class): Use
16195 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
16196 Cleanup regclass processing for CONST_DOUBLE_P.
16197 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
16198 (ix86_rtx_costs): Remove redundant TARGET_80387 check
16199 with IS_STACK_MODE macro.
16200 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
16202 (*movdf_internal): Use IS_STACK_MODE macro.
16203 (*movsf_internal): Ditto.
16205 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
16207 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
16208 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
16210 2016-05-23 Jeff Law <law@redhat.com>
16212 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
16214 (fsm_find_control_statement_thread_paths): Call it.
16216 2016-05-23 Martin Jambor <mjambor@suse.cz>
16219 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
16220 from_global_constant if t is not NULL.
16222 2016-05-23 Marek Polacek <polacek@redhat.com>
16225 * common.opt (Wswitch-unreachable): New option.
16226 * doc/invoke.texi: Document -Wswitch-unreachable.
16227 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
16230 2016-05-23 Bin Cheng <bin.cheng@arm.com>
16232 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
16233 TMR_INDEX is non-NULL.
16235 2016-05-23 Richard Biener <rguenther@suse.de>
16237 PR tree-optimization/71230
16238 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
16239 (try_special_add_to_ops): ... here. Always test for single-use.
16241 2016-05-23 Martin Jambor <mjambor@suse.cz>
16243 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
16244 default block if a PHI node in the original one would be resized.
16246 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16248 PR tree-optimization/58135
16249 * tree-vect-slp.c: When group size is not multiple
16250 of vector size, allow splitting of store group at
16253 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
16255 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
16257 2016-05-22 Jakub Jelinek <jakub@redhat.com>
16259 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16260 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
16261 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
16264 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
16265 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
16266 v constraint instead of x and vinserti32x4 insn.
16268 * config/i386/sse.md (i128vldq): New mode iterator.
16269 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
16270 avx512dq and avx512vl alternatives.
16272 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
16273 constraint, use maybe_evex prefix instead of vex.
16274 (vec_dupv4sf): Use v constraint instead of x for output
16275 operand except for noavx alternative, use Yv constraint
16276 instead of x for input. Use maybe_evex prefix instead of vex.
16277 (*vec_dupv4si): Likewise.
16278 (*vec_dupv2di): Likewise.
16280 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16282 PR middle-end/40921
16283 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
16284 (linearize_expr_tree): Call try_special_add_to_ops.
16285 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
16287 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16289 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
16290 to computed stack_usage.
16292 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16295 * config/avr/avr.md (define_expand "mov<mode>"): If the source
16296 operand is subreg (symbol_ref) then move the symbol ref to register.
16298 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
16300 * tree.c (array_at_struct_end_p): Look through MEM_REF.
16302 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
16304 PR middle-end/71179
16305 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
16308 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16310 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
16311 ranges by calling get_single_symbol and tidy up. Look more closely
16312 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
16314 2016-05-20 Jeff Law <law@redhat.com>
16316 * bitmap.c (bitmap_find_bit): Remove useless test.
16318 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
16320 * function.c (thread_prologue_and_epilogue_insns): Commit the
16321 insertion of the epilogue.
16323 2016-05-20 Martin Jambor <mjambor@suse.cz>
16325 PR tree-optimization/70884
16326 * tree-sra.c (initialize_constant_pool_replacements): Do not check
16327 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
16328 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
16329 of constant pool data as a reason for scalarization.
16331 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16333 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
16334 for naked functions.
16335 (thumb1_expand_prologue): Likewise.
16337 2016-05-20 Nathan Sidwell <nathan@acm.org>
16339 * config/nvptx/nptx.c (nvptx_option_override): Only set
16340 flag_toplevel_reorder, if not explicitly specified. Set
16341 flag_no_common, unless explicitly specified.
16343 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16345 * calls.c (can_implement_as_sibling_call_p): Mark param
16346 reg_parm_stack_space with ATTRIBUTE_UNUSED.
16348 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
16350 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
16351 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
16352 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
16354 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
16355 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
16356 and CASE_CONST_ANY.
16358 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
16360 * config/nvptx/nvptx.md (sincossf3): New pattern.
16362 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16364 * calls.c (maybe_complain_about_tail_call): New function.
16365 (initialize_argument_information): Call
16366 maybe_complain_about_tail_call when clearing *may_tailcall.
16367 (can_implement_as_sibling_call_p): Call
16368 maybe_complain_about_tail_call when returning false.
16369 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
16370 ensure try_tail_call is set. Call maybe_complain_about_tail_call
16371 if tail-call optimization fails.
16372 * cfgexpand.c (expand_call_stmt): Initialize
16373 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
16374 * gimple-pretty-print.c (dump_gimple_call): Dump
16375 gimple_call_must_tail_p.
16376 * gimple.c (gimple_build_call_from_tree): Call
16377 gimple_call_set_must_tail with the value of
16378 CALL_EXPR_MUST_TAIL_CALL.
16379 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
16380 (gimple_call_set_must_tail): New function.
16381 (gimple_call_must_tail_p): New function.
16382 * print-tree.c (print_node): Update printing of TREE_STATIC
16383 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
16384 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
16385 trailing comment listing applicable flags.
16386 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
16388 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16390 * calls.c (expand_call): Move "Rest of purposes for tail call
16391 optimizations to fail" to...
16392 (can_implement_as_sibling_call_p): ...this new function, and
16393 split into multiple "if" statements.
16395 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16397 * cfgloop.h (expected_loop_iterations_unbounded,
16398 expected_loop_iterations): Unconstify.
16399 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
16400 profile with known upper bound; return 3 when profile is absent.
16401 (expected_loop_iterations): Update.
16403 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16405 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
16406 and get_max_loop_iterations_int.
16408 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16410 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
16411 realistic upper bounds here.
16413 2016-05-20 Jakub Jelinek <jakub@redhat.com>
16416 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
16417 calls if the LHS is variable length or has addressable type.
16418 If targets[0]->decl is a noreturn call with void return type and
16419 zero arguments, adjust fntype and remove lhs in that case.
16421 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
16423 PR tree-optimization/71079
16424 PR tree-optimization/71206
16425 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
16427 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16429 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
16430 (get_vec_alignment_for_array_decl): Likewise.
16431 (get_vec_alignment_for_record_decl): Likewise.
16432 (increase_alignment::execute): Move code to find alignment to
16433 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
16434 (type_align_map): New hash_map.
16436 2016-05-20 Richard Guenther <rguenther@suse.de>
16438 PR tree-optimization/29756
16439 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
16440 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
16441 * fold-const.c (operand_equal_p): Likewise.
16442 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
16443 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
16444 * tree-inline.c (estimate_operator_cost): Likewise.
16445 * tree-pretty-print.c (dump_generic_node): Likewise.
16446 * tree-ssa-operands.c (get_expr_operands): Likewise.
16447 * cfgexpand.c (expand_debug_expr): Likewise.
16448 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16449 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
16450 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
16451 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
16452 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
16453 (execute_update_addresses_taken): Do it.
16455 2016-05-20 Richard Biener <rguenther@suse.de>
16457 PR tree-optimization/71185
16458 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
16459 register operations.
16461 2016-05-20 Richard Biener <rguenther@suse.de>
16463 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
16464 gimple_seq_add_seq_without_update.
16465 (release_bb_predicate): Assert we have no operands to free.
16466 (if_convertible_loop_p_1): Calculate post dominators later.
16467 Do not free BB predicates here.
16468 (combine_blocks): Do not recompute BB predicates.
16469 (version_loop_for_if_conversion): Save BB predicates around
16472 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16474 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
16475 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
16476 code. Ignore sibcalls on EDGE_IGNORE edges.
16477 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
16478 on edges for sibcalls that run without prologue. The rest of the
16479 function is combined from...
16480 (fix_fake_fallthrough_edge): ... this, and ...
16481 (try_shrink_wrapping): ... a part of this. Remove the bb_with
16482 function argument, make it a local variable.
16484 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
16486 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
16487 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
16488 for 32-bit mode and SEH for 64-bit.
16489 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
16490 TARGET_64BIT_DEFAULT.
16492 2016-05-19 Ryan Burn <contact@rnburn.com>
16494 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
16495 * gengtype.c (open_base_files): Add cilk.h to ifiles.
16497 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
16499 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
16500 force pending loads from memory.
16502 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
16504 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
16505 (UNSPEC_DARN_32): New unspec constant.
16506 (UNSPEC_DARN_RAW): New unspec constant.
16507 (darn_32): New instruction.
16508 (darn_raw): New instruction.
16509 (darn): New instruction.
16510 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
16511 support and documentation for this macro.
16512 (BU_P9_MISC_1): New macro definition.
16513 (BU_P9_64BIT_MISC_0): New macro definition.
16514 (BU_P9_MISC_0): New macro definition.
16515 (darn_32): New builtin definition.
16516 (darn_raw): New builtin definition.
16517 (darn): New builtin definition.
16518 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
16519 RS6000_BUILTIN_0 directives to surround each occurrence of
16520 #include "rs6000-builtin.def".
16521 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
16522 RS6000_BTM_64BIT flags to the returned mask, depending on
16524 (def_builtin): Correct an error in the assignments made to the
16525 debugging variable attr_string.
16526 (rs6000_expand_builtin): Add support for no-operand built-in
16528 (builtin_function_type): Remove fatal_error assertion that is no
16530 (rs6000_common_init_builtins): Add support for no-operand built-in
16532 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
16534 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
16536 (RS6000_BTM_64BIT): New macro definition.
16537 * doc/extend.texi: Document __builtin_darn (void),
16538 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
16541 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
16543 * tree-vect-loop.c (vect_analyze_loop_2): Use also
16544 max_loop_iterations_int.
16546 2016-05-19 Marek Polacek <polacek@redhat.com>
16548 PR tree-optimization/71031
16549 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
16550 condition and adjust the code a bit.
16552 2016-05-19 Martin Liska <mliska@suse.cz>
16554 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
16555 auto_vec instead of vec.
16557 2016-05-19 Martin Liska <mliska@suse.cz>
16559 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
16561 2016-05-19 Martin Liska <mliska@suse.cz>
16563 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
16565 2016-05-19 Martin Liska <mliska@suse.cz>
16567 * ipa-pure-const.c (set_function_state): Remove an existing
16569 (remove_node_data): Do not free it as it's released
16570 in set_function_state.
16572 2016-05-19 Martin Liska <mliska@suse.cz>
16574 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
16577 2016-05-19 Martin Liska <mliska@suse.cz>
16579 * omp-simd-clone.c (simd_clone_adjust): Release vector.
16581 2016-05-19 Martin Liska <mliska@suse.cz>
16583 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
16584 an auto_vec instead of re-creating it.
16586 2016-05-19 Martin Liska <mliska@suse.cz>
16588 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
16589 auto_vec instead of vec.
16591 2016-05-19 Martin Liska <mliska@suse.cz>
16593 * lto-section-in.c (lto_get_section_data): Call
16594 lto_check_version with additional argument.
16595 * lto-streamer.c (lto_check_version): Add new argument.
16596 * lto-streamer.h (lto_check_version): Likewise.
16598 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16600 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
16601 Don't add cost of inner memory when handling sign-extended loads.
16603 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
16605 PR rtl-optimization/71148
16606 * cse.c (cse_main): Free dominance info.
16607 (rest_of_handle_cse): Don't free dominance info.
16608 (rest_of_handle_cse2): Likewise.
16609 (rest_of_handle_cse_after_global_opts): Likewise.
16611 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16614 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
16615 NULL_TREE early if NEON is not available. Remove now redundant check
16616 in ARM_CHECK_BUILTIN_MODE.
16618 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
16621 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
16622 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
16623 * doc/cpp.texi: Document new macros.
16625 2016-05-19 Bin Cheng <bin.cheng@arm.com>
16627 PR tree-optimization/69848
16628 * tree-vect-loop.c (vectorizable_reduction): Don't factor
16629 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
16631 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16633 * function.c (thread_prologue_and_epilogue_insn): Move the
16634 "goto epilogue_done" one block later.
16636 2016-05-19 Richard Biener <rguenther@suse.de>
16638 PR tree-optimization/70729
16639 * passes.def: Move LIM pass before PRE. Remove no longer
16640 required copyprop and move first DCE out of the loop pipeline.
16642 2016-05-18 David Malcolm <dmalcolm@redhat.com>
16645 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
16646 (OBJS-libcommon-target): ...here.
16647 * opts-common.c: Include spellcheck.h.
16648 (cmdline_handle_error): Build a vec of valid options and use it
16649 to suggest provide hints for misspelled arguments.
16651 2016-05-18 Jakub Jelinek <jakub@redhat.com>
16654 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
16655 lhs if it has TREE_ADDRESSABLE type.
16657 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
16660 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
16661 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
16663 2016-05-18 Martin Jambor <mjambor@suse.cz>
16666 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
16667 input for NOP_EXPR pass-through functions.
16668 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
16669 aggregate global constant VAR_DECLs in constant jump functions.
16671 2016-05-18 Martin Jambor <mjambor@suse.cz>
16674 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
16675 from TREE_READONLY parameters.
16677 2016-05-18 Martin Jambor <mjambor@suse.cz>
16680 * cgraph.h (cgraph_indirect_call_info): New field
16681 guaranteed_unmodified.
16682 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
16683 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16685 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
16686 pass the parameter value to ipa_find_agg_cst_for_param.
16687 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
16688 guaranteed_unmodified, store AA results there instead of bailing out
16690 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
16691 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
16692 (find_constructor_constant_at_offset): New function.
16693 (ipa_find_agg_cst_from_init): Likewise.
16694 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
16695 static initializers of contants, report back through a new paameter
16696 from_global_constant if that was the case.
16697 (try_make_edge_direct_simple_call): Also pass parameter value to
16698 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16700 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
16701 (ipa_read_indirect_edge_info): Likewise.
16702 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
16703 (ipa_load_from_parm_agg): Likewise.
16705 2016-05-18 Jiong Wang <jiong.wang@arm.com>
16707 PR rtl-optimization/71150
16708 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
16711 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16714 * config/rs6000/constraints.md (wE constraint): New constraint
16715 for a vector constant that can be loaded with XXSPLTIB.
16716 (wM constraint): New constraint for a vector constant of a 1's.
16717 (wS constraint): New constraint for a vector constant that can be
16718 loaded with XXSPLTIB and a vector sign extend instruction.
16719 * config/rs6000/predicates.md (xxspltib_constant_split): New
16720 predicates for wE/wS constraints.
16721 (xxspltib_constant_nosplit): Likewise.
16722 (easy_vector_constant): Add support for constants that can be
16723 loaded via XXSPLTIB.
16724 (all_ones_constant): New predicate for vector constant with all
16726 (splat_input_operand): Add support for ISA 3.0 word splat operations.
16727 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
16728 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
16729 instruction and possibly with a sign extension.
16730 (output_vec_const_move): Add support for XXSPLTIB. If we are
16731 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
16732 instead of XXLXOR/XXLORC.
16733 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
16735 (rs6000_legitimize_reload_address): Likewise.
16736 (rs6000_output_move_128bit): Use output_vec_const_move to emit
16738 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
16739 combine VSX_M and VSX_M2 into one iterator.
16740 (VSX_M2): Likewise.
16741 (VSINT_84): New iterators for loading constants with XXSPLTIB.
16742 (VSINT_842): Likewise.
16743 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
16744 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
16745 XXSPLTIB instruction.
16746 (xxspltib_<mode>_nosplit): Likewise.
16747 (xxspltib_<mode>_split): New insn to load up constants with
16748 XXSPLTIB and a sign extend instruction.
16749 (vsx_mov<mode>): Replace single move that handled all vector types
16750 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
16751 moves (when -mvsx-timode is in effect) into the main vector
16752 moves. Eliminate separate moves for <VSr> <VSa>, where the
16753 preferred register class (<VSr>) is listed first, and the
16754 secondary register class (<VSa>) is listed second with a '?' to
16755 discourage use. Prefer loading 0/-1 in any VSX register for ISA
16756 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
16757 that if the register was involved in a slow operation, the
16758 clear/set operation does not wait for the slow operation to
16759 finish. Adjust the length attributes for 32-bit mode. Use
16760 rs6000_output_move_128bit and drop the use of the string
16761 instructions for 32-bit movti when -mvsx-timode is in effect. Use
16762 spacing so that the alternatives and attributes don't generate
16763 long lines, and put things in columns, so that it is easier to
16764 match up the operands and attributes with the insn alternatives.
16765 (vsx_mov<mode>_64bit): Likewise.
16766 (vsx_mov<mode>_32bit): Likewise.
16767 (vsx_movti_64bit): Fold movti into normal vector moves.
16768 (vsx_movti_32bit): Likewise.
16769 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
16770 splat instructions.
16771 (vsx_splat_v4si_internal): Likewise.
16772 (vsx_splat_v4sf_internal): Likewise.
16773 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
16774 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
16775 extend vector elements.
16776 (vsx_sign_extend_hi_<mode>): Likewise.
16777 (vsx_sign_extend_si_v2di): Likewise.
16778 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
16780 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
16781 constraints. Add trailing period to wL documentation.
16783 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
16785 PR middle-end/71020
16786 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
16787 * tree-dfa.c (replace_abnormal_ssa_names): New function.
16788 * tree-call-cdce.c: Include tree-dfa.h.
16789 (can_guard_call_p): New function, extracted from...
16790 (can_use_internal_fn): ...here.
16791 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
16793 (shrink_wrap_one_built_in_call): Likewise.
16794 (use_internal_fn): Likewise.
16795 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
16796 and return void. Call replace_abnormal_ssa_names.
16797 (pass_call_cdce::execute): Check can_guard_call_p during the
16798 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
16799 will always change something.
16801 2016-05-18 Martin Jambor <mjambor@suse.cz>
16804 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
16805 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
16807 2016-05-18 Martin Jambor <mjambor@suse.cz>
16810 * ipa-inline.h (condition): New field size.
16811 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
16812 for comaprison and store it into the new condition.
16813 (evaluate_conditions_for_known_args): Use condition size to check
16814 access sizes for all but CHANGED conditions.
16815 (unmodified_parm_1): New parameter size_p, store access size into it.
16816 (unmodified_parm): Likewise.
16817 (unmodified_parm_or_parm_agg_item): Likewise.
16818 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
16819 (set_cond_stmt_execution_predicate): Extract access sizes and store
16820 them to conditions.
16821 (set_switch_stmt_execution_predicate): Likewise.
16822 (will_be_nonconstant_expr_predicate): Likewise.
16823 (will_be_nonconstant_predicate): Likewise.
16824 (inline_read_section): Stream condition size.
16825 (inline_write_summary): Likewise.
16827 2016-05-18 Richard Biener <rguenther@suse.de>
16829 * tree-ssa-loop-im.c (determine_max_movement): Properly add
16830 condition cost to PHI cost instead of total_cost.
16832 2016-05-18 Martin Liska <mliska@suse.cz>
16835 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
16838 2016-05-18 Richard Biener <rguenther@suse.de>
16840 * lto-streamer.h (LTO_major_version): Bump to 6.
16842 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
16844 * function.c (make_split_prologue_seq, make_prologue_seq,
16845 make_epilogue_seq): New functions, factored out from...
16846 (thread_prologue_and_epilogue_insns): Here.
16848 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
16850 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16851 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
16852 of before. Add a comment.
16854 2016-05-18 Bin Cheng <bin.cheng@arm.com>
16856 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
16857 expression pointer, not pointer to the pointer.
16859 2016-05-18 Jakub Jelinek <jakub@redhat.com>
16861 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
16862 (avx2_pbroadcast<mode>): Add another alternative with v instead
16863 of x constraints in it, using <pbroadcast_evex_isa> isa.
16864 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
16866 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
16867 constraint x instead of v in second alternative, add avx512bw
16870 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
16871 constraint x instead of v in second alternative, add avx512bw
16874 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
16875 constraint x instead of v in second alternative, add avx512bw
16878 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
16879 avx512bw alternative.
16881 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
16883 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
16884 array to 128 chars.
16885 (define_insn "*andnottf3"): Ditto.
16886 (define_insn "*<code><mode>3"/any_logic): Ditto.
16887 (define_insn "*<code>tf3"/any_logic): Ditto.
16888 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
16889 operand to block AVX-512VL insn variant emit when it is not enabled.
16891 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
16893 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
16894 constraint fot SF mode.
16896 2016-05-18 Petr Murzin <petr.murzin@intel.com>
16897 Kirill Yukhin <kirill.yukhin@intel.com>
16899 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
16901 (define_insn "rsqrt14<mode>"): Ditto.
16902 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
16903 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16904 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
16905 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16906 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
16908 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
16909 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
16910 * config/i386/i386.c (ix86_print_operand): Expand check for size
16911 override codes for Intel syntax.
16913 2016-05-18 Richard Biener <rguenther@suse.de>
16915 PR tree-optimization/71168
16916 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
16917 initialization earlier.
16919 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
16921 * config/aarch64/aarch64-simd.md
16922 (aarch64_reduc_plus_internal<mode>): Rename to...
16923 (reduc_plus_scal): ...This, and remove previous implementation.
16925 2016-05-18 Richard Biener <rguenther@suse.de>
16927 * passes.def: Put late dse and cd_dce in canonical order.
16929 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
16931 * ipa-inline-transform.c (preserve_function_body_p): Look for
16932 first non-thunk clone.
16933 (save_function_body): Save into first non-thunk.
16934 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
16936 (lto_output_node): Inline thunks don't need body in every
16938 * lto-streamer-in.c: Do not fixup thunk clones.
16939 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
16941 * tree-inline.c (copy_bb): Be prepared for target node to be new after
16944 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16946 PR middle-end/63586
16947 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
16948 (reassociate_bb): Call transform_add_to_multiply.
16950 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16952 * config/aarch64/aarch64.c (all_extensions): Removed unused
16955 2016-05-17 Nathan Sidwell <nathan@acm.org>
16957 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
16958 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
16960 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
16962 PR tree-optimization/54579
16963 PR middle-end/55299
16964 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
16966 2016-05-17 Marek Polacek <polacek@redhat.com>
16969 * tree-inline.c (expand_call_inline): Call
16970 maybe_remove_unused_call_args.
16972 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
16974 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
16975 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
16976 * doc/md.texi (fmin@var{m}3): Likewise.
16978 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16980 * match.pd (X & C): New transformation.
16982 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16984 * match.pd (~X & Y): New transformation.
16986 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16988 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
16989 information for new SSA_NAME.
16990 (simplify_conversion_using_ranges): Get range through get_range_info
16991 instead of get_value_range.
16993 2016-05-17 Jiong Wang <jiong.wang@arm.com>
16995 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
16996 Remove inline assembly.
16997 (vmvn_s16): Likewise.
16998 (vmvn_s32): Likewise.
16999 (vmvn_u8): Likewise.
17000 (vmvn_u16): Likewise.
17001 (vmvn_u32): Likewise.
17002 (vmvnq_s8): Likewise.
17003 (vmvnq_s16): Likewise.
17004 (vmvnq_s32): Likewise.
17005 (vmvnq_u8): Likewise.
17006 (vmvnq_u16): Likewise.
17007 (vmvnq_u32): Likewise.
17008 (vmvn_p8): Likewise.
17009 (vmvnq_p16): Likewise.
17011 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17013 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
17015 (vmul_n_s16): Likewise.
17016 (vmul_n_s32): Likewise.
17017 (vmul_n_u16): Likewise.
17018 (vmul_n_u32): Likewise.
17019 (vmulq_n_f32): Likewise.
17020 (vmulq_n_f64): Likewise.
17021 (vmulq_n_s16): Likewise.
17022 (vmulq_n_s32): Likewise.
17023 (vmulq_n_u16): Likewise.
17024 (vmulq_n_u32): Likewise.
17026 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17028 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
17029 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
17031 2016-05-17 Jiong Wang <jiong.wang@arm.com>
17033 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
17034 to *aarch64_fma4_elt_from_dup<mode>.
17035 (*aarch64_fnma4_elt_to_128df): Rename to
17036 *aarch64_fnma4_elt_from_dup<mode>.
17037 * config/aarch64/arm_neon.h (vfma_n_f64): New.
17038 (vfms_n_f32): Likewise.
17039 (vfms_n_f64): Likewise.
17040 (vfmsq_n_f32): Likewise.
17041 (vfmsq_n_f64): Likewise.
17043 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
17045 * wide-int.h: Change fixed_wide_int_storage from class to struct.
17047 2016-05-17 Richard Biener <rguenther@suse.de>
17049 PR tree-optimization/71132
17050 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
17051 Only add control dependences for blocks in the loop.
17052 (build_rdg): Adjust.
17053 (generate_code_for_partition): Return whether loop should
17054 be destroyed and delay that.
17055 (distribute_loop): Likewise.
17056 (pass_loop_distribution::execute): Record loops to be destroyed
17057 and perform delayed destroying of loops.
17059 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17062 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
17064 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17066 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
17068 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
17071 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
17072 insertion point for instructions generated by validize_mem.
17074 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17076 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
17079 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17081 * config/aarch64/aarch64.c
17082 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
17083 rather than a macro.
17085 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17087 * doc/invoke.texi (AArch64 Options): Various updates.
17089 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17091 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
17092 into instrumentation thunks.
17093 * cif-code.def (CIF_CHKP): New.
17095 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
17097 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
17099 2016-05-16 Martin Jambor <mjambor@suse.cz>
17101 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
17102 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
17104 2016-05-16 Marek Polacek <polacek@redhat.com>
17106 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
17109 2016-05-16 Martin Jambor <mjambor@suse.cz>
17112 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
17113 the outlined kernel function.
17115 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
17117 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
17118 (ISA_HAS_DLSA): Ditto.
17120 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17122 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
17124 2016-05-16 Nathan Sidwell <nathan@acm.org>
17126 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
17127 (nvptx_name_replacement): Restore. Add comment.
17128 (write_fn_proto, write_fn_proto_from_insn,
17129 nvptx_output_call_insn): Restore
17130 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
17132 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17134 * config/aarch64/aarch64.md
17135 (add<mode>3_compareC_cconly_imm): Remove use of %w.
17136 (add<mode>3_compareC_imm): Likewise.
17137 (<optab>si3_uxtw): Split into register and immediate variants.
17138 (andsi3_compare0_uxtw): Likewise.
17139 (and<mode>3_compare0): Likewise.
17140 (and<mode>3nr_compare0): Likewise.
17141 (stack_protect_test_<mode>): Don't use %x for memory operands.
17143 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17145 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
17147 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17149 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17150 Split integer shifts into shift_reg and bfm.
17151 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17152 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17153 (ror<mode>3_insn): Likewise.
17154 (<optab>si3_insn_uxtw): Likewise.
17155 (<optab><mode>3_insn): Change to rotate_imm.
17156 (extr<mode>5_insn_alt): Likewise.
17157 (extrsi5_insn_uxtw): Likewise.
17158 (extrsi5_insn_uxtw_alt): Likewise.
17160 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17162 * doc/tm.texi: Regenerate.
17163 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
17164 (TARGET_INVALID_RETURN_TYPE): Remove.
17165 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
17166 TARGET_INVALID_RETURN_TYPE.
17167 * target.def (invalid_parameter_type): Remove.
17168 (invalid_return_type): Remove.
17170 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17172 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
17173 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
17175 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
17177 (preserve_function_body_p): No need to preserve function body
17178 * cif-codes.def (CIF_THUNK): Remove.
17179 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
17181 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17183 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
17185 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17187 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
17190 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17192 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
17193 (inline_small_functions): Do not look for function symbol when
17196 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17198 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
17201 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17202 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17203 Jiong Wang <jiong.wang@arm.com>
17205 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
17206 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
17207 Define __ARM_FP16_ARGS when appropriate.
17208 * config/arm/arm.c (arm_invalid_parameter_type): Remove
17210 (arm_invalid_return_type): Likewise.
17211 (TARGET_INVALID_PARAMETER_TYPE): Remove.
17212 (TARGET_INVALID_RETURN_TYPE): Remove.
17213 (aapcs_vfp_sub_candidate): Allow HFmode.
17214 (aapcs_vfp_allocate): Add comment. Support HFmode.
17215 (aapcs_vfp_allocate_return_reg): Likewise.
17216 (struct aapcs_cp_arg_layout): Slightly reword comments for
17217 is_return_candidate and allocate_return_reg.
17218 (output_mov_vfp): Update assert.
17219 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
17221 (arm_invalid_parameter_type): Remove.
17222 (amr_invalid_return_type): Remove.
17223 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
17224 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
17225 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
17227 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17229 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17230 * config/aarch64/arch64-protos.h
17231 (aarch64_legitimize_reload_address): Remove.
17232 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
17235 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
17237 * configure.ac: Add ACX_NONCANONICAL_HOST.
17238 * configure: Regenerate.
17239 * Makefile.in: Set host_noncanonical.
17241 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
17244 * config/i386/i386.md (*movtf_internal): Before register allocation,
17245 do not allow FP constants for CM_MEDIUM memory model, allow only
17246 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
17247 (*movxf_internal): Ditto.
17248 (*movdf_internal): Ditto.
17249 (*movsf_internal): Ditto.
17251 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17253 PR rtl-optimization/67483
17254 * combine.c (make_compound_operation): Don't call extract_left_shift
17255 with negative shift amounts.
17257 2016-05-13 Jakub Jelinek <jakub@redhat.com>
17260 * fold-const.c (fold_checksum_tree): Allow modification
17261 of TYPE_ALIAS_SET during folding.
17263 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
17264 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
17265 (ix86_split_to_parts): Likewise. Fix up formatting.
17267 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
17269 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
17270 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
17273 2016-05-13 Nathan Sidwell <nathan@acm.org>
17275 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
17276 (nvptx_name_replacement): Delete.
17277 (write_fn_proto, write_fn_proto_from_insn,
17278 nvptx_output_call_insn): Remove nvptx_name_replacement call.
17279 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
17280 * langhooks.c (add_builtin_funcction_common): Call
17281 targetm.mangle_decl_assembler_name.
17283 * config/nvptx/nvptx.c (write_fn_proto): Handle
17284 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
17286 2016-05-13 Martin Liska <mliska@suse.cz>
17288 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
17289 and PRIu64 in printf format.
17291 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17293 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
17296 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17298 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17299 Change --param max-completely-peeled-times to
17300 --param max-completely-peel-times in dump file printing.
17302 2016-05-13 Richard Biener <rguenther@suse.de>
17304 PR tree-optimization/42587
17305 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
17306 (find_bswap_or_nop_1): Likewise.
17307 (bswap_replace): Likewise.
17309 2016-05-13 Martin Liska <mliska@suse.cz>
17311 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
17312 Initialize a variable with default value.
17314 2016-05-13 Martin Liska <mliska@suse.cz>
17316 * doc/invoke.texi: Enhance explanation of error recovery
17319 2016-05-13 Martin Liska <mliska@suse.cz>
17321 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
17322 (struct cost_pair): Change inv_expr_id (int) to inv_expr
17323 (iv_inv_expr_ent *).
17324 (struct iv_inv_expr_ent): Comment struct fields.
17325 (sort_iv_inv_expr_ent): New function.
17326 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
17327 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
17328 a hash_map between iv_inv_expr_ent and number of usages.
17329 (niter_for_exit): Fix coding style.
17330 (tree_ssa_iv_optimize_init): Use renamed variable.
17331 (determine_base_object): Fix coding style.
17332 (alloc_iv): Likewise.
17333 (find_interesting_uses_outside): Likewise.
17334 (add_candidate_1): Likewise.
17335 (add_standard_iv_candidates): Likewise.
17336 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
17337 (prepare_decl_rtl): Fix coding style.
17338 (get_address_cost): Likewise.
17339 (get_shiftadd_cost): Likewise.
17340 (force_expr_to_var_cost): Likewise.
17341 (compare_aff_trees): Likewise.
17342 (get_expr_id): Restructure the function.
17343 (get_loop_invariant_expr_id): Renamed to
17344 get_loop_invariant_expr.
17345 (get_computation_cost_at): Replace usage of inv_expr_id with
17347 (get_computation_cost): Likewise.
17348 (determine_group_iv_cost_generic): Likewise.
17349 (determine_group_iv_cost_address): Likewise.
17350 (iv_period): Fix coding style.
17351 (iv_elimination_compare_lt): Likewise.
17352 (may_eliminate_iv): Likewise.
17353 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
17355 (determine_group_iv_costs): Dump invariant expressions.
17356 (iv_ca_recount_cost): Use the newly added hash_map.
17357 (iv_ca_set_remove_invariants): Fix coding style.
17358 (iv_ca_set_add_invariants): Fix coding style.
17359 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
17361 (iv_ca_set_cp): Likewise.
17362 (iv_ca_new): Initialize the newly added hash_map and remove
17363 initialization of fields.
17364 (iv_ca_free): Delete the hash_map.
17365 (iv_ca_dump): Dump invariant expressions.
17366 (iv_ca_extend): Fix coding style.
17367 (try_add_cand_for): Likewise.
17368 (create_new_ivs): Dump information about # of avg iterations and
17369 # of used invariant expressions.
17370 (rewrite_use_compare): Fix coding style.
17371 (free_loop_data): Set default value for max_inv_expr_id.
17373 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17375 * cse.c (rest_of_handle_cse): Use cleanup_cfg
17376 returned value cse_cfg_altered computation.
17377 (rest_of_handle_cse2): Likewise.
17378 (rest_of_handle_cse_after_global_opts): Likewise.
17380 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17383 * config/arm/arm.c (arm32_output_mi_thunk): New.
17384 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
17385 to split Thumb1 vs TARGET_32BIT functionality.
17386 (arm_thumb1_mi_thunk): New.
17388 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17390 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
17393 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17396 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
17398 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
17400 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
17401 (expand_builtin_trap): Emit a regular call.
17402 (set_builtin_user_assembler_name): Remove obsolete cases.
17403 * dse.c (scan_insn): Adjust.
17404 * except.c: Include calls.h.
17405 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
17406 emit a regular call to setjmp.
17407 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
17408 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
17409 (emit_block_move_via_libcall): Delete.
17410 (block_move_fn): Delete.
17411 (init_block_move_fn): Likewise.
17412 (emit_block_move_libcall_fn): Likewise.
17413 (emit_block_op_via_libcall): New function.
17414 (set_storage_via_libcall): Tidy up and use memset builtin.
17415 (block_clear_fn): Delete.
17416 (init_block_clear_fn): Likewise.
17417 (clear_storage_libcall_fn): Likewise.
17418 (expand_assignment): Call emit_block_move_via_libcall.
17419 Do not include gt-expr.h.
17420 * expr.h (emit_block_op_via_libcall): Declare.
17421 (emit_block_copy_via_libcall): New inline function.
17422 (emit_block_move_via_libcall): Likewise.
17423 (emit_block_comp_via_libcall): Likewise.
17424 (block_clear_fn): Delete.
17425 (init_block_move_fn): Likewise.
17426 (init_block_clear_fn): Likewise.
17427 (emit_block_move_via_libcall): Likewise.
17428 (set_storage_via_libcall): Add default parameter value.
17429 * libfuncs.h (enum libfunc_index): Remove obsolete values.
17430 (abort_libfunc): Delete.
17431 (memcpy_libfunc): Likewise.
17432 (memmove_libfunc): Likewise.
17433 (memcmp_libfunc): Likewise.
17434 (memset_libfunc): Likewise.
17435 (setbits_libfunc): Likewise.
17436 (setjmp_libfunc): Likewise.
17437 (longjmp_libfunc): Likewise.
17438 (profile_function_entry_libfunc): Likewise.
17439 (profile_function_exit_libfunc): Likewise.
17440 (gcov_flush_libfunc): Likewise.
17441 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
17442 and DECL_VISIBILITY on the declaration.
17443 (init_optabs): Do not initialize obsolete libfuncs.
17444 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
17445 * tree-core.h (ECF_RET1): Define.
17446 (ECF_TM_PURE): Adjust.
17447 (ECF_TM_BUILTIN): Likewise.
17448 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
17449 (build_common_builtin_nodes): Initialize abort builtin.
17450 Add ECF_RET1 on memcpy, memmove and memset builtins.
17451 Pass final flags for alloca and alloca_with_align builtins.
17452 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
17454 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
17455 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
17456 set_storage_via_libcall and call emit_block_copy_via_libcall.
17458 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
17460 * config/i386/i386.md (*call_got_x32): Change operand 0 to
17461 DImode before it is passed to ix86_output_call_operand.
17462 (*call_value_got_x32): Ditto for operand 1.
17464 2016-05-12 Jiong Wang <jiong.wang@arm.com>
17466 PR rtl-optimization/70904
17467 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
17468 reload for wide mode.
17470 2016-05-12 Marek Polacek <polacek@redhat.com>
17473 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
17474 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
17475 * langhooks.h (incomplete_type_error): Likewise.
17476 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
17477 parameter, pass it down to incomplete_type_error.
17478 * tree.h (size_in_bytes): New inline overload.
17479 (size_in_bytes_loc): Renamed from size_in_bytes.
17481 2016-05-12 Richard Biener <rguenther@suse.de>
17483 PR tree-optimization/71059
17484 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
17485 nary before looking up or entering the expression into the VN
17487 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
17488 Make sure to re-use NARYs without result as inserted by
17491 2016-05-12 Richard Biener <rguenther@suse.de>
17493 PR tree-optimization/71062
17494 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17496 * tree-ssa-structalias.c (set_uids_in_ptset): Set
17497 vars_contains_restrict if the var is a restrict tag.
17498 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
17499 do not disambiguate pointers against it.
17500 (dump_points_to_solution): Re-structure and adjust for new
17501 vars_contains_restrict flag.
17502 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
17504 2016-05-12 Martin Liska <mliska@suse.cz>
17506 * doc/invoke.texi: Explain connection between
17507 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
17509 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
17511 PR tree-optimization/71006
17512 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17513 consider COND_EXPR as a mask producer.
17515 2016-05-12 Marek Polacek <polacek@redhat.com>
17518 * opts.c (common_handle_option): Detect missing argument for --help^.
17520 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17523 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
17524 when popping the PC and within an interrupt handler routine.
17525 Add missing tab to output of "ldmfd".
17526 (output_return_instruction): Output LDMFD with SP update rather
17527 than POP when returning from interrupt handler.
17529 2016-05-12 Jakub Jelinek <jakub@redhat.com>
17531 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
17532 TARGET_64BIT && TARGET_AVX512DQ.
17533 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
17534 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
17535 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
17536 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
17537 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
17538 (*vec_extractv4si_zext): Add avx512dq alternative.
17539 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
17540 use v instead of x constraint in other alternatives where possible.
17542 * config/i386/sse.md (sse2_loadld): Use v instead of x
17543 constraint in alternatives 0,1,4.
17545 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
17546 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
17547 v constraints instead of x and <pinsr_evex_isa> isa attribute.
17550 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
17551 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
17552 is not emitted unless TARGET_AVX512BW.
17553 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
17554 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
17555 for the result operand.
17557 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
17558 constraint instead of x in avx alternatives. Use maybe_evex instead
17561 * config/i386/constraints.md (Yv): New constraint.
17562 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
17563 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
17564 * config/i386/i386.md (avx512fvecmode): New mode attr.
17565 (*pushtf): Use v constraint instead of x.
17566 (*movtf_internal): Likewise. For TARGET_AVX512VL and
17567 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
17568 (*absneg<mode>2): Use Yv constraint instead of x constraint.
17569 (*absnegtf2_sse): Likewise.
17570 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
17571 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
17572 avx512f alternatives.
17573 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
17575 2016-05-12 Richard Biener <rguenther@suse.de>
17577 PR tree-optimization/71060
17578 * tree-data-ref.c (initialize_data_dependence_relation): Do not
17579 require exact match of DR_BASE_OBJECT but only matching address and
17582 2016-05-12 Richard Biener <rguenther@suse.de>
17584 PR tree-optimization/70986
17585 * cfganal.c: Include cfgloop.h.
17586 (dfs_find_deadend): Prefer to take edges exiting loops.
17588 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17590 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
17591 compile and run time.
17593 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
17596 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
17598 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
17600 * config/i386/i386.c (legitimize_pic_address): Use
17601 copy_to_suggested_reg instead of gen_movsi.
17603 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17605 * config/rs6000/predicates.md (quad_memory_operand): Move most of
17606 the code into quad_address_p and call it to share code with
17607 vsx_quad_dform_memory_operand.
17608 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
17610 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
17611 bit instead of being a separate word. Split -mpower9-dform into
17612 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17613 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
17614 for the register class supporting 128-bit quad word memory offsets.
17615 (mode_supports_vsx_dform_quad): Helper function to return if the
17616 register class uses quad word memory offsets.
17617 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
17618 (rs6000_debug_reg_global): Always print if we are using LRA or not.
17619 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
17620 instructions are enabled, set up the appropriate addr_masks for
17622 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
17623 -mpower9-dform-scalar, instead of -mpower9-dform.
17624 (rs6000_option_override_internal): Split -mpower9-dform into two
17625 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
17626 -mpower9-dform switch sets or clears both. If we are not using
17627 the LRA register allocator, do not enable -mpower9-dform-vector by
17628 default. If we are using LRA, enable -mpower9-dform-vector and
17629 -mvsx-timode if it is appropriate. Issue a warning if either
17630 -mpower9-dform-vector or -mvsx-timode are explicitly used without
17632 (quad_address_offset_p): New helper function to return if the
17633 offset is legal for quad word memory instructions.
17634 (quad_address_p): New function to determin if GPR or vector
17635 register quad word memory addresses are legal.
17636 (mem_operand_gpr): Validate quad word address offsets.
17637 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
17638 d-form (register + offset) instructions.
17639 (offsettable_ok_by_alignment): Likewise.
17640 (rs6000_legitimate_offset_address_p): Likewise.
17641 (legitimate_lo_sum_address_p): Likewise.
17642 (rs6000_legitimize_address): Likewise.
17643 (rs6000_legitimize_reload_address): Add more debug statements for
17645 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
17646 d-form instructions.
17647 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
17648 d-form instructions. Distinguish different cases in debug
17649 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
17650 d-form instructions.
17651 (rs6000_preferred_reload_class): Likewise.
17652 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
17653 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
17654 of the ISA 2.06 indexed memory instructions.
17655 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
17656 use them to save/restore the saved vector registers instead of
17657 using Altivec instructions.
17658 (rs6000_emit_epilogue): Likewise.
17659 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
17660 (rs6000_opt_masks): Split -mpower9-dform into
17661 -mpower9-dform-scalar and -mpower9-dform-vector.
17662 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
17664 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
17665 ISA 3.0 vector indexed memory instructions, and fold the code into
17666 the normal mov<mode> patterns.
17667 (p9_vecstore_<mode>): Likewise.
17668 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
17670 (vsx_movti_64bit): Likewise.
17671 (vsx_movti_32bit): Likewise.
17672 * config/rs6000/constraints.md (wO constraint): New constraint for
17673 ISA 3.0 vector d-form support.
17674 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
17675 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
17676 include -mpower9-dform-vector until we switch over to LRA.
17677 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
17678 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17679 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
17680 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
17681 for -mpower9-dform and -mlra.
17682 * doc/md.texi (wO constraint): Document wO constraint.
17684 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
17686 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
17687 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
17688 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
17689 Move handling of non-insn arguments inline into the sole user:
17690 (output_trans_func): ...here.
17691 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
17692 in emitted function prototype.
17693 (output_internal_insn_latency_func): Ditto. Simplify.
17694 (output_internal_maximal_insn_latency_func): Ditto. Delete
17695 always-unused argument.
17696 (output_insn_latency_func): Ditto.
17697 (output_maximal_insn_latency_func): Ditto.
17699 2016-05-11 Richard Biener <rguenther@suse.de>
17701 PR tree-optimization/71055
17702 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
17703 sth with precision not equal to access size verify we don't chop
17706 2016-05-11 Richard Biener <rguenther@suse.de>
17709 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
17710 (dwarf2out_finish): Move retry_incomplete_types call ...
17711 (dwarf2out_early_finish): ... here.
17713 2016-05-11 Richard Biener <rguenther@suse.de>
17715 PR middle-end/71002
17716 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
17717 if the langhook insists on it.
17718 * fold-const.c (make_bit_field_ref): Add arg for the original
17719 reference and preserve its alias-set.
17720 (decode_field_reference): Take exp by reference and adjust it
17721 to the original memory reference.
17722 (optimize_bit_field_compare): Adjust callers.
17723 (fold_truth_andor_1): Likewise.
17724 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
17726 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
17728 PR middle-end/70807
17729 * cfgrtl.h (delete_insn_and_edges): Now return bool.
17730 * cfgrtl.c (delete_insn_and_edges): Likewise.
17731 * config/i386/i386.c (convert_scalars_to_vector): Remove
17733 * cse.c (cse_insn): Compute cse_cfg_altered.
17734 (delete_trivially_dead_insns): Likewise.
17735 (cse_cc_succs): Likewise.
17736 (rest_of_handle_cse): Free dominance info if required.
17737 (rest_of_handle_cse2): Likewise.
17738 (rest_of_handle_cse_after_global_opts): Likewise.
17740 2016-05-11 Alan Modra <amodra@gmail.com>
17742 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
17743 abi_v4_pass_in_fpr): New functions.
17744 (rs6000_function_arg_boundary): Exclude complex IBM long double
17745 from 64-bit alignment when ABI_V4.
17746 (rs6000_function_arg, rs6000_function_arg_advance_1,
17747 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
17749 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
17751 PR rtl-optimization/71028
17752 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
17753 jump with just a return in the fallthrough block if the branch
17754 block contains just a return as well.
17756 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
17758 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
17759 * match.pd ((X & Y) ^ Y): ... this.
17760 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
17761 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
17763 2016-05-10 David Malcolm <dmalcolm@redhat.com>
17765 * read-md.c (require_char_ws): New function.
17766 (read_string): Simplify using require_char_ws.
17767 (handle_constants): Likewise.
17768 (handle_enum): Likewise.
17769 (handle_file): Likewise.
17770 * read-md.h (require_char_ws): New declaration.
17771 * read-rtl.c (read_conditions): Simplify using require_char_ws.
17772 (read_mapping): Likewise.
17773 (read_rtx_code): Likewise.
17774 (read_nested_rtx): Likewise.
17776 2016-05-10 James Norris <jnorris@codesourcery.com>
17778 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
17779 if offloading is enabled and -fopenacc or -fopenmp is specified.
17780 (CRTOFFLOADEND): Likewise.
17781 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
17782 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
17784 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
17786 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
17787 gotoff_operand code paths. Use copy_to_suggested_regs and
17788 expand_simple_binop where appropriate. Cleanup.
17790 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17793 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
17795 (dimode_scalar_chain::vector_const_cost): New.
17796 (dimode_scalar_chain::compute_convert_gain): Handle constants.
17797 (dimode_scalar_chain::convert_op): Likewise.
17798 (dimode_scalar_chain::convert_insn): Likewise.
17800 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
17802 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
17803 unary operation, not a binary one.
17805 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17807 PR middle-end/70877
17808 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
17809 calls with type casted fndecl.
17811 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17813 PR tree-optimization/70786
17814 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
17815 * calls.c (initialize_argument_information): Bind bounds
17816 with corresponding args passed by reference.
17818 2016-05-10 Jakub Jelinek <jakub@redhat.com>
17821 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
17822 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
17823 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
17826 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17829 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
17830 code for a zero scale factor.
17831 (vsx_xvcvdpuxds_scale): Likewise.
17833 2016-05-10 David Malcolm <dmalcolm@redhat.com>
17835 * diagnostic-show-locus.c (layout::layout): Call show_ruler
17836 if show_ruler_p was set on the context.
17837 (layout::show_ruler): New method.
17838 * diagnostic.h (struct diagnostic_context): Add field
17841 2016-05-10 Richard Biener <rguenther@suse.de>
17843 PR tree-optimization/71039
17844 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
17845 (chk_uses): New function.
17846 (propagate_with_phi): Verify we can safely replicate the lhs of an
17847 aggregate assignment on all incoming edges.
17849 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
17851 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
17853 (rx_atomic_sequence): New class.
17854 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
17855 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
17857 (rx_atomic_sequence::rx_atomic_sequence,
17858 rx_atomic_sequence::~rx_atomic_sequence): New functions.
17859 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
17860 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
17861 CTRLREG_INTB): New constants.
17862 (FETCHOP): New code iterator.
17863 (fethcop_name, fetchop_name2): New iterator code attributes.
17864 (QIHI): New mode iterator.
17865 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
17866 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
17867 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
17869 2016-05-10 Martin Liska <mliska@suse.cz>
17871 * tree-inline.c (remap_dependence_clique): Do not remap
17872 debugging statements.
17874 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17876 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
17877 ("*fixuns_truncdfdi2_z13")
17878 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
17879 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
17880 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
17882 2016-05-10 Richard Biener <rguenther@suse.de>
17884 PR tree-optimization/70497
17885 PR tree-optimization/28367
17886 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
17888 (visit_reference_op_load): ... here.
17889 (vn_reference_lookup_3): Use it to handle subreg-like accesses
17890 with simplified BIT_FIELD_REFs.
17891 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
17892 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
17895 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
17897 * dwarf2out.c (add_abstract_origin_attribute): Adjust
17898 documentation comment. For BLOCK nodes, add a
17899 DW_AT_abstract_origin attribute that points to the DIE generated
17900 for the origin BLOCK.
17901 (gen_lexical_block_die): Call add_abstract_origin_attribute for
17902 blocks from inlined functions.
17904 2016-05-10 Alan Modra <amodra@gmail.com>
17907 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
17908 regrename modifying insns saving lr before __morestack call.
17909 * config/rs6000/rs6000.md (split_stack_return): Similarly for
17910 insns restoring lr after __morestack call.
17912 2016-05-09 Jakub Jelinek <jakub@redhat.com>
17914 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
17915 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
17917 * config/i386/sse.md (vec_interleave_high<mode>,
17918 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
17919 <avx512>_vpermt2var<mode>3_maskz): Likewise.
17921 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17923 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
17924 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
17925 parallel reassociation for power8 and forward.
17927 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
17929 * config/i386/i386.md (absneg splitters with general regs): Use
17930 general_reg_operand predicate.
17931 (btsq peephole2): Use x86_64_immediate_operand to check if new
17932 value is suitable for immediate operand. Generate emitted insn
17933 using RTL expressions.
17934 (btcq peephole2): Ditto.
17935 (btrq peephole2): Ditto. Generate correct immediate operand
17938 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
17940 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
17943 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
17945 * tree-affine.c (wide_int_constant_multiple_p): Add missing
17946 pointer dereference.
17948 2016-05-09 Richard Biener <rguenther@suse.de>
17950 PR tree-optimization/70985
17951 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
17952 op0 isn't a gimple register.
17954 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
17956 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
17957 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
17958 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
17959 (i6400_fpu_mult): New cpu units.
17960 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
17961 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
17962 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
17963 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
17964 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
17965 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
17966 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
17967 (i6400_msa_long_float4, i6400_msa_long_float5)
17968 (i6400_msa_long_float8, i6400_msa_fdiv_df)
17969 (i6400_msa_fdiv_sf): New reservations.
17970 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
17971 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
17972 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
17973 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
17974 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
17975 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
17976 (msa_short_cmp, msa_short_float2, msa_short_logic3)
17977 (msa_short_store4, msa_long_load, msa_short_store)
17978 (msa_long_logic, msa_long_float2, msa_long_float4)
17979 (msa_long_float5, msa_long_float8, msa_long_mult)
17980 (msa_long_fdiv, msa_long_div): New reservations.
17982 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
17983 Sameera Deshpande <sameera.deshpande@imgtec.com>
17984 Matthew Fortune <matthew.fortune@imgtec.com>
17985 Graham Stott <graham.stott@imgtec.com>
17986 Chao-ying Fu <chao-ying.fu@imgtec.com>
17988 * config.gcc: Add MSA header file for mips*-*-* target.
17989 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
17990 (Ubv8i, Urv8): New constraints.
17991 * config/mips/mips-ftypes.def: Add function types for MSA
17993 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
17994 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
17995 * config/mips/mips-msa.md: New file.
17996 * config/mips/mips-protos.h
17997 (mips_split_128bit_const_insns): New prototype.
17998 (mips_msa_idiv_insns): Likewise.
17999 (mips_split_128bit_move): Likewise.
18000 (mips_split_128bit_move_p): Likewise.
18001 (mips_split_msa_copy_d): Likewise.
18002 (mips_split_msa_insert_d): Likewise.
18003 (mips_split_msa_fill_d): Likewise.
18004 (mips_expand_msa_branch): Likewise.
18005 (mips_const_vector_same_val_p): Likewise.
18006 (mips_const_vector_same_bytes_p): Likewise.
18007 (mips_const_vector_same_int_p): Likewise.
18008 (mips_const_vector_shuffle_set_p): Likewise.
18009 (mips_const_vector_bitimm_set_p): Likewise.
18010 (mips_const_vector_bitimm_clr_p): Likewise.
18011 (mips_msa_vec_parallel_const_half): Likewise.
18012 (mips_msa_output_division): Likewise.
18013 (mips_ldst_scaled_shift): Likewise.
18014 (mips_expand_vec_cond_expr): Likewise.
18015 * config/mips/mips.c (enum mips_builtin_type): Add
18016 MIPS_BUILTIN_MSA_TEST_BRANCH.
18017 (mips_gen_const_int_vector_shuffle): New prototype.
18018 (mips_const_vector_bitimm_set_p): New function.
18019 (mips_const_vector_bitimm_clr_p): Likewise.
18020 (mips_const_vector_same_val_p): Likewise.
18021 (mips_const_vector_same_bytes_p): Likewise.
18022 (mips_const_vector_same_int_p): Likewise.
18023 (mips_const_vector_shuffle_set_p): Likewise.
18024 (mips_symbol_insns): Forbid loading symbols via immediate for
18026 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
18028 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
18030 (mips_lx_address_p): Add support load indexed address for MSA.
18031 (mips_address_insns): Add calculation of instructions needed for
18032 stores and loads for MSA.
18033 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
18034 CONST_VECTOR for MSA and let it fall through.
18035 (mips_ldst_scaled_shift): New function.
18036 (mips_subword_at_byte): Likewise.
18037 (mips_msa_idiv_insns): Likewise.
18038 (mips_legitimize_move): Validate MSA moves.
18039 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
18040 calculation of costs for MSA division.
18041 (mips_split_move_p): Check if MSA moves need splitting.
18042 (mips_split_move): Split MSA moves if necessary.
18043 (mips_split_128bit_move_p): New function.
18044 (mips_split_128bit_move): Likewise.
18045 (mips_split_msa_copy_d): Likewise.
18046 (mips_split_msa_insert_d): Likewise.
18047 (mips_split_msa_fill_d): Likewise.
18048 (mips_output_move): Handle MSA moves.
18049 (mips_expand_msa_branch): New function.
18050 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
18051 Reinstate 'y' modifier.
18052 (mips_file_start): Add MSA .gnu_attribute.
18053 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
18055 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
18056 (mips_class_max_nregs): Add register size for MSA supported mode.
18057 (mips_cannot_change_mode_class): Allow conversion between MSA
18058 vector modes and TImode.
18059 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
18061 (mips_secondary_reload_class): Force MSA loads/stores via memory.
18062 (mips_preferred_simd_mode): Add preffered modes for MSA.
18063 (mips_vector_mode_supported_p): Add MSA supported modes.
18064 (mips_autovectorize_vector_sizes): New function.
18065 (mips_msa_output_division): Likewise.
18066 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
18067 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
18068 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
18069 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
18070 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
18071 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
18072 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
18073 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
18074 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
18075 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
18076 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
18077 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
18078 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
18079 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
18080 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
18081 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
18082 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
18083 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
18084 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
18085 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
18086 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
18087 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
18088 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
18089 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
18090 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
18091 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
18092 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
18093 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
18094 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
18095 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
18096 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
18097 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
18098 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
18099 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
18100 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
18101 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
18102 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
18103 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
18104 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
18105 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
18106 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
18107 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
18108 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
18109 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
18110 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18111 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18112 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18113 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18114 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18115 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18116 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18117 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18118 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
18119 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
18120 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
18121 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
18122 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
18123 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
18124 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
18125 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
18126 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
18127 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
18128 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
18129 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
18130 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
18131 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
18132 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
18133 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
18134 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
18135 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
18136 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
18137 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
18138 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
18139 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
18140 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
18141 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
18142 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
18143 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
18144 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
18145 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
18146 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
18147 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
18148 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
18149 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
18150 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
18151 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
18152 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
18153 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
18154 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
18155 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
18156 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
18157 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
18158 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
18159 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
18160 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
18161 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
18162 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
18163 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
18164 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
18165 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
18166 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
18167 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
18168 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
18169 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
18170 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
18171 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
18172 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
18173 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
18174 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
18175 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
18176 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
18177 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
18178 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
18179 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
18180 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
18181 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
18182 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
18183 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
18184 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
18185 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
18186 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
18187 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
18188 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
18189 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
18190 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
18191 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
18192 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
18193 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
18194 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
18195 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
18196 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
18197 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
18198 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
18199 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
18200 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
18201 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
18202 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
18203 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
18204 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
18205 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
18206 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
18207 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
18208 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
18209 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
18210 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
18211 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
18212 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
18213 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
18214 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
18215 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
18216 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
18218 (mips_get_builtin_decl_index): New array.
18219 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
18220 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
18221 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
18222 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
18223 (mips_init_builtins): Initialize mips_get_builtin_decl_index
18225 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
18227 (mips_expand_builtin_insn): Prepare operands for
18228 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
18229 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
18230 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
18231 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
18232 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
18233 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
18234 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
18235 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
18236 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
18237 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
18238 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
18239 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
18240 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
18241 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
18242 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
18243 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
18244 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
18245 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
18246 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
18247 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
18248 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
18249 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
18250 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
18251 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
18252 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
18253 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
18254 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
18255 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
18256 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
18257 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
18258 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
18259 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
18260 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
18261 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
18262 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
18263 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
18264 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
18265 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
18266 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
18267 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
18268 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
18269 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
18270 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
18271 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
18272 These are set implicitly and an error is reported if overridden.
18273 (mips_expand_builtin_msa_test_branch): New function.
18274 (mips_expand_msa_shuffle): Likewise.
18275 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
18276 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
18277 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
18278 (mips_expand_vec_unpack): Add support for MSA.
18279 (mips_expand_vector_init): Likewise.
18280 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
18281 instead of const0_rtx.
18282 (mips_msa_vec_parallel_const_half): New function.
18283 (mips_gen_const_int_vector): Likewise.
18284 (mips_gen_const_int_vector_shuffle): Likewise.
18285 (mips_expand_msa_cmp): Likewise.
18286 (mips_expand_vec_cond_expr): Likewise.
18287 * config/mips/mips.h
18288 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
18289 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
18291 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
18292 (ISA_HAS_MSA): New macro.
18293 (UNITS_PER_MSA_REG): Likewise.
18294 (BITS_PER_MSA_REG): Likewise.
18295 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
18296 (MSA_REG_FIRST): New macro.
18297 (MSA_REG_LAST): Likewise.
18298 (MSA_REG_NUM): Likewise.
18299 (MSA_REG_P): Likewise.
18300 (MSA_REG_RTX_P): Likewise.
18301 (MSA_SUPPORTED_MODE_P): Likewise.
18302 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
18303 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
18304 * config/mips/mips.md: Include mips-msa.md.
18305 (alu_type): Add simd_add.
18306 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
18307 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
18308 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
18309 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
18310 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
18311 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
18312 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
18313 simd_move, simd_load, simd_store. Choose "multi" for moves
18315 (qword_mode): New attribute.
18316 (insn_count): Add instruction count for quad moves.
18317 Increase the count for MIPS SIMD division.
18318 (UNITMODE): Add UNITMODEs for vector types.
18319 (addsub): New code iterator.
18320 * config/mips/mips.opt (mmsa): New option.
18321 * config/mips/msa.h: New file.
18322 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
18324 * config/mips/mti-linux.h: Likewise.
18325 * config/mips/predicates.md
18326 (const_msa_branch_operand): New constraint.
18327 (const_uimm3_operand): Likewise.
18328 (const_uimm4_operand): Likewise.
18329 (const_uimm5_operand): Likewise.
18330 (const_uimm8_operand): Likewise.
18331 (const_imm5_operand): Likewise.
18332 (aq10b_operand): Likewise.
18333 (aq10h_operand): Likewise.
18334 (aq10w_operand): Likewise.
18335 (aq10d_operand): Likewise.
18336 (const_m1_operand): Likewise.
18337 (reg_or_m1_operand): Likewise.
18338 (const_exp_2_operand): Likewise.
18339 (const_exp_4_operand): Likewise.
18340 (const_exp_8_operand): Likewise.
18341 (const_exp_16_operand): Likewise.
18342 (const_vector_same_val_operand): Likewise.
18343 (const_vector_same_simm5_operand): Likewise.
18344 (const_vector_same_uimm5_operand): Likewise.
18345 (const_vector_same_uimm6_operand): Likewise.
18346 (const_vector_same_uimm8_operand): Likewise.
18347 (par_const_vector_shf_set_operand): Likewise.
18348 (reg_or_vector_same_val_operand): Likewise.
18349 (reg_or_vector_same_simm5_operand): Likewise.
18350 (reg_or_vector_same_uimm6_operand): Likewise.
18351 * doc/extend.texi (MIPS SIMD Architecture Functions): New
18353 * doc/invoke.texi (-mmsa): Document new option.
18355 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18357 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
18358 * configure: Regenerate.
18359 * config.in: Regenerate.
18360 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
18361 on -fvtable-verify.
18362 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
18363 (ENDFILE_VTV_SPEC): Define.
18365 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
18367 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
18368 registers in all interrupt handlers if necessary.
18369 (rl78_option_override): Add warning.
18370 (MUST_SAVE_MDUC_REGISTERS): New macro.
18371 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
18372 * config/rl78/rl78.c (check_mduc_usage): New function.
18373 (mduc_regs): New structure to hold MDUC register data.
18374 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
18375 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
18376 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
18377 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
18378 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
18379 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
18381 2016-05-09 Bin Cheng <bin.cheng@arm.com>
18383 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
18384 (tree-ssa-loop-niter.h): Ditto.
18385 (idx_within_array_bound, ref_within_array_bound): New functions.
18386 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
18387 Factor out check on writable base object to ...
18388 (base_object_writable): ... here.
18390 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18392 * config/arm/arm.md (probe_stack): Add modes to set source
18395 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
18397 * regrename.c (base_reg_class_for_rename): New static function.
18398 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
18400 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
18402 * cgraph.c (thunk_adjust): Export.
18403 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
18404 * cgraphunit.c (thunk_adjust): Export.
18405 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
18407 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
18409 * tree-inline.c (expand_call_inline): Expand thunks inline.
18411 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
18414 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
18415 (*sse2_vd_cvtss2sd): Ditto.
18416 * config/i386/i386.md
18417 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
18418 Generate *sse2_vd_cvtsd2ss pattern.
18419 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
18420 Generate *sse2_vd_cvtss2sd pattern.
18422 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18424 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
18425 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
18428 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18430 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
18431 * config/sh/sh.c: Define and declare variables on first use throughout
18433 (current_function_interrupt): Change to bool type.
18434 (frame_insn): Rename to emit_frame_insn and update users.
18435 (push_regs): Use bool for 'interrupt_handler' argument.
18436 (save_schedule_s): Remove.
18437 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
18438 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
18439 targetm.asm_out.unaligned_op.di.
18440 (gen_far_branch): Remove redundant forward declaration.
18441 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
18442 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
18443 (sh_set_return_address, sh_function_ok_for_sibcall,
18444 scavenge_reg): Update comments.
18445 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
18446 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
18447 (sh_attr_renesas_p): Remove unnecessary parentheses.
18448 (branch_dest): Simplify.
18449 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
18450 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
18451 (CUMULATIVE_ARGS): Change macro to typedef.
18452 (current_function_interrupt): Change to bool type.
18453 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
18454 Surround with __cplusplus ifdef.
18455 (sh_compare_op0, sh_compare_op1): Remove.
18456 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
18458 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
18460 * config/arm/arm.md: (arch): Add neon.
18461 (arch_enabled): Return yes for arch neon when TARGET_NEON.
18462 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
18463 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
18464 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
18465 attributes for alt renumbering. Mark alt 3 as non-predicable.
18466 (thumb2_movdf_vfp): Likewise.
18468 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
18470 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
18471 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
18472 (*andqi_1): Add preferred_for_speed attribute to disparage
18473 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
18474 (*<code>qi_1): Ditto.
18475 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
18476 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
18477 (*ashlqi3_1): Ditto.
18478 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
18479 Add preferred_for_size attribute to disparage alternative 0 and
18480 preferred_for_speed attribute to disparage alternative 1 for
18481 TARGET_PARTIAL_REG_STALL targets.
18483 2016-05-07 Tom de Vries <tom@codesourcery.com>
18485 PR tree-optimization/70956
18486 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
18489 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18491 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
18492 * config/sh/sh.c (sh_cbranch_distance): Implement it.
18493 * config/sh/sh.md (branch_zero): Remove define_attr.
18494 (define_delay): Disable delay slot if branch distance is one insn.
18496 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18498 * config/i386/i386.md (LEAMODE): New mode attribute.
18499 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
18500 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
18501 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
18502 operand 2 predicate.
18503 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
18504 (*lea<mode>_general_3): Ditto.
18505 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
18507 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18509 * genmddump.c (main): Convert argv from char ** to const char **.
18511 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18513 * coretypes.h (OVERRIDE): New macro.
18514 (FINAL): New macro.
18516 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
18518 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
18519 allow coalescing if the types are compatible.
18521 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18523 * pass_manager.h (pass_manager::register_pass_name): New method.
18524 (pass_manager::get_pass_by_name): New method.
18525 (pass_manager::create_pass_tab): New method.
18526 (pass_manager::m_name_to_pass_map): New field.
18527 * passes.c (name_to_pass_map): Delete global in favor of field
18528 "m_name_to_pass_map" of pass_manager.
18529 (register_pass_name): Rename from a function to...
18530 (pass_manager::register_pass_name): ...this method, updating
18531 for renaming of global "name_to_pass_map" to field
18532 "m_name_to_pass_map".
18533 (create_pass_tab): Rename from a function to...
18534 (pass_manager::create_pass_tab): ...this method, updating
18535 for renaming of global "name_to_pass_map" to field.
18536 (get_pass_by_name): Rename from a function to...
18537 (pass_manager::get_pass_by_name): ...this method.
18538 (enable_disable_pass): Convert use of get_pass_by_name to
18539 a method call, locating the pass_manager singleton.
18541 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18543 * genattr-common.c (main): Convert argv from char ** to const char **.
18544 * genattr.c (main): Likewise.
18545 * genattrtab.c (main): Likewise.
18546 * genautomata.c (initiate_automaton_gen): Likewise.
18548 * gencodes.c (main): Likewise.
18549 * genconditions.c (main): Likewise.
18550 * genconfig.c (main): Likewise.
18551 * genconstants.c (main): Likewise.
18552 * genemit.c (main): Likewise.
18553 * genenums.c (main): Likewise.
18554 * genextract.c (main): Likewise.
18555 * genflags.c (main): Likewise.
18556 * genmddeps.c (main): Likewise.
18557 * genopinit.c (main): Likewise.
18558 * genoutput.c (main): Likewise.
18559 * genpeep.c (main): Likewise.
18560 * genpreds.c (main): Likewise.
18561 * genrecog.c (main): Likewise.
18562 * gensupport.c (init_rtx_reader_args_cb): Likewise.
18563 (init_rtx_reader_args): Likewise.
18564 * gensupport.h (init_rtx_reader_args_cb): Likewise.
18565 (init_rtx_reader_args): Likewise.
18566 * gentarget-def.c (main): Likewise.
18567 * read-md.c (read_md_files): Likewise.
18568 * read-md.h (read_md_files): Likewise.
18570 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18572 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
18573 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
18574 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
18575 Remove unused predicate.
18576 (register_and_not_fp_reg_operand): Ditto.
18578 2016-05-06 Martin Liska <mliska@suse.cz>
18580 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
18581 instead of vec as the vector is local to the function.
18583 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18585 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
18586 avx512bw alternative.
18588 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
18589 before the ashr<mode>3 pattern.
18591 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
18592 v instead of x in vex or maybe_vex alternatives, use
18593 maybe_evex instead of vex in prefix.
18595 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
18596 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
18597 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
18598 in vex or maybe_vex alternatives, use maybe_evex instead of vex
18601 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
18602 v instead of x in vex or maybe_vex alternatives, use
18603 maybe_evex instead of vex in prefix.
18605 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
18606 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
18607 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
18608 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
18609 alternatives, use maybe_evex instead of vex in prefix.
18611 * config/i386/sse.md (vec_interleave_lowv4sf,
18612 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
18613 v instead of x in vex or maybe_vex alternatives, use
18614 maybe_evex instead of vex in prefix.
18616 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
18617 v instead of x in vex or maybe_vex alternatives, use
18618 maybe_evex instead of vex in prefix.
18620 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
18621 v constraint instead of x.
18623 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
18625 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
18626 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
18629 2016-05-06 Richard Biener <rguenther@suse.de>
18631 PR tree-optimization/70948
18632 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18633 Properly clobber all fields of va_list for __builtin_va_start.
18635 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18638 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
18639 loop latch destination.
18641 2016-05-06 Martin Liska <mliska@suse.cz>
18643 * tree-ssa-uninit.c: Apply manual changes
18644 to the GNU coding style.
18645 (prune_uninit_phi_opnds): Rename from
18646 prune_uninit_phi_opnds_in_unrealizable_paths.
18648 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18650 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
18651 mspace): Remove deprecated options.
18652 * doc/invoke.texi (SH options): Remove -mspace.
18654 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18656 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
18658 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18660 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
18661 corresponding combine split pattern.
18663 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18666 * config/sh/predicates.md (long_displacement_mem_operand): New.
18667 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
18668 Add movi20, movi20s alternatives. Adjust length attribute for
18670 (movsi_ie): Allow for any FPU. Adjust length attribute for
18672 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
18673 attribute for alternatives.
18674 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
18675 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
18676 length attribute for alternatives.
18678 2016-05-06 Richard Biener <rguenther@suse.de>
18680 PR tree-optimization/70960
18681 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
18683 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18686 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
18687 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
18689 2016-05-06 Marek Polacek <polacek@redhat.com>
18692 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
18694 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18697 * config/sh/sh.md (*rotcr): Add another variant.
18699 2016-05-06 Richard Biener <rguenther@suse.de>
18701 PR middle-end/70931
18702 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
18704 2016-05-06 Richard Biener <rguenther@suse.de>
18706 PR middle-end/70941
18707 * fold-const.c (split_tree): Always convert to the original type
18710 2016-05-06 Richard Biener <rguenther@suse.de>
18712 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
18713 (fwprop_addr): Likewise.
18715 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18718 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
18720 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
18721 * config/i386/i386.md (push mem splitter): Use find_constant_src in
18722 the splitter condition.
18723 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
18724 the splitter condition.
18725 (FP float_extend load splitter): Ditto.
18727 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
18729 * config/i386/i386.md (peehole2 patterns): Change true_regnum
18730 to REGNO in all peephole2 patterns.
18731 (post-reload splitters): Change true_regnum to REGNO in
18732 post-reload splitters.
18733 (zero_extend splitters): Use general_reg_operand and
18734 nonimmediate_gr_operand predicates.
18736 2016-05-05 Jakub Jelinek <jakub@redhat.com>
18738 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
18739 v constraint instead of x.
18741 2016-05-05 Alan Modra <amodra@gmail.com>
18744 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
18745 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
18746 TARGET_NO_FP_IN_TOC for -mrelocatable.
18747 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
18748 TARGET_RELOCATABLE test.
18749 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18750 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18751 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18752 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18753 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18754 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18755 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18756 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18757 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
18758 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18760 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
18761 (rs6000_stack_info): Likewise.
18762 (rs6000_elf_asm_out_constructor): Likewise.
18763 (rs6000_elf_asm_out_destructor): Likewise.
18764 (rs6000_elf_declare_function_name): Likewise.
18765 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
18766 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
18769 2016-05-05 Alan Modra <amodra@gmail.com>
18771 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
18773 2016-05-05 Alan Modra <amodra@gmail.com>
18775 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
18776 out-of-line gpr restore for one or two regs if that would add
18779 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
18782 * config/i386/i386.md
18783 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
18784 Change to post-epilogue_completed late splitter. Use sse_reg_operand
18785 as operand 0 predicate.
18786 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
18788 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
18789 Ditto. Emit the pattern using RTX.
18791 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
18792 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
18793 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
18794 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
18796 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
18797 sse_reg_operand as operand 0 predicate.
18799 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
18800 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
18801 instead of gen_rtx_REG.
18802 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
18805 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18807 * function.c (emit_use_return_register_into_block): Delete.
18808 (gen_return_pattern): Delete.
18809 (emit_return_into_block): Delete.
18810 (active_insn_between): Delete.
18811 (convert_jumps_to_returns): Delete.
18812 (emit_return_for_exit): Delete.
18813 (thread_prologue_and_epilogue_insns): Delete all code dealing with
18814 simple_return for shrink-wrapped blocks.
18815 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
18816 end of blocks that need one.
18817 (get_unconverted_simple_return): Delete.
18818 (convert_to_simple_return): Delete.
18819 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
18820 (convert_to_simple_return): Ditto.
18822 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18824 * cfgcleanup.c (bb_is_just_return): New function.
18825 (try_optimize_cfg): Simplify jumps to return, branches to return,
18826 and branches around return.
18828 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18830 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
18831 branch to a return.
18833 2016-05-04 Jakub Jelinek <jakub@redhat.com>
18837 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
18838 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
18839 assert flags & OEP_HASH_CHECK, instead of asserting it
18840 never happens. Handle TARGET_EXPR.
18841 * fold-const.c (operand_equal_p): For hash verification,
18842 or in OEP_HASH_CHECK into flags.
18844 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
18846 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
18848 (compute_samebase_partition_bases): Fix typo.
18850 2016-05-04 Jakub Jelinek <jakub@redhat.com>
18852 * config/i386/sse.md (vec_interleave_highv8sf,
18853 vec_interleave_lowv8sf, vec_interleave_highv4df,
18854 vec_interleave_lowv4df): Remove constraints from expanders.
18856 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
18858 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
18860 * tree-inline.c (expand_call_inline): Fix path dealing with
18861 making lhs of call statement undefined.
18863 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
18865 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18866 Check availability on NODE, too.
18867 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
18868 (cgraph_node::call_for_symbol_and_aliases): Likewise.
18869 (varpool_node::call_for_symbol_and_aliase): Likewise.
18870 * ipa-pure-const.c (add_new_function): Analyze all bodies.
18871 (propagate_pure_const): Propagate across interposable functions, too.
18872 (skip_function_for_local_pure_const): Do not skip interposable bodies
18874 (pass_local_pure_const::execute): Update.
18876 2016-05-04 Marek Polacek <polacek@redhat.com>
18878 * doc/invoke.texi: Document -Wdangling-else.
18880 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18882 * config.gcc: Error out when conflicting multilib is detected. Do not
18883 loop over multilibs since no combination is legal.
18885 2016-05-04 Alan Modra <amodra@gmail.com>
18887 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
18888 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
18889 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18892 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
18894 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
18895 Clean up p5600 comments.
18897 2016-05-04 Richard Biener <rguenther@suse.de>
18899 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
18900 constructor simplifications.
18901 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
18903 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
18905 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
18906 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
18907 result.set_rtx is null instead of aborting.
18908 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
18910 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
18911 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
18912 *mov<mode>_store_postinc): New patterns.
18914 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
18916 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
18917 as commutative. Check both conversions are NOP.
18918 ((A & B) OP (C & B)): Remove.
18920 2016-05-04 Alan Modra <amodra@gmail.com>
18922 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
18924 2016-05-04 Alan Modra <amodra@gmail.com>
18927 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
18928 when cr2,3,4 are all fixed regs.
18930 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
18932 PR rtl-optimization/57193
18933 * opts.c (default_options_table): Revert OPT_frename_registers change.
18934 * doc/invoke.texi (-frename-registers, -O2): Likewise.
18936 2016-05-03 Martin Sebor <msebor@redhat.com>
18939 * builtins.c (fold_builtin_FILE): New function.
18940 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
18941 (fold_builtin_0): Call them.
18942 * gimplify.c (gimplify_call_expr): Remove the handling of
18943 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
18946 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
18947 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
18951 * doc/extend.texi (Function Names as Strings): Update __func__,
18952 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
18955 2016-05-03 Jakub Jelinek <jakub@redhat.com>
18956 Richard Biener <rguenther@suse.de>
18958 PR tree-optimization/70916
18959 * tree-if-conv.c: Include cfganal.h.
18960 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
18961 and remove_fake_exit_edges around the optimization pass.
18963 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
18965 * cgraph.c (symbol_table::create_edge): Set inline_failed.
18966 (cgraph_edge::make_direct): Likewise.
18967 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
18968 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
18969 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
18970 (CIF_THUNK): New code.
18971 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
18972 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
18973 (compute_inline_parameters): Set inline_failed for thunks.
18974 (inline_analyze_function): Cleanup.
18975 * ipa-inline.c (can_inline_edge_p): Do not deal with
18976 call_stmt_cannot_inline_p.
18977 (can_early_inline_edge_p): Likewise.
18978 (early_inliner): Initialize inline_failed.
18979 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
18981 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
18983 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
18984 from nonimm_ssenomem_operand.
18985 (nonimm_ssenomem_operand): New predicate.
18986 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
18987 as operand 0 predicate.
18988 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
18989 Disable unsupported alternatives using "enabled" attribute.
18990 Use register_ssemem_operand as operand 0 predicate.
18991 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
18993 2016-05-03 Marek Polacek <polacek@redhat.com>
18996 * input.c (expansion_point_location): New function.
18997 * input.h (expansion_point_location): Declare.
18999 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
19001 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
19002 occurence with frame_offset_ ones.
19004 2016-05-03 Alan Modra <amodra@gmail.com>
19006 PR rtl-optimization/70890
19007 * ira.c (combine_and_move_insns): When moving def_insn, remove
19008 equivs on use_insn.
19010 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
19012 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
19013 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
19014 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
19015 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
19017 2016-05-03 Alan Modra <amodra@gmail.com>
19019 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
19020 for SAVE_MULTIPLE/STORE_MULTIPLE.
19022 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19024 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
19025 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
19027 2016-05-03 Richard Biener <rguenther@suse.de>
19029 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
19031 (gimplify_arg): Likewise.
19032 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
19033 re-writing the result to a decl if required.
19034 (internal_get_tmp_var): Add allow_ssa parameter
19035 and override into_ssa with it.
19036 (get_formal_tmp_var): Adjust.
19037 (get_initialized_tmp_var): Add allow_ssa parameter.
19038 (gimplify_arg): Add allow_ssa parameter and avoid generating
19039 SSA names for the result false.
19040 (gimplify_call_expr): If the call may return twice do not
19041 gimplify parameters into SSA.
19042 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
19043 (gimplify_modify_expr): Adjust assert. For noreturn calls
19044 with a SSA name LHS adjust its def.
19045 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
19046 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
19047 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
19048 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
19049 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
19050 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
19051 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
19052 (optimize_target_teams): Do not allow SSA names for clause operands.
19053 (gimplify_expr): Likewise for where we mark the result addressable.
19054 * passes.def (pass_init_datastructures): Remove.
19055 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
19056 (rewrite_stmt): Likewise.
19057 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
19058 (replace_locals_op): Replace SSA names.
19059 (copy_gimple_seq_and_replace_locals): Init src_cfun.
19060 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
19061 * cgraph.c (release_function_body): Free CFG annotations only
19062 when we have a CFG. Simplify.
19063 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
19064 force_gimple_operand instead of get_initialized_tmp_var.
19065 * tree-pass.h (make_pass_init_datastructures): Remove.
19066 * tree-ssa.c (execute_init_datastructures): Remove.
19067 (pass_data_init_datastructures): Likewise.
19068 (class pass_init_datastructures): Likewise.
19069 (make_pass_init_datastructures): Likewise.
19070 * omp-low.c (create_omp_child_function): Init SSA data structures.
19071 (grid_expand_target_grid_body): Likewise.
19072 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
19073 name before adding it to names_to_release.
19074 (remove_bb): Always release SSA defs.
19075 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
19076 before dereferencing it.
19077 * cgraphunit.c (init_lowered_empty_function): Always
19078 int SSA data structures.
19079 * tree-ssanames.c (release_defs): Remove assert that we are in
19081 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
19083 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19084 Uros Bizjak <ubizjak@gmail.com>
19086 PR rtl-optimization/70467
19087 * config/i386/predicates.md (x86_64_hilo_int_operand,
19088 x86_64_hilo_general_operand): New predicates.
19089 * config/i386/constraints.md (Wd): New constraint.
19090 * config/i386/i386.md (mode attr di): Use Wd instead of e.
19091 (general_hilo_operand): New mode attr.
19092 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
19093 instead of <general_operand>.
19094 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
19095 x86_64_hilo_general_operand instead of <general_operand>.
19097 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19099 PR tree-optimization/70916
19100 * tree-if-conv.c (constant_or_ssa_name): Removed.
19101 (fold_build_cond_expr): Use is_gimple_val instead of
19102 constant_or_ssa_name.
19104 PR tree-optimization/70916
19105 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
19106 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
19109 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
19110 (optimize_atomic_bit_test_and): New function.
19111 (pass_fold_builtins::execute): Use it.
19112 * optabs.def (atomic_bit_test_and_set_optab,
19113 atomic_bit_test_and_complement_optab,
19114 atomic_bit_test_and_reset_optab): New optabs.
19115 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
19116 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
19117 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
19118 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
19119 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
19120 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
19121 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
19122 * doc/md.texi (atomic_bit_test_and_set@var{mode},
19123 atomic_bit_test_and_complement@var{mode},
19124 atomic_bit_test_and_reset@var{mode}): Document.
19125 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
19126 atomic_bit_test_and_complement<mode>,
19127 atomic_bit_test_and_reset<mode>): New expanders.
19128 (atomic_bit_test_and_set<mode>_1,
19129 atomic_bit_test_and_complement<mode>_1,
19130 atomic_bit_test_and_reset<mode>_1): New insns.
19132 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
19134 PR rtl-optimization/70687
19135 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
19136 instead of unsigned HOST_WIDE_INT.
19138 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
19140 PR rtl-optimization/44281
19141 * hard-reg-set.h (struct target_hard_regs): New field
19142 x_fixed_nonglobal_reg_set.
19143 (fixed_nonglobal_reg_set): New macro.
19144 * reginfo.c (init_reg_sets_1): Initialize it.
19145 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
19147 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
19149 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19151 PR tree-optimization/56541
19152 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
19153 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
19154 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
19155 (any_complicated_phi): new static variable.
19156 (aggressive_if_conv): delete.
19157 (if_convertible_phi_p): support phis with more than two arguments.
19158 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
19159 critical pred edges.
19160 (ifcvt_split_critical_edges): support phis with more than two
19161 arguments by checking new parameter. only split critical edges
19163 (tree_if_conversion): handle simd pragma marked loop using new
19164 local variable aggressive_if_conv. check any_complicated_phi.
19166 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19168 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
19171 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19173 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
19176 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19178 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
19179 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
19180 define_insn_and_split.
19181 (mulsi3_i): New define_insn_and_split.
19182 (mulsi3_call): Convert to define_insn.
19183 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
19184 Remove constraints.
19186 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19188 * machmode.h (mode_complex): Add support to give the complex mode
19190 (GET_MODE_COMPLEX_MODE): Likewise.
19191 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
19192 stored by build_complex_type and gfc_build_complex_type instead of
19193 trying to figure out the appropriate mode based on the size. Raise
19194 an assertion error, if the type was not set.
19195 * genmodes.c (struct mode_data): Add field for the complex type of
19197 (blank_mode): Likewise.
19198 (make_complex_modes): Remember the complex mode created in the
19200 (emit_mode_complex): Write out the mode_complex array to map a
19201 type mode to the complex version.
19202 (emit_insn_modes_c): Likewise.
19203 * tree.c (build_complex_type): Set the complex type to use before
19204 calling layout_type.
19205 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
19206 support for __float128 complex datatypes.
19207 (rs6000_hard_regno_mode_ok): Likewise.
19208 (rs6000_setup_reg_addr_masks): Likewise.
19209 (rs6000_complex_function_value): Likewise.
19210 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
19211 __float128 and __ibm128 complex.
19212 (FLOAT128_IBM_P): Likewise.
19213 (ALTIVEC_ARG_MAX_RETURN): Likewise.
19214 * doc/extend.texi (Additional Floating Types): Document that
19215 -mfloat128 must be used to enable __float128. Document complex
19216 __float128 and __ibm128 support.
19218 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19221 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
19222 char/short arguments promoted to int because of promote_prototypes.
19224 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19226 * config/i386/predicates.md (register_ssemem_operand): New predicate.
19227 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
19228 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
19229 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
19230 alternatives using "enabled" attribute. Use register_ssemem_operand
19231 as operand 1 predicate.
19232 (*cmpi<unord>xf_i387): Split XFmode pattern from
19233 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
19234 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
19235 *absneg<mode>2_i387. Disable unsupported alternatives using
19236 "enabled" attribute.
19237 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
19239 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19241 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
19243 (oacc_loop_process): Check mask for loop termination.
19245 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19247 * cif-code.def (CIF_THUNK): Add.
19248 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
19251 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19253 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
19254 (dump_inline_summary): Dump it.
19255 (fp_expression_p): New predicate.
19256 (estimate_function_body_sizes): Use it.
19257 (inline_merge_summary): Merge fp_expressions.
19258 (inline_read_section): Read fp_expressions.
19259 (inline_write_summary): Write fp_expressions.
19260 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
19261 codegen boundary if either caller or callee is !fp_expressions.
19262 * ipa-inline.h (inline_summary): Add fp_expressions.
19263 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
19264 to fp_expressions be sure the fp generation flags are updated.
19266 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19268 PR rtl-optimization/70467
19269 * cse.c (cse_insn): Handle no-op MEM moves after folding.
19271 PR rtl-optimization/70467
19272 * ipa-pure-const.c (check_call): Handle internal calls even in
19273 ipa mode like in local mode.
19275 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19277 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
19279 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19281 * match.pd (X u< X, X u> X): New transformations.
19283 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19285 * flag-types.h (enum warn_strict_overflow_code): Move ...
19286 * coretypes.h: ... here.
19287 * fold-const.h (fold_overflow_warning): Declare.
19288 * fold-const.c (fold_overflow_warning): Make non-static.
19289 (fold_comparison): Move the transformation of X +- C1 CMP C2
19290 into X CMP C2 -+ C1 ...
19291 * match.pd: ... here.
19292 * gimple-fold.c (fold_stmt_1): Protect with
19293 fold_defer_overflow_warnings.
19295 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19297 * omp-low.c (struct oacc_loop): Add 'inner' field.
19298 (new_oacc_loop_raw): Initialize it to zero.
19299 (oacc_loop_fixed_partitions): Initialize it.
19300 (oacc_loop_auto_partitions): Partition outermost loop to outermost
19301 available partitioning.
19303 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19305 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
19307 (umulsidi3): Likewise.
19308 (indirect_jump): Fix jump instruction assembly patterns.
19310 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
19313 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
19314 (nvptx_function_value): Assert non-NULL cfun.
19316 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
19318 PR rtl-optimization/70886
19319 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
19321 * cselib.h (rtx_equal_for_cselib_1): Declare.
19322 (rtx_equal_for_cselib_p: New inline function.
19323 * cselib.c (rtx_equal_for_cselib_p): Delete.
19324 (rtx_equal_for_cselib_1): Make public.
19326 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19328 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
19329 (register_mixssei387nonimm_operand): Remove predicate.
19330 * config/i386/i386.md (*fop_<mode>_comm): Merge from
19331 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
19332 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
19333 for TARGET_MIX_SSE_I387 alternatives.
19334 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
19335 Disable unsupported alternatives using "enabled" attribute. Use
19336 nonimm_ssenomem_operand as operand 1 predicate. Also check
19337 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
19339 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19341 * tree.c (cst_and_fits_in_hwi): Simplify.
19343 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19345 * tree.h (wi::to_wide): New function.
19346 * expr.c (expand_expr_real_1): Use wi::to_wide.
19347 * fold-const.c (int_const_binop_1): Likewise.
19348 (extract_muldiv_1): Likewise.
19350 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19352 * wide-int.h: Update offset_int and widest_int documentation.
19353 (WI_SIGNED_SHIFT_RESULT): New macro.
19354 (wi::binary_shift): Define signed_shift_result_type for
19355 shifts on offset_int- and widest_int-like types.
19356 (generic_wide_int): Support <<= and >>= if << and >> are supported.
19357 * tree.h (int_bit_position): Use shift operators instead of wi::
19359 * alias.c (adjust_offset_for_component_ref): Likewise.
19360 * expr.c (get_inner_reference): Likewise.
19361 * fold-const.c (fold_comparison): Likewise.
19362 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
19363 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
19364 * tree-dfa.c (get_ref_base_and_extent): Likewise.
19365 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19366 (stmt_kills_ref_p): Likewise.
19367 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
19368 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
19369 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19370 (ao_ref_init_from_vn_reference): Likewise.
19372 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19374 * wide-int.h: Update offset_int and widest_int documentation.
19375 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
19376 (wi::binary_traits): Allow ordered comparisons between offset_int and
19377 offset_int, between widest_int and widest_int, and between either
19378 of these types and basic C types.
19379 (operator <, <=, >, >=): Define for the same combinations.
19380 * tree.h (tree_int_cst_lt): Use comparison operators instead
19381 of wi:: comparisons.
19382 (tree_int_cst_le): Likewise.
19383 * gimple-fold.c (fold_array_ctor_reference): Likewise.
19384 (fold_nonarray_ctor_reference): Likewise.
19385 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
19386 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
19387 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
19388 * tree-sra.c (completely_scalarize): Likewise.
19389 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
19390 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
19391 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
19392 (check_for_binary_op_overflow): Likewise.
19393 (search_for_addr_array): Likewise.
19394 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
19396 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19398 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
19399 (arc_save_restore): Likewise.
19400 (arc_dwarf_register_span): Likewise.
19401 (arc_output_pic_addr_const): Initialize suffix variable.
19403 2016-05-02 Martin Liska <mliska@suse.cz>
19405 * symbol-summary.h (function_summary::function_summary):
19406 Remove checking assert for all cgraph nodes.
19407 (function_summary::get): Check summary_uid.
19408 (symtab_insertion): Check summary_uid.
19410 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19412 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
19413 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
19414 bmaskn instruction.
19415 (arc_dwarf_register_span): Remove enum keyword.
19416 (compact_memory_operand_p): New function.
19417 * config/arc/arc.h (reg_class): Add code density register classes.
19418 (REG_CLASS_NAMES): Likewise.
19419 (REG_CLASS_CONTENTS): Likewise.
19420 * config/arc/arc.md (*movqi_insn): Add code density instructions.
19421 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
19422 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
19423 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
19424 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
19426 (h, Rcd, Rsd, Rzd): New register constraints.
19427 (T): Use compact_memory_operand_p function.
19428 * config/arc/predicates.md (compact_load_memory_operand): Remove.
19430 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19432 * config/sh/sh.md (*negnegt, *movtt): Remove.
19434 2016-05-02 Marek Polacek <polacek@redhat.com>
19435 Tom de Vries <tom@codesourcery.com>
19437 PR tree-optimization/70700
19438 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
19439 bigger than FIRST_REF_NODE.
19441 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19444 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
19446 (prepare_cbranch_operands): Don't use scratch register. Assume that
19447 function is used when pseudos can be created.
19448 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
19449 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
19450 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
19451 define_expand. Allow it only when pseudos can be created.
19452 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
19454 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
19456 * config/i386/constraints.md (BC): Only allow -1 operands.
19457 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
19458 Add "enabled" attribute. Update XI mode attribute calculation.
19459 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
19460 (*movoi_internal_avx): Update XI mode attribute calculation.
19461 (*movti_internal): Ditto.
19463 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19465 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
19466 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
19468 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
19470 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
19471 statement on instruction code. Remove trailing spaces.
19472 (altivec_expand_stv_builtin): Likewise.
19474 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19476 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
19477 (TARGET_FPU_DOUBLE): Simplify.
19478 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
19479 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
19480 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
19481 with 'TARGET_FPU_DOUBLE'.
19482 * config/sh/sh.md: Likewise.
19484 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
19486 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
19487 SH_DIV_STR_FOR_SIZE): Remove.
19488 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
19489 SH_DIV_STR_FOR_SIZE): Remove.
19491 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19493 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
19494 logical_reg_operand): Delete.
19495 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
19496 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
19497 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
19498 match_operand and match_test.
19499 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
19500 variables on their first use. Return bool values.
19501 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
19502 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
19503 arith_reg_operand for input operand. Remove empty constraints.
19505 (*xorsi3_compact): Rename to xorsi3.
19506 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
19507 (*zero_extend<mode>si2_disp_mem): Update comment.
19510 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19512 * config/sh/t-sh: Remove SH5 support.
19513 * config.gcc: Likewise.
19514 * configure: Likewise.
19516 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19518 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
19520 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19522 * config/sh/sh.c (register_sh_passes, sh_option_override,
19523 sh_print_operand, prepare_move_operands,
19524 sh_can_follow_jump): Remove TARGET_SH1 checks.
19525 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
19526 PROMOTE_MODE): Likewise.
19527 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
19530 2016-04-30 Alan Modra <amodra@gmail.com>
19532 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
19533 restoring when fixed_reg_p, but allow out-of-line or stmw save.
19534 Check for user regs later to avoid unnecessary looping over regs.
19535 Merge user reg check with non-saved reg check. Don't force
19536 inline VR restore when static chain used.
19537 (rs6000_frame_related): Omit eh_frame info for user regs when
19539 (fixed_regs_p): Delete.
19541 2016-04-30 Alan Modra <amodra@gmail.com>
19543 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
19544 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
19547 2016-04-30 Alan Modra <amodra@gmail.com>
19550 * config/rs6000/rs6000.c (fixed_reg_p): New function.
19551 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
19554 2016-04-30 Alan Modra <amodra@gmail.com>
19556 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
19557 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
19558 flag_pic test for Darwin.
19560 2016-04-30 Alan Modra <amodra@gmail.com>
19562 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
19563 throw_calls_crossed.
19564 (REG_FREQ_CALLS_CROSSED): Delete.
19565 (REG_N_THROWING_CALLS_CROSSED): Delete.
19566 * regstat.c (regstat_bb_compute_ri): Don't calculate
19567 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
19568 (dump_reg_info): Don't print call cross frequency.
19569 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
19570 and REG_N_THROWING_CALLS_CROSSED.
19572 2016-04-30 Alan Modra <amodra@gmail.com>
19574 * regs.h (struct reg_info_t): Delete live_length.
19575 (REG_LIVE_LENGTH): Delete macro.
19576 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
19577 local_live, local_processed and local_live_last_luid params.
19578 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
19580 (regstat_compute_ri): Adjust for above. Don't set
19582 (dump_reg_info): Don't print live length.
19583 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
19584 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
19585 Localize loop_depth var.
19587 2016-04-30 Alan Modra <amodra@gmail.com>
19589 * ira.c (enum valid_equiv): New.
19590 (validate_equiv_mem): Return enum.
19591 (update_equiv_mem): Create replacement in more cases.
19592 (add_store_equivs): Update validate_equiv_mem call.
19594 2016-04-30 Alan Modra <amodra@gmail.com>
19596 * ira.c (combine_and_move_insns): Rather than scanning insns,
19597 use DF infrastucture to find use and def insns.
19599 2016-04-30 Alan Modra <amodra@gmail.com>
19601 ira.c (combine_and_move_insns): Move invariant conditions..
19602 (ira.c): ..to here. Call combine_and_move_insns before
19603 add_store_equivs. Call grow_reg_equivs later. Allocate
19604 req_equiv later using max_reg_num() rather than global max_regno.
19605 (contains_replace_regs): Delete.
19606 (add_store_equivs): Remove contains_replace_regs test.
19608 2016-04-30 Alan Modra <amodra@gmail.com>
19610 * ira.c (struct equiv_mem_data): New.
19611 (equiv_mem, equiv_mem_modified): Delete static vars.
19612 (validate_equiv_mem_from_store): Use "data" param to communicate..
19613 (validate_equiv_mem): ..from here.
19615 2016-04-30 Alan Modra <amodra@gmail.com>
19617 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
19619 (update_reg_equivs): ..here. Move allocation and freeing of
19620 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
19621 end_alias_analysis to..
19624 2016-04-30 Alan Modra <amodra@gmail.com>
19626 * ira.c (pdx_subregs): Delete.
19627 (struct equivalence): Add pdx_subregs field.
19628 (set_paradoxical_subreg): Remove pdx_subregs param. Update
19629 pdx_subregs access.
19630 (update_equiv_regs): Don't create or free pdx_subregs. Update
19631 pdx_subregs access.
19633 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19635 * config/rs6000/altivec.h: Change definitions of vec_xl and
19637 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
19638 (LD_ELEMREV_V2DI): New.
19639 (LD_ELEMREV_V4SF): New.
19640 (LD_ELEMREV_V4SI): New.
19641 (LD_ELEMREV_V8HI): New.
19642 (LD_ELEMREV_V16QI): New.
19643 (ST_ELEMREV_V2DF): New.
19644 (ST_ELEMREV_V2DI): New.
19645 (ST_ELEMREV_V4SF): New.
19646 (ST_ELEMREV_V4SI): New.
19647 (ST_ELEMREV_V8HI): New.
19648 (ST_ELEMREV_V16QI): New.
19651 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19652 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
19653 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
19654 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
19655 (altivec_expand_builtin): Add handling for
19656 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
19657 (rs6000_invalid_builtin): Add error-checking for
19658 RS6000_BTM_P9_VECTOR.
19659 (altivec_init_builtins): Define builtins used to implement vec_xl
19661 (rs6000_builtin_mask_names): Define power9-vector.
19662 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
19663 (RS6000_BTM_P9_VECTOR): Define.
19664 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
19665 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
19666 (vsx_ld_elemrev_v2df): Likewise.
19667 (vsx_ld_elemrev_v4sf): Likewise.
19668 (vsx_ld_elemrev_v4si): Likewise.
19669 (vsx_ld_elemrev_v8hi): Likewise.
19670 (vsx_ld_elemrev_v16qi): Likewise.
19671 (vsx_st_elemrev_v2df): Likewise.
19672 (vsx_st_elemrev_v2di): Likewise.
19673 (vsx_st_elemrev_v4sf): Likewise.
19674 (vsx_st_elemrev_v4si): Likewise.
19675 (vsx_st_elemrev_v8hi): Likewise.
19676 (vsx_st_elemrev_v16qi): Likewise.
19677 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
19680 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
19682 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
19684 (simplify_control_stmt_condition_1): ... here. Recurse into
19685 BIT_AND_EXPRs and BIT_IOR_EXPRs.
19687 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
19690 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
19691 (zero_extendqi<mode>2_dot): Revert earlier conversion from
19692 define_insn_and_split to define_insn.
19693 (zero_extendqi<mode>2_dot2): Same.
19694 (extendqi<mode>2_dot): Same.
19695 (extendqi<mode>2_dot2): Same.
19697 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19699 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
19700 (probe_stack): New expander.
19701 (probe_stack_<mode>): New insn pattern.
19703 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19705 * config/i386/i386.md
19706 (operations with memory inputs setting flags peephole2):
19707 Remove uneeded REG_P checks. Cleanup pattern generation.
19709 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
19711 * tree-vect-loop.c (vect_transform_loop): Fix
19712 nb_iterations_upper_bound computation for vectorized loop.
19714 2016-04-29 Marek Polacek <polacek@redhat.com>
19715 Jakub Jelinek <jakub@redhat.com>
19718 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
19719 TARGET_EXPR_SLOT as a base.
19721 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
19723 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
19724 with 'rCm2' constraints to limit possible immediate size.
19725 (*load_zeroextendqisi_update): Likewise.
19726 (*load_signextendqisi_update): Likewise.
19727 (*loadhi_update): Likewise.
19728 (*load_zeroextendhisi_update): Likewise.
19729 (*load_signextendhisi_update): Likewise.
19730 (*loadsi_update): Likewise.
19731 (*loadsf_update): Likewise.
19733 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19735 * config/i386/predicates.md (constm1_operand): Fix comparison.
19737 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19739 * testsuite/gcc.target/arc/ieee_eq.c: New test.
19741 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
19743 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
19744 remaining SH5 related settings.
19745 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
19746 shmedia_prepare_call_address): Delete.
19747 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
19748 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
19749 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
19750 UNSUPPORTED_SH2A): Remove m5 checks.
19751 (sh_divide_strategy_e): Remove SH5 division strategies.
19752 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
19753 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
19755 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19757 * config/s390/s390.c (s390_rtx_costs): Update documentation.
19759 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19761 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
19762 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
19763 Change lder to ldr.
19764 * config/s390/vector.md ("mov<mode>"): Likewise.
19766 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
19768 * config/s390/constraints.md ("U", "W"): Invoke
19769 s390_mem_constraint with "ZR" and "ZT".
19770 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
19771 addresses when using LRA. Accept also short displacements for S
19772 and T constraints. Do not check for long displacement target for
19773 S and T constraints.
19774 (s390_mem_constraint): Remove handling of U and W constraints.
19775 * config/s390/s390.md (various patterns): Remove the short
19776 displacement constraints (Q and R) if a long displacement
19777 constraint is present. Add longdisp as required CPU capability.
19778 * config/s390/vector.md: Likewise.
19779 * config/s390/vx-builtins.md: Likewise.
19781 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19784 * reload1.c (reload): Call finish_spills before
19785 restarting reload loop. Skip select_reload_regs
19786 if update_eliminables_and_spill returns true.
19788 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19790 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
19791 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
19792 (umulhisi3_imm): Update predicates and constraint letters.
19793 (umulhisi3_reg): Declare instruction as commutative.
19794 * config/arc/constraints.md (J12, J16): New constraints.
19795 * config/arc/predicates.md (short_unsigned_const_operand): New
19797 (arc_short_operand): Likewise.
19798 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
19800 2016-04-29 Richard Biener <rguenther@suse.de>
19802 PR tree-optimization/13962
19803 PR tree-optimization/65686
19804 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
19805 * tree-ssa-alias.c (ptrs_compare_unequal): New function
19806 using PTA to compare pointers.
19807 * match.pd: Add pattern for pointer equality compare simplification
19808 using ptrs_compare_unequal.
19810 2016-04-29 Richard Biener <rguenther@suse.de>
19812 * stor-layout.c (layout_type): Do not build a pointer-to-element
19815 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19817 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
19818 Use SWI mode iterator. Use general_reg_operand predicate.
19819 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
19820 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
19823 2016-04-29 Jakub Jelinek <jakub@redhat.com>
19825 PR middle-end/70843
19826 * fold-const.c (operand_equal_p): Don't verify hash value equality
19828 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
19831 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19834 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
19835 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
19836 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
19837 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
19838 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
19840 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19842 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
19843 to info. Don't initialize separate fields to 0. Clean up
19846 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
19848 * config/i386/i386.md (peephole2s for operations with memory inputs):
19849 Use SWI mode iterator.
19850 (peephole2s for operations with memory outputs): Ditto.
19851 Do not check for stack checking probe.
19853 (probe_stack): Remove expander.
19855 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19856 Andrew Burgess <andrew.burgess@embecosm.com>
19858 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
19859 operands as 32-bits.
19861 2016-04-28 Jason Merrill <jason@redhat.com>
19863 * gdbinit.in: Skip line-map.h.
19865 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19866 Andrew Burgess <andrew.burgess@embecosm.com>
19868 * config/arc/arc.c (arc_conditional_register_usage): Take
19869 TARGET_RRQ_CLASS into account.
19870 (arc_print_operand): Support printing 'p' and 's' operands.
19871 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
19873 (TARGET_RRQ_CLASS): Define.
19874 (IS_POWEROF2_OR_0_P): Define.
19875 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
19877 (*tst_movb): New define_insn.
19878 (*tst): Avoid recognition if it could prevent '*tst_movb'
19879 combination; replace c/CnL with c/Chs alternative.
19880 (*tst_bitfield_tst): New define_insn.
19881 (*tst_bitfield_asr): New define_insn.
19882 (*tst_bitfield): New define_insn.
19883 (andsi3_i): Add Rrq variant.
19884 (extzv): New define_expand.
19885 (insv): New define_expand.
19886 (*insv_i): New define_insn.
19887 (*movb): New define_insn.
19888 (*movb_signed): New define_insn.
19889 (*movb_high): New define_insn.
19890 (*movb_high_signed): New define_insn.
19891 (*movb_high_signed + 1): New define_split pattern.
19892 (*mrgb): New define_insn.
19893 (*mrgb + 1): New define_peephole2 pattern.
19894 (*mrgb + 2): New define_peephole2 pattern.
19895 * config/arc/arc.opt (mbitops): New option for nps400, uses
19896 TARGET_NPS_BITOPS_DEFAULT.
19897 * config/arc/constraints.md (q): Make register class conditional.
19898 (Rrq): New register constraint.
19899 (Chs): New constraint.
19900 (Clo): New constraint.
19901 (Chi): New constraint.
19902 (Cbf): New constraint.
19903 (Cbn): New constraint.
19904 (C18): New constraint.
19905 (Cbi): New constraint.
19907 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19909 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
19911 (bitmap_intersection_of_preds): Ditto.
19912 (bitmap_union_of_succs): Ditto.
19913 (bitmap_union_of_preds): Ditto.
19914 * sbitmap.c (do_popcount): Delete.
19915 (BITMAP_DEBUGGING): Delete.
19916 (sbitmap_verify_popcount): Delete.
19917 (sbitmap_alloc): Don't initialize the popcount field.
19918 (sbitmap_alloc_with_popcount): Delete.
19919 (sbitmap_resize): Don't resize the popcount array.
19920 (sbitmap_vector_alloc): Don't initialize the popcount field.
19921 (bitmap_copy): Don't copy the popcount array.
19922 (bitmap_clear): Don't clear the popcount array.
19923 (bitmap_clear): Delete the popcount array handling.
19924 (bitmap_ior_and_compl): Delete the popcount assert.
19925 (bitmap_not): Ditto.
19926 (bitmap_and_compl): Ditto.
19927 (bitmap_and): Delete the popcount array handling.
19928 (bitmap_xor): Ditto.
19929 (bitmap_ior): Ditto.
19930 (bitmap_or_and): Delete the popcount assert.
19931 (bitmap_and_or): Ditto.
19932 (popcount_table): Delete.
19933 (sbitmap_elt_popcount): Delete.
19934 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
19935 (bitmap_set_bit): Delete the popcount assert.
19936 (bitmap_clear_bit): Ditto.
19937 (sbitmap_free): Don't free the popcount array.
19938 (sbitmap_alloc_with_popcount): Delete declaration.
19939 (sbitmap_popcount): Ditto.
19941 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19942 Andrew Burgess <andrew.burgess@embecosm.com>
19944 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
19945 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
19946 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
19947 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
19948 * config/arc/arc.opt (mcmem): New option.
19949 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
19950 supply length for r/m alternative.
19951 (*extendqisi2_ac): Likewise.
19952 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
19954 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
19955 (movhi_insn): Likewise.
19956 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
19957 (*zero_extendqihi2_i): Add r/Ucm alternative.
19958 (*zero_extendqisi2_ac): Likewise.
19959 (*zero_extendhisi2_i): Likewise.
19960 * config/arc/constraints.md (Uex): New memory constraint.
19961 (Ucm): New define_constraint.
19962 * config/arc/predicates.md (long_immediate_loadstore_operand):
19963 Return 0 for MEM with cmem_address address.
19964 (cmem_address_0): New predicates.
19965 (cmem_address_1): Likewise.
19966 (cmem_address_2): Likewise.
19967 (cmem_address): Likewise.
19969 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19971 * config/rs6000/rs6000.c (machine_function): Rename
19972 insn_chain_scanned_p to spe_insn_chain_scanned_p.
19973 (rs6000_stack_info): Adjust.
19975 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19976 Andrew Burgess <andrew.burgess@embecosm.com>
19978 * config/arc/constraints.md (Usd): Convert to define_constraint.
19982 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19985 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
19986 Add new peephole2 where the first insn is *mov<mode>_or instead of
19987 *mov<mode>_internal.
19989 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
19991 * tracer.c (bb_seen): Make static.
19993 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
19995 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
19996 support, setup defaults.
19997 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
19998 * config/arc/arc.c (arc_init): Add NPS400 support.
19999 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
20000 (TARGET_ARC700): NPS400 is also an ARC700.
20001 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
20003 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
20006 * config/nds32/nds32.md (casesi): Don't access the operands array
20009 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20011 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
20012 (or $-1,reg peephole2): Ditto.
20013 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
20015 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20017 * doc/extend.texi (Common Function Attributes) [optimize]:
20018 Discourage use of the optimize attribute.
20020 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
20022 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
20023 special case builtin.
20024 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20025 ALTIVEC_BUILTIN_VEC_ADDE.
20026 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20027 support for ALTIVEC_BUILTIN_VEC_ADDE.
20028 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20029 for __builtin_vec_adde.
20031 2016-04-28 Jakub Jelinek <jakub@redhat.com>
20033 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
20034 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
20036 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20039 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20040 attributes): Document cilkplus_runtime.
20042 2016-04-28 Martin Jambor <mjambor@suse.cz>
20044 * tree-cfg.c (verify_expr): Verify that local declarations belong to
20045 this function. Call verify_expr on MEM_REFs and bases of other
20046 handled_components.
20048 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20050 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
20051 for WORD_REGISTER_OPERATIONS to runtime check.
20053 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20055 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
20057 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20059 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
20060 big-endian compilation.
20061 * config/arc/arc.md (addf3): Likewise.
20062 (subdf3): Likewise.
20063 (muldf3): Likewise.
20065 2016-04-28 Richard Biener <rguenther@suse.de>
20067 PR tree-optimization/70840
20068 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
20069 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
20070 Mark x * pow(x,c) -> pow(x,c+1) commutative.
20071 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
20073 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20075 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
20076 and explain why in a comment.
20078 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20080 * config/arc/arc.md (cpu_facility): Add fpx variant.
20081 (subdf3): Prohibit use reverse sub when assist operations option
20083 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
20084 instructions only when FPX is enabled.
20085 * testsuite/gcc.target/arc/trsub.c: New test.
20087 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20089 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
20090 mult_operator when calculating "type" attribute.
20091 (*fop_<mode>_1_i387): Ditto.
20092 (*fop_xf_1_i387): Ditto.
20093 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
20094 Use std::swap to swap operands. Use RTL expressions to generate
20097 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20098 Joern Rennecke <joern.rennecke@embecosm.com>
20100 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
20102 (emit_pic_move): Remove.
20103 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
20104 * config/arc/arc.c (emit_pic_move): Removed.
20105 (TARGET_HAVE_TLS): Define.
20106 (arc_conditional_register_usage): Test for arc_tp_regno.
20107 (arc_print_operand, arc_print_operand_address): Handle TLS
20109 (arc_needs_pcl_p): New function.
20110 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
20111 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
20112 (arc_raw_symbolic_reference_mentioned_p): Likewise.
20113 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
20114 (arc_legitimize_tls_address): Likewise.
20115 (DTPOFF_ZERO_SYM): Define.
20116 (arc_legitimize_pic_address): Make it static, handle TLS cases.
20117 (arc_output_pic_addr_const): Print TLS unspecs.
20118 (prepare_pic_move): New function, replaces emit_pic_move.
20119 (arc_legitimate_constant_p): Handle TLS unspecs.
20120 (arc_legitimate_address_p): Likewise.
20121 (arc_rewrite_small_data_p): Use assert for TLS constants.
20122 (prepare_move_operands): Use prepare_pic_move.
20123 (arc_legitimize_address): Legitimize tls addresses.
20124 (arc_epilogue_uses): Check for arc_tp_regno.
20125 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
20126 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
20128 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
20130 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
20131 %(arc_tls_extra_start_spec).
20132 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
20133 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
20135 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
20136 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
20137 (UNSPEC_TLS_OFF): Add.
20139 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
20140 (get_thread_pointersi): New patterns.
20141 * config/arc/arc.opt (mtp-regno): New option.
20142 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
20143 (move_dest_operand): Likewise.
20144 * configure: Regenerate.
20145 * configure.ac: Add arc*-*-* case to test for tls.
20146 * doc/invoke.texi (ARC options): Document mtp-regno.
20148 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20150 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
20151 the new ARC HS SIMD instructions.
20152 (arc_preferred_simd_mode): New function.
20153 (arc_autovectorize_vector_sizes): Likewise.
20154 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20155 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20156 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
20157 (arc_init_builtins): Add new SIMD builtin types.
20158 (arc_split_move): Handle 64 bit vector moves.
20159 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
20160 (TARGET_PLUS_QMACW): Define.
20161 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
20162 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
20163 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
20164 (VSUBADD4H): New builtins.
20165 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
20166 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
20168 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
20169 Matthias Klose <doko@debian.org>
20171 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
20173 2016-04-28 Richard Biener <rguenther@suse.de>
20175 PR middle-end/70777
20176 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
20179 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
20181 * common/config/sh/sh-common.c: Remove SH5 support.
20182 * config/sh/constraints.md: Likewise.
20183 * config/sh/config/sh/elf.h: Likewise.
20184 * config/sh/linux.h: Likewise.
20185 * config/sh/netbsd-elf.h: Likewise.
20186 * config/sh/predicates.md: Likewise.
20187 * config/sh/sh-c.c: Likewise.
20188 * config/sh/sh-protos.h: Likewise.
20189 * config/sh/sh.c: Likewise.
20190 * config/sh/sh.h: Likewise.
20191 * config/sh/sh.md: Likewise.
20192 * config/sh/sh.opt: Likewise.
20193 * config/sh/sync.md: Likewise.
20194 * config/sh/sh64.h: Delete.
20195 * config/sh/shmedia.h: Likewise.
20196 * config/sh/shmedia.md: Likewise.
20197 * config/sh/sshmedia.h: Likewise.
20198 * config/sh/t-netbsd-sh5-64: Likewise.
20199 * config/sh/t-sh64: Likewise.
20200 * config/sh/ushmedia.h: Likewise.
20202 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20204 * config/i386/i386.md (sign_extend to memory peephole2s): Use
20205 general_reg_operand instead of register_operand predicate.
20207 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20209 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
20211 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
20213 * match.pd (A - B > A, A + B < A): New transformations.
20215 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
20217 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
20218 which defaults to true. Emit an outer pair of parentheses only if
20219 EMIT_PARENS. When continuing a chain of && or || (or & or |),
20220 don't emit parentheses for the right-hand operand.
20222 2016-04-27 Jeff Law <law@redhat.com>
20224 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
20226 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20228 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
20229 (altivec_lvx_<mode>_internal): Document.
20230 (altivec_lvx_<mode>_2op): New define_insn.
20231 (altivec_lvx_<mode>_1op): Likewise.
20232 (altivec_lvx_<mode>_2op_si): Likewise.
20233 (altivec_lvx_<mode>_1op_si): Likewise.
20234 (altivec_stvx_<mode>): Remove.
20235 (altivec_stvx_<mode>_internal): Document.
20236 (altivec_stvx_<mode>_2op): New define_insn.
20237 (altivec_stvx_<mode>_1op): Likewise.
20238 (altivec_stvx_<mode>_2op_si): Likewise.
20239 (altivec_stvx_<mode>_1op_si): Likewise.
20240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20241 Expand vec_ld and vec_st during parsing.
20242 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
20244 (altivec_expand_stvx_be): Likewise.
20245 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
20246 address-masking behavior in RTL.
20247 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
20248 address-masking behavior in RTL.
20249 (altivec_expand_builtin): Change builtin code arguments for calls
20250 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
20251 (insn_is_swappable_p): Avoid incorrect swap optimization in the
20252 presence of lvx/stvx patterns.
20253 (alignment_with_canonical_addr): New function.
20254 (alignment_mask): Likewise.
20255 (find_alignment_op): Likewise.
20256 (recombine_lvx_pattern): Likewise.
20257 (recombine_stvx_pattern): Likewise.
20258 (recombine_lvx_stvx_patterns): Likewise.
20259 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
20260 stvx patterns from expand.
20261 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
20263 (vector_altivec_store_<mode>): Likewise.
20265 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
20267 * config/aarch64/aarch64.md
20268 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
20269 remove the "fp" attributes.
20270 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
20271 add the "simd" attributes.
20272 (*movdf_aarch64): Likewise.
20273 (*movtf_aarch64): Remove the "fp" attributes.
20274 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
20275 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
20277 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20279 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
20280 rtx to rtx_code_label *.
20281 * rtl.h (maybe_set_first_label_num): Likewise.
20283 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20285 * df-core.c (df_add_problem): Make the problem param be const.
20286 (df_remove_problem): Make local "problem" be const.
20287 * df-problems.c (problem_RD): Make const.
20288 (problem_LR): Likewise.
20289 (problem_LIVE): Likewise.
20290 (problem_MIR): Likewise.
20291 (problem_CHAIN): Likewise.
20292 (problem_WORD_LR): Likewise.
20293 (problem_NOTE): Likewise.
20294 (problem_MD): Likewise.
20295 * df-scan.c (problem_SCAN): Likewise.
20296 * df.h (struct df_problem): Make field "dependent_problem" be
20298 (struct dataflow): Likewise for field "problem".
20299 (df_add_problem): Make param const.
20301 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20303 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
20304 inter-unit moves to/from vector registers are enabled. Do not disable
20307 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20309 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
20310 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
20312 (enum df_problem_id): ...this new enum.
20313 (struct df_problem): Convert field "id" from "int" to
20314 enum df_problem_id.
20316 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20318 * rtl.def: Update comment for "things in the instruction chain" to
20319 reflect the removal of the leading "i" field for INSN_UID in
20320 r210360. Fix bogus apostrophe.
20322 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20324 * config/i386/i386.md
20325 (lea arith with mem operand + setcc peephole2): Set operator mode.
20327 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
20330 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
20331 (dimode_scalar_to_vector_candidate_p): This.
20332 (timode_scalar_to_vector_candidate_p): New function.
20333 (scalar_to_vector_candidate_p): Likewise.
20334 (timode_check_non_convertible_regs): Likewise.
20335 (timode_remove_non_convertible_regs): Likewise.
20336 (remove_non_convertible_regs): Likewise.
20337 (remove_non_convertible_regs): Renamed to ...
20338 (dimode_remove_non_convertible_regs): This.
20339 (scalar_chain::~scalar_chain): Make it virtual.
20340 (scalar_chain::compute_convert_gain): Make it pure virtual.
20341 (scalar_chain::mark_dual_mode_def): Likewise.
20342 (scalar_chain::convert_insn): Likewise.
20343 (scalar_chain::convert_registers): Likewise.
20344 (scalar_chain::add_to_queue): Make it protected.
20345 (scalar_chain::emit_conversion_insns): Likewise.
20346 (scalar_chain::replace_with_subreg): Likewise.
20347 (scalar_chain::replace_with_subreg_in_insn): Likewise.
20348 (scalar_chain::convert_op): Likewise.
20349 (scalar_chain::convert_reg): Likewise.
20350 (scalar_chain::make_vector_copies): Likewise.
20351 (scalar_chain::convert_registers): New pure virtual function.
20352 (class dimode_scalar_chain): New class.
20353 (class timode_scalar_chain): Likewise.
20354 (scalar_chain::mark_dual_mode_def): Renamed to ...
20355 (dimode_scalar_chain::mark_dual_mode_def): This.
20356 (timode_scalar_chain::mark_dual_mode_def): New function.
20357 (timode_scalar_chain::convert_insn): Likewise.
20358 (dimode_scalar_chain::convert_registers): Likewise.
20359 (scalar_chain::compute_convert_gain): Renamed to ...
20360 (dimode_scalar_chain::compute_convert_gain): This.
20361 (scalar_chain::replace_with_subreg): Renamed to ...
20362 (dimode_scalar_chain::replace_with_subreg): This.
20363 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
20364 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
20365 (scalar_chain::make_vector_copies): Renamed to ...
20366 (dimode_scalar_chain::make_vector_copies): This.
20367 (scalar_chain::convert_reg): Renamed to ...
20368 (dimode_scalar_chain::convert_reg ): This.
20369 (scalar_chain::convert_op): Renamed to ...
20370 (dimode_scalar_chain::convert_op): This.
20371 (scalar_chain::convert_insn): Renamed to ...
20372 (dimode_scalar_chain::convert_insn): This.
20373 (scalar_chain::convert): Call convert_registers.
20374 (convert_scalars_to_vector): Change to scalar_chain pointer to
20375 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
20376 in 32-bit mode. Delete scalar_chain pointer. Call
20377 free_dominance_info in 64-bit mode.
20378 (pass_stv::gate): Remove TARGET_64BIT check.
20379 (ix86_option_override): Put the 64-bit STV pass before the CSE
20382 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
20384 * dwarf2out.h (struct dw_loc_descr_node): Remove the
20385 dw_loc_frame_offset field.
20386 * dwarf2out.c (new_loc_descr): Likewise.
20387 (resolve_args_picking_1): Turn the VISITED hash set into a
20388 FRAME_OFFSET hash map. Use it to associate a frame offset to
20389 visited nodes. Remove uses of the CHECKING_P macro.
20390 (resolve_args_picking): Update call to resolve_args_picking_1.
20392 2016-04-27 Martin Liska <mliska@suse.cz>
20394 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
20395 (free_loop_data): Release vuses of groups.
20397 2016-04-27 Bin Cheng <bin.cheng@arm.com>
20399 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
20400 instead of redundant use_id and boolean have_use_for.
20401 (struct iv_use): Change sub_id into group_id. Remove field next.
20402 Move fields: related_cands, n_map_members, cost_map and selected
20404 (struct iv_group): ... here. New structure.
20405 (struct iv_common_cand): Use structure declaration directly.
20406 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
20407 (MAX_CONSIDERED_USES): Rename macro to ...
20408 (MAX_CONSIDERED_GROUPS): ... here.
20409 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
20410 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
20411 (dump_uses): Rename to ...
20412 (dump_groups): ... here. Update all uses.
20413 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
20414 (find_induction_variables): Refactor format of dump information.
20415 (record_sub_use): Delete.
20416 (record_use): Update all uses.
20417 (record_group): New function.
20418 (record_group_use, find_interesting_uses_op): Call above functions.
20420 (find_interesting_uses_cond): Ditto.
20421 (group_compare_offset): New function.
20422 (split_all_small_groups): Rename to ...
20423 (split_small_address_groups_p): ... here. Update all uses.
20424 (split_address_groups): Update all uses.
20425 (find_interesting_uses): Refactor format of dump information.
20426 (add_candidate_1): Update all uses. Remove redundant check on iv,
20428 (add_candidate, record_common_cand): Remove redundant assert.
20429 (add_iv_candidate_for_biv): Update use.
20430 (add_iv_candidate_derived_from_uses): Update all uses.
20431 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
20432 (alloc_use_cost_map): Ditto.
20433 (set_use_iv_cost, get_use_iv_cost): Rename to ...
20434 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
20435 (determine_use_iv_cost_generic): Ditto.
20436 (determine_group_iv_cost_generic): Ditto.
20437 (determine_use_iv_cost_address): Ditto.
20438 (determine_group_iv_cost_address): Ditto.
20439 (determine_use_iv_cost_condition): Ditto.
20440 (determine_group_iv_cost_cond): Ditto.
20441 (determine_use_iv_cost): Ditto.
20442 (determine_group_iv_cost): Ditto.
20443 (set_autoinc_for_original_candidates): Update all uses.
20444 (find_iv_candidates): Update all uses. Refactor dump information.
20445 (determine_use_iv_costs): Ditto.
20446 (determine_iv_costs): Ditto.
20447 (iv_ca_cand_for_use): Rename to ...
20448 (iv_ca_cand_for_group): ... here. Update all uses.
20449 (iv_ca_add_use, iv_ca_add_group): Ditto.
20450 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
20451 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
20452 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
20453 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
20454 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
20455 (create_new_iv, adjust_iv_update_pos): Ditto.
20456 (rewrite_use_address): Delete.
20457 (rewrite_use_address_1): Rename to ...
20458 (rewrite_use_address): ... here.
20459 (rewrite_use_compare): Update all uses.
20460 (rewrite_use): Delete.
20461 (rewrite_uses): Rename to ...
20462 (rewrite_groups): ... here. Update all uses.
20463 (remove_unused_ivs, free_loop_data): Update all uses.
20464 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
20466 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20468 * rtlanal.c (nonzero_bits1): Convert preprocessor check
20469 for WORD_REGISTER_OPERATIONS to runtime check.
20471 2016-04-27 Richard Biener <rguenther@suse.de>
20474 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
20475 aggregate_value_p to determine if a function result is
20476 returned by reference.
20477 (ipa_pta_execute): Functions having their address taken are
20478 not automatically nonlocal.
20480 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20483 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
20484 * fold-const.c (operand_equal_p): If flag_checking and
20485 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
20486 and if it returns non-zero, assert iterative_hash_expr on both
20489 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20491 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
20493 2016-04-27 Nick Clifton <nickc@redhat.com>
20495 PR middle-end/49889
20496 * varasm.c (merge_weak): Generate an error if an attempt is made
20497 to convert a non-weak static function into a weak, public function.
20499 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20501 * params.def (MAX_PARTITION_SIZE): New param.
20502 * doc/invoke.texi: Document lto-max-partition.
20504 2016-04-27 Richard Biener <rguenther@suse.de>
20507 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
20508 function cummulating used_from_other_partition, externally_visible
20509 and force_output from aliases.
20510 (refered_from_nonlocal_var): Likewise.
20511 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
20512 node flags properly.
20514 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20516 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
20517 (-Wmemset-elt-size): New item.
20519 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
20522 * stor-layout.h (internal_reference_types): Delete.
20523 * stor-layout.c (reference_types_internal): Likewise.
20524 (internal_reference_types): Likewise.
20525 (layout_type) <REFERENCE_TYPE>: Adjust.
20527 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20530 * tree.h (inchash::add_expr): Add FLAGS argument.
20531 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
20532 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
20533 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
20534 Formatting fix. Adjust recursive calls. For tcc_comparison,
20535 if swap_tree_comparison (code) is smaller than code, hash that
20536 and arguments in the other order. Hash CONVERT_EXPR the same
20537 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
20538 of ADDR_EXPR of decl as the decl itself. Add or remove
20539 OEP_ADDRESS_OF from recursive flags as needed. For
20540 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
20541 operands commutatively and only the third one normally.
20542 For internal CALL_EXPR hash in CALL_EXPR_IFN.
20544 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
20546 * config/rtems.h (LIB_SPEC): Add -latomic.
20548 2016-04-27 Joel Sherrill <joel@rtems.org>
20550 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
20551 xilink.ld and flags not relevant to RTEMS.
20553 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20555 * toplev.c (backend_init_target): Avoid calling init_reload when using
20558 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20560 * reorg.c (try_merge_delay_insns): Declare i and j inside the
20561 for loops rather than one for the whole function.
20563 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20565 * match.pd (X + CST CMP X): New transformation.
20567 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20569 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
20570 * fold-const.c (fold_binary_loc): Remove 2 transformations
20571 superseded by match.pd.
20572 * match.pd (x+x -> x*2): Generalize to integers.
20574 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
20576 * config/i386/i386.md (operation on memory peephole): Duplicate an
20577 existing peephole and adapt it to match lea rather than an operation
20580 PR rtl-optimization/57193
20581 * opts.c (default_options_table): Add OPT_frename_registers at -O2
20583 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
20585 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20587 * tree-if-conv.c (any_pred_load_store): New static variable.
20588 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
20589 any_pred_load_store instead of and_mask_load_store.
20590 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
20591 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
20592 (combine_blocks, tree_if_conversion): Ditto.
20594 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20596 PR tree-optimization/70771
20597 PR tree-optimization/70775
20598 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
20599 virtual PHI nodes. Delete parameter.
20600 (if_convertible_loop_p_1): Delete argument to above function.
20601 (predicate_all_scalar_phis): Delete code handling single-argument
20603 (tree_if_conversion): Mark and update virtual SSA.
20605 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20608 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
20609 (x86_elf_aligned_common): Rename to ...
20610 (x86_elf_aligned_decl_common): ... this.
20611 Add decl arg. Switch to .lbss for largecomm object. Use
20612 LARGECOMM_SECTION_ASM_OP.
20613 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
20615 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
20616 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
20618 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20619 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
20621 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20624 * config/i386/i386.c (SECTION_LARGE): Define.
20625 (x86_64_elf_select_section): Set it for large data/bss sections.
20626 Only clear SECTION_WRITE for .lrodata.
20627 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
20629 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
20630 * varasm.c (default_elf_asm_named_section): Grow flagchars.
20631 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
20633 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
20634 * doc/tm.texi: Regenerate.
20636 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20639 * configure.ac (--enable-checking): Document extra flag, for
20640 non-release builds default to --enable-checking=yes,extra.
20641 If misc checking and extra checking, define CHECKING_P to 2 instead
20643 * common.opt (fchecking=): Add.
20644 * doc/invoke.texi (-fchecking=): Document.
20645 * doc/install.texi: Document --enable-checking changes.
20646 * configure: Regenerated.
20647 * config.in: Regenerated.
20649 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20651 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
20652 attribute instead of which_alternative.
20653 * config/i386/sse.md (*mov<mode>_internal): Ditto.
20654 Use EXT_REX_SSE_REG_P where appropriate.
20656 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20658 * config/i386/predicates.md (const0_operand): Do not match
20659 const_wide_int code.
20660 (const1_operand): Ditto.
20662 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20664 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
20665 for SSE constm1 operands and TARGET_AVX512VL.
20666 (*movti_internal): Ditto.
20667 (*mov<mode>_or): Use constm1_operand predicate.
20668 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
20669 for SSE vector_all_ones operands and TARGET_AVX512VL.
20670 * config/i386/predicates.md (constm1_operand): New predicate.
20671 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
20672 emission of constant -1 load.
20674 2016-04-25 Jason Merrill <jason@redhat.com>
20676 * gdbinit.in: Skip is-a.h.
20678 * attribs.c (register_scoped_attributes): Fix logic.
20679 * attribs.h: Declare register_scoped_attributes.
20681 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20683 * config/rs6000/rs6000-builtin.def: Correct pasto error for
20684 stxvd2x and stxvw4x built-in functions.
20686 2016-04-25 DJ Delorie <dj@redhat.com>
20688 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
20689 (ashrhi3): Likewise.
20690 (lshrhi3): Likewise.
20692 2016-04-25 Richard Biener <rguenther@suse.de>
20694 PR tree-optimization/70780
20695 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
20696 wasn't visited yet.
20697 (compute_antic): Mark blocks with abnormal preds as visited as
20698 they have a final empty antic-in solution already.
20700 2016-04-25 Michael Collison <michael.collison@linaro.org>
20702 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
20704 2016-04-25 Michael Collison <michael.collison@linaro.org>
20706 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
20707 mode is VQI to improve mixed mode vectorization.
20708 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
20709 define_insn to match low half of signed vaddw.
20710 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
20711 define_insn to match high half of signed vaddw.
20712 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
20713 define_insn to match low half of unsigned vaddw.
20714 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
20715 define_insn to match high half of unsigned vaddw.
20716 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
20717 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20718 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
20720 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20721 * config/arm/predicates.md (vect_par_constant_high): Support
20722 big endian and simplify by calling
20723 arm_simd_check_vect_par_cnst_half
20724 (vect_par_constant_low): Likewise.
20726 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20728 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
20729 predicate for operand 2.
20731 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
20732 H.J. Lu <hongjiu.lu@intel.com>
20734 * config/i386/i386-protos.h (standard_sse_constant_p): Add
20735 machine_mode argument.
20736 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
20737 constm1_rtx operands. For VOIDmode constants, get mode from
20738 pred_mode. Check mode size if the mode is supported by ABI.
20739 (standard_sse_constant_opcode): Do not use standard_constant_p.
20740 Strictly check ABI support for all-ones operands.
20741 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
20742 immediates. Update calls to standard_sse_constant_p.
20743 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
20744 (ix86_rtx_costs): Ditto.
20745 * config/i386/i386.md (*movxi_internal_avx512f): Use
20746 nonimmediate_or_sse_const_operand instead of vector_move_operand.
20747 Use (v,BC) alternative instead of (v,C). Use register_operand
20748 checks instead of MEM_P.
20749 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
20750 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
20751 isa attribute. Use register_operand checks instead of MEM_P.
20752 (*movti_internal): Use nonimmediate_or_sse_const_operand for
20753 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
20754 alternative and corresponding sse2 isa attribute.
20755 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
20756 to standard_sse_constant_p.
20757 (FP constant splitters): Ditto.
20758 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
20760 * config/i386/predicates.md (constm1_operand): Remove.
20761 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
20762 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
20763 vector_all_ones_operand instead of constm1_operand.
20765 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20767 * print-rtl.c (print_rtx_insn_vec): New function.
20768 * print-rtl.h: New prototype.
20769 * store-motion.c (struct st_expr): Make avail_stores a vector.
20770 (st_expr_entry): Adjust.
20771 (free_st_expr_entry): Likewise.
20772 (print_store_motion_mems): Likewise.
20773 (find_moveable_store): Likewise.
20774 (compute_store_table): Likewise.
20775 (delete_store): Likewise.
20776 (build_store_vectors): Likewise.
20778 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20780 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
20782 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20784 * vec.h (vec_safe_contains): New function.
20785 (vec::contains): Likewise.
20786 (vec::begin): Likewise.
20787 (vec::end): Likewise.
20789 2016-04-23 Jakub Jelinek <jakub@redhat.com>
20792 * cfgexpand.c (expand_stack_vars): Fix typo.
20794 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20796 * system.h (list, map, set, vector): Include conditionally.
20797 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
20798 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
20799 * ipa-icf.c (INCLUDE_LIST): Define.
20800 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
20801 * config/sh/sh.c (INCLUDE_VECTOR): Define.
20802 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
20803 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
20804 * cp/logic.cc (INCLUDE_LIST): Define.
20805 * fortran/trans-common.c (INCLUDE_MAP): Define.
20807 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20809 * auto-profile.c: Remove <string.h> include.
20810 * ipa-icf-gimple.c: Remove <list> include.
20811 * diagnostic.c: Remove <new> include.
20812 * genmatch.c: Likewise.
20813 * pretty-print.c: Likewise.
20814 * toplev.c: Likewise
20815 * c/c-objc-common.c: Likewise.
20816 * cp/error.c: Likewise.
20817 * fortran/error.c: Likewise.
20819 2016-04-22 Richard Biener <rguenther@suse.de>
20821 * lto-streamer-in.c (input_ssa_names): Do not allocate
20822 GIMPLE_NOP for all SSA names.
20823 * lto-streamer-out.c (output_ssa_names): Do not output
20824 SSA names that should have been released.
20826 2016-04-22 Richard Biener <rguenther@suse.de>
20828 PR tree-optimization/70740
20829 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
20832 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
20835 * config/i386/predicates.md (call_insn_operand): Replace
20836 sibcall_memory_operand with memory_operand.
20838 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
20840 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
20841 has_single_use() tests.
20842 (register_edge_assert_for_1): Likewise.
20843 (find_assert_locations_1): Check the liveness bitmap instead of
20844 checking has_single_use().
20846 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
20849 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
20850 Extract AVX-512BW constraint from AVX.
20852 2016-04-21 Richard Biener <rguenther@suse.de>
20854 PR tree-optimization/70725
20855 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
20856 for phi_convertible_by_degenerating_args.
20857 (predicate_all_scalar_phis): Handle single-argument PHIs.
20859 2016-04-21 Richard Biener <rguenther@suse.de>
20861 PR middle-end/70747
20862 * fold-const.c (fold_comparison): Return properly typed
20865 2016-04-21 Bin Cheng <bin.cheng@arm.com>
20867 PR tree-optimization/70715
20868 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
20869 after expanding BASE using expand_simple_operations.
20871 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
20873 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
20874 New transformations.
20876 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
20878 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
20880 2016-04-20 Jan Hubicka <jh@suse.cz>
20882 * ipa-inline.c (can_inline_edge_p): Pass caller info to
20883 ultiimate_alias_target.
20884 (update_callee_keys): Likewise.
20885 (lookup_recursive_calls): Likewise.
20886 (speculation_useful_p): Likewise.
20888 2016-04-20 Jan Hubicka <jh@suse.cz>
20891 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
20892 (set_nothrow_flag_1): ... this; handle interposition correctly;
20893 recurse on aliases and thunks.
20894 (cgraph_node::set_nothrow_flag): New.
20895 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
20896 functions compiled with non-call exceptions that binds to current
20898 (propagate_nothrow): Be safe WRT interposition.
20899 * cgraph.h (set_nothrow_flag): Update prototype.
20901 2016-04-18 Jan Hubicka <jh@suse.cz>
20903 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20904 max_loop_iterations_int.
20905 (tree_unswitch_outer_loop): Likewise.
20907 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20909 PR tree-optimization/69489
20910 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
20911 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
20912 Revise dump message.
20913 (if_convertible_bb_p): Remove check on edge count of basic block's
20916 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20918 PR tree-optimization/56625
20919 PR tree-optimization/69489
20920 * tree-data-ref.h (DR_INNERMOST): New macro.
20921 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
20922 hashing struct innermost_loop_behavior.
20923 (ref_DR_map): Remove.
20924 (innermost_DR_map): New map.
20925 (baseref_DR_map): Revise comment.
20926 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
20927 to innermost_DR_map accroding to its innermost loop behavior.
20928 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
20929 to its innermost loop behavior.
20930 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
20931 Add initialization for innermost_DR_map. Record memory reference
20932 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
20933 have innermost loop behavior.
20934 (if_convertible_loop_p): Remove release for ref_DR_map. Release
20937 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
20939 * config/i386/i386.md (*lea<mode>_general_1): Rename from
20940 *lea_general_1. Use explicit SWI12 mode interator.
20941 (*lea<mode>_general_2): Rename from *lea_general_2.
20942 Use explicit SWI12 mode interator.
20943 (*lea<mode>_general_3): Rename from *lea_general_3.
20944 Use explicit SWI12 mode interator.
20945 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
20946 Use explicit SWI12 mode interator.
20947 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
20948 Use explicit SWI48 mode interator.
20950 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
20952 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20953 Short-cut unaligned load and store cases. Handle all integer
20955 (ix86_expand_vector_move_misalign): Short-cut unaligned load
20956 and store cases. Call ix86_avx256_split_vector_move_misalign
20957 directly without checking mode class.
20959 2016-04-20 Andrew Pinski <apinski@cavium.com>
20960 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20963 * config/aarch64/aarch64.md (sibcall): Force call
20964 address to be DImode for ILP32.
20965 (sibcall_value): Likewise.
20967 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
20969 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
20971 2016-04-20 Richard Biener <rguenther@suse.de>
20973 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
20974 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
20975 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
20976 (maybe_push_res_to_seq): Adjust.
20977 * gimple-fold.c (maybe_build_generic_op): Likewise.
20979 2016-04-20 Marek Polacek <polacek@redhat.com>
20981 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
20984 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
20986 * config/i386/sse.md (vec_unpacks_lo_hi): Always
20987 use kmovw to support AVX512F target.
20989 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20991 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
20993 2016-04-20 Marek Polacek <polacek@redhat.com>
20995 PR tree-optimization/70725
20996 * tree-if-conv.c (is_false_predicate): New function.
20997 (predicate_mem_writes): Use it.
20999 2016-04-20 Richard Biener <rguenther@suse.de>
21001 PR tree-optimization/70726
21002 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
21003 shift amounts from a pattern stmt operand.
21005 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21008 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
21009 stack_restore_from_fpr pattern when restoring r15.
21010 (s390_optimize_prologue): Strip away the memory barrier in the
21011 parallel when trying to get rid of restore insns.
21012 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
21013 definition for loading the stack pointer from an FPR. Compared to
21014 the normal move insn this pattern includes a full memory barrier.
21016 2016-04-19 Jakub Jelinek <jakub@redhat.com>
21018 PR middle-end/70680
21019 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
21020 implicitly linear or lastprivate iterator on the outer context.
21022 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
21024 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
21026 * config/i386/i386.md (ssememalign): Removed.
21027 * config/i386/sse.md: Remove ssememalign attribute from patterns.
21029 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
21032 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
21033 const short * to __builtin_ia32_loaddquhi512_mask.
21034 (_mm512_maskz_loadu_epi16): Likewise.
21035 (_mm512_mask_storeu_epi16): Pass short * to
21036 __builtin_ia32_storedquhi512_mask.
21037 (_mm512_mask_loadu_epi8): Pass const char * to
21038 __builtin_ia32_loaddquqi512_mask.
21039 (_mm512_maskz_loadu_epi8): Likewise.
21040 (_mm512_mask_storeu_epi8): Pass char * to
21041 __builtin_ia32_storedquqi512_mask.
21042 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
21043 const double * to __builtin_ia32_loadupd512_mask.
21044 (_mm512_mask_loadu_pd): Likewise.
21045 (_mm512_maskz_loadu_pd): Likewise.
21046 (_mm512_storeu_pd): Pass double * to
21047 __builtin_ia32_storeupd512_mask.
21048 (_mm512_mask_storeu_pd): Likewise.
21049 (_mm512_loadu_ps): Pass const float * to
21050 __builtin_ia32_loadups512_mask.
21051 (_mm512_mask_loadu_ps): Likewise.
21052 (_mm512_maskz_loadu_ps): Likewise.
21053 (_mm512_storeu_ps): Pass float * to
21054 __builtin_ia32_storeups512_mask.
21055 (_mm512_mask_storeu_ps): Likewise.
21056 (_mm512_mask_loadu_epi64): Pass const long long * to
21057 __builtin_ia32_loaddqudi512_mask.
21058 (_mm512_maskz_loadu_epi64): Likewise.
21059 (_mm512_mask_storeu_epi64): Pass long long *
21060 to __builtin_ia32_storedqudi512_mask.
21061 (_mm512_loadu_si512): Pass const int * to
21062 __builtin_ia32_loaddqusi512_mask.
21063 (_mm512_mask_loadu_epi32): Likewise.
21064 (_mm512_maskz_loadu_epi32): Likewise.
21065 (_mm512_storeu_si512): Pass int * to
21066 __builtin_ia32_storedqusi512_mask.
21067 (_mm512_mask_storeu_epi32): Likewise.
21068 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
21069 char * to __builtin_ia32_storedquqi256_mask.
21070 (_mm_mask_storeu_epi8): Likewise.
21071 (_mm256_mask_loadu_epi16): Pass const short * to
21072 __builtin_ia32_loaddquhi256_mask.
21073 (_mm256_maskz_loadu_epi16): Likewise.
21074 (_mm_mask_loadu_epi16): Pass const short * to
21075 __builtin_ia32_loaddquhi128_mask.
21076 (_mm_maskz_loadu_epi16): Likewise.
21077 (_mm256_mask_loadu_epi8): Pass const char * to
21078 __builtin_ia32_loaddquqi256_mask.
21079 (_mm256_maskz_loadu_epi8): Likewise.
21080 (_mm_mask_loadu_epi8): Pass const char * to
21081 __builtin_ia32_loaddquqi128_mask.
21082 (_mm_maskz_loadu_epi8): Likewise.
21083 (_mm256_mask_storeu_epi16): Pass short * to.
21084 __builtin_ia32_storedquhi256_mask.
21085 (_mm_mask_storeu_epi16): Pass short * to.
21086 __builtin_ia32_storedquhi128_mask.
21087 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
21088 const double * to __builtin_ia32_loadupd256_mask.
21089 (_mm256_maskz_loadu_pd): Likewise.
21090 (_mm_mask_loadu_pd): Pass onst double * to
21091 __builtin_ia32_loadupd128_mask.
21092 (_mm_maskz_loadu_pd): Likewise.
21093 (_mm256_mask_storeu_pd): Pass double * to
21094 __builtin_ia32_storeupd256_mask.
21095 (_mm_mask_storeu_pd): Pass double * to
21096 __builtin_ia32_storeupd128_mask.
21097 (_mm256_mask_loadu_ps): Pass const float * to
21098 __builtin_ia32_loadups256_mask.
21099 (_mm256_maskz_loadu_ps): Likewise.
21100 (_mm_mask_loadu_ps): Pass const float * to
21101 __builtin_ia32_loadups128_mask.
21102 (_mm_maskz_loadu_ps): Likewise.
21103 (_mm256_mask_storeu_ps): Pass float * to
21104 __builtin_ia32_storeups256_mask.
21105 (_mm_mask_storeu_ps): ass float * to
21106 __builtin_ia32_storeups128_mask.
21107 (_mm256_mask_loadu_epi64): Pass const long long * to
21108 __builtin_ia32_loaddqudi256_mask.
21109 (_mm256_maskz_loadu_epi64): Likewise.
21110 (_mm_mask_loadu_epi64): Pass const long long * to
21111 __builtin_ia32_loaddqudi128_mask.
21112 (_mm_maskz_loadu_epi64): Likewise.
21113 (_mm256_mask_storeu_epi64): Pass long long * to
21114 __builtin_ia32_storedqudi256_mask.
21115 (_mm_mask_storeu_epi64): Pass long long * to
21116 __builtin_ia32_storedqudi128_mask.
21117 (_mm256_mask_loadu_epi32): Pass const int * to
21118 __builtin_ia32_loaddqusi256_mask.
21119 (_mm256_maskz_loadu_epi32): Likewise.
21120 (_mm_mask_loadu_epi32): Pass const int * to
21121 __builtin_ia32_loaddqusi128_mask.
21122 (_mm_maskz_loadu_epi32): Likewise.
21123 (_mm256_mask_storeu_epi32): Pass int * to
21124 __builtin_ia32_storedqusi256_mask.
21125 (_mm_mask_storeu_epi32): Pass int * to
21126 __builtin_ia32_storedqusi128_mask.
21127 * config/i386/i386-builtin-types.def (PCSHORT): New.
21128 (PINT64): Likewise.
21129 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
21130 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
21131 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
21132 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
21133 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
21134 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
21135 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
21136 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
21137 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
21138 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
21139 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
21140 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
21141 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
21142 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
21143 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
21144 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
21145 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
21146 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
21147 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
21148 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
21149 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
21150 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
21151 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
21152 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
21153 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
21154 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
21155 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
21156 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
21157 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
21158 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
21159 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
21160 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
21161 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
21162 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
21163 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
21164 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
21165 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
21166 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
21167 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
21168 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
21169 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
21170 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
21171 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
21172 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
21173 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
21174 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
21175 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
21176 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
21177 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
21179 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
21180 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
21182 (ix86_expand_vector_move_misalign): Likewise.
21183 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
21184 to scalar function prototype for unaligned load/store builtins.
21185 (ix86_expand_special_args_builtin): Updated.
21186 * config/i386/sse.md (UNSPEC_LOADU): Removed.
21187 (UNSPEC_STOREU): Likewise.
21188 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
21189 (VI_ULOADSTORE_F_AVX512VL): Likewise.
21190 (ssescalarsize): Handle V4TI, V2TI and V1TI.
21191 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21192 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21193 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
21194 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
21195 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
21196 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
21197 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
21198 (<avx512>_storedqu<mode>_mask): Likewise.
21199 (*sse4_2_pcmpestr_unaligned): Likewise.
21200 (*sse4_2_pcmpistr_unaligned): Likewise.
21201 (*mov<mode>_internal): Renamed to ...
21202 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
21203 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
21204 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
21205 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
21207 2016-04-19 Richard Biener <rguenther@suse.de>
21209 PR tree-optimization/70171
21210 * tree-ssa-phiprop.c: Include stor-layout.h.
21211 (phiprop_insert_phi): Handle the aggregate copy case.
21212 (propagate_with_phi): Likewise.
21214 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
21216 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
21217 instead of simplify_gen_subreg (... , 0).
21218 (ix86_delegitimize_address): Ditto.
21219 (ix86_split_divmod): Ditto.
21220 (ix86_split_copysign_const): Ditto.
21221 (ix86_split_copysign_var): Ditto.
21222 (ix86_expand_args_builtin): Ditto.
21223 (ix86_expand_round_builtin): Ditto.
21224 (ix86_expand_special_args_builtin): Ditto.
21225 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
21226 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
21227 (udivmodqi4): Ditto.
21228 (absneg splitters): Ditto.
21229 (*jcc_bt<mode>_1): Ditto.
21231 2016-04-19 Richard Biener <rguenther@suse.de>
21233 PR tree-optimization/70724
21234 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
21235 restoring out from ...
21236 (free_scc_vn): ... here.
21237 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
21238 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
21240 (pass_fre::execute): Restore SSA info.
21242 2016-04-19 Richard Biener <rguenther@suse.de>
21244 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
21245 * gimple-walk.c (walk_gimple_op): Initialize it.
21246 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
21247 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
21248 remapping SSA names of defs.
21249 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
21252 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
21254 PR middle-end/70689
21255 * lra-constraints.c (equiv_substition_p): New.
21256 (process_alt_operands): Use it.
21257 (swap_operands): Swap it.
21258 (curr_insn_transform): Update it.
21260 2016-04-18 Michael Matz <matz@suse.de>
21262 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
21263 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
21264 * tree-core.h (tree_type_common.align): Use bit-field.
21265 (tree_type_common.spare): New.
21266 (tree_decl_common.off_align): Make smaller.
21267 (tree_decl_common.align): Use bit-field.
21269 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
21270 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
21271 (scan_sharing_clauses): Ditto.
21272 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21273 (omp_finish_file): Ditto.
21274 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
21275 (layout_decl): Ditto.
21276 (relayout_decl): Ditto.
21277 (finalize_record_size): Use SET_TYPE_ALIGN.
21278 (finalize_type_size): Ditto.
21279 (finish_builtin_struct): Ditto.
21280 (layout_type): Ditto.
21281 (initialize_sizetypes): Ditto.
21282 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
21283 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
21284 (lookup_field_for_decl): Use SET_DECL_ALIGN.
21285 (get_chain_field): Ditto.
21286 (get_trampoline_type): Ditto.
21287 (get_nl_goto_field): Ditto.
21288 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
21290 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
21291 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
21292 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21293 (build_qualified_type): Use SET_TYPE_ALIGN.
21294 (build_aligned_type, build_range_type_1): Ditto.
21295 (build_atomic_base): Ditto.
21296 (build_common_tree_nodes): Ditto.
21297 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
21298 (expand_one_stack_var_at): Ditto.
21299 * coverage.c (build_var): Use SET_DECL_ALIGN.
21300 * except.c (init_eh): Ditto.
21301 * function.c (assign_parm_setup_block): Ditto.
21302 * symtab.c (increase_alignment_1): Ditto.
21303 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
21304 * tree-vect-stmts.c (ensure_base_align): Ditto.
21305 * varasm.c (align_variable): Ditto.
21306 (assemble_variable): Ditto.
21307 (build_constant_desc): Ditto.
21308 (output_constant_def_contents): Ditto.
21310 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
21311 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
21312 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
21313 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
21314 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
21316 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
21319 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
21320 replace %vmovsd with "%vmovq".
21321 (vec_concatv2df): Likewise.
21323 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
21325 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
21326 (*vec_extractv2si_0): Ditto.
21327 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
21328 (zero_extended_scalar_load_operand splitters): Ditto.
21329 (vec_extract splitters): Ditto.
21330 (*vec_extractv4si_0_zext): Ditto.
21331 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
21332 and lowpart_subreg.
21333 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
21334 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
21335 (*sse4_1_extractps): Use lowpart_subreg.
21336 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
21338 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21340 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
21342 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
21343 Mention Solaris 11 packaging changes.
21344 Update gas and gld requirements.
21345 Remove reference to pre-Solaris 10 bug.
21346 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
21348 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
21351 2016-04-17 Jan Hubicka <jh@suse.cz>
21353 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
21354 max_loop_iterations_int.
21356 2016-04-18 Richard Biener <rguenther@suse.de>
21358 PR tree-optimization/43434
21359 * tree-ssa-structalias.c (struct vls_data): New.
21360 (visit_loadstore): Handle all pointer-based accesses.
21361 (compute_dependence_clique): Compute a bitmap of restrict tags
21362 assigned bases and pass it to visit_loadstore.
21364 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
21367 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
21368 armv8.1-a and armv8.1-a+crc.
21370 2016-04-18 Richard Biener <rguenther@suse.de>
21372 PR tree-optimization/70701
21373 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
21374 references after translating through a memcpy.
21376 2016-04-18 Richard Biener <rguenther@suse.de>
21378 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
21379 (compute_antic): ... here. For partial antic use regular
21380 postorder and scrap iteration.
21381 (compute_partial_antic_aux): Remove unused return value.
21382 (init_pre): Do not allocate postorder.
21383 (fini_pre): Do not free postorder.
21385 2016-04-18 Richard Biener <rguenther@suse.de>
21387 PR middle-end/37870
21388 * expmed.c (extract_bit_field_1): Remove broken case
21389 using a wider MODE_INT mode.
21391 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
21393 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
21394 unless compiling with at least GCC-4.8.
21396 2016-04-17 Jan Hubicka <jh@suse.cz>
21399 * graphite.c (graphite_finalize): Update call to
21400 tree_estimate_probability.
21401 * predict.h (tree_estimate_probability): Update prototype.
21403 2016-04-17 Jan Hubicka <jh@suse.cz>
21405 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
21406 (tree_estimate_probability): Likewise.
21407 (pass_profile::execute): Update.
21408 (report_predictor_hitrates): New function.
21409 * profile.c (compute_branch_probabilities): Use it.
21410 * predict.h (report_predictor_hitrates): Declare.
21412 2016-04-17 Jan Hubicka <jh@suse.cz>
21415 * cgraph.h (cgraph_node::set_const_flag,
21416 cgraph_node::set_pure_flag): Update prototype to return bool;
21418 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
21419 of interposable symbol are interposable, too.
21420 (cgraph_set_const_flag_1): Rename to ...
21421 (set_const_flag_1): ... this one; change to self recursive function
21422 instead of call_for_symbol_thunks_and_aliases. Handle correctly
21423 clearnig the flag in all variants and also virtual thunks of const
21424 functions are pure; track if any change was done.
21425 (cgraph_node::set_const_flag): Update.
21426 (struct set_pure_flag_info): New struct.
21427 (cgraph_set_pure_flag_1): Rename to ...
21428 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
21429 rather than pointer encoded flags; track if any changes was done;
21430 handle correctly clearning flag and setting flag of aliases already
21432 (cgraph_node::set_pure_flag): Update.
21433 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
21435 2016-04-17 Tom de Vries <tom@codesourcery.com>
21438 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
21439 backslash in label.
21441 2016-04-17 Tom de Vries <tom@codesourcery.com>
21443 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
21444 '{}<> ' as escape-for-record.
21446 2016-04-17 Tom de Vries <tom@codesourcery.com>
21448 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
21451 2016-04-17 Tom de Vries <tom@codesourcery.com>
21454 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
21455 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
21456 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
21457 * passes.c (finish_optimization_passes): Only call
21458 finish_graph_dump_file if dfi->graph_dump_initialized.
21459 (execute_function_dump, pass_init_dump_file): Use
21460 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
21462 2016-04-17 Tom de Vries <tom@codesourcery.com>
21464 PR tree-optimization/70256
21465 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
21466 (debug_varmap): New function.
21468 2016-04-17 Tom de Vries <tom@codesourcery.com>
21471 * passes.c (pass_manager::register_pass): Propagate pflags.
21473 2016-04-17 Tom de Vries <tom@codesourcery.com>
21476 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
21477 * passes.c (pass_manager::pass_manager): Declare and init p_start in
21478 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
21479 check if it's equal to p_start.
21480 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
21482 2016-04-15 Jan Hubicka <jh@suse.cz>
21485 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
21486 function does not bind to current def.
21487 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
21488 handle conservatively calls to functions that does not need to bind
21490 (check_call): Update call of worse_state.
21491 (ignore_edge_for_nothrow): Update.
21492 (ignore_edge_for_pure_const): Likewise.
21493 (propagate_pure_const): Update calls to worse_state.
21494 (skip_function_for_local_pure_const): Reformat comments.
21496 2016-04-15 Jan Hubicka <jh@suse.cz>
21499 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
21500 (cgraph_node::function_symbol): Likewise.
21501 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21502 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
21503 (symtab_node::ultimate_alias_target): Add REF parameter.
21504 (symtab_node::binds_to_current_def_p): Declare.
21505 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
21506 (cgraph_node::function_symbol): Likewise.
21507 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21508 (cgraph_node::get_availability): Likewise.
21509 (cgraph_edge::binds_to_current_def_p): New inline function.
21510 (varpool_node::get_availability): Add REF parameter.
21511 (varpool_node::ultimate_alias_target): Likewise.
21512 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
21513 (symtab_node::binds_to_current_def_p): Likewise.
21514 * varpool.c (varpool_node::get_availability): Likewise.
21516 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21519 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
21520 Fix mode size check.
21522 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21524 * BASE-VER: Set to 7.0.0.
21526 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
21528 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
21530 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21532 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
21533 architecture revisions.
21535 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
21537 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
21538 * config/i386/i386.c (ix86_using_red_zone): No longer static.
21539 * config/i386/i386.md (stack decrement to push peepholes): Guard
21540 with !x86_using_red_zone ().
21542 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21545 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
21546 to dump_generic_node.
21547 (NIY): Pass also flags to do_niy.
21549 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
21551 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
21552 (simd_clone_vector_of_formal_parm_types)
21553 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
21554 (simd_clone_mangle, simd_clone_create)
21555 (simd_clone_adjust_return_type, create_tmp_simd_array)
21556 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
21557 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
21558 (ipa_simd_modify_function_body, simd_clone_linear_addend)
21559 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
21560 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
21561 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
21562 * omp-simd-clone.c: ... this new file.
21563 (simd_clone_vector_of_formal_parm_types): Make it static.
21564 * Makefile.in (OBJS): Add omp-simd-clone.o.
21566 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21569 * config/i386/sse.md: Use proper memory operand modifiers.
21572 2016-04-15 Richard Biener <rguenther@suse.de>
21573 Alan Modra <amodra@gmail.com>
21575 PR tree-optimization/70130
21576 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
21577 when alignment stays not the same and no not use the realign
21580 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21583 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21584 direct move handlers for KFmode. Change TFmode handlers test from
21585 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
21587 2016-04-14 Jakub Jelinek <jakub@redhat.com>
21590 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
21591 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
21592 (inlined_polymorphic_ctor_dtor_block_p): Use it.
21593 * tree-ssa-live.c (remove_unused_scope_block_p): When
21594 in_ctor_dtor_block, avoid discarding not just BLOCKs with
21595 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
21596 block_ultimate_origin is FUNCTION_DECL.
21597 (remove_unused_locals): If current_function_decl is
21598 polymorphic_ctor_dtor_p, pass initial true to
21599 remove_unused_scope_block_p' is_ctor_dtor_block.
21601 2016-04-14 Martin Sebor <msebor@redhat.com>
21606 * doc/extend.texi (Variable Length): Revert.
21608 2016-04-14 Marek Polacek <polacek@redhat.com>
21609 Jan Hubicka <hubicka@ucw.cz>
21612 * tree.c (verify_type): Disable the canonical type of main variant
21615 2016-04-14 Jason Merrill <jason@redhat.com>
21617 * cfgexpand.c, expr.c: Revert previous change.
21619 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
21621 PR middle-end/70643
21622 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
21623 when building a mem ref for the incoming reduction variable.
21625 2016-04-14 Richard Biener <rguenther@suse.de>
21627 PR tree-optimization/70614
21628 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
21629 loop if the evolution dropped to chrec_dont_know.
21630 (interpret_condition_phi): Likewise.
21632 2016-04-14 Richard Biener <rguenther@suse.de>
21634 PR tree-optimization/70623
21635 * tree-ssa-pre.c (changed_blocks): Make global ...
21636 (compute_antic): ... local here. Move and fix worklist
21637 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
21638 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
21639 worklist handling, dump when ANTIC_IN changed.
21640 (compute_partial_antic_aux): Remove worklist handling.
21641 (init_pre): Do not compute post dominators. Add a comment about
21642 the CFG order chosen.
21643 (fini_pre): Do not free post dominators.
21645 2016-04-13 Martin Sebor <msebor@redhat.com>
21650 * doc/extend.texi (Variable Length): Document C++ specifics.
21652 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21655 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
21656 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
21657 eh edges have been purged.
21660 * tree-sra.c (create_access_replacement,
21661 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
21663 * tree-pretty-print.c (dump_fancy_name): New function.
21664 (dump_decl_name, dump_generic_node): Use it.
21666 2016-04-13 Jason Merrill <jason@redhat.com>
21668 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
21669 * expr.c (expand_expr_real_1): Likewise.
21671 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
21673 * config/i386/i386.md (kunpckhi): Swap operands.
21674 (kunpcksi): Likewise.
21675 (kunpckdi): Likewise.
21676 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
21677 (vec_pack_trunc_<mode>): Likewise.
21679 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21682 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
21684 PR middle-end/70633
21685 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
21686 gimplification turns some element into non-constant.
21689 * rtl.h (convert_memory_address_addr_space_1): New prototype.
21690 * explow.c (convert_memory_address_addr_space_1): No longer static,
21691 add NO_EMIT argument and don't call convert_modes if true, pass
21692 it down recursively, remove break after return.
21693 (convert_memory_address_addr_space): Adjust caller.
21694 * simplify-rtx.c (simplify_unary_operation_1): Call
21695 convert_memory_address_addr_space_1 instead of convert_memory_address,
21696 if it returns NULL, don't simplify.
21698 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
21701 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
21703 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21705 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21706 Bump the upper SIMDLEN limits, so that if the return type or
21707 characteristic type if the return type is void can be passed in
21708 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
21711 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21714 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
21715 Do not use "=" constraint on an input constraint.
21716 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
21717 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
21718 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
21719 generates (neg (abs ...)) instead of (abs ...).
21721 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21723 PR rtl-optimization/70596
21724 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
21725 just invalidate LRA data and reset them. Adjust dump wording.
21727 2016-04-12 Martin Liska <mliska@suse.cz>
21730 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
21732 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21734 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21735 max_loop_iterations_int.
21736 (tree_unswitch_outer_loop): Likewise.
21737 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21738 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21740 2016-04-12 Tom de Vries <tom@codesourcery.com>
21742 PR tree-optimization/68756
21743 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
21744 instead of new_name.
21746 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21748 PR tree-optimization/70602
21749 * tree-sra.c (generate_subtree_copies): Don't write anything into
21750 constant pool decls.
21752 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
21753 regardless whether there are depend clauses or not.
21755 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21758 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
21759 target attribute and pragma from changing the -mfloat128
21760 and -mfloat128-hardware options.
21762 * doc/extend.texi (Additional Floating Types): Document PowerPC
21763 __float128 restrictions.
21765 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21768 * config/aarch64/driver-aarch64.c
21769 (aarch64_get_extension_string_for_isa_flags): New.
21770 (arch_extension): Rename to...
21771 (aarch64_arch_extension): ...This.
21772 (ext_to_feat_string): Rename to...
21773 (aarch64_extensions): ...This.
21774 (aarch64_core_data): Keep track of architecture extension flags.
21775 (cpu_data): Rename to...
21776 (aarch64_cpu_data): ...This.
21777 (aarch64_arch_driver_info): Keep track of architecture extension
21779 (get_arch_name_from_id): Rename to...
21780 (get_arch_from_id): ...This, change return type.
21781 (host_detect_local_cpu): Update and reformat for renames, handle
21782 extensions through common infrastructure.
21784 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21787 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
21788 track of a canonical flag name.
21789 (all_extensions): Likewise.
21790 (arch_to_arch_name): Also track extension flags enabled by the arch.
21791 (all_architectures): Likewise.
21792 (aarch64_parse_extension): Move to here.
21793 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
21795 (aarch64_rewrite_selected_cpu): Update for above change.
21796 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
21797 are handled, such that the single explicit value enabled by an
21798 extension is kept seperate from the implicit values it also enables.
21799 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
21801 (aarch64_parse_extension): New.
21802 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
21803 here to config/aarch64/aarch64-protos.h.
21804 (aarch64_parse_extension): Move from here to
21805 common/config/aarch64/aarch64-common.c.
21806 (aarch64_option_print): Update.
21807 (aarch64_declare_function_name): Likewise.
21808 (aarch64_start_file): Likewise.
21809 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
21810 the canonical flag for extensions.
21811 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
21814 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21816 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
21819 2016-04-09 Tom de Vries <tom@codesourcery.com>
21821 PR tree-optimization/68953
21822 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
21823 first to last subscript.
21825 2016-04-09 Jakub Jelinek <jakub@redhat.com>
21827 PR tree-optimization/70586
21828 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
21831 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
21835 PR tree-optimization/70373
21836 PR middle-end/70533
21837 PR middle-end/70534
21838 PR middle-end/70535
21839 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
21840 clauses for acc parallel reductions as necessary. Error on those
21842 * omp-low.c (scan_sharing_clauses): Don't install variables which
21843 are used in acc parallel reductions.
21844 (lower_rec_input_clauses): Remove dead code.
21845 (lower_oacc_reductions): Add support for reference reductions.
21846 (lower_reduction_clauses): Remove dead code.
21847 (lower_omp_target): Don't remap variables appearing in acc parallel
21849 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
21851 2016-04-08 Jakub Jelinek <jakub@redhat.com>
21853 PR middle-end/70593
21854 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
21855 with multiple SSA_NAME defs, force the outputs other than first
21856 to be live before calling live_track_process_def on each output.
21858 PR rtl-optimization/70574
21859 * fwprop.c (forward_propagate_and_simplify): Don't add
21860 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
21861 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
21862 paradoxical subregs within *loc.
21864 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
21866 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
21867 -ftree-parallelize-loops={0,1}.
21868 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21869 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21870 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21871 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21872 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21874 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
21877 * asan.c (instrument_derefs): If we get unknown location, extract it
21878 with EXPR_LOCATION.
21879 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
21881 2016-04-08 Tom de Vries <tom@codesourcery.com>
21883 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
21884 implicit firstprivate clause.
21886 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21889 * config/arm/thumb2.md (tst + branch-> lsls + branch
21890 peephole below *orsi_not_shiftsi_si): Require that condition
21891 register is dead after the peephole.
21892 (second peephole after the above): Likewise.
21894 2016-04-08 Alan Modra <amodra@gmail.com>
21897 * builtins.c (fold_builtin_classify): For IBM extended precision,
21898 look at just the high-order double to test for NaN.
21899 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
21900 test just the high double for Inf but both doubles for subnormal
21903 2016-04-07 Jakub Jelinek <jakub@redhat.com>
21905 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
21906 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
21907 node->simdclone->mask_mode != VOIDmode masks.
21908 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
21909 earlier, use it instead of node->simdclone.
21910 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21911 Set clonei->mask_mode.
21913 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
21916 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
21917 Pass it through to cp_parser_already_scoped_statement.
21918 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
21919 it through to cp_parser_statement.
21920 (cp_parser_statement): Pass IF_P through to
21921 cp_parser_iteration_statement.
21922 (cp_parser_pragma): Adjust call to
21923 cp_parser_iteration_statement.
21925 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
21928 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
21929 resolve a future -Wparentheses warning.
21930 * omp-low.c (scan_sharing_clauses): Likewise.
21931 * tree-parloops.c (eliminate_local_variables): Likewise.
21933 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
21935 PR rtl-optimization/70398
21936 * lra-constraints.c (process_address_1): Check zero scale and code
21937 for reloading with zero scale.
21939 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
21941 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
21942 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
21944 2016-04-06 Jakub Jelinek <jakub@redhat.com>
21946 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21947 Add support for AVX512F clones, include them by default for
21948 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
21949 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
21952 PR middle-end/70550
21953 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
21954 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
21955 firstprivate clauses.
21956 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
21957 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
21958 (lower_omp_target): Set TREE_NO_WARNING for
21959 non-addressable possibly uninitialized vars which are copied into
21960 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
21962 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
21964 * config/pa/predicates.md (integer_store_memory_operand): Accept
21965 REG+D operands with a large offset when reload_in_progress is true.
21966 (floating_point_store_memory_operand): Likewise.
21968 2016-04-05 Jakub Jelinek <jakub@redhat.com>
21971 * match.pd (nested int casts): Limit to GIMPLE.
21973 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
21976 * ipa-devirt.c (maybe_record_node): Fix comment; use
21977 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
21979 2016-04-05 Jakub Jelinek <jakub@redhat.com>
21981 PR rtl-optimization/70542
21982 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
21983 if there are any uses other than insn or debug insns.
21985 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
21986 Jakub Jelinek <jakub@redhat.com>
21988 PR tree-optimization/70509
21989 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
21990 Shift HOST_WIDE_INT_1U instead of 1.
21992 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
21994 PR tree-optimization/70509
21995 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
21996 of the vector base type for index.
21998 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
22001 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
22003 2016-04-05 Richard Biener <rguenther@suse.de>
22005 PR tree-optimization/70526
22006 * tree-sra.c (build_ref_for_offset): Use prev_base to
22007 extract the alias pointer type.
22009 2016-04-05 Richard Biener <rguenther@suse.de>
22011 * dse.c (struct store_info): Remove alias_set member.
22012 (struct read_info_type): Likewise.
22013 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
22014 spill_deleted, clear_alias_set_lookup): Remove.
22015 (get_group_info): Remove dead base == NULL_RTX case.
22016 (dse_step0): Remove initialization of removed variables.
22017 (delete_dead_store_insn): Reomve alias set dumping.
22018 (free_read_records): Remove alias_set handling.
22019 (canon_address): Remove alias_set_out parameter.
22020 (record_store): Remove spill_alias_set, it's always zero.
22021 (check_mem_read_rtx): Likewise.
22022 (dse_step2): Rename from ...
22023 (dse_step2_nospill): ... this. Adjust.
22024 (scan_stores): Rename from ...
22025 (scan_stores_nospill): ... this.
22026 (scan_reads): Rename from ...
22027 (scan_reads_nospill): ... this.
22028 (scan_stores_spill, scan_reads_spill): Remove.
22029 (dse_step3_scan): Remove for_spills argument which is always false.
22030 (dse_step3): Likewise.
22031 (dse_step5): Rename from ...
22032 (dse_step5_nospill): ... this. Remove alias_set handling.
22033 (rest_of_handle_dse): Adjust.
22035 2016-04-05 Jakub Jelinek <jakub@redhat.com>
22038 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
22039 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
22040 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
22041 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
22043 2016-04-05 Richard Biener <rguenther@suse.de>
22045 PR middle-end/70499
22046 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
22047 non-register type temporaries into SSA.
22049 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
22052 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
22053 calls when sanitizing.
22054 (possible_polymorphic_call_target_p): Fix formatting.
22056 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22057 Jakub Jelinek <jakub@redhat.com>
22059 PR middle-end/70457
22060 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
22061 to ensure a call statement is compatible with a built-in's
22063 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
22066 2016-04-04 Richard Biener <rguenther@suse.de>
22068 PR rtl-optimization/70484
22069 * rtl.h (canon_output_dependence): Declare.
22070 * alias.c (canon_output_dependence): New function.
22071 * dse.c (record_store): Use canon_output_dependence rather
22072 than canon_true_dependence.
22074 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22077 * cgraph.h (symtab_node::copy_visibility_from): New function.
22078 * symtab.c (symtab_node::copy_visibility_from): New function.
22079 * ipa-visibility.c (optimize_weakref): New function.
22080 (function_and_variable_visibility): Use it.
22082 2016-04-04 Martin Liska <mliska@suse.cz>
22085 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
22086 value that is really in range handled by SBR instruction.
22087 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
22088 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
22089 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
22091 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
22095 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
22096 set, but not for SP_REG operands.
22098 2016-04-02 Martin Sebor <msebor@redhat.com>
22101 * fold-const.c (maybe_nonzero_address): New function.
22102 (fold_comparison): Call it. Fold equality and relational
22103 expressions involving null pointers.
22104 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
22106 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
22108 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
22109 the "Y" constraint (scalar FP 0.0 immediate).
22111 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
22112 Add the "const_double" to the list of operand constraints.
22114 2016-04-01 Jakub Jelinek <jakub@redhat.com>
22116 PR rtl-optimization/70467
22117 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
22118 If low word of the last operand is 0, just emit addition/subtraction
22121 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22124 * config/s390/s390.c (s390_expand_insv): Check for everything
22125 constant instead of just VOIDmode stuff.
22127 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22130 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
22132 2016-04-01 Nathan Sidwell <nathan@acm.org>
22134 * tree.def (TRY_CATCH_EXPR): Correct documentation.
22136 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
22138 PR rtl-optimization/70461
22139 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
22142 2016-03-31 Martin Liska <mliska@suse.cz>
22145 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
22146 a tree value or an immediate integer value to a buffer
22147 that is eventually copied to a BRIG section.
22148 (emit_immediate_operand): Call the function here.
22149 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
22150 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
22151 of class' fields that are removed.
22152 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
22153 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
22154 m_brig_repr_size fields.
22156 2016-03-31 Martin Liska <mliska@suse.cz>
22159 * hsa-gen.c (hsa_function_representation::update_dominance): New
22161 (convert_addr_to_flat_segment): Likewise.
22162 (gen_hsa_memory_set): New alignment argument.
22163 (gen_hsa_ctor_assignment): Likewise.
22164 (gen_hsa_insns_for_single_assignment): Provide alignment
22165 to gen_hsa_ctor_assignment.
22166 (gen_hsa_insns_for_direct_call): Add new argument.
22167 (expand_lhs_of_string_op): New function.
22168 (expand_string_operation_builtin): Likewise.
22169 (expand_memory_copy): New function.
22170 (expand_memory_set): New function.
22171 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
22172 (convert_switch_statements): Change signature.
22173 (generate_hsa): Use a return value of the function.
22174 (pass_gen_hsail::execute): Do not call
22175 convert_switch_statements here.
22176 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
22177 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
22178 (hsa_function_representation::update_dominance): New function.
22180 2016-03-31 Martin Liska <mliska@suse.cz>
22183 * hsa-brig.c (emit_directive_variable): Emit alignment
22184 according to hsa_symbol::m_align.
22185 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
22186 (dump_hsa_symbol): Dump alignment of HSA symbols.
22187 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
22188 (gen_hsa_addr_with_align): New function.
22189 (hsa_bitmemref_alignment): Use newly added function.
22190 (gen_hsa_insns_for_load): Likewise.
22191 (gen_hsa_insns_for_store): Likewise.
22192 (gen_hsa_memory_copy): New argument added.
22193 (gen_hsa_insns_for_single_assignment): Respect
22194 alignment for assignments processed via gen_hsa_memory_copy.
22195 (gen_hsa_insns_for_direct_call): Likewise.
22196 (gen_hsa_insns_for_return): Likewise.
22197 (gen_function_def_parameters): Set default alignment.
22198 * hsa.c (hsa_object_alignment): New function.
22199 (hsa_byte_alignment): Pasted function.
22200 * hsa.h (hsa_symbol::m_align): New field.
22202 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22204 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
22205 scratch field for goto case.
22207 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
22209 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
22211 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
22214 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
22215 (scalar_chain::convert_insn): Call convert_op for reg
22216 moves to handle undefined registers.
22218 2016-03-31 Nathan Sidwell <nathan@acm.org>
22221 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
22222 Assert we don't want to move backwards.
22224 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
22227 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
22229 2016-03-31 Jakub Jelinek <jakub@redhat.com>
22231 PR rtl-optimization/70460
22232 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
22233 with operand from REG_LABEL_OPERAND, instead substitute
22234 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
22235 Don't do anything for REG_NON_LOCAL_GOTO jumps.
22237 2016-03-31 Martin Liska <mliska@suse.cz>
22239 * passes.c (execute_one_pass): Do not call
22240 todo_after for a discarded function.
22242 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22244 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
22245 (no_cost, infinite_cost): Initialize the new field.
22246 (get_computation_cost_at): Record setup cost.
22247 (determine_use_iv_cost_address): Skip cost computation for sub
22248 uses if we can estimate it without losing accuracy.
22250 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22252 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
22254 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
22255 max_loop_iterations_int.
22256 (tree_unswitch_outer_loop): Likewise.
22257 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
22258 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22260 2016-03-30 Richard Biener <rguenther@suse.de>
22262 PR middle-end/70450
22263 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
22265 2016-03-30 Jakub Jelinek <jakub@redhat.com>
22268 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
22269 in gen_blendm expander.
22271 2016-03-30 Nick Clifton <nickc@redhat.com>
22274 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
22275 case where we are already provided with an SImode SUBREG.
22277 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
22280 * config/i386/i386.c (ix86_expand_epilogue): Properly check
22281 conflict between DRAP register and __builtin_eh_return.
22283 2016-03-30 Michael Matz <matz@suse.de>
22284 Richard Biener <rguenther@suse.de>
22287 * ipa-polymorphic-call.c (struct type_change_info): Change
22288 speculative to an unsigned allowing to limit the work we do.
22289 (csftc_abort_walking_p): New inline function..
22290 (check_stmt_for_type_change): Limit the number of may-defs
22291 skipped for speculative devirtualization to
22292 max-speculative-devirt-maydefs.
22293 * params.def (max-speculative-devirt-maydefs): New param.
22294 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
22296 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
22299 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
22302 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
22304 PR tree-optimization/59124
22305 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
22306 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
22308 2016-03-29 Jeff Law <law@redhat.com>
22310 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
22312 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22314 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
22317 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
22319 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
22320 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
22321 gcrt0.o if linking dynamically.
22323 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22326 * ipa-devirt.c (methods_equal_p): New function.
22327 (compare_virtual_tables): Use it.
22328 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
22329 * cgraphclones.c (clone_function_name_1): Use
22330 symbol_table::symbol_suffix_separator.
22331 * coverage.c (build_var): Likewise.
22332 * symtab.c (symbol_table::symbol_suffix_separator): New.
22334 2016-03-29 Jakub Jelinek <jakub@redhat.com>
22336 PR rtl-optimization/70429
22337 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
22338 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
22339 mode != result_mode.
22342 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
22344 PR tree-optimization/70405
22345 * ssa-iterators.h (num_imm_uses): Add missing braces.
22347 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
22349 PR rtl-optimization/68695
22350 * ira-color.c (allocno_copy_cost_saving): New.
22351 (improve_allocation): Use it.
22353 2016-03-29 Richard Henderson <rth@redhat.com>
22355 PR middle-end/70355
22356 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
22358 2016-03-29 Richard Biener <rguenther@suse.de>
22360 PR middle-end/70424
22361 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
22362 use alignment returned by get_pointer_alignment_1 if it is
22363 bigger than BITS_PER_UNIT.
22364 * builtins.c (get_pointer_alignment_1): Do not return true
22365 for alignment extracted from SSA info.
22367 2016-03-28 James Bowman <james.bowman@ftdichip.com>
22369 * config/ft32/ft32.opt (mnodiv): New.
22370 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
22371 * doc/invoke.texi (FT32 Options -mnodiv): New.
22373 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
22376 * config/i386/i386.md (define_split, andn): Fix modes.
22378 2016-03-26 Richard Biener <rguenther@suse.de>
22379 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22382 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
22384 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
22385 as 2nd argument to cl_optimization_restore().
22387 2016-03-25 Richard Henderson <rth@redhat.com>
22390 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
22391 * config/aarch64/aarch64-protos.h: Declare it.
22392 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
22394 2016-03-25 Alan Modra <amodra@gmail.com>
22397 * config/rs6000/constraints.md (j): Simplify.
22398 * config/rs6000/predicates.md (easy_fp_constant): Exclude
22400 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
22401 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
22402 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
22403 in all constraint alternatives.
22404 (movtd_64bit_nodm): Delete "j" constraint alternative.
22406 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22408 * tree-ssa-propagate.c: Enhance docs for
22409 SSA_PROP_NOT_INTERESTING.
22411 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22413 * doc/extend.texi: Fix typo in documentation to pure attribute.
22415 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
22418 * config/pa/pa.md (bswapdi2): Use a scratch register.
22420 2016-03-24 Richard Henderson <rth@redhat.com>
22422 PR middle-end/69845
22423 * fold-const.c (extract_muldiv_1): Correct test for multiplication
22426 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
22428 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
22429 using ix86_expand_binary_operator instead of gen_andsi3.
22431 2016-03-24 Richard Biener <rguenther@suse.de>
22433 PR tree-optimization/70396
22434 * tree-vect-stmts.c (vectorizable_comparison): Use
22435 get_vectype_for_scalar_type.
22437 2016-03-24 Richard Biener <rguenther@suse.de>
22439 PR middle-end/70370
22440 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
22441 with register bases.
22443 2016-03-24 Richard Biener <rguenther@suse.de>
22445 PR tree-optimization/70372
22446 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
22447 build_all_ones_cst to also handle vector types correctly.
22449 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22452 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
22455 2016-03-23 Marek Polacek <polacek@redhat.com>
22458 * doc/invoke.texi: Document -Wignored-attributes.
22460 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22462 PR tree-optimization/69042
22463 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
22464 parameter from 30 to 40.
22466 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22468 PR tree-optimization/69042
22469 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
22470 for use with constant offset stripped in base.
22472 2016-03-23 Richard Biener <rguenther@suse.de>
22474 PR middle-end/70251
22475 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
22476 mode compatibility check.
22477 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22479 2016-03-23 Jeff Law <law@redhat.com>
22481 PR tree-optimization/64058
22482 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
22484 (struct ssa_conflicts): Move up earlier in the file.
22485 (conflicts_, var_map_): New static variables.
22486 (initialize_conflict_count): New function to initialize the
22487 CONFLICT_COUNT field for each conflict pair.
22488 (compare_pairs): Lazily initialize the conflict count and use it
22489 as the first tie-breaker.
22490 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
22491 and wipe conflicts_ and map_ around the call to qsort. Remove
22492 special case for 2 coalesce pairs.
22493 * bitmap.c (bitmap_count_unique_bits): New function.
22494 (bitmap_count_bits_in_word): New function, extracted from
22496 (bitmap_count_bits): Use bitmap_count_bits_in_word.
22497 * bitmap.h (bitmap_count_unique_bits): Declare it.
22499 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
22502 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
22503 transparent alias chain for decl assembler name.
22504 * config/sol2.c (solaris_assemble_visibility): Likewise.
22506 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22508 * config/arm/arm1020e.md (1020call_op): Reduce reservation
22510 (v10_fdivs): Likewise.
22511 (v10_fdivd): Likewise.
22513 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22516 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
22517 to not call fclose twice on file.
22519 2016-03-23 Jakub Jelinek <jakub@redhat.com>
22521 PR tree-optimization/70354
22522 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22523 oprnd0 is wider than oprnd1 and there is a cast from the wider
22524 type to oprnd1, mask it with the mask of the narrower type.
22527 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
22528 Optimize TARGET_STV splitters, if high or low word of last argument
22531 2016-03-22 Jeff Law <law@redhat.com>
22534 tree-ssa-threadbackward.c
22535 (fsm_find_control_statement_thread_paths): Correctly distinguish
22536 between old style jump threads vs FSM jump threads.
22538 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22541 * config/i386/i386.c (scalar_chain::convert_op): Support
22542 uninitialized register usage case.
22544 2016-03-22 Richard Biener <rguenther@suse.de>
22546 PR middle-end/70251
22547 * genmatch.c (gen_transform): Adjust last parameter to a three-state
22549 (capture::gen_transform): ... to change behavior when substituting
22550 a condition into cond or not-cond expr context.
22551 (dt_simplify::gen_1): Adjust.
22552 * gimple-match-head.c: Include gimplify.h for unshare_expr.
22553 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
22554 last change and instead change to
22555 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
22556 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22558 2016-03-22 Anthony Green <green@moxielogic.com>
22560 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
22561 issue for moxiebox targets.
22562 (CC1PLUS_SPEC): Ditto.
22564 2016-03-22 Richard Biener <rguenther@suse.de>
22566 PR middle-end/70333
22567 * fold-const.c (extract_muldiv_1): Properly perform multiplication
22570 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22572 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
22574 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22577 * config/i386/i386.c (def_builtin): Handle
22578 OPTION_MASK_ISA_AVX512VL to be and-ed with other
22580 (const struct builtin_description bdesc_special_args[]):
22581 Remove duplicate ISA bits.
22583 2016-03-22 Jakub Jelinek <jakub@redhat.com>
22586 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
22587 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
22588 in a way that works also for AVX512BW.
22591 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
22592 instead of source if operands[1] is xmm16 and above and
22593 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
22594 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
22597 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
22598 on assign if (*from_p) is a comparison, set it to
22599 TREE_NO_WARNING (*from_p).
22601 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22603 PR middle-end/70326
22604 * lra.c (restore_scratches): Ignore deleted insns.
22606 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
22607 Jakub Jelinek <jakub@redhat.com>
22609 PR tree-optimization/70317
22610 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
22613 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
22616 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
22617 of ix86_expand_move.
22619 (movti): Use general_operand for operand 1 predicate.
22621 2016-03-21 Martin Liska <mliska@suse.cz>
22623 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
22625 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
22627 2016-03-21 Martin Liska <mliska@suse.cz>
22630 * ipa-icf.c (sem_function::parse): Skip static
22631 constructors and destructors.
22633 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22636 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
22637 function-like macro, peek following token(s) if it is followed
22638 by CPP_OPEN_PAREN token with optional padding in between, and
22639 if not, don't treat it like a macro.
22641 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
22642 Alexander Monakov <amonakov@ispras.ru>
22644 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
22645 for the stabs debug format.
22647 2016-03-21 Richard Biener <rguenther@suse.de>
22649 PR tree-optimization/70310
22650 * tree-vect-generic.c (expand_vector_condition): Fold the built
22653 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
22656 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
22657 Block third alternative for AVX-512VL target,
22659 2016-03-21 Martin Liska <mliska@suse.cz>
22662 * hsa-brig.c (emit_function_directives): Mark unemitted
22663 global variables for emission.
22664 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
22665 (get_symbol_for_decl): Likewise.
22666 * hsa.h (struct hsa_symbol): New flag.
22668 2016-03-21 Richard Biener <rguenther@suse.de>
22670 PR tree-optimization/70288
22671 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
22672 we do not estimate unsimplified all-constant conditionals or
22673 switches as optimized away.
22675 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
22677 PR rtl-optimization/69102
22678 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
22679 when we have a readonly dependency context.
22681 2016-03-18 Jeff Law <law@redhat.com>
22683 PR rtl-optimization/70263
22684 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
22685 (update_equiv_regs): When trying to move a store to after the insn
22686 that sets the source of the store, make sure the store occurs after
22687 the insn that sets the source of the store. When successful note
22688 the REG_EQUIV note created in the dump file.
22690 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
22691 Bernd Schmidt <bschmidt@redhat.com>
22693 * doc/extend.texi: Document more potential problems with basic asms.
22695 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
22697 PR rtl-optimization/70278
22698 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
22701 2016-03-18 Jason Merrill <jason@redhat.com>
22703 * calls.c (load_register_parameters): Fix zero size sibcall logic.
22705 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22707 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
22708 values to 128b regs.
22710 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22712 PR tree-optimization/70252
22713 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
22714 boolean vector has a proper number of elements.
22715 (supportable_narrowing_operation): Likewise.
22717 2016-03-18 Tom de Vries <tom@codesourcery.com>
22720 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
22722 2016-03-18 Jakub Jelinek <jakub@redhat.com>
22724 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
22725 instead of replace_rtx for DEBUG_INSNs.
22727 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22729 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
22730 load type reservations.
22732 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
22735 * config/pa/constraints.md: Revert 2015-02-13 change. Use
22736 define_constraint for "Q" and "T" constraints.
22738 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
22740 Tweak the pipeline model for Exynos M1
22742 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
22745 2016-03-17 David Malcolm <dmalcolm@redhat.com>
22748 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
22749 where one or both locations aren't within a line_map.
22751 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
22754 * opts.c (finish_options): Don't set flag_pie to the default if
22755 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
22758 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
22760 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
22761 true as ALL_REGS argument to replace_rtx.
22763 2016-03-17 Richard Biener <rguenther@suse.de>
22766 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
22769 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22772 * rtl.h (replace_rtx): Add ALL_REGS argument.
22773 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
22774 equality and assert mode is the same, instead of just rtx pointer
22776 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
22777 true as ALL_REGS argument to replace_rtx.
22779 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
22781 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
22782 for boolean vector with vector mode only.
22783 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22785 2016-03-17 Nick Clifton <nickc@redhat.com>
22788 * config/rx/rx.c (rx_print_integer): Print negative constants in
22791 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22794 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
22796 2016-03-16 Richard Henderson <rth@redhat.com>
22797 Richard Biener <rguenth@suse.de>
22799 PR middle-end/70240
22800 PR middle-end/68215
22802 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
22803 first operand as is_gimple_condexpr.
22805 PR middle-end/70240
22806 PR middle-end/68215
22808 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
22809 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
22810 Do not gimplify the result.
22811 (do_unop): Adjust call to tree_vec_extract.
22812 (do_binop): Likewise.
22813 (do_compare): Likewise.
22814 (do_plus_minus): Likewise.
22815 (do_negate): Likewise.
22816 (expand_vector_condition): Likewise.
22817 (do_cond): Likewise.
22819 2016-03-16 Richard Henderson <rth@redhat.com>
22822 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
22823 (aarch64_classify_address): Use it.
22824 (aarch64_legitimize_address): Force all subexpressions of PLUS
22825 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
22827 2016-03-16 Jakub Jelinek <jakub@redhat.com>
22828 Richard Biener <rguenth@suse.de>
22831 * rtlanal.c (replace_rtx): For REG, if from is a REG,
22832 return to even if only REGNO is equal, and assert
22835 2016-03-11 Jeff Law <law@redhat.com>
22837 PR rtl-optimization/70224
22838 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
22840 2016-03-16 Richard Henderson <rth@redhat.com>
22842 PR middle-end/70199
22843 * function.h (struct function): Add has_forced_label_in_static.
22844 * gimplify.c (force_labels_r): Set it.
22845 * lto-streamer-in.c (input_struct_function_base): Read it.
22846 * lto-streamer-out.c (output_struct_function_base): Write it.
22847 * tree-inline.c (has_label_address_in_static_1): Remove.
22848 (copy_forbidden): Remove fndecl parameter; test
22849 has_forced_label_in_static.
22850 (inline_forbidden_p): Update call to copy_forbidden.
22851 (tree_versionable_function_p): Likewise.
22852 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
22853 (chkp_versioning): Likewise.
22854 * tree-inline.h (copy_forbidden): Update decl.
22856 2016-03-16 Marek Polacek <polacek@redhat.com>
22859 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
22860 function being thunked if the result type doesn't have fixed size.
22861 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
22862 doesn't have fixed size.
22864 2016-03-16 Bin Cheng <bin.cheng@arm.com>
22866 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
22867 reporting malformed loop nest.
22869 2016-03-16 Tom de Vries <tom@codesourcery.com>
22872 * ipa-devirt.c (possible_polymorphic_call_targets): Move
22873 nodes.length () == 1 test to before first nodes[0] access.
22875 2016-03-16 Tom de Vries <tom@codesourcery.com>
22877 PR tree-optimization/68715
22878 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
22879 single_pred_p test.
22881 2016-03-16 Tom de Vries <tom@codesourcery.com>
22883 PR tree-optimization/68809
22884 * graphite-scop-detection.c (same_close_phi_node): Test if result types
22887 2016-03-16 Carlos O'Donell <carlos@redhat.com>
22888 Sandra Loosemore <sandra@codesourcery.com>
22890 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
22891 on leaf attribute. Mention ELF interposition problems.
22893 2016-03-16 Alan Modra <amodra@gmail.com>
22895 PR rtl-optimization/69195
22896 PR rtl-optimization/47992
22897 * ira.c (indirect_jump_optimize): Ignore artificial defs.
22900 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
22903 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
22905 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22907 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
22909 2016-03-15 Jakub Jelinek <jakub@redhat.com>
22911 PR rtl-optimization/70222
22912 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
22913 optimization if mode is different from result_mode, queue up masking
22914 of the result in outer_op. Formatting fix.
22916 PR middle-end/70239
22917 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
22920 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22922 PR rtl-optimization/69032
22923 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
22924 looping backwards over basic block insns.
22926 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22929 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
22930 to non-speculative when propagating trap bits.
22932 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22934 PR rtl-optimization/63384
22935 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
22936 DEBUG_INSN_P insns.
22938 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22941 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
22942 factored out from ...
22943 (sched_analyze_insn): ... here.
22944 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
22945 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
22946 get_implicit_reg_pending_clobbers in it.
22947 (setup_id_reg_sets): Use setup_id_implicit_regs.
22948 (deps_init_id): Ditto.
22950 2016-03-15 Tom de Vries <tom@codesourcery.com>
22953 * cgraph.c (cgraph_node::get_body): Save, reset and restore
22955 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
22956 execute_function_dump.
22957 (execute_one_pass): Don't dump function if it will be dumped after ipa
22960 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22962 * genrecog.c (match_pattern_2): If pred is NULL don't call
22963 safe_predicate_mode on it.
22965 2016-03-14 Jakub Jelinek <jakub@redhat.com>
22967 PR middle-end/70219
22968 * lra-constraints.c (delete_move_and_clobber): Change assertion
22969 to also allow dregno == 0.
22971 2016-03-14 Richard Henderson <rth@redhat.com>
22974 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
22975 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
22976 (reassociate_bb): Use optimize_vec_cond_expr; avoid
22977 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
22980 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
22983 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
22985 (lra_create_live_ranges_1): initialize hard register biggest_mode to
22987 * lra-constraints.c (split_reg): For hard regs, try to find the
22988 biggest single-register mode used in the function.
22990 2016-03-14 Richard Biener <rguenther@suse.de>
22992 PR tree-optimization/56365
22993 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
22994 constants to compare against.
22996 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
22999 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
23000 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
23001 (define_split for the GPR case): Use int_reg_operand instead of
23002 gpc_reg_operand for the output.
23004 2016-03-14 Tom de Vries <tom@codesourcery.com>
23006 PR tree-optimization/70045
23007 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
23008 create_empty_if_region_on_edge argument.
23010 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
23012 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
23013 (STACK_CHECK_PROTECT): Likewise.
23014 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23015 (STACK_CHECK_PROTECT): Likewise.
23016 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23017 (STACK_CHECK_PROTECT): Likewise.
23018 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
23019 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
23020 (STACK_CHECK_PROTECT): Likewise.
23022 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
23024 PR rtl-optimization/69307
23025 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
23026 registers in modes that span more than one register.
23028 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
23031 * lra-constraints.c (delete_move_and_clobber): New.
23032 (remove_inheritance_pseudos): Use it.
23034 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
23037 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
23038 the libcall is LCT_THROW.
23039 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
23040 for the checking routine.
23042 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23045 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
23046 optimization if we have direct move.
23047 (roundu32<mode>2_fprs): Likewise.
23049 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
23052 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
23054 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
23055 Arguments swapped. All callers changed. Take reg_renumber into
23056 account, and Calculate and compare register ranges for hard regs.
23058 2016-03-11 Jeff Law <law@redhat.com>
23060 PR tree-optimization/70190
23061 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23062 Handle cases where we can not extract the taken edge, even though we
23063 found a constant value.
23065 PR tree-optimization/64058
23066 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
23067 (num_coalesce_pairs): Move up earlier in file.
23068 (find_coalesce_pair): Initialize the INDEX field for each pair
23070 (compare_pairs): No longer sort on the elements in each pair.
23071 Instead break ties with the index of the coalesce pair.
23073 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23076 * config/aarch64/aarch64-protos.h
23077 (aarch64_save_restore_target_globals): New prototype.
23078 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
23079 Call the above when popping pragma.
23080 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
23082 (aarch64_set_current_function): Rewrite using the above.
23084 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23086 PR tree-optimization/70177
23087 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
23088 (extract_ops_from_tree): ... this. In the 2 argument
23089 overload remove _1 suffix.
23090 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
23091 (extract_ops_from_tree): ... this.
23092 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
23094 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
23095 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
23096 extract_ops_from_tree instead of 2 operand one.
23098 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
23100 PR tree-optimization/70013
23101 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
23102 for constant-pool entries.
23104 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23106 PR rtl-optimization/70174
23107 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
23108 followed by gen_lowpart on force_reg instead of just gen_lowpart.
23110 PR tree-optimization/70169
23111 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
23112 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
23115 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
23116 Jakub Jelinek <jakub@redhat.com>
23119 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
23120 of uninitialized values.
23122 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23124 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
23126 ("*trunctddd2"): New pattern definition.
23127 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
23130 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23132 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
23133 definitions for BFP and DFP rounding modes.
23134 ("fixuns_truncdddi2", "fixuns_trunctddi2")
23135 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
23136 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
23137 ("fix_trunctf<mode>2"): Use the new constants instead of magic
23140 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23142 * config/s390/constraints.md: Adjust comment.
23143 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
23144 s390_decompose_addrstyle_without_index.
23145 * config/s390/predicates.md (shift_count_or_setmem_operand):
23146 Rename to setmem_operand.
23147 * config/s390/s390-protos.h
23148 (s390_decompose_shift_count): Rename to
23149 s390_decompose_addrstyle_without_index.
23150 * config/s390/s390.c (s390_decompose_shift_count)
23151 (s390_mem_constraint, print_shift_count_operand)
23152 (print_operand_address, print_operand): Rename
23153 s390_decompose_shift_count to
23154 s390_decompose_addrstyle_without_index and rename
23155 print_shift_count_operand to print_addrstyle_operand troughout the
23157 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
23158 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
23159 Rename shift_count_or_setmem_operand to setmem_operand.
23160 * config/s390/vx-builtins.md ("vec_insert<mode>")
23161 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
23164 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23167 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23168 Handle overlapping retval and newval.
23170 2016-03-10 Nick Clifton <nickc@redhat.com>
23173 * config/aarch64/aarch64.c
23174 (aarch64_override_options_after_change_1): When forcing
23175 flag_omit_frame_pointer to be true, use a special value that can
23176 be detected if this function is called again, thus preventing
23177 flag_omit_leaf_frame_pointer from being forced to be false.
23179 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23181 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
23182 Set x_flag_omit_leaf_frame_pointer when handling
23183 -momit-leaf-frame-pointer.
23185 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23188 * cgraph.c (cgraph_node::dump): Dump split_part and
23189 indirect_call_target.
23190 * cgraph.h (cgraph_node): Add indirect_call_target flag.
23191 * ipa.c (has_addr_references_p): Cleanup.
23192 (is_indirect_call_target_p): New.
23193 (walk_polymorphic_call_targets): Do not mark virtuals that may be
23194 called indirectly as local.
23195 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
23197 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23200 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23201 on cxa_pure_virtual.
23203 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23206 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
23208 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23211 * tree.c (need_assembler_name_p): Only record main variant type names.
23213 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23216 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
23217 Always define to 0 or 1.
23218 (TARGET_FIX_ERR_A53_843419): New macro.
23219 * config/aarch64/aarch64-elf-raw.h
23220 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
23221 * config/aarch64/aarch64-linux.h: Likewise.
23222 * config/aarch64/aarch64.c
23223 (aarch64_override_options_after_change_1): Do not default
23224 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
23226 (aarch64_attributes): Handle fix-cortex-a53-843419.
23227 (aarch64_can_inline_p): Likewise.
23228 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
23230 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
23231 Jakub Jelinek <jakub@redhat.com>
23233 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
23234 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
23235 DECL_COMMONS if flag_unconstrained_commons is set.
23236 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23237 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
23238 (funconstrained-commons): Document.
23240 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23242 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
23243 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
23245 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
23247 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
23248 has a proper number of elements.
23250 2016-03-10 Alan Modra <amodra@gmail.com>
23252 PR rtl-optimization/69195
23253 PR rtl-optimization/47992
23254 * ira.c (recorded_label_ref): Delete.
23255 (update_equiv_regs): Return void.
23256 (indirect_jump_optimize): New function.
23257 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
23258 before regstat_compute_ri. Don't rebuild_jump_labels here.
23259 Delete update_regstat.
23261 2016-03-10 Richard Biener <rguenther@suse.de>
23263 PR tree-optimization/70128
23264 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23265 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
23267 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23269 PR tree-optimization/70152
23270 * tree-sra.c (replace_removed_params_ssa_names): Copy over
23271 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
23274 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
23275 instead of gen_sse2_loadlpd.
23276 * config/i386/sse.md (*vec_concatv2df): Rename to...
23277 (vec_concatv2df): ... this.
23279 PR tree-optimization/70127
23280 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
23282 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23286 * diagnostic-show-locus.c (compatible_locations_p): New function.
23287 (layout::layout): Sanitize ranges using compatible_locations_p.
23289 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23293 * diagnostic-show-locus.c (layout_range::layout_range): Replace
23294 location_range param with three const expanded_locations * and a
23296 (layout::layout): Replace call to
23297 rich_location::lazily_expand_location with get_expanded_location.
23298 Extract the range and perform location expansion here, passing
23299 the results to the layout_range ctor.
23300 * diagnostic.c (source_range::debug): Delete.
23301 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
23302 of rich_location::get_expanded_location.
23303 * gcc-rich-location.c (get_range_for_expr): Delete.
23304 (gcc_rich_location::add_expr): Reimplement to avoid the
23305 rich_location::add_range overload that took a location_range,
23306 passing a location_t instead.
23308 2016-03-09 Richard Biener <rguenther@suse.de>
23309 Jakub Jelinek <jakub@redhat.com>
23311 PR tree-optimization/70138
23312 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23313 Also skip vect_double_reduction_def.
23315 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23318 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
23319 if the operand is "m".
23321 2016-03-09 Nathan Sidwell <nathan@acm.org>
23323 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
23325 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23327 * config/i386/i386.c (processor_target_table): Fix cost table
23328 intialization order for znver1.
23330 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23332 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
23333 - becuase -> because.
23334 * ipa-reference.c (ignore_module_statics): Likewise.
23335 * cgraph.c (cgraph_node::get_body): Likewise.
23336 * ipa-inline.c (early_inliner): Likewise.
23337 * ipa-devirt.c (types_same_for_odr): Likewise.
23338 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
23339 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
23341 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23343 * tree-ssa-math-opts.c: Fix typo in comment.
23345 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23348 * config/i386/i386.c (scalar_chain::make_vector_copies,
23349 scalar_chain::convert_reg): Call end_sequence in between
23350 get_insns and emit_conversion_insns rather than after both
23353 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
23356 * config/i386/i386.h (machine_function): Add
23357 pc_thunk_call_expanded flag.
23358 (ix86_pc_thunk_call_expanded): New define.
23359 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
23360 (*set_got): Rename insn pattern from set_got.
23361 (*set_got_labelled): Rename inst pattern from set_got_labelled.
23362 * config/i386/i386.c (ix86_compute_frame_layout): Use
23363 ix86_pc_thunk_call_expanded to prevent red-zone.
23365 2016-03-07 Martin Jambor <mjambor@suse.cz>
23367 * hsa.h (hsa_get_ctor_statements): Declare.
23368 (hsa_get_dtor_statements): Likewise.
23369 (hsa_get_kernel_dispatch_type): Likewise.
23370 * hsa.c (hsa_get_ctor_statements): New function.
23371 (hsa_get_dtor_statements): Likewise.
23372 (hsa_get_kernel_dispatch_type): Likewise.
23373 * hsa-brig.c (hsa_cdtor_statements): Removed.
23374 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
23375 hsa_get_dtor_statements.
23376 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
23377 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
23379 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
23381 * config/arm/arm-cores.def (cortex-r8): New.
23382 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
23383 * config/arm/arm-tune.md: Likewise.
23384 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
23386 2016-03-07 Martin Sebor <msebor@redhat.com>
23388 PR rtl-optimization/19705
23389 * doc/invoke.texi (Options That Control Optimization): Clarify
23390 -fno-branch-count-reg.
23392 2016-02-26 Richard Biener <rguenther@suse.de>
23393 Jeff Law <law@redhat.com>
23395 PR tree-optimization/69740
23396 * cfghooks.c (remove_edge): Request loop fixups if we delete
23397 an edge that might turn an irreducible loop into a natural
23399 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
23400 Move after definition of loops_state_clear.
23402 2016-03-07 Bin Cheng <bin.cheng@arm.com>
23404 PR rtl-optimization/69052
23405 * rtlanal.c (commutative_operand_precedence): Set higher precedence
23408 2016-03-07 Tom de Vries <tom@codesourcery.com>
23410 PR tree-optimization/70116
23411 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
23412 is_tm_ending stmts and ubsan/asan internal functions.
23413 (find_duplicate): Use it. Don't test is_tm_ending here.
23415 2016-03-07 Richard Biener <rguenther@suse.de>
23417 PR tree-optimization/70115
23418 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
23419 (propagate_constants_for_unrolling): Use replace_uses_by.
23421 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
23423 PR middle-end/69916
23424 * omp-low.c (struct oacc_loop): Add ifns.
23425 (new_oacc_loop_raw): Initialize it.
23426 (finish_oacc_loop): Clear mask & flags if no ifns.
23427 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
23428 (oacc_loop_xform_loop): Add ifns arg & adjust.
23429 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
23431 2016-03-07 Richard Henderson <rth@redhat.com>
23434 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
23435 (insert_value_copy_on_edge): Likewise.
23437 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23439 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
23441 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23444 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
23446 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23448 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
23450 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23452 Fix sseimul type attribute.
23453 * config/i386/znver1.md
23454 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
23455 znver1_sseimul_avx256_load) : Fix the type attribute.
23456 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
23457 pipe usage and latency.
23459 2016-03-05 Jakub Jelinek <jakub@redhat.com>
23462 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
23463 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
23466 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23469 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
23471 PR rtl-optimization/69941
23472 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
23473 the reg share its mode.
23475 2016-03-04 Jeff Law <law@redhat.com>
23477 PR tree-optimization/69196
23478 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23479 If the both SSA_NAMEs are anonymous, then consider them unassociated
23480 and include the PHI in the statement count.
23482 2016-03-05 Tom de Vries <tom@codesourcery.com>
23484 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
23485 construct in oacc routine. Check for oacc region in oacc routine.
23487 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23490 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
23491 2016-02-22 changes, instead don't recurse if RECUR is already true.
23492 Don't change *dynamic_check if RECUR. Adjust recursive caller
23493 to pass true to the new argument.
23494 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
23497 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23498 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
23500 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
23502 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23504 PR rtl-optimization/57676
23505 * lra-assigns.c (lra_assign): Guard test for maximum iterations
23506 with flag_checking.
23508 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
23510 * tree-vect-patterns.c (search_type_for_mask): Handle
23511 comparison of booleans.
23513 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23515 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
23519 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
23520 all other ops that have dw_val_class_die_ref operands,
23521 and DW_OP_GNU_entry_value.
23523 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23525 PR rtl-optimization/69904
23526 * config/arm/arm.c (arm_cannot_copy_insn_p):
23527 Return true for load-exclusive instructions.
23529 2016-03-03 Jakub Jelinek <jakub@redhat.com>
23532 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
23533 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
23534 the pattern no matter if it is used just by non-pattern, pattern
23536 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
23537 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
23538 oprnd1 def_stmt is in pattern, don't look through it.
23540 2016-03-03 Marek Polacek <polacek@redhat.com>
23542 PR middle-end/70050
23543 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
23545 2016-03-03 Martin Liska <mliska@suse.cz>
23547 PR tree-optimization/70043
23548 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
23549 previous statement if we see a debug statement.
23551 2016-03-03 Richard Biener <rguenther@suse.de>
23553 PR tree-optimization/55936
23554 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
23555 parameter and guard unsafe equivalence use.
23556 (vrp_evaluate_conditional_warnv_with_ops): Always use
23557 safe equivalences but not via the quadratic compare_names
23560 2016-03-03 Michael Collison <michael.collison@linaro.org>
23563 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
23564 for operand 1 to s_register_operand. Change predicate for operand
23565 2 to arm_not_immediate_operand.
23567 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
23569 * doc/tm.texi: Regenerated.
23571 2016-03-02 Richard Henderson <rth@redhat.com>
23574 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
23575 simplification when all args are positive non-fixed registers.
23577 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23579 * target.def (lra_p): Specify that new ports should use LRA.
23581 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23584 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
23585 gimplify_type_sizes the type they refer to.
23586 (omp_notice_variable): Handle reference vars to VLAs.
23587 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
23588 reference to VLA decls in the second pass instead of first pass.
23590 2016-03-02 Tom de Vries <tom@codesourcery.com>
23592 PR tree-optimization/68659
23593 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
23594 new_expr == NULL_TREE.
23595 (get_new_name): Handle ADDR_EXPR.
23597 2016-03-02 Bin Cheng <bin.cheng@arm.com>
23599 PR rtl-optimization/69052
23600 * loop-invariant.c (canonicalize_address): New function.
23601 (inv_can_prop_to_addr_use): Check validity of address expression
23602 which is canonicalized by above function.
23604 2016-03-02 Alan Modra <amodra@gmail.com>
23607 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
23610 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23613 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
23614 (*movhi_internal): Put mask moves from and to memory separately
23615 from moves from/to GPRs.
23617 2016-03-02 Richard Biener <rguenther@suse.de>
23619 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
23620 GENERIC expressions in GIMPLE.
23622 2016-03-02 Richard Biener <rguenther@suse.de>
23624 * config/i386/i386.c (type_natural_mode): Fix typo.
23626 2016-03-02 Nick Clifton <nickc@redhat.com>
23628 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
23630 2016-03-02 Richard Biener <rguenther@suse.de>
23631 Uros Bizjak <ubizjak@gmail.com>
23634 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
23636 2016-03-02 Richard Biener <rguenther@suse.de>
23638 PR middle-end/67278
23639 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
23641 2016-03-02 Marek Polacek <polacek@redhat.com>
23644 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
23645 "is promoted to" warning.
23647 2016-03-01 DJ Delorie <dj@redhat.com>
23649 * config.gcc: Deprecate mep-*.
23651 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
23653 PR middle-end/70025
23654 * lra-constraints.c (regno_val_use_in): New.
23655 (match_reload): Use it instead of regno_use_in.
23657 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23659 PR rtl-optimization/70007
23660 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
23661 references present in REG_EQUAL notes attached to non-SET patterns.
23663 2016-03-01 Jeff Law <law@redhat.com>
23665 PR tree-optimization/69196
23666 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23667 Appropriately clamp the number of statements to copy when the
23668 thread path does not traverse a loop backedge.
23670 PR tree-optimization/69196
23671 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23672 Do count some PHIs in the thread path against the insn count. Decrease
23673 final statement count by one as the control statement in the last
23674 block will get removed. Remove special cased code for handling PHIs
23677 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
23680 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
23681 asm dialect alternatives to explicit GOTPCREL calls.
23683 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23686 * ira.c (do_reload): Issue warning for generic stack checking here...
23687 * reload1.c (reload): ...instead of here and streamline it.
23689 2016-03-01 Nick Clifton <nickc@redhat.com>
23691 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
23693 2016-03-01 Richard Biener <rguenther@suse.de>
23695 PR tree-optimization/69983
23696 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
23697 types and fall back to operand_equal_p.
23699 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23702 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23704 * config/s390/constraints.md ("jm8"): New constraint.
23705 * config/s390/predicates.md ("const_int_8bitset_operand"): New
23707 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
23709 ("*setmem_long<setmem_and>"): New pattern.
23710 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
23712 ("*setmem_long_31z<setmem_and>"): New pattern.
23713 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
23714 New substitution rules with the required attributes.
23717 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23720 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23722 * gensupport.c (process_substs_on_one_elem): Split loop to
23723 complete mark_operands_used_in_match_dup on all expressions in the
23725 (adjust_operands_numbers): Inline into process_substs_on_one_elem
23726 and remove function.
23728 2016-03-01 Richard Biener <rguenther@suse.de>
23730 PR middle-end/70022
23731 * fold-const.c (fold_indirect_ref_1): Fix range checking for
23732 vector BIT_FIELD_REF extract.
23734 2016-03-01 Richard Biener <rguenther@suse.de>
23736 PR tree-optimization/69994
23737 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
23739 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
23741 PR tree-optimization/69956
23742 * tree-vect-stmts.c (supportable_widening_operation): Support
23743 multi-step conversion of boolean vectors.
23744 (supportable_narrowing_operation): Likewise.
23746 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23748 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
23751 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23753 * config/s390/subst.md (DSI_VI): New mode iterator.
23754 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
23755 * config/s390/vector.md ("vec_set<mode>"): Move expander before
23756 the insn definition.
23757 ("*vec_set<mode>"): Change predicate and add alternative to
23758 support only either register or const_int operands as element
23760 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
23762 ("vec_extract<mode>"): New expander.
23763 ("*vec_extract<mode>"): New insn definition supporting reg and
23764 const_int element selectors.
23765 ("*vec_extract<mode>_plus"): New insn definition supporting
23766 reg+const_int element selectors.
23767 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
23768 following expander+insn definition.
23769 ("<vec_shifts_name><mode>3"): New expander.
23770 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
23772 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23774 * config/s390/s390.md ("*tabort_1"): Change predicate to
23775 nonmemory_operand. Add a second alternative to cover
23776 register as well as const int operands.
23777 ("*tabort_1_plus"): New pattern definition.
23779 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23781 * config/s390/s390.md ("*ashrdi3_cc_31")
23782 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
23783 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
23784 Merge insn definitions into ...
23785 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23786 New pattern definition.
23787 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
23788 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
23789 ("*ashr<mode>3_and"): Merge insn definitions into ...
23790 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23791 New pattern definition.
23792 * config/s390/subst.md ("addr_style_op_cc_subst")
23793 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
23794 substitutions patterns plus attributes.
23795 Add ashiftrt to SUBST iterator.
23797 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23799 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
23800 op2 to nonmemory_operand.
23801 ("*<shift>di3_31", "*<shift>di3_31_and"):
23802 Merge into single pattern definition ...
23803 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
23804 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
23805 pattern definition ...
23806 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
23807 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
23810 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23812 * config/s390/predicates.md (const_int_6bitset_operand): New
23814 * config/s390/s390.md: Include subst.md.
23815 ("rotl<mode>3"): New expander.
23816 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
23818 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
23819 * config/s390/subst.md: New file.
23821 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23823 * config/s390/s390.md ("op_type", "atype", "length" attributes):
23824 Remove RRR type. It doesn't really exist.
23825 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
23827 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
23828 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
23829 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
23830 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
23831 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
23832 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
23833 `enabled' attribute.
23835 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23837 * gensupport.c (process_substs_on_one_elem): Split loop to
23838 complete mark_operands_used_in_match_dup on all expressions in the
23840 (adjust_operands_numbers): Inline into process_substs_on_one_elem
23841 and remove function.
23843 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
23846 * config/sparc/sparc.c (NWORDS_UP): Rename to...
23847 (CEIL_NWORDS): ...this. Use CEIL macro.
23848 (compute_fp_layout): Adjust to above renaming.
23849 (function_arg_union_value): Likewise.
23850 (sparc_arg_partial_bytes): Likewise.
23851 (sparc_function_arg_advance): Likewise.
23853 2016-02-29 Jeff Law <law@redhat.com>
23855 PR tree-optimization/70005
23856 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
23857 where an object with a boolean range is compared against a value
23860 PR tree-optimization/69999
23861 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
23862 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
23865 2016-02-29 Richard Biener <rguenther@suse.de>
23867 PR tree-optimization/69994
23868 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
23869 (get_unary_op): Look through nop conversions.
23870 (ops_equal_values_p): New function, look for equality diregarding
23872 (eliminate_plus_minus_pair): Use ops_equal_values_p
23873 (repropagate_negates): Do not use get_unary_op here.
23875 2016-02-29 Martin Liska <mliska@suse.cz>
23877 * system.h: Poison ENABLE_CHECKING macro.
23879 2016-02-29 Martin Liska <mliska@suse.cz>
23881 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
23882 is presented in dump flags.
23883 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
23884 (hsa_regalloc): Likewise.
23886 2016-02-19 Richard Biener <rguenther@suse.de>
23888 PR tree-optimization/69980
23889 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
23890 permutation of those we need to keep.
23892 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
23895 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
23896 (NWORDS_UP): ...this
23897 (init_cumulative_args): Minor tweaks.
23898 (sparc_promote_function_mode): Likewise.
23899 (scan_record_type): Delete.
23900 (traverse_record_type): New function template.
23901 (classify_data_t): New structure type.
23902 (classify_registers): New inline function.
23903 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
23904 exhausted. Instantiate traverse_record_type on classify_registers and
23905 deal with the case of a structure passed in slot #15 with no FP field
23907 (assign_data_t): New structure type.
23908 (compute_int_layout): New static function.
23909 (compute_fp_layout): Likewise.
23910 (count_registers): New inline function.
23911 (assign_int_registers): New static function.
23912 (assign_fp_registers): Likewise.
23913 (assign_registers): New inline function.
23914 (function_arg_record_value_1): Delete.
23915 (function_arg_record_value_2): Likewise.
23916 (function_arg_record_value_3): Likewise.
23917 (function_arg_record_value): Adjust to above changes. Instantiate
23918 traverse_record_type on count_registers to first count the number of
23919 registers to be used and then on assign_registers to assign them.
23920 (function_arg_union_value): Adjust to above renaming.
23921 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
23922 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
23923 case of a structure passed in slot #15
23924 (sparc_function_arg_advance): Likewise.
23925 (function_arg_padding): Minor tweak.
23927 2016-02-29 Richard Biener <rguenther@suse.de>
23929 PR tree-optimization/69720
23930 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
23931 the adjustment_def path for possibly vectorized defs.
23932 (vect_create_epilog_for_reduction): Handle vectorized initial
23935 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
23937 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
23939 2016-02-27 Jeff Law <law@redhat.com>
23942 2016-02-26 Richard Biener <rguenther@suse.de>
23943 Jeff Law <law@redhat.com>
23945 PR tree-optimization/69740
23946 * cfghooks.c (remove_edge): Request loop fixups if we delete
23947 an edge that might turn an irreducible loop into a natural
23950 2016-02-27 Jakub Jelinek <jakub@redhat.com>
23952 PR rtl-optimization/69896
23953 * tree-vect-generic.c (get_compute_type): Avoid single element
23956 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
23958 Rename the AArch64 tuning option and related functions to enable the
23959 Newton series for the reciprocal square root to reflect its
23960 approximative characteristic.
23962 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
23963 function to "aarch64_emit_approx_rsqrt".
23964 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
23965 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
23966 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
23967 (xgene1_tunings): Likewise.
23968 (use_rsqrt_p): Likewise.
23969 (aarch64_emit_swrsqrt): Use new function name.
23970 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
23971 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
23972 text explaining this option.
23973 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
23975 2016-02-26 Jakub Jelinek <jakub@redhat.com>
23978 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23979 complain about -mallow-movmisalign without -mvsx if
23980 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
23982 2016-02-26 Joel Sherrill <joel@rtems.org>
23984 * config.gcc: Add x86_64-*-rtems*.
23985 * config/i386/rtems-64.h: New file.
23987 2016-02-26 Joel Sherrill <joel@rtems.org>
23989 * config.gcc: Add aarch64-*-rtems*.
23990 * config/aarch64/rtems.h: New file.
23992 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
23995 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
23996 shift amount using %h. Add comment.
23998 2016-02-26 Richard Biener <rguenther@suse.de>
23999 Jeff Law <law@redhat.com>
24001 PR tree-optimization/69740
24002 * cfghooks.c (remove_edge): Request loop fixups if we delete
24003 an edge that might turn an irreducible loop into a natural
24006 2016-02-26 Martin Jambor <mjambor@suse.cz>
24008 PR middle-end/69920
24009 * tree-sra.c (sra_modify_assign): Do not remove loads of
24010 uninitialized aggregates to SSA_NAMEs.
24012 2016-02-26 Richard Henderson <rth@redhat.com>
24015 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
24016 pseudo in case the target rtx matches the source of the left
24019 2016-02-26 Martin Jambor <mjambor@suse.cz>
24022 * hsa.h (hsa_type_packed_p): Declare.
24023 * hsa.c (hsa_type_packed_p): New function.
24024 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
24026 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
24027 * hsa-brig.c (emit_basic_insn): Likewise.
24029 2016-02-26 Martin Jambor <mjambor@suse.cz>
24032 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
24034 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
24036 2016-02-26 Martin Jambor <mjambor@suse.cz>
24038 * hsa.h (is_a_helper): New overload for hsa_op_immed for
24039 hsa_op_with_type operands.
24040 (hsa_unsigned_type_for_type): Declare.
24041 * hsa.c (hsa_unsigned_type_for_type): New function.
24042 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
24043 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
24044 the finalizer. Do not emit extra move.
24046 2016-02-26 Martin Jambor <mjambor@suse.cz>
24048 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
24049 atomic operations in private segment.
24051 2016-02-26 Martin Jambor <mjambor@suse.cz>
24053 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
24054 statements to wi->info. Also disallow omp simd constructs.
24055 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
24056 for not gridifying. Dump special string for omp_for.
24058 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24061 * config/aarch64/aarch64.c (aarch64_set_current_function):
24062 Save/restore target globals when switching to
24063 target_option_default_node.
24065 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24068 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
24069 Return 0 if !SHIFT_COUNT_TRUNCATED.
24071 2016-02-26 Jakub Jelinek <jakub@redhat.com>
24072 Eric Botcazou <ebotcazou@adacore.com>
24074 PR rtl-optimization/69891
24075 * dse.c (scan_insn): If we can't figure out memset arguments
24076 or they are non-constant, call clear_rhs_from_active_local_stores.
24078 2016-02-26 Martin Liska <mliska@suse.cz>
24080 * doc/extend.texi: Mention clog10, clog10f an clog10l
24081 in Builtins section.
24083 2016-02-26 Martin Liska <mliska@suse.cz>
24085 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
24087 (resolve_args_picking_1): Likewise.
24088 * dwarf2out.h (struct GTY): Likewise.
24090 2016-02-26 Martin Liska <mliska@suse.cz>
24092 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
24093 with flag_checking.
24094 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24096 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24097 Martin Liska <mliska@suse.cz>
24099 * doc/install.texi: Mention --enable-valgrind-annotations.
24101 2016-02-26 Richard Biener <rguenther@suse.de>
24103 PR tree-optimization/69551
24104 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
24105 looking through aliases adjust DECL_PT_UID to refer to the
24106 ultimate alias target.
24108 2016-02-25 Martin Liska <mliska@suse.cz>
24110 PR middle-end/69919
24111 * alloc-pool.c (after_memory_report): New variable.
24112 * alloc-pool.h (base_pool_allocator ::release): Do not use
24113 the infrastructure if after_memory_report.
24114 * toplev.c (toplev::main): Mark after memory report.
24116 2016-02-25 Richard Biener <rguenther@suse.de>
24118 PR tree-optimization/48795
24119 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
24121 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
24124 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
24125 offloading is enabled and -fopenacc or -fopenmp is specified.
24126 (CRTOFFLOADEND): Likewise.
24127 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
24128 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
24129 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
24130 (offload_objects_file_name): New static var.
24131 (tool_cleanup): Remove offload_objects_file_name file.
24132 (find_offloadbeginend): Replace with ...
24133 (find_crtoffloadtable): ... this.
24134 (run_gcc): Remove offload_argc and offload_argv.
24135 Get offload_objects_file_name from -foffload-objects=... option.
24136 Read names of object files with offload from this file, pass them to
24137 compile_images_for_offload_targets. Don't call find_offloadbeginend and
24138 don't pass offloadbegin and offloadend to the linker. Don't pass
24139 offload non-LTO files to the linker, because now they're not claimed.
24141 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
24144 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
24145 on builtin_unreachable.
24147 2016-02-25 Jakub Jelinek <jakub@redhat.com>
24149 PR rtl-optimization/69896
24150 * regcprop.c: Include cfgrtl.h.
24151 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
24152 than remembered mode, either delete it (if noop_move_p), or
24153 treat like copy_p but not noop_p instruction.
24155 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24158 * dwarf2out.c (gen_variable_die): Work around buggy LTO
24159 - allow NULL decl for Fortran DW_TAG_common_block variables.
24161 2016-02-24 Jason Merrill <jason@redhat.com>
24163 * common.opt (flifetime-dse): Add -flifetime-dse=1.
24165 2016-02-24 Richard Biener <rguenther@suse.de>
24166 Jakub Jelinek <jakub@redhat.com>
24168 PR middle-end/69760
24169 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
24170 conditionally executed ops to well-defined overflow behavior.
24172 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24174 PR middle-end/69915
24175 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
24178 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24180 PR rtl-optimization/69886
24181 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
24182 argument. Use it when checking validity of set instructions.
24183 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
24184 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
24186 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
24187 * store-motion.c (find_moveable_store): Update
24188 can_assign_to_reg_without_clobbers_p callsite.
24190 2016-02-24 Richard Biener <rguenther@suse.de>
24192 PR middle-end/68963
24193 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
24195 (record_nonwrapping_iv): Do not fall back to the low/high bound
24196 for non-constant IV bases if the stmt is not always executed.
24198 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24200 * config/arm/arm-cores.def (cortex-a32): New entry.
24201 * config/arm/arm-tables.opt: Regenerate.
24202 * config/arm/arm-tune.md: Regenerate.
24203 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
24204 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
24205 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
24206 for -mcpu and -mtune.
24208 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24211 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
24212 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
24213 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
24214 (atomic_loaddi_1): Delete.
24215 (atomic_loaddi): Rewrite expander using the above changes.
24217 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24220 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
24223 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24224 Richard Biener <rguenth@suse.de>
24226 PR middle-end/69909
24227 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
24228 set_mem_attributes if tem is SSA_NAME which got expanded
24231 2016-02-24 Richard Biener <rguenther@suse.de>
24233 PR tree-optimization/69907
24234 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
24235 end of permutations for BB vectorization.
24237 2016-02-24 Christian Bruel <christian.bruel@st.com>
24239 * config/arm/arm-c.c (arm_option_override): Initialize
24240 target_option_current_node.
24241 * config/arm/arm.c (arm_pragma_target_parse): Replace
24242 build_target_option_node call by target_option_current_node.
24243 Set target_option_current_node.
24246 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
24249 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
24250 define_insn_and_split to define_insn.
24251 (zero_extendqi<mode>2_dot2): Same.
24252 (extendqi<mode>2_dot): Same.
24253 (extendqi<mode>2_dot2): Same.
24255 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24257 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
24258 and add bypass for AES{D,E} and AESMC pairs.
24259 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
24262 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24264 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
24265 series for reciprocal square root in Exynos M1.
24267 2016-02-23 Martin Sebor <msebor@redhat.com>
24270 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
24271 __builtin_alloca_with_align.
24273 2016-02-23 Richard Henderson <rth@redhat.com>
24275 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
24276 (ix86_register_pragmas): Remove __seg_tls.
24277 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
24278 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
24279 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
24280 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
24281 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
24282 * doc/extend.texi (__seg_tls): Remove item.
24284 2016-02-23 Richard Biener <rguenther@suse.de>
24286 * alloc-pool.h (struct allocation_object): Make id member
24287 conditional on CHECKING_P again.
24288 (get_instance): Adjust.
24289 (base_pool_allocator): Likewise.
24291 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
24293 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
24294 (parallelize_loops): In OpenACC kernels mode, set n_threads to
24296 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
24298 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
24300 2016-02-23 Richard Biener <rguenther@suse.de>
24302 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
24303 * bitmap.h (struct bitmap_usage): Likewise.
24304 (bitmap_move): Declare.
24305 * bitmap.c (register_overhead): Take size_t argument.
24306 (bitmap_move): New function.
24307 * df-problems.c (df_rd_transfer_function): Use bitmap_move
24308 to properly account overhead.
24309 * tree.c (free_node): Use tree_size.
24311 2016-02-23 Jakub Jelinek <jakub@redhat.com>
24314 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
24315 when inverting comparison.
24318 * common.opt (Wunreachable-code): Add Warning flag.
24320 2016-02-23 Mark Wielaard <mjw@redhat.com>
24321 Jakub Jelinek <jakub@redhat.com>
24324 * cgraphunit.c (check_global_declaration): Check main_input_filename
24325 and DECL_SOURCE_FILE are not NULL.
24327 2016-02-23 Martin Jambor <mjambor@suse.cz>
24329 PR tree-optimization/69666
24330 * tree-sra.c (sra_modify_assign): Do not attempt to create
24331 default_def replacements for unscalarizable regions.
24333 2016-02-20 Mark Wielaard <mjw@redhat.com>
24336 * cgraphunit.c (check_global_declaration): Check level of
24337 warn_unused_const_variable and main_input_filename.
24338 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
24339 (-Wunused-variable): For C implies -Wunused-const-variable=1.
24340 (-Wunused-const-variable): Explain levels 1 and 2.
24342 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24345 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
24346 identical arguments. Formatting and spelling fixes.
24349 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
24354 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
24355 and m68k-devices.def.
24356 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
24357 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
24359 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
24361 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
24362 and HImode registers.
24364 2016-02-22 Richard Biener <rguenther@suse.de>
24366 PR tree-optimization/69882
24367 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
24368 preserve permutations present because of gaps.
24369 (vect_supported_load_permutation_p): Always continue checking
24370 permutations after vect_attempt_slp_rearrange_stmts.
24372 2016-02-22 Bin Cheng <bin.cheng@arm.com>
24374 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
24375 min_profitable_estimate, rather than min_profitable_iters.
24377 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24380 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
24381 SImode for last match_operand.
24383 2016-02-22 Martin Liska <mliska@suse.cz>
24385 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
24386 return bitsize - 1 as the return value.
24388 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
24392 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
24393 Handle negative shift counts.
24394 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
24395 force_reg on the shift constant.
24396 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
24397 (lshrsi3_d): Handle negative shift counts.
24399 2016-02-22 Richard Biener <rguenther@suse.de>
24400 Tom de Vries <tom@codesourcery.com>
24402 * graph.c: Include dumpfile.h.
24403 (print_graph_cfg): Split into three overloads.
24404 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
24406 2016-02-22 Tom de Vries <tom@codesourcery.com>
24408 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
24411 2016-02-22 Richard Biener <rguenther@suse.de>
24414 * ipa-inline-transform.c (inline_call): When not updating
24415 overall summaries adjust self size by the growth estimate.
24416 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
24417 hash-set, do not update overall summaries here. Renamed from ...
24418 (inline_to_all_callers): ... this which is now wrapping the
24419 above and performing delayed overall summary update.
24420 (early_inline_small_functions): Delay updating of the overall
24423 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
24425 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
24428 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24431 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
24432 :%* in %:gt() argument.
24433 (greater_than_spec_func): Adjust for expecting only numbers,
24434 if there are more than two numbers, compare the last two.
24436 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
24438 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
24439 -Wnarrowing with -std.
24441 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24444 * expr.c (store_field): Don't use bit-field path if exp is
24445 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
24446 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
24447 and the assignment can be performed by bitwise copy. Formatting
24450 PR middle-end/69838
24451 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
24452 call copy_reg_eh_region_note_forward on before and/or after sequences
24453 and remove note from insn if it no longer can throw.
24456 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
24457 if TARGET_AVX512BW.
24459 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24461 * config/s390/vector.md: Add missing commutative operand markers
24462 to the patterns which qualify for one.
24463 * config/s390/vx-builtins.md: Likewise.
24465 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24467 * config/s390/vector.md (VI, VI_QHS): Add single element vector
24468 types to mode iterators.
24469 (vec_double): ... and mode attribute.
24470 * config/s390/vx-builtins.md (non_vec_int): Likewise.
24472 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24474 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
24475 Change the predicate of op2 from nonimmediate to general and let
24476 reload fix it if necessary.
24478 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24480 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
24482 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24484 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
24487 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24489 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
24490 * config/s390/s390.c (s390_expand_vec_movstr): New function.
24491 * config/s390/s390.md ("movstr<P:mode>"): Call
24492 s390_expand_vec_movstr.
24494 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24496 * config/s390/s390.md: Add missing output modifier for operand 1
24497 to print it as address properly.
24499 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24501 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
24502 * config/s390/2964.md: New file.
24503 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
24504 of insn grouping attributes depending on the CPU level.
24505 (s390_get_unit_mask): New function.
24506 (s390_sched_score): Remove the OOO from the scheduling macros.
24507 Add loop to calculate a score for the instruction mix.
24508 (s390_sched_reorder): Likewise plus improve debug output.
24509 (s390_sched_variable_issue): Rename macros as above. Calculate
24510 the unit distances after actually scheduling an insn. Improve
24512 (s390_sched_init): Clear last_scheduled_unit_distance array.
24513 * config/s390/s390.md: Include 2964.md.
24515 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24518 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
24519 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
24520 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
24521 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
24522 *avx512f_<code>v8div16qi2_mask_1): New insns.
24524 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24527 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
24530 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
24531 earlyclobber from target. Use wF constraint for fused memory
24533 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
24535 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24536 Martin Liska <mliska@suse.cz>
24539 * cfgexpand.c (asan_sanitize_stack_p): New function.
24540 (partition_stack_vars): Use the function.
24541 (expand_stack_vars): Likewise.
24542 (defer_stack_allocation): Likewise.
24543 (expand_used_vars): Likewise.
24545 2016-02-18 Richard Biener <rguenther@suse.de>
24547 PR middle-end/69553
24548 * fold-const.c (operand_equal_p): Properly compare offsets for
24549 IMAGPART_EXPR and ARRAY_REF.
24551 2016-02-18 Nick Clifton <nickc@redhat.com>
24555 * config/arm/arm.c (arm_option_override_internal): Disable
24556 interworking if the target does not support thumb instructions.
24557 (arm_reload_in_hi): Handle the case where a register to register
24558 move needs reloading because there is no simple pattern to handle
24560 (arm_reload_out_hi): Likewise.
24562 2016-02-18 Richard Biener <rguenther@suse.de>
24564 PR middle-end/69854
24565 * match.pd: Don't use fold_binary or fold_unary for folding
24568 2016-02-17 Jakub Jelinek <jakub@redhat.com>
24571 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
24572 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
24573 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
24574 warn on gimple_no_warning_p statements.
24576 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
24578 * doc/extend.texi (C++ Attributes): Correct description of
24579 warn_unused type attribute.
24581 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24583 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
24584 correct instruction.
24586 2016-02-17 Richard Biener <rguenther@suse.de>
24588 PR rtl-optimization/69609
24589 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
24590 (find_traces_1_round): When ending a trace update cached priority
24592 (bb_to_key): Use cached priority when available.
24593 (copy_bb): Initialize cached priority.
24594 (reorder_basic_blocks_software_trace_cache): Likewise.
24596 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24599 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
24601 (aarch64_comparison_operator): Break overly long line into two.
24602 (aarch64_comparison_operation): Likewise.
24603 * config/aarch64/aarch64.md (cstorecc4): Use
24604 aarch64_comparison_operator_mode instead of
24605 aarch64_comparison_operator.
24606 (cstore<mode>4): Likewise.
24607 (aarch64_cstore<mode>): Likewise.
24608 (*cstoresi_insn_uxtw): Likewise.
24609 (cstore<mode>_neg): Likewise.
24610 (*cstoresi_neg_uxtw): Likewise.
24612 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24615 * config/arm/predicates.md (arm_comparison_operator_mode):
24617 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
24618 instead of arm_comparison_operator.
24619 (*mov_negscc): Likewise.
24620 (*mov_notscc): Likewise.
24621 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
24622 (*thumb2_mov_negscc): Likewise.
24623 (*thumb2_mov_negscc_strict_it): Likewise.
24624 (*thumb2_mov_notscc): Likewise.
24625 (*thumb2_mov_notscc_strict_it): Likewise.
24627 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
24629 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
24630 Add missing return.
24632 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
24634 * config/visium/visium.c (machine_libfunc_index): New enum.
24635 (machine_libfuncs): New structure.
24636 (visium_libfuncs): New static variable.
24637 (TARGET_INIT_LIBFUNCS): Define to...
24638 (visium_init_libfuncs): ...this. New function.
24639 (expand_block_move_4): Use the appropriate libfunc.
24640 (expand_block_move_2): Likewise.
24641 (expand_block_move_1): Likewise.
24642 (expand_block_set_4): Likewise.
24643 (expand_block_set_2): Likewise.
24644 (expand_block_set_1): Likewise.
24645 (visium_trampoline_init): Likewise.
24647 2016-02-17 Nick Clifton <nickc@redhat.com>
24649 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
24650 TI's devices.csv file as of March 2016.
24652 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
24655 * opts-global.c (handle_common_deferred_options): Introduce and
24656 initialize two global variables to remember command-line options
24657 specifying a stack-limiting register.
24658 * opts.h: Add extern declarations of the two new global variables.
24659 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
24660 variable based on the values of the two new global variables.
24662 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24665 * common.opt (Wnonnull-compare): New warning.
24666 * doc/invoke.texi (-Wnonnull): Remove text about comparison
24667 of arguments against NULL.
24668 (-Wnonnull-compare): Document.
24669 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
24670 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
24671 * passes.def (pass_warn_nonnull_compare): Add.
24672 * gimple-ssa-nonnull-compare.c: New file.
24674 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24676 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
24677 AARCH64_EXTRA_TUNE_RECIP_SQRT.
24679 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24681 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
24682 reciprocal sqrt for -mlow-precision-recip-sqrt.
24684 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24685 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24687 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
24688 always use lane loads to construct non-constant vectors.
24690 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24692 * config/aarch64/aarch64.md
24693 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
24694 constraints for operand 3.
24695 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
24697 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24698 Richard Biener <rguenther@suse.de>
24700 PR tree-optimization/69820
24701 * tree-vect-patterns.c (type_conversion_p): Return false if
24702 *orig_type is unsigned single precision or boolean.
24703 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
24706 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24708 PR rtl-optimization/69764
24709 PR rtl-optimization/69771
24710 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
24711 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
24713 2016-02-16 Richard Biener <rguenther@suse.de>
24715 PR tree-optimization/69776
24716 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
24718 (indirect_refs_may_alias_p): Likewise.
24719 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
24720 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
24721 according to tbaa_p.
24722 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
24723 (optimize_stmt): For redundant store discovery do not allow tbaa.
24725 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
24727 PR tree-optimization/69714
24728 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
24729 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
24731 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
24733 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
24734 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
24735 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
24736 * config/arc/arc.c (arc_init): Check FPU options.
24737 (get_arc_condition_code): Handle new CC_FPU* modes.
24738 (arc_select_cc_mode): Likewise.
24739 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
24740 register pair only. Allow access for ARCv2 accumulator.
24741 (gen_compare_reg): Whenever we have FPU support use FPU compare
24743 (arc_reorg): Don't generate brcc insns when FPU compare
24744 instructions are involved.
24745 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
24746 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
24747 floating point emulation.
24748 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
24749 (REVERSE_CONDITION): Add new CC_FPU* modes.
24750 (TARGET_FP_SP_BASE): Define.
24751 (TARGET_FP_DP_BASE): Likewise.
24752 (TARGET_FP_SP_FUSED): Likewise.
24753 (TARGET_FP_DP_FUSED): Likewise.
24754 (TARGET_FP_SP_CONV): Likewise.
24755 (TARGET_FP_DP_CONV): Likewise.
24756 (TARGET_FP_SP_SQRT): Likewise.
24757 (TARGET_FP_DP_SQRT): Likewise.
24758 (TARGET_FP_DP_AX): Likewise.
24759 * config/arc/arc.md (ARCV2_ACC): New constant.
24760 (type): New fpu type attribute.
24761 (SDF): Conditional iterator.
24762 (cstore<mode>, cbranch<mode>): Change expand condition.
24763 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
24764 handles FPU/FPX cases as well.
24765 * config/arc/arc.opt (mfpu): New option.
24766 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
24768 (adddf3, muldf3, subdf3): Removed.
24769 * config/arc/predicates.md (proper_comparison_operator): Recognize
24771 * config/arc/fpu.md: New file.
24772 * doc/invoke.texi (ARC Options): Document mfpu option.
24774 2016-02-16 Richard Biener <rguenther@suse.de>
24776 PR rtl-optimization/69291
24777 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
24778 noce_operand_ok check.
24780 2016-02-16 Tom de Vries <tom@codesourcery.com>
24783 * omp-low.c (simd_clone_create): Remove call to
24784 symtab->call_cgraph_insertion_hooks.
24786 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24788 PR tree-optimization/69802
24789 * tree-ssa-reassoc.c (update_range_test): If op is
24790 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
24791 op == 1 test of precision 1 integral op, otherwise handle
24792 that case as op itself. Fix up formatting.
24793 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
24796 2016-02-16 Richard Biener <rguenther@suse.de>
24798 PR tree-optimization/69586
24799 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
24800 types for conversion sources.
24802 2016-02-16 Richard Biener <rguenther@suse.de>
24804 PR middle-end/69801
24805 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
24806 mask OEP_ADDRESS_OF.
24808 2016-02-16 Alan Modra <amodra@gmail.com>
24811 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
24812 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
24813 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
24815 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
24816 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
24817 (p8_fmrgow_<mode>): Likewise.
24818 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
24820 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
24821 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
24822 to use movdi_internal64. Remove op0_di.
24823 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
24825 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
24827 Add support for the FCCMP insn types
24829 * config/aarch64/aarch64.md (fccmp): Change insn type.
24830 (fccmpe): Likewise.
24831 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
24832 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
24833 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
24834 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
24835 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
24836 * config/arm/types.md (fccmps): Add new insn type.
24837 (fccmpd): Likewise.
24839 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
24841 * alias.c (get_alias_set): Fix a typo in comment.
24843 2016-02-15 Richard Biener <rguenther@suse.de>
24845 PR tree-optimization/69595
24846 * match.pd: Complete range test simplification to true.
24848 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
24850 PR rtl-optimization/69648
24851 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
24852 pic_offset_table_rtx.
24854 PR rtl-optimization/69752
24855 * ira.c (update_equiv_regs): When looking for more than a single SET,
24856 also take other side effects into account.
24858 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
24860 * config/s390/s390.c (s390_function_profiler): Add a new sequence
24861 for z900+ CPUs in 31-bit mode.
24863 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
24865 * common/config/s390/s390-common.c (s390_supports_split_stack):
24867 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
24868 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
24869 * config/s390/s390.c (struct machine_function): New field
24870 split_stack_varargs_pointer.
24871 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
24872 in s390_emit_prologue.
24873 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
24875 (morestack_ref): New global.
24876 (SPLIT_STACK_AVAILABLE): New macro.
24877 (s390_expand_split_stack_prologue): New function.
24878 (s390_live_on_entry): New function.
24879 (s390_va_start): Use split-stack vararg pointer if appropriate.
24880 (s390_asm_file_end): Emit the split-stack note sections.
24881 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
24882 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
24883 (UNSPECV_SPLIT_STACK_CALL): New unspec.
24884 (UNSPECV_SPLIT_STACK_DATA): New unspec.
24885 (split_stack_prologue): New expand.
24886 (split_stack_space_check): New expand.
24887 (split_stack_data): New insn.
24888 (split_stack_call): New expand.
24889 (split_stack_call_*): New insn.
24890 (split_stack_cond_call): New expand.
24891 (split_stack_cond_call_*): New insn.
24893 2016-02-15 Richard Biener <rguenther@suse.de>
24895 PR tree-optimization/69783
24896 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24897 Add trivially correct cases.
24899 2016-02-15 Tom de Vries <tom@codesourcery.com>
24902 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
24904 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
24906 2016-02-15 Richard Biener <rguenther@suse.de>
24908 PR tree-optimization/69776
24909 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
24910 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
24911 indicate whether we can use TBAA to disambiguate against stores.
24912 Use alias-set zero if not.
24913 (visit_reference_op_store): Do not use TBAA when looking up
24915 * tree-ssa-pre.c (compute_avail): Use TBAA here.
24916 (eliminate_dom_walker::before_dom_children): But not when looking
24917 up redundant stores.
24919 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
24921 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
24923 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24925 * config/i386/znver1.md
24926 (znver1_pop, znver1_pop_mem,
24927 znver1_load_imov_double_store,
24928 znver1_load_imov_direct_store,
24929 znver1_load_imov_direct_load,
24930 znver1_load_imov_double_load): Add new.
24931 (znver1_insn, znver1_insn_load): Add icmov type.
24932 (znver1_sseavx_fma,
24933 znver1_sseavx_fma_load,
24935 znver1_avx256_fma_load): Fix pipe usage.
24937 2016-02-14 Alan Modra <amodra@gmail.com>
24940 * reload.c (find_reloads_address_1): For pre/post-inc/dec
24941 with an invalid hard reg, reload just the reg not the entire
24942 pre/post-inc/dec address expression.
24944 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
24947 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
24948 fixed R1_REG scratch reg.
24949 (sibcall_value_pcrel_fdpic): Likewise.
24951 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
24955 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
24957 2016-02-12 Walter Lee <walt@tilera.com>
24959 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
24960 * config/tilegx/t-tilegx: Likewise.
24962 2016-02-12 David Malcolm <dmalcolm@redhat.com>
24965 * diagnostic-show-locus.c (struct line_span): New struct.
24966 (layout::get_first_line): Delete.
24967 (layout::get_last_line): Delete.
24968 (layout::get_num_line_spans): New member function.
24969 (layout::get_line_span): Likewise.
24970 (layout::print_heading_for_line_span_index_p): Likewise.
24971 (layout::get_expanded_location): Likewise.
24972 (layout::calculate_line_spans): Likewise.
24973 (layout::m_first_line): Delete.
24974 (layout::m_last_line): Delete.
24975 (layout::m_line_spans): New field.
24976 (layout::layout): Update comment. Replace m_first_line and
24977 m_last_line with m_line_spans, replacing their initialization
24978 with a call to calculate_line_spans.
24979 (diagnostic_show_locus): When printing source lines and
24980 annotations, rather than looping over a single span
24981 of lines, instead loop over each line_span within
24982 the layout, with an inner loop over the lines within them.
24983 Call the context's start_span callback when changing line spans.
24984 * diagnostic.c (diagnostic_initialize): Initialize start_span.
24985 (diagnostic_build_prefix): Break out the building of the location
24986 part of the string into...
24987 (diagnostic_get_location_text): ...this new function, rewriting
24988 it from nested ternary expressions to a sequence of "if"
24990 (default_diagnostic_start_span_fn): New function.
24991 * diagnostic.h (diagnostic_start_span_fn): New typedef.
24992 (diagnostic_context::start_span): New field.
24993 (default_diagnostic_start_span_fn): New prototype.
24995 2016-02-12 David Malcolm <dmalcolm@redhat.com>
24998 * gcc.c (driver::finalize): Fix cleanup of "specs".
25000 2016-02-12 David Malcolm <dmalcolm@redhat.com>
25004 * gcc.c (driver::driver): Initialize m_option_suggestions.
25005 (driver::~driver): Clean up m_option_suggestions.
25006 (suggest_option): Convert to...
25007 (driver::suggest_option): ...this, and split out into
25008 driver::build_option_suggestions and find_closest_string.
25009 (driver::build_option_suggestions): New function, from
25010 first half of suggest_option. Special-case
25011 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
25012 the sanitizer_opts array. For options of enum types, add the
25013 various enum values to the candidate strings.
25014 (driver::handle_unrecognized_options): Remove "const".
25015 * gcc.h (driver::handle_unrecognized_options): Likewise.
25016 (driver::build_option_suggestions): New decl.
25017 (driver::suggest_option): New decl.
25018 (driver::m_option_suggestions): New field.
25019 * opts-common.c (add_misspelling_candidates): New function.
25020 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
25021 and make non-static.
25022 * opts.h (sanitizer_opts): New array decl.
25023 (add_misspelling_candidates): New function decl.
25024 * spellcheck.c (find_closest_string): New function.
25025 * spellcheck.h (find_closest_string): New function decl.
25027 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25029 PR rtl-optimization/69764
25030 PR rtl-optimization/69771
25031 * optabs.c (expand_binop_directly): For shift_optab_p, force
25032 convert_modes with VOIDmode if xop1 has VOIDmode.
25034 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
25037 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
25038 to correctly determine instrumentation thunks.
25040 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25043 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
25044 type by reference, force lhs on the call.
25047 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
25048 Compute retval and retbnd early in all cases if split_part_return_p
25049 and return_bb is not EXIT. Remove all clobber stmts and reset
25050 all debug stmts that refer to SSA_NAMEs defined in split part,
25051 except if it is retval, in that case replace the old retval with the
25052 lhs of the call to the split part.
25054 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25057 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25059 PR middle-end/66726
25060 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25061 whose result is used in PHI.
25062 (maybe_optimize_range_tests): Likewise.
25063 (final_range_test_p): Likweise.
25065 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25067 PR middle-end/66726
25068 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25069 whose result is used in PHI.
25070 (maybe_optimize_range_tests): Likewise.
25071 (final_range_test_p): Likweise.
25073 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25075 * cgraph.c: Spelling fixes - behaviour -> behavior and
25076 neighbour -> neighbor.
25077 * target.def: Likewise.
25078 * sel-sched.c: Likewise.
25079 * config/mips/mips.c: Likewise.
25080 * config/arc/arc.md: Likewise.
25081 * config/arm/cortex-a57.md: Likewise.
25082 * config/arm/arm.c: Likewise.
25083 * config/arm/neon.md: Likewise.
25084 * config/arm/arm-c.c: Likewise.
25085 * config/vms/vms-c.c: Likewise.
25086 * config/s390/s390.c: Likewise.
25087 * config/i386/znver1.md: Likewise.
25088 * config/i386/i386.c: Likewise.
25089 * config/ia64/hpux-unix2003.h: Likewise.
25090 * config/msp430/msp430.md: Likewise.
25091 * config/rx/rx.c: Likewise.
25092 * config/rx/rx.md: Likewise.
25093 * config/aarch64/aarch64-simd.md: Likewise.
25094 * config/aarch64/aarch64.c: Likewise.
25095 * config/nvptx/nvptx.c: Likewise.
25096 * config/bfin/bfin.c: Likewise.
25097 * config/cris/cris.opt: Likewise.
25098 * config/rs6000/rs6000.c: Likewise.
25099 * target.h: Likewise.
25100 * spellcheck.c: Likewise.
25101 * ira-build.c: Likewise.
25102 * tree-inline.c: Likewise.
25103 * builtins.c: Likewise.
25104 * lra-constraints.c: Likewise.
25105 * explow.c: Likewise.
25106 * hwint.h: Likewise.
25107 * targhooks.c: Likewise.
25108 * tree-vect-data-refs.c: Likewise.
25109 * expr.c: Likewise.
25110 * doc/tm.texi: Likewise.
25111 * doc/extend.texi: Likewise.
25112 * doc/install.texi: Likewise.
25113 * doc/md.texi: Likewise.
25114 * tree-ssa-tail-merge.c: Likewise.
25115 * sched-int.h: Likewise.
25116 * match.pd: Likewise.
25117 * sched-ebb.c: Likewise.
25118 * target.def (omit_struct_return_reg): Likewise.
25119 * gimple-ssa-isolate-paths.c: Likewise.
25120 (find_implicit_erroneous_behaviour): Renamed to...
25121 (find_implicit_erroneous_behavior): ... this.
25122 (find_explicit_erroneous_behaviour): Renamed to...
25123 (find_explicit_erroneous_behavior): ... this.
25124 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
25126 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
25128 PR rtl-optimization/64682
25129 PR rtl-optimization/69567
25130 PR rtl-optimization/69737
25131 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
25132 in I2 as well, just lose it.
25134 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25136 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
25138 (aarch64_last_printed_tune_string): Likewise.
25139 (aarch64_declare_function_name): Only output .arch assembler
25140 directive if it will be different from the previously output
25141 directive. Same for .tune comment but only if -dA is set.
25142 (aarch64_start_file): New function.
25143 (TARGET_ASM_FILE_START): Define.
25145 2016-02-11 David Malcolm <dmalcolm@redhat.com>
25148 * Makefile.in (PLUGIN_HEADERS): Add params.list.
25150 2016-02-11 Jakub Jelinek <jakub@redhat.com>
25153 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
25154 -Wmaybe-uninitialized warning.
25156 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
25159 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
25161 2016-02-11 Richard Biener <rguenther@suse.de>
25163 PR rtl-optimization/69291
25164 * ifcvt.c (noce_try_store_flag_constants): Do not allow
25165 subexpressions affected by changing the result.
25167 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
25170 * lra-constraints.c (curr_insn_transform): Find in/out operands
25171 for secondary memory moves. Update dups.
25173 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
25175 PR tree-optimization/69652
25176 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
25177 to nested loop, did source re-formatting, skip debug statements,
25178 add check on statement with volatile operand, remove dead scalar
25181 2016-02-10 Jakub Jelinek <jakub@redhat.com>
25182 Patrick Palka <ppalka@gcc.gnu.org>
25186 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
25187 calls if the return type is TREE_ADDRESSABLE.
25188 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
25189 * ipa-split.c (split_function): Fix doubled "we" in comment.
25190 Use void return type for the split part even if
25191 !split_point->split_part_set_retval.
25193 2016-02-10 Bin Cheng <bin.cheng@arm.com>
25195 PR tree-optimization/68021
25196 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
25197 when computing the value of biv cand by itself.
25199 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25201 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
25202 (cortexa57_tunings): Likewise.
25203 (cortexa72_tunings): Likewise.
25204 (arch_macro_fusion_pair_p): Add support for AES fusion.
25205 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
25206 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
25207 Allow virtual registers before reload so early scheduling works.
25208 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
25209 correct latency and pipeline.
25210 (cortex_a57_crypto_complex): Likewise.
25211 (cortex_a57_crypto_xor): Likewise.
25212 (define_bypass): Add AES bypass.
25214 2016-02-10 Richard Biener <rguenther@suse.de>
25216 PR tree-optimization/69726
25217 * passes.def: Add DCE pass before late uninit.
25218 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
25219 really fixup if-conversions job.
25221 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25223 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
25224 (arm_cortex_a57_tune): Likewise.
25225 (aarch_macro_fusion_pair_p): Add support for AES fusion.
25226 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
25228 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
25230 * timevar.def (TV_PHASE_DBGINFO): Delete.
25231 (TV_PHASE_CHECK_DBGINFO): Likewise.
25232 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
25234 2016-02-10 Richard Biener <rguenther@suse.de>
25236 PR tree-optimization/69719
25237 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25238 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
25240 2016-02-09 Andrew Pinski <apinski@cavium.com>
25243 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
25244 get_vcond_mask_icode returns false.
25246 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
25249 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
25250 an ADDIS that adds a pointer to a large constant that sets the
25251 upper16 bits with a load operation.
25253 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25256 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
25258 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
25260 (vzipq_s16): Likewise.
25261 (vzipq_s32): Likewise.
25262 (vzipq_f32): Likewise.
25263 (vzipq_u8): Likewise.
25264 (vzipq_u16): Likewise.
25265 (vzipq_u32): Likewise.
25266 (vzipq_p8): Likewise.
25267 (vzipq_p16): Likewise.
25269 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25272 * config/arm/arm.c (neon_endian_lane_map): New function.
25273 (neon_vector_pair_endian_lane_map): New function.
25274 (arm_evpc_neon_vuzp): Allow for big endian lane order.
25275 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
25277 (vuzpq_s16): Likewise.
25278 (vuzpq_s32): Likewise.
25279 (vuzpq_f32): Likewise.
25280 (vuzpq_u8): Likewise.
25281 (vuzpq_u16): Likewise.
25282 (vuzpq_u32): Likewise.
25283 (vuzpq_p8): Likewise.
25284 (vuzpq_p16): Likewise.
25286 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
25289 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
25292 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
25294 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
25295 truncate const_int operand 1 to QImode.
25297 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
25299 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
25300 corresponding to an abnormal edge.
25302 2016-02-09 Tom de Vries <tom@codesourcery.com>
25304 PR tree-optimization/69599
25305 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
25307 (find_func_aliases_for_builtin_call, find_func_clobbers)
25308 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
25311 2016-02-09 Richard Biener <rguenther@suse.de>
25313 PR tree-optimization/69715
25314 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
25315 LHS on calls as non-rewritable.
25317 2016-02-09 Tom de Vries <tom@codesourcery.com>
25320 * lto-wrapper.c (append_diag_options): New function.
25321 (compile_offload_image): Call append_diag_options.
25323 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
25326 * doc/extend.texi (Flag Output Operands): Correct sectioning.
25327 Minor copy-edit to fix verb tenses.
25329 2016-02-08 Jakub Jelinek <jakub@redhat.com>
25331 PR tree-optimization/69209
25332 * ipa-split.c (split_function): If split part is not
25333 returning retval, retval has gimple type but is not
25334 gimple value, force it into a SSA_NAME first.
25336 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
25338 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
25341 2016-02-08 Jason Merrill <jason@redhat.com>
25344 * convert.c (convert_to_integer_1): Check dofold on truncation
25346 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
25347 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
25348 Rename from *_nofold.
25349 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
25350 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
25352 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
25355 * tree.c (build_common_tree_nodes): Remove short_double argument.
25356 All callers changed.
25357 * tree.h (build_common_tree_nodes): Adjust declaration.
25358 * doc/invoke.texi (-fshort-double): Remove documentation.
25359 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25360 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
25361 * lto-wrapper.c (merge_and_complain, append_compiler_options)
25362 (append_linker_options): Don't handle OPT_fshort_double.
25364 PR rtl-optimization/68730
25365 * lra-remat.c (insn_to_cand_activation): New static variable.
25366 (lra_remat): Allocate and free it.
25367 (create_cand): New arg activation. Initialize a field in
25368 insn_to_cand_activation if it is nonnull.
25369 (create_cands): Pass the activation insn to create_cand when making
25370 a candidate involving an output reload. Reorganize code a little.
25371 (do_remat): Keep track of active status of candidates in a separate
25374 2016-02-08 Richard Biener <rguenther@suse.de>
25376 PR tree-optimization/69719
25377 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25378 Properly use absolute of the difference of the two offsets to
25379 compare or adjust the segment length.
25381 2016-02-08 Richard Biener <rguenther@suse.de>
25382 Jeff Law <law@redhat.com>
25385 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
25386 types for anonymous SSA names.
25388 2016-02-08 Richard Biener <rguenther@suse.de>
25390 PR rtl-optimization/69274
25391 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
25393 2016-02-08 Jeff Law <law@redhat.com>
25395 PR tree-optimization/65917
25396 * tree-ssa-dom.c (record_temporary_equivalences): Record both
25397 equivalences from if (x == y) style conditionals.
25398 (loop_depth_of_name): Remove.
25399 (record_equality): Remove loop depth check.
25400 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
25401 (const_and_copies::record_const_or_copy_raw): New member function.
25402 * tree-ssa-scopedtables.c
25403 (const_and_copies::record_const_or_copy_raw): New, factored out of
25404 (const_and_copies::record_const_or_copy): Call new member function.
25406 2016-02-05 Jeff Law <law@redhat.com>
25408 PR tree-optimization/68541
25409 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
25410 (count_stmts_in_block): New function.
25411 (poor_ifcvt_candidate_code): Likewise.
25412 (is_feasible_trace): Add some heuristics to determine when path
25413 splitting is profitable.
25414 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
25415 is a diamond with a single exit.
25417 2016-02-05 Martin Sebor <msebor@redhat.com>
25420 * doc/invoke.texi: Update -Wplacement-new to take an optional
25423 2016-02-06 Richard Henderson <rth@redhat.com>
25426 * tree.c (tree_nop_conversion_p): Do not strip casts into or
25427 out of non-standard address spaces.
25429 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25431 PR rtl-optimization/69691
25432 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
25434 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
25436 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
25437 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
25438 (*ieee128_mfvsrd_64bit): Likewise.
25439 (*ieee128_mfvsrd_32bit): Likewise.
25441 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
25445 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25447 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25448 instrumented_version.
25450 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
25452 * doc/invoke.texi (Optimize Options): In table of --param options
25453 rename second occurrence of tracer-min-branch-ratio to
25454 tracer-min-branch-probability, rename
25455 tracer-min-branch-ratio-feedback to
25456 tracer-min-branch-probability-feedback and clarify description,
25457 rename sched-spec-state-edge-prob-cutoff to
25458 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
25459 to selsched-insns-to-rename, rename lto-minpartition to
25460 lto-min-partition, delete reorder-blocks-duplicate and
25461 reorder-blocks-duplicate-feedback.
25463 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25465 * config/s390/s390.c (s390_register_info_set_ranges): Remove
25468 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
25470 * doc/extend.texi: S/390: Correct some typos.
25472 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25474 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
25476 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25479 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
25480 (s390_register_info_gprtofpr): Use new macros above.
25481 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
25483 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
25484 its name. Adjust restore and save gpr ranges.
25485 (s390_register_info_set_ranges): New function.
25486 (s390_register_info): Use new macros above. Call
25487 s390_register_info_set_ranges.
25488 (s390_optimize_register_info): Likewise.
25489 (s390_hard_regno_rename_ok): Use new macros.
25490 (s390_hard_regno_scratch_ok): Likewise.
25491 (s390_emit_epilogue): Likewise.
25492 (s390_can_use_return_insn): Likewise.
25493 (s390_optimize_prologue): Likewise.
25494 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
25496 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25499 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
25501 (ix86_option_override_internal): Disable TARGET_STV even for
25502 -m{incoming,preferred}-stack-boundary=3.
25504 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25506 * config.gcc: Mark deprecated rtems targets as obsolete.
25508 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
25510 PR rtl-optimization/64682
25511 PR rtl-optimization/69567
25512 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
25513 before I2 only if the register is both used and set in I2.
25515 2016-02-04 DJ Delorie <dj@redhat.com>
25517 * config/msp430/msp430.c (msp430_start_function): Add function type.
25519 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25522 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
25524 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
25526 PR rtl-optimization/69577
25528 2015-10-29 Richard Henderson <rth@redhat.com>
25532 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
25533 sse check to the exact conditions of PR 67609.
25535 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25538 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
25539 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
25540 not allowed into the traditional Altivec registers.
25541 (movtd_64bit_nodm): Likewise.
25542 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
25544 2016-02-04 David Malcolm <dmalcolm@redhat.com>
25546 * config/aarch64/cortex-a57-fma-steering.c
25547 (aarch64_register_fma_steering): Remove "static" from arguments
25550 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
25553 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
25554 twice when complex.
25556 2016-02-04 Mike Frysinger <vapier@gentoo.org>
25558 * doc/invoke.texi: Delete -mno-fma4.
25560 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
25562 PR rtl-optimization/69577
25563 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
25564 (find_subregs_of_mode): Update accordingly. Iterate over partial
25567 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
25569 * config/arm/arm-protos.h (neon_reinterpret): Remove.
25570 * config/arm/arm.c (neon_reinterpret): Remove.
25571 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
25572 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
25573 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
25574 vreinterpretti): Remove.
25575 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
25576 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
25577 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
25578 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
25579 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
25580 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
25581 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
25582 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
25583 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
25584 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
25585 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
25586 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
25587 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
25588 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
25589 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
25590 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
25591 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
25592 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
25593 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
25594 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
25595 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
25596 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
25597 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
25598 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
25599 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
25600 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
25601 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
25602 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
25603 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
25604 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
25605 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
25606 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
25607 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
25608 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
25609 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
25610 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
25611 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
25612 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
25613 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
25614 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
25615 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
25616 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
25617 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
25618 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
25619 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
25620 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
25621 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
25622 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
25623 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
25624 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
25625 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
25626 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
25627 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
25628 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
25629 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
25630 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
25631 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
25632 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
25633 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
25634 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
25635 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
25636 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
25637 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
25638 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
25639 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
25640 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
25641 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
25642 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
25643 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
25644 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
25645 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
25646 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
25647 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
25648 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
25649 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
25650 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
25651 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
25652 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
25653 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
25654 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
25655 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
25656 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
25657 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
25658 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
25659 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
25660 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
25661 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
25662 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
25663 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
25664 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
25665 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
25666 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
25667 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
25668 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
25669 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
25670 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
25671 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
25672 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
25673 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
25674 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
25675 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
25676 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
25677 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
25679 2016-02-04 Martin Liska <mliska@suse.cz>
25682 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
25683 that are gimple_store_p.
25684 (maybe_instrument_call): Likewise.
25686 2016-02-04 Bin Cheng <bin.cheng@arm.com>
25688 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
25689 register scaling out of memory reference and comment why.
25691 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25695 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
25696 folding the source of a SET.
25698 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25702 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
25703 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
25705 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
25709 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
25712 2016-02-04 Christian Bruel <christian.bruel@st.com>
25714 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
25715 * config/arm/arm.c (arm_set_current_function): Likewise.
25717 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25718 Ilya Enkovich <enkovich.gnu@gmail.com>
25719 H.J. Lu <hongjiu.lu@intel.com>
25722 * config/i386/i386.c (convert_scalars_to_vector): Remove
25723 stack alignment fixes.
25724 (ix86_option_override_internal): Disable TARGET_STV if stack
25725 might not be aligned enough.
25726 (ix86_minimum_alignment): Assert that TARGET_STV is false.
25728 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
25730 * config/i386/x86-tune.def: Disable default prefetching
25733 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25734 Vladimir Makarov <vmakarov@redhat.com>
25737 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
25738 in validating fused toc addresses.
25740 2016-02-03 Jakub Jelinek <jakub@redhat.com>
25743 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
25744 range->m_caret fields if range->m_show_caret_p is false.
25747 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25748 Force oldval into register if it does not satisfy reg_or_short_operand
25749 predicate. Fix up formatting.
25751 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
25752 Alexandre Oliva <aoliva@redhat.com>
25755 * lra-constraints.c (simplify_operand_subreg): Check additionally
25756 address validity after potential reloading.
25757 (process_address_1): Check insns validity. In case of failure do
25760 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
25763 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
25766 2016-02-02 Jakub Jelinek <jakub@redhat.com>
25768 * wide-int.cc (canonize_uhwi): New function.
25769 (wi::divmod_internal): Use it.
25771 2016-02-02 James Norris <jnorris@codesourcery.com>
25773 * gimplify.c (omp_notice_variable): Add usage check.
25775 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
25777 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
25778 like LE, GE, LT, GT when emitting relational operator.
25780 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25782 * ira-costs.c (find_costs_and_classes): Add extra argument.
25783 * target.def (ira_change_pseudo_allocno_class): Add parameter.
25784 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
25785 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
25786 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
25787 Add best_class parameter, and return it if not ALL_REGS.
25788 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
25790 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
25791 Update target hook.
25793 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25795 * config/aarch64/aarch64.c
25796 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
25797 (aarch64_ira_change_pseudo_allocno_class): New function.
25799 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
25802 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
25804 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25806 * config/avr/avr.c (avr_option_override): Set
25807 PARAM_ALLOW_STORE_DATA_RACES to 1.
25809 2016-02-02 Richard Biener <rguenther@suse.de>
25811 PR tree-optimization/69595
25812 * match.pd: Add range test simplifications to true/false.
25814 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
25816 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
25817 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
25820 2016-02-02 Richard Biener <rguenther@suse.de>
25822 PR tree-optimization/69606
25823 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
25824 info on the result before moving a stmt.
25826 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
25828 PR middle-end/68542
25829 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
25830 branch with vector comparison.
25831 * config/i386/sse.md (VI48_AVX): New mode iterator.
25832 (define_expand "cbranch<mode>4): Add support for conditional branch
25833 with vector comparison.
25834 * tree-vect-loop.c (optimize_mask_stores): New function.
25835 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
25836 has_mask_store field of vect_info.
25837 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
25838 vectorized loops having masked stores after vec_info destroy.
25839 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
25840 correspondent macros.
25841 (optimize_mask_stores): Add prototype.
25843 2016-02-02 Alan Modra <amodra@gmail.com>
25846 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
25849 2016-02-02 Alan Modra <amodra@gmail.com>
25852 * config/rs6000/rs6000.c (need_toc_init): New var, set it
25853 whenever toc_label_name used.
25854 (rs6000_file_start): Don't set up toc section here,
25855 (rs6000_output_function_epilogue): do so here instead,
25856 (rs6000_xcoff_file_start): and here.
25857 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
25858 (load_toc_aix_di): Likewise.
25860 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25862 PR rtl-optimization/69592
25863 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
25864 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
25865 (num_sign_bit_copies_binary_arith_p): New inline function.
25866 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
25868 2016-02-01 Jeff Law <law@redhat.com>
25870 PR tree-optimization/69580
25871 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
25872 * tree-ssa-threadbackward.c
25873 (fsm_find_control_statement_thread_paths): Do not try to walk
25874 through large PHI nodes.
25876 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25878 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
25879 when count is incremented above limit, don't analyze further
25882 * omp-low.c (oacc_parse_default_dims): Avoid
25883 -Wsign-compare warning, make sure value fits into int
25884 rather than just unsigned int.
25886 2016-02-01 Bin Cheng <bin.cheng@arm.com>
25888 PR tree-optimization/67921
25889 * fold-const.c (split_tree): New parameters. Convert pointer
25890 type variable part to proper type before negating.
25891 (fold_binary_loc): Pass new arguments to split_tree.
25893 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
25895 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
25896 (nvptx_goacc_validate_dims): Extend to handle global defaults.
25897 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
25898 * doc/tm.texti: Rebuilt.
25899 * doc/invoke.texi (fopenacc-dim): Document.
25900 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
25901 (append_compiler_options): Likewise.
25902 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
25903 (oacc_parse_default_dims): New.
25904 (oacc_validate_dims): Add USED arg. Select non-unity default when
25906 (oacc_loop_fixed_partitions): Return mask of used partitions.
25907 (oacc_loop_auto_partitions): Emit dump info.
25908 (oacc_loop_partition): Return mask of used partitions.
25909 (execute_oacc_device_lower): Parse default dimension arg. Adjust
25910 loop partitioning and validation calls.
25912 2016-02-01 Richard Biener <rguenther@suse.de>
25914 PR middle-end/69556
25915 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
25917 2016-02-01 Richard Biener <rguenther@suse.de>
25919 PR tree-optimization/69574
25920 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
25921 of asserting return chrec_dont_know.
25923 2016-02-01 Martin Liska <mliska@suse.cz>
25925 * mem-stats-traits.h: Add copyright header.
25926 * mem-stats.h: Likewise.
25928 2016-02-01 Richard Biener <rguenther@suse.de>
25930 PR tree-optimization/69579
25931 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
25932 Do not propagate through abnormal PHI results.
25934 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
25936 * postreload.c (reload_cse_simplify): Remove dead code.
25938 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25940 PR rtl-optimization/69570
25941 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
25942 if there is more than one set, not if there is a single set.
25944 2016-02-01 Richard Henderson <rth@redhat.com>
25947 * combine.c (make_compound_operation): When looking through a
25948 subreg, make sure to re-extend to the width of the outer mode.
25950 2016-01-30 Jakub Jelinek <jakub@redhat.com>
25952 PR tree-optimization/69546
25953 * wide-int.cc (wi::divmod_internal): For unsigned division
25954 where both operands fit into uhwi, if o1 is 1 and o0 has
25955 msb set, if divident_prec is larger than bits per hwi,
25956 clear another quotient word and return 2 instead of 1.
25957 Similarly for remainder with msb in HWI set, if dividend_prec
25958 is larger than bits per hwi.
25960 2016-01-29 Martin Jambor <mjambor@suse.cz>
25962 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
25963 Use short lowercase names.
25964 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
25965 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
25966 acq_rel one. Protect warning agains segfaults if
25967 get_memory_order_name returns NULL.
25968 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
25969 with release semantics. Do not warn if get_memory_order already did.
25970 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
25971 semantics. Fix check for relaxed or acquire semantics. Do not warn
25972 if get_memory_order already did.
25974 2016-01-29 Sebastian Pop <s.pop@samsung.com>
25976 * doc/install.texi: Document that isl-0.16 is supported.
25978 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
25981 * config/i386/constraints.md (Bm): Describe as special memory
25983 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
25984 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25985 * genpreds.c (struct constraint_data): Add is_special_memory.
25986 (have_special_memory_constraints, special_memory_start): New
25988 (special_memory_end): Ditto.
25989 (add_constraint): Add new arg is_special_memory. Add code to
25990 process its true value. Update have_special_memory_constraints.
25991 (process_define_constraint): Pass the new arg.
25992 (process_define_register_constraint): Ditto.
25993 (choose_enum_order): Process special memory.
25994 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
25995 function insn_extra_special_memory_constraint.
25996 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25997 * gensupport.c (process_rtx): Process
25998 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25999 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
26000 * ira-lives.c (single_reg_class): Use
26001 insn_extra_special_memory_constraint.
26002 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
26003 * lra-constraints.c (process_alt_operands): Ditto.
26004 (curr_insn_transform): Use insn_extra_special_memory_constraint.
26005 * recog.c (asm_operand_ok, preprocess_constraints): Process
26007 * reload.c (find_reloads): Ditto.
26008 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
26009 * stmt.c (parse_input_constraint): Use
26010 insn_extra_special_memory_constraint.
26012 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
26015 * lra-splill.c (lra_final_code_change): Revert r229087 by
26016 removing all sub-registers.
26018 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
26021 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
26023 2016-01-29 Jakub Jelinek <jakub@redhat.com>
26026 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
26027 SSE1, copy target into the temporary reg first before recursing
26030 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
26032 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
26035 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
26037 * ginclude/stdarg.h: Test __cplusplus instead of
26038 __GXX_EXPERIMENTAL_CXX0X__.
26040 2016-01-29 Richard Biener <rguenther@suse.de>
26042 PR tree-optimization/69547
26043 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
26044 Do not mark clobbers necessary.
26045 (mark_all_reaching_defs_necessary_1): Likewise.
26047 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26049 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
26050 declaration name with %qs and print it in both error messages.
26051 Also fix indentation.
26053 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26056 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
26057 trailing blank line from error message.
26059 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
26062 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
26065 2016-01-29 Richard Biener <rguenther@suse.de>
26067 PR middle-end/69537
26068 * match.pd: Allow all integral types when simplifying a
26069 widening or sign-changing conversion.
26071 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26073 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
26074 back to setting codegen_error to fail codegen.
26076 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
26079 * config/i386/constraints.md (C): Only accept constant zero operand.
26080 (BC): New constraint.
26081 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
26082 instead of C constraint.
26083 * doc/md.texi (Machine Constraints): Update description
26086 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
26089 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
26091 2016-01-28 Jakub Jelinek <jakub@redhat.com>
26093 PR middle-end/69542
26094 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
26097 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
26099 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
26100 branches if using guessed profile.
26102 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
26104 * graphite-optimize-isl.c (optimize_isl): Fix dump.
26106 2016-01-28 Richard Henderson <rth@redhat.com>
26109 * config/aarch64/aarch64-modes.def (CC_Cmode): New
26110 * config/aarch64/aarch64-protos.h: Update.
26111 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
26112 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
26113 (aarch64_get_condition_code_1): Handle CC_Cmode.
26114 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
26115 (*add<mode>3_compareC_cconly_imm): New.
26116 (*add<mode>3_compareC_cconly): New.
26117 (*add<mode>3_compareC_imm): New.
26118 (add<mode>3_compareC): New.
26119 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
26120 to be first. Use aarch64_carry_operation.
26121 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
26122 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
26123 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
26124 (subti3): Use subdi3_compare1.
26125 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
26126 (sub<mode>3_compare1): New.
26127 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
26128 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
26129 (*subsi3_carryin_uxtw): Likewise.
26130 (*ngc<mode>, *ngcsi_uxtw): Likewise.
26131 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
26132 * config/aarch64/iterators.md (DWI): New.
26133 * config/aarch64/predicates.md (aarch64_carry_operation): New.
26134 (aarch64_borrow_operation): New.
26136 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26138 * graphite-optimize-isl.c (optimize_isl): Print a different debug
26139 message when isl does not return a valid schedule.
26141 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26143 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
26144 Remove comments from class declarations: they are already in the code
26147 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26149 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
26151 (ternary_op_to_tree): Same.
26152 (unary_op_to_tree): Same.
26153 (nary_op_to_tree): Same.
26154 (gcc_expression_from_isl_expr_op): Same.
26155 (gcc_expression_from_isl_expression): Same.
26156 (graphite_create_new_loop): Same.
26157 (graphite_create_new_loop_guard): Same.
26158 (build_iv_mapping): Same.
26159 (graphite_create_new_guard): Same.
26160 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
26161 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
26163 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26165 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
26166 instead of setting codegen_error to fail codegen.
26168 2016-01-28 Jason Merrill <jason@redhat.com>
26170 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
26172 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26174 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26175 Remove CONST_INT_P check in CCMP cost calculation.
26177 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26179 * config/aarch64/aarch64.c (generic_vector_cost):
26180 Set vec_permute_cost.
26181 (cortexa57_vector_cost): Likewise.
26182 (exynosm1_vector_cost): Likewise.
26183 (xgene1_vector_cost): Likewise.
26184 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
26185 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
26186 Add vec_permute_cost entry.
26188 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26190 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
26192 (add<mode>3_compare0): Likewise.
26193 (addsi3_compare0_uxtw): Likewise.
26194 (add<mode>3nr_compare0): Likewise.
26195 (compare_neg<mode>): Likewise.
26196 (<optab><mode>3): Likewise.
26198 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
26200 * tree-vect-stmts.c (vectorizable_comparison): Add
26201 NULL check for vectype.
26203 2016-01-28 Richard Biener <rguenther@suse.de>
26205 PR tree-optimization/69466
26206 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
26207 Account for PHIs we couldn't duplicate.
26209 2016-01-28 Martin Liska <mliska@suse.cz>
26212 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
26213 instead of ENABLE_VALGRIND_CHECKING.
26215 2016-01-27 Richard Henderson <rth@redhat.com>
26218 * lra-remat.c (subreg_regs): New.
26219 (dump_candidates_and_remat_bb_data): Dump it.
26220 (operand_to_remat): Reject if operand in subreg_regs.
26221 (set_bb_regs): Collect subreg_regs.
26222 (lra_remat): Init and free subreg_regs. Compute
26223 calculate_local_reg_remat_bb_data before create_cands.
26225 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
26228 * config/i386/i386.c (ix86_update_stack_boundary): Don't
26229 change stack_alignment_needed for __tls_get_addr call.
26231 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
26233 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
26235 2016-01-27 Jeff Law <law@redhat.com>
26237 PR tree-optimization/68398
26238 PR tree-optimization/69196
26239 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
26240 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
26241 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26242 Only count PHIs in the last block in the path. The others will
26243 const/copy propagate away. Add heuristic to allow more irreducible
26244 subloops to be created when it is likely profitable to do so.
26246 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26247 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
26248 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
26250 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26253 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
26254 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
26255 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
26256 * tree-streamer-in.c: Include asan.h.
26257 (streamer_get_builtin_tree): For builtins in sanitizer
26258 range call initialize_sanitizer_builtins and retry.
26260 2016-01-27 Ian Lance Taylor <iant@google.com>
26262 * common.opt (fkeep-gc-roots-live): New undocumented option.
26263 * tree-ssa-loop-ivopts.c (add_candidate_1): If
26264 -fkeep-gc-roots-live, skip pointers.
26265 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
26268 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
26271 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
26272 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
26274 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
26277 * configure.ac: NetBSD provides SSP in its C library.
26278 * configure: Updated.
26280 2016-01-27 Richard Biener <rguenther@suse.de>
26282 PR tree-optimization/69166
26283 * tree-vect-loop.c (vect_is_simple_reduction): Always check
26284 reduction code for commutativity / associativity.
26286 2016-01-27 Martin Jambor <mjambor@suse.cz>
26288 PR tree-optimization/69355
26289 * tree-sra.c (analyze_access_subtree): Correct hole detection when
26290 total_scalarization fails.
26292 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
26294 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
26297 2016-01-27 Christian Bruel <christian.bruel@st.com>
26300 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
26301 Move arm_reset_previous_fndecl and set_target_option_current_node in
26302 the conditional part. Call save_restore_target_globals.
26303 * config/arm/arm.c (arm_set_current_function):
26304 Refactor to better support #pragma target and attribute mix.
26305 Call save_restore_target_globals.
26306 * config/arm/arm-protos.h (save_restore_target_globals): New function.
26308 2016-01-27 Martin Liska <mliska@suse.cz>
26310 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
26311 reference for an HSA kernel and its host function.
26313 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26315 PR tree-optimization/69399
26316 * wide-int.h (wi::lrshift): For larger precisions, only
26317 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
26319 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26321 * config/arc/predicates.md (proper_comparison_operator): Reject
26322 constant-constant comparison.
26324 2016-01-26 Tom de Vries <tom@codesourcery.com>
26326 PR tree-optimization/69110
26327 * tree-data-ref.c (initialize_data_dependence_relation): Handle
26328 DR_NUM_DIMENSIONS == 0.
26330 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26331 Sebastian Pop <s.pop@samsung.com>
26333 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
26334 isl_ast_op_cond and isl_ast_op_select.
26335 (gcc_expression_from_isl_expr_op): Same.
26337 2016-01-26 Jason Merrill <jason@redhat.com>
26340 * tree.c (recompute_constructor_flags): Split out from
26342 (verify_constructor_flags): New.
26343 * tree.h: Declare them.
26345 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
26347 PR rtl-optimization/69217
26348 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
26349 are no TYPE_FIELDS set for the record type.
26351 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26354 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
26355 toc_label_name unconditionally.
26356 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
26357 SYMBOL_REF string. Use toc_label_name instead of constructing
26359 (rs6000_elf_declare_function_name): Use toc_label_name instead of
26360 constructing LCTOC1.
26362 2016-01-26 Martin Sebor <msebor@redhat.com>
26365 * doc/extend.texi (Common Type Attributes): Move text that talks about
26366 attribute packed from attribute aligned to the section discussing
26367 the former attribute for clarity.
26369 2016-01-26 Richard Henderson <rth@redhat.com>
26371 PR middle-end/60908
26372 * trans-mem.c (tm_region_init): Mark entry block as visited.
26374 2016-01-26 David Malcolm <dmalcolm@redhat.com>
26377 * diagnostic-show-locus.c (layout::print_source_line): Replace
26378 call to pp_newline with call to layout::print_newline.
26379 (layout::print_annotation_line): Likewise.
26380 (layout::move_to_column): Likewise.
26381 (layout::print_any_fixits): After printing any fixits, print a
26382 trailing newline, if necessary.
26383 (layout::print_newline): New method, resetting any colorization
26385 (diagnostic_show_locus): Move the pp_newline to before the
26386 early bailout. Remove dummy block enclosing the layout instance.
26387 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
26388 of pp_newline_and_flush with pp_flush.
26389 (diagnostic_append_note): Delete use of pp_newline.
26390 (diagnostic_append_note_at_rich_loc): Delete.
26391 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
26392 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
26393 when newline characters are added to the buffer.
26395 2016-01-26 Michael Matz <matz@suse.de>
26397 * configure.ac (ac_cv_std_swap_in_utility): New test.
26398 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
26399 * configure: Regenerate.
26400 * config.in: Regenerate.
26402 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
26404 * config/arc/arc.md (cstoresi4): Force operand into register.
26405 (arcset<code>): Fix predicate.
26406 (arcsetltu): Likewise.
26407 (arcsetgeu): Likewise.
26408 (arcsethi): Likewise.
26409 (arcsetls): Likewise.
26411 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26413 PR tree-optimization/69483
26414 * gimple-fold.c (canonicalize_constructor_val): Return NULL
26415 if base has error_mark_node type.
26417 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
26420 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
26421 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
26423 (vget_lane_f16): Handle big-endian.
26424 (vgetq_lane_f16): Likewise.
26425 (vset_lane_f16): Likewise.
26426 (vsetq_lane_f16): Likewise.
26427 * config/arm/iterators.md (VQXMOV): Add V8HF.
26428 (VDQ): Add V4HF and V8HF.
26429 (V_reg): Handle V4HF and V8HF.
26430 (Is_float_mode): Likewise.
26431 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
26432 neon_vdup_nv8hf): New patterns.
26433 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
26434 Use VD_LANE iterator.
26435 (neon_vld1_dup<mode>): Use VQ2 iterator.
26437 2016-01-26 Nathan Sidwell <nathan@acm.org>
26439 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
26440 (set_oacc_fn_attrib): Add IS_KERNEL arg.
26441 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
26442 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
26443 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
26444 (oacc_validate_dims): Add LEVEL arg, don't return level.
26445 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
26446 oacc_validate_dims.
26447 (execute_oacc_device_lower): Adjust, add more dump output.
26448 * tree-ssa-loop.c (gate_oacc_kernels): Use
26449 oacc_fn_attrib_kernels_p.
26450 * tree-parloops.c (create_parallel_loop): Adjust
26451 set_oacc_fn_attrib call.
26453 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26456 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
26457 (append_compiler_options): Handle -fcilkplus.
26458 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
26460 2016-01-26 Nick Clifton <nickc@redhat.com>
26463 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
26464 been marked as DECL_ONE_ONLY but we do not the means to make it
26465 so, then do not allow it to bind locally.
26467 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26470 * opts.h (parse_sanitizer_options): New prototype.
26471 * opts.c (sanitizer_opts): New array.
26472 (parse_sanitizer_options): New function.
26473 (common_handle_option): Use parse_sanitizer_options.
26475 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
26478 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
26479 alignment adjustment to ...
26480 (ix86_update_stack_boundary): Here. Don't over-align stack for
26482 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
26483 if __tls_get_addr is called.
26485 2016-01-26 Christian Bruel <christian.bruel@st.com>
26487 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
26489 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
26491 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
26493 2016-01-26 Richard Biener <rguenther@suse.de>
26495 PR middle-end/69467
26496 * match.pd: Guard X * CST CMP 0 pattern with single_use.
26498 2016-01-26 Richard Biener <rguenther@suse.de>
26500 PR tree-optimization/69452
26501 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
26502 (move_computations_dom_walker::before_dom_children): Rename
26504 (move_computations_worker): This.
26505 (move_computations): Perform an RPO rather than a DOM walk.
26507 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26510 * combine.c (combine_instructions): For REG_EQUAL note with
26511 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
26512 to the underlying register.
26513 * doc/rtl.texi (REG_EQUAL): Document the behavior of
26514 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
26516 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
26519 * config/aarch64/aarch64-builtins.c
26520 (aarch64_init_simd_builtin_types): Do not set structural
26521 equality to __Poly{8,16,64,128}_t types.
26523 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
26525 PR tree-optimization/69400
26526 * wide-int.cc (wi_pack): Take the precision as argument and
26527 perform canonicalization here rather than in the callers.
26528 Use the main loop to handle all full-width HWIs. Add a
26529 zero HWI if in_len isn't a full result.
26530 (wi::divmod_internal): Update accordingly.
26531 (wi::mul_internal): Likewise. Simplify.
26533 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26534 Sebastian Pop <s.pop@samsung.com>
26536 * graphite-poly.c (apply_poly_transforms): Simplify.
26537 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
26538 (print_isl_map): Same.
26539 (print_isl_union_map): Same.
26540 (print_isl_schedule): New.
26541 (debug_isl_schedule): New.
26542 * graphite-dependences.c (scop_get_reads): Do not call
26543 isl_union_map_add_map that is undocumented isl functionality.
26544 (scop_get_must_writes): Same.
26545 (scop_get_may_writes): Same.
26546 (scop_get_original_schedule): Remove.
26547 (scop_get_dependences): Do not call isl_union_map_compute_flow that
26548 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
26549 (compute_deps): Remove.
26550 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
26551 (debug_schedule_ast): New.
26552 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
26553 set_separate_option.
26554 (graphite_regenerate_ast_isl): Add dump.
26555 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
26556 from scop->transformed_schedule.
26557 (graphite_regenerate_ast_isl): Add more dump.
26558 * graphite-optimize-isl.c (optimize_isl): Set
26559 scop->transformed_schedule. Check whether schedules are equal.
26560 (apply_poly_transforms): Move here.
26561 * graphite-poly.c (apply_poly_transforms): ... from here.
26562 (free_poly_bb): Static.
26563 (free_scop): Static.
26564 (pbb_number_of_iterations_at_time): Remove.
26565 (print_isl_ast): New.
26566 (debug_isl_ast): New.
26567 (debug_scop_pbb): New.
26568 * graphite-scop-detection.c (print_edge): Move.
26569 (print_sese): Move.
26570 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
26571 (build_scop_scattering): Remove.
26572 (create_pw_aff_from_tree): Assert instead of bailing out.
26573 (add_condition_to_pbb): Remove unused code, do not fail.
26574 (add_conditions_to_domain): Same.
26575 (add_conditions_to_constraints): Remove.
26576 (build_scop_context): New.
26577 (add_iter_domain_dimension): New.
26578 (build_iteration_domains): Initialize pbb->iterators.
26579 Call add_conditions_to_domain.
26582 (index_outermost_in_loop): New.
26583 (index_pbb_in_loop): New.
26584 (outermost_pbb_in): New.
26585 (add_in_sequence): New.
26586 (add_outer_projection): New.
26587 (outer_projection_mupa): New.
26588 (add_loop_schedule): New.
26589 (build_schedule_pbb): New.
26590 (build_schedule_loop): New.
26591 (embed_in_surrounding_loops): New.
26592 (build_schedule_loop_nest): New.
26593 (build_original_schedule): New.
26594 (build_poly_scop): Call build_original_schedule.
26595 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
26596 (free_poly_dr): Remove.
26597 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
26598 (free_poly_bb): Remove.
26599 (debug_loop_vec): Remove.
26600 (print_isl_ast): Declare.
26601 (debug_isl_ast): Declare.
26602 (scop_do_interchange): Remove.
26603 (scop_do_strip_mine): Remove.
26604 (scop_do_block): Remove.
26605 (flatten_all_loops): Remove.
26606 (optimize_isl): Remove.
26607 (pbb_number_of_iterations_at_time): Remove.
26608 (debug_scop_pbb): Declare.
26609 (print_schedule_ast): Declare.
26610 (debug_schedule_ast): Declare.
26611 (struct scop): Remove schedule. Add original_schedule,
26612 transformed_schedule.
26613 (free_gimple_poly_bb): Remove.
26614 (print_generated_program): Remove.
26615 (debug_generated_program): Remove.
26616 (unify_scattering_dimensions): Remove.
26617 * sese.c (print_edge): ... here.
26618 (print_sese): ... here.
26619 (debug_edge): ... here.
26620 (debug_sese): ... here.
26621 * sese.h (print_edge): Declare.
26622 (print_sese): Declare.
26623 (dump_edge): Declare.
26624 (dump_sese): Declare.
26626 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26627 Sebastian Pop <s.pop@samsung.com>
26629 * Makefile.in: Set ISLVER in site.exp.
26631 2016-01-25 Jakub Jelinek <jakub@redhat.com>
26633 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
26634 DECL_VALUE_EXPR of new_var even for the non-array case. Look
26635 through DECL_VALUE_EXPR for expansion.
26637 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
26639 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
26640 the frame info after reload completed.
26642 2016-01-25 Jeff Law <law@redhat.com>
26644 PR tree-optimization/69196
26645 PR tree-optimization/68398
26646 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
26647 tree-ssa-threadupdate.c.
26648 (determine_bb_domination_status): Prototype
26649 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
26650 (determine_bb_domination_status): No longer static.
26651 (valid_jump_thread_path): Remove code to detect characteristics
26652 of the jump thread path not associated with correctness.
26653 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
26654 Correct test for thread path length. Count PHIs for real operands as
26655 statements that need to be copied. Do not count ASSERT_EXPRs.
26656 Look at all the blocks in the thread path. Compute and selectively
26657 filter thread paths based on threading through the latch, threading
26658 a multiway branch or crossing a multiway branch.
26660 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26662 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
26663 decl with __attribute__ ((unused)) annotation.
26665 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
26668 * tree-vect-stmts.c (vectorizable_condition): Check vectype
26669 of operands is compatible with a statement vectype.
26671 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
26673 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
26674 improve wording for mixed storage order support.
26676 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
26678 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
26679 (vcvt_u64_f64): Likewise.
26680 (vcvta_s64_f64): Likewise.
26681 (vcvta_u64_f64): Likewise.
26682 (vcvtm_s64_f64): Likewise.
26683 (vcvtm_u64_f64): Likewise.
26684 (vcvtn_s64_f64): Likewise.
26685 (vcvtn_u64_f64): Likewise.
26686 (vcvtp_s64_f64): Likewise.
26687 (vcvtp_u64_f64): Likewise.
26689 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
26691 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
26692 (arc_init): Check validity mll64 option.
26693 (arc_save_restore): Use double load/store instruction.
26694 (arc_expand_movmem): Likewise.
26695 (arc_split_move): Don't split if we have double load/store
26696 instructions. Returns a boolean.
26697 (arc_process_double_reg_moves): Change function to return boolean
26698 instead of a sequence of instructions.
26699 (arc_dwarf_register_span): New function.
26700 * config/arc/arc-protos.h (arc_split_move): Change prototype.
26701 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
26702 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
26703 (*movdf_insn): Likewise.
26704 * config/arc/arc.opt (mll64): New option.
26705 * config/arc/predicates.md (even_register_operand): New predicate.
26706 * doc/invoke.texi (ARC Options): Add mll64 documentation.
26708 2016-01-25 Richard Biener <rguenther@suse.de>
26711 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
26712 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
26714 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
26716 2016-01-25 Richard Biener <rguenther@suse.de>
26718 PR tree-optimization/69376
26719 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
26721 (VN_INFO_ANTI_RANGE_P): New inline.
26722 (VN_INFO_RANGE_TYPE): Likewise.
26723 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
26724 SSA_NAME_ANTI_RANGE_P.
26725 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
26726 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26727 Properly query VN_INFO_RANGE_TYPE.
26729 2016-01-25 Nick Clifton <nickc@redhat.com>
26732 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
26734 2016-01-23 Tom de Vries <tom@codesourcery.com>
26736 PR tree-optimization/69426
26737 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
26740 2016-01-23 Jakub Jelinek <jakub@redhat.com>
26742 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
26743 "the the" with "the" in the comments.
26744 * ipa-devirt.c (build_type_inheritance_graph,
26745 update_type_inheritance_graph): Likewise.
26746 * tree.c (build_function_type_list_1): Likewise.
26747 * cfgloopmanip.c (scale_loop_profile): Likewise.
26748 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
26749 * gimple-ssa-split-paths.c
26750 (find_block_to_duplicate_for_splitting_paths): Likewise.
26751 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
26752 * expr.c (convert_move): Likewise.
26753 * var-tracking.c (vt_stack_adjustments): Likewise.
26754 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
26755 * tree-vrp.c (test_for_singularity): Likewise.
26757 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
26758 directly instead of building a temporary tree.
26761 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
26762 remove <algorithm> include.
26764 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26767 * config/i386/i386.c: Include dojump.h.
26768 (expand_small_movmem_or_setmem,
26769 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
26771 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
26772 if dynamic_check != -1.
26774 2016-01-21 Jeff Law <law@redhat.com>
26776 PR middle-end/69347
26777 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
26778 record_temporary_equivalences. Rewritten to avoid unnecessary calls
26779 into dominated_by_p.
26780 (cprop_into_successor_phis): Avoid unnecessary tests.
26782 2016-01-22 Richard Henderson <rth@redhat.com>
26785 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
26786 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
26788 2016-01-22 Michael Matz <matz@suse.de>
26790 * system.h (string, algorithm): Include only conditionally.
26791 (new): Include always under C++.
26792 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
26793 * final.c (toplevel): Ditto.
26794 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
26795 * genconditions.c (write_header): Make gencondmd.c define
26797 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
26799 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
26800 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
26802 2016-01-22 Christian Bruel <christian.bruel@st.com>
26805 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
26807 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26810 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
26811 define_insn_and_split. Ensure operands[1] and operands[0] do not
26812 get assigned the same register.
26814 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
26816 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
26818 2016-01-22 Christian Bruel <christian.bruel@st.com>
26820 * config/arm/arm-c.c (arm_pragma_target_parse):
26821 Remove warn_builtin_macro_redefined overwrite.
26823 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
26825 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
26826 flag_non_call_exceptions compatibility.
26828 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26831 * dwarf2out.c (add_child_die_after): New function.
26832 (dwarf_qual_info_t): New type.
26833 (dwarf_qual_info): New variable.
26834 (qualified_die_p): New function.
26835 (modified_type_die): For -fdebug-types-section, ensure
26836 canonical order of qualifiers. Put qualified DIEs adjacent
26837 to the corresponding non-qualified type DIE and search there
26838 for existing qualified DIEs.
26840 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
26842 * doc/extend.texi (scalar_storage_order type attribute): Document
26843 restriction on type punning and aliasing, and remove future tense.
26845 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
26848 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
26851 2016-01-21 Jeff Law <law@redhat.com>
26853 PR middle-end/69347
26854 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
26855 useless call to record_temporary_equivalences.
26856 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
26857 allocate 10 slots in the bb_path vector and let it grow as needed.
26858 (fsm_find_control_statement_thread_paths): Similarly for the next_path
26861 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
26863 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
26865 * configure: Regenerate.
26867 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
26869 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
26870 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
26872 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
26874 PR middle-end/66178
26875 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
26876 drop EXPAND_INITIALIZER.
26877 * rtl.h (contains_symbolic_reference_p): Declare.
26878 * rtlanal.c (contains_symbolic_reference_p): New function.
26879 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
26880 a subtraction into a NOT if symbolic constants are involved.
26882 2016-01-21 Anton Blanchard <anton@samba.org>
26883 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26886 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
26888 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
26891 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
26893 * config/microblaze/microblaze.c
26894 (get_branch_target): New.
26895 (insert_wic_for_ilb_runout): New.
26897 (microblaze_machine_dependent_reorg): New.
26898 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
26899 * config/microblaze/microblaze.md
26900 (UNSPEC_IPREFETCH): Define.
26901 (iprefetch): New pattern
26902 * config/microblaze/microblaze.opt
26903 (mxl-prefetch): New flag.
26905 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
26907 * config/microblaze/microblaze.h
26908 (FIXED_REGISTERS): Update in macro.
26909 (CALL_USED_REGISTERS): Update in macro.
26911 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
26913 PR rtl-optimization/68920
26914 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
26917 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
26919 PR rtl-optimization/68990
26920 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
26921 pseudo instead of inheritance ones.
26923 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26924 Nick Clifton <nickc@redhat.com>
26928 * config/mips/mips.c (mips_compute_frame_info): Initialise
26929 args_size and hard_frame_pointer_offset fields of the frame
26930 structure before calling mips_global_pointer.
26932 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
26934 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
26936 * configure: Regenerate.
26938 2016-01-21 Richard Biener <rguenther@suse.de>
26940 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
26942 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
26944 * config/s390/s390.c (s390_asm_declare_function_size): Add code
26945 to actually emit the .size directive.
26947 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
26948 Jakub Jelinek <jakub@redhat.com>
26952 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
26953 args array size by one to avoid buffer overflow.
26955 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
26957 * config/s390/s390.md (pool_section_start): Use switch_to_section
26958 to select proper read-only data section instead of hardcoding
26960 (pool_section_end): Use switch_to_section to match the above.
26962 2016-01-21 Richard Biener <rguenther@suse.de>
26964 PR tree-optimization/69378
26965 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
26966 (set_ssa_val_to): Use it for dominance checks taking into
26967 account not executable edges.
26969 2016-01-21 Jakub Jelinek <jakub@redhat.com>
26972 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
26973 for bitsize instead of GET_MODE_PRECISION (mode).
26975 2016-01-20 Martin Sebor <msebor@redhat.com>
26978 * extend.texi (__sync Builtins): Clarify the semantics of
26979 __sync_fetch_and_OP built-ins on pointers.
26980 (__atomic Builtins): Same.
26982 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26983 Sebastian Pop <s.pop@samsung.com>
26985 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
26986 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
26987 (is_valid_rename): Same.
26988 (translate_isl_ast_to_gimple::get_rename): Same.
26989 (translate_isl_ast_to_gimple::rename_all_uses): Same.
26990 (translate_isl_ast_to_gimple::rename_uses): Same.
26991 (get_new_name): Check for close_phi nodes.
26992 (copy_loop_phi_args): Use phi_node_kind.
26993 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
26994 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
26996 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26997 Sebastian Pop <s.pop@samsung.com>
26999 Revert commit r229783.
27000 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
27001 Remove use of parameter_rename_map.
27002 (copy_def): Remove.
27003 (copy_internal_parameters): Remove.
27004 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
27005 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
27006 (free_sese_info): Do not free parameter_rename_map.
27007 (set_rename): Do not use parameter_rename_map.
27008 (rename_uses): Update call to set_rename.
27009 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
27010 * sese.h (parameter_rename_map_t): Remove.
27011 (struct sese_info_t): Remove field parameter_rename_map.
27013 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27014 Sebastian Pop <s.pop@samsung.com>
27016 * graphite-isl-ast-to-gimple.c: Fix comment.
27017 * graphite-scop-detection.c (defined_in_loop_p): New.
27018 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
27019 names defined in loop.
27021 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27022 Sebastian Pop <s.pop@samsung.com>
27024 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
27025 Discard unstructured if-then-else regions.
27027 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27028 Sebastian Pop <s.pop@samsung.com>
27030 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
27031 (cleanup_loop_iter_dom): Remove.
27032 (build_loop_iteration_domains): Remove.
27033 (build_scop_context): Remove.
27034 (build_scop_iteration_domain): Remove.
27035 (add_loop_constraints): New.
27036 (build_iteration_domains): New.
27037 (build_poly_scop): Call build_iteration_domains.
27039 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27040 Sebastian Pop <s.pop@samsung.com>
27042 * graphite-scop-detection.c
27043 (scop_detection::harmful_loop_in_region): Free dom and loops.
27044 (scop_detection::loop_body_is_valid_scop): Free bbs.
27046 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27047 Sebastian Pop <s.pop@samsung.com>
27049 * graphite-scop-detection.c (record_loop_in_sese): New.
27050 (gather_bbs::before_dom_children): Call record_loop_in_sese.
27051 (build_scops): Remove call to build_sese_loop_nests.
27052 * sese.c (sese_record_loop): Remove.
27053 (build_sese_loop_nests): Remove.
27054 (new_sese_info): Remove region->loops.
27055 (free_sese_info): Same.
27056 * sese.h (sese_contains_loop): Same.
27057 (build_sese_loop_nests): Remove.
27058 (sese_contains_loop): Remove.
27060 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27061 Sebastian Pop <s.pop@samsung.com>
27063 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
27064 loop_is_valid_in_scop.
27065 (scop_detection::harmful_stmt_in_region): Renamed
27066 harmful_loop_in_region.
27067 Call loop_is_valid_in_scop.
27069 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27070 Sebastian Pop <s.pop@samsung.com>
27072 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
27075 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27076 Sebastian Pop <s.pop@samsung.com>
27078 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
27079 * graphite.h (struct poly_bb): Remove field is_reduction.
27080 (PBB_IS_REDUCTION): Remove.
27082 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27083 Sebastian Pop <s.pop@samsung.com>
27085 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
27086 (add_pdr_constraints): Same.
27087 (scop_get_reads): Same.
27088 (scop_get_must_writes): Same.
27089 (scop_get_may_writes): Same.
27090 (scop_get_original_schedule): Same.
27091 (extend_schedule): Same.
27092 (apply_schedule_on_deps): Same.
27093 (carries_deps): Same.
27094 (compute_deps): Same.
27095 (scop_get_dependences): Same.
27096 * graphite-isl-ast-to-gimple.c
27097 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
27098 * graphite-optimize-isl.c (get_schedule_for_band): Same.
27099 (get_schedule_for_band_list): Same.
27100 (get_schedule_map): Same.
27101 (apply_schedule_map_to_scop): Same.
27102 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27103 (build_loop_iteration_domains): Same.
27104 (add_condition_to_pbb): Same.
27105 (add_param_constraints): Same.
27106 (pdr_add_memory_accesses): Same.
27107 (pdr_add_data_dimensions): Same.
27109 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27111 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
27114 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27116 * common.opt (feliminate-dwarf2-dups): Replace references to
27117 "DWARF 2" with just "DWARF".
27118 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
27119 * doc/extend.texi: Likewise.
27120 * doc/cpp.texi: Likewise.
27121 * doc/invoke.texi: Likewise.
27122 (Option Summary): Add -gdwarf to list of Debugging Options.
27123 (Debugging Options): Document -gdwarf.
27124 * doc/contrib.texi: Spell "DWARF" like that.
27126 2016-01-21 Jakub Jelinek <jakub@redhat.com>
27128 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
27129 warning. Fix up formatting.
27131 PR middle-end/67653
27132 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
27133 attempt to mark memory input operand addressable and
27134 call prepare_gimple_addressable in that case. Don't adjust
27135 input_location for diagnostics, use error_at instead.
27137 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
27139 * config/rs6000/ppc-auxv.h: New file.
27140 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
27141 (cpu_is): Likewise.
27142 (cpu_supports): Likewise.
27143 * config/rs6000/rs6000.c: include "ppc-auxv.h".
27144 (cpu_is_info): New variable.
27145 (cpu_supports_info): Likewise.
27146 (tcb_verification_symbol): Likewise.
27147 (cpu_builtin_p): Likewise.
27148 (cpu_expand_builtin): New function.
27149 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
27150 (rs6000_init_builtins): Likewise.
27151 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
27152 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
27153 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
27154 * configure: Regenerate.
27155 * config.in: Likewise.
27156 * doc/extend.texi (PowerPC Built-in Functions): Document
27157 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
27159 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
27162 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
27164 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
27167 2016-01-20 Richard Henderson <rth@redhat.com>
27173 * tree.c (tm_define_builtin): New.
27174 (find_tm_vector_type): New.
27175 (build_tm_vector_builtins): New.
27176 (build_common_builtin_nodes): Call it.
27178 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
27180 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
27181 (arm_fp_ok): Likewise.
27182 (arm_fp): Likewise.
27183 (arm_crypto): Likewise.
27185 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27186 Richard Biener <rguenther@suse.de>
27188 PR tree-optimization/69328
27189 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
27190 vectors have same number of elements.
27191 (vectorizable_condition): Fix masked version recognition.
27193 2016-01-20 Richard Biener <rguenther@suse.de>
27195 PR tree-optimization/69345
27196 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
27197 (VN_INFO_PTR_INFO): Likewise.
27198 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
27199 info when it is equal between non-dominating SSA names.
27200 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27201 Make sure to look at original SSA infos.
27203 2016-01-20 Jeff Law <law@redhat.com>
27206 * config/m68k/predicates.md (pow2_m1_operand): New predicate
27208 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
27209 (pc_or_label_operand): New predicate.
27210 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
27211 tests for small integers that are 2^n - 1.
27213 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
27215 * doc/invoke.texi (Options Summary): Add '.' after @xref.
27217 2016-01-19 Jeff Law <law@redhat.com>
27219 PR middle-end/69347
27220 * tree-ssa-threadbackwards.c
27221 (fsm_find_control_statement_thread_paths): Do not try to lookup
27222 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
27224 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27226 * doc/lto.texi: Remove text that says only Gold has linker plugin
27229 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
27231 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
27232 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
27233 the DIE accordingly.
27234 (modified_type_die): Add REVERSE parameter and pass it recursively,
27235 as well as to base_type_die. Adjust presence check accordingly.
27236 (base_type_for_mode): Adjust call to modified_type_die.
27237 (add_type_attribute): Add REVERSE parameter and pass it to
27239 (generic_parameter_die): Adjust call to add_type_attribute.
27240 (add_scalar_info): Likewise.
27241 (add_subscript_info): Likewise.
27242 (gen_array_type_die): Likewise.
27243 (gen_descr_array_type_die): Likewise.
27244 (gen_entry_point_die): Likewise.
27245 (gen_enumeration_type_die): Likewise.
27246 (gen_formal_parameter_die): Likewise.
27247 (gen_subprogram_die): Likewise.
27248 (gen_variable_die ): Likewise.
27249 (gen_const_die): Likewise.
27250 (gen_field_die): Likewise.
27251 (gen_pointer_type_die): Likewise.
27252 (gen_reference_type_die): Likewise.
27253 (gen_ptr_to_mbr_type_die): Likewise.
27254 (gen_inheritance_die): Likewise.
27255 (gen_subroutine_type_die): Likewise.
27256 (gen_typedef_die): Likewise.
27257 (force_type_die): Adjust call to modified_type_die.
27259 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
27261 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
27262 flow throughout the file. Fix broken link to Objective-C 2.0
27264 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
27267 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27269 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
27271 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27274 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
27275 (maybe_record_node): Record cxa_pure_virtual as the only possible
27276 target if there are not ohter candidates.
27277 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
27279 2016-01-19 Richard Biener <rguenther@suse.de>
27281 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
27282 (get_memory_order): Likewise.
27284 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
27286 * tree-vect-stmts.c (vectorizable_store): Check
27289 2016-01-19 David Malcolm <dmalcolm@redhat.com>
27292 * gcc.c (driver::decode_argv): Add call to
27293 init_opts_obstack before init_options_struct.
27294 * opts.c (init_opts_obstack): Remove idempotency.
27295 (init_options_struct): Replace call to init_opts_obstack
27296 with a gcc_assert to verify that it has already been called.
27297 * toplev.c (toplev::main): Add call to init_opts_obstack before
27298 calls to init_options_struct.
27299 (toplev::finalize): Move cleanup of opts_obstack next to
27300 cleanup of save_decoded_options, clearing the latter, and
27301 save_decoded_options_count.
27303 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27306 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
27307 attribute to unconditional. Remove %? from output template.
27309 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27310 Jiong Wang <jiong.wang@arm.com>
27312 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
27313 generated from different expand order.
27315 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27317 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
27318 Add support for CCMP costing.
27320 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27322 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
27323 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
27324 (fccmpe<mode>): Likewise.
27325 (fcmp): Rename to fcmp and globalize pattern.
27327 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
27328 (aarch64_gen_ccmp_next): Add FP support.
27330 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27332 * target.def (gen_ccmp_first): Update documentation.
27333 (gen_ccmp_next): Likewise.
27334 * doc/tm.texi (gen_ccmp_first): Update documentation.
27335 (gen_ccmp_next): Likewise.
27336 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
27337 expand_ccmp_expr_1. Improve comments.
27338 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
27339 (ccmp_ior<mode>): Remove pattern.
27340 (cmp<mode>): Remove expand.
27341 (cmp): Globalize pattern.
27342 (cstorecc4): Use cc_register.
27343 (mov<mode>cc): Remove ccmp_cc_register check.
27344 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
27345 Simplify after removal of CC_DNE/* modes.
27346 (aarch64_ccmp_mode_to_code): Remove.
27347 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
27348 In 'k' case use integer as condition.
27349 (aarch64_nzcv_codes): Remove inverted cases.
27350 (aarch64_code_to_ccmode): Remove.
27351 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
27352 comparison with CC register to be used in folowing CCMP/branch/CSEL.
27353 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
27354 pattern. Return the comparison with CC register. Invert conditions
27355 when bitcode is OR.
27356 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
27357 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
27359 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27361 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
27362 instrumented_version.
27364 2016-01-19 Richard Biener <rguenther@suse.de>
27366 PR tree-optimization/69336
27367 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
27368 handled components with get_ref_base_and_extent.
27369 (equal_mem_array_ref_p): Adjust.
27371 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27374 * shrink-wrap.c: Include valtrack.h.
27375 (move_insn_for_shrink_wrap): Add DEBUG argument. If
27376 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
27377 in between insn and where it will be moved to. Call
27378 dead_debug_insert_temp.
27379 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
27380 first and dead_debug_local_finish at the end.
27381 For uses and defs bitmap, handle all regs in between REGNO and
27382 END_REGNO, not just the first one.
27384 2016-01-19 Richard Biener <rguenther@suse.de>
27386 PR tree-optimization/69352
27387 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
27388 (equal_mem_array_ref_p): Constrain size and max size properly.
27389 Compare the reverse flag.
27391 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
27393 * ira.c (ira): Update regstat data if we deleted insns.
27395 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27397 PR rtl-optimization/68955
27398 PR rtl-optimization/64557
27399 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
27400 here. Fix up formatting.
27401 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
27403 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27406 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
27407 assume that the node has body.
27408 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
27411 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27413 * lto-streamer-out.c (lto_output): Do not stream instrumentation
27416 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27418 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
27419 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
27421 2016-01-19 Martin Jambor <mjambor@suse.cz>
27422 Martin Liska <mliska@suse.cz>
27423 Michael Matz <matz@suse.de>
27425 * Makefile.in (OBJS): Add new source files.
27426 (GTFILES): Add hsa.c.
27427 * common.opt (disable_hsa): New variable.
27428 (-Whsa): New warning.
27429 * config.in (ENABLE_HSA): New.
27430 * configure.ac: Treat hsa differently from other accelerators.
27431 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
27432 $enable_offloading.
27433 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
27434 * doc/install.texi (Configuration): Document --with-hsa-runtime,
27435 --with-hsa-runtime-include, --with-hsa-runtime-lib and
27436 --with-hsa-kmt-lib.
27437 * doc/invoke.texi (-Whsa): Document.
27438 (hsa-gen-debug-stores): Likewise.
27439 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
27440 to invoke offload compiler for hsa acclerator.
27441 * opts.c (common_handle_option): Determine whether HSA offloading
27442 should be performed.
27443 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
27444 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
27445 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
27446 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
27447 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
27448 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
27449 GF_OMP_FOR_KIND_GRID_LOOP.
27450 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
27451 (pp_gimple_stmt_1): Likewise.
27452 * gimple-walk.c (walk_gimple_stmt): Likewise.
27453 * gimple.c (gimple_build_omp_grid_body): New function.
27454 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
27455 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
27456 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
27457 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
27458 GF_OMP_TEAMS_GRID_PHONY.
27459 (gimple_statement_omp_single_layout): Updated comments.
27460 (gimple_build_omp_grid_body): New function.
27461 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
27462 (gimple_omp_for_grid_phony): New function.
27463 (gimple_omp_for_set_grid_phony): Likewise.
27464 (gimple_omp_parallel_grid_phony): Likewise.
27465 (gimple_omp_parallel_set_grid_phony): Likewise.
27466 (gimple_omp_teams_grid_phony): Likewise.
27467 (gimple_omp_teams_set_grid_phony): Likewise.
27468 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
27469 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
27470 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
27471 (BUILT_IN_GOMP_TARGET): Updated type.
27472 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
27473 (adjust_for_condition): New function.
27474 (get_omp_for_step_from_incr): Likewise.
27475 (extract_omp_for_data): Moved parts to adjust_for_condition and
27476 get_omp_for_step_from_incr.
27477 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
27478 (fixup_child_record_type): Bail out if receiver_decl is NULL.
27479 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
27480 (scan_omp_parallel): Do not create child functions for phony
27482 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
27483 (scan_omp_1_op): Checking assert we are not remapping to
27484 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
27485 (parallel_needs_hsa_kernel_p): New function.
27486 (expand_parallel_call): Register apprpriate parallel child
27487 functions as HSA kernels.
27488 (grid_launch_attributes_trees): New type.
27489 (grid_attr_trees): New variable.
27490 (grid_create_kernel_launch_attr_types): New function.
27491 (grid_insert_store_range_dim): Likewise.
27492 (grid_get_kernel_launch_attributes): Likewise.
27493 (get_target_argument_identifier_1): Likewise.
27494 (get_target_argument_identifier): Likewise.
27495 (get_target_argument_value): Likewise.
27496 (push_target_argument_according_to_value): Likewise.
27497 (get_target_arguments): Likewise.
27498 (expand_omp_target): Call get_target_arguments instead of looking
27499 up for teams and thread limit.
27500 (grid_expand_omp_for_loop): New function.
27501 (grid_arg_decl_map): New type.
27502 (grid_remap_kernel_arg_accesses): New function.
27503 (grid_expand_target_kernel_body): New function.
27504 (expand_omp): Call it.
27505 (lower_omp_for): Do not emit phony constructs.
27506 (lower_omp_taskreg): Do not emit phony constructs but create for them
27507 a temporary variable receiver_decl.
27508 (lower_omp_taskreg): Do not emit phony constructs.
27509 (lower_omp_teams): Likewise.
27510 (lower_omp_grid_body): New function.
27511 (lower_omp_1): Call it.
27512 (grid_reg_assignment_to_local_var_p): New function.
27513 (grid_seq_only_contains_local_assignments): Likewise.
27514 (grid_find_single_omp_among_assignments_1): Likewise.
27515 (grid_find_single_omp_among_assignments): Likewise.
27516 (grid_find_ungridifiable_statement): Likewise.
27517 (grid_target_follows_gridifiable_pattern): Likewise.
27518 (grid_remap_prebody_decls): Likewise.
27519 (grid_copy_leading_local_assignments): Likewise.
27520 (grid_process_kernel_body_copy): Likewise.
27521 (grid_attempt_target_gridification): Likewise.
27522 (grid_gridify_all_targets_stmt): Likewise.
27523 (grid_gridify_all_targets): Likewise.
27524 (execute_lower_omp): Call grid_gridify_all_targets.
27525 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
27526 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
27527 (tree_omp_clause): Added union field dimension.
27528 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
27529 * tree.c (omp_clause_num_ops): Added number of arguments of
27530 OMP_CLAUSE__GRIDDIM_.
27531 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
27532 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
27533 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
27534 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
27535 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
27536 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
27537 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
27538 * tree-pass.h (make_pass_gen_hsail): Declare.
27539 (make_pass_ipa_hsa): Likewise.
27540 * ipa-hsa.c: New file.
27541 * lto-section-in.c (lto_section_name): Add hsa section name.
27542 * lto-streamer.h (lto_section_type): Add hsa section.
27543 * timevar.def (TV_IPA_HSA): New.
27544 * hsa-brig-format.h: New file.
27545 * hsa-brig.c: New file.
27546 * hsa-dump.c: Likewise.
27547 * hsa-gen.c: Likewise.
27550 * toplev.c (compile_file): Call hsa_output_brig.
27551 * hsa-regalloc.c: New file.
27553 2016-01-18 Jeff Law <law@redhat.com>
27555 PR tree-optimization/69320
27556 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
27557 ranged object, do nothing if the RHS constant is not [0..1].
27558 (optimize_stmt): Comparing a boolean ranged object against a
27559 constant outside [0..1] results in a compile-time constant.
27561 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
27564 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
27566 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27567 (Option Summary): Update to reflect new section and moved options.
27568 (C++ Dialect Options): Move -fstats to new section.
27569 (Debugging Options): Move all dump, statistics, and other GCC
27570 developer options to new section. Rewrite section introduction
27571 and re-order remaining options to put the more basic ones first.
27572 (Optimization Options): Move -fira-verbose and -flto-report* to
27574 (Developer Options): New section incorporating moved options.
27575 * doc/cppopts.texi (-dM): Update cross-reference.
27577 2016-01-18 Richard Henderson <rth@redhat.com>
27580 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
27581 operands to pseudo only if CSE is expected. Split long immediate
27582 operands only after reload, and for the stack pointer.
27583 (*add<GPI>3_pluslong): Remove.
27584 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
27585 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
27586 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
27587 (*add<GPI>3 peepholes): New.
27588 (*add<GPI>3 splitters): New.
27589 * config/aarch64/constraints.md (Upl): New.
27590 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
27592 2016-01-18 Richard Biener <rguenther@suse.de>
27594 PR tree-optimization/69297
27595 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
27597 (vect_bb_vectorization_profitable_p): Clear visited flag again.
27599 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
27601 PR middle-end/68542
27602 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
27603 of mixind vector and scalar types.
27604 (fold_relational_const): Add handling of vector
27605 comparison with boolean result.
27606 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
27607 comparison of vector operands with boolean result for EQ/NE only.
27608 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
27609 (verify_gimple_cond): Likewise.
27610 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
27613 2016-01-18 Joseph Myers <joseph@codesourcery.com>
27615 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
27618 2016-01-18 Richard Biener <rguenther@suse.de>
27620 PR middle-end/69308
27621 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
27623 2016-01-18 Tom de Vries <tom@codesourcery.com>
27625 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
27627 2016-01-18 Tom de Vries <tom@codesourcery.com>
27629 * omp-low.c (set_oacc_fn_attrib): Make extern.
27630 * omp-low.h (set_oacc_fn_attrib): Declare.
27631 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
27632 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
27633 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
27634 Add and handle function parameter oacc_kernels_p.
27635 (find_reduc_addr, get_omp_data_i_param): New function.
27636 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
27637 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
27638 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
27639 Calculate dominance info. Skip loops that are not in a kernels region
27640 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
27641 (pass_parallelize_loops::execute): Call parallelize_loops with
27642 oacc_kernels_p argument.
27643 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
27644 New member function.
27645 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
27646 * passes.def: Add argument to pass_parallelize_loops instantation.
27648 2016-01-18 Tom de Vries <tom@codesourcery.com>
27650 * tree-parloops.c (pass_parallelize_loops::execute): Allow
27651 pass_parallelize_loops to be run outside the loop pipeline.
27653 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27655 * tree-scalar-evolution.c (follow_copies_to_constant): New.
27656 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
27658 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27661 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
27662 using get_ref_base_and_extent.
27663 (equal_mem_array_ref_p): New.
27664 (hashable_expr_equal_p): Add call to previous.
27666 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27669 * tree-sra.c (disqualified_constants, constant_decl_p): New.
27670 (sra_initialize): Allocate disqualified_constants.
27671 (sra_deinitialize): Free disqualified_constants.
27672 (disqualify_candidate): Update disqualified_constants when appropriate.
27673 (create_access): Scan for constant-pool entries as we go along.
27674 (scalarizable_type_p): Add check against type_contains_placeholder_p.
27675 (maybe_add_sra_candidate): Allow constant-pool entries.
27676 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
27677 (initialize_constant_pool_replacements): New.
27678 (sra_modify_assign): Avoid mangling assignments created by previous,
27679 and don't generate writes into constant pool.
27680 (sra_modify_function_body): Call initialize_constant_pool_replacements.
27682 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27684 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
27685 andnot instruction.
27686 (scalar_chain::convert_op): Likewise.
27687 * config/i386/i386.md (*andndi3_doubleword): New.
27689 2016-01-18 Richard Biener <rguenther@suse.de>
27691 PR tree-optimization/69170
27692 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
27693 building a vector from scalar results of a pattern stmt.
27695 2016-01-18 Jakub Jelinek <jakub@redhat.com>
27697 * haifa-sched.c (autopref_multipass_init): Work around
27698 -Wmaybe-uninitialized warning.
27700 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
27702 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
27703 against the constant 0.
27705 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27707 PR tree-optimization/68799
27708 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
27709 look up phi candidates in the statement-candidate map.
27710 (phi_add_costs): Likewise.
27711 (record_phi_increments): Likewise.
27712 (phi_incr_cost): Likewise.
27713 (ncd_with_phi): Likewise.
27714 (all_phi_incrs_profitable): Likewise.
27716 2016-01-17 Jakub Jelinek <jakub@redhat.com>
27718 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
27719 -Wmaybe-uninitialized warning.
27721 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
27723 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27724 (Option Summary): Update to reflect new section and moved options.
27725 (C++ Dialect Options): Move -fvtable-verify and related options.
27726 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
27727 and profiling-related options.
27728 (Optimization Options): Move profile generation options and
27729 -fstack-protector and related options.
27730 (Instrumentation Options): New section incorporating moved options.
27731 (Code Generation Options): Move -finstrument-functions and
27732 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
27734 2016-01-16 Tom de Vries <tom@codesourcery.com>
27736 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
27738 2016-01-16 Tom de Vries <tom@codesourcery.com>
27740 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
27742 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
27744 * hash-table.h (hash_table::empty): Turn into an inline wrapper
27745 that checks whether the table is already empty. Rename the
27746 original implementation to...
27747 (hash_table::empty_slot): ...this new private function.
27749 2016-01-15 David Malcolm <dmalcolm@redhat.com>
27751 PR diagnostic/68899
27752 * diagnostic-show-locus.c (layout::print_source_line): Move x
27753 offset of line until after call to
27754 get_line_width_without_trailing_whitespace.
27756 2016-01-15 Jeff Law <law@redhat.com>
27758 PR tree-optimization/69270
27759 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
27760 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
27761 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
27762 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
27763 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27764 ssa_name_has_boolean_range and constant_boolean_node.
27766 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
27768 PR rtl-optimization/69030
27769 * lra-spills.c (remove_pseudos): Check nrefs and make the function
27771 (spill_pseudos): Delete debug insn for dead pseudo.
27772 (lra_spill): Initiate spill_hard_reg and slots memory separately.
27774 2016-01-15 Jiong Wang <jiong.wang@arm.com>
27776 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
27778 (TYPES_UNOPUS): Likewise.
27779 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
27780 builtin type, from UNOP to UNOPUS.
27781 (lbtruncuv4sf): Likewise.
27782 (lbtruncuv2df): Likewise.
27783 (lrounduv2sf): Likewise.
27784 (lrounduv4sf): Likewise.
27785 (lrounduv2df): Likewise.
27786 (lroundusf): Likewise.
27787 (lroundusf): Likewise.
27788 (lceiluv2sf): Likewise.
27789 (lceiluv4sf): Likewise.
27790 (lceiluv2df): Likewise.
27791 (lceilusf): Likewise.
27792 (lceiludf): Likewise.
27793 (lflooruv2sf): Likewise.
27794 (lflooruv4sf): Likewise.
27795 (lflooruv2df): Likewise.
27796 (lfloorusf): Likewise.
27797 (lfloorudf): Likewise.
27798 (lfrintnuv2sf): Likewise.
27799 (lfrintnuv4sf): Likewise.
27800 (lfrintnuv2df): Likewise.
27801 (lfrintnusf): Likewise.
27802 (lfrintnudf): Likewise.
27803 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
27805 (vcvtq_u32_f32): Likewise.
27806 (vcvtq_u64_f64): Likewise.
27807 (vcvta_u32_f32): Likewise.
27808 (vcvtaq_u32_f32): Likewise.
27809 (vcvtaq_u64_f64): Likewise.
27810 (vcvtm_u32_f32): Likewise.
27811 (vcvtmq_u32_f32): Likewise.
27812 (vcvtmq_u64_f64): Likewise.
27813 (vcvtn_u32_f32): Likwise.
27814 (vcvtnq_u32_f32): Likewise.
27815 (vcvtnq_u64_f64): Likewise.
27816 (vcvtp_u32_f32): Likewise.
27817 (vcvtpq_u32_f32): Likewise.
27818 (vcvtpq_u64_f64): Likewise.
27819 (vcvtmd_u64_f64): Likewise.
27820 (vcvtms_u32_f32): Likewise.
27821 (vcvtad_u64_f64): Likewise.
27822 (vcvtas_u32_f32): Likewise.
27823 (vcvtnd_u64_f64): Likewise.
27824 (vcvtns_u32_f32): Likewise.
27825 (vcvtpd_u64_f64): Likewise.
27826 (vcvtps_u32_f32): Likewise.
27828 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27830 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
27831 CSEL of zero_extended registers.
27833 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27835 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27836 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
27838 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27840 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
27841 false when argument string is not found in the attributes table
27844 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
27847 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
27848 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
27849 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
27850 precision estimate.
27852 2016-01-15 Richard Biener <rguenther@suse.de>
27854 PR tree-optimization/66856
27855 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
27856 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
27857 (vect_create_new_slp_node): Increment stmt reference count.
27858 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
27859 an SLP tree before swapping operands.
27860 (vect_build_slp_tree): Likewise.
27861 (destroy_bb_vec_info): Free stmt info after SLP instances.
27862 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
27863 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
27864 (STMT_VINFO_NUM_SLP_USES): New macro.
27866 2016-01-15 Richard Biener <rguenther@suse.de>
27869 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
27870 (add_linkage_name): ... here.
27871 (gen_typedef_die): Use add_linkage_name_raw instead of
27872 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
27875 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
27877 * gimplify.c (oacc_default_clause): Decode reference and pointer
27878 types for both kernels and parallel regions.
27880 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
27882 PR middle-end/69246
27883 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
27885 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27887 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
27888 (convert_scalars_to_vector): Likewise.
27890 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
27892 * doc/extend.texi (Type Traits): Fix grammar.
27894 2016-01-15 Martin Jambor <mjambor@suse.cz>
27896 * tree-inline.c (remap_decl): Use existing dclarations if
27897 remapping a type and prevent_decl_creation_for_types.
27898 (replace_locals_stmt): Do an initial remapping of non-VLA typed
27899 decls first. Do real remapping with
27900 prevent_decl_creation_for_types set.
27901 * tree-inline.h (copy_body_data): New field
27902 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
27905 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
27907 * config/s390/s390.opt (mmvcle): More verbose help text.
27909 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
27911 * config/s390/s390.opt: Add period to -mzvector option text.
27913 2016-01-15 Richard Biener <rguenther@suse.de>
27915 PR tree-optimization/68961
27916 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
27917 of invariants in stores again.
27919 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
27921 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
27923 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27925 * config/i386/i386.c (ix86_expand_branch): Don't split
27926 DI mode xor instruction to SI mode.
27928 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
27931 * ipa-icf.c (sem_function::merge): Virtual functions may become
27932 reachable even if they address is not taken and there are no
27935 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
27937 * lto-streamer-out.c (subtract_estimated_size): New function.
27938 (get_symbol_initial_value): Use it.
27940 2016-01-15 Christian Bruel <christian.bruel@st.com>
27943 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
27944 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
27945 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
27946 use add_builtin_function_ext_scope instead of add_builtin_function.
27947 (neon_set_p, neon_crypto_set_p): Remove.
27948 (arm_init_builtins): Always call arm_init_neon_builtins and
27949 arm_init_crypto_builtins.
27950 (arm_expand_builtin): Check that builtins are allowed for the arch.
27951 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
27952 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
27953 arm_init_neon_builtins call.
27955 2016-01-15 Richard Biener <rguenther@suse.de>
27957 PR tree-optimization/69117
27958 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
27959 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
27960 of the leader conservatively.
27961 (free_scc_vn): Restore original SSA name infos.
27963 2016-01-14 Jeff Law <law@redhat.com>
27965 PR tree-optimization/69270
27966 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
27967 single bit of precision, verify it's also unsigned.
27968 (record_edge_info): Use constant_boolean_node rather than fold_convert
27969 to convert boolean_true/boolean_false to the right type.
27971 2016-01-14 Richard Henderson <rth@redhat.com>
27974 * loop-doloop.c (record_reg_sets): New.
27975 (doloop_optimize): Reject the transform if the sequence
27976 clobbers registers live at the end of the loop block.
27977 (doloop_optimize_loops): Enable df_live if needed.
27979 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27981 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
27982 * config/rs6000/rs6000.c: Likewise.
27983 * config/rs6000/rs6000.h: Likewise.
27984 * config/rs6000/rs6000.md: Likewise.
27985 * doc/extend.texi: Likewsie.
27987 2016-01-14 Jeff Law <law@redhat.com>
27989 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
27992 2016-01-14 Richard Henderson <rth@redhat.com>
27996 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
27997 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
27998 instead of builtin_decl_declared_p to test for declaration.
28000 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
28002 * doc/loop.texi (Loop Analysis and Representation): Document
28003 loop_depth function.
28005 2016-01-14 Tom de Vries <tom@codesourcery.com>
28007 PR tree-optimization/68773
28008 * omp-low.c (expand_omp_target): Don't set force_output.
28009 * varpool.c (varpool_node::get_create): Same.
28010 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
28011 offload_funcs with force_output.
28013 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28016 * lra-eliminations.c (move_plus_up): Don't change anything if either
28017 the outer or inner subreg mode is not MODE_INT.
28018 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
28019 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
28021 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
28023 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
28024 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
28025 reduc_uplus_@var{m}): Remove.
28026 * expr.c (expand_expr_real_2): Remove expansion path for
28027 reduc_[us](min|max|plus) optabs.
28028 * optabs-tree.c (scalar_reduc_to_vector): Remove.
28029 * optabs-tree.h (scalar_reduc_to_vector): Remove.
28030 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
28031 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
28032 * tree-vect-loop.c (vectorizable_reduction): Remove test for
28033 reduc_[us](min|max|plus) optabs.
28035 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
28037 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
28038 (reduc_plus_scal_v2sf): New.
28039 (reduc_smax_v2sf): Rename to...
28040 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
28041 (reduc_smin_v2sf): Rename to...
28042 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
28044 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
28046 * alias.c (compare_base_symbol_refs): New function.
28047 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
28050 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28052 PR middle-end/68146
28053 PR tree-optimization/69155
28054 * tree-complex.c: Include cfganal.h.
28055 (phis_to_revisit): New variable.
28056 (extract_component): Add phiarg_p argument. Assert that returned
28057 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
28058 (update_phi_components): Partly rewrite to use loop over real/imag
28059 components instead of code duplication. If extract_component returns
28060 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
28061 create_tmp_reg into the PHI node instead, and mention the phi triplet
28062 in phis_to_revisit.
28063 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
28064 in phis_to_revisit at the end.
28066 2016-01-14 Richard Biener <rguenther@suse.de>
28068 PR tree-optimization/68060
28069 * tree-vect-loop.c (vect_is_simple_reduction): Check the
28070 outer loop reduction is only used in the inner loop before
28071 detecting a double reduction.
28073 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28076 * combine.c (expand_field_assignment): Punt if compute_mode is
28077 unsupported scalar mode.
28079 2016-01-14 Richard Biener <rguenther@suse.de>
28081 PR tree-optimization/66856
28082 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
28083 SLP node only if it built successfully.
28084 (vect_analyze_slp_instance): Adjust.
28086 2016-01-14 Jeff Law <law@redhat.com>
28088 PR tree-optimization/69270
28089 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
28090 (record_edge_info): Use it. Convert boolean_{true,false}_node
28091 to the type of op0.
28093 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
28096 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
28097 use block_ultimate_origin
28098 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
28100 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28102 * doc/invoke.texi (Submodel Options): Rename section to
28103 "Machine-Dependent Options" to better reflect its content.
28104 Rewrite introductory text to remove archaic CPU names.
28107 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28109 * doc/invoke.texi (Code Gen Options): Move section up in file,
28110 before target-specific options. Update menu and option summary
28111 to reflect the new section ordering.
28113 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28115 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
28116 (C++ Dialect Options): Add cross-reference to -std option.
28117 * doc/standards.texi (C++ Language): Document C++14 support.
28119 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
28121 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
28122 for pack/unpack functions for __ibm128.
28123 (PACK_IF): Likewise.
28124 (UNPACK_IF): Likewise.
28126 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28127 support for __ibm128 pack/unpack functions.
28128 (rs6000_invalid_builtin): Likewise.
28129 (rs6000_init_builtins): Likewise.
28130 (rs6000_opt_masks): Likewise.
28132 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
28133 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
28135 (RS6000_BTM_COMMON): Likewise.
28137 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
28138 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
28139 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
28140 128-bit floating point. Add support for the double values to be
28141 in Altivec registers for TF/IF packing and unpacking, but restrict
28142 TD packing sub-fields to be FPR registers. Don't allow overlapped
28143 register support for packing. Allow pack inputs to be memory
28144 locations. Don't build generator functions for unpack<mode>_dm
28145 and unpack<mode>_nodm.
28146 (unpack<mode>_dm): Likewise.
28147 (unpack<mode>_nodm): Likewise.
28148 (pack<mode>): Likewise.
28150 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
28151 built-in functions to pack/unpack explicit __ibm128 values.
28152 (__builtin_unpack_ibm128): Likewise.
28154 * doc/extend.texi (PowerPC Built-in Functions): Document
28155 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
28157 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
28160 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
28161 Add new arg loc and pass it down as context.
28162 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
28163 to the location to use for the warning.
28164 (check_function_arguments): New arg loc. All callers changed. Pass
28165 it to check_function_nonnull.
28166 * c-common.h (check_function_arguments): Adjust declaration.
28168 2016-01-13 Jakub Jelinek <jakub@redhat.com>
28170 PR tree-optimization/69156
28171 * gimple.c (validate_type): Removed.
28172 (gimple_builtin_call_types_compatible_p): Use
28173 useless_type_conversion_p instead of validate_type.
28174 * value-prof.c (gimple_stringop_fixed_value): Fold
28175 icall_size to correct type.
28177 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28179 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
28182 2016-01-13 Richard Henderson <rth@redhat.com>
28185 * target.def (builtin_tm_load, builtin_tm_store): Remove.
28186 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
28187 (ix86_builtin_tm_store): Remove.
28188 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28189 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28190 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28191 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28192 * doc/tm.texi: Rebuild.
28194 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
28195 (BUILT_IN_TM_MEMCPY_RTWN): New.
28196 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
28197 fallback from vector to integer helpers.
28198 (build_tm_load): Handle vector types directly, instead of
28200 (build_tm_store): Likewise.
28201 (expand_assign_tm): Prepare for register types not handled by
28202 the above. Copy them to memory and use memcpy.
28203 * tree.c (tm_define_builtin): New.
28204 (find_tm_vector_type): New.
28205 (build_tm_vector_builtins): New.
28206 (build_common_builtin_nodes): Call it.
28208 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
28210 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
28211 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
28213 2016-01-13 Tom de Vries <tom@codesourcery.com>
28215 PR tree-optimization/69169
28216 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
28217 handled_struct_type param.
28218 (create_variable_info_for, intra_create_variable_infos): Call
28219 create_variable_info_for_1 with extra arg.
28221 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
28223 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
28224 and "armv8.1-a+crc" entries.
28226 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
28229 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
28230 Change first operand predicate from register_or_constm1_operand
28231 to register_operand.
28232 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
28233 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
28234 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
28235 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
28236 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
28237 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
28238 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
28239 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
28240 comparison with constm1_rtx from vec_prefetch_gen part.
28242 2016-01-13 Richard Biener <rguenther@suse.de>
28244 PR tree-optimization/69013
28245 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
28246 Exchange assert for a test.
28248 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28251 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
28253 2016-01-13 Richard Biener <rguenther@suse.de>
28255 PR tree-optimization/69242
28256 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
28257 assert with a check.
28259 2016-01-13 Richard Biener <rguenther@suse.de>
28261 PR tree-optimization/69186
28262 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28263 Properly guard vect_update_misalignment_for_peel call.
28265 2016-01-12 Jeff Law <law@redhat.com>
28267 PR tree-optimization/pr67755
28268 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
28269 "need_profile_correction".
28270 (thread_block_1): Initialize new field to false by default. If we
28271 have multiple thread paths through a common joiner to different
28272 final targets, then set new field to true.
28273 (compute_path_counts): Only do count adjustment when it's really
28276 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28278 * doc/invoke.texi (Spec Files): Move section down in file, past
28279 all command-line option descriptions.
28281 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28283 PR middle-end/54809
28284 * doc/gty.texi: Remove documentation of mark_hook.
28285 * gengtype.c (struct write_types_data): Remove code to support
28286 mark_hook attribute.
28287 (walk_type): Likewise.
28288 (write_func_for_structure): Likewise.
28290 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28292 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
28293 Directory Options, and -specs= to Overall Options.
28294 (Overall Options): Adjust similarly. Reorder to group related
28295 options together. Make -specs= cross-reference the spec file details.
28296 (Directory Options): Adjust similarly.
28298 2016-01-12 Jeff Law <law@redhat.com>
28300 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
28302 2016-01-12 Olivier Hainque <hainque@adacore.com>
28304 * gcc.c (spec_undefvar_allowed): New global.
28305 (process_command): Set to true when running for --version or --help,
28307 (getenv_spec_function): When the variable is not defined, use the
28308 variable name as the variable value if we're allowed not to issue
28311 2016-01-12 Bin Cheng <bin.cheng@arm.com>
28313 PR tree-optimization/68911
28314 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
28315 information computed for expression "init + nit * step".
28317 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28319 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
28320 about name of GCC executable. Remove deleted node from menu.
28321 (Directory Options) <-B>: Remove cross-reference to deleted node.
28322 (Target Options): Delete section.
28324 2016-01-12 Christian Bruel <christian.bruel@st.com>
28327 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
28328 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
28330 2016-01-12 Jakub Jelinek <jakub@redhat.com>
28333 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
28334 aligned_mem is properly set for AVX512-VL floating point masked
28338 * ifcvt.c (cond_exec_process_if_block): When removing the last
28339 insn from then_bb, remove also any possible barriers that follow it.
28341 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
28345 * config/i386/iamcu.h (SIZE_TYPE): New macro.
28346 (PTRDIFF_TYPE): Likewise.
28347 (WCHAR_TYPE): Likewise.
28348 (WCHAR_TYPE_SIZE): Likewise.
28349 (STDINT_LONG32): Likewise.
28351 2016-01-12 Richard Biener <rguenther@suse.de>
28353 PR tree-optimization/69053
28354 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
28355 convert initial value for cond reductions.
28357 2016-01-12 Richard Biener <rguenther@suse.de>
28359 PR tree-optimization/69007
28360 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
28361 widen_sum after dot_prod and sad.
28363 2016-01-12 Richard Biener <rguenther@suse.de>
28365 PR tree-optimization/69168
28366 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
28367 pattern stmt SLP type.
28368 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
28369 end up unused so cope with that case.
28371 2016-01-12 Richard Biener <rguenther@suse.de>
28373 PR tree-optimization/69157
28374 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
28375 stmts def type only during analyze phase.
28376 (vectorizable_call): Likewise.
28377 (vectorizable_simd_clone_call): Likewise.
28378 (vectorizable_conversion): Likewise.
28379 (vectorizable_assignment): Likewise.
28380 (vectorizable_shift): Likewise.
28381 (vectorizable_operation): Likewise.
28382 (vectorizable_store): Likewise.
28383 (vectorizable_load): Likewise.
28385 2016-01-12 Richard Biener <rguenther@suse.de>
28387 PR tree-optimization/69174
28388 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
28390 (vectorizable_load): Properly compute the number of loads needed
28391 for permuted strided SLP loads and do not spuriously assign
28392 to SLP_TREE_VEC_STMTS.
28394 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
28396 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
28397 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
28398 (MD_EXEC_PREFIX): Remove.
28399 (MD_STARTFILE_PREFIX) Removee.
28400 (FILE_NAME_ABSOLUTE_P): Remove.
28401 (CPP_SPEC): Do not read macros from sys/version.h.
28402 (LINK_COMMAND_SPEC): Remove.
28403 (LOCAL_INCLUDE_DIR): Remove.
28404 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
28405 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
28406 (POST_LINK_SPEC): Define to invoke stubify after linker
28407 (LIBSTDCXX): Remove define
28408 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
28409 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
28410 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
28411 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
28412 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
28413 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
28414 (i386_djgpp_asm_named_section): Add propotype of new procedure
28416 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
28417 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
28418 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
28419 in config/i386/djgpp.h).
28420 (STANDARD_STARTFILE_PREFIX_2): Define identical to
28421 STANDARD_STARTFILE_PREFIX_1.
28422 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
28423 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
28424 installation errors.
28425 (MAX_OFILE_ALIGNMENT): Define to 128.
28426 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
28428 * config/i386/djgpp.c: New file. Add implementation of
28429 i386_djgpp_asm_named_section.
28431 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
28433 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
28434 Add rule for building djgpp.o.
28436 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28438 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
28439 (rtx_is_swappable_p): Reductions are swappable.
28440 (insn_is_swappable_p): V2DF reductions are swappable.
28442 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
28444 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
28445 reloads for other unsupported memory operands.
28447 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28448 Jim Wilson <jim.wilson@linaro.org>
28451 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
28452 copy_to_mode_reg instead of force_reg.
28454 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28457 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
28458 TARGET_80387 is true.
28460 2016-01-11 Jakub Jelinek <jakub@redhat.com>
28463 * lra-eliminations.c (move_plus_up): Only move plus up
28464 if subreg of the constant can be simplified into constant
28465 and use the simplified subreg of the constant instead of
28466 the original constant.
28468 * fold-const.c (fold_convertible_p): Don't return true
28469 for conversion of VECTOR_TYPE to same sized integral type.
28470 (fold_convert_loc): Fix up formatting. Fold conversion of
28471 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
28472 instead of NOP_EXPR.
28474 PR tree-optimization/69214
28475 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
28476 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28479 PR tree-optimization/69207
28480 * tree-vect-slp.c (vect_get_constant_vectors): For
28481 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
28482 fold_convertible_p to vector_type's element type, and always
28483 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
28485 2016-01-11 Richard Biener <rguenther@suse.de>
28487 PR tree-optimization/69173
28488 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
28489 fixup the cycle if all stmts are in a pattern.
28491 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
28493 PR middle-end/68999
28494 * alias.c (base_alias_check): Move check for addresses with
28495 alignment ANDs before the call for compare_base_decls.
28496 (memrefs_conflict_p): Return -1 for different decls
28497 that went through alignment adjustments.
28499 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28501 PR rtl-optimization/68796
28502 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
28503 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
28504 and QImode comparisons against zero with CC_NZmode.
28505 * config/aarch64/iterators.md (short_mask): New mode_attr.
28507 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28509 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
28510 (<avx512>_store<mode>_mask): Likewise.
28512 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
28513 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28515 PR rtl-optimization/68841
28516 * ifcvt.c (struct noce_if_info): Add orig_x field.
28517 (bbs_ok_for_cmove_arith): Add to_rename parameter.
28518 Don't record conflicts on to_rename if it's present.
28519 Allow memory destinations in sets.
28520 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
28521 blocks, passing orig_x to the checks.
28522 (noce_process_if_block): Set if_info->orig_x appropriately.
28524 2016-01-11 Tom de Vries <tom@codesourcery.com>
28526 PR tree-optimization/69069
28527 * tree-parloops.c (create_parallel_loop): Add missing phi args.
28529 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
28531 PR rtl-optimization/68920
28532 * config/i386/i386.c (ix86_option_override_internal): Restrict number
28533 of conditional moves for RTL if-conversion to 1 for
28534 TARGET_ONE_IF_CONV_INSN.
28535 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
28536 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
28537 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
28538 parameter to restirct number of conditional moves for
28540 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
28541 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
28544 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
28547 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
28548 onepart vars. Fix typo in comment. Fix reversed condition in
28550 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
28553 * var-tracking.c (dump_onepart_variable_differences): New.
28554 (dataflow_set_different): If a detailed dump is requested,
28555 delay early returns and dump differences between onepart
28556 variables present before and after, and added variables.
28558 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28561 * expr.c (expand_expr_real_1): For boolean vector constants
28562 with a scalar mode use const_scalar_mask_from_tree.
28563 (const_scalar_mask_from_tree): New.
28564 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
28565 assigned to a mask type to handle constants.
28567 2016-01-11 Martin Jambor <mjambor@suse.cz>
28570 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
28571 useless parameters if we cannot change function signature.
28573 2016-01-11 Martin Jambor <mjambor@suse.cz>
28576 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
28579 2016-01-11 Tom de Vries <tom@codesourcery.com>
28581 PR tree-optimization/69109
28582 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
28585 2016-01-11 Tom de Vries <tom@codesourcery.com>
28587 PR tree-optimization/69108
28588 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
28589 res is not used in a phi.
28591 2016-01-11 Yury Gribov <y.gribov@samsung.com>
28594 * common.opt (frandom-seed): Fix parameter name.
28595 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
28597 2016-01-11 Tom de Vries <tom@codesourcery.com>
28599 PR tree-optimization/69058
28600 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
28603 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
28605 * config/arc/arc.opt (mdiv-rem): Add period to the end.
28606 (mcode-density): Likewise.
28608 2016-01-10 Tom de Vries <tom@codesourcery.com>
28610 PR tree-optimization/69062
28611 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
28612 (parallelize_loops): Don't paralelize loop that has phi with address
28615 2016-01-10 Tom de Vries <tom@codesourcery.com>
28617 PR tree-optimization/69039
28618 * tree-parloops.c (try_create_reduction_list): Only allow single exit
28621 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
28623 PR middle-end/68743
28624 * match.pd: Require target has function_c99_misc before doing
28625 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
28627 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
28629 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
28631 * configure: Regenerate.
28633 2016-01-09 Jakub Jelinek <jakub@redhat.com>
28635 PR middle-end/50865
28636 PR tree-optimization/69097
28637 * fold-const.h (expr_not_equal_to): New prototype.
28638 * fold-const.c: Include stringpool.h and tree-ssanames.h.
28639 (expr_not_equal_to): New function.
28640 * match.pd (X % -Y is the same as X % Y): Don't optimize
28641 unless X is known not to be equal to minimum or Y is known
28642 not to be equal to -1.
28643 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
28644 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
28645 (simplify_stmt_using_ranges): Adjust caller.
28646 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
28647 substitute_and_fold.
28649 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
28651 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
28654 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28656 PR tree-optimization/69167
28657 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
28658 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
28660 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
28662 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28663 Richard Biener <rguenther@suse.de>
28665 PR tree-optimization/68707
28666 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
28667 instances that can be handled via vect_load_lanes.
28669 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
28671 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
28672 if we can't determine address equivalence.
28673 * alias.c (compare_base_decl): Update for changed return value of
28674 symtab_node::equal_address_to.
28676 2016-01-08 Jason Merrill <jason@redhat.com>
28680 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
28681 * expr.c (store_field): Not here.
28682 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
28683 call with TREE_ADDRESSABLE type.
28684 * tree-cfg.c (verify_gimple_call): Adjust.
28686 2016-01-08 Olivier Hainque <hainque@adacore.com>
28688 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
28691 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28693 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
28694 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
28695 (reduc_smin_v2sf): Rename to...
28696 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
28697 (reduc_splus_v2sf): Rename to...
28698 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
28700 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28702 PR tree-optimization/69162
28703 * gimplify.c (gimplify_va_arg_expr): Encode original type of
28704 valist argument in another argument.
28705 (gimplify_modify_expr): Adjust for the above change. Cleanup.
28706 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
28707 to determine the va_list type, build a MEM_REF instead of
28708 build_fold_indirect_ref.
28710 PR tree-optimization/69172
28711 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
28714 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
28716 PR tree-optimization/67781
28717 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
28718 and cmpnop in two steps: first the ones not accessed in original
28719 gimple expression in a endian independent way and then the ones not
28720 accessed in the final result in an endian-specific way.
28722 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28724 PR tree-optimization/69083
28725 * tree-vect-slp.c (vect_get_constant_vectors): For
28726 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
28727 element type. If op is fold_convertible_p to vector_type's element
28728 type, use NOP_EXPR instead of VCE.
28730 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
28732 PR rtl-optimization/67778
28733 PR rtl-optimization/68634
28734 PR rtl-optimization/68909
28735 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
28736 block from the stack until done with it. Remove a superfluous
28737 bitmap set. Remove a superfluous bitmap test.
28739 2016-01-07 Martin Sebor <msebor@redhat.com>
28742 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
28743 constraint on the type of arguments.
28745 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
28747 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
28748 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
28749 unaligned_access on the gcc_options set.
28750 * config/arm/arm.c (arm_option_override_internal): Use
28751 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
28753 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28756 * config/i386/i386.c (ix86_frame_pointer_required): Enable
28757 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
28759 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28762 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28765 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28766 depending on frame_pointer_needed before remaining integer and SSE
28767 registers are saved.
28769 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
28772 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
28774 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
28777 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
28778 Use the "xBm" constraint.
28779 (float<sseintvecmodelower><mode>2<mask_name><round_name):
28781 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
28782 (sse_cvtsi2ssq<round_name>): Likewise.
28783 (sse_cvtss2si<round_name>): Likewise.
28784 (sse_cvtss2siq<round_name>): Likewise.
28785 (sse2_cvtsi2sdq<round_name>): Likewise.
28786 (sse2_cvtsd2si<round_name>): Likewise.
28787 (sse2_cvtsd2siq<round_name>): Likewise.
28788 * config/i386/subst.md (round_nimm_scalar_predicate): New
28791 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
28793 PR middle-end/67639
28794 * varasm.c (make_decl_rtl): Mark invalid register vars as
28797 PR rtl-optimization/66206
28798 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
28799 All callers changed.
28801 2016-01-07 Jakub Jelinek <jakub@redhat.com>
28803 PR tree-optimization/69141
28804 * tree-ssa-pre.c: Include langhooks.h.
28805 (eliminate_dom_walker::before_dom_children): Use
28806 lang_hooks.decl_printable_name instead of
28807 cgraph_node::get ()->name ().
28809 PR middle-end/68960
28810 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
28811 it and DECL_ALIGN too.
28813 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
28815 * config/mips/mips-ftypes.def: Sort to lexicographical order.
28817 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28820 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28821 depending on frame_pointer_needed before remaining integer and SSE
28822 registers are saved.
28824 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28826 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
28827 mode iterator with VSX_M2.
28828 (*p9_vecstore_<mode>): Likewise.
28829 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
28830 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
28831 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
28832 (define_split for VSX_LE128 stores): Likewise.
28833 (define_peephole2 for TImode LE swaps): Likewise.
28834 (define_split for VSX_LE128 post-reload stores): Likewise.
28836 2016-01-06 Marek Polacek <polacek@redhat.com>
28839 * convert.c (convert_to_integer_1): Adjust call to
28840 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
28841 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
28842 EXPR instead of ARG.
28843 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
28845 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28848 * doc/extend.texi (RL78 Variable Attributes): New section.
28850 2016-01-05 Marek Polacek <polacek@redhat.com>
28853 * builtins.c (get_memmodel): Use expansion point location rather than
28854 the input location. Call warning_at rather than warning.
28855 (expand_builtin_atomic_compare_exchange): Likewise.
28856 (expand_builtin_atomic_load): Likewise.
28857 (expand_builtin_atomic_store): Likewise.
28858 (expand_builtin_atomic_clear): Likewise.
28860 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
28863 * config/i386/i386.c (ix86_expand_vector_logical_operator):
28864 Replace nonimmediate_operand with vector_operand.
28865 * config/i386/predicates.md (vector_operand): New predicate.
28866 (general_vector_operand): Replace nonimmediate_operand with
28868 * config/i386/sse.md: Replace nonimmediate_operand with
28869 vector_operand and m constraint with Bm constraint on SSE
28870 patterns with 16-byte memory operand.
28871 * config/i386/subst.md (round_nimm_predicate): Replace
28872 nonimmediate_operand with vector_operand.
28873 (round_saeonly_nimm_predicate): Likewise.
28874 (round_saeonly_nimm_scalar_predicate): New.
28876 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
28879 * config/i386/constraints.md (Bm): New constraint.
28880 * config/i386/predicates.md (vector_memory_operand): New
28882 * config/i386/sse.md: Replace xm with xBm in plusminus and
28883 any_logic patterns.
28885 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28888 * doc/extend.texi (V850 Function Attributes): New section.
28889 (V850 Variable Attributes): New section.
28891 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28894 * doc/extend.texi (MicroBlaze Function Attributes): Document
28895 interrupt_handler and fast_interrupt attributes.
28897 2016-01-05 Sergei Trofimovich <siarheit@google.com>
28900 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
28901 for local symbolic operands.
28902 * config/ia64/predicates.md (local_symbolic_operand64): New
28905 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28907 PR rtl-optimization/68651
28908 * combine.c (combine_simplify_rtx): Canonicalize x + x into
28911 2016-01-05 Nathan Sidwell <nathan@acm.org>
28913 * alias.c (compare_base_decls): Use symtab_node::get.
28915 2016-01-05 Nick Clifton <nickc@redhat.com>
28918 * ira-costs.c (copy_cost): Initialise the t_icode field of the
28919 secondary_reload_info structure.
28922 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
28923 decls if weak support is available.
28925 2016-01-04 Martin Sebor <msebor@redhat.com>
28927 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
28929 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28931 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
28932 OPTION_MASK_P9_DFORM.
28934 * config/rs6000/constraints.md (wo constraint): New constraint for
28937 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
28939 (rs6000_init_hard_regno_mode_ok): Likewise.
28941 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
28944 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
28945 expanders not to have constraints. Add support for ISA 3.0 xxperm
28946 instruction. Add support for fusing xxlor with xxperm.
28947 (altivec_vperm_<mode>_internal): Likewise.
28948 (altivec_vperm_v8hiv16qi): Likewise.
28949 (altivec_vperm_<mode>v16q): Likewise.
28950 (altivec_vperm_<mode>_uns): Likewise.
28951 (vperm_v8hiv4si): Likewise.
28952 (vperm_v16qiv8hi): Likewise.
28954 * doc/md.texi (RS/6000 constraints): Document wo constraint.
28956 2016-01-04 Jakub Jelinek <jakub@redhat.com>
28958 Update copyright years.
28960 * gcc.c (process_command): Update copyright notice dates.
28961 * gcov-dump.c (print_version): Ditto.
28962 * gcov.c (print_version): Ditto.
28963 * gcov-tool.c (print_version): Ditto.
28964 * gengtype.c (create_file): Ditto.
28965 * doc/cpp.texi: Bump @copying's copyright year.
28966 * doc/cppinternals.texi: Ditto.
28967 * doc/gcc.texi: Ditto.
28968 * doc/gccint.texi: Ditto.
28969 * doc/gcov.texi: Ditto.
28970 * doc/install.texi: Ditto.
28971 * doc/invoke.texi: Ditto.
28973 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28975 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
28976 modes larger than TImode as TImode if NEON is not enabled.
28978 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28981 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
28982 mode for %f0-%f31 only if TARGET_FPU.
28984 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28987 * config/sparc/sparc.c (scan_record_type): Take into account subfields
28988 to compute the PACKED_P predicate.
28989 (function_arg_record_value): Minor tweaks.
28991 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
28993 * doc/install.texi (--with-multilib-list): Describe the meaning of the
28994 option for arm*-*-* targets.
28996 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
28998 * doc/extend.texi (Common Function Attributes): Move docs for
28999 MSP430-specific attributes to....
29000 (MSP430 Function Attributes): ...here. Delete the redundant
29001 entries and copy-edit the remaining text.
29002 (MSP430 Variable Attributes): Use uniform format for index
29003 entries and add a cross-reference to the corresponding function
29006 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
29008 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
29010 (x86 Options): Likewise.
29012 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
29016 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
29017 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
29018 to corresponding attribute.
29020 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
29022 * doc/extend.texi (Common Function Attributes) <noplt>: Move
29023 to correct alphabetization of table. Copy-edit and correct
29025 <stack_protect>: Likewise.
29026 <target_clones>: Likewise.
29028 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
29029 Correct punctuation.
29030 (Code Gen Options) <-fno-plt>: Copy-edit.
29032 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29035 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
29036 SI values. Explicitly convert SI to DI and vice-versa.
29038 2016-01-01 Jakub Jelinek <jakub@redhat.com>
29040 PR tree-optimization/69070
29041 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
29042 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
29045 * ubsan.c (ubsan_instrument_float_cast): Call
29046 initialize_sanitizer_builtins.
29049 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
29051 Copyright (C) 2016 Free Software Foundation, Inc.
29053 Copying and distribution of this file, with or without modification,
29054 are permitted in any medium without royalty provided the copyright
29055 notice and this notice are preserved.