1 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3 * config/aarch64/aarch64.md (add<mode>3): Remove
4 redundant code. Don't split frame based additions.
6 2016-11-02 Richard Biener <rguenther@suse.de>
8 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
9 redundant val and dest members.
10 (store_immediate_info::store_immediate_info): Adjust.
11 (merged_store_group::merged_store_group): Adjust.
12 (merged_store_group::apply_stores): Likewise.
13 (struct imm_store_chain_info): Add base_addr field.
14 (imm_store_chain_info::imm_store_chain_info): New constructor.
15 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
16 (imm_store_chain_info::output_merged_store): Likewise. Use
17 addr_base which is already the address.
18 (imm_store_chain_info::output_merged_stores): Likewise.
19 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
20 imm_store_chain_info instead of base. Fix alias check.
21 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
22 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
23 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
24 use the address of the base and adjust for other changes.
26 2016-11-02 Martin Liska <mliska@suse.cz>
28 * fold-const-call.c (host_size_t_cst_p): Test whether
29 t is convertible to size_t.
31 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33 PR tree-optimization/78170
34 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
35 introduced by native_encode_expr on little-endian as well.
37 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39 PR tree-optimization/78162
40 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
43 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
47 (aarch64_next_callee_save): Likewise.
48 (aarch64_pushwb_single_reg): Likewise.
49 (aarch64_gen_storewb_pair): Likewise.
50 (aarch64_push_regs): Likewise.
51 (aarch64_gen_loadwb_pair): Likewise.
52 (aarch64_pop_regs): Likewise.
53 (aarch64_gen_store_pair): Likewise.
54 (aarch64_gen_load_pair): Likewise.
55 (aarch64_save_callee_saves): Likewise.
56 (aarch64_restore_callee_saves): Likewise.
58 2016-11-02 Richard Biener <rguenther@suse.de>
60 PR tree-optimization/78035
61 PR tree-optimization/77964
62 * gimple-pretty-print.c (pp_points_to_solution): Print
63 vars_contains_interposable.
64 * tree-ssa-alias.c: Include varasm.h.
65 (ptrs_compare_unequal): Check vars_contains_interposable and
66 decl_binds_to_current_def_p.
67 (dump_points_to_solution): Dump vars_contains_interposable.
68 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
70 * tree-ssa-structalias.c: Include varasm.h.
71 (set_uids_in_ptset): Record whether vars contains a
72 not decl_binds_to_current_def_p variable in vars_contains_interposable.
73 (ipa_escaped_pt): Update initializer.
75 2016-11-02 Richard Biener <rguenther@suse.de>
77 PR tree-optimization/78047
78 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
79 fake field at offset zero conservatively regarding to may_have_pointers.
81 2016-11-02 Richard Biener <rguenther@suse.de>
83 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
84 infer_value_range on stmt ops and update value-ranges.
85 Dump visited stmts and blocks.
86 (evrp_dom_walker::push_value_range): Dump changes.
87 (evrp_dom_walker::pop_value_range): Likewise.
88 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
90 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
92 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
94 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
96 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
98 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
100 * cfgrtl.h (delete_insn_chain): Adjust prototype.
102 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
104 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
106 (transcode_memory_rtx): Likewise.
107 (move_to_acc): Likewise.
108 (move_from_acc): Likewise.
109 (move_acc_to_reg): Likewise.
110 (move_to_x): Likewise.
111 (move_to_hl): Likewise.
112 (move_to_de): Likewise.
113 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
114 (rs6000_emit_savres_rtx): Likewise.
115 (rs6000_emit_prologue): Likewise.
116 * reorg.c (update_reg_unused_notes): Likewise.
117 * rtl.h (remove_note): Adjust prototype.
118 * rtlanal.c (remove_note): Make argument type rtx_insn *.
120 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
122 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
123 variables so some can be rtx_insn *.
124 (alpha_emit_xfloating_libcall): Likewise.
125 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
126 (mips_legitimize_tls_address): Likewise.
127 * optabs.c (expand_binop): Likewise.
128 * reload1.c (gen_reload): Likewise.
130 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
132 * reorg.c (relax_delay_slots): Split up the trial variable.
134 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
136 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
137 of variables rtx_insn *.
138 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
139 (legitimize_tls_address): Likewise.
140 * config/bfin/bfin.c (hwloop_optimize): Likewise.
141 (bfin_gen_bundles): Likewise.
142 * config/c6x/c6x.c (reorg_split_calls): Likewise.
143 (c6x_reorg): Likewise.
144 * config/frv/frv.c (frv_reorder_packet): Likewise.
145 * config/i386/i386.c (ix86_split_idivmod): Likewise.
146 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
147 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
148 * config/mn10300/mn10300.c: Likewise.
149 * config/rl78/rl78.c: Likewise.
150 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
151 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
152 (sh_expand_cmpnstr): Likewise.
153 (sh_expand_strlen): Likewise.
154 (sh_expand_setmem): Likewise.
155 * config/sh/sh.md: Likewise.
156 * emit-rtl.c (emit_pattern_before): Likewise.
157 * except.c: Likewise.
161 2016-11-01 Jason Merrill <jason@redhat.com>
163 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
164 a COND_EXPR with constant condition.
166 2016-11-01 Jakub Jelinek <jakub@redhat.com>
168 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
169 and its initialization.
171 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
173 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
176 2016-11-01 Jakub Jelinek <jakub@redhat.com>
178 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
179 argument, don't call add_linkage_name if it is true.
180 (gen_variable_die): For C++ inline static data members, consider the
181 initial call when old_die is NULL to be declaration and call
182 add_name_and_src_coords_attributes in that case with true as
183 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
184 (gen_member_die): For C++ inline static data members, emit a
185 definition DIE right away in DW_TAG_compile_unit context.
187 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
190 * config/pa/pa.md: Add new shift/add patterns to handle
191 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
193 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
195 * config/xtensa/xtensa-protos.h
196 (xtensa_use_return_instruction_p): New prototype.
197 * config/xtensa/xtensa.c (xtensa_current_frame_size,
198 xtensa_callee_save_size): Remove.
199 (struct machine_function): Add new fields: current_frame_size,
200 callee_save_size, frame_laid_out and epilogue_done.
201 (compute_frame_size, xtensa_expand_prologue,
202 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
203 cfun->machine->callee_save_size and xtensa_current_frame_size
204 with cfun->machine->current_frame_size.
205 (compute_frame_size): Update cfun->machine->frame_laid_out and
206 don't update frame layout after reload completion.
207 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
208 instead of zeroing xtensa_current_frame_size.
209 (xtensa_use_return_instruction_p): New function.
210 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
212 (INITIAL_ELIMINATION_OFFSET): Use return value of
213 compute_frame_size instead of xtensa_current_frame_size value.
214 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
215 function xtensa_use_return_instruction_p instead of inline code.
217 2016-11-01 Jakub Jelinek <jakub@redhat.com>
219 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
220 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
221 * dwarf2out.c (rnglist_idx): New variable.
222 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
223 (DEBUG_RNGLISTS_SECTION): Define.
224 (ranges_base_label): New variable.
225 (size_of_die) <case dw_val_class_range_list>: If using
226 DW_FORM_rnglistx, count size of uleb128 of range list index.
227 (value_format) <case dw_val_class_range_list>: For
228 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
229 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
230 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
231 (add_ranges_num): Remove useless prototype. Don't multiply
232 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
233 for new fields added to dw_ranges struct.
234 (add_ranges): Add maybe_new_sec argument and pass it
235 through to add_ranges_num.
236 (note_rnglist_head): New function.
237 (add_ranges_by_labels): Pass true as maybe_new_sec to
238 add_ranges_num, call note_rnglist_head on the head of the list.
239 (output_ranges): Add function comment. Switch to
240 .debug_ranges section here and emit .Ldebug_ranges0 label.
241 (index_rnglists, output_rnglists): New functions.
242 (gen_subprogram_die): Formatting fixes.
243 (add_high_low_attributes): Don't divide offsets
244 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
245 first list element or when pointing into the middle of
246 a list. Pass true as second argument to add_ranges on the
247 first block fragment after cold/hot section switch.
248 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
249 section instead of .debug_ranges. Initialize
250 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
251 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
252 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
253 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
254 Call output_rnglists for -gdwarf-5.
255 (dwarf2out_c_finalize): Clear rnglist_idx.
257 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
259 * combine.c (simplify_compare_const): Add gcc_fallthrough.
261 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
262 Tamar Christina <tamar.christina@arm.com>
264 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
265 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
266 (vmaxnmq_f32): Likewise.
267 (vminnm_f32): Likewise.
268 (vminnmq_f32): Likewise.
269 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
271 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
274 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
276 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
277 binary floating point types supported by the hardware except for
279 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
280 vector instruction for optimizing extracting a SImode from a
281 V4SImode vector and converting it to floating point.
282 (vsx_xvcvuxwdp_df): Likewise.
283 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
284 registers to be any VSX register. Move stores to the end of the
286 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
287 to optimize extracting a SImode from a V4SImode vector and
288 converting it to a binary floating point type supported by the
289 hardware. Use the vector converts instead of extracting the
290 element, sign extending it, and then converting it to double.
291 Other floating point types than double first convert to double,
292 then the double is converted to that type.
293 (vsx_extract_si_<uns>float_<mode>): Likewise.
295 2016-10-31 Andrew Pinski <apinski@cavium.com>
297 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
298 Rewrite handling of part num to handle the case where
299 multiple implementers share the same part num.
301 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
302 Jakub Jelinek <jakub@redhat.com>
304 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
305 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
307 2016-10-31 Jakub Jelinek <jakub@redhat.com>
309 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
310 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
311 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
312 (is_cu_die, is_unit_die): Likewise.
313 (should_move_die_to_comdat, break_out_comdat_types): Adjust
314 comments for DWARF5 DW_UT_type units.
315 (output_compilation_unit_header): Add UT argument, output
316 start of DWARF5 .debug_info section header.
317 (output_comp_unit): Add dwo_id argument. Adjust
318 output_compilation_unit_header caller, for DW_UT_split_compile
319 emit dwo_id field, otherwise padding1. Emit padding2 field.
320 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
321 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
322 (output_skeleton_debug_sections): Add dwo_id argument, for
323 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
324 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
325 DW_UT_type or DW_UT_split_type units rather than .debug_types.
326 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
327 DW_TAG_compile_unit for skeleton unit die. Don't add
328 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
329 address to output_comp_unit and output_skeleton_debug_sections.
331 * dwarf2out.c (debug_line_str_section): New variable.
332 (debug_line_str_hash): Likewise.
333 (DEBUG_LINE_STR_SECTION): Define.
334 (set_indirect_string): Handle DW_FORM_line_strp like
336 (find_string_form): Fix up formatting.
337 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
339 (output_die): Handle DW_FORM_line_strp.
340 (DWARF5_USE_DEBUG_LINE_STR): Define.
341 (output_line_string): New function.
342 (output_file_names): Add -gdwarf-5 support.
343 (output_line_info): Likewise.
344 (init_sections_and_labels): Initialize debug_line_str_section.
345 (output_indirect_string): Change 2nd argument from void *
346 to enum dwarf_form form, compare with form rather than
348 (output_indirect_strings): Pass DW_FORM_strp to
349 output_indirect_string traversion.
350 (dwarf2out_finish): Output .debug_line_str strings.
351 (dwarf2out_c_finalize): Clear debug_line_str_section and
354 2016-10-31 Tom Tromey <tom@tromey.com>
357 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
358 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
359 DW_OP_GNU_push_tls_address case.
360 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
362 2016-10-31 Jakub Jelinek <jakub@redhat.com>
364 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
365 for frame_offset_rel bit.
366 (struct array_descr_info): Add rank field.
367 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
368 and placeholder_seen fields.
369 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
370 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
371 DW_OP_pick 1 into DW_OP_over.
372 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
373 gen_variant_part): Clear placeholder_{arg,seen}.
374 (loc_list_from_tree_1): Drop const from context argument.
375 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
376 (loc_list_for_address_of_addr_expr_of_indirect_ref,
377 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
379 (add_scalar_info): Drop const from context argument. Handle
380 context->placeholder_arg.
381 (add_bound_info): Drop const from context argument.
382 (gen_descr_array_type_die): Drop const from ctx variable.
383 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
384 attribute and use a single DW_TAG_generic_subrange instead of
385 7 DW_TAG_subrange_type for assumed rank arrays.
387 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
388 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
389 from bool to 1-bit uchar bitfield. Add num_assigned and
390 offset_emitted bitfields.
391 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
392 for dw_val_class_lineptr and dw_val_class_macptr. Handle
393 dw_val_class_loclistsptr.
394 (new_addr_loc_descr): Fix up formatting.
395 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
396 (add_AT_low_high_pc): Fix up formatting.
397 (add_AT_loclistsptr): New function.
398 (AT_lbl): Allow dw_val_class_loclistsptr.
399 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
400 Handle dw_val_class_loclistsptr.
401 (loc_list_idx): New variable.
402 (output_loclists_offsets, assign_location_list_indexes): New
404 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
405 add size_of_uleb128 of the index. Drop never used
406 dwarf_split_debug_info AT_index handling. Handle
407 dw_val_class_loclistsptr.
408 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
409 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
410 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
411 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
412 DW_FORM_loclistx indexes.
413 (output_attr_index_or_value): Fix up formatting. Don't handle
414 dw_val_class_loc_list here.
415 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
416 For dw_val_class_loc_list call output_loc_list_offset rather than
417 output_attr_index_or_value.
418 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
419 or .debug_loclists.dwo section name for debug_loc_section.
420 (resolve_addr_in_expr): Formatting fix.
421 (index_location_lists): Likewise.
422 (dwarf2out_finish): If there are any location lists, for
423 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
424 index_location_lists only if have_location_lists. Call
425 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
426 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
427 -gsplit-dwarf also emit offset table.
429 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
430 (size_of_die, value_format, output_die): Use
431 DW_FORM_data16 for 128-bit dw_val_class_const_double or
432 dw_val_class_wide_int.
434 * dwarf2out.c (dwarf_op): Renamed to ...
435 (dwarf_OP): ... this.
436 (convert_descriptor_to_mode, scompare_loc_descriptor,
437 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
438 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
440 (dwarf_AT, dwarf_TAG): New functions.
441 (check_die): Disallow DW_AT_call_all_calls next to
442 DW_AT_GNU_all_call_sites.
443 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
444 and attributes instead of the corresponding GNU tag and attributes.
445 (gen_subprogram_die): Likewise. Emit call site information even
446 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
447 DW_AT_defaulted in comment.
448 (resolve_addr): Handle DW_AT_call_origin attribute on
449 DW_TAG_call_site DIE like DW_AT_abstract_origin on
450 DW_TAG_GNU_call_site DIE.
452 * dwarf2out.c (dwarf_op): New function.
453 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
454 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
455 (output_loc_operands, output_loc_operands_raw): Likewise.
456 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
457 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
458 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
459 if dwarf_version < 5.
460 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
462 (scompare_loc_descriptor, ucompare_loc_descriptor,
463 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
464 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
465 optimize_location_into_implicit_ptr): Likewise. Only punt for
466 !dwarf_strict if dwarf_version < 5.
467 (string_cst_pool_decl): Adjust comment.
468 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
470 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
471 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
472 (struct dw_val_node): Add val_file_implicit field.
473 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
474 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
475 output_die): Handle dw_val_class_const_implicit,
476 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
477 (abbrev_die_table): Change into va_gc vec.
478 (abbrev_die_table_allocated, abbrev_die_table_in_use,
479 ABBREV_DIE_TABLE_INCREMENT): Remove.
480 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
481 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
483 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
484 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
486 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
488 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
490 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
492 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
493 unit. Call optimize_abbrev_table.
494 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
495 abbrev_die_table being a va_gc vec.
497 PR tree-optimization/77860
498 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
499 also integral complex and vector constants.
501 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
502 optimize_macinfo_range, save_macinfo_strings): Replace
503 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
504 (output_macinfo): Likewise. Emit .debug_macro* rather than
505 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
506 (init_sections_and_labels): Use .debug_macro* labels rather than
507 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
508 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
509 or DW_AT_GNU_macros for -gdwarf-5.
511 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
513 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
515 2016-09-11 Le-Chun Wu <lcwu@google.com>
516 Mark Wielaard <mjw@redhat.com>
518 * common.opt (Wshadow=global): New option. Default for -Wshadow.
519 (Wshadow=local): New option.
520 (Wshadow-local): Hidden alias for -Wshadow=local.
521 (Wshadow=compatible-local): New option.
522 (Wshadow-compatible-local): Hidden alias for
523 -Wshadow=compatible-local.
524 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
525 Wshadow=compatible-local.
527 2016-10-31 Bin Cheng <bin.cheng@arm.com>
529 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
530 Check slp defs for COND_EXPR by swapping/inverting operands if the
531 new parameter SWAP indicates so.
532 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
533 is isomorphic to the first stmt via swapping/inverting. Store swap
534 information in the new parameter SWAP.
535 (vect_build_slp_tree): New local array SWAP and pass it to function
536 vect_build_slp_tree_1. Cleanup result handling code for function
537 call to vect_get_and_check_slp_defs. Skip operand swapping if the
538 order of operands has been fixed as indicated by SWAP[i].
540 2016-10-31 Bin Cheng <bin.cheng@arm.com>
542 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
543 unnecessary data dependence check after visited store stmt.
545 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
547 PR tree-optimization/71915
548 PR tree-optimization/71490
549 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
551 (find_basis_for_base_expr): Require stride types to match when
553 (alloc_cand_and_find_basis): Record the stride type.
554 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
555 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
556 the expressions having those types.
557 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
558 (create_mul_ssa_cand): Likewise.
559 (create_mul_imm_cand): Likewise.
560 (create_add_ssa_cand): Likewise.
561 (create_add_imm_cand): Likewise.
562 (legal_cast_p_1): Change interface to accept types rather than the
563 expressions having those types.
564 (legal_cast_p): Pass types to legal_cast_p_1.
565 (slsr_process_cast): Pass stride type to
566 alloc_cand_and_find_basis.
567 (slsr_process_copy): Likewise.
568 (dump_candidate): Display stride type when a cast exists.
569 (create_add_on_incoming_edge): Introduce a cast when necessary for
571 (analyze_increments): Change the code checking for invalid casts
572 to rely on the stride type, and update the documentation and
573 example. Change the code checking for pointer multiplies to rely
575 (insert_initializers): Introduce a cast when necessary for the
576 stride type. Use the stride type for the type of the initializer.
578 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
580 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
582 2016-10-29 Jakub Jelinek <jakub@redhat.com>
584 PR rtl-optimization/77919
585 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
586 into memory if both modes are complex and their inner modes have the
587 same precision. If the two modes are different complex modes, convert
588 each part separately and generate a new CONCAT.
590 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
592 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
594 2016-10-29 Jakub Jelinek <jakub@redhat.com>
597 * gimple-ssa-store-merging.c
598 (imm_store_chain_info::output_merged_store): Use build_aligned_type
599 instead of SET_TYPE_ALIGN on shared integral type.
601 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
603 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
604 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
607 2016-10-28 Jeff Law <law@redhat.com>
609 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
610 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
612 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
614 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
616 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
618 * target.def (min_arithmetic_precision): New hook.
619 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
620 * doc/tm.texi: Regenerate.
621 * internal-fn.c (expand_arith_overflow): Adjust handling of target
622 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
623 * targhooks.c (default_min_arithmetic_precision): New function.
624 * targhooks.h (default_min_arithmetic_precision): Declare.
625 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
626 (sparc_min_arithmetic_precision): New function.
628 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
631 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
632 Swap commutative operands in new RTL if needed. Handle zero_ext
634 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
637 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
638 Kugan Vivekanandarajah <kuganv@linaro.org>
639 Jim Wilson <jim.wilson@linaro.org>
641 PR tree-optimization/43721
642 * target.def: New hook expand_divmod_libfunc.
643 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
644 * doc/tm.texi: Regenerate.
645 * internal-fn.def: Add new entry for DIVMOD ifn.
646 * internal-fn.c (expand_DIVMOD): New.
647 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
649 (widen_mul_stats): Add new field divmod_calls_inserted.
650 (target_supports_divmod_p): New.
651 (divmod_candidate_p): Likewise.
652 (convert_to_divmod): Likewise.
653 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
654 renumber_gimple_stmt_uids at beginning of function. Call
655 convert_to_divmod and record stats for divmod.
656 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
657 TARGET_EXPAND_DIVMOD_LIBFUNC.
658 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
661 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
662 Segher Boessenkool <segher@kernel.crashing.org>
664 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
665 swapping the arms of the branch.
666 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
667 sequence for the generic signed-signed-signed case.
669 2016-10-28 Jeff Law <law@redhat.com>
671 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
673 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
675 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
677 PR rtl-optimization/78029
678 * function.c (prologue_contains, epilogue_contains): New functions.
679 (record_prologue_seq, record_epilogue_seq): New functions.
680 * function.h (prologue_contains, epilogue_contains,
681 record_prologue_seq, record_epilogue_seq): New declarations.
682 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
683 mixing prologue and epilogue insns.
684 (init_deps): Initialize the new fields in struct deps_desc.
685 * sched-int.h (struct deps_desc): New fields last_prologue,
686 last_epilogue, and last_logue_was_epilogue.
687 * shrink-wrap.c (emit_common_heads_for_components): Record all
688 emitted prologue and epilogue insns.
689 (emit_common_tails_for_components): Ditto.
690 (insert_prologue_epilogue_for_components): Ditto.
692 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
695 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
696 * common.opt (fstore-merging): New Optimization option.
697 * opts.c (default_options_table): Add entry for
698 OPT_ftree_store_merging.
699 * fold-const.h (can_native_encode_type_p): Declare prototype.
700 * fold-const.c (can_native_encode_type_p): Define.
701 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
702 (PARAM_MAX_STORES_TO_MERGE): Likewise.
703 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
704 * passes.def: Insert pass_tree_store_merging.
705 * tree-pass.h (make_pass_store_merging): Declare extern
707 * gimple-ssa-store-merging.c: New file.
708 * doc/invoke.texi (Optimization Options): Document
710 (--param documentation): Document store-merging-allow-unaligned
711 and max-stores-to-merge.
713 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
716 * gimplify.c (gimplify_init_constructor): Move emit of constructor
717 assignment to earlier in the if/else logic.
719 2016-10-28 Richard Biener <rguenther@suse.de>
723 * fold-const.c (make_bit_field_ref): Only adjust alias set
724 when the original alias set was zero.
726 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
728 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
729 (s390_adjust_loops): New function.
730 (s390_reorg): Invoke s390_adjust_loops.
731 * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
732 ("osc_break"): New insn definition.
734 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
736 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
737 * config.gcc: Support alternate archXX cpu levels with
738 --with-arch= and --with-tune=.
739 * config/s390/linux.h: Translate new archXX cpu levels to the
740 original names when calling GAS.
741 * config/s390/tpf.h: Likewise.
742 * doc/invoke.texi: Document the alternate cpu level names.
744 2016-10-28 Jakub Jelinek <jakub@redhat.com>
746 PR rtl-optimization/77919
747 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
748 MEM if mode1 is not a complex mode.
750 PR rtl-optimization/78132
751 * ree.c (combine_reaching_defs): Give up if copy_needed and
752 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
754 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
756 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
758 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
760 * config/rs6000/constraints.md (wH constraint): Add new
761 constraints for allowing 32-bit integers (and eventually 8/16-bit
762 integers) into the vector registers.
763 (wI constraint): Likewise.
764 (wJ constraint): Likewise.
765 (wK constraint): Likewise.
766 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
767 -mvsx-small-integer as a default option for ISA 2.07
769 (POWERPC_MASKS): Likewise.
770 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
771 switch to turn off small integer support in vector registers.
772 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
773 test for -mupper-regs-di, since it is already done with the
774 reg_add[mode].scalar_in_vsx_p. Add support for the switch
776 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
778 (rs6000_setup_reg_addr_masks): Likewise.
779 (rs6000_init_hard_regno_mode_ok): Likewise.
780 (rs6000_option_override_internal): Add consistency checks for
782 (rs6000_secondary_reload_simple_move): SImode is a simple move if
784 (rs6000_secondary_reload): Use std::swap.
785 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
786 VSX_REGS for small integers in vector registers, since there is no
787 D-FORM address mode for such types.
788 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
789 (rs6000_opt_masks): Add -mvsx-small-integer.
790 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
792 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
793 extracts can be done on ISA 2.07.
794 (vsx_extract_<mode>): Add support for small integers in vsx
796 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
797 longer support V4SImode in this pattern.
798 (vsx_extract_si): New insn to support extraction of SImode in ISA
799 2.07 using either xxextractuw or vspltw.
800 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
801 longer support V4SImode in this pattern.
802 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
803 wJ, and wK constraints.
804 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
805 storing SDmode with VSX instructions.
806 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
807 GPR load and before the FPR and VSX loads. Remove ??, ! from the
808 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
809 small integers in vector registers.
810 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
811 load and before the FPR and VSX loads. Remove ??, ! from the
812 constraints. Add VEXTSW2D support for small integers in vector
814 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
815 integers in vector registers.
816 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
817 move instead of using an UNSPEC.
818 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
819 integers in vector registers.
820 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
821 move instead of using an UNSPEC.
822 (movsi_internal1): Add support for -mvsx-small-integer. Align
823 columns so that it is more readable.
824 (SImode splitter for ISA 3.0 constants): Add splitter for
825 -128..127 constants that can easily be constructed on ISA 3.0.
826 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
829 2016-10-27 Jakub Jelinek <jakub@redhat.com>
832 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
835 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
837 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
838 PIC_OFFSET_TABLE_REGNUM twice.
840 2016-10-27 Bin Cheng <bin.cheng@arm.com>
842 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
843 support for constant operand for OP.
845 2016-10-27 Jakub Jelinek <jakub@redhat.com>
847 * dwarf2out.c (gen_member_die): Only reparent_child instead of
848 splice_child_die if child doesn't have DW_AT_specification attribute.
850 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
852 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
853 (TARGET_HAVE_LDREXBH): Likewise.
854 (TARGET_HAVE_LDACQ): Likewise.
856 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
858 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
859 logic to to decide whether to copy over old value to register for new
861 * config/arm/sync.md: Add comments explaning why mode and code
862 attribute are not defined in iterators.md
863 (thumb1_atomic_op_str): New code attribute.
864 (thumb1_atomic_newop_str): Likewise.
865 (thumb1_atomic_fetch_op_str): Likewise.
866 (thumb1_atomic_fetch_newop_str): Likewise.
867 (thumb1_atomic_fetch_oldop_str): Likewise.
868 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
869 mirror the more restrictive constraints of the Thumb-1 insns after
870 split compared to Thumb-2 counterpart insns.
871 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
872 in sync with non atomic version.
873 (atomic_nand<mode>): Likewise.
874 (atomic_fetch_<sync_optab><mode>): Likewise.
875 (atomic_fetch_nand<mode>): Likewise.
876 (atomic_<sync_optab>_fetch<mode>): Likewise.
877 (atomic_nand_fetch<mode>): Likewise.
878 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
879 in sync with atomic version.
880 (thumb1_subsi3_insn): Likewise.
881 (thumb1_andsi3_insn): Likewise.
882 (thumb1_iorsi3_insn): Likewise.
883 (thumb1_xorsi3_insn): Likewise.
885 2016-10-27 Nick Clifton <nickc@redhat.com>
887 * plugin.c (register_plugin_info): Produce an error message if the
888 plugin is not found in the hash table.
890 2016-10-27 Bin Cheng <bin.cheng@arm.com>
892 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
895 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
898 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
899 define builtin functions from the bdesc_spe_predicates or
900 bdesc_spe_evsel arrays if the builtin mask is not compatible with
901 the current compiler configuration.
902 (paired_init_builtins): Modify loop to not define define builtin
903 functions from the bdesc_paried_preds array if the builtin mask is
904 not compatible with the current compiler configuration.
905 (altivec_init_builtins): Modify loops to not define the
906 __builtin_altivec_stxvl function nor the builtin functions from
907 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
908 builtin mask is not compatible with the current compiler
911 2016-10-26 Jeff Law <law@redhat.com>
913 * config/sh/sh.c (output_branch): Add missing fallthru comments.
914 (gen_shl_and): Likewise.
915 * config/sh/sh.md (movsicc): Add missing fallthru comments.
917 * config/mips/mips.c (mips16_constant_cost): Add missing
919 (mips16_build_call_stub): Increase buffer size. Adjust
922 2016-10-26 David Malcolm <dmalcolm@redhat.com>
924 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
925 INSN_UIDs for all insns in compact mode.
926 (rtx_writer::print_rtx): Likewise.
927 * print-rtl.h (rtx_writer::flag_compact): Update comment.
928 * rtl-tests.c (selftest::test_dumping_insns): Update expected
929 output to include INSN_UID.
930 (selftest::test_uncond_jump): Likewise.
932 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
934 * haifa-sched.c (call_used_regs_num): Rename to...
935 (call_saved_regs_num): ...this.
936 (fixed_regs_num): New variable.
937 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
939 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
941 2016-10-26 David Malcolm <dmalcolm@redhat.com>
943 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
945 * print-rtl.c (outfile): Delete global.
946 (sawclose): Likewise.
948 (in_call_function_usage): Likewise.
949 (flag_compact): Likewise.
950 (flag_simple): Likewise.
951 (rtx_writer::rtx_writer): New ctor.
952 (print_rtx_operand_code_0): Convert to...
953 (rtx_writer::print_rtx_operand_code_0): ...this.
954 (print_rtx_operand_code_e): Convert to...
955 (rtx_writer::print_rtx_operand_code_e): ...this.
956 (print_rtx_operand_codes_E_and_V): Convert to...
957 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
958 (print_rtx_operand_code_i): Convert to...
959 (rtx_writer::print_rtx_operand_code_i): ...this.
960 (print_rtx_operand_code_r): Convert to...
961 (rtx_writer::print_rtx_operand_code_r): ...this.
962 (print_rtx_operand_code_u): Convert to...
963 (rtx_writer::print_rtx_operand_code_u): ...this.
964 (print_rtx_operand): Convert to...
965 (rtx_writer::print_rtx_operand): ...this.
966 (print_rtx): Convert to...
967 (rtx_writer::print_rtx): ...this.
968 (print_inline_rtx): Rewrite in terms of class rtx_writer.
969 (debug_rtx): Likewise.
970 (print_rtl): Convert to...
971 (rtx_writer::print_rtl): ...this.
972 (print_rtl): Reimplement in terms of class rtx_writer.
973 (print_rtl_single): Rewrite in terms of class rtx_writer.
974 (print_rtl_single_with_indent): Convert to..
975 (rtx_writer::print_rtl_single_with_indent): ...this.
976 (print_simple_rtl): Rewrite in terms of class rtx_writer.
977 * print-rtl.h (flag_compact): Delete decl.
978 (class rtx_writer): New class.
979 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
982 2016-10-26 Jeff Law <law@redhat.com>
984 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
987 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
988 (check_if_valid_sleep_operand): Add missing fallthru comment.
989 (arc_register_move_cost): Increase buffer size.
990 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
992 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
994 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
995 comment. Add gcc_unreachable for path that should never happen.
997 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
1000 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1001 Martin Liska <mliska@suse.cz>
1004 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1005 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1006 on outer context if any.
1008 2016-10-26 Jakub Jelinek <jakub@redhat.com>
1010 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
1011 by increment rather than double it.
1012 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
1013 emit a space before args[4].
1014 (END): Don't emit a space before with_arg.
1016 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1018 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
1019 Baseline only alternatives to (i) hold store atomic success value in a
1020 return register rather than a scratch register, (ii) use a low register
1021 for it and to (iii) ensure the cbranchsi insn generated by the split
1022 respect the constraints of Thumb-1 cbranchsi4_insn and
1024 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
1025 constraints must match those in atomic_compare_and_swap.
1026 (cbranchsi4_scratch): Likewise.
1028 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1030 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
1031 variable. Add the new parameter to the insn generator. Set that
1032 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
1033 return value from the negation of that parameter for Thumb-1, keeping
1034 the logic unchanged otherwise except for using bdst as the destination
1035 register of the compare_and_swap insn.
1036 (arm_split_compare_and_swap): Add explanation about how is the value
1037 returned to the function comment. Rename scratch variable to
1038 neg_bval. Adapt initialization of variables holding operands to the
1039 new operand numbers. Use return register to hold result of store
1040 exclusive for Thumb-1, scratch register otherwise. Construct the
1041 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
1042 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
1043 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
1044 for strongly ordered compare_and_swap.
1045 * config/arm/predicates.md (cc_register_operand): New predicate.
1046 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
1047 match_operand with the new predicate to accept either the CC flag or a
1048 destination register for the boolean return value, restricting it to
1049 CC flag only via constraint. Adapt operand numbers accordingly.
1051 2016-10-26 Jeff Law <law@redhat.com>
1053 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
1055 * config/frv/frv.c (comparison_string): Do not fall through after
1058 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
1060 (expand_one_builtin): Add missing break.
1062 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
1063 (m32c_legitimate_address_p): Likewise.
1065 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
1067 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
1069 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
1072 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
1075 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
1077 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
1079 (rl78_asm_ctor_dtor): Increase buffer size.
1081 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
1083 (xstormy16_asm_output_constructor): Likewise.
1085 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
1088 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
1089 comment to silence warning.
1091 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
1092 (spu_legitimate_address_p): Fix logic error and add missing fallthru
1095 2016-10-26 Michael Matz <matz@suse.de>
1097 PR tree-optimization/78060
1098 PR tree-optimization/78061
1099 PR tree-optimization/78088
1100 * tree-ssa-loop-split.c (easy_exit_values): New function.
1101 (tree_ssa_split_loops): Use it.
1102 (compute_new_first_bound): Change order of operations,
1103 fix invalid use of types.
1105 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
1107 gen-pass-instances.awk is sensitive to the order in which
1108 passes are added; passes that appear later have to be added first.
1112 * config/avr/avr-passes.def: Swap order of directives for
1113 gen-pass-instances.awk.
1115 2016-10-25 Jeff Law <law@redhat.com>
1117 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
1118 (vax_notice_update_cc): Likewise.
1120 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1122 * config.gcc (sparc*-*-solaris2*): Adjust.
1123 (sparc64-*-linux*): Likewise.
1124 * config/sparc/default-64.h: Rename to...
1125 * config/sparc/default64.h: ...this.
1126 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
1128 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
1129 * config/sparc/sparc.h: Minor tweaks.
1130 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
1131 TARGET_ARCH32 throughout. Minor various tweaks throughout.
1133 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1135 * input.c (fcache::file_patch): Add comment about lifetime.
1136 (selftest::cpp_reader_ptr): New class.
1137 (selftest::lexer_test): Convert m_parser from cpp_reader *
1138 to a cpp_reader_ptr, and move m_tempfile to after it.
1139 (selftest::lexer_test::lexer_test): Update for above reordering.
1140 (lexer_test::~lexer_test): Move cleanup of m_parser to
1141 cpp_reader_ptr's dtor.
1143 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1145 * toplev.c (toplev::main): Remove call to
1146 location_adhoc_data_fini.
1148 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
1150 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1151 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
1153 2016-10-25 David Malcolm <dmalcolm@redhat.com>
1155 * ggc-tests.c (forcibly_ggc_collect): Rename to...
1156 (selftest::forcibly_ggc_collect): ...this, and remove "static".
1157 (test_basic_struct): Update for above renaming.
1158 (test_length): Likewise.
1159 (test_union): Likewise.
1160 (test_finalization): Likewise.
1161 (test_deletable_global): Likewise.
1162 (test_inheritance): Likewise.
1163 (test_chain_next): Likewise.
1164 (test_user_struct): Likewise.
1165 (test_tree_marking): Likewise.
1166 * selftest-run-tests.c (selftest::run_tests): Call
1167 selftest::forcibly_ggc_collect at the end of the selftests.
1168 * selftest.h (selftest::forcibly_ggc_collect): New decl.
1170 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1173 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
1174 * optabs.c (expand_vec_cond_expr): For comparison codes
1175 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
1176 (expand_vec_cmp_expr): For comparison codes
1177 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
1178 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
1179 Add enum tree_code argument.
1180 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
1182 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
1183 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
1185 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
1186 NE_EXPR, attempt to use vcondeq_optab as fallback.
1187 * tree-vect-generic.c (expand_vector_comparison,
1188 expand_vector_divmod, expand_vector_condition): Adjust
1189 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
1190 * tree-vect-stmts.c (vectorizable_condition,
1191 vectorizable_comparison): Likewise.
1192 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
1193 check_bool_pattern, search_type_for_mask_1): Likewise.
1194 * expr.c (do_store_flag): Likewise.
1195 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
1196 @code{vcondeq@var{m}@var{n}}): Document.
1197 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
1200 2016-10-25 Jeff Law <law@redhat.com>
1202 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
1204 (v850_output_aligned_bss): Add missing break.
1206 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
1208 2016-10-25 Martin Liska <mliska@suse.cz>
1211 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
1212 statements as they can also contain possibly a freeing call.
1214 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
1215 Martin Liska <mliska@suse.cz>
1218 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
1219 * ipa-icf.c (sem_function::get_hash): Add target optimization
1222 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
1225 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
1226 Remove partial overlap check for shift by 1.
1227 (ashldi3_neon): Likewise.
1229 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1231 * config/arm/constraints.md (Q constraint): Document its use for
1233 (Pf constraint): New constraint for relaxed, consume or relaxed memory
1235 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
1236 alternatives to allow any register when memory model matches Pf and
1237 thus lda is used, but only low registers otherwise. Use unpredicated
1238 output template for Thumb-1 targets.
1239 (atomic_store<mode>): Likewise for stl.
1240 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
1241 whose output template does not have predication.
1242 (arm_load_acquire_exclusive<mode>): Likewise.
1243 (arm_load_exclusivesi): Likewise.
1244 (arm_load_acquire_exclusivesi): Likewise.
1245 (arm_store_release_exclusive<mode>): Likewise.
1246 (arm_store_exclusive<mode>): Use unpredicated output template for
1249 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1251 * internal-fn.def (LAUNDER): New internal function.
1252 * internal-fn.c (expand_LAUNDER): New function.
1254 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1255 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1257 New avr target pass to work around performance loss by PR fix.
1261 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
1262 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
1263 * config/avr/predicates.md (extend_operator): New.
1264 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
1265 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
1266 (make_avr_pass_casesi): New prototypes.
1267 * config/avr/avr.c (print-rtl.h): Include it.
1268 (pass_data avr_pass_data_casesi): Data for new pass.
1269 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
1270 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
1271 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
1272 (avr_optimize_casesi): New functions.
1274 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
1275 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1279 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
1281 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1283 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
1284 DW_AT_rvalue_reference attributes.
1286 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1288 * doc/invoke.text (Wint-in-bool-context): Update documentation.
1289 * value-prof.c (stringop_block_profile): Fix a warning.
1291 2016-10-24 Martin Sebor <msebor@redhat.com>
1294 * builtins.c (string_length): New function.
1295 (c_strlen): Use string_length. Correctly handle wide strings.
1296 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
1298 (target_int_max): Call target_max_value.
1299 (format_result::knownrange): New data member.
1300 (fmtresult::fmtresult): Define default constructor.
1301 (format_integer): Use it and set format_result::knownrange.
1302 Handle global constants.
1303 (format_floating_max): Add third argument.
1304 (format_floating): Recompute maximum value for %a for each argument.
1305 (get_string_length): Use fmtresult default ctor.
1306 (format_string): Set format_result::knownrange.
1307 (format_directive): Check format_result::knownrange.
1308 (add_bytes): Same. Correct caret placement in diagnostics.
1309 (pass_sprintf_length::compute_format_length): Set
1310 format_result::knownrange.
1311 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
1313 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1315 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
1316 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
1318 2016-10-24 Ximin Luo <infinity0@pwned.gg>
1321 * dwarf2out.c (file_table_relative_p): Remove.
1322 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
1323 also for absolute paths.
1324 * doc/tm.texi: Update.
1325 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
1326 * target.def (force_at_comp_dir): Remove hook.
1327 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
1329 2016-10-24 Richard Biener <rguenther@suse.de>
1331 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
1332 backedges when identifying the single predecessor to take
1333 conditional info from. Use SCEV to get at ranges for loop IVs.
1334 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
1335 avoid false warning.
1337 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
1340 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
1341 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
1342 (avr_address_tiny_absdata_p): New static function.
1343 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
1344 it to determine validity of constant addresses.
1345 (avr_attribute_table) [absdata]: New variable attribute...
1346 (avr_handle_absdata_attribute): ...and handler.
1347 (avr_decl_absdata_p): New static function.
1348 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
1349 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
1350 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
1352 2016-10-24 Richard Biener <rguenther@suse.de>
1354 PR tree-optimization/78076
1355 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
1356 also on the loop tree root.
1358 2016-10-24 Jakub Jelinek <jakub@redhat.com>
1360 * config/i386/i386.c (ix86_fold_builtin): Handle
1361 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
1362 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1363 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
1364 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1366 2016-10-24 Martin Liska <mliska@suse.cz>
1369 * opts.c (finish_options): Skip conditionally.
1371 2016-10-23 Martin Sebor <msebor@redhat.com>
1374 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
1375 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
1377 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1379 * config/sparc/sparc.md (cpu_feature): Minor tweak.
1380 (enabled): Likewise.
1381 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1382 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1383 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1384 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1385 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1386 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1388 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
1390 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1391 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
1393 2016-10-21 Andrew Pinski <apinski@cavium.com>
1395 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
1397 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
1398 implementer_id to unsigned char.
1399 Change part_no to unsigned int.
1400 (AARCH64_BIG_LITTLE): New define.
1401 (INVALID_IMP): New define.
1402 (INVALID_CORE): New define.
1403 (cpu_data): Change the last element's implementer_id and part_no to
1405 (valid_bL_string_p): Rewrite to ..
1406 (valid_bL_core_p): this for integers instead of strings.
1407 (parse_field): New function.
1408 (contains_string_p): Rewrite to ...
1409 (contains_core_p): this for integers and only for the part_no.
1410 (host_detect_local_cpu): Rewrite handling of implementation and
1411 par num to be integers; simplifying the code.
1413 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1415 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
1416 value range for pointers in more cases.
1418 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1420 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
1421 Add extra argument to allow emitting the move immediate.
1422 Use add/sub with positive immediate.
1423 (aarch64_add_constant): Add inline function.
1424 (aarch64_add_sp): Likewise.
1425 (aarch64_sub_sp): Likewise.
1426 (aarch64_expand_prologue): Call aarch64_sub_sp.
1427 (aarch64_expand_epilogue): Call aarch64_add_sp.
1428 Decide when to leave out move.
1429 (aarch64_output_mi_thunk): Call aarch64_add_constant.
1431 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
1433 * config/aarch64/aarch64.c (aarch64_layout_frame):
1434 Align FP callee-saves.
1436 2016-10-21 Jakub Jelinek <jakub@redhat.com>
1438 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
1439 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
1441 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
1442 _rdseed64_step): Likewise.
1443 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
1446 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1447 and tree-ssanames.h.
1448 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1449 with INTEGER_CST argument.
1450 (ix86_gimple_fold_builtin): New function.
1451 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1453 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
1454 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
1455 (ranges_table_allocated, ranges_table_in_use,
1456 ranges_by_label_allocated, ranges_by_label_in_use,
1457 RANGES_TABLE_INCREMENT): Removed.
1458 (add_ranges_num): Use vec_safe_push into ranges_table.
1459 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
1460 (output_ranges): Adjust for ranges_table and ranges_by_label
1461 conversion from arrays to vec.
1462 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
1463 conversion from arrays to vec.
1464 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
1465 ranges_table_in_use, ranges_by_label_allocated and
1466 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
1468 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
1469 if needed. Re-add origin_die variable and its initialization.
1471 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
1472 even for -fstack-reuse=none, or for volatile vars etc.
1474 2016-10-21 David Malcolm <dmalcolm@redhat.com>
1476 * print-rtl-function.c (flag_compact): Move extern decl to...
1477 * print-rtl.h (flag_compact): ...here.
1478 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
1479 (ASSERT_RTL_DUMP_EQ): New macro.
1480 (selftest::test_dumping_regs): New function.
1481 (selftest::test_dumping_insns): New function.
1482 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
1484 (selftest::rtl_tests_c_tests): Call the new test functions.
1486 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1488 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1489 (outgoing_edges_match): Likewise.
1490 (try_crossjump_to_edge): Likewise.
1491 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1492 (rtl_tidy_fallthru_edge): Likewise.
1493 * rtl.h (tablejump_p): Adjust prototype.
1494 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
1496 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1498 * rtl.h (label_ref_label): New function.
1499 (set_label_ref_label): New function.
1500 (LABEL_REF_LABEL): Delete.
1501 * alias.c (rtx_equal_for_memref_p): Adjust.
1502 * cfgbuild.c (make_edges): Likewise.
1503 (purge_dead_tablejump_edges): Likewise.
1504 * cfgexpand.c (convert_debug_memory_address): Likewise.
1505 * cfgrtl.c (patch_jump_insn): Likewise.
1506 * combine.c (distribute_notes): Likewise.
1507 * cse.c (hash_rtx_cb): Likewise.
1508 (exp_equiv_p): Likewise.
1509 (fold_rtx): Likewise.
1510 (check_for_label_ref): Likewise.
1511 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1512 (cselib_hash_rtx): Likewise.
1513 * emit-rtl.c (mark_label_nuses): Likewise.
1514 * explow.c (convert_memory_address_addr_space_1): Likewise.
1515 * final.c (output_asm_label): Likewise.
1516 (output_addr_const): Likewise.
1517 * gcse.c (add_label_notes): Likewise.
1518 * genconfig.c (walk_insn_part): Likewise.
1519 * genrecog.c (validate_pattern): Likewise.
1520 * ifcvt.c (cond_exec_get_condition): Likewise.
1521 (noce_emit_store_flag): Likewise.
1522 (noce_get_alt_condition): Likewise.
1523 (noce_get_condition): Likewise.
1524 * jump.c (maybe_propagate_label_ref): Likewise.
1525 (mark_jump_label_1): Likewise.
1526 (redirect_exp_1): Likewise.
1527 (rtx_renumbered_equal_p): Likewise.
1528 * lra-constraints.c (operands_match_p): Likewise.
1529 * print-rtl.c (print_value): Likewise.
1530 * reload.c (find_reloads): Likewise.
1531 * reload1.c (set_label_offsets): Likewise.
1532 * reorg.c (get_branch_condition): Likewise.
1533 * rtl-tests.c (test_uncond_jump): Likewise.
1534 * rtl.c (rtx_equal_p_cb): Likewise.
1535 (rtx_equal_p): Likewise.
1536 * rtlanal.c (reg_mentioned_p): Likewise.
1537 (rtx_referenced_p): Likewise.
1538 (get_condition): Likewise.
1539 * varasm.c (const_hash_1): Likewise.
1540 (compare_constant): Likewise.
1541 (const_rtx_hash_1): Likewise.
1542 (output_constant_pool_1): Likewise.
1544 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1547 * reload.c (find_valid_class_1): Allow regclass if atleast one
1548 regno in regclass is ok. Compute and use rclass size based on
1549 actually available regnos for mode in rclass.
1551 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
1553 * config/sparc/sparc-modes.def (CCV): New.
1555 * config/sparc/predicates.md (v_comparison_operator): New.
1556 (icc_comparison_operator): Add support for CCV/CCXV.
1557 (xcc_comparison_operator): Likewise.
1558 * config/sparc/sparc.c (output_cbranch): Likewise.
1559 (sparc_print_operand): Likewise.
1560 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1561 (uaddvdi4): New expander.
1562 (addvdi4): Likewise.
1563 (uaddvdi4_sp32): New instruction.
1564 (addvdi4_sp32): Likewise.
1565 (uaddvsi4): New expander.
1566 (addvsi4): Likewise.
1567 (cmp_ccc_plus_sltu_set): New instruction.
1568 (cmp_ccv_plus): Likewise.
1569 (cmp_ccxv_plus): Likewise.
1570 (cmp_ccv_plus_set): Likewise.
1571 (cmp_ccxv_plus_set): Likewise.
1572 (cmp_ccv_plus_sltu_set): Likewise.
1573 (uaddvdi4): New expander.
1574 (subvdi4): Likewise.
1575 (usubdi4_sp32): New instruction.
1576 (subvdi4_sp32): Likewise.
1577 (usubvsi4): New expander.
1578 (subvsi4): Likewise.
1579 (cmpsi_minus_sltu_set): New instruction.
1580 (cmp_ccv_minus): Likewise.
1581 (cmp_ccxv_minus): Likewise.
1582 (cmp_ccv_minus_set): Likewise.
1583 (cmp_ccxv_minus_set): Likewise.
1584 (cmp_ccv_minus_sltu_set): Likewise.
1585 (unegvdi3): New expander.
1586 (negvdi3): Likewise.
1587 (unegdi3_sp32): New instruction.
1588 (negvdi3_sp32): Likewise.
1589 (unegvsi3): New expander.
1590 (negvsi3): Likewise.
1591 (cmp_ccc_neg_sltu_set): New instruction.
1592 (cmp_ccv_neg): Likewise.
1593 (cmp_ccxv_neg): Likewise.
1594 (cmp_ccv_neg_set): Likewise.
1595 (cmp_ccxv_neg_set): Likewise.
1596 (cmp_ccv_neg_sltu_set): Likewise.
1598 * tree-ssa-loop-split.c: Remove trailing spaces.
1599 * match.pd: Likewise.
1601 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1603 PR rtl-optimization/78038
1604 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1605 be deduced to set REG through the RTL structure.
1606 (make_defs_and_copies_lists): Return false on a failing get_defs call.
1608 2016-10-21 Richard Biener <rguenther@suse.de>
1610 PR tree-optimization/78051
1611 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
1612 and mark replaced if folding did something.
1614 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
1616 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
1617 and "protected" in visibility types.
1618 (rs6000_xcoff_declare_function_name): Fix formatting.
1619 (rs6000_xcoff_declare_object_name): Fix formatting.
1621 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
1623 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
1624 and IX86_BUILTIN_HUGE_VALQ here ...
1625 (ix86_expand_builtin): ... not here.
1627 2016-10-20 Jakub Jelinek <jakub@redhat.com>
1629 * doc/gty.texi (for_user): Use @item next to @findex.
1631 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
1634 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1635 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1636 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1637 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1638 __builtin_ia32_lzcnt_u16.
1639 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1640 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1641 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1642 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1643 (bmi_tzcnt_<mode>): New expander.
1644 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1645 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1646 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1647 (lzcnt_<mode>): New expander.
1648 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1649 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1650 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1651 (UINT64_FTYPE_UINT64): New.
1652 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1653 (__builtin_ia32_lzcnt_u16): New description.
1654 (__builtin_ia32_lzcnt_u32): Ditto.
1655 (__builtin_ia32_lzcnt_u64): Ditto.
1656 (__builtin_ctzs): Remove description.
1657 (__builtin_ia32_tzcnt_u16): New description.
1658 (__builtin_ia32_tzcnt_u32): Ditto.
1659 (__builtin_ia32_tzcnt_u64): Ditto.
1660 * config/i386/i386.c (ix86_expand_args_builtin): Handle
1661 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1663 2016-10-20 Martin Liska <mliska@suse.cz>
1666 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
1667 comparison with STMT_UID_NOT_IN_RANGE.
1668 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
1671 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
1673 * compare-elim.c (conforming_compare): Accept UNSPECs.
1674 (find_comparison_dom_walker::before_dom_children): Deal with
1675 instructions both using and killing the flags register.
1676 (equivalent_reg_at_start): New function extracted from...
1677 (try_eliminate_compare): ...here. Use it and add support for
1678 registers and UNSPECs as second operand of the compare.
1679 * config/visium/visium-modes.def (CCV): New.
1680 * config/visium/predicates.md (visium_v_comparison_operator): New.
1681 (visium_branch_operator): Deal with CCV mode.
1682 * config/visium/visium.c (visium_select_cc_mode): Likewise.
1683 (output_cbranch): Likewise.
1684 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1685 (uaddv<mode>4): New expander.
1686 (addv<mode>4): Likewise.
1687 (add<mode>3_insn_set_carry): New instruction.
1688 (add<mode>3_insn_set_overflow): Likewise.
1689 (addsi3_insn_set_overflow): Likewise.
1690 (usubv<mode>4): New expander.
1691 (subv<mode>4): Likewise.
1692 (sub<mode>3_insn_set_carry): New instruction.
1693 (sub<mode>3_insn_set_overflow): Likewise.
1694 (subsi3_insn_set_overflow): Likewise.
1695 (unegv<mode>3): New expander.
1696 (negv<mode>3): Likewise.
1697 (neg<mode>2_insn_set_overflow): New instruction.
1698 (addv_tst<mode>): Likewise.
1699 (subv_tst<mode>): Likewise.
1700 (negv_tst<mode>): Likewise.
1701 (cbranch<mode>4_addv_insn): New splitter and instruction.
1702 (cbranch<mode>4_subv_insn): Likewise.
1703 (cbranch<mode>4_negv_insn): Likewise.
1705 2016-10-20 Richard Biener <rguenther@suse.de>
1707 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
1708 Handle decls possibly not bound.
1709 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
1710 nothing_id for decls that might not be bound if we are interested
1712 (get_constraint_for_component_ref): Deal with that.
1714 2016-10-20 Michael Matz <matz@suse.de>
1717 * common.opt (-fsplit-loops): New flag.
1718 * passes.def (pass_loop_split): Add.
1719 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
1720 (enable_fdo_optimizations): Add loop splitting.
1721 * timevar.def (TV_LOOP_SPLIT): Add.
1722 * tree-pass.h (make_pass_loop_split): Declare.
1723 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
1724 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
1725 * tree-ssa-loop-split.c: New file.
1726 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
1727 * doc/invoke.texi (fsplit-loops): Document.
1728 * doc/passes.texi (Loop optimization): Add paragraph about loop
1731 2016-10-20 Richard Biener <rguenther@suse.de>
1733 * cgraphunit.c (analyze_functions): Set node->definition to
1734 false to signal symbol removal to debug_hooks->late_global_decl.
1735 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
1736 WPA signal symbol removal to the debuginfo machinery.
1737 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
1738 using early_finised to guard the we're called for symbol
1739 removal case look at the symtabs definition flag.
1740 (gen_variable_die): Remove redundant check.
1742 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1744 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
1746 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1748 PR tree-optimization/53979
1749 * match.pd ((a ^ b) | a -> a | b): New pattern.
1751 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
1753 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
1754 config/pa/pa64-hpux-lib.h.
1755 (PA_CRTBEGIN_HACK): Likewise.
1756 (DTOR_LIST_BEGIN): Likewise.
1758 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1760 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1761 register only if "in" and "out" are different registers.
1763 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
1765 * omp-low.c (pass_oacc_device_lower::gate): New method.
1766 (execute): Always call execute_oacc_device_lower.
1768 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1770 PR tree-optimization/77916
1771 PR tree-optimization/77937
1772 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
1774 (insert_initializers): Requirement of initializer for -1 should be
1775 based on pointer-typedness of the candidate basis.
1777 2016-10-19 Bin Cheng <bin.cheng@arm.com>
1779 PR tree-optimization/78005
1780 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
1781 upper (included) bound for niters of prolog loop.
1782 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
1783 Compute niters of scalar loop above which vectorized loop is
1784 preferred, as well as the upper (included) bound for the niters.
1785 (vect_do_peeling): Record niter bound for loops accordingly.
1787 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
1790 * tree-core.h (enum tree_index): Put the complex types after their
1792 * tree-streamer.c (verify_common_node_recorded): New function.
1793 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
1795 2016-10-19 Martin Liska <mliska@suse.cz>
1797 * cgraph.h (cgraph_edge::binds_to_current_def_p):
1798 Replace NULL with false as a return value.
1800 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
1802 PR tree-optimization/78024
1803 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
1804 don't clear BB_VISITED after processing.
1806 2016-10-19 Richard Biener <rguenther@suse.de>
1808 * domwalk.c (dom_walker::walk): Use RPO order.
1810 2016-10-19 Richard Biener <rguenther@suse.de>
1812 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
1814 (evrp_dom_walker::~evrp_dom_walker): Free it.
1815 (evrp_dom_walker::stmts_to_remove): Add.
1816 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
1817 whose output we fully propagate for removal. Propagate
1818 into BB destination PHI arguments.
1819 (execute_early_vrp): Remove queued stmts. Dump value ranges
1820 before stmt removal.
1822 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1824 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
1825 * passes.def: Add two instances of pass_walloca.
1826 * tree-pass.h (make_pass_walloca): New.
1827 * gimple-ssa-warn-alloca.c: New file.
1828 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
1829 -Wvla-larger-than= options.
1831 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
1833 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
1834 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
1836 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
1838 * config/rs6000/altivec.h (vec_xl_len): New macro.
1839 (vec_xst_len): New macro.
1840 (vec_cmpnez): New macro.
1841 (vec_cntlz_lsbb): New macro.
1842 (vec_cnttz_lsbb): New macro.
1843 (vec_xlx): New macro.
1844 (vec_xrx): New macro.
1845 (vec_all_nez): New C++ predicate template.
1846 (vec_any_eqz): New C++ predicate template.
1847 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
1848 conditional compilation.
1849 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
1850 conditional compilation.
1851 (vec_all_nez): New macro.
1852 (vec_any_eqz): New macro.
1853 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
1855 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
1857 * config/rs6000/vector.md (VI): Moved this mode iterator
1858 definition from altivec.md to vector.md.
1859 (UNSPEC_NEZ_P): New value.
1860 (vector_ne_<mode>_p): New expansion for implementation of
1861 vec_all_ne and vec_any_eq built-in functions.
1862 (vector_nez_<mode>_p): New expansion for implementation of
1863 vec_all_nez and vec_any_eqz built-in functions.
1864 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
1865 and vec_any_eq built-in function.
1866 (cr6_test_for_zero): New commentary to explain this expansion.
1867 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
1868 (cr6_test_for_lt): New commentary to explain this expansion.
1869 (cr6_test_for_lt_reverse): New commentary to explain this
1871 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1872 overloaded function prototypes for vec_all_ne, vec_all_nez,
1873 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
1874 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
1876 (altivec_resolve_overloaded_builtin): Modify the handling of
1877 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
1878 the compiler is configured to support TARGET_P9_VECTOR.
1879 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
1880 to explain the special processing that is given to predicate
1881 built-ins introduced using this macro.
1882 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
1883 the special processing given to predicate built-ins introduced
1885 (BU_VSX_P): Likewise.
1886 (BU_P8V_AV_P): Likewise.
1887 (BU_P9V_AV_P): Likewise.
1888 (BU_P9V_AV_X): New macro.
1889 (BU_P9V_64BIT_AV_X): New macro.
1890 (BU_P9V_VSX_3): New macro.
1891 (BU_P9V_OVERLOAD_P): New macro.
1892 (LXVL): New BU_P9V_64BIT_VSX_2.
1893 (VEXTUBLX): New BU_P9V_AV_2.
1894 (VEXTUBRX): Likewise.
1895 (VEXTUHLX): Likewise.
1896 (VEXTUHRX): Likewise.
1897 (VEXTUWLX): Likewise.
1898 (VEXTUWRX): Likewise.
1899 (STXVL): New BU_P9V_64BIT_AV_X.
1900 (VCLZLSBB): New BU_P9V_AV_1.
1901 (VCTZLSBB): Likewise.
1902 (CMPNEB): New BU_P9V_AV_2.
1907 (VCMPNEB_P): New BU_P9V_AV_P.
1908 (VCMPNEH_P): Likewise.
1909 (VCMPNEW_P): Likewise.
1910 (VCMPNED_P): Likewise.
1911 (VCMPNEFP_P): Likewise.
1912 (VCMPNEDP_P): Likewise.
1913 (CMPNEZB): New BU_P9V_AV_2.
1914 (CMPNEZH): Likewise.
1915 (CMPNEZW): Likewise.
1916 (VCMPNEZB_P): New BU_P9V_AV_P.
1917 (VCMPNEZH_P): Likewise.
1918 (VCMPNEZW_P): Likewise.
1919 (LXVL): New BU_P9V_OVERLOAD_2.
1920 (STXVL): New BU_P9V_OVERLOAD_3.
1921 (VEXTULX): New BU_P9V_OVERLOAD_2.
1922 (VEXTURX): Likewise.
1924 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
1925 (VCMPNE_P): Likewise.
1926 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
1927 (VCTZLSBB): Likewise.
1928 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
1929 comment to explain mode used for scratch register.
1930 (altivec_expand_stxvl_builtin): New function.
1931 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
1932 (altivec_init_builtins): Add initialized variable
1933 void_ftype_v16qi_pvoid_long and use this type to define the
1934 built-in function __builtin_altivec_stxvl.
1935 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
1936 (UNSPEC_STXVL): New value.
1937 (UNSPEC_VCLZLSBB): New value.
1938 (UNSPEC_VCTZLSBB): New value.
1939 (UNSPEC_VEXTUBLX): New value.
1940 (UNSPEC_VEXTUHLX): New value.
1941 (UNSPEC_VEXTUWLX): New value.
1942 (UNSPEC_VEXTUBRX): New value.
1943 (UNSPEC_VEXTUHRX): New value.
1944 (UNSPEC_VEXTUWRX): New value.
1945 (UNSPEC_VCMPNEB): New value.
1946 (UNSPEC_VCMPNEZB): New value.
1947 (UNSPEC_VCMPNEH): New value.
1948 (UNSPEC_VCMPNEZH): New value.
1949 (UNSPEC_VCMPNEW): New value.
1950 (UNSPEC_VCMPNEZW): New value.
1951 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
1952 vector of integer modes.
1953 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
1954 vector of float or double modes.
1955 (*vector_nez_<mode>_p): New insn for vector test all not equal or
1957 (lxvl): New expand for load VSX vector with length.
1958 (*lxvl): New insn for load VSX vector with length.
1959 (stxvl): New expand for store VSX vector with length.
1960 (*stxvl): New insn for store VSX vector with length.
1961 (vcmpneb): New insn for vector of byte compare not equal.
1962 (vcmpnezb): New insn for vector of byte compare not equal or zero.
1963 (vcmpneh): New insn for vector of half word compare not equal.
1964 (vcmpnezh): New insn for vector of half word compare not equal or
1966 (vcmpnew): New insn for vector of word compare not equal.
1967 (vcmpne<VSs>): New insn for vector of float or double compare not
1969 (vcmpnezw): New insn for vector of word compare not equal or zero.
1970 (vclzlsbb): New insn for vector count leading zero
1971 least-significant bits byte.
1972 (vctzlsbb): New insn for vector count trailing zero least
1973 signficant bits byte.
1974 (vextublx): New insn for vector extract unsigned byte left
1976 (vextubrx): New insn for vector extract unsigned byte right
1978 (vextuhlx): New insn for vector extract unsigned half word left
1980 (vextuhrx): New insn for vector extract unsigned half word right
1982 (vextuwlx): New insn for vector extract unsigned word left
1984 (vextuwrx): New insn for vector extract unsigned word right
1986 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
1987 clarify intent of this constant.
1988 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
1989 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
1990 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
1991 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
1992 and vec_xrx functions.
1994 2016-10-18 Andrew Pinski <apinski@cavium.com>
1997 * predict.c (is_exit_with_zero_arg): New function.
1998 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
2001 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
2004 * config/i386/i386.c (legitimize_tls_address)
2005 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
2006 convert dest to Pmode if different than Pmode.
2008 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2010 PR tree-optimization/77916
2011 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
2012 stopgap fix, as pointers with -1 increment are still broken.
2014 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
2016 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
2017 mapping class decoration from here...
2018 (rs6000_xcoff_encode_section): ...to here.
2020 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
2021 if shrink-wrapping and optimizing for speed.
2023 2016-10-18 Richard Biener <rguenther@suse.de>
2025 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2026 not visited but non-executable predecessors. Return taken edge.
2027 Simplify conditions and refactor propagation vs. folding step.
2029 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
2031 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
2032 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
2033 (rs6000_get_separate_components): Assert we do not have those
2034 strategies selected.
2036 2016-10-18 Richard Biener <rguenther@suse.de>
2038 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
2039 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
2041 (substitute_and_fold_dom_walker): Adjust constructor.
2042 (substitute_and_fold_dom_walker::before_dom_children): Remove
2043 do_dce flag and handling (always true).
2044 (substitute_and_fold): Likewise.
2045 * tree-vrp.c (vrp_finalize): Adjust.
2046 (execute_early_vrp): Remove final BB_VISITED clearing.
2047 * tree-ssa-ccp.c (ccp_finalize): Adjust.
2048 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2049 * ira.c (ira): Call clear_bb_flags.
2051 2016-10-18 Richard Biener <rguenther@suse.de>
2053 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
2054 get at the operand to look at with TREE_OPERAND for generic
2057 2016-10-18 David Malcolm <dmalcolm@redhat.com>
2059 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
2061 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
2062 (write_test_expr): Use rtx_reader_ptr for calls to
2064 (write_attr_value): Likewise.
2065 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
2066 call to print_md_ptr_loc.
2067 (write_one_condition): Likewise for calls to print_c_condition.
2068 * genconstants.c: Include "statistics.h" and "vec.h".
2069 (main): Update for conversion to member functions.
2070 * genemit.c (emit_c_code): Use rtx_reader_ptr for
2071 call to print_md_ptr_loc.
2072 * genenums.c: Include "statistics.h" and "vec.h".
2073 (main): Update for conversion of traverse_enum_types to a method.
2074 * genmddeps.c: Include "statistics.h" and "vec.h".
2075 * genoutput.c (process_template): Use rtx_reader_ptr for call to
2077 * genpreds.c (write_predicate_subfunction): Likewise.
2078 (write_predicate_expr): Likewise for calls to print_c_condition.
2079 * genrecog.c (print_test): Likewise.
2080 * gensupport.c (process_rtx): Likewise for calls to
2081 copy_md_ptr_loc and join_c_conditions.
2082 (alter_test_for_insn): Likewise for call to join_c_conditions.
2083 (process_substs_on_one_elem): Likewise.
2084 (gen_mnemonic_setattr): Update for move of string_obstack to a
2085 field of rtx_reader.
2086 (mnemonic_htab_callback): Likewise. Fix formatting.
2087 (gen_mnemonic_attr): Likewise.
2088 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
2089 to print_c_condition.
2090 * read-md.c: Include "statistics.h" and "vec.h".
2091 (string_obstack): Convert this global to field "m_string_obstack"
2092 of class rtx_reader.
2093 (ptr_locs): Likewise, as "m_ptr_locs".
2094 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
2095 (joined_conditions): Likewise, as "m_joined_conditions".
2096 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
2097 (md_constants): Likewise, as "m_md_constants".
2098 (enum_types): Likewise, as "m_enum_types".
2099 (set_md_ptr_loc): Convert to...
2100 (rtx_reader::set_md_ptr_loc): ...member function.
2101 (get_md_ptr_loc): Convert to...
2102 (rtx_reader::get_md_ptr_loc): ...member function.
2103 (copy_md_ptr_loc): Convert to...
2104 (rtx_reader::copy_md_ptr_loc): ...member function.
2105 (fprint_md_ptr_loc): Convert to...
2106 (rtx_reader::fprint_md_ptr_loc): ...member function.
2107 (print_md_ptr_loc): Convert to...
2108 (rtx_reader::print_md_ptr_loc): ...member function.
2109 (join_c_conditions): Convert to...
2110 (rtx_reader::join_c_conditions): ...member function.
2111 (fprint_c_condition): Convert to...
2112 (rtx_reader::fprint_c_condition): ...member function.
2113 (print_c_condition): Convert to...
2114 (rtx_reader::print_c_condition): ...member function.
2115 (read_name): Convert to...
2116 (rtx_reader::read_name): ...member function.
2117 (read_escape): Convert to...
2118 (rtx_reader::read_escape): ...member function.
2119 (read_quoted_string): Convert to...
2120 (rtx_reader::read_quoted_string): ...member function.
2121 (read_braced_string): Convert to...
2122 (rtx_reader::read_braced_string): ...member function.
2123 (read_string): Convert to...
2124 (rtx_reader::read_string): ...member function.
2125 (read_skip_construct): Convert to...
2126 (rtx_reader::read_skip_construct): ...member function.
2127 (handle_constants): Convert to...
2128 (rtx_reader::handle_constants): ...member function.
2129 (traverse_md_constants): Convert to...
2130 (rtx_reader::traverse_md_constants): ...member function.
2131 (handle_enum): Convert to...
2132 (rtx_reader::handle_enum): ...member function.
2133 (lookup_enum_type): Convert to...
2134 (rtx_reader::lookup_enum_type): ...member function.
2135 (traverse_enum_types): Convert to...
2136 (rtx_reader::traverse_enum_types): ...member function.
2137 (rtx_reader::rtx_reader): Move initializations
2138 of various former global data from rtx_reader::read_md_files to
2139 here, as fields, along with the call to unlock_std_streams.
2140 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
2142 (rtx_reader::read_md_files): Move initializations of various
2143 global data from here to the ctor.
2144 * read-md.h (read_name): Convert to...
2145 (rtx_reader::read_name): ...member function.
2146 (rtx_reader::read_escape): New method decl.
2147 (read_quoted_string): Convert to...
2148 (rtx_reader::read_quoted_string): ...member function.
2149 (rtx_reader::read_braced_string): New method decl.
2150 (read_string): Convert to...
2151 (rtx_reader::read_string): ...member function.
2152 (rtx_reader::read_skip_construct): New method decl.
2153 (rtx_reader::set_md_ptr_loc): New method decl.
2154 (rtx_reader::get_md_ptr_loc): New method decl.
2155 (copy_md_ptr_loc): Convert to...
2156 (rtx_reader::copy_md_ptr_loc): ...member function.
2157 (fprint_md_ptr_loc): Convert to...
2158 (rtx_reader::fprint_md_ptr_loc): ...member function.
2159 (print_md_ptr_loc): Convert to...
2160 (rtx_reader::print_md_ptr_loc): ...member function.
2161 (rtx_reader::lookup_enum_type): New method decl.
2162 (rtx_reader::traverse_enum_types): New method decl.
2163 (rtx_reader::handle_constants): New method decl.
2164 (traverse_md_constants): Convert to...
2165 (rtx_reader::traverse_md_constants): ...member function.
2166 (rtx_reader::handle_enum): New method decl.
2167 (rtx_reader::join_c_conditions): New method decl.
2168 (fprint_c_condition): Convert to...
2169 (rtx_reader::fprint_c_condition): ...member function.
2170 (print_c_condition): Convert to...
2171 (rtx_reader::print_c_condition): ...member function.
2172 (rtx_reader::apply_iterator_to_string): New method decl.
2173 (rtx_reader::copy_rtx_for_iterators): New method decl.
2174 (rtx_reader::read_conditions): New method decl.
2175 (rtx_reader::record_potential_iterator_use): New method decl.
2176 (rtx_reader::read_mapping): New method decl.
2177 (rtx_reader::read_rtx): New method decl.
2178 (rtx_reader::read_rtx_code): New method decl.
2179 (rtx_reader::read_rtx_operand): New method decl.
2180 (rtx_reader::read_nested_rtx): New method decl.
2181 (rtx_reader::read_rtx_variadic): New method decl.
2182 (rtx_reader::get_string_obstack): New method.
2183 (rtx_reader::get_md_constants): New method.
2184 (string_obstack): Convert global variable decl to...
2185 (rtx_reader::m_string_obstack): ...this new field.
2186 (rtx_reader::m_ptr_locs): New field.
2187 (rtx_reader::m_ptr_loc_obstack): New field.
2188 (rtx_reader::m_joined_conditions): New field.
2189 (rtx_reader::m_joined_conditions_obstack): New field.
2190 (rtx_reader::m_md_constants): New field.
2191 (rtx_reader::m_enum_types): New field.
2192 * read-rtl.c (apply_iterator_to_string): Convert to...
2193 (rtx_reader::apply_iterator_to_string): ...member function.
2194 (copy_rtx_for_iterators): Convert to...
2195 (rtx_reader::copy_rtx_for_iterators): ...member function.
2196 (add_condition_to_string): Use rtx_reader_ptr for
2197 calls join_c_conditions.
2198 (apply_iterators): Use rtx_reader_ptr for calls to
2199 join_c_conditions and copy_rtx_for_iterators.
2200 (read_conditions): Convert to...
2201 (rtx_reader::read_conditions): ...member function.
2202 (record_potential_iterator_use): Convert to...
2203 (rtx_reader::record_potential_iterator_use): ...member function.
2204 (read_mapping): Convert to...
2205 (rtx_reader::read_mapping): ...member function.
2206 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
2207 (read_rtx): Convert to...
2208 (rtx_reader::read_rtx): ...member function.
2209 (read_rtx_code): Convert to...
2210 (rtx_reader::read_rtx_code): ...member function.
2211 (read_rtx_operand): Convert to...
2212 (rtx_reader::read_rtx_operand): ...member function. Update for move
2213 of string_obstack to a field.
2214 (read_nested_rtx): Convert to..
2215 (rtx_reader::read_nested_rtx): ...member function.
2216 (read_rtx_variadic): Convert to..
2217 (rtx_reader::read_rtx_variadic): ...member function.
2219 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2221 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
2223 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2225 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
2226 for pointer type too.
2227 (ipcp_update_vr): set_ptr_nonnull for pointer.
2229 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
2231 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
2232 pt_solution_singleton_p.
2233 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
2234 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
2235 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
2236 pointer nonnull computed by VRP.
2237 Also Conservatively set pt.null to 1.
2238 (pt_solution_reset): Conservatively set pt.null to 1.
2239 (pt_solution_singleton_or_null_p): Renamed from
2240 pt_solution_singleton_p.
2241 * tree-ssanames.h (set_ptr_nonnull): Declare.
2242 (get_ptr_nonnull): Likewise.
2243 * tree-ssanames.c (set_ptr_nonnull): New.
2244 (get_ptr_nonnull): Likewise.
2245 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
2246 (evrp_dom_walker::before_dom_children): Likewise.
2248 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2250 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2251 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2252 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2253 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2254 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
2255 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2256 (rs6000_option_override_internal): Clear it if ABI_AIX.
2257 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2258 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
2260 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2262 * gimple-ssa-strength-reduction.c (record_increment): Remove
2265 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2267 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
2268 that the result is non-zero if it is true.
2269 (maybe_expand_shift): New wrapper around expand_shift_1.
2270 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
2272 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2274 PR tree-optimization/77916
2275 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
2276 Don't allow a MINUS_EXPR for pointer arithmetic for either known
2278 (record_increment): Increments of -1 for unknown strides just use
2279 a multiply initializer like other negative values.
2280 (analyze_increments): Remove stopgap solution for -1 increment
2281 applied to pointer arithmetic.
2283 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2285 * dominance.c (dom_info::dom_info): Add new constructor for region
2286 which is vector of basic blocks.
2287 (dom_init): New method to initialize members common for both
2289 (dom_info::dom_info): Invoke dom_init for partial initialization.
2290 (dom_info::get_idom): Add check to corner cases on basic blocks which
2292 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
2293 to detect unreachable bbs.
2294 (dom_info::calc_idoms): Likewise.
2295 (compute_dom_fast_query_in_region): New function.
2296 (calculate_dominance_info_for_region): Likewise.
2297 (free_dominance_info_for_region): Likewise.
2298 * dominance.h: Add prototypes for introduced region-based functions
2299 tree-if-conv.c: (build_region): New function.
2300 (if_convertible_loop_p_1): Invoke local version of post-dominators
2301 calculation before basic block predication with subsequent freeing
2302 post-dominator info.
2303 (tree_if_conversion): Remove free of post-dominator info
2304 (pass_if_conversion::execute): Delete detection of infinite loops
2305 and fake edges to exit block since post-dominator calculation is
2306 performed per if-converted loop only.
2308 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2311 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
2312 register explicitly.
2313 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
2314 optimizing for size.
2316 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318 * config/aarch64/aarch64.c: Delete inclusion of
2319 cortex-a57-fma-steering.h.
2320 (aarch64_override_options): Delete call
2321 to aarch64_register_fma_steering.
2322 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
2323 * config/aarch64/cortex-a57-fma-steering.h: Delete.
2324 * config/aarch64/aarch64-passes.def: New file.
2325 * config/aarch64/cortex-a57-fma-steering.c
2326 (aarch64_register_fma_steering): Delete definition.
2327 (make_pass_fma_steering): Remove static qualifier.
2328 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
2329 (cortex-a57-fma-steering.o): Remove dependency on
2330 cortex-a57-fma-steering.h.
2332 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
2334 * explow.c (validize_mem): Do not modify the argument in-place.
2336 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
2338 * tree-streamer.c (record_common_node): Explicitly list expected
2341 2016-10-17 Richard Biener <rguenther@suse.de>
2343 PR tree-optimization/77988
2344 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
2346 2016-10-17 Marek Polacek <polacek@redhat.com>
2348 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
2350 2016-10-17 Richard Biener <rguenther@suse.de>
2352 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
2355 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2357 PR tree-optimization/71636
2358 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
2360 2016-10-17 Richard Biener <rguenther@suse.de>
2362 * gimplify.c (gimplify_function_tree): Do not move the outer
2365 2016-10-17 Jakub Jelinek <jakub@redhat.com>
2367 * langhooks.h (struct lang_hooks_for_decls): Remove
2368 function_decl_explicit_p, function_decl_deleted_p and
2369 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
2370 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
2371 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2372 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
2373 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
2374 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
2375 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2376 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
2377 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
2378 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
2379 * langhooks.c (lhd_decl_dwarf_attribute): New function.
2380 * dwarf2out.c (gen_subprogram_die): Use
2381 lang_hooks.decls.decl_dwarf_attribute instead of
2382 lang_hooks.decls.function_decl_*.
2384 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2388 * common.opt (-ftrampolines): New option.
2389 * doc/invoke.texi (Code Gen Options): Document it.
2390 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2391 * doc/tm.texi: Regenerate.
2392 * builtins.def: Add init_descriptor and adjust_descriptor.
2393 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
2394 on platforms with descriptors.
2395 (expand_builtin_init_descriptor): New function.
2396 (expand_builtin_adjust_descriptor): Likewise.
2397 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
2398 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
2399 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
2400 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
2401 Set STATIC_CHAIN_REG_P on the static chain register, if any.
2402 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
2403 (expand_call): Likewise. Move around call to prepare_call_address
2404 and pass all flags to it.
2405 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
2406 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
2407 (gimple_call_set_by_descriptor): New setter.
2408 (gimple_call_by_descriptor_p): New getter.
2409 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
2410 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
2411 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
2412 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2413 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
2414 * rtl.h (STATIC_CHAIN_REG_P): New macro.
2415 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
2416 * target.def (custom_function_descriptors): New POD hook.
2417 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
2418 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
2419 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
2420 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
2421 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
2422 (build_common_builtin_nodes): Initialize init_descriptor and
2424 * tree-nested.c: Include target.h.
2425 (struct nesting_info): Add 'any_descr_created' field.
2426 (get_descriptor_type): New function.
2427 (lookup_element_for_decl): New function extracted from...
2428 (create_field_for_decl): Likewise.
2429 (lookup_tramp_for_decl): ...here. Adjust.
2430 (lookup_descr_for_decl): New function.
2431 (convert_tramp_reference_op): Deal with descriptors.
2432 (build_init_call_stmt): New function extracted from...
2433 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
2434 * defaults.h (FUNCTION_ALIGNMENT): Define.
2435 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
2436 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2437 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2438 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
2439 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2441 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2443 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
2444 constants in CONST_VECTORs.
2446 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2448 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
2449 register as destination of bmask.
2450 (vector_init_bshuffle): Likewise.
2451 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2452 (bmaskdi_vis): Enable only in 64-bit mode.
2454 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
2456 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
2457 make LR a separately shrink-wrapped component unless savres_strategy
2458 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
2459 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
2460 wrapping when not both {SAVE,REST}_INLINE_GPRS.
2462 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
2464 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
2465 and keep looping on failure.
2467 2016-10-14 David Malcolm <dmalcolm@redhat.com>
2469 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
2471 (print_rtx_function): Update example in comment for...
2472 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
2473 non-virtual pseudos with a '%' sigil followed by the regno, offset
2474 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
2475 pseudo is dumped as "%0".
2477 2016-10-14 Jakub Jelinek <jakub@redhat.com>
2480 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
2483 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
2485 * config/sparc/sparc-passes.def: New file.
2486 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
2487 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
2488 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
2490 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2492 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
2493 loop peel to loops with exit test at the beginning.
2495 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
2497 PR rtl-optimization/68212
2498 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
2499 frequency when computing scale factor for peeled copies.
2500 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
2501 values for switch/peel blocks/edges.
2503 2016-10-14 Pedro Alves <palves@redhat.com>
2505 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
2507 2016-10-14 Catherine Moore <clm@codesourcery.com>
2509 * config/mips/mips.c (mips_prepare_pch_save): Initialize
2510 micromips_globals to zero.
2512 2016-10-14 Richard Biener <rguenther@suse.de>
2514 PR tree-optimization/77979
2515 * tree-vrp.c (compare_name_with_value): Handle released SSA names
2516 in the equivalency sets.
2517 (compare_names): Likewise.
2519 2016-10-14 Martin Liska <mliska@suse.cz>
2521 * builtins.h(target_char_cst_p): Declare the function.
2522 * builtins.c (fold_builtin_memchr): Remove.
2523 (target_char_cst_p): Move the function from gimple-fold.c.
2524 (fold_builtin_3): Do not call the function.
2525 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
2526 (gimple_fold_builtin): Call the function.
2527 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
2529 2016-10-14 Martin Liska <mliska@suse.cz>
2531 * builtins.c (fold_builtin_strcmp): Remove function.
2532 (fold_builtin_strncmp): Likewise.
2533 (fold_builtin_2): Remove call of the function.
2534 (fold_builtin_3): Likewise.
2535 * fold-const-call.c (fold_const_call): Add constant folding
2536 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
2537 * fold-const-call.h (build_cmp_result): Declare the function.
2538 * gimple-fold.c (gimple_load_first_char): New function.
2539 (gimple_fold_builtin_string_compare): Likewise.
2540 (gimple_fold_builtin): Call the function.
2542 2016-10-14 Nathan Sidwell <nathan@acm.org>
2544 * gcov-io.c (gcov_open): Deconstify 'mode'.
2546 2016-10-14 Martin Liska <mliska@suse.cz>
2548 * fold-const.c (c_getstr): Support of properly \0-terminated
2549 string constants. New argument is added.
2550 * fold-const.h: New argument is added.
2552 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2554 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
2556 (aarch64_print_hint_for_core): Likewise.
2557 (aarch64_print_hint_for_arch): Likewise.
2558 (aarch64_validate_march): Use it. Fix indentation in type signature.
2559 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
2560 (aarch64_validate_mtune): Likewise.
2561 (aarch64_handle_attr_arch): Likewise.
2562 (aarch64_handle_attr_cpu): Likewise.
2563 (aarch64_handle_attr_tune): Likewise.
2565 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2567 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
2570 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
2572 * config/m68k/m68k.c (m68k_option_override): Check
2573 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
2574 instead of stack_limit_rtx.
2576 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2578 * dwarf2out.c (gen_member_die): Handle inline static data member
2581 2016-10-13 Nathan Sidwell <nathan@acm.org>
2583 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
2584 gcov_var.mode. Remove unnecessary fstat.
2586 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
2589 * function.c (thread_prologue_and_epilogue_insns): Call all
2590 make_*logue_seq in the same order as traditional. Call them
2591 all a second time if shrink_wrapped_separate.
2593 2016-10-13 Marek Polacek <polacek@redhat.com>
2595 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2596 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
2599 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2601 PR tree-optimization/77937
2602 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
2603 to infinite when we have a pointer with an increment of -1.
2605 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2607 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
2609 * memmodel.h: This file.
2610 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
2611 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
2612 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
2613 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
2614 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
2615 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
2616 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
2617 compare-elim.c, config/aarch64/aarch64-builtins.c,
2618 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
2619 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
2620 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
2621 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
2622 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
2623 config/darwin.c, config/epiphany/epiphany.c,
2624 config/epiphany/mode-switch-use.c,
2625 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
2626 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2627 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
2628 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2629 config/m68k/m68k.c, config/mcore/mcore.c,
2630 config/microblaze/microblaze.c, config/mmix/mmix.c,
2631 config/mn10300/mn10300.c, config/moxie/moxie.c,
2632 config/msp430/msp430.c, config/nds32/nds32-cost.c,
2633 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2634 config/nds32/nds32-memory-manipulation.c,
2635 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
2636 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
2637 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
2638 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
2639 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
2640 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
2641 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2642 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2643 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
2644 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
2645 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
2646 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
2647 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
2648 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
2649 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
2650 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
2651 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
2652 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
2653 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
2654 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2655 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
2656 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
2657 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
2658 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
2659 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
2660 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
2661 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
2662 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
2663 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
2664 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
2665 var-tracking.c, varasm.c: Include memmodel.h.
2666 * genattrtab.c (write_header): Include memmodel.h in generated file.
2667 * genautomata.c (main): Likewise.
2668 * gengtype.c (open_base_files): Likewise.
2669 * genopinit.c (main): Likewise.
2670 * genconditions.c (write_header): Include memmodel.h earlier in
2672 * genemit.c (main): Likewise.
2673 * genoutput.c (output_prologue): Likewise.
2674 * genpeep.c (main): Likewise.
2675 * genpreds.c (write_insn_preds_c): Likewise.
2676 * genrecog.c (write_header): Likewise.
2677 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
2679 2016-10-13 David Malcolm <dmalcolm@redhat.com>
2681 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
2682 for new "compact" param of print_rtx_function. Check for "cinsn"
2684 * print-rtl-function.c (flag_compact): New decl.
2685 (print_rtx_function): Add param "compact" and use it to set
2686 flag_compact, adding a description of the effect to the leading
2687 comment, and updating the example output.
2688 * print-rtl.c (flag_compact): New variable.
2689 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
2691 (print_rtx_operand_code_i): When printing source locations, wrap
2692 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
2693 (print_rtx_operand_code_r): Don't print regnos for hard regs and
2694 virtuals in compact mode.
2695 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
2696 apart from in LABEL_REFs.
2697 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
2698 Don't print basic block ids in compact mode.
2699 (print_rtx): In compact mode, prefix the code of insns with "c",
2700 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
2701 * print-rtl.h (print_rtx_function): Add "compact" param.
2703 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
2705 * arm.h (TARGET_VFP): Delete.
2706 (TARGET_VFPD32): Remove references to TARGET_VFP.
2707 (TARGET_VFP3, TARGET_VFP5): Likewise.
2708 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
2709 (TARGET_NEON_FP16): Likewise.
2710 (TARGET_FMA): Likewise.
2711 (TARGET_CRYPTO): Likewise.
2712 (TARGET_NEON): Likewise.
2713 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2714 (FUNCTION_ARG_REGNO_P): Likewise.
2715 * arm.c (arm_option_check_internal): Likewise.
2716 (arm_option_override): Likewise.
2717 (use_return_insn): Likewise.
2718 (arm_function_value_regno_p): Likewise.
2719 (arm_apply_result_size): Likewise.
2720 (use_vfp_abi): Likewise.
2721 (arm_legitimate_address_outer_p): Likewise.
2722 (thumb2_legitimate_address_p): Likewise.
2723 (arm_legitimate_index_p): Likewise.
2724 (thumb2_legitimate_index_p): Likewise.
2725 (arm_legitimate_address): Likewise.
2726 (arm_get_vfp_saved_size): Likewise.
2727 (arm_emit_vfp_multi_reg_pop): Likewise.
2728 (arm_get_frame_offsets): Likewise.
2729 (arm_save_coproc_regs): Likewise.
2730 (arm_hard_regno_mode_ok): Likewise.
2731 (arm_expand_epilogue_apcs_frame): Likewise.
2732 (arm_expand_epilogue): Likewise.
2733 (arm_file_start): Likewise.
2734 (arm_conditional_register_usage): Likewise.
2735 (arm_validize_comparison): Use vfp_compare_operand directly.
2736 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
2737 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
2739 (arm_atomic_assign_expand_fenv): Likewise.
2740 * arm.md (divsf3): Likewise.
2741 (arm_negsi2): Likewise.
2743 (arm_movdi): Likewise.
2744 (arm_movt): Likewise.
2745 (cbranchsf4): Change predicate to vfp_compare_operand.
2746 (cbranchdf4): Change predicate to vfp_compare_operand.
2747 (cstorehf4): Change predicate to vfp_compare_operand.
2748 (cstoresf4): Change predicate to vfp_compare_operand.
2749 (cstoredf4): Change predicate to vfp_compare_operand.
2750 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
2751 (movhi_insn_arch4, movhi_bytes): Likewise.
2752 * constraints.md (Dt): Likewise.
2754 * iterators.md (SDF): Likewise.
2755 * predicates.md (arm_float_compare_operand): Delete.
2756 (const_double_vcvt_power_of_two_reciprocal): Remove references to
2758 (const_double_vcvt_power_of_two): Likewise.
2759 * thumb2.md thumb2_movsi_insn): Likewise.
2760 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
2761 (movhf_vfp): Likewise.
2762 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
2763 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2764 (movsf_vfp, thumb2_movsf_vfp): Likewise.
2765 (movdf_vfp, thumb2_movdf_vfp): Likewise.
2766 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
2767 (subsf3_vfp, divsf3_vfp): Likewise.
2768 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
2769 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
2770 (mulsf3negsfsubsf_vfp): Likewise.
2771 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
2772 (floatunssisf2, sqrtsf2_vfp): Likewise.
2773 (movcc_vfp): Likewise.
2774 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
2775 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
2776 (push_multi_vfp): Likewise.
2777 (set_fpscr, get_fpscr): Likewise.
2778 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
2780 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
2782 * arm.h (TARGET_VFP): Unconditionally define to 1.
2783 (arm_fpu_desc): Remove 'model' field.
2784 (TARGET_FPU_MODEL): Delete.
2785 * arm.c (all_fpus): Don't initialize the model field.
2786 (arm_can_inline_p): Don't check the FPU model.
2787 * arm-fpus.def: Remove redundant model field from all FPU
2790 2016-10-13 Richard Biener <rguenther@suse.de>
2793 * genmatch.c (struct capture): Add value_match member.
2794 (commutate): Preserve value_match.
2795 (lower_opt_convert): Likewise.
2796 (lower_cond): Likewise.
2797 (replace_id): Likewise.
2798 (struct dt_operand): Add value_match member.
2799 (decision_tree::cmp_node): Compare it.
2800 (decision_tree::insert_operand): Honor it when finding and
2801 when appending a DT_MATCH.
2802 (dt_operand::gen_match_op): Generate a type check after
2803 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
2804 (parser::get_internal_capture_id): New helper.
2805 (parser::finish_match_operand): New function lowering @@<id>.
2806 (parser::parse_capture): Parse @@<id> as value-match.
2807 (parser::parse_expr): Use get_internal_capture_id.
2808 (parser::parse_simplify): Call finish_match_operand.
2809 (walk_captures): New helper.
2810 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
2812 ((X /[ex] A) * A -> X): Likewise.
2813 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
2814 convert[12] and value-matching.
2815 ((A | B) & (A | C) -> A | (B & C)): Likewise.
2816 ((X | Y) | Y -> X | Y): Likewise.
2817 ((X ^ Y) ^ Y -> X): Likewise.
2818 (A - (A & B) -> ~B & A): Likewise.
2819 ((T)(P + A) - (T)P -> (T) A): Likewise.
2820 ((T)P - (T)(P + A) -> -(T) A): Likewise.
2821 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
2822 * doc/match-and-simplify.texi: Amend capture section.
2824 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
2826 * config/arc/arc.md (umul_600): Remove predicated variant.
2827 (umul64_600): Likewise.
2829 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
2831 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
2833 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2835 * tree-vect-loop.c (loop_niters_no_overflow): New func.
2836 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
2837 no-overflow information to vect_do_peeling_for_loop_bound and
2838 vect_gen_vector_loop_niters.
2840 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2842 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
2845 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2847 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
2848 adjust_vec automatically.
2849 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
2850 param exit_bb to guard_to.
2851 (slpeel_checking_verify_cfg_after_peeling):
2852 (set_prologue_iterations):
2853 (create_lcssa_for_virtual_phi): New func which is factored out from
2854 slpeel_tree_peel_loop_to_edge.
2855 (slpeel_tree_peel_loop_to_edge):
2856 (iv_phi_p): New func.
2857 (vect_can_advance_ivs_p): Call iv_phi_p.
2858 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
2859 new gimple stmts in basic block.
2860 (vect_gen_niters_for_prolog_loop): Rename to...
2861 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
2862 adjust implementation.
2863 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
2864 sizetype if necessary.
2865 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
2866 it to external function.
2867 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
2868 (vect_gen_vector_loop_niters_mult_vf): New.
2869 (slpeel_update_phi_nodes_for_loops): New.
2870 (slpeel_update_phi_nodes_for_guard1): Reimplement.
2871 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
2872 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
2873 * tree-vect-loop.c (vect_build_loop_niters): Move to file
2874 tree-vect-loop-manip.c
2875 (vect_generate_tmps_on_preheader): Delete.
2876 (vect_transform_loop): Rename vectorization_factor to vf. Call
2877 vect_do_peeling instead of vect_do_peeling-* functions.
2878 * tree-vectorizer.h (vect_do_peeling): New decl.
2879 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
2880 (vect_do_peeling_for_loop_bound): Delete.
2881 (vect_do_peeling_for_alignment): Delete.
2883 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2885 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
2886 duplicated loop after its preheader and after the original loop.
2888 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2890 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
2891 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
2893 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2895 * tree-vect-loop.c (vectorizable_live_operation): Support handling
2896 for live variable outside loop but not in lcssa form.
2898 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2900 * cfg.c (reset_original_copy_tables): New func.
2901 * cfg.h (reset_original_copy_tables): New decl.
2903 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2906 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
2908 * varasm.c (default_binds_local_p_3): Formatting fix.
2910 2016-10-13 Bin Cheng <bin.cheng@arm.com>
2912 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
2914 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2915 Remove useless code.
2917 2016-10-13 Martin Liska <mliska@suse.cz>
2919 PR tree-optimization/77943
2920 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
2921 a different EH landing pads.
2923 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2926 * hooks.h (hook_tree_void_null): Declare.
2927 * hooks.c (hook_tree_void_null): New function.
2928 * langhooks.c (lhd_return_null_tree_v): Remove.
2929 * langhooks-def.h (lhd_return_null_tree_v): Remove.
2930 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
2931 set y to const0_rtx.
2932 * function.c (stack_protect_epilogue): Likewise.
2933 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
2934 if TARGET_THREAD_SSP_OFFSET is defined.
2935 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2936 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2937 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2938 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2939 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2940 (ix86_stack_protect_guard): New function.
2942 2016-10-13 Richard Biener <rguenther@suse.de>
2944 * dwarf2out.c (tree_add_const_value_attribute): Do not try
2945 rtl_for_decl_init during early phase.
2946 (gen_variable_die): Do not create locations during early phase.
2947 (gen_label_die): Likewise.
2948 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
2951 2016-10-12 Richard Biener <rguenther@suse.de>
2953 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
2954 try_add_new_range and made to eturn new range.
2955 (evrp_dom_walker::before_dom_children): Push op1 value range before
2956 pushing op0 value range.
2958 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2960 PR tree-optimization/77937
2961 * gimple-ssa-strength-reduction.c (analyze_increments): Use
2962 POINTER_TYPE_P on the candidate type to determine whether
2963 candidates in this chain require pointer arithmetic.
2965 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
2967 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
2968 correction if the type is smaller than a word.
2969 (visium_select_cc_mode): Add ... fall through ... comment.
2971 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
2973 * config/rs6000/rs6000.c (machine_function): Add new fields
2974 gpr_is_wrapped_separately and lr_is_wrapped_separately.
2975 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2976 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2977 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2978 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2979 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2980 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2981 (rs6000_get_separate_components): New function.
2982 (rs6000_components_for_bb): New function.
2983 (rs6000_disqualify_components): New function.
2984 (rs6000_emit_prologue_components): New function.
2985 (rs6000_emit_epilogue_components): New function.
2986 (rs6000_set_handled_components): New function.
2987 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
2988 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
2989 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
2990 (rs6000_emit_epilogue): Don't emit GPR restores if
2991 gpr_is_wrapped_separately for that register. Don't make a
2992 REG_CFA_RESTORE note for registers we did not restore, either.
2994 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
2996 * function.c (thread_prologue_and_epilogue_insns): Call
2997 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
2998 if it has possibly changed. Compute the split_prologue_seq and
2999 epilogue_seq later, too.
3000 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
3001 (dump_components): New function.
3002 (struct sw): New struct.
3004 (init_separate_shrink_wrap): New function.
3005 (fini_separate_shrink_wrap): New function.
3006 (place_prologue_for_one_component): New function.
3007 (spread_components): New function.
3008 (disqualify_problematic_components): New function.
3009 (emit_common_heads_for_components): New function.
3010 (emit_common_tails_for_components): New function.
3011 (insert_prologue_epilogue_for_components): New function.
3012 (try_shrink_wrapping_separate): New function.
3013 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
3015 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3017 * regrename.c (build_def_use): Invalidate chains that have a
3018 REG_CFA_RESTORE on some instruction.
3020 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3022 * dce.c (delete_unmarked_insns): Don't delete instructions with
3023 a REG_CFA_RESTORE note.
3025 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3027 * common.opt (-fshrink-wrap-separate): New flag.
3028 * doc/invoke.texi: Document it.
3029 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
3030 * doc/tm.texi: Regenerate.
3031 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
3032 * target.def (shrink_wrap): New hook vector.
3033 (get_separate_components, components_for_bb, disqualify_components,
3034 emit_prologue_components, emit_epilogue_components,
3035 set_handled_components): New hooks.
3037 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
3039 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
3040 vector return by reference only if -Wpsabi.
3041 (rs6000_pass_by_reference): Similarly, for argument passing.
3043 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3045 * function-tests.c: Include "print-rtl.h".
3046 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
3047 function, and verify what is dumped.
3048 * print-rtl-function.c (print_edge): New function.
3049 (begin_any_block): New function.
3050 (end_any_block): New function.
3051 (can_have_basic_block_p): New function.
3052 (print_rtx_function): Track the basic blocks of insns in the
3053 chain, wrapping those that are within blocks within "(block)"
3054 directives. Remove the "(cfg)" directive.
3056 2016-10-12 David Malcolm <dmalcolm@redhat.com>
3058 * selftest.c (selftest::read_file): New function.
3059 (selftest::test_read_file): New function.
3060 (selftest::selftest_c_tests): Call test_read_file.
3061 * selftest.h (selftest::read_file): New decl.
3063 2016-10-12 Richard Biener <rguenther@suse.de>
3066 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
3069 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
3071 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
3073 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
3074 dwarf2out_assembly_start.
3076 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
3078 * Makefile.in (SELFTEST_FLAGS): New variable.
3079 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
3081 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
3084 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
3086 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
3087 dumped in RTL dumps.
3089 2016-10-12 Martin Liska <mliska@suse.cz>
3091 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
3092 (gimple_fold_builtin_memory_op): Use the function.
3093 (gimple_fold_builtin_strchr): Likewise.
3094 (gimple_fold_builtin_strcat): Likewise.
3095 (gimple_build): Likewise.
3097 2016-10-12 Nathan Sidwell <nathan@acm.org>
3099 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
3101 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3103 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
3104 equivalent 32-bit constant (modulo 2**32) when that yields
3105 smaller instructions.
3106 (size_of_int_loc_descriptor): Update accordingly.
3108 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
3110 * dwarf2out.c (dwarf2out_early_global_decl): For nested
3111 functions, call dwarf2out_decl on the parent function first.
3113 2016-10-12 Richard Biener <rguenther@suse.de>
3115 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
3118 2016-10-12 Richard Biener <rguenther@suse.de>
3120 * tree-ssa-propagate.c
3121 (substitute_and_fold_dom_walker::before_dom_children): Do not
3122 ignore ASSERT_EXPRs but only preserve them.
3123 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
3124 that have been propagated into.
3125 (vrp_finalize): Enable DCE for substitute_and_fold.
3127 2016-10-12 Richard Biener <rguenther@suse.de>
3129 PR tree-optimization/77920
3130 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
3131 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
3132 (simplify_abs_using_ranges): Likewise.
3133 (simplify_conversion_using_ranges): Likewise.
3134 (simplify_stmt_using_ranges): Adjust.
3136 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3138 PR tree-optimization/77929
3139 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
3140 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
3142 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3145 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
3146 needs a base register for arg 1.
3148 2016-10-12 Jakub Jelinek <jakub@redhat.com>
3150 * common.opt (Wimplicit-fallthrough) Turn into alias to
3151 -Wimplicit-fallthrough=3. Remove EnabledBy.
3152 (Wimplicit-fallthrough=): New option.
3153 * gimplify.c (warn_implicit_fallthrough_r): Use
3154 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
3155 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
3156 to -Wimplicit-fallthrough=3.
3157 (-Wimplicit-fallthrough=): Document.
3159 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3161 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
3162 and GEU in DImode if TARGET_SUBXC.
3163 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
3164 (seqdi<W:mode>_zero_subxc): Delete.
3165 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
3166 (neg_seqdi<W:mode>_zero_vis3): Delete.
3167 (plus_seqdi<W:mode>_zero): Likewise.
3168 (minus_seqdi<W:mode>_zero): Likewise.
3169 (plus_plus_sltu<W:mode>): Accept only register.
3170 (addx<W:mode>): Likewise.
3171 (plus_sltu<W:mode>_vis3): Likewise.
3172 (plus_plus_sltu<W:mode>_vis3): Likewise.
3173 (neg_sgeu<W:mode>_vis3): Delete.
3174 (minus_sgeu<W:mode>_vis3): Likewise.
3175 (addxc<W:mode>): Accept only registers.
3176 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3177 (minus_neg_sltu<W:mode>_subxc): Accept only register.
3178 (neg_plus_sltu<W:mode>_subxc): Likewise.
3179 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3180 (minus_minus_sltu<W:mode>_subxc): Accept only register.
3181 (sgeu<W:mode>_insn_subxc): Delete.
3182 (plus_sgeu<W:mode>_subxc): Likewise.
3183 (subxc<W:mode>): Accept only register.
3184 (scc splitter): Split always GEU again.
3186 2016-10-11 Jeff Law <law@redhat.com>
3188 PR tree-optimization/77424
3189 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
3190 dead conditionals. Assert that all e->aux fields are NULL.
3192 2016-10-11 David Malcolm <dmalcolm@redhat.com>
3194 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
3195 operand-printing "switch" statement into...
3196 (print_rtx_operand_code_0): ...this new function, ...
3197 (print_rtx_operand_code_e): ...this new function, ...
3198 (print_rtx_operand_codes_E_and_V): ...this new function, ...
3199 (print_rtx_operand_code_i): ...this new function, ...
3200 (print_rtx_operand_code_r): ...this new function, ...
3201 (print_rtx_operand_code_u): ...this new function, ...
3202 (print_rtx_operand): ...and this new function.
3204 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
3206 * config/alpha/alpha-passes.def: New file.
3207 * config/alpha/t-alpha: New file.
3208 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
3209 (make_pass_handle_trap_shadows): New prototype.
3210 (make_pass_align_insns): Ditto.
3211 * config/alpha/alpha.c (alpha_option_override): Don't register
3213 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
3215 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3218 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
3219 distinct __ibm128 IBM extended double type if long doubles are
3220 128-bits and the default format for long double is IEEE 128-bit.
3222 2016-10-11 Richard Biener <rguenther@suse.de>
3224 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
3225 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
3226 (verify_die): New function.
3227 (dwarf2out_finish): Call it.
3228 (output_line_info): Handle case of -gsplit-dwarf without
3229 DWARF2_ASM_LINE_DEBUG_INFO.
3231 2016-10-11 Richard Biener <rguenther@suse.de>
3234 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
3235 sub-chains of BLOCK_VARS and gimple_bind_vars.
3237 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3239 * config/i386/znver1.md : Fix imov/imovx load type reservations.
3241 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3243 * config/sparc/sparc.opt (msubxc): New option.
3244 * doc/invoke.texi (SPARC options): Document it and tidy up.
3245 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
3246 * doc/tm.texi: Regenerate.
3247 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
3249 (CCX_NOOV): Rename into...
3253 * config/sparc/predicates.m (fcc_register_operand): Simplify.
3254 (fcc0_register_operand): Likewise.
3255 (icc_register_operand): New.
3256 (icc_or_fcc_register_operand): Simplify.
3257 (nz_comparison_operator): New.
3258 (c_comparison_operator): Likewise.
3259 (noov_compare_operator): Rename into...
3260 (icc_comparison_operator): ...this. Use above predicates.
3261 (noov_compare64_operator): Rename into...
3262 (v9_comparison_operator): ...this and tidy up.
3263 (fcc_comparison_operator): New.
3264 (icc_or_fcc_comparison_operator): Likewise.
3265 (v9_register_compare_operator): Rename info...
3266 (v9_register_comparison_operator): ...this.
3267 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3268 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
3270 (sparc_fixed_condition_code_regs): New function.
3271 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
3272 renaming and add support for CCC/CCXC.
3273 (output_cbranch): Likewise.
3274 (sparc_print_operand): Likewise.
3275 (gen_v9_scc): Remove obsolete assertion.
3276 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
3277 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
3278 (output_cbcond): Remove bogus handling of CC modes.
3279 (sparc_register_move_cost): Return 100 for NO_REGS.
3280 * config/sparc/sparc.md (W): New mode iterator.
3281 (length): Adjust for noov_compare64_operator renaming.
3282 (cmpsi_sne): New instruction.
3283 (cmpdi_sne): Likewise.
3284 (seqdi_special): Delete.
3285 (seqdi_special): Likewise.
3286 (snesi<P:mode>_special): Likewise.
3287 (snedi_special): Likewise.
3288 (snedi_special_vis3): Likewise.
3289 (snesi patterns): Use W iterator.
3290 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
3291 (sltu patterns): Likewise.
3292 (sgeu patterns): Likewise.
3293 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
3294 (normal_branch): Use icc_comparison_operator predicate.
3295 (inverted_branch): Likewise.
3296 (cbcond_sp32): Use comparison_operator predicate.
3297 (cbcond_sp64): Likewise.
3298 (normal_int_branch_sp64): Adjust for renaming
3299 (inverted_int_branch_sp64): Likewise.
3300 (mov<I:mode>_cc_reg_sp64): Likewise.
3301 (movsf_cc_reg_sp6): Likewise.
3302 (movdf_cc_reg_sp64): Likewise.
3303 (movtf_cc_reg_hq_sp64): Likewise.
3304 (movtf_cc_reg_sp64): Likewise.
3305 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
3306 (movsf_cc_v9): Likewise.
3307 (movdf_cc_v9): Likewise.
3308 (movtf_cc_hq_v9): Likewise.
3309 (movtf_cc_v9): Likewise.
3310 (adddi3): Call gen_adddi3_sp32.
3311 (adddi3_insn_sp32): Rename to...
3312 (adddi3_sp32): ...this. Accept only register_operand as operand #1
3313 and use CCCmode for the carry.
3314 (addx_extend_sp32): Use CCCmode for the carry.
3315 (addx_extend_sp64): Delete.
3316 (adddi3_extend_sp32): Use CCCmode for the carry.
3317 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
3318 (subdi3): Call gen_subdi3_sp32.
3319 (subdi3_insn_sp32): Rename to...
3320 (subdi3_sp32): ...this and use CCmode for the carry.
3321 (subx_extend_sp32): Use CCCmode for the carry.
3322 (subx_extend_sp64): Delete.
3323 (subdi3_extend_sp32): Use CCmode for the carry.
3324 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
3325 (negdi3): Call gen_negdi3_sp32.
3326 (negdi3_sp32): Use CCCmode for the carry.
3327 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
3328 (cmp_nz_ashift_1): Use CCNZ mode.
3329 (cmp_nz_set_ashift_1): Likewise.
3330 (ctrapsi4): Use comparison_operator predicate.
3331 (ctrapdi4): Likewise.
3332 (trapsi_insn): Use icc_comparison_operator predicate.
3333 (trapdi_insn): Likewise.
3334 (edge8 patterns): Use CCNZmode.
3335 (edge16 patterns): Likewise.
3336 (edge32 patterns): Likewise.
3338 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3340 * config/visium/visium-modes.def (CC_NOOV): Rename into...
3342 (CC_BTST): Rename into...
3344 * config/visium/predicates.md (real_add_operand): New.
3345 (visium_btst_operator): Rename into...
3346 (visium_equality_comparison_operator): ...this.
3347 (visium_noov_operator): Rename into...
3348 (visium_nz_comparison_operator): ...this.
3349 (visium_c_comparison_operator): New.
3350 (visium_branch_operator): Adjust and deal with all CC modes.
3351 * config/visium/visium.c (visium_adjust_cost): Adjust.
3352 (visium_split_double_add): Use the *_set_carry patterns.
3353 (visium_select_cc_mode): Add support for CCC mode and adjust.
3354 (output_cbranch): Adjust and use the carry-based operators for
3355 floating-point comparisons.
3356 * config/visium/visium.md (flags_subst_arith): Adjust.
3357 (addsi3_insn_set_carry): New instruction.
3358 (subsi3_insn_set_carry): Likewise.
3359 (negsi2_insn_set_carry): Likewise.
3361 (cmp<mode>_sne): Likewise.
3362 (cbranch<mode>4): Use ordered_comparison_operator.
3363 (cbranch<mode>4_insn): Likewise.
3364 (cbranchsi4_btst_insn): Adjust.
3366 2016-10-11 Tom de Vries <tom@codesourcery.com>
3369 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3372 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3374 * tree.h (build_complex_type): Add second parameter with default.
3375 * tree.c (build_complex_type): Add NAMED second parameter and adjust
3376 recursive call. Create a TYPE_DECL only if NAMED is true.
3377 (build_common_tree_nodes): Pass true in calls to build_complex_type.
3379 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
3381 New avr-passes.def to register AVR specific passes.
3383 * config/avr/avr-passes.def: New file.
3384 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
3385 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
3386 (make_avr_pass_recompute_note): New proto.
3387 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
3388 (avr_pass_recompute_notes): Use anonymous namespace.
3389 (avr_register_passes): Remove function...
3390 (avr_option_override): ...and its call.
3392 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
3394 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
3395 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
3396 PTF_AVOID_BRANCHLIKELY_SPEED for others.
3397 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
3399 * config/mips/mips.c (mips_option_override): Enable the branch
3400 likely depending on the tune flags and optimization level.
3401 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
3402 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
3403 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
3404 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
3406 2016-10-11 Richard Biener <rguenther@suse.de>
3408 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
3409 (output_function): Properly stream the whole block tree.
3410 * lto-streamer-in.c (input_function): Likewise.
3412 2016-10-11 Marek Polacek <polacek@redhat.com>
3414 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
3416 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3418 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
3419 (evrp_dom_walker::before_dom_children): Infer and push new value
3420 ranges for x in y < x.
3422 2016-10-10 Joseph Myers <joseph@codesourcery.com>
3425 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
3426 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3427 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3428 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3429 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3430 (IA64_NO_LIBGCC_TFMODE): Likewise.
3432 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3434 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
3437 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
3439 * config.gcc: Add aarch64-*-freebsd* support.
3440 * config.host: Likewise.
3441 * config/aarch64/aarch64-freebsd.h: New file.
3442 * config/aarch64/t-aarch64-freebsd: Ditto.
3444 2016-10-10 Jeff Law <law@redhat.com>
3446 PR tree-optimization/71947
3447 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
3448 B with A within a single statement.
3450 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3452 PR tree-optimization/77824
3453 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
3454 zero cost for copies.
3455 (find_candidates_dom_walker::before_dom_children): Replace
3456 MODIFY_EXPR with SSA_NAME.
3457 (replace_mult_candidate): Likewise.
3458 (replace_profitable_candidates): Likewise.
3460 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3462 * config/s390/s390.h: Wrap more macros args in brackets and fix
3464 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
3466 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
3468 2016-10-10 Andreas Schwab <schwab@suse.de>
3471 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
3472 pseudo is not DImode.
3474 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
3476 * common/config/arc/arc-common.c (arc_option_optimization_table):
3477 Remove compact casesi option.
3478 * config/arc/arc.c (arc_override_options): Use compact casesi
3479 option only for pre-ARCv2 cores.
3480 * doc/invoke.texi (mcompact-casesi): Update text.
3482 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3484 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
3485 Add macro to say we can efficiently handle overlapping unaligned
3487 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
3488 poor code for processors older than p8.
3490 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
3492 * gen-pass-instances.awk: Remove GNUism.
3494 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3496 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
3497 NULL of (*ipcp_transformations)][node->uid].
3499 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
3501 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3502 (MALLOC_ABI_ALIGNMENT): Define.
3504 2016-10-09 Jakub Jelinek <jakub@redhat.com>
3506 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
3507 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
3508 VAR_OR_FUNCTION_DECL_P macros.
3509 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
3510 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
3511 chkp_find_bounds_1): Likewise.
3512 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
3513 * hsa-gen.c (get_symbol_for_decl): Likewise.
3514 * cgraphunit.c (check_global_declaration, analyze_functions,
3515 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
3517 * gimple-fold.c (can_refer_decl_in_current_unit_p,
3518 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
3520 * tree.c (set_decl_section_name, copy_node_stat,
3521 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
3522 merge_dllimport_decl_attributes, handle_dll_attribute,
3523 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
3524 verify_type): Likewise.
3525 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
3526 find_explicit_erroneous_behavior): Likewise.
3527 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
3528 * ipa.c (process_references): Likewise.
3529 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
3530 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
3531 notice_global_symbol, assemble_variable, mark_decl_referenced,
3532 build_constant_desc, output_constant_def_contents, do_assemble_alias,
3533 make_decl_one_only, default_section_type_flags,
3534 categorize_decl_for_section, default_encode_section_info): Likewise.
3535 * trans-mem.c (requires_barrier): Likewise.
3536 * gimple-expr.c (mark_addressable): Likewise.
3537 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
3538 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
3539 expand_debug_expr): Likewise.
3540 * tree-dump.c (dequeue_and_dump): Likewise.
3541 * ubsan.c (instrument_bool_enum_load): Likewise.
3542 * tree-pretty-print.c (print_declaration): Likewise.
3543 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3544 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
3545 * asan.c (asan_protect_global, instrument_derefs): Likewise.
3546 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
3547 pass_build_ssa::execute): Likewise.
3548 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
3549 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
3551 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
3553 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
3554 can_be_nonlocal, remap_decls, copy_debug_stmt,
3555 initialize_inlined_parameters, add_local_variables,
3556 reset_debug_binding, replace_locals_op): Likewise.
3557 * dse.c (can_escape): Likewise.
3558 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
3560 * tree-diagnostic.c (default_tree_printer): Likewise.
3561 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
3562 unpack_ts_decl_with_vis_value_fields,
3563 lto_input_ts_decl_common_tree_pointers): Likewise.
3564 * builtins.c (builtin_save_expr, fold_builtin_expect,
3565 readonly_data_expr): Likewise.
3566 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
3567 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
3569 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3570 * gimplify.c (force_constant_size, gimplify_bind_expr,
3571 gimplify_decl_expr, gimplify_var_or_parm_decl,
3572 gimplify_compound_lval, gimplify_init_constructor,
3573 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
3574 gimplify_type_sizes): Likewise.
3575 * cgraphbuild.c (record_reference, record_type_list, mark_address,
3576 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
3577 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
3578 remove_unused_locals): Likewise.
3579 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
3580 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
3581 * function.c (instantiate_expr, instantiate_decls_1,
3582 setjmp_vars_warning, add_local_decl): Likewise.
3583 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
3585 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
3586 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
3587 optimize_va_list_gpr_fpr_size): Likewise.
3588 * tree-nrv.c (pass_nrv::execute): Likewise.
3589 * tsan.c (instrument_expr): Likewise.
3590 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3591 * vtable-verify.c (verify_bb_vtables): Likewise.
3592 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
3593 get_ref_base_and_extent): Likewise.
3594 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
3596 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
3597 analyze_all_variable_accesses): Likewise.
3598 * tree-nested.c (get_nonlocal_debug_decl,
3599 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
3600 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
3601 get_local_debug_decl, convert_local_omp_clauses,
3602 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
3604 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
3605 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
3606 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
3607 dbxout_symbol, dbxout_common_check): Likewise.
3608 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
3609 string_constant): Likewise.
3610 * hsa.c (hsa_get_declaration_name): Likewise.
3611 * passes.c (rest_of_decl_compilation): Likewise.
3612 * tree-ssanames.c (make_ssa_name_fn): Likewise.
3613 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
3614 pack_ts_decl_with_vis_value_fields,
3615 write_ts_decl_common_tree_pointers): Likewise.
3616 * stor-layout.c (place_field): Likewise.
3617 * symtab.c (symtab_node::maybe_create_reference,
3618 symtab_node::verify_base, symtab_node::make_decl_local,
3619 symtab_node::copy_visibility_from,
3620 symtab_node::can_increase_alignment_p): Likewise.
3621 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
3622 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
3623 fortran_common, add_location_or_const_value_attribute,
3624 add_scalar_info, add_linkage_name, set_block_abstract_flags,
3625 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
3626 optimize_one_addr_into_implicit_ptr,
3627 optimize_location_into_implicit_ptr): Likewise.
3628 * gimple-low.c (record_vars_into): Likewise.
3629 * ipa-visibility.c (update_vtable_references): Likewise.
3630 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
3632 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
3633 DFS::DFS_write_tree_body, write_symbol): Likewise.
3634 * langhooks.c (lhd_warn_unused_global_decl,
3635 lhd_set_decl_assembler_name): Likewise.
3636 * attribs.c (decl_attributes): Likewise.
3637 * except.c (output_ttype): Likewise.
3638 * varpool.c (varpool_node::get_create, ctor_for_folding,
3639 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
3640 * fold-const.c (fold_unary_loc): Likewise.
3641 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3642 ipa_find_agg_cst_from_init): Likewise.
3643 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
3644 expand_omp_target, lower_omp_regimplify_p,
3645 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
3646 find_link_var_op): Likewise.
3647 * tree-chrec.c (chrec_contains_symbols): Likewise.
3648 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
3649 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
3650 execute_fixup_cfg): Likewise.
3652 PR tree-optimization/77901
3653 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
3654 if ranges[i].exp is SSA_NAME when looking for >= and only when
3655 ranges[i].exp is NULL or SSA_NAME when looking for the other
3658 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3660 * ipa-cp.c (ipcp_alignment_lattice): Remove.
3661 (ipcp_param_lattices): Remove field alignment.
3662 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
3663 (set_all_contains_variable): Remove call to
3664 ipcp_alignment_lattice::set_to_bottom.
3665 (initialize_node_lattices): Likewise.
3666 (propagate_alignment_accross_jump_function): Remove.
3667 (propagate_constants_accross_call): Remove call to
3668 propagate_alignment_accross_jump_function.
3669 (ipcp_store_alignment_results): Remove.
3670 (ipcp_driver): Remove call to ipcp_store_alignment_results.
3671 (propagate_bits_accross_jump_function): Handle ancestor jump function.
3672 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
3673 pretty-printing of alignment jump function.
3674 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
3675 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
3676 alignments and remove computing ipa_alignment jump function.
3677 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
3678 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
3679 (ipa_read_jump_function): Remove reading of ipa_alignment.
3680 (write_ipcp_transformation_info): Remove streaming for alignment
3681 propagation summary.
3682 (read_ipcp_transformation_info): Remove reading of alignment
3683 propagation summary.
3684 (ipcp_update_alignments): Remove.
3685 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
3687 (ipcp_transform_function): Remove call to ipcp_update_alignments()
3688 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
3689 * ipa-prop.h (ipa_alignment): Remove.
3690 (ipa_jump_func): Remove field alignment.
3691 (ipcp_transformation_summary): Remove field alignments.
3692 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
3693 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
3694 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
3696 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
3698 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
3700 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
3702 (visium_expand_fp_cstore): Likewise.
3704 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3706 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
3707 * diagnostic.c (warning_at_rich_loc_n): New function.
3708 (diagnostic_n_impl_richloc): Likewise.
3709 (diagnostic_n_impl): Move most of the function to
3710 diagnostic_n_impl_richloc and call it.
3712 2016-10-08 Jakub Jelinek <jakub@redhat.com>
3714 * gen-pass-instances.awk: Rewritten.
3715 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
3716 $(PASSES_EXTRA) after passes.def to the script.
3717 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
3718 * config/i386/i386-passes.def: New file.
3719 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
3720 make_pass_stv): Declare.
3721 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
3723 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
3725 (pass_stv::clone, pass_stv::set_pass_param): New methods.
3726 (pass_stv::timode_p): New non-static data member.
3727 (ix86_option_override): Don't register passes here.
3729 * doc/invoke.texi: Document accepting Else, fallthrough.
3731 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
3734 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
3735 FALLTHRU comment styles.
3737 2016-10-07 Andrew Pinski <apinski@cavium.com>
3739 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
3740 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
3741 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
3743 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
3745 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
3747 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
3748 (AARCH64_ARCH): Likewise.
3749 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
3751 (AARCH64_CORE): Likewise.
3752 (AARCH64_ARCH): Likewise.
3753 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
3754 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3755 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
3756 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3757 (AARCH64_ARCH): Likewise.
3758 (AARCH64_CORE): Likewise.
3759 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
3760 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
3761 (AARCH64_CORE): Likewise.
3762 (AARCH64_ARCH): Likewise.
3764 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3766 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
3767 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
3768 floating point type infrastructre, and -mfloat128 that enables the
3769 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
3770 if -mfloat128-type. Define __ibm128 to be long double by default.
3771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
3772 the IEEE 128-bit floating point type infrastructure should
3773 automatically be enabled.
3774 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
3775 instead of -mfloat128 to enable KFmode.
3776 (rs6000_option_override_internal): Split the option -mfloat128
3777 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
3778 systems, automatically set -mfloat128-type, but don't enable it on
3779 other operating systems. Move setting the long double size and
3780 IEEE quad support before the IEEE 128-bit floating point changes.
3781 (rs6000_init_builtins): Do not create a unique type for __ibm128
3782 if long double is IBM extended double, instead rely on __ibm128
3783 being defined as 'long double'. If -mfloat128-type and not
3784 -mfloat128, create the KFmode type with an undocumented __ieee128
3786 (rs6000_init_libfuncs): Use -mfloat128-type instead of
3787 -mfloat128 for tests about the types, but keep tests for
3788 -mfloat128 to enable the keyword support.
3789 (rs6000_complex_function_value): Likewise.
3790 (rs6000_scalar_mode_supported_p): Likewise.
3791 (rs6000_floatn_mode): Likewise.
3792 (rs6000_c_mode_for_suffix): Likewise.
3793 (rs6000_opt_masks): Add -mfloat128-type.
3794 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
3795 -mfloat128-type being split from -mfloat128. Add
3796 -mfloat128-hardware, which was missing.
3797 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
3798 -mfloat128 and -mfloat128-type:
3799 (-mfloat128-type): Likewise.
3800 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
3801 that 64-bit Linux systems with enable -mfloat128-type by default
3803 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
3804 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
3805 -mfloat128-type instead of -mfloat128.
3806 (FLOAT128_2REG_P): Likewise.
3807 (MASK_FLOAT128_TYPE): Likewise.
3808 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3809 (RS6000_BTM_FLOAT128): Likewise.
3810 (TARGET_FLOAT128): Poison old identifiers.
3811 (OPTION_MASK_FLOAT128): Likewise.
3812 (MASK_FLOAT128): Likewise.
3813 * config/rs6000/rs6000.md (FP): Likewise.
3814 (FLOAT128): Likewise.
3815 (fix_trunc<mode>di2): Likewise.
3816 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3817 (floatdi<mode>2): Likewise.
3818 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
3819 (neg<mode>2, FLOAT128 iterator): Likewise.
3820 (abs<mode>2, FLOAT128 iterator): Likewise.
3821 (ieee_128bit_negative_zero): Likewise.
3822 (ieee_128bit_vsx_neg<mode>2): Likewise.
3823 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3824 (ieee_128bit_vsx_abs<mode>2): Likewise.
3825 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3826 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3827 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3828 (extendiftf2): Likewise.
3829 (extendifkf2): Likewise.
3830 (extendtfkf2): Likewise.
3831 (trunciftf2): Likewise.
3832 (truncifkf2): Likewise.
3833 (trunckftf2): Likewise.
3834 (trunctfif2): Likewise.
3835 (extendkftf2): Likewise.
3836 (trunctfkf2): Likewise.
3838 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
3841 before merging in bytes to pass down to real_from_target.
3843 2016-10-07 Richard Biener <rguenther@suse.de>
3845 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
3847 (substitute_and_fold_dom_walker::before_dom_children):
3848 Substitute and fold before pass specific folding to avoid
3849 feeding that with SSA names that will be later released.
3850 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
3851 introduced by folding and visited by evaluate_stmt called during
3853 (likely_value): Likewise.
3854 (evaluate_stmt): Likewise.
3855 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
3856 (simplify_div_or_mod_using_ranges): Likewise.
3857 (simplify_min_or_max_using_ranges): Likewise.
3858 (simplify_abs_using_ranges): Likewise.
3859 (simplify_conversion_using_ranges): Likewise.
3860 (simplify_float_conversion_using_ranges): Likewise.
3861 (simplify_stmt_using_ranges): Likewise.
3863 2016-10-07 Marek Polacek <polacek@redhat.com>
3865 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
3866 FALLTHROUGH_LABEL_P here...
3867 (warn_implicit_fallthrough_r): ...not here.
3869 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
3871 PR tree-optimization/77880
3872 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
3875 2016-10-07 Marek Polacek <polacek@redhat.com>
3878 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
3880 2016-10-07 Richard Biener <rguenther@suse.de>
3882 * bitmap.h: Document constraints on bitmap modification while
3885 2016-10-07 Richard Biener <rguenther@suse.de>
3887 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
3888 * bitmap.h (bmp_iter_set): When advancing to the next element
3889 check that we didn't remove the current one.
3890 (bmp_iter_and): Likewise.
3891 (bmp_iter_and_compl): Likewise.
3892 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
3893 we currently iterate on but keep a one-level queue.
3894 * sched-deps.c (remove_from_deps): Do not clear current bit
3895 but keep a one-level queue.
3897 2016-10-07 Jakub Jelinek <jakub@redhat.com>
3899 PR tree-optimization/77664
3900 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
3901 for the other ranges.
3902 (optimize_range_tests_diff): Fix up formatting.
3903 (optimize_range_tests_var_bound): New function.
3904 (optimize_range_tests): Use it.
3906 2016-10-07 Martin Liska <mliska@suse.cz>
3908 * coverage.c (build_gcov_exit_decl): Fix priority what
3909 should be really 99.
3911 2016-10-07 Richard Biener <rguenther@suse.de>
3913 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
3914 vars in gimple_bind_vars but not in BLOCK_VARS.
3916 2016-10-07 Richard Biener <rguenther@suse.de>
3918 PR tree-optimization/77879
3919 * tree-ssa-structalias.c (handle_const_call): Properly handle
3921 (handle_pure_call): Likewise.
3923 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3925 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
3926 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
3929 2016-10-06 Andrew Pinski <apinski@cavium.com>
3931 * config/aarch64/aarch64-cores.def: Add a comment before each
3934 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
3936 PR tree-optimization/77862
3937 * tree-vrp.c (add_equivalence): Use get_value_range so that
3938 num_vr_values is checked before accessing vr_values.
3940 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
3942 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
3945 2016-10-05 Jeff Law <law@redhat.com>
3947 PR tree-optimization/71661
3948 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
3949 removal of a forwarder exposes a new natural loop.
3951 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
3953 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
3954 Introduce ssesuffix variable.
3955 (<mask_codefor><code><mode>3<mask_name>): Ditto.
3956 (*<code><mode>3): Ditto.
3958 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
3960 * postreload.c (reload_cse_simplify): Skip also USE when detecting
3963 2016-10-06 Richard Biener <rguenther@suse.de>
3965 PR tree-optimization/77855
3966 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
3967 instead of removing the current item while iterating over the set
3970 2016-10-06 James Clarke <jrtc27@jrtc27.com>
3971 Eric Botcazou <ebotcazou@adacore.com>
3974 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
3975 (classify_registers): Don't set it
3976 (function_arg_slotno): Don't initialize and test it. Tidy up.
3978 2016-10-06 Richard Biener <rguenther@suse.de>
3980 PR tree-optimization/77839
3981 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
3984 2016-10-06 Martin Liska <mliska@suse.cz>
3986 * gcc.c: Set -fprofile-update=atomic when profiling is
3987 enabled and -pthread is set. Warn when one combines
3988 -pthread and -fprofile-update=single for an app using
3991 2016-10-06 Martin Liska <mliska@suse.cz>
3994 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
3995 * gimple-ssa-strength-reduction.c (slsr_process_cast):
3996 Initialize a pointer to NULL.
3997 (slsr_process_copy): Likewise.
3998 * input.c (location_get_source_line): Likewise.
3999 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4001 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
4003 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
4004 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
4005 (ix86_handle_option): Deleted handle of OPT_mpcommit.
4006 * config.gcc: Deleted pcommitintrin.h
4007 * config/i386/pcommitintrin.h: Deleted file.
4008 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
4009 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
4011 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
4013 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
4014 (PTA_PCOMMIT): Deleted define.
4015 (ix86_option_override_internal): Deleted handle of option.
4016 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
4017 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
4018 __builtin_ia32_pcommit): Deleted.
4019 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
4020 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
4021 (pcommit): Deleted instruction.
4022 * config/i386/i386.opt: Mention -mpcommit deprecation.
4023 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
4025 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
4028 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
4029 Remove wrong assert.
4030 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
4031 Use <round_constraint> as operand 1 constraint.
4033 2016-10-05 Jakub Jelinek <jakub@redhat.com>
4036 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
4037 (ubsan_instrument_float_cast): And not here.
4040 * ubsan.c (ubsan_ids): New GTY(()) array.
4041 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
4042 instead of static local counters.
4044 2016-10-05 Martin Sebor <msebor@redhat.com>
4047 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
4048 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
4049 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
4050 (default_printf_pointer_format): Define function.
4051 * targhooks.c (linux_printf_pointer_format): Define new function.
4052 * targhooks.h (linux_printf_pointer_format): Declare.
4053 (gnu_libc_printf_pointer_format): Remove declaration.
4055 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4057 * fold-const.c (native_encode_real): Fix logic for selecting offset
4058 to write to when BYTES_BIG_ENDIAN.
4060 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
4062 * builtins.c (fold_builtin_strchr): Remove function.
4063 (fold_builtin_strrchr): Likewise.
4064 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
4065 * gimple-fold.c (target_char_cst_p): New function.
4066 (gimple_fold_builtin_strchr) Add more foldings.
4067 (gimple_fold_builtin): Add index, strrchr, rindex cases.
4069 2016-10-05 Richard Biener <rguenther@suse.de>
4072 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
4073 capture ids in c-exprs.
4075 2016-10-05 Richard Biener <rguenther@suse.de>
4078 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
4079 with types_match for GIMPLE code gen to handle type mismatched
4081 (dt_operand::gen): Adjust.
4082 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
4085 2016-10-05 Richard Biener <rguenther@suse.de>
4087 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
4089 2016-10-05 Richard Biener <rguenther@suse.de>
4092 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
4094 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
4096 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
4097 version check to protect only DW_TAG_imported_module generation.
4099 2016-10-05 Richard Biener <rguenther@suse.de>
4102 * match.pd (min(a,-a) -> -abs(a)): New pattern.
4104 2016-10-04 Ian Lance Taylor <iant@golang.org>
4106 * explow.c (allocate_dynamic_stack_space): Call
4107 do_pending_stack_adjust before handling flag_split_stack.
4109 2016-10-04 David Malcolm <dmalcolm@redhat.com>
4111 * genattrtab.c (make_internal_attr): Supply dummy column number to
4114 * genoutput.c (init_insn_for_nothing): Likewise.
4115 * gensupport.c (add_define_attr): Likewise.
4116 * read-md.c (message_at_1): Print column number.
4117 (fatal_with_file_and_line): Likewise.
4118 (rtx_reader::read_char): Track column numbers.
4119 (rtx_reader::unread_char): Likewise.
4120 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
4121 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
4122 (rtx_reader::handle_file): Initialize m_read_md_colno.
4123 (rtx_reader::get_current_location): Supply column number to
4125 * read-md.h (struct file_location): Add field "colno".
4126 (file_location::file_location): Likewise.
4127 (rtx_reader::get_colno): New accessor.
4128 (rtx_reader::m_read_md_colno): New field.
4129 (rtx_reader::m_last_line_colno): New field.
4131 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4133 * doc/extend.texi (Java Exceptions): Remove.
4134 (java_interface): Remove.
4136 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
4138 PR tree-optimization/77808
4139 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
4140 and addr are different before copying points-to information.
4142 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
4144 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
4145 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
4146 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
4147 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
4149 2016-10-04 Richard Biener <rguenther@suse.de>
4151 PR tree-optimization/77399
4152 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
4153 verify the target can convert.
4155 2016-10-04 Richard Biener <rguenther@suse.de>
4158 * explow.c (plus_constant): Verify the mode of the constant
4159 pool offset before calling plus_constant.
4161 2016-10-04 Richard Biener <rguenther@suse.de>
4164 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
4165 type support, mark with :C.
4166 (X / -X -> -1): Mark with :C.
4168 2016-10-04 Jakub Jelinek <jakub@redhat.com>
4170 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
4171 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
4172 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
4173 * doc/tm.texi: Regenerated.
4174 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
4175 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
4176 * config/darwin.h (JCR_SECTION_NAME): Remove.
4177 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
4178 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
4179 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
4180 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
4181 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
4182 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
4184 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4186 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
4187 between "because" and "param" in dump message in call to fprintf.
4189 2016-10-03 Jeff Law <law@redhat.com>
4191 PR tree-optimization/71550
4192 PR tree-optimization/71403
4193 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
4194 (profitable_jump_thread_path): Also return boolean indicating if
4195 the realized path will create an irreducible loop.
4196 Remove loop depth tests from 71403.
4197 (fsm_find_control_statement_thread_paths): Remove loop depth tests
4198 from 71403. If threading will create an irreducible loop, then
4199 throw away loop iteration and related information.
4201 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
4203 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
4204 -Woverloaded-virtual checks for warning options.
4205 * configure: Regenerate.
4207 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4209 PR preprocessor/77699
4210 * input.c (maybe_grow): Don't allocate one byte extra headroom.
4211 (get_next_line): Return false on error.
4212 (read_next_line): Removed, use get_next_line instead.
4213 (read_line_num): Don't copy the line.
4214 (location_get_source_line): Don't use static data.
4215 (selftest::test_reading_source_line): Add more test cases.
4217 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4220 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4222 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4223 (noce_process_if_block): Use it.
4225 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4227 * doc/invoke.texi: Update -Wint-in-bool-context.
4229 2016-10-02 Jakub Jelinek <jakub@redhat.com>
4231 * dwarf2out.c (output_fde, output_call_frame_info,
4232 dwarf2out_do_cfi_startproc, set_indirect_string,
4233 gen_internal_sym, output_die, output_line_info): Use
4234 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
4235 ASM_GENERATE_INTERNAL_LABEL output.
4237 2016-10-01 Richard Biener <rguenther@suse.de>
4240 * genmatch.c (get_operand_type): Add operand position arg
4241 and handle COND_EXPR comparison operand with fixed boolean_type_node.
4242 (expr::gen_transform): Adjust.
4243 (dt_simplify::gen_1): Likewise.
4245 2016-10-01 Jakub Jelinek <jakub@redhat.com>
4247 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
4248 comments. Simplify asserts, remove unnecessary conditions.
4250 (*<code><mode>3): Likewise.
4252 2016-09-30 Jakub Jelinek <jakub@redhat.com>
4254 * doc/invoke.texi (-Wregister): Document.
4256 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4258 * configure.ac: Split CHECKING_P into CHECKING_P and
4259 ENABLE_EXTRA_CHECKING.
4260 * configure: Regenerated.
4261 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
4262 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
4264 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
4267 * gcc.c (process_command): For @filename handling, output
4268 the correct name if the file does not exist.
4270 2016-09-30 Marek Polacek <polacek@redhat.com>
4272 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
4273 * config/alpha/predicates.md: Likewise.
4275 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4277 * ifcvt.c (noce_try_avoid_const_materialization): New function.
4278 (noce_process_if_block): Use it.
4280 2016-09-30 Martin Liska <mliska@suse.cz>
4282 * doc/invoke.texi: Document asan-use-after-return that
4283 it's disabled by default in runtime.
4285 2016-09-30 Richard Biener <rguenther@suse.de>
4287 * tree-vrp.c (intersect_ranges): If we failed to handle
4288 the intersection choose a constant singleton range if available.
4290 2016-09-30 Richard Biener <rguenther@suse.de>
4292 PR tree-optimization/77399
4293 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4294 float <-> int conversions.
4296 2016-09-30 Alan Modra <amodra@gmail.com>
4298 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
4300 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4302 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
4303 ext_level before calling CPUID with 0x80000008.
4304 Simplify xgetbv checks.
4306 2016-09-29 David Malcolm <dmalcolm@redhat.com>
4308 * Makefile.in (OBJS): Add print-rtl-function.o.
4309 * print-rtl-function.c: New file.
4310 * print-rtl.h (print_rtx_function): New decl.
4312 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
4315 * config/i386/cpuid.h (__get_cpuid_count): New.
4316 (__get_cpuid): Rename __level to __leaf.
4318 2016-09-29 Marek Polacek <polacek@redhat.com>
4320 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
4322 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
4324 * builtins.c (expand_builtin_memcmp): don't swap args unless
4325 result is only being compared with zero.
4327 2016-09-29 Marek Polacek <polacek@redhat.com>
4329 * dwarf2out.c (loc_descriptor): Add fall through comment.
4330 (add_const_value_attribute): Likewise.
4332 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
4334 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
4335 with "v6t2". Move "arch" attribute above "pool_range".
4336 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
4338 (*thumb2_movhi_vfp): Likewise.
4339 (*arm_movhi_fp16): Likewise.
4340 (*thumb2_movhi_fp16): Likewise.
4341 (*arm_movsi_vfp): Remove "arch" attribute.
4342 (*thumb2_movsi_vfp): Likewise.
4344 2016-09-29 Martin Liska <mliska@suse.cz>
4346 * doc/extend.texi: Remove limitation of Objective C for
4347 __attribute__((constructor)) and __attribute__((destructor)).
4349 2016-09-29 Richard Biener <rguenther@suse.de>
4351 PR tree-optimization/77768
4352 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4353 Handle stores to readonly memory when removing redundant stores.
4355 2016-09-29 Richard Biener <rguenther@suse.de>
4358 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
4359 X / -X -> -1 simplifications.
4361 2016-09-29 Richard Biener <rguenther@suse.de>
4364 * match.pd: Add max(a,-a) -> abs(a) pattern.
4365 * tree-ssa-phiopt.c (minmax_replacement): Disable for
4366 HONOR_SIGNED_ZEROS types.
4368 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
4370 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
4371 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
4373 2016-09-29 Richard Biener <rguenther@suse.de>
4375 * tree-vrp.c (set_defs_to_varying): New helper avoiding
4376 writing to vr_const_varying.
4377 (vrp_initialize): Call it.
4378 (vrp_visit_stmt): Likewise.
4379 (evrp_dom_walker::before_dom_children): Likewise.
4381 2016-09-29 Richard Biener <rguenther@suse.de>
4383 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
4384 constructors with vector elements.
4386 2016-09-29 Richard Biener <rguenther@suse.de>
4388 PR tree-optimization/77768
4389 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
4390 with stores to a place we know has a constant value.
4392 2016-09-29 Alan Modra <amodra@gmail.com>
4394 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
4395 * doc/invoke.texi: Document it.
4396 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
4397 (rs6000_passes_float): Comment.
4398 (rs6000_passes_long_double): New static var.
4399 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
4400 (init_cumulative_args): Set up to emit fp .gnu_attribute for
4401 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
4402 to include fp values returned in vectors.
4403 Set rs6000_passes_long_double.
4404 (rs6000_function_arg_advance_1): Likewise for function args.
4405 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
4406 and SPE. Emit long double tag value too.
4407 (rs6000_opt_vars): Add gnu-attr.
4408 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
4409 * configure: Regenerate.
4410 * config.in: Regenerate.
4412 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4414 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
4416 (format_floating, format_string, format_directive,
4417 get_destination_size, pass_sprintf_length::handle_gimple_call):
4420 2016-09-28 Jakub Jelinek <jakub@redhat.com>
4422 * gimple-ssa-sprintf.c: Fix comment formatting.
4423 (format_integer): Use is_gimple_assign.
4424 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
4425 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
4426 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
4427 (pass_sprintf_length::execute): Use is_gimple_call.
4429 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4431 * gimple-fold.c (gimple_fold_builtin): After failing to fold
4432 strchr, also try the generic folding.
4434 2016-09-28 Martin Sebor <msebor@redhat.com>
4437 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
4440 2016-09-28 Martin Sebor <msebor@redhat.com>
4443 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
4444 length modifier is not expected.
4445 (format_floating): Ignore l length modifier and fail gracefuly
4446 when it isn't one of the other expected ones.
4448 2016-09-28 Martin Sebor <msebor@redhat.com>
4451 * varasm.c (assemble_addr_to_section): Increase local buffer size.
4453 2016-09-27 Richard Biener <rguenther@suse.de>
4455 * dwarf2out.c (cu_die_list): New global.
4456 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
4457 main_comp_unit_die to cu_die_list if we created it.
4458 Move break_out_includes ...
4459 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
4462 2016-09-28 Richard Biener <rguenther@suse.de>
4464 * dwarf2out.c (struct die_struct): Add removed flag.
4465 (lookup_type_die): If the DIE is marked as removed, clear
4466 TYPE_SYMTAB_DIE and return NULL.
4467 (lookup_decl_die): If the DIE is marked as removed, remove it
4468 from the hash and return NULL.
4469 (mark_removed): New helper.
4470 (prune_unused_types_prune): Call it for removed DIEs.
4471 (gen_subprogram_die): Move the premark_used_types call to after
4472 DIEs for the functions scopes are generated.
4473 (process_scope_var): Do not re-create pruned types or type decls.
4474 Make sure to also re-parent type decls.
4475 (dwarf2out_finish): Move unused type pruning and debug_types
4477 (dwarf2out_early_finish): ... here.
4479 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4481 * config/arc/arc-c.c: New file.
4482 * config/arc/arc-c.def: Likewise.
4483 * config/arc/t-arc: Likewise.
4484 * config.gcc: Include arc-c.o as c and cpp object.
4485 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
4486 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
4487 arc_cpu_cpp_builtins.
4489 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
4491 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
4492 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
4494 2016-09-28 Nathan Sidwell <nathan@acm.org>
4496 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
4499 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
4501 PR tree-optimization/61056
4502 * gimple-fold.c (gimple_fold_builtin_strchr):
4503 New function to optimize strchr (s, 0) to strlen.
4504 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
4506 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
4508 PR tree-optimization/77724
4509 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
4510 Add tree_fits_shwi_p check.
4512 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4514 * auto-inc-dec.c (try_merge): Remove break after return.
4515 * cselib.c (autoinc_split): Likewise.
4516 * explow.c (promote_mode): Likewise.
4517 * fixed-value.c (fixed_arithmetic): Likewise.
4518 * hsa.c (hsa_internal_fn::get_arity): Likewise.
4519 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
4520 * trans-mem.c (get_attrs_for): Likewise.
4521 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
4522 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
4523 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
4524 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
4525 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
4526 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
4527 * config/cris/cris.c (cris_op_str): Likewise.
4528 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
4529 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
4531 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
4533 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
4534 IFN_GOACC_REDUCTION_CODES): New.
4535 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
4536 ifn_goacc_reduction_kind): Use them.
4537 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
4538 of internal functions, when applicable.
4540 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
4542 * config/mips/constraints.md (d): Fix documentation.
4543 * doc/md.texi (Machine Constraints): Update accordingly.
4545 2016-09-27 Richard Biener <rguenther@suse.de>
4547 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
4548 cur_line_info_table initialization ...
4549 (dwarf2out_assembly_start): ... here.
4551 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
4553 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
4554 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
4555 (*thumb2_movhi_vfp): Likewise.
4556 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
4557 template. Expand predicable attribute to mark VMOV.F16 as not
4558 predicable. Add "arch" attribute.
4559 (*thumb2_movhi_fp16): Likewise.
4560 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
4561 (*thumb2_movsi_vfp): Add "arch" attribute.
4563 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
4565 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
4568 2016-09-27 Marek Polacek <polacek@redhat.com>
4570 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
4573 * config/c6x/c6x.h: Adjust fall through comment.
4574 * config/sh/sh.c (final_prescan_insn): Likewise.
4575 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
4576 (visium_expand_fp_cstore): Likewise.
4578 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4580 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
4581 expected by -Wimplicit-fallthrough.
4582 (thumb1_size_rtx_costs): Likewise.
4583 (thumb2_reorg): Likewise.
4584 (tls_mentioned_p): Add "Fall through" comment.
4585 (thumb2_reorg): Likewise.
4586 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
4587 comment form expected by -Wimplicit-fallthrough.
4589 2016-09-27 Martin Liska <mliska@suse.cz>
4591 PR gcov-profile/46266
4592 * input.h (RESERVED_LOCATION_P): New macro.
4593 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
4594 instread of comparison with UNKNOWN_LOCATION.
4596 2016-09-27 Richard Biener <rguenther@suse.de>
4598 PR tree-optimization/77745
4599 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4600 When removing redundant stores make sure to check compatibility
4601 of the TBAA state for downstream accesses.
4602 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
4603 value-numbering virtual operands for store matches.
4605 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4608 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
4609 movrt patterns. Match them before anything else in the SET case.
4611 2016-09-27 Martin Liska <mliska@suse.cz>
4613 PR gcov-profile/7970
4614 PR gcov-profile/16855
4615 PR gcov-profile/44779
4616 * coverage.c (build_gcov_exit_decl): New function.
4617 (coverage_obj_init): Call the function and generate __gcov_exit
4619 * doc/gcov.texi: Document when __gcov_exit function is called.
4621 2016-09-27 Marek Polacek <polacek@redhat.com>
4624 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4625 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
4626 -Wno-error instead of -Wno-implicit-fallthrough.
4628 2016-09-27 Martin Liska <mliska@suse.cz>
4631 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
4633 2016-09-27 Jakub Jelinek <jakub@redhat.com>
4635 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
4636 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
4637 comments. Remove break after return.
4638 (ix86_fp_compare_code_to_integer, has_dispatch,
4639 ix86_simd_clone_usable): Remove break after return.
4641 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4643 PR rlt-optimization/77714
4644 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
4647 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
4650 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
4651 extract_range_from_unary_expr to convert value_range.
4652 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
4653 (extract_range_from_unary_expr): This.
4654 * tree-vrp.h (extract_range_from_unary_expr): Declare.
4656 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
4658 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
4660 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4662 * config/i386/i386.c (ix86_print_operand)
4663 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
4664 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
4665 (epilogue_renumber): Likewise.
4667 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
4670 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
4671 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
4673 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4675 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4676 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
4677 is_mm_seq_cst, is_mm_sync): Move to ...
4678 * memmodel.h: This. New file.
4679 * builtins.c: Include memmodel.h.
4680 * optabs.c: Likewise.
4682 * config/aarch64/aarch64.c: Likewise.
4683 * config/alpha/alpha.c: Likewise.
4684 * config/arm/arm.c: Likewise.
4685 * config/i386/i386.c: Likewise.
4686 * config/ia64/ia64.c: Likewise.
4687 * config/mips/mips.c: Likewise.
4688 * config/rs6000/rs6000.c: Likewise.
4689 * config/sparc/sparc.c: Likewise.
4690 * genconditions.c: Include memmodel.h in generated file.
4691 * genemit.c: Likewise.
4692 * genoutput.c: Likewise.
4693 * genpeep.c: Likewise.
4694 * genpreds.c: Likewise.
4695 * genrecog.c: Likewise.
4697 2016-09-26 David Malcolm <dmalcolm@redhat.com>
4699 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
4700 "c" instead when parsing characters. Move operand parsing into...
4701 (read_rtx_operand): ...this new function, renaming "i" to "idx",
4702 and tightening the scope of various locals.
4704 2016-09-26 Liu Hao <lh_mouse@126.com>
4706 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
4708 2016-09-26 Marek Polacek <polacek@redhat.com>
4710 * system.h: Use __has_attribute to check whether the fallthrough
4711 attribute is supported.
4713 2016-09-26 Marek Polacek <polacek@redhat.com>
4715 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
4716 gimple_call_internal_p.
4717 * ipa-split.c (find_return_bb): Likewise.
4718 (execute_split_functions): Likewise.
4719 * omp-low.c (dump_oacc_loop_part): Likewise.
4720 (oacc_loop_xform_head_tail): Likewise.
4721 * predict.c (predict_loops): Likewise.
4722 * sanopt.c (pass_sanopt::execute): Likewise.
4723 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
4724 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
4725 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
4726 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
4727 (expand_ifn_va_arg): Likewise.
4728 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4729 (optimize_mask_stores): Likewise.
4730 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
4731 (vect_transform_stmt): Likewise.
4732 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
4733 * tsan.c (instrument_memory_accesses): Likewise.
4735 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4736 Alexander Monakov <amonakov@ispras.ru>
4738 * regrename.c (rename_chains): Check
4739 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
4740 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
4741 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4743 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4745 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
4746 (s390_sched_score): Likewise.
4748 2016-09-26 Martin Liska <mliska@suse.cz>
4750 * doc/gcov.texi: Update program output of gcov tool.
4752 2016-09-26 Martin Liska <mliska@suse.cz>
4754 PR gcov-profile/23332
4755 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
4756 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
4757 * value-prof.c (dump_histogram_value): Do not handle
4758 HIST_TYPE_CONST_DELTA.
4759 (stream_in_histogram_value): Likewise.
4760 (gimple_find_values_to_profile): Likewise.
4761 * value-prof.h (enum hist_type): Likewise.
4763 2016-09-26 Martin Liska <mliska@suse.cz>
4765 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
4766 from default sanitize recover values.
4767 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
4768 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
4769 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
4771 * opts.c (finish_options): Do a generic loop over options
4772 that can be recovered.
4773 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
4775 (common_handle_option): Likewise.
4776 * opts.h: Declare can_recover to sanitizer_opts_s.
4778 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
4780 * target.def(elf_flags_numeric): Change documentation to present tense.
4781 * doc/tm.texi: Regenerate.
4783 2016-09-26 Marek Polacek <polacek@redhat.com>
4786 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4787 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
4788 -Wno-switch-fallthrough.
4789 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
4790 (expand_builtin): Likewise.
4791 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
4792 * convert.c (convert_to_real_1): Likewise.
4793 (convert_to_integer_1): Likewise.
4794 * final.c (output_alternate_entry_point): Likewise.
4795 * genattrtab.c (make_canonical): Likewise.
4796 (write_test_expr): Likewise.
4797 * genpreds.c (validate_exp): Likewise.
4798 * gimple-ssa-strength-reduction.c
4799 (find_candidates_dom_walker::before_dom_children): Likewise.
4800 * godump.c (go_format_type): Likewise.
4801 * reload1.c (elimination_effects): Likewise.
4802 * resource.c (mark_referenced_resources): Likewise.
4803 (mark_set_resources): Likewise.
4804 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
4805 * varasm.c (output_addressed_constants): Likewise.
4807 2016-09-26 Marek Polacek <polacek@redhat.com>
4810 * common.opt (Wimplicit-fallthrough): New option.
4811 * doc/extend.texi: Document statement attributes and the fallthrough
4813 * doc/invoke.texi: Document -Wimplicit-fallthrough.
4814 * gimple.h (gimple_call_internal_p): New function.
4815 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
4816 (struct label_entry): New struct.
4817 (find_label_entry): New function.
4818 (case_label_p): New function.
4819 (collect_fallthrough_labels): New function.
4820 (last_stmt_in_scope): New function.
4821 (should_warn_for_implicit_fallthrough): New function.
4822 (warn_implicit_fallthrough_r): New function.
4823 (maybe_warn_implicit_fallthrough): New function.
4824 (expand_FALLTHROUGH_r): New function.
4825 (expand_FALLTHROUGH): New function.
4826 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
4827 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
4828 (gimplify_label_expr): New function.
4829 (gimplify_case_label_expr): Set location.
4830 (gimplify_expr): Call gimplify_label_expr.
4831 * internal-fn.c (expand_FALLTHROUGH): New function.
4832 * internal-fn.def (FALLTHROUGH): New internal function.
4833 * langhooks.c (lang_GNU_OBJC): New function.
4834 * langhooks.h (lang_GNU_OBJC): Declare.
4835 * system.h (gcc_fallthrough): Define.
4836 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
4837 * tree.h (FALLTHROUGH_LABEL_P): Define.
4839 2016-09-26 Richard Biener <rguenther@suse.de>
4841 * dwarf2out.c (stripattributes): Remove unused function.
4842 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
4843 Push dwarf_split_debug_info handling into init_sections_and_labels.
4844 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
4845 (DEBUG_MACRO_SECTION_FLAGS): Remove.
4846 (debug_macinfo_section_name): New global.
4847 (output_macinfo): Use debug_macinfo_section_name.
4848 (init_sections_and_labels): Split out section and label generation
4849 from dwarf2out_init. Set debug_macinfo_section_name.
4850 (dwarf2out_init): Move text section label generation and emission
4852 (dwarf2out_assembly_start): ... here.
4853 (dwarf2out_finish): Call init_sections_and_labels before DWARF
4856 2016-09-26 Richard Biener <rguenther@suse.de>
4859 * cgraphunit.c (analyze_functions): Before early removing
4860 global vars calls the late_global_decl debug handler mark
4861 the variable as readonly.
4863 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4866 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
4867 (sh_rtx_costs): Handle SET of movt and movrt patterns.
4868 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
4869 declare new overloads.
4870 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
4873 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4875 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
4876 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
4878 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
4880 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
4881 * configure: Regenerate.
4883 2016-09-24 Marek Polacek <polacek@redhat.com>
4886 * doc/invoke.texi: Document -Wbool-operation.
4888 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4890 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
4891 * config/rs6000/rs6000.c (expand_block_compare): New function used by
4892 cmpmemsi pattern to do builtin expansion of memcmp ().
4893 (compute_current_alignment): Add helper function for
4894 expand_block_compare used to compute alignment as the compare proceeds.
4895 (select_block_compare_mode): Used by expand_block_compare to select
4896 the mode used for reading the next chunk of bytes in the compare.
4897 (do_load_for_compare): Used by expand_block_compare to emit the load
4898 insns for the compare.
4899 (rs6000_emit_dot_insn): Moved this function to avoid a forward
4900 reference from expand_block_compare ().
4901 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
4902 prototype for this function.
4903 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
4904 target option for controlling how much code inline expansion of
4905 memcmp() will be allowed to generate.
4907 2016-09-23 Jakub Jelinek <jakub@redhat.com>
4909 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
4910 hook_bool_mode_false, hook_bool_mode_true,
4911 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
4912 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
4913 hook_bool_const_rtx_insn_const_rtx_insn_true,
4914 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
4915 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
4916 hook_bool_const_tree_hwi_hwi_const_tree_false,
4917 hook_bool_const_tree_hwi_hwi_const_tree_true,
4918 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
4919 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
4920 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
4921 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
4922 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
4923 hook_bool_const_tree_true, hook_bool_tree_tree_false,
4924 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
4925 hook_bool_rtx_insn_true, hook_bool_rtx_false,
4926 hook_bool_uintp_uintp_false,
4927 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
4928 hook_rtx_tree_int_null, hook_uint_mode_0,
4929 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
4930 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
4931 hook_constcharptr_const_rtx_insn_null,
4932 hook_constcharptr_const_tree_const_tree_null,
4933 hook_constcharptr_int_const_tree_null,
4934 hook_constcharptr_int_const_tree_const_tree_null,
4935 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
4936 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
4937 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
4939 * vec.h (vNULL): Extend comment to say = vNULL initialization
4940 isn't needed for static vars.
4942 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
4943 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
4944 = vNULL initialization of file scope vec.
4945 * passes.c (pass_tab, enabled_pass_uid_range_tab,
4946 disabled_pass_uid_range_tab): Likewise.
4947 * haifa-sched.c (sched_luids, h_i_d): Likewise.
4948 * tree-chkp-opt.c (check_infos): Likewise.
4949 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
4951 * vec.h (vnull::operator vec): Add constexpr keyword for
4954 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
4956 PR tree-optimization/77654
4957 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
4958 to duplicate_ssa_name_ptr_info.
4960 2016-09-23 David Malcolm <dmalcolm@redhat.com>
4962 PR preprocessor/77672
4963 * input.c (selftest::test_lexer_string_locations_simple): Update
4964 test to expect location information of the terminator character
4965 at the location of the final closing quote.
4966 (selftest::test_lexer_string_locations_hex): Likewise.
4967 (selftest::test_lexer_string_locations_oct): Likewise.
4968 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
4969 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
4970 (selftest::test_lexer_string_locations_ucn4): Likewise.
4971 (selftest::test_lexer_string_locations_ucn8): Likewise.
4972 (selftest::test_lexer_string_locations_u8): Likewise.
4973 (selftest::test_lexer_string_locations_utf8_source): Likewise.
4974 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
4975 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
4976 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
4977 (selftest::test_lexer_string_locations_macro): Likewise.
4978 (selftest::test_lexer_string_locations_long_line): Likewise.
4980 2016-09-23 Richard Biener <rguenther@suse.de>
4982 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
4983 virtual definition to virtual use if the call devirtualizes
4984 to a const or pure function.
4985 (visit_use): Also visit calls we can devirtualize to a
4986 const or pure function.
4988 2016-09-23 Richard Biener <rguenther@suse.de>
4990 PR tree-optimization/77697
4991 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
4992 signal error if we have sth ternary or unhandled.
4994 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4996 * config/arm/arm_neon.h (vabd_f16): New.
5030 (vcvt_f16_s16): New.
5031 (vcvt_f16_u16): New.
5032 (vcvt_s16_f16): New.
5033 (vcvt_u16_f16): New.
5034 (vcvtq_f16_s16): New.
5035 (vcvtq_f16_u16): New.
5036 (vcvtq_s16_f16): New.
5037 (vcvtq_u16_f16): New.
5038 (vcvta_s16_f16): New.
5039 (vcvta_u16_f16): New.
5040 (vcvtaq_s16_f16): New.
5041 (vcvtaq_u16_f16): New.
5042 (vcvtm_s16_f16): New.
5043 (vcvtm_u16_f16): New.
5044 (vcvtmq_s16_f16): New.
5045 (vcvtmq_u16_f16): New.
5046 (vcvtn_s16_f16): New.
5047 (vcvtn_u16_f16): New.
5048 (vcvtnq_s16_f16): New.
5049 (vcvtnq_u16_f16): New.
5050 (vcvtp_s16_f16): New.
5051 (vcvtp_u16_f16): New.
5052 (vcvtpq_s16_f16): New.
5053 (vcvtpq_u16_f16): New.
5054 (vcvt_n_f16_s16): New.
5055 (vcvt_n_f16_u16): New.
5056 (vcvtq_n_f16_s16): New.
5057 (vcvtq_n_f16_u16): New.
5058 (vcvt_n_s16_f16): New.
5059 (vcvt_n_u16_f16): New.
5060 (vcvtq_n_s16_f16): New.
5061 (vcvtq_n_u16_f16): New.
5075 (vmul_lane_f16): New.
5078 (vmulq_lane_f16): New.
5100 (vrsqrteq_f16): New.
5104 (vrsqrtsq_f16): New.
5108 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5110 * config.gcc (extra_headers): Add arm_fp16.h
5111 * config/arm/arm_fp16.h: New.
5112 * config/arm/arm_neon.h: Include "arm_fp16.h".
5114 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5116 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
5118 (vmulf): New (v8hf, v4hf variants).
5119 (vfma): New (v8hf, v4hf variants).
5120 (vfms): New (v8hf, v4hf variants).
5121 (vsub): New (v8hf, v4hf variants).
5122 (vcage): New (v8hf, v4hf variants).
5123 (vcagt): New (v8hf, v4hf variants).
5124 (vcale): New (v8hf, v4hf variants).
5125 (vcalt): New (v8hf, v4hf variants).
5126 (vceq): New (v8hf, v4hf variants).
5127 (vcgt): New (v8hf, v4hf variants).
5128 (vcge): New (v8hf, v4hf variants).
5129 (vcle): New (v8hf, v4hf variants).
5130 (vclt): New (v8hf, v4hf variants).
5131 (vceqz): New (v8hf, v4hf variants).
5132 (vcgez): New (v8hf, v4hf variants).
5133 (vcgtz): New (v8hf, v4hf variants).
5134 (vcltz): New (v8hf, v4hf variants).
5135 (vclez): New (v8hf, v4hf variants).
5136 (vabd): New (v8hf, v4hf variants).
5137 (vmaxf): New (v8hf, v4hf variants).
5138 (vmaxnm): New (v8hf, v4hf variants).
5139 (vminf): New (v8hf, v4hf variants).
5140 (vminnm): New (v8hf, v4hf variants).
5141 (vpmaxf): New (v4hf variant).
5142 (vpminf): New (v4hf variant).
5143 (vpadd): New (v4hf variant).
5144 (vrecps): New (v8hf, v4hf variants).
5145 (vrsqrts): New (v8hf, v4hf variants).
5146 (vabs): New (v8hf, v4hf variants).
5147 (vneg): New (v8hf, v4hf variants).
5148 (vrecpe): New (v8hf, v4hf variants).
5149 (vrnd): New (v8hf, v4hf variants).
5150 (vrnda): New (v8hf, v4hf variants).
5151 (vrndm): New (v8hf, v4hf variants).
5152 (vrndn): New (v8hf, v4hf variants).
5153 (vrndp): New (v8hf, v4hf variants).
5154 (vrndx): New (v8hf, v4hf variants).
5155 (vrsqrte): New (v8hf, v4hf variants).
5156 (vmul_lane): Add v4hf and v8hf variants.
5157 (vmul_n): Add v4hf and v8hf variants.
5158 (vext): New (v8hf, v4hf variants).
5159 (vcvts): New (v8hi, v4hi variants).
5160 (vcvts): New (v8hf, v4hf variants).
5161 (vcvtu): New (v8hi, v4hi variants).
5162 (vcvtu): New (v8hf, v4hf variants).
5163 (vcvts_n): New (v8hf, v4hf variants).
5164 (vcvtu_n): New (v8hi, v4hi variants).
5165 (vcvts_n): New (v8hi, v4hi variants).
5166 (vcvtu_n): New (v8hf, v4hf variants).
5167 (vbsl): New (v8hf, v4hf variants).
5168 (vcvtas): New (v8hf, v4hf variants).
5169 (vcvtau): New (v8hf, v4hf variants).
5170 (vcvtms): New (v8hf, v4hf variants).
5171 (vcvtmu): New (v8hf, v4hf variants).
5172 (vcvtns): New (v8hf, v4hf variants).
5173 (vcvtnu): New (v8hf, v4hf variants).
5174 (vcvtps): New (v8hf, v4hf variants).
5175 (vcvtpu): New (v8hf, v4hf variants).
5177 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5179 * config/arm/arm-builtins.c (hf_UP): New.
5181 (vfp_builtin_data): New. Update comment.
5182 (enum arm_builtins): Include "arm_vfp_builtins.def".
5183 (ARM_BUILTIN_VFP_PATTERN_START): New.
5184 (arm_init_vfp_builtins): New.
5185 (arm_init_builtins): Add arm_init_vfp_builtins.
5186 (arm_expand_vfp_builtin): New.
5187 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
5189 * config/arm/arm_vfp_builtins.def: New file.
5190 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
5191 (arm-builtins.o): Likewise.
5193 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5196 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
5197 from constant while creating value range.
5199 2016-09-23 Renlin Li <renlin.li@arm.com>
5201 * ira.c (ira): Move ira_use_lra_p initialization code to ...
5202 (ira_init_once): Here.
5204 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
5205 Jakub Jelinek <jakub@redhat.com>
5207 * hooks.h (hook_uint_uintp_false): Rename to...
5208 (hook_bool_uint_uintp_false): ... this.
5209 * hooks.c (hook_uint_uintp_false): Rename to...
5210 (hook_bool_uint_uintp_false): ... this.
5211 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
5212 instead of hook_uint_uintp_false.
5214 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5216 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
5217 (arm_init_builtins): Move body of a loop to the standalone
5218 function arm_init_neon_builtin.
5219 (arm_expand_neon_builtin_1): New. Update comment. Function body
5220 moved from arm_neon_builtin with some white-space fixes.
5221 (arm_expand_neon_builtin): Move code into the standalone function
5222 arm_expand_neon_builtin_1.
5224 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5226 * config/arm/iterators.md (VCVTHI): New.
5227 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
5231 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
5232 (V_HALF): Add V4HF. Fix white-space.
5233 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
5234 (V_s_elem): Likewise.
5235 (V_sz_elem): Fix white-space.
5236 (V_elem_ch): Likewise.
5238 (scalar_mul_constraint): Add V8HF and V4HF.
5239 (Is_float_mode): Fix white-space.
5240 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
5241 (q): Add HF. Fix white-space.
5244 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
5245 (neon_vfm_lane_as): New.
5246 * config/arm/neon.md (add<mode>3_fp16): New.
5247 (sub<mode>3_fp16): New.
5248 (mul<mode>3add<mode>_neon): New.
5249 (fma<VH:mode>4_intrinsic): New.
5250 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
5251 (fmsub<VH:mode>4_intrinsic): New.
5252 (<absneg_str><mode>2): New.
5253 (neon_v<absneg_str><mode>): New.
5254 (neon_v<fp16_rnd_str><mode>): New.
5255 (neon_vrsqrte<mode>): New.
5256 (neon_vpaddv4hf): New.
5257 (neon_vadd<mode>): New.
5258 (neon_vsub<mode>): New.
5259 (neon_vmulf<mode>): New.
5260 (neon_vfma<VH:mode>): New.
5261 (neon_vfms<VH:mode>): New.
5262 (neon_vc<cmp_op><mode>): New.
5263 (neon_vc<cmp_op><mode>_fp16insn): New
5264 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
5265 (neon_vca<cmp_op><mode>): New.
5266 (neon_vca<cmp_op><mode>_fp16insn): New.
5267 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
5268 (neon_vc<cmp_op>z<mode>): New.
5269 (neon_vabd<mode>): New.
5270 (neon_v<maxmin>f<mode>): New.
5271 (neon_vp<maxmin>fv4hf: New.
5272 (neon_<fmaxmin_op><mode>): New.
5273 (neon_vrecps<mode>): New.
5274 (neon_vrsqrts<mode>): New.
5275 (neon_vrecpe<mode>): New (VH variant).
5276 (neon_vdup_lane<mode>_internal): New.
5277 (neon_vdup_lane<mode>): New.
5278 (neon_vcvt<sup><mode>): New (VCVTHI variant).
5279 (neon_vcvt<sup><mode>): New (VH variant).
5280 (neon_vcvt<sup>_n<mode>): New (VH variant).
5281 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
5282 (neon_vcvt<vcvth_op><sup><mode>): New.
5283 (neon_vmul_lane<mode>): New.
5284 (neon_vmul_n<mode>): New.
5285 * config/arm/unspecs.md (UNSPEC_VCALE): New
5286 (UNSPEC_VCALT): New.
5287 (UNSPEC_VFMA_LANE): New.
5288 (UNSPECS_VFMS_LANE): New.
5290 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5292 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
5293 ("*extzv<mode><clobbercc_or_nocc>"):
5294 Correct a typo in a comment.
5296 ("*insv<mode>_zEC12", "*insv<mode>_z10")
5297 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
5298 ("*insv<mode>_zEC12_appendbitsleft")
5299 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
5300 ("*insv<mode>_z10_appendbitsleft"): Ditto.
5301 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
5302 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
5303 Provide pattern with operands switched.
5304 ("*pre_z10_extv<mode>"):
5305 Use new subst patterns.
5306 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
5307 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
5308 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
5309 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
5310 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
5311 ("*<risbg_n>_sidi_ior_and_lshiftrt")
5312 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
5314 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
5315 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5316 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
5318 ("SINT"): New mode_iterator with SI, HI, QI.
5319 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
5320 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
5323 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5325 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
5326 new interface of s390_contiguous_bitmask_p.
5327 ("contiguous_bitmask_nowrap_operand"): New predicate.
5328 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
5329 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
5330 of s390_contiguous_bitmask_p.
5331 ("NxxDw"): Rename NxxDq constraint to NxxDw.
5332 ("NxxSw"): New constraint.
5333 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
5334 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
5336 (s390_contiguous_bitmask_nowrap_p): Export.
5337 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
5338 former s390_contiguous_bitmask_p.
5339 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
5340 detect contiguous bit ranges with wraparound. Change signature to
5341 return START and END position instead of POS and LENGTH.
5342 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
5343 ranges with wraparound.
5344 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
5345 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
5346 Adapt to new signature of s390_contiguous_bitmask_p.
5348 2016-09-23 Bin Cheng <bin.cheng@arm.com>
5350 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
5351 (create_intersect_range_checks): New.
5352 (vect_create_cond_for_alias_checks): Call above function.
5354 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5356 * config/arm/iterators.md (Code iterators): Fix some white-space
5360 (FCVT): Moved from vfp.md.
5361 (VCVT_HF_US_N): New.
5362 (VCVT_SI_US_N): New.
5367 (FCVTI32typename): Moved from vfp.md.
5368 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
5369 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
5370 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
5371 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
5372 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
5374 (fp16_rnd_str): New.
5375 (fp16_rnd_insn): New.
5376 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
5377 (UNSPEC_VCVT_HF_U_N): New.
5378 (UNSPEC_VCVT_SI_S_N): New.
5379 (UNSPEC_VCVT_SI_U_N): New.
5380 (UNSPEC_VCVTH_S): New.
5381 (UNSPEC_VCVTH_U): New.
5382 (UNSPEC_VCVTA_S): New.
5383 (UNSPEC_VCVTA_U): New.
5384 (UNSPEC_VCVTM_S): New.
5385 (UNSPEC_VCVTM_U): New.
5386 (UNSPEC_VCVTN_S): New.
5387 (UNSPEC_VCVTN_U): New.
5388 (UNSPEC_VCVTP_S): New.
5389 (UNSPEC_VCVTP_U): New.
5390 (UNSPEC_VCVTP_S): New.
5391 (UNSPEC_VCVTP_U): New.
5393 (UNSPEC_VRNDA): New.
5394 (UNSPEC_VRNDI): New.
5395 (UNSPEC_VRNDM): New.
5396 (UNSPEC_VRNDN): New.
5397 (UNSPEC_VRNDP): New.
5398 (UNSPEC_VRNDX): New.
5399 * config/arm/vfp.md (<absneg_str>hf2): New.
5401 (neon_v<fp16_rnd_str>hf): New.
5402 (neon_vrndihf): New.
5407 (*mulsf3neghf_vfp): New.
5408 (*negmulhf3_vfp): New.
5409 (*mulsf3addhf_vfp): New.
5410 (*mulhf3subhf_vfp): New.
5411 (*mulhf3neghfaddhf_vfp): New.
5412 (*mulhf3neghfsubhf_vfp): New.
5415 (fmsubhf4_fp16): New.
5419 (neon_vsqrthf): New.
5420 (neon_vrsqrtshf): New.
5421 (FCVT): Move to iterators.md.
5422 (FCVTI32typename): Likewise.
5423 (neon_vcvth<sup>hf): New.
5424 (neon_vcvth<sup>si): New.
5425 (neon_vcvth<sup>_nhf_unspec): New.
5426 (neon_vcvth<sup>_nhf): New.
5427 (neon_vcvth<sup>_nsi_unspec): New.
5428 (neon_vcvth<sup>_nsi): New.
5429 (neon_vcvt<vcvth_op>h<sup>si): New.
5430 (neon_<fmaxmin_op>hf): New.
5432 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5434 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
5435 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
5436 ("*insv<mode>_zEC12_appendbitsleft")
5437 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
5438 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
5440 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5442 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
5443 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
5444 construct values without normalization.
5445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
5446 static local lhs_ops to vNULL.
5448 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5449 Jiong Wang <jiong.wang@arm.com>
5451 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
5452 available when FP16 instructions are available.
5453 (output_move_vfp): Add support for 16-bit data moves.
5454 (arm_validize_comparison): Fix some white-space. Support HFmode
5455 by conversion to SFmode.
5456 * config/arm/arm.md (truncdfhf2): Fix a comment.
5457 (extendhfdf2): Likewise.
5459 (movsicc): Fix some white-space.
5461 (movsfcc): Fix some white-space.
5463 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
5464 instructions are available.
5465 (*thumb2_movhi_vfp): Likewise.
5466 (*arm_movhi_fp16): New.
5467 (*thumb2_movhi_fp16): New.
5468 (*movhf_vfp_fp16): New.
5469 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
5470 (*movhf_vfp): Likewise.
5471 (extendhfsf2): Enable when VFP FP16 instructions are available.
5472 (truncsfhf2): Enable when VFP FP16 instructions are available.
5474 2016-09-23 Martin Liska <mliska@suse.cz>
5476 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
5478 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5480 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
5482 (arm_evpc_neon_vtrn): Likewise.
5483 (arm_evpc_neon_vrev): Likewise.
5484 (arm_evpc_neon_vext): Likewise.
5485 * config/arm/arm_neon.h (vbsl_f16): New.
5489 (vdup_lane_f16): New.
5490 (vdupq_lane_f16): New.
5503 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
5504 (vdup_lane): New (v8hf, v4hf variants).
5505 (vext): New (v8hf, v4hf variants).
5506 (vbsl): New (v8hf, v4hf variants).
5507 * config/arm/iterators.md (VDQWH): New.
5509 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
5510 (Scalar_mul_8_16): Fix white-space.
5511 (Is_d_reg): Add V4HF and V8HF.
5512 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
5513 (neon_vdup_lane<mode>): New.
5514 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
5515 (*neon_vtrn<mode>_insn): Likewise.
5516 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
5517 (*neon_vzip<mode>_insn): Likewise
5518 (neon_vuzp<mode>_internal): Likewise.
5519 (*neon_vuzp<mode>_insn): Likewise
5520 * config/arm/vec-common.md (vec_perm_const<mode>): New.
5522 2016-09-23 Jiong Wang <jiong.wang@arm.com>
5523 Matthew Wahab <matthew.wahab@arm.com>
5525 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
5526 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
5527 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
5528 available. Also fix some white-space.
5529 * config/arm/vfp.md (*arm_movhi_vfp): New.
5530 (*thumb2_movhi_vfp): New.
5532 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5534 * config/arm/arm-c.c (arm_cpu_builtins): Define
5535 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
5536 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
5538 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5540 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
5541 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
5542 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
5543 arm_v8_2a_fp16_neon_hw.
5544 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
5547 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5549 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
5550 arm_fp16_alternative_ok and arm_fp16_none_ok.
5552 2016-09-23 Martin Liska <mliska@suse.cz>
5554 * ipa-icf.c (sem_variable::merge): Replace adress with address.
5556 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
5558 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
5560 ("armv8.2-a+fp16"): New.
5561 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
5562 (FL2_FP16INST): New.
5563 (FL2_FOR_ARCH8_2A): New.
5564 * config/arm/arm-tables.opt: Regenerate.
5565 * config/arm/arm.c (arm_arch8_2): New.
5566 (arm_fp16_inst): New.
5567 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
5568 for incompatible fp16-format settings.
5569 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
5570 (TARGET_NEON_FP16INST): New.
5571 (arm_arch8_2): Declare.
5572 (arm_fp16_inst): Declare.
5573 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
5574 march=armv8.2-a and march=armv8.2-a+fp16.
5575 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
5577 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
5578 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
5580 2016-09-23 Martin Liska <mliska@suse.cz>
5582 * doc/extend.texi: Remove fused-madd from i386 target options.
5584 2016-09-23 Martin Liska <mliska@suse.cz>
5586 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5589 2016-09-23 Martin Liska <mliska@suse.cz>
5591 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5594 2016-09-23 Martin Liska <mliska@suse.cz>
5597 * config/i386/i386.c (ix86_option_override_internal): Change
5598 signature and return false when there's an error related to
5600 (release_options_strings): New function.
5601 (ix86_valid_target_attribute_tree): Call the function.
5603 2016-09-23 Jakub Jelinek <jakub@redhat.com>
5605 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
5606 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
5607 (gen_hsa_ctor_assignment): Likewise.
5608 * print-tree.c (print_node): Likewise.
5609 * tree-dump.c (dequeue_and_dump): Likewise.
5610 * tree-sra.c (sra_modify_constructor_assign): Likewise.
5611 * expr.c (store_constructor): Likewise.
5612 * fold-const.c (operand_equal_p): Likewise.
5613 * tree-pretty-print.c (dump_generic_node): Likewise.
5614 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
5615 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
5617 2016-09-23 Richard Biener <rguenther@suse.de>
5619 * hooks.h (hook_uint_uintp_false): Declare.
5621 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5623 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
5624 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
5626 2016-09-22 Martin Sebor <msebor@redhat.com>
5629 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
5630 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
5631 (target_int_min): Correct computation.
5632 (format_integer): Use long long as the argument for the ll length
5634 (format_floating): Use target_int_max().
5635 (get_string_length): Same.
5636 (format_string): Avoid setting the bounded flag for strings
5638 (try_substitute_return_value): Avoid setting range info when
5639 the result isn't bounded.
5640 * varasm.c (assemble_name): Increase buffer size.
5642 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
5643 Terry Guo <terry.guo@arm.com>
5645 * target.def (elf_flags_numeric): New target hook.
5646 * targhooks.h (default_asm_elf_flags_numeric): New.
5647 * varasm.c (default_asm_elf_flags_numeric): New.
5648 (default_elf_asm_named_section): Use new target hook.
5649 * config/arm/arm.opt (mpure-code): New.
5650 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
5651 * config/arm/arm.c (arm_asm_init_sections): Add section
5652 attribute to default text section if -mpure-code.
5653 (arm_option_check_internal): Diagnose use of option with
5654 non supported targets and/or options.
5655 (arm_asm_elf_flags_numeric): New.
5656 (arm_function_section): New.
5657 (arm_elf_section_type_flags): New.
5658 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
5660 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
5661 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
5663 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
5665 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
5667 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5669 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
5670 * rtl.h: Adjust prototype.
5672 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5674 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
5675 (prev_active_insn): Likewise.
5676 (active_insn_p): Likewise.
5677 * rtl.h: Adjust prototypes.
5678 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5679 * config/arc/arc.md: Likewise.
5680 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
5681 (branch_needs_nop_p): Likewise.
5682 (use_skip_p): Likewise.
5683 * config/sh/sh.c (gen_block_redirect): Likewise.
5684 (split_branches): Likewise.
5685 * reorg.c (optimize_skip): Likewise.
5686 (fill_simple_delay_slots): Likewise.
5687 (fill_slots_from_thread): Likewise.
5688 (relax_delay_slots): Likewise.
5689 * resource.c (mark_target_live_regs): Likewise.
5691 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5693 * config/cris/cris.c (cris_asm_output_case_end): Change argument
5695 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
5696 (prev_nonnote_nondebug_insn): Likewise.
5697 * config/cris/cris-protos.h: Adjust prototype.
5699 * jump.c (rtx_renumbered_equal_p): Adjust.
5701 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5703 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
5704 * rtl.h: Adjust prototype.
5705 * config/sh/sh.md: Adjust.
5706 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5708 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5710 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
5711 (prev_nondebug_insn): Likewise.
5712 * loop-doloop.c (doloop_condition_get): Likewise.
5713 * rtl.h: Adjust prototype.
5714 * cfgloop.h: Likewise.
5716 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5718 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
5719 (prev_nonnote_insn): Likewise.
5720 * jump.c (reversed_comparison_code_parts): Likewise.
5721 (reversed_comparison): Likewise.
5722 * rtl.h: Adjust prototypes.
5723 * config/arc/arc.md: Adjust.
5724 * cse.c (find_comparison_args): Likewise.
5725 * reorg.c (redundant_insn): Change return type to rtx_insn *.
5726 (fix_reg_dead_note): Change argument type to rtx_insn *.
5727 (delete_prior_computation): Likewise.
5728 (delete_computation): Likewise.
5729 (fill_slots_from_thread): Adjust.
5730 (relax_delay_slots): Likewise.
5731 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5732 (simplify_relational_operation_1): Likewise.
5733 (simplify_ternary_operation): Likewise.
5735 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5737 * config/arc/arc-protos.h (arc_label_align): Change type of
5738 variables from rtx to rtx_insn *.
5739 * config/arc/arc.c (arc_label_align): Likewise.
5740 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
5741 * config/bfin/bfin.c (workaround_speculation): Likewise.
5742 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
5743 (find_last_same_clock): Likewise.
5744 (reorg_split_calls): Likewise.
5745 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
5746 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
5747 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
5748 (same_cmp_following_p): Likewise.
5749 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
5750 (same_cmp_following_p): Likwise.
5751 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
5752 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
5753 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
5754 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
5755 (rl78_alloc_physical_registers_cmp): Likewise.
5756 (rl78_alloc_physical_registers_umul): Likewise.
5757 (rl78_calculate_death_notes): Likewise.
5758 * config/s390/s390-protos.h (s390_label_align): Likewise.
5759 * config/s390/s390.c (s390_label_align): Likewise.
5760 * config/sh/sh.c (barrier_align): Likewise.
5761 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
5762 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
5763 (emit_cbcond_nop): Likewise.
5765 2016-09-22 Martin Liska <mliska@suse.cz>
5768 * ipa-icf.c (sem_variable::merge): Yield merge operation if
5769 alias address matters, not necessarily address of original.
5771 2016-09-22 Richard Biener <rguenther@suse.de>
5774 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
5777 2016-09-22 Richard Biener <rguenther@suse.de>
5780 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
5781 from constant folding results.
5782 (gimple_resimplify2): Likewise.
5783 (gimple_resimplify3): Likewise.
5785 2016-09-22 Richard Biener <rguenther@suse.de>
5788 * expr.c (expand_expr_real_1): Guard array access against negative
5791 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5793 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
5795 (format_floating): Likewise.
5797 2016-09-22 Jakub Jelinek <jakub@redhat.com>
5800 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
5801 for all IFN_GOMP_SIMD_* internal fns, not just for
5802 IFN_GOMP_SIMD_ORDERED_*.
5804 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5807 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
5808 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
5809 instructions when you want to invert the test.
5810 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
5811 correct order for XXSEL.
5812 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
5813 for using XSCMP{EQ,GT,GE}DP.
5815 2016-09-21 David Malcolm <dmalcolm@redhat.com>
5817 * genconstants.c (main): Introduce noop_reader and convert call
5818 to read_md_files to a method call.
5819 * genenums.c (main): Likewise.
5820 * genmddeps.c (main): Likewise.
5821 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
5822 rtx_reader_ptr->get_top_level_filename ().
5823 (write_tm_preds_h): Likewise.
5824 (write_insn_preds_c): Likewise.
5825 * gensupport.c (class gen_reader): New subclass of rtx_reader.
5826 (rtx_handle_directive): Convert to...
5827 (gen_reader::handle_unknown_directive): ...this.
5828 (init_rtx_reader_args_cb): Convert return type from bool to
5829 rtx_reader *. Create a gen_reader instance, using it for the
5830 call to read_md_files. Return it if no errors occur.
5831 (init_rtx_reader_args): Convert return type from bool to
5833 * gensupport.h (init_rtx_reader_args_cb): Likewise.
5834 (init_rtx_reader_args_cb): Likewise.
5835 * read-md.c (struct file_name_list): Move to class rtx_reader.
5836 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
5837 (read_md_filename): Delete in favor of
5838 rtx_reader::m_read_md_filename.
5839 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
5840 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
5841 (base_dir): Delete in favor of rtx_reader::m_base_dir.
5842 (first_dir_md_include): Delete in favor of
5843 rtx_reader::m_first_dir_md_include.
5844 (last_dir_md_include_ptr): Delete in favor of
5845 rtx_reader::m_last_dir_md_include_ptr.
5846 (max_include_len): Delete.
5847 (rtx_reader_ptr): New.
5848 (fatal_with_file_and_line): Use get_filename and get_lineno
5849 accessors of rtx_reader_ptr.
5850 (require_char_ws): Likewise.
5851 (rtx_reader::read_char): New method, based on ::read_char.
5852 (rtx_reader::unread_char): New method, based on ::unread_char.
5853 (read_escape): Use get_filename and get_lineno accessors of
5855 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
5856 (read_string): Use get_filename and get_lineno accessors of
5858 (rtx_reader::rtx_reader): New ctor.
5859 (rtx_reader::~rtx_reader): New dtor.
5860 (handle_include): Convert from a function to...
5861 (rtx_reader::handle_include): ...this method, converting
5862 handle_directive from a callback to a virtual function.
5863 (handle_file): Likewise, converting to...
5864 (rtx_reader::handle_file): ...this method.
5865 (handle_toplevel_file): Likewise, converting to...
5866 (rtx_reader::handle_toplevel_file): ...this method.
5867 (rtx_reader::get_current_location): New method.
5868 (parse_include): Convert from a function to...
5869 (rtx_reader::add_include_path): ...this method, dropping redundant
5870 update to unused max_include_len.
5871 (read_md_files): Convert from a function to...
5872 (rtx_reader::read_md_files): ...this method, converting
5873 handle_directive from a callback to a virtual function.
5874 (noop_reader::handle_unknown_directive): New method.
5875 * read-md.h (directive_handler_t): Delete this typedef.
5877 (read_md_file): Delete.
5878 (read_md_lineno): Delete.
5879 (read_md_filename): Delete.
5880 (class rtx_reader): New class.
5881 (rtx_reader_ptr): New decl.
5882 (class noop_reader): New subclass of rtx_reader.
5883 (read_char): Reimplement in terms of rtx_reader::read_char.
5884 (unread_char): Reimplement in terms of rtx_reader::unread_char.
5885 (read_md_files): Delete.
5886 * read-rtl.c (read_rtx_code): Update for deletion of globals
5887 read_md_filename and read_md_lineno.
5889 2016-09-21 Jason Merrill <jason@redhat.com>
5891 * input.h (from_macro_definition_at): New.
5893 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
5895 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
5897 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5899 PR tree-optimization/77550
5900 * tree-vect-stmts.c (create_array_ref): Change parameters.
5901 (get_group_alias_ptr_type): New function.
5902 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
5904 2016-09-21 Marek Polacek <polacek@redhat.com>
5906 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5907 Add falls through comment.
5909 2016-09-21 Richard Biener <rguenther@suse.de>
5911 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
5912 (replace_child): Likewise.
5913 (remove_child_TAG): Adjust.
5914 (move_marked_base_types): Likewise.
5915 (prune_unused_types_prune): Clear die_sib of removed children.
5917 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
5920 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
5921 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
5923 2016-09-21 Richard Biener <rguenther@suse.de>
5925 PR tree-optimization/77648
5926 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
5928 (make_transitive_closure_constraints): Adjust comment.
5929 (make_any_offset_constraints): New function.
5930 (handle_rhs_call): Make sure to first expand a pointer to all
5931 subfields before transitively closing it.
5932 (handle_const_call): Likewise. Properly expand returned
5934 (handle_pure_call): Likewise.
5936 2016-09-21 Richard Biener <rguenther@suse.de>
5937 Jakub Jelinek <jakub@redhat.com>
5939 PR tree-optimization/77621
5940 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
5941 group at non-vectorizable stmts.
5943 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5945 PR tree-optimization/72835
5946 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
5947 (make_new_ssa_for_all_defs): Likewise.
5948 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
5950 2016-09-20 Martin Sebor <msebor@redhat.com>
5953 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
5954 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
5955 * config/linux.c (gnu_libc_printf_pointer_format): New function.
5956 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
5957 * config/sol2.c (solaris_printf_pointer_format): New function.
5958 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
5960 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
5961 * doc/tm.texi: Regenerate.
5962 * gimple-fold.h (get_range_strlen): New function.
5963 (get_maxval_strlen): Declare existing function.
5964 * gimple-fold.c (get_range_strlen): Add arguments and compute both
5965 maximum and minimum.
5966 (get_range_strlen): Define overload.
5967 (get_maxval_strlen): Adjust.
5968 * gimple-ssa-sprintf.c: New file and pass.
5969 * passes.def (pass_sprintf_length): Add new pass.
5970 * targhooks.h (default_printf_pointer_format): Declare new function.
5971 (gnu_libc_printf_pointer_format): Same.
5972 (solaris_libc_printf_pointer_format): Same.
5973 * targhooks.c (default_printf_pointer_format): Define new function.
5974 * tree-pass.h (make_pass_sprintf_length): Declare new function.
5975 * print-tree.c: Increase buffer size.
5977 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5979 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
5981 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5983 * common.opt: New option -fipa-vrp.
5984 * ipa-cp.c (ipa_get_vr_lat): New.
5985 (ipcp_vr_lattice::print): Likewise.
5986 (print_all_lattices): Call ipcp_vr_lattice::print.
5987 (ipcp_vr_lattice::meet_with): New.
5988 (ipcp_vr_lattice::meet_with_1): Likewise.
5989 (ipcp_vr_lattice::top_p): Likewise.
5990 (ipcp_vr_lattice::bottom_p): Likewsie.
5991 (ipcp_vr_lattice::set_to_bottom): Likewise.
5992 (set_all_contains_variable): Call VR set_to_bottom.
5993 (initialize_node_lattices): Init VR lattices.
5994 (propagate_vr_accross_jump_function): New.
5995 (propagate_constants_accross_call): Call
5996 propagate_vr_accross_jump_function.
5997 (ipcp_store_vr_results): New.
5998 (ipcp_driver): Handle VR.
5999 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
6000 (ipa_set_jf_unknown): Likewise.
6001 (ipa_compute_jump_functions_for_edge): Likewise.
6002 (ipa_node_params_t::duplicate): Likewise.
6003 (ipa_write_jump_function): Likewise.
6004 (ipa_read_jump_function): Likewise.
6005 (write_ipcp_transformation_info): Likewise.
6006 (read_ipcp_transformation_info): Likewise.
6007 (ipcp_update_vr): New.
6008 (ipcp_transform_function): Handle VR.
6009 * ipa-prop.h (struct ipa_vr): New.
6010 * cgraph.c: Include tree-vrp.h.
6011 * cgraphunit.c: Likewise.
6012 * ipa-utils.c: Likewise.
6015 * toplev.c: Likewise.
6016 * ipa-devirt.c: Likewise.
6017 * ipa-inline-transform.c: Likewise.
6018 * ipa-inline.c: Likewise.
6019 * ipa-profile.c: Likewise.
6021 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6023 * doc/invoke.texi: Document -fdump-tree-evrp.
6024 * passes.def: Define new pass_early_vrp.
6025 * timevar.def: Define new TV_TREE_EARLY_VRP.
6026 * tree-pass.h (make_pass_early_vrp): New.
6027 * tree-ssa-propagate.c: Make replace_uses_in non static.
6028 * tree-ssa-propagate.h: Export replace_uses_in.
6029 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
6030 (extract_range_from_assert): Factor out
6031 extract_range_for_var_from_comparison_expr.
6032 (vrp_initialize_lattice): New.
6033 (vrp_initialize): Factor out vrp_initialize_lattice.
6034 (vrp_valueize): Fix it to reject complex value ranges.
6035 (vrp_free_lattice): New.
6036 (evrp_dom_walker::before_dom_children): Likewise.
6037 (evrp_dom_walker::after_dom_children): Likewise.
6038 (evrp_dom_walker::push_value_range): Likewise.
6039 (evrp_dom_walker::pop_value_range): Likewise.
6040 (execute_early_vrp): Likewise.
6041 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
6042 (make_pass_early_vrp): New.
6044 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6046 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
6047 instead of exact_log2.
6049 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
6052 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
6053 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
6054 (ix86_add_stmt_cost): Penalize DFmode vector operations
6055 for !TARGET_VECTORIZE_DOUBLE.
6057 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
6059 * doc/invoke.texi (Warning Options): Simplify language.
6060 (Optimize Options): Complete sentence.
6062 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
6064 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
6067 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6070 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
6071 inits on power8 and above, use the VMRGEW instruction instead of a
6074 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
6075 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
6078 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6080 * config/aarch64/arm_neon.h
6081 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
6082 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
6083 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
6085 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6087 * config/var/vax.h (ELIMINABLE_REGS): Define.
6088 (INITIAL_ELIMINATION_OFFSET): Define.
6090 2016-09-20 Jakub Jelinek <jakub@redhat.com>
6093 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
6094 cast to void * if the cast is from some other pointer type.
6096 2016-09-20 Richard Biener <rguenther@suse.de>
6098 PR tree-optimization/77646
6099 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
6102 2016-09-20 Tamar Christina <tamar.christina@arm.com>
6104 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
6105 attributes to all inlined functions and make them extern.
6107 2016-09-20 Richard Biener <rguenther@suse.de>
6109 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
6111 * debug.c (do_nothing_debug_hooks): Adjust.
6112 * dbxout.c (dbx_debug_hooks): Likewise.
6113 * sdbout.c (sdb_debug_hooks): Likewise.
6114 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
6115 (dwarf2out_finish): Move producer, filename and
6117 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
6118 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
6120 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6123 * doc/invoke.texi: Document -Wint-in-bool-context.
6126 * dwarf2out.c (output_loc_operands): Fix an assertion.
6128 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6130 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
6131 (CR_DECIMAL_DIG): New macro.
6133 2016-09-19 Joseph Myers <joseph@codesourcery.com>
6135 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
6138 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
6140 PR rtl-optimization/77416
6141 * lra-remat.c (operand_to_remat): Process hard coded insn
6144 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6146 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
6147 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
6149 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
6151 * target.def (lra_p): Wordsmithing.
6152 * doc/tm.texi: Regenerate.
6154 2016-09-19 Jakub Jelinek <jakub@redhat.com>
6155 Jan Hubicka <jh@suse.cz>
6158 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
6159 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
6160 Call ultimate_alias_target just once, not up to 4 times.
6162 2016-09-19 Richard Biener <rguenther@suse.de>
6164 * dwarf2out.c (early_dwarf_finished): New global.
6165 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
6167 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
6168 if called from LTO exit early.
6169 (dwarf2out_late_global_decl): When being during the early
6170 debug phase do not add locations but only const value attributes.
6171 Adjust the way we generate early DIEs for LTO.
6173 2016-09-19 Richard Biener <rguenther@suse.de>
6176 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
6177 proper niter to bound the loops.
6179 2016-09-19 Richard Biener <rguenther@suse.de>
6181 PR tree-optimization/77514
6182 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
6183 search for folded stmt.
6185 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
6187 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
6188 * tree-pass.h (make_pass_early_thread_jumps): Declare.
6189 * tree-ssa-threadbackward.c (fsm_find_thread_path,
6190 fsm_find_thread_path, profitable_jump_thread_path,
6191 fsm_find_control_statement_thread_paths,
6192 find_jump_threads_backwards): Add speed_p parameter.
6193 (pass_data_early_thread_jumps): New pass.
6194 (make_pass_early_thread_jumps): New function.
6196 2016-09-17 Andreas Schwab <schwab@suse.de>
6198 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
6199 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6201 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
6203 * recog.c (rest_of_handle_split_after_reload): Delete.
6204 (pass_split_after_reload::gate): New method.
6205 (pass_split_after_reload::execute): Call split_all_insns directly.
6207 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
6209 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
6210 parameters for functions taking long long arguments.
6212 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6215 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
6216 splat with truncate.
6218 2016-09-16 Jason Merrill <jason@redhat.com>
6220 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
6222 * hwint.c (exact_log2): Use pow2p_hwi.
6223 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
6224 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
6225 * builtins.c (get_object_alignment_2, get_object_alignment)
6226 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
6228 * calls.c (compute_argument_addresses, store_one_arg): Use
6230 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
6231 * combine.c (force_to_mode): Use least_bit_hwi.
6232 (contains_muldiv, find_split_point, combine_simplify_rtx)
6233 (simplify_if_then_else, simplify_set, force_to_mode)
6234 (if_then_else_cond, simplify_and_const_int_1)
6235 (simplify_compare_const): Use pow2p_hwi.
6236 * cse.c (fold_rtx): Use pow2p_hwi.
6237 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
6239 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
6240 (init_expmed_one_conv): Use pow2p_hwi.
6241 * expr.c (is_aligning_offset): Use pow2p_hwi.
6242 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
6243 (fold_binary_loc): Use pow2p_hwi.
6244 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
6245 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
6246 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
6247 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
6249 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
6250 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
6251 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
6252 * omp-low.c (oacc_loop_fixed_partitions)
6253 (oacc_loop_auto_partitions): Use least_bit_hwi.
6254 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
6255 * stor-layout.c (place_field): Use least_bit_hwi.
6256 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
6257 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
6258 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
6259 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
6260 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
6261 * tree-vect-data-refs.c (vect_analyze_group_access_1)
6262 (vect_grouped_store_supported, vect_grouped_load_supported)
6263 (vect_permute_load_chain, vect_shift_permute_load_chain)
6264 (vect_transform_grouped_load): Use pow2p_hwi.
6265 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
6266 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
6267 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
6269 * tsan.c (instrument_expr): Use least_bit_hwi.
6270 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
6272 2016-09-16 Andreas Schwab <schwab@suse.de>
6274 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
6276 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6278 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6281 * combine.c (rest_of_handle_combine): If any edges have been purged,
6282 free dominators if available.
6284 2016-09-16 Jakub Jelinek <jakub@redhat.com>
6285 Eric Botcazou <ebotcazou@adacore.com>
6288 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
6289 through into expand_addsub_overflow after expand_neg_overflow.
6291 2016-09-15 David Malcolm <dmalcolm@redhat.com>
6293 * diagnostic-show-locus.c
6294 (selftest::test_fixit_insert_containing_newline): New function.
6295 (selftest::test_fixit_replace_containing_newline): New function.
6296 (selftest::diagnostic_show_locus_c_tests): Call the above.
6298 2016-09-15 Bin Cheng <bin.cheng@arm.com>
6300 PR tree-optimization/77503
6301 * tree-vect-loop.c (vectorizable_reduction): Record reduction
6302 code for CONST_COND_REDUCTION at analysis stage and use it at
6304 * tree-vectorizer.h (struct _stmt_vec_info): New field.
6305 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
6306 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
6309 2016-09-15 Richard Biener <rguenther@suse.de>
6312 * fold-const.c (split_tree): Do not split constant ~X.
6314 2016-09-15 Jakub Jelinek <jakub@redhat.com>
6316 PR rtl-optimization/77425
6317 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
6321 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
6322 use %qs instead of %s where desirable, use argument instead of arg in
6323 the diagnostic wording, add list of supported strategies and
6325 (ix86_option_override_internal): Emit target("m...") instead of
6326 option("m...") in the diagnostic. Use %qs instead of %s in invalid
6327 -march/-mtune option diagnostic. Add list of supported arches/tunings
6328 and spellcheck hint. Remove prefix, suffix and sw variables, use
6329 main_args_p ? "..." : "..." in diagnostics to make translation
6332 2016-09-15 Richard Biener <rguenther@suse.de>
6334 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
6335 extra offset argument.
6336 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
6337 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
6338 to reflect new offset parameter.
6339 * doc/tm.texi: Regenerate.
6340 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6341 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
6343 (darwin_asm_output_dwarf_offset): Likewise.
6344 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
6346 (darwin_asm_output_dwarf_offset): Pass offset argument through.
6347 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6348 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6350 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
6353 * ipa-icf.c (set_alias_uids): New function.
6354 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
6355 all the merged variable's referring aliases.
6357 2016-09-15 Richard Biener <rguenther@suse.de>
6359 PR tree-optimization/77514
6360 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
6361 only forced_stmts sequence.
6363 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
6365 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
6366 * cfgexpand.c (update_alias_info_with_stack_vars): Use
6367 FOR_EACH_SSA_NAME to iterate over SSA variables.
6368 (pass_expand::execute): Likewise.
6369 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
6370 * tree-cfg.c (dump_function_to_file): Likewise.
6371 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
6372 (update_ssa): Likewise.
6373 * tree-ssa-alias.c (dump_alias_info): Likewise.
6374 * tree-ssa-ccp.c (ccp_finalize): Likewise.
6375 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
6376 (create_outofssa_var_map): Likewise.
6377 (coalesce_ssa_name): Likewise.
6378 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
6379 * tree-ssa-pre.c (compute_avail): Likewise.
6380 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6381 (scc_vn_restore_ssa_info): Likewise.
6382 (free_scc_vn): Likwise.
6383 (run_scc_vn): Likewise.
6384 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
6385 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
6386 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6387 * tree-ssa.c (verify_ssa): Likewise.
6389 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
6391 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
6392 and mips64r2 as default 32-bit and 64-bit architectures.
6393 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
6394 as default 32-bit and 64-bit architectures.
6396 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
6398 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
6401 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6403 * target.def (lra_p): Change commentary (for the manual) for the
6405 * doc/tm.texi: Regenerate.
6407 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6409 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
6410 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
6411 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
6412 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
6414 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6416 * targhooks.c (default_lra_p): Return true instead of false.
6418 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6420 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
6421 hook_bool_void_false.
6422 * config/avr/avr.c: Ditto.
6423 * config/bfin/bfin.c: Ditto.
6424 * config/c6x/c6x.c: Ditto.
6425 * config/cr16/cr16.c: Ditto.
6426 * config/cris/cris.c: Ditto.
6427 * config/epiphany/epiphany.c: Ditto.
6428 * config/fr30/fr30.c: Ditto.
6429 * config/frv/frv.c: Ditto.
6430 * config/h8300/h8300.c: Ditto.
6431 * config/ia64/ia64.c: Ditto.
6432 * config/iq2000/iq2000.c: Ditto.
6433 * config/lm32/lm32.c: Ditto.
6434 * config/m32c/m32c.c: Ditto.
6435 * config/m32r/m32r.c: Ditto.
6436 * config/m68k/m68k.c: Ditto.
6437 * config/mcore/mcore.c: Ditto.
6438 * config/microblaze/microblaze.c: Ditto.
6439 * config/mmix/mmix.c: Ditto.
6440 * config/mn10300/mn10300.c: Ditto.
6441 * config/moxie/moxie.c: Ditto.
6442 * config/msp430/msp430.c: Ditto.
6443 * config/nios2/nios2.c: Ditto.
6444 * config/nvptx/nvptx.c: Ditto.
6445 * config/pa/pa.c: Ditto.
6446 * config/pdp11/pdp11.c: Ditto.
6447 * config/rl78/rl78.c: Ditto.
6448 * config/sparc/sparc.c: Ditto.
6449 * config/spu/spu.c: Ditto.
6450 * config/stormy16/stormy16.c: Ditto.
6451 * config/tilegx/tilegx.c: Ditto.
6452 * config/tilepro/tilepro.c: Ditto.
6453 * config/v850/v850.c: Ditto.
6454 * config/vax/vax.c: Ditto.
6455 * config/visium/visium.c: Ditto.
6456 * config/xtensa/xtensa.c: Ditto.
6458 2016-09-14 Jakub Jelinek <jakub@redhat.com>
6461 * tsan.c: Include target.h.
6462 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
6463 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
6464 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
6465 BUILT_IN_ATOMIC_TEST_AND_SET entries.
6466 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
6468 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6469 Martin Liska <mliska@suse.cz>
6472 * predict.c (force_edge_cold): Add braces to a condition.
6474 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
6476 PR rtl-optimization/77289
6477 * lra-constraints.c (get_final_hard_regno): Removed.
6478 (get_hard_regno): Add new parameter final_p.
6479 (get_reg_class): Directly call lra_get_elimination_hard_regno.
6480 (operands_match_p): Adjust call to get_hard_regno.
6481 (uses_hard_regs_p): Likewise.
6482 (process_alt_operands): Likewise.
6484 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
6487 * config/msp430/msp430.c (msp430_start_function): Emit an error
6488 if a function is both weak and specifies an interrupt number.
6490 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6492 PR tree-optimization/77454
6493 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
6494 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
6497 2016-09-13 Tamar Christina <tamar.christina@arm.com>
6499 * config/aarch64/aarch64-builtins.c
6500 (aarch64_init_simd_builtins): Fix builtin type signature printing.
6502 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
6504 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
6505 SFmode and SCmode arguments by reference.
6507 2016-09-13 David Malcolm <dmalcolm@redhat.com>
6509 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
6511 (selftest::test_one_liner_fixit_insert_before): ...this, and update
6512 for renaming of add_fixit_insert to add_fixit_insert_before.
6513 (selftest::test_one_liner_fixit_insert_after): New function.
6514 (selftest::test_one_liner_fixit_validation_adhoc_locations):
6515 Update for renaming of add_fixit_insert to add_fixit_insert_before.
6516 (selftest::test_one_liner_many_fixits): Likewise.
6517 (selftest::test_diagnostic_show_locus_one_liner): Update for
6518 renaming, call new test function.
6519 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
6520 renaming of add_fixit_insert to add_fixit_insert_before.
6521 (selftest::test_fixit_consolidation): Likewise.
6522 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
6524 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
6525 (selftest::test_applying_fixits_insert_before): ...this.
6526 (selftest::test_applying_fixits_insert): Update for renaming of
6527 add_fixit_insert to add_fixit_insert_before.
6528 (selftest::test_applying_fixits_insert_after): New function.
6529 (selftest::test_applying_fixits_insert_after_at_line_end): New
6531 (selftest::test_applying_fixits_insert_after_failure): New function.
6532 (selftest::test_applying_fixits_multiple): Update for renaming of
6533 add_fixit_insert to add_fixit_insert_before.
6534 (selftest::change_line): Likewise.
6535 (selftest::test_applying_fixits_unreadable_file): Likewise.
6536 (selftest::test_applying_fixits_line_out_of_range): Likewise.
6537 (selftest::test_applying_fixits_column_validation): Likewise.
6538 (selftest::test_applying_fixits_column_validation): Likewise.
6539 (selftest::edit_context_c_tests): Update for renamed test function;
6540 call new test functions.
6542 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
6544 PR tree-optimization/77536
6545 PR rtl-optimization/68212
6546 * config/rs6000/rs6000.md (div->recip splitter): Remove
6547 optimize_insn_for_speed_p condition.
6549 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
6551 * optabs.c (prepare_cmp_insn): Update documentation comment.
6553 2016-09-13 Jakub Jelinek <jakub@redhat.com>
6554 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6557 * opts.h (candidates_list_and_hint): Declare.
6558 * opts-common.c (candidates_list_and_hint): New function.
6559 (cmdline_handle_error): Use it.
6561 2016-09-12 David Malcolm <dmalcolm@redhat.com>
6563 * edit-context.c (edited_line::get_len): New accessor.
6564 (edited_file::print_diff): Split out hunk-printing into...
6565 (edited_file::print_diff_hunk): New method.
6566 (edited_file::print_diff_line): New method.
6568 2016-09-12 Andrew Pinski <apinski@cavium.com>
6570 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
6572 * config/aarch64/aarch64.c (thunderx_tunings): Enable
6573 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
6574 (aarch64_operands_ok_for_ldpstp): Return false if
6575 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
6576 was SImode and the alignment is less than 8 byte.
6577 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6579 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
6582 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
6584 2016-09-12 Marek Polacek <polacek@redhat.com>
6586 * doc/extend.texi: Use lowercase "boolean".
6587 * doc/invoke.texi: Likewise.
6588 * doc/md.texi: Likewise.
6589 * target.def: Likewise.
6590 * doc/tm.texi: Regenerated.
6592 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6595 * expmed.c (synth_mult): Delete duplicate mode check.
6597 2016-09-10 Tom de Vries <tom@codesourcery.com>
6600 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
6602 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
6603 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
6605 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
6607 PR rtl-optimization/77289
6608 * lra-constraints.c (get_final_hard_regno): Add support for non hard
6609 register numbers. Remove support for subregs.
6610 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
6611 (get_reg_class): Delete removed get_final_hard_regno() argument.
6612 (uses_hard_regs_p): Call get_final_hard_regno().
6614 2016-09-09 Martin Sebor <msebor@redhat.com>
6618 * pretty-print.c (pp_quoted_string): New function.
6619 (pp_format): Call it for %c and %s directives.
6621 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
6623 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
6624 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
6625 INITIAL_ELIMINATION_OFFSET) : Update documentation.
6626 * target.def (frame_pointer_required, can_eliminate): Likewise.
6627 * doc/tm.texi: Regenerated.
6628 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
6630 * df-scan.c (df_hard_reg_init): Likewise.
6631 * ira.c (ira_setup_eliminable_regset): Likewise.
6632 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
6633 init_elim_table): Likewise.
6634 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
6635 set_initial_elim_offsets, update_eliminables,
6636 init_elim_table): Likewise.
6637 * rtlanal.c (get_initial_register_offset): Likewise.
6638 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6639 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6640 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6641 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6642 * config/fr30/fr30.h: Fix comment.
6643 * config/frv/frv.c: Likewise.
6644 * config/frv/frv.h: Likewise.
6645 * config/ft32/ft32.h: Likewise.
6646 * config/visium/visium.h: Likewise.
6647 * config/pa/pa64-linux.h: Likewise.
6648 * config/v850/v850.h: Likewise.
6649 * config/cris/cris.c: Likewise.
6650 * config/ia64/ia64.h: Likewise.
6651 * config/moxie/moxie.h: Likewise.
6652 * config/m32r/m32r.h: Likewise.
6654 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6657 * config.in: Regenerate.
6658 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
6660 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
6661 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
6662 static-libmpxwrappers case.
6663 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
6664 MPX_LD_AS_NEEDED_GUARD_POP.
6665 * configure: Regenerate.
6666 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
6667 defined if linker support "--push-state"/"--pop-state".
6669 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6671 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
6673 2016-09-09 Joseph Myers <joseph@codesourcery.com>
6675 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
6676 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
6677 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
6678 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
6679 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
6680 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
6681 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
6683 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
6684 width macros from TS 18661-1.
6685 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
6687 2016-09-08 Jakub Jelinek <jakub@redhat.com>
6690 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
6691 OMP_CLAUSE_SAFELEN_EXPR.
6693 2016-09-07 David Malcolm <dmalcolm@redhat.com>
6695 * Makefile.in (OBJS): Add substring-locations.o.
6696 * langhooks-def.h (class substring_loc): New forward decl.
6697 (lhd_get_substring_location): New decl.
6698 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
6699 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
6700 * langhooks.c (lhd_get_substring_location): New function.
6701 * langhooks.h (class substring_loc): New forward decl.
6702 (struct lang_hooks): Add field get_substring_location.
6703 * substring-locations.c: New file, taking definition of
6704 format_warning_va and format_warning_at_substring from
6705 c-family/c-format.c, making them non-static.
6706 * substring-locations.h (class substring_loc): Move class here
6707 from c-family/c-common.h. Add and rewrite comments.
6708 (format_warning_va): New decl.
6709 (format_warning_at_substring): New decl.
6710 (get_source_location_for_substring): Add comment.
6712 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
6714 * config/i386/i386.c: Add 'U' suffix to processor feature bits
6715 to avoid -Wnarrowing warning.
6716 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
6717 * opts.c: Likewise for SANITIZER_OPT bitmasks.
6719 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
6721 * config/aarch64/aarch64.c (aarch64_legitimize_address):
6722 Avoid use of base_offset if offset already in range.
6724 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
6726 * config/sh/sh-protos.h (struct sh_atomic_model,
6727 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6728 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6729 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
6730 * config/sh/sh.h (struct sh_atomic_model,
6731 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6732 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6733 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
6734 Guard with __cplusplus.
6736 2016-09-06 Jakub Jelinek <jakub@redhat.com>
6739 * config/i386/i386.c (ix86_expand_builtin): For builtin with
6740 unsupported or unknown ISA, use expand_call.
6742 2016-09-06 Martin Liska <mliska@suse.cz>
6744 PR gcov-profile/77378
6745 PR gcov-profile/77466
6746 * tree-profile.c (tree_profiling): Detect whether target can use
6747 -fprofile-update=atomic.
6749 2016-09-06 Richard Biener <rguenther@suse.de>
6751 PR tree-optimization/77479
6752 * tree-vrp.c (update_value_range): Extend overflow handling to
6755 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6758 * config/i386/i386.md (isa): Add x64_avx512bw.
6759 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
6760 (kmov_isa): New mode attr.
6761 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
6762 (*zero_extend<mode>si2): Likewise.
6763 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
6765 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
6767 * doc/invoke.texi (SPU Options): nops -> NOPs.
6768 (x86 Options): Ditto.
6770 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6773 * toplev.c (process_options): Temporarily set input_location
6774 to UNKNOWN_LOCATION around targetm.target_option.override () call.
6776 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
6778 PR rtl-optimization/77452
6779 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
6780 inner-mode reference to a CONST_VECTOR constant in the constant pool.
6782 2016-09-05 Marek Polacek <polacek@redhat.com>
6785 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
6787 2016-09-05 Jakub Jelinek <jakub@redhat.com>
6790 * gensupport.c (alter_output_for_subst_insn): Remove redundant
6791 *insn_out == '*' test. Don't copy unnecessary to yet another
6792 memory buffer, and don't leak it.
6794 PR rtl-optimization/77425
6795 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
6797 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
6799 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
6801 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6803 * common.opt (fdiagnostics-generate-patch): New option.
6804 * diagnostic.c: Include "edit-context.h".
6805 (diagnostic_initialize): Initialize context->edit_context_ptr.
6806 (diagnostic_finish): Delete context->edit_context_ptr.
6807 (diagnostic_report_diagnostic): Add fix-it hints from the
6808 diagnostic to context->edit_context_ptr, if any.
6809 * diagnostic.h (class edit_context): Add forward decl.
6810 (struct diagnostic_context): Add field "edit_context_ptr".
6811 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6812 -fdiagnostics-generate-patch.
6813 (-fdiagnostics-generate-patch): New item.
6814 * toplev.c: Include "edit-context.h".
6815 (process_options): Set global_dc->edit_context_ptr to a new
6816 edit_context if the options need one.
6817 (toplev::main): Handle -fdiagnostics-generate-patch by using
6818 global_dc->edit_context_ptr.
6820 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6823 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
6824 map and firstprivate clauses on target construct for _Atomic
6826 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
6827 on target construct for _Atomic qualified decls.
6828 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
6830 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
6831 _Atomic qualified arguments not mentioned in uniform clause.
6833 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6835 * Makefile.in (OBJS-libcommon): Add edit-context.o.
6836 * diagnostic-color.c (color_dict): Add "diff-filename",
6837 "diff-hunk", "diff-delete", and "diff-insert".
6838 (parse_gcc_colors): Update default value of GCC_COLORS in comment
6839 to reflect above changes.
6840 * doc/invoke.texi (-fdiagnostics-color): Update description of
6841 default GCC_COLORS, and of the supported capabilities.
6842 * edit-context.c: New file.
6843 * edit-context.h: New file.
6844 * input.c (struct fcache): Add field "missing_trailing_newline".
6845 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
6847 (add_file_to_cache_tab): Likewise.
6848 (fcache::fcache): Likewise.
6849 (get_next_line): Update c->missing_trailing_newline.
6850 (location_missing_trailing_newline): New function.
6851 * input.h (location_missing_trailing_newline): New decl.
6852 * selftest-run-tests.c (selftest::run_tests): Call
6853 edit_context_c_tests.
6854 * selftest.h (edit_context_c_tests): New decl.
6856 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6857 Richard Biener <rguenth@suse.de>
6859 PR tree-optimization/77444
6860 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
6861 as steptype, remove redundant initialization.
6863 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6866 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
6867 (sanopt_optimize_walker): Optimize away
6868 __asan_before_dynamic_init (...) followed by
6869 __asan_after_dynamic_init () without intervening memory loads/stores.
6870 * ipa-pure-const.c (special_builtin_state): Handle
6871 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
6872 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
6874 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6876 * cfg.c (free_original_copy_tables): Replace second assignment of
6877 bb_copy = NULL by bb_original = NULL.
6879 2016-09-02 Jakub Jelinek <jakub@redhat.com>
6882 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
6883 assignment added in r216794.
6885 2016-09-02 David Malcolm <dmalcolm@redhat.com>
6887 * Makefile.in (OBJS): Add typed-splay-tree.o.
6888 * selftest-run-tests.c (selftest::run_tests): Call
6889 typed_splay_tree_c_tests.
6890 * selftest.h (typed_splay_tree_c_tests): New decl.
6891 * typed-splay-tree.c: New file.
6892 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
6893 (typed_splay_tree::max): New method.
6894 (typed_splay_tree::min): New method.
6895 (typed_splay_tree::foreach): New method.
6896 (typed_splay_tree::closure): New struct.
6897 (typed_splay_tree::inner_foreach_fn): New function.
6899 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6901 * ipa-cp.c (ipcp_store_bits_results): Change option name from
6902 -fipa-cp-bit to -fipa-bit-cp.
6904 2016-09-01 Martin Sebor <msebor@redhat.com>
6906 PR tree-optimization/71831
6907 * tree-object-size.h: Return bool instead of the size and add
6908 argument for the size.
6909 * tree-object-size.c (compute_object_offset): Update signature.
6910 (addr_object_size): Same.
6911 (compute_builtin_object_size): Return bool instead of the size
6912 and add argument for the size. Handle POINTER_PLUS_EXPR when
6913 optimization is disabled.
6914 (expr_object_size): Adjust.
6915 (plus_stmt_object_size): Adjust.
6916 (pass_object_sizes::execute): Adjust.
6917 * builtins.c (fold_builtin_object_size): Adjust.
6918 * doc/extend.texi (Object Size Checking): Update.
6919 * ubsan.c (instrument_object_size): Adjust.
6921 2016-09-01 Martin Sebor <msebor@redhat.com>
6923 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
6924 it fits the output of the formatted function regardless of its
6926 * genmodes.c (parser::parse_expr): Same.
6927 * gimplify.c (gimplify_asm_expr): Same.
6928 * passes.c (pass_manager::register_one_dump_file): Same.
6929 * print-tree.c (print_node): Same.
6931 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6933 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
6935 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6937 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
6939 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6941 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
6942 * config/rs6000/vector.md: Ditto.
6943 * config/rs6000/vsx.md: Ditto.
6945 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
6947 * ipa-inline-analysis.c (param_change_prob): Get to the base object
6950 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6952 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
6953 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
6954 *return_and_restore_gpregs_<mode>_r11,
6955 *return_and_restore_gpregs_<mode>_r12,
6956 *return_and_restore_gpregs_<mode>_r1,
6957 *return_and_restore_fpregs_<mode>_r11,
6958 *return_and_restore_fpregs_<mode>_r12,
6959 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
6960 directly instead of via the "l" constraint. Renumber operands.
6963 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6965 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
6966 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
6967 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
6968 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
6969 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
6970 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
6971 *call_value_nonlocal_darwin64, reload_macho_picbase,
6972 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
6973 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
6974 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
6975 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
6976 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
6977 *save_fpregs_<mode>_r1): Ditto.
6978 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
6979 *return_and_restore_gpregs_spe): Ditto.
6981 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6983 * config/rs6000/rs6000.md
6984 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
6985 the use of the link register.
6986 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
6988 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6989 Michael Meissner <meissner@linux.vnet.ibm.com>
6992 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
6993 reg+reg addressing for TImode.
6994 (rs6000_legitimate_address_p): Only allow register indirect
6995 addressing for TImode, even without TARGET_QUAD_MEMORY.
6997 2016-09-01 Richard Biener <rguenther@suse.de>
7000 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
7001 check whether the result fits the desired result type.
7003 2016-09-01 Nathan Sidwell <nathan@acm.org>
7005 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
7007 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
7009 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
7011 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
7013 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7015 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
7016 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
7017 for comparisons of integer ZERO_EXTEND against zero.
7019 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
7021 * config/i386/i386.c (ix86_option_override_internal): Also disable the
7022 STV pass if -mstackrealign is enabled.
7024 2016-08-31 Ilya Verbin <iverbin@gmail.com>
7026 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
7029 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7031 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
7032 (layout_range::intersects_line_p): New method.
7033 (test_range_contains_point_for_single_point): Rename to...
7034 (test_layout_range_for_single_point): ...this, and add testing
7035 for layout_range::intersects_line_p.
7036 (test_range_contains_point_for_single_line): Rename to...
7037 (test_layout_range_for_single_line): ...this, and add testing
7038 for layout_range::intersects_line_p.
7039 (test_range_contains_point_for_multiple_lines): Rename to...
7040 (test_layout_range_for_multiple_lines): ...this, and add testing
7041 for layout_range::intersects_line_p.
7042 (layout::layout): Populate m_fixit_hints.
7043 (layout::get_expanded_location): Handle the case of a line-span
7045 (layout::validate_fixit_hint_p): New method.
7046 (get_line_span_for_fixit_hint): New function.
7047 (layout::calculate_line_spans): Add spans for fixit-hints.
7048 (layout::should_print_annotation_line_p): New method.
7049 (layout::print_any_fixits): Drop param "richloc", instead using
7050 validated fixits in m_fixit_hints. Add "const" to hint pointers.
7051 (diagnostic_show_locus): Avoid printing blank annotation lines.
7052 (selftest::test_diagnostic_context::test_diagnostic_context):
7053 Initialize show_column and start_span.
7054 (selftest::test_diagnostic_context::start_span_cb): New static
7056 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
7057 (selftest::diagnostic_show_locus_c_tests): Update for function
7058 renamings. Call test_diagnostic_show_locus_fixit_lines.
7060 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7062 PR tree-optimization/73714
7063 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
7065 2016-08-31 David Malcolm <dmalcolm@redhat.com>
7067 * selftest.c: Move "namespace selftest {" to top of file,
7068 removing explicit "selftest::" qualifiers throughout.
7070 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
7072 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
7074 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
7075 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
7076 Replace builtin with vector extension.
7077 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
7079 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
7080 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
7081 Replace builtin with vector extension.
7082 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
7083 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
7084 Replace builtin with vector extension.
7085 * config/i386/xmmintrin.h (__m128_u): New type.
7086 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
7087 (_mm_load_ps, _mm_store_ps): Simplify.
7089 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
7091 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
7093 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7095 * diagnostic-show-locus.c (colorizer::begin_state): Support more
7096 than 3 ranges per diagnostic by alternating between color 1 and
7098 (layout::layout): Replace use of rich_location::MAX_RANGES
7099 with richloc->get_num_locations ().
7100 (layout::calculate_line_spans): Replace use of
7101 rich_location::MAX_RANGES with m_layout_ranges.length ().
7102 (layout::print_annotation_line): Handle arbitrary numbers of
7103 ranges in caret-printing by defaulting to '^'.
7104 (selftest::test_one_liner_many_fixits): New function.
7105 (test_diagnostic_show_locus_one_liner): Call it.
7106 * diagnostic.c (diagnostic_initialize): Update for renaming
7107 of rich_location::MAX_RANGES to
7108 rich_location::STATICALLY_ALLOCATED_RANGES.
7109 * diagnostic.h (struct diagnostic_context): Likewise.
7111 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7113 * selftest.c (selftest::named_temp_file::named_temp_file): New
7115 (selftest::temp_source_file::~temp_source_file): Move to...
7116 (selftest::named_temp_file::~named_temp_file): ...here.
7117 (selftest::test_named_temp_file): New function.
7118 (selftest::selftest_c_tests): Call test_named_temp_file.
7119 * selftest.h (class named_temp_file): New class.
7120 (class temp_source_file): Convert to a subclass of named_temp_file.
7122 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
7124 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
7125 USEs of LR_REGNO in returns and sibcalls.
7126 (rs6000_output_mi_thunk): Similar.
7127 (rs6000_sibcall_aix): Similar.
7128 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
7129 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
7130 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
7131 Remove the USE of LR_REGNO from the patterns as well. Delete an
7133 (return_internal_<mode>): Delete.
7135 2016-08-30 Tamar Christina <tamar.christina@arm.com>
7137 * config/aarch64/aarch64-simd.md
7138 (aarch64_ld2<mode>_dreg_le): New.
7139 (aarch64_ld2<mode>_dreg_be): New.
7140 (aarch64_ld2<mode>_dreg): Removed.
7141 (aarch64_ld3<mode>_dreg_le): New.
7142 (aarch64_ld3<mode>_dreg_be): New.
7143 (aarch64_ld3<mode>_dreg): Removed.
7144 (aarch64_ld4<mode>_dreg_le): New.
7145 (aarch64_ld4<mode>_dreg_be): New.
7146 (aarch64_ld4<mode>_dreg): Removed.
7147 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
7149 2016-08-30 David Malcolm <dmalcolm@redhat.com>
7151 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
7152 redundant location param.
7153 (test_one_liner_fixit_remove): Likewise.
7154 (test_one_liner_fixit_replace): Likewise.
7155 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
7156 * gcc-rich-location.c
7157 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
7158 get_range_from_loc. Drop overload taking a const char *.
7159 * gcc-rich-location.h
7160 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
7163 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7165 * config/linux.c (linux_libc_has_function): Return true on musl.
7167 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
7169 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
7171 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
7173 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
7174 used for abnormal egdes.
7176 2016-08-30 Jakub Jelinek <jakub@redhat.com>
7178 PR tree-optimization/72866
7179 * tree-vect-patterns.c (search_type_for_mask): Turn into
7180 a small wrapper, move all code to ...
7181 (search_type_for_mask_1): ... this new function. Add caching
7182 and adjust recursive calls.
7185 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
7186 instead of lookup_type_die (type_main_variant (type)) even for array
7190 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
7191 constant pool reference return x instead of c.
7193 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
7195 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
7198 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7201 (selftest::test_make_location_nonpure_range_endpoints): Fix
7204 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7206 * diagnostic-show-locus.c
7207 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
7209 (selftest::test_diagnostic_show_locus_one_liner): Call it.
7210 * input.c (get_pure_location): Move to libcpp/line-map.c.
7211 * input.h (get_pure_location): Convert decl to an inline function
7212 calling implementation in libcpp.
7214 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
7217 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
7218 template for intel asm dialect.
7219 (vec_set_hi_<mode><mask_name>): Ditto.
7221 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7223 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
7224 (selftest::fail_formatted): Likewise.
7226 2016-08-29 David Malcolm <dmalcolm@redhat.com>
7228 * input.c (make_location): Call get_start and get_finish
7229 on the endpoints to avoid storing packed ranges or ad-hoc
7231 (selftest::test_make_location_nonpure_range_endpoints): New function.
7232 (selftest::input_c_tests): Call it.
7233 * input.h (get_start): New inline function.
7235 2016-08-29 Tom de Vries <tom@codesourcery.com>
7238 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
7241 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
7243 * Makefile.in (gcov-iov.h): Add dummy recipe.
7245 2016-08-29 Nathan Sidwell <nathan@acm.org>
7247 * config/nvptx/nvptx.c: #include tree-vrp.h.
7249 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
7252 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
7253 HIGH+LO construct during reload.
7255 2016-08-28 Tom de Vries <tom@codesourcery.com>
7258 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
7259 'sysv_abi va_list' attribute.
7260 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
7261 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
7264 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7266 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
7267 * emit-rtl.c (unshare_all_rtl_1): Adjust.
7268 (unshare_all_rtl_again): Likewise.
7269 * function.c (assign_stack_local_1): Likewise.
7270 (assign_stack_temp_for_type): Likewise.
7272 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7274 * cfgbuild.c (make_edges): Adjust.
7275 * cfgrtl.c (can_delete_label_p): Likewise.
7276 * dwarf2cfi.c (create_trace_edges): Likewise.
7277 * except.c (sjlj_emit_dispatch_table): Likewise.
7278 * function.h (struct expr_status): make x_forced_labels a vector.
7279 * jump.c (rebuild_jump_labels_1): Adjust.
7280 * reload1.c (set_initial_label_offsets): Likewise.
7281 * stmt.c (force_label_rtx): Likewise.
7282 (expand_label): Likewise.
7284 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7286 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
7288 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
7290 PR tree-optimization/71077
7291 PR tree-optimization/68542
7292 * fold-const.c (fold_relational_const): Fix folding of
7293 VECTOR_CST comparisons that have a scalar boolean result type.
7294 (selftest::test_vector_folding): New static function.
7295 (selftest::fold_const_c_tests): Call it.
7297 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
7299 * doc/extend.texi (SPU Built-in Functions): Remove stale
7300 references to material formerly at IBM and Sony.
7302 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
7305 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
7307 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7309 * diagnostic-show-locus.c
7310 (selftest::test_fixit_consolidation): New function.
7311 (selftest::diagnostic_show_locus_c_tests): Call it.
7312 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
7313 constructor based on source_range.
7315 2016-08-26 David Malcolm <dmalcolm@redhat.com>
7317 * diagnostic-color.c (color_dict): Add "fixit-insert" and
7319 (parse_gcc_colors): Update description of default GCC_COLORS.
7320 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
7321 (colorizer::set_fixit_insert): New method.
7322 (colorizer::set_fixit_delete): New method.
7323 (colorizer::get_color_by_name): New method.
7324 (colorizer::STATE_FIXIT_INSERT): New constant.
7325 (colorizer::STATE_FIXIT_DELETE): New constant.
7326 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
7327 fields in favor of new field "m_stop_color". Add fields
7328 "m_fixit_insert" and "m_fixit_delete".
7329 (colorizer::colorizer): Update for above changes. Replace
7330 colorize_start calls with calls to get_color_by_name.
7331 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
7332 STATE_FIXIT_DELETE. Update for field renamings.
7333 (colorizer::finish_state): Simplify by using m_stop_color,
7334 rather than multiple identical "*_ce" fields.
7335 (colorizer::get_color_by_name): New method.
7336 (layout::print_any_fixits): Print insertions and replacements
7337 using the "fixit-insert" color, and deletions using the
7338 "fixit-delete" color.
7339 * doc/invoke.texi (-fdiagnostics-color): Update description of
7340 default GCC_COLORS, and of the supported capabilities.
7342 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
7344 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
7345 current_function_static_stack_size variable with the static
7346 stack frame size of the current function when
7347 flag_stack_usage_info is enabled.
7349 2016-08-26 Nathan Sidwell <nathan@acm.org>
7351 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
7352 assignment inside if condition.
7354 2016-08-26 Richard Biener <rguenther@suse.de>
7356 PR tree-optimization/69047
7357 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
7358 extracts similar to what FRE does.
7359 (non_rewritable_mem_ref_base): Likewise.
7361 2016-08-26 Joseph Myers <joseph@codesourcery.com>
7363 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
7364 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7365 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7366 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7367 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
7369 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7370 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7371 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7372 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
7373 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7375 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7378 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
7379 reservation duration to 15 cycles.
7380 (cortex_a8_vfp_macs): Likewise.
7381 (cortex_a8_vfp_macd): Likewise.
7382 (cortex_a8_vfp_divs): Likewise.
7383 (cortex_a8_vfp_divd): Likewise.
7385 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7387 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
7388 (aarch_macro_fusion_pair_p): Use above to avoid early return.
7390 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7391 Martin Jambhor <mjambor@suse.cz>
7393 * common.opt: New option -fipa-bit-cp.
7394 * doc/invoke.texi: Document -fipa-bit-cp.
7395 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
7396 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
7397 * tree-ssa-ccp.h: New header file.
7398 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
7399 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
7400 Replace all occurences of tree parameter by two new params: signop, int.
7401 (bit_value_unop_1): Change to bit_value_unop and export it.
7402 Replace all occurences of tree parameter by two new params: signop,
7404 (bit_value_binop): Change call from bit_value_binop_1 to
7406 (bit_value_assume_aligned): Likewise.
7407 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
7408 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
7410 (ccp_finalize): Skip processing if val->mask == 0.
7411 * ipa-cp.c: Include tree-ssa-ccp.h
7412 (ipcp_bits_lattice): New class.
7413 (ipcp_param_lattice (bits_lattice): New member.
7414 (print_all_lattices): Call ipcp_bits_lattice::print.
7415 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
7416 (initialize_node_lattices): Likewise.
7417 (propagate_bits_accross_jump_function): New function.
7418 (propagate_constants_accross_call): Call
7419 propagate_bits_accross_jump_function.
7420 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
7421 (ipcp_store_bits_results): New function.
7422 (ipcp_driver): Call ipcp_store_bits_results.
7423 * ipa-prop.h (ipa_bits): New struct.
7424 (ipa_jump_func): Add new member bits of type ipa_bits.
7425 (ipa_param_descriptor): Change decl to decl_or_type.
7426 (ipa_get_param): Change decl to decl_or_type and assert on
7428 (ipa_get_type): New function.
7429 (ipcp_transformation_summary): New member bits.
7430 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
7431 (ipa_populate_param_decls): Likewise.
7432 (ipa_dump_param): Likewise.
7433 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
7435 (ipa_set_jf_unknown): Set ipa_bits::known to false.
7436 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
7438 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
7439 (ipa_write_jump_function): Add streaming for ipa_bits.
7440 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
7441 (write_ipcp_transformation_info): Add streaming for ipa_bits
7443 (read_ipcp_transfomration_info): Add support for reading streamed
7445 (ipcp_update_bits): New function.
7446 (ipcp_transform_function): Call ipcp_update_bits.
7448 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
7450 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
7451 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
7453 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
7455 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
7457 2016-08-25 Richard Biener <rguenther@suse.de>
7459 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
7460 Only add locations in late dwarf.
7461 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
7462 (dwarf2out_early_finish): But do it here.
7464 2016-08-24 Michael Collison <michael.collison@linaro.org>
7465 Michael Collison <michael.collison@arm.com>
7467 * config/arm/arm-modes.def: Add new condition code mode CC_V
7468 to represent the overflow bit.
7469 * config/arm/arm.c (maybe_get_arm_condition_code):
7470 Add support for CC_Vmode.
7471 (arm_gen_unlikely_cbranch): New function to generate common
7472 rtl conditional branches for overflow patterns.
7473 * config/arm/arm-protos.h: Add prototype for
7474 arm_gen_unlikely_cbranch.
7475 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
7476 addsi3_compareV_upper): New patterns to support signed
7477 builtin overflow add operations.
7478 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
7479 New patterns to support unsigned builtin add overflow operations.
7480 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
7481 builtin overflow subtract operations,
7482 (usubv<mode>4): New patterns to support unsigned builtin subtract
7483 overflow operations.
7484 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
7485 to support builtin overflow negate operations.
7487 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7490 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7492 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7493 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7496 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7498 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
7499 MULTILIB_OPTIONS should be used. Small wording fixes.
7500 * genmultilib: Memorize set of all option combinations in
7501 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
7502 found in MULTILIB_OPTIONS by checking if option set is listed in
7503 combination_space. Output new and existing error message to stderr.
7505 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7507 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
7508 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
7509 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
7510 (MULTILIB_REUSE): Remove reuse rules for option set including
7511 -mfpu=fp-armv8 and -mfpu=vfpv4
7513 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
7515 * config/arm/t-rtems: Add vfp multilib.
7517 2016-08-23 Ian Lance Taylor <iant@golang.org>
7519 * config/s390/s390.c (s390_asm_file_start): Call
7522 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7524 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
7525 initialization of all 0's to the 0 constant, instead of directly
7526 generating XOR. Add support for V4SImode vector initialization on
7527 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
7528 initialization. Change variables used in V4SFmode vector
7529 intialization. For V4SFmode vector splat on ISA 3.0, make sure
7530 any memory addresses are in index form. Add support for using
7531 VSPLTH/VSPLTB to initialize vector short and vector char vectors
7532 with all of the same element.
7533 (regno_or_subregno): New helper function to return a register
7534 number for either REG or SUBREG.
7535 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
7536 Use regno_or_subregno where possible.
7537 (rs6000_split_v4si_init_di_reg): New helper function to build up a
7538 DImode value from two SImode values in order to generate V4SImode
7539 vector initialization on 64-bit systems with direct move.
7540 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
7542 (rtx_is_swappable_p): V4SImode vector initialization insn is not
7544 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
7546 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
7547 attributes to initialize V8HImode and V16QImode vectors with the
7549 (VSX_SPLAT_COUNT): Likewise.
7550 (VSX_SPLAT_SUFFIX): Likewise.
7551 (UNSPEC_VSX_VEC_INIT): New unspec.
7552 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
7553 Allow SFmode values to come from Altivec registers.
7554 (vsx_init_v4si): New insn/split for V4SImode vector initialization
7555 on 64-bit systems with direct move.
7556 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
7557 vector initializations, to allow V4SImode vector initializations
7558 on 64-bit systems with direct move.
7559 (vsx_splat_v4si): Likewise.
7560 (vsx_splat_v4si_di): Likewise.
7561 (vsx_splat_v4sf): Likewise.
7562 (vsx_splat_v4sf_internal): Likewise.
7563 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
7565 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
7566 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
7567 initializing V8HImode and V16QImode vectors with the same
7569 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
7570 optimization if -maltivec=be.
7572 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
7574 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
7575 attribute for alternatives 3 and 4.
7577 2016-08-23 David Malcolm <dmalcolm@redhat.com>
7579 * selftest.c (selftest::assert_str_contains): New function.
7580 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
7581 * selftest.h (selftest::assert_str_contains): New decl.
7582 (ASSERT_STR_CONTAINS): New macro.
7584 2016-08-23 Richard Biener <rguenther@suse.de>
7586 PR tree-optimization/77286
7587 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
7589 (vect_transform_loop): Split exit edges of loop and scalar
7590 loop if required and at the appropriate time.
7592 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7594 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7595 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7597 Correct a typo in a comment.
7599 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7601 * config/s390/s390.md ("*andc_split"): New splitter for and with
7604 2016-08-23 Richard Biener <rguenther@suse.de>
7606 PR tree-optimization/27336
7607 * tree-vrp.c (infer_value_range): Handle stmts that can throw
7608 by looking for a non-EH edge.
7609 (process_assert_insertions_for): Likewise.
7611 2016-08-23 Richard Biener <rguenther@suse.de>
7614 * statistics.c (statistics_counter_event): Robustify against
7617 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7619 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
7620 for targets amdfam10 and barcelona.
7622 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
7624 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
7625 (zero_extend<mode>di2): Ditto.
7626 (*zero_extend<mode>si2): Ditto.
7627 (*zero_extendqihi2): Ditto.
7629 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7632 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
7633 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
7635 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
7637 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
7638 identical consecutive elements.
7639 [SSA_NAME]: Print the name's def stmt on its own line. When printing
7640 the node's def stmt, avoid printing an unwanted trailing newline by
7641 replacing the call to print_gimple_stmt() with its inlined body and
7642 adjusting it to not set pp_needs_newline and to call pp_flush()
7643 instead of pp_newline_and_flush().
7645 2016-08-22 Joseph Myers <joseph@codesourcery.com>
7647 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
7648 (float32_type_node, float64_type_node, float32x_type_node)
7649 (float128x_type_node): New macros.
7650 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
7651 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
7652 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
7653 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
7654 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
7655 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
7656 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
7657 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
7658 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
7659 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
7660 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
7661 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
7662 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
7663 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
7664 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
7665 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
7666 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
7667 (copysign, fabs, huge_val, inf, nan, nans): Use it.
7668 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
7670 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
7671 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
7672 * doc/extend.texi (Other Builtins): Document these built-in
7674 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
7677 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
7679 * doc/install.texi (Binaries): www.opencsw.org now uses https.
7681 2016-08-22 Richard Biener <rguenther@suse.de>
7683 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
7685 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
7688 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
7689 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
7690 non-SSE2 athlons only, otherwise prefer SSE prefetches.
7692 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7694 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
7695 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
7696 (vrp_visit_switch_stmt): Likewise.
7697 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
7698 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
7699 (vrp_visit_stmt): Use extract_range_from_stmt.
7700 (vrp_visit_phi_node): Use extract_range_from_phi_node.
7702 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7704 * Makefile.in: Add tree-vrp.h to GTFILES.
7705 * gengtype.c (open_base_files): Add tree-vrp.h.
7706 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
7707 * builtins.c: Likewise.
7708 * fold-const.c: Likewise.
7709 * gimple-builder.c: Likewise.
7710 * gimple-laddress.c: Likewise.
7711 * hsa-gen.c: Likewise.
7712 * internal-fn.c: Likewise.
7714 * targhooks.c: Liewise,
7715 * tree-ssa-address.c: Likewise.
7716 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
7717 * tree-vrp.c (struct value_range): Move to tree-vrp.h
7718 * tree-vrp.h: New file.
7720 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7722 PR tree-optimization/61839
7723 * tree-vrp.c (two_valued_val_range_p): New.
7724 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
7725 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
7726 Also Convert VAR BINOP CST where VAR is two-valued to
7727 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
7729 2016-08-19 David Malcolm <dmalcolm@redhat.com>
7731 * diagnostic-show-locus.c
7732 (layout::annotation_line_showed_range_p): New method.
7733 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
7734 Reimplement case fixit_hint::REPLACE to cover removals, and
7735 replacements where the range of the replacement isn't one
7736 of the ranges in the rich_location.
7737 (test_one_liner_fixit_replace): Likewise.
7738 (selftest::test_one_liner_fixit_replace_non_equal_range): New
7740 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
7742 (selftest::test_diagnostic_show_locus_one_liner): Call the new
7744 * diagnostic.c (print_parseable_fixits): Remove case
7747 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
7750 * config/i386/i386.c (ix86_option_override_internal): Remove
7751 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
7752 Enable SSE prefetch also for TARGET_PREFETCHWT1.
7753 Do not try to enable TARGET_PRFCHW ISA flag here.
7754 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
7755 Rewrite expander function body.
7756 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
7758 2016-08-19 Joseph Myers <joseph@codesourcery.com>
7761 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
7762 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
7763 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
7764 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
7765 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
7766 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
7767 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
7768 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
7769 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
7771 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
7773 (struct floatn_type_info): New structure type.
7774 (floatn_nx_types): New variable declaration.
7775 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
7776 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
7777 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
7778 * tree.c (floatn_nx_types): New variable.
7779 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
7780 corresponding complex types.
7781 * target.def (floatn_mode): New hook.
7782 * targhooks.c: Include "real.h".
7783 (default_floatn_mode): New function.
7784 * targhooks.h (default_floatn_mode): New prototype.
7785 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
7787 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
7788 effective-target and dg-add-options keywords.
7789 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
7790 Document new effective-target keywords.
7791 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
7792 * doc/tm.texi: Regenerate.
7793 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
7794 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
7795 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
7797 * real.h (struct real_format): Add field ieee_bits.
7798 * real.c (ieee_single_format, mips_single_format)
7799 (motorola_single_format, spu_single_format, ieee_double_format)
7800 (mips_double_format, motorola_double_format)
7801 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
7802 (ieee_extended_intel_128_format)
7803 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
7804 (mips_extended_format, ieee_quad_format, mips_quad_format)
7805 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
7806 (decimal_double_format, decimal_quad_format, ieee_half_format)
7807 (arm_half_format, real_internal_format: Initialize ieee_bits
7809 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
7810 float128_type_node. Set float80_type_node to float64x_type_node
7811 if appropriate and long_double_type_node not appropriate.
7812 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
7813 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
7814 Initialize ieee_bits field.
7815 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
7816 (rs6000_init_builtins): Set ieee128_float_type_node to
7818 (rs6000_floatn_mode): New function.
7820 2016-08-19 Jakub Jelinek <jakub@redhat.com>
7822 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7823 _rdseed64_step): Uglify argument names and/or local variable names
7824 in inline functions.
7825 * config/i386/rtmintrin.h (_xabort): Likewise.
7826 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
7827 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
7828 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
7829 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
7830 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
7831 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
7832 _mm_maskz_ternarylogic_epi32): Likewise.
7833 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
7834 __lwpins32, __lwpins64): Likewise.
7835 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
7836 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
7837 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
7838 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
7839 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
7840 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
7841 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
7842 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
7843 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
7844 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
7845 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
7846 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
7847 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
7848 _mm256_mask_i64gather_epi32): Likewise.
7849 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7850 * config/i386/ia32intrin.h (__writeeflags): Likewise.
7851 * config/i386/pkuintrin.h (_wrpkru): Likewise.
7852 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
7853 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
7854 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
7855 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
7856 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
7857 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
7858 _mm512_mask_prefetch_i64scatter_ps): Likewise.
7859 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7860 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
7861 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
7862 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
7863 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
7864 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
7865 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
7866 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
7868 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
7870 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
7871 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
7873 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
7874 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
7876 (_rdpkru_u32): Add space after function name.
7878 * config/i386/t-i386 (i386-c.o): Don't depend on
7879 i386-builtin-types.inc.
7880 (i386.o): Depend on i386-builtin-types.inc.
7882 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
7885 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
7886 Use const_vec_duplicate to check for duplicated elements.
7888 2016-08-19 Richard Biener <rguenther@suse.de>
7890 PR tree-optimization/77290
7891 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7892 Fix flag_tree_parallelize_loops check.
7894 2016-08-19 Richard Biener <rguenther@suse.de>
7896 * match.pd (x | 0 -> x): Add.
7898 2016-08-19 Richard Biener <rguenther@suse.de>
7900 PR tree-optimization/77286
7901 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7902 Deal with virtual PHIs being out-of-order.
7904 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7906 * doc/invoke.texi (fverbose-asm): Note that source code lines
7907 are emitted, and provide an example.
7908 * final.c (asm_show_source): New function.
7909 (final_scan_insn): Call asm_show_source.
7911 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7913 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
7914 param with diagnostic_kind.
7915 (class colorizer): Similarly replace field m_diagnostic with
7917 (colorizer::colorizer): Replace diagnostic
7918 param with diagnostic_kind.
7919 (colorizer::begin_state): Update for above field change.
7920 (layout::layout): Replace diagnostic param with rich_location *
7921 and diagnostic_kind.
7922 (diagnostic_show_locus): Replace diagnostic param with richloc
7923 and diagnostic_kind.
7924 (class selftest::test_diagnostic_context): New class.
7925 (selftest::test_diagnostic_show_locus_unknown_location): New
7927 (selftest::test_one_liner_simple_caret): New function.
7928 (selftest::test_one_liner_caret_and_range): New function.
7929 (selftest::test_one_liner_multiple_carets_and_ranges): New
7931 (selftest::test_one_liner_fixit_remove): New function.
7932 (selftest::test_one_liner_fixit_replace): New function.
7933 (selftest::test_diagnostic_show_locus_one_liner): New function.
7934 (selftest::diagnostic_show_locus_c_tests): Call the new test
7936 * diagnostic.c (diagnostic_initialize): Initialize
7937 colorize_source_p, show_ruler_p and parseable_fixits_p.
7938 (default_diagnostic_finalizer): Update for change to
7939 diagnostic_show_locus.
7940 (diagnostic_append_note): Likewise.
7941 * diagnostic.h (diagnostic_show_locus): Replace
7942 const diagnostic_info * param with location * and diagnostic_t.
7944 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7946 * input.c (saved_line_table): New global.
7947 (class selftest::temp_line_table): Rename to line_table_test and
7948 move declaration to selftest.h, and drop field m_old_line_table.
7949 (selftest::temp_line_table::temp_line_table): Rename ctor to...
7950 (selftest::line_table_test::line_table_test): ...this. Add a
7951 default ctor. Store current value of line_table within
7953 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
7954 (selftest::line_table_test::~line_table_test): ...this, and
7955 restore line_table from the saved_line_table, rather than
7957 (selftest::test_accessing_ordinary_linemaps): Update for above
7959 (selftest::test_lexer): Likewise.
7960 (struct selftest::lexer_test): Likewise.
7961 (selftest::lexer_test::lexer_test): Likewise.
7962 (selftest::input_c_tests): Move the looping over test cases from
7964 (selftest::for_each_line_table_case): New function.
7965 * input.h (saved_line_table): New decl.
7966 * selftest.h (struct selftest::line_table_case): New forward decl.
7967 (class selftest::line_table_test): New class, moved here from
7968 selftest::temp_line_table in input.c, and renamed.
7969 (selftest::for_each_line_table_case): New decl.
7971 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
7974 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
7976 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
7979 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
7980 enclosing parallel construct for reduction variables on OpenACC loop
7983 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
7985 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
7986 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
7988 (function_to_dwarf_procedure): Update comment.
7990 2016-08-18 David Malcolm <dmalcolm@redhat.com>
7992 * input.c (diagnostics_file_cache_forcibly_evict_file): New
7994 * input.h (diagnostics_file_cache_forcibly_evict_file): New
7996 * selftest.c (selftest::temp_source_file::~temp_source_file):
7997 Evict m_filename from the diagnostic file cache.
7999 2016-08-18 Richard Biener <rguenther@suse.de>
8001 * tree-pass.h (make_pass_materialize_all_clones): Declare.
8002 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
8003 make_pass_materialize_all_clones): New simple IPA pass encapsulating
8004 clone materialization.
8005 * passes.def (all_late_ipa_passes): Start with
8006 pass_materialize_all_clones.
8007 * cgraphunit.c (symbol_table::compile): Remove call to
8008 materialize_all_clones.
8009 * tree-into-ssa.c: Include statistics.h.
8010 (update_ssa): Count number of times we do incremental/rewrite
8013 2016-08-18 Richard Biener <rguenther@suse.de>
8015 PR tree-optimization/77282
8016 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8017 When doing auto-parallelizing also prevent use of PHIs that
8018 carry dependences across loop backedges.
8020 2016-08-18 Tamar Christina <tamar.christina@arm.com>
8021 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8023 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
8025 2016-08-18 Richard Biener <rguenther@suse.de>
8027 * ssa-iterators.h (ssa_vuse_operand): New inline.
8028 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
8029 (predicate_all_scalar_phis): Use remove_phi_node to remove
8030 phi nodes predicated. Delay removing virtual PHIs.
8031 (predicate_mem_writes): Update virtual operands.
8032 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
8033 (tree_if_conversion): Do not rewrite virtual SSA form.
8034 * tree-phinodes.c (release_phi_node): Make static.
8035 * tree-phinodes.h (release_phi_node): Remove.
8037 2016-08-18 Jakub Jelinek <jakub@redhat.com>
8039 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
8040 codes that appear in bdesc_* arrays, instead include i386-builtin.def
8041 twice to define those.
8042 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
8043 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
8044 bdesc_multi_arg): Define by including i386-builtin.def the third time.
8045 * config/i386/i386-builtin.def: New file.
8047 2016-08-17 David Malcolm <dmalcolm@redhat.com>
8049 * input.c (get_source_range_for_char): Rename to...
8050 (selftest::get_source_range_for_char): ...this, and move within
8051 the #if CHECKING_P guard.
8052 (get_num_source_ranges_for_substring): Rename to...
8053 (selftest::get_num_source_ranges_for_substring): ...this, move
8054 within the #if CHECKING_P guard, and make static.
8055 (selftest::assert_num_substring_ranges): Initialize
8058 2016-08-18 Alan Modra <amodra@gmail.com>
8060 PR rtl-optimization/72771
8061 * reload.c (find_reloads): Don't assume that a subreg mem is OK
8062 when find_reloads_toplev returns address_reloaded==-1.
8063 (alternative_allows_const_pool_ref): Update comment.
8065 2015-08-17 Alan Hayward <alan.hayward@arm.com>
8067 PR tree-optimization/71752
8068 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
8069 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
8071 2016-08-17 Jakub Jelinek <jakub@redhat.com>
8073 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
8074 instead of testing ECF_NORETURN bit in gimple_call_flags.
8075 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
8076 * predict.c (tree_bb_level_predictions): Likewise.
8077 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
8080 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
8081 turning a call into __builtin_unreachable-like noreturn call, adjust
8082 gimple_call_set_fntype.
8083 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
8084 gimple_call_fntype has void return type.
8086 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
8088 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
8089 maybe_lookup_decl, to handle nested acc loop directives.
8091 2016-08-17 Richard Biener <rguenther@suse.de>
8093 PR tree-optimization/76490
8094 * tree-vrp.c (update_value_range): Preserve overflow infinities
8095 when intersecting with ranges from get_range_info.
8096 (operand_less_p): Handle overflow infinities correctly.
8097 (value_range_constant_singleton): Use vrp_operand_equal_p
8098 to handle overflow max/min correctly.
8099 (vrp_valueize): Likewise.
8100 (union_ranges): Likewise.
8101 (intersect_ranges): Likewise.
8102 (vrp_visit_phi_node): Improve iteration limitation to only
8103 apply when we'll possibly re-visit the PHI via a changed argument
8106 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
8108 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
8109 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
8110 rather than those that should not be built.
8112 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
8115 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
8117 2016-08-17 Richard Biener <rguenther@suse.de>
8119 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
8120 (verify_vssa): New function verifying virtual SSA form.
8121 (verify_ssa): Call it.
8122 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
8123 Do not apply loop-closed SSA handling to virtuals.
8124 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
8125 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
8126 when rewriting their symbol.
8127 (prepare_def_site_for): Likewise.
8128 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
8129 operands of moved stmts.
8131 2016-08-17 Richard Biener <rguenther@suse.de>
8133 PR tree-optimization/23855
8134 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
8135 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
8136 find guards to hoist. Do not update SSA form but rewrite virtuals
8137 into loop closed SSA.
8138 (find_loop_guard): Adjust to skip already hoisted guards. Do
8139 not mark virtuals for renaming or update SSA form.
8141 2016-08-17 Martin Liska <mliska@suse.cz>
8143 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
8144 a LONG_LONG_TYPE_SIZE comparison.
8145 * gcov-io.h: Remove macro definitions.
8146 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
8147 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
8150 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8152 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
8153 that builtins not mentioned in bdesc_* arrays come first, then
8154 the ones mentioned in bdesc_* arrays in the order they appear in
8155 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
8156 IX86_BUILTIN__BDESC_*_LAST enumerator.
8157 (bdesc_mpx): Fix up a comment typo.
8158 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
8159 __builtin_ia32_vpcomneu[bwdq] builtins.
8160 (BDESC_VERIFY, BDESC_VERIFYS): Define.
8161 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
8162 enum ix86_builtins ordering.
8163 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
8164 for direct bdesc_* array member access instead of searching all the
8165 arrays until an fcode match is found.
8167 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
8169 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
8170 pattern as define_insn_and_split. Split insn before reload to
8172 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
8173 <shift_insn><mode>3_1.
8174 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
8175 <rotate_insn><mode>3_1.
8177 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8180 * input.c (get_source_range_for_substring): Rename to...
8181 (get_source_location_for_substring): ...this, adding param
8182 "caret_idx", and converting output param from source_range * to
8184 (get_source_range_for_char): New function.
8185 (get_num_source_ranges_for_substring): Update comment to reflect
8187 (assert_char_at_range): Update to use get_source_range_for_char
8188 rather than get_source_range_for_substring.
8189 (test_lexer_string_locations_concatenation_2): Likewise.
8190 * substring-locations.h (get_source_range_for_substring): Rename
8192 (get_source_location_for_substring): ...this, and adding param
8193 "caret_idx", and converting output param from source_range * to
8196 2016-08-16 David Malcolm <dmalcolm@redhat.com>
8198 * input.c (class selftest::temp_source_file): Move to
8200 (selftest::temp_source_file::temp_source_file): Move to
8202 (selftest::temp_source_file::~temp_source_file): Likewise.
8203 * selftest.c (selftest::temp_source_file::temp_source_file): Move
8205 (selftest::temp_source_file::~temp_source_file): Likewise.
8206 * selftest.h (class selftest::temp_source_file): Move here from
8209 2016-08-16 Jakub Jelinek <jakub@redhat.com>
8212 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
8213 inlining, add cgraph edge for the added __builtin_unreachable call.
8216 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
8217 only cast it to SHWI for the final comparison.
8219 2016-08-16 Martin Liska <mliska@suse.cz>
8221 PR gcov-profile/36412
8222 * doc/gcov.texi: Document --hash-filenames(-x).
8223 * gcov.c (print_usage): Add the option.
8224 (process_args): Process the option, sort options alphabetically.
8225 (md5sum_to_hex): New function.
8226 (make_gcov_file_name): Do the md5sum and append it to a
8229 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8231 PR tree-optimization/69848
8232 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
8233 and swtich operands to avoid additional NOT instruction.
8234 (vcond<v_cmp_mixed><mode>): Ditto.
8235 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8237 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8239 * doc/install.texi (*-*-solaris2*): Adjust latest change.
8241 2016-08-16 Richard Biener <rguenther@suse.de>
8243 PR tree-optimization/76783
8244 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
8245 BB visited flags at start.
8247 2016-08-16 Bin Cheng <bin.cheng@arm.com>
8249 PR tree-optimization/72817
8250 PR tree-optimization/73450
8251 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
8252 multiple_of_p for adjusted IV.base.
8254 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
8257 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
8258 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
8259 for !flag_finite_math_only or flag_signed_zeros.
8260 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
8261 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
8262 depend on flag_finite_math_only.
8263 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
8265 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
8266 (*ieee_smin<mode>3): Ditto.
8267 (*ieee_smax<mode>3): Ditto.
8268 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
8269 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
8271 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
8272 depend on flag_finite_math_only.
8273 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
8274 (*mmx_<code>v2sf3): Remove.
8275 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
8276 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
8277 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
8279 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
8281 PR rtl-optimization/73650
8282 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
8283 it is not a simple move.
8285 2016-08-15 Martin Liska <mliska@suse.cz>
8288 * gcc.c (do_spec_1): Call save_string with the right size.
8289 (save_string): Do an assert about string we copy.
8291 2016-08-15 Richard Biener <rguenther@suse.de>
8293 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
8294 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
8296 (pass_data_stv): Likewise.
8298 2016-08-15 Richard Biener <rguenther@suse.de>
8300 PR tree-optimization/73434
8301 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
8302 TBAA info on the base when forwarding a non-invariant address.
8304 2016-08-15 Jakub Jelinek <jakub@redhat.com>
8306 * dwarf2out.c (struct checksum_attributes): Add
8307 at_string_length_bit_size and at_string_length_byte_size fields.
8308 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
8309 and DW_AT_string_length_byte_size.
8310 (die_checksum_ordered): Handle at_string_length_bit_size and
8311 at_string_length_byte_size.
8312 (gen_array_type_die): For dwarf_version >= 5 emit
8313 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8314 (adjust_string_types): For dwarf_version >= 5 remove
8315 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8316 (resolve_addr): Likewise.
8319 * dwarf2out.c (string_types): New variable.
8320 (gen_array_type_die): Change early_dwarf handling of
8321 DW_AT_string_length, create DW_OP_call4 referencing the
8322 length var temporarily. Handle parameters that are pointers
8324 (adjust_string_types): New function.
8325 (gen_subprogram_die): Temporarily set string_types to local var,
8326 call adjust_string_types if needed.
8327 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
8329 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
8331 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
8333 * doc/install.texi (*-*-solaris2*): Fix version number and document
8334 requirement on GNU make for building libjava with the Solaris linker.
8336 2016-08-15 Martin Liska <mliska@suse.cz>
8337 Jakub Jelinek <jakub@redhat.com>
8339 PR tree-optimization/72824
8340 * tree-loop-distribution.c (const_with_all_bytes_same)
8341 <case VECTOR_CST>: Fix a typo.
8343 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
8346 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
8347 Renamed from _mm512_undefined_si512.
8348 (_mm_undefined_si512): New definition.
8350 2016-08-13 Richard Biener <rguenther@suse.de>
8352 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
8353 into PHIs and update the lattice for its def.
8355 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8358 * ubsan.c (instrument_si_overflow): Pass true instead of false
8360 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
8361 of bbs. Return TODO_cleanup_cfg if any returned true.
8363 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8365 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
8366 ISA 3.0 MTVSRDD instruction.
8367 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
8370 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
8372 PR tree-optimization/71083
8373 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
8374 bitfield access when possible.
8376 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
8379 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
8380 sign-changing cast from a shorter unsigned type to a wider
8383 2016-08-12 Jakub Jelinek <jakub@redhat.com>
8385 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
8386 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
8387 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
8389 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8391 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
8392 Correct costs for vec_construct.
8394 2016-08-12 Bin Cheng <bin.cheng@arm.com>
8396 PR tree-optimization/69848
8397 * tree-vectorizer.h (enum vect_def_type): New condition reduction
8398 type CONST_COND_REDUCTION.
8399 * tree-vect-loop.c (vectorizable_reduction): Support new condition
8400 reudction type CONST_COND_REDUCTION.
8402 2016-08-12 Richard Biener <rguenther@suse.de>
8404 PR tree-optimization/57326
8405 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
8406 returning an SSA name.
8407 (phi_translate_1): When fully_constant_expression returns a NAME
8408 make sure we have a leader for it.
8410 2016-08-12 Martin Liska <mliska@suse.cz>
8411 Adam Fineman <afineman@afineman.com>
8413 * gcov.c (process_file): Create .gcov file when .gcda
8416 2016-08-12 Marek Polacek <polacek@redhat.com>
8419 * alias.c (find_base_value): Adjust fall through comment.
8420 * cfgexpand.c (expand_debug_expr): Likewise.
8421 * combine.c (find_split_point): Likewise.
8422 (expand_compound_operation): Likewise. Add FALLTHRU.
8423 (make_compound_operation): Adjust fall through comment.
8424 (canon_reg_for_combine): Add FALLTHRU.
8425 (force_to_mode): Adjust fall through comment.
8426 (simplify_shift_const_1): Likewise.
8427 (simplify_comparison): Likewise.
8428 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
8430 * config/aarch64/predicates.md: Likewise.
8431 * config/i386/i386.c (function_arg_advance_32): Likewise.
8432 (ix86_gimplify_va_arg): Likewise.
8433 (print_reg): Likewise.
8434 (ix86_print_operand): Likewise.
8435 (ix86_build_const_vector): Likewise.
8436 (ix86_expand_branch): Likewise.
8437 (ix86_sched_init_global): Adjust fall through comment.
8438 (ix86_expand_args_builtin): Add FALLTHRU.
8439 (ix86_expand_builtin): Likewise.
8440 (ix86_expand_vector_init_one_var): Likewise.
8441 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
8442 (rs6000_adjust_cost): Likewise.
8443 (insn_must_be_first_in_group): Likewise.
8444 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
8445 * dbxout.c (dbxout_symbol): Adjust fall through comment.
8446 * df-scan.c (df_uses_record): Likewise.
8447 * dojump.c (do_jump): Add FALLTHRU.
8448 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
8450 (resolve_args_picking_1): Adjust fall through comment.
8451 (loc_list_from_tree_1): Likewise.
8452 * expmed.c (make_tree): Likewise.
8453 * expr.c (expand_expr_real_2): Add FALLTHRU.
8454 (expand_expr_real_1): Likewise. Adjust fall through comment.
8455 * fold-const.c (const_binop): Adjust fall through comment.
8456 (fold_truth_not_expr): Likewise.
8457 (fold_cond_expr_with_comparison): Add FALLTHRU.
8458 (fold_binary_loc): Likewise.
8459 (contains_label_1): Adjust fall through comment.
8460 (multiple_of_p): Likewise.
8461 * gcov-tool.c (process_args): Add FALLTHRU.
8462 * genattrtab.c (check_attr_test): Likewise.
8463 (write_test_expr): Likewise.
8464 * genconfig.c (walk_insn_part): Likewise.
8465 * genpreds.c (validate_exp): Adjust fall through comment.
8466 (needs_variable): Likewise.
8467 * gensupport.c (get_alternatives_number): Add FALLTHRU.
8468 (subst_dup): Likewise.
8469 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
8470 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
8471 (gimplify_scan_omp_clauses): Add FALLTHRU.
8472 (goa_stabilize_expr): Likewise.
8473 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
8475 * hsa-gen.c (get_address_from_value): Likewise.
8476 * ipa-icf.c (sem_function::hash_stmt): Likewise.
8477 * ira.c (ira_setup_alts): Add FALLTHRU.
8478 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
8480 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
8481 * opts.c (common_handle_option): Likewise.
8482 * read-rtl.c (read_rtx_code): Likewise.
8483 * real.c (round_for_format): Likewise.
8484 * recog.c (asm_operand_ok): Likewise.
8485 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
8486 * reload1.c (set_label_offsets): Likewise.
8487 (eliminate_regs_1): Likewise.
8488 (reload_reg_reaches_end_p): Likewise.
8489 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
8490 (rtx_cost): Likewise.
8491 * sched-rgn.c (is_exception_free): Likewise.
8492 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
8493 * stor-layout.c (int_mode_for_mode): Likewise.
8494 * toplev.c (print_to_asm_out_file): Likewise.
8495 (print_to_stderr): Likewise.
8496 * tree-cfg.c (gimple_verify_flow_info): Likewise.
8497 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
8498 (chrec_fold_multiply): Likewise.
8499 (evolution_function_is_invariant_rec_p): Likewise.
8500 (for_each_scev_op): Likewise.
8501 * tree-data-ref.c (siv_subscript_p): Likewise.
8502 (get_references_in_stmt): Likewise.
8503 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
8504 (substitute_in_expr): Likewise.
8505 (type_cache_hasher::equal): Likewise.
8506 (walk_type_fields): Likewise.
8507 * var-tracking.c (adjust_mems): Add FALLTHRU.
8508 (set_dv_changed): Adjust fall through comment.
8509 * varasm.c (default_function_section): Add FALLTHRU.
8511 2016-08-12 Marek Polacek <polacek@redhat.com>
8514 * tree-complex.c (expand_complex_division): Add missing break.
8516 2016-08-12 Richard Biener <rguenther@suse.de>
8518 * passes.c (execute_todo): Do not push/pop TV_TODO.
8519 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
8520 (execute_one_pass): Likewise.
8521 * common.opt (ftime-report-details): New switch.
8522 * doc/invoke.texi (ftime-report-details): Document.
8523 * timevar.h (timer::print_row): Adjust signature.
8524 (timer::all_zero): New static helper.
8525 (timer::child_map_t): New typedef.
8526 (timer::time_var_def): Add children field.
8527 * timevar.c (timer::named_items::print): Adjust.
8528 (timer::~timer): Free timevar recorded children.
8529 (timer::pop_internal): When -ftime-report-details record
8530 time spent in sub-timevars.
8531 (timer::print_row): Adjust.
8532 (timer::print): Print sub-timevar stats, use all_zero.
8533 * timevar.def (TV_TODO): Remove.
8535 2016-08-12 Richard Biener <rguenther@suse.de>
8537 PR tree-optimization/72851
8538 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
8539 worklists to use bitmaps indexed in execution order.
8540 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
8541 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
8542 (cfg_blocks): Make a bitmap.
8543 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
8545 (cfg_blocks_empty_p): Adjust.
8546 (cfg_blocks_add): Likewise.
8547 (cfg_blocks_get): Likewise.
8548 (add_ssa_edge): Likewise.
8549 (add_control_edge): Likewise.
8550 (simulate_stmt): Likewise.
8551 (process_ssa_edge_worklist): Likewise.
8552 (simulate_block): Likewise.
8553 (ssa_prop_init): Compute PRE order and stmt UIDs.
8554 (ssa_prop_fini): Adjust.
8555 (ssa_propagate): Adjust.
8557 2016-08-12 Richard Biener <rguenther@suse.de>
8559 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
8560 the currently executable edges have fixed ranges. Always
8561 go through update_value_range.
8563 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
8567 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
8568 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
8569 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
8570 (LANG_HOOKS_DECLS): Add it.
8571 * langhooks.h (struct lang_hooks_for_decls): Add
8572 function_decl_defaulted. Const_tree-ify
8573 function_decl_explicit_p and function_decl_deleted_p.
8574 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
8575 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
8576 also at strict DWARF v5.
8579 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
8580 TYPE_QUAL_CONST in reference-typed decls.
8583 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
8584 in DW_OP_pieces, just enough to handle pointers to member
8586 (gen_remaining_tmpl_value_param_die_attribute): Use a location
8587 expression on DWARFv5 if a constant value doesn't work.
8589 2016-08-11 David Malcolm <dmalcolm@redhat.com>
8591 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
8592 * selftest.c (selftest::test_assertions): New function.
8593 (selftest::selftest_c_tests): New function.
8594 * selftest.h (selftest::selftest_c_tests): New declaration.
8596 2016-08-11 Richard Biener <rguenther@suse.de>
8597 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8599 PR rtl-optimization/72855
8600 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
8602 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8605 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
8606 (vsx_store_<mode>): Likewise.
8608 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8610 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
8611 TImode CONST_WIDE_INT store.
8612 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
8614 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
8616 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
8617 mode if unaligned SSE load and store are optimal.
8619 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8621 PR tree-optimization/71083
8622 * tree-predcom.c (ref_at_iteration): Correctly align the
8625 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8627 * config/s390/s390-builtin-types.def: Add INT128 types.
8628 * config/s390/s390-builtins.def: Add INT128 variants for the add
8629 sub low-level builtins dealing with TImode.
8630 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
8631 via subreg when expanding a builtin.
8632 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
8633 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
8635 * config/s390/vecintrin.h: Adjust builtin names accordingly.
8636 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
8637 ("vec_addc<mode>", "vec_addc_u128"): Merge to
8638 "vacc<bhfgq>_<mode>".
8639 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
8640 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
8641 ("vec_subc<mode>", "vec_subc_u128"): Merge to
8642 "vscbi<bhfgq>_<mode>".
8643 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
8644 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
8646 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8648 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
8650 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8652 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
8654 (vcond<v_cmp_mixed><mode>): Ditto.
8655 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8657 2016-08-11 Bin Cheng <bin.cheng@arm.com>
8659 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
8660 variable explicitly, also assert on it before use.
8662 2016-08-11 Richard Biener <rguenther@suse.de>
8664 PR tree-optimization/72772
8665 * cfgloopmanip.c (create_preheader): Use split_edge if there
8666 is a single loop entry, avoiding degenerate PHIs.
8668 2016-08-11 Richard Biener <rguenther@suse.de>
8670 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
8671 unconditional TODO_cleanup_cfg.
8672 (pass_thread_jumps::execute): Initialize loops, perform a CFG
8673 cleanup only if we threaded a jump.
8675 2016-08-11 Alan Modra <amodra@gmail.com>
8678 * lra-constraints.c (simplify_operand_subreg): Allow subreg
8679 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
8680 slow. Emit two reloads for slow mem case, first loading in
8681 fast innermode, then converting to required mode.
8683 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8685 * config/rs6000/altivec.h (vec_extract_exp): New macro.
8686 (vec_extract_sig): New macro.
8687 (vec_insert_exp): New macro.
8688 (vec_test_data_class): New macro.
8689 (scalar_extract_exp): New macro.
8690 (scalar_extract_sig): New macro.
8691 (scalar_insert_exp): New macro.
8692 (scalar_test_data_class): New macro.
8693 (scalar_test_neg): New macro.
8694 (scalar_cmp_exp_gt): New macro.
8695 (scalar_cmp_exp_lt): New macro.
8696 (scalar_cmp_exp_eq): New macro.
8697 (scalar_cmp_exp_unordered): New macro.
8698 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
8699 to enforce constraint that operand is a 7-bit unsigned literal.
8700 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
8701 for power9 built-ins.
8702 (BU_P9V_VSX_2): Likewise.
8703 (BU_P9V_64BIT_VSX_2): Likewise.
8704 (VSEEDP): Add scalar extract exponent support.
8705 (VSEESP): Add scalar extract signature support.
8706 (VSTDCNDP): Add scalar test negative support.
8707 (VSTDCNSP): Likewise.
8708 (VSIEDP): Add scalar insert exponent support.
8709 (VSCEDPGT): Add scalar compare exponent greater than support.
8710 (VSCEDPLT): Add scalar compare exponent less than support.
8711 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
8712 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
8713 (VSTDCDP): Add scalar test data class support.
8714 (VSTDCSP): Likewise.
8715 (VSEEDP): Add overload support for scalar extract exponent
8717 (VSESDP): Add overload support for scalar extract signature
8719 (VSTDCN): Add overload support for scalar test negative
8721 (VSTDCNDP): Add overload support for scalar test negative
8723 (VSTDCNSP): Add overload support for scalar test negative
8725 (VSIEDP): Add overload support for scalar insert exponent
8727 (VSTDC): Add overload support for scalar test data class
8729 (VSTDCDP): Add overload support for scalar test data class
8731 (VSTDCSP): Add overload support for scalar test data class
8733 (VSCEDPGT): Add overload support for scalar compare exponent
8734 greater than operation.
8735 (VSCEDPLT): Add overload support for scalar compare exponent
8736 less than operation.
8737 (VSCEDPEQ): Add overload support for scalar compare exponent
8738 test-for-equality operation.
8739 (VSCEDPUO): Add overload support for scalar compare exponent
8740 test-for-unordered operation.
8741 (VEEDP): Add vector extract exponent support.
8743 (VESDP): Add vector extract significand support.
8745 (VIEDP): Add vector insert exponent support.
8747 (VTDCDP): Add vector test data class support.
8749 (VES): Add overload support for vector extract significand operation.
8752 (VEE): Add overload support for vector extract exponent operation.
8755 (VTDC): Add overload support for vector test data class operation.
8758 (VIE): Add overload support for vector insert exponent operation.
8761 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8762 overloaded binary floating point functions.
8763 (altivec_resolve_overloaded_builtin): Improve error messages to
8764 distinguish between functions not supported in the current
8765 compiler configuration and functions that were invoked with an
8766 invalid parameter combination, and include the built-in function
8767 name in both error messages.
8768 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
8770 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
8772 (rs6000_expand_binop_builtin): Add check to enforce that argument
8773 2 of the test data class operations is a 7-bit unsigned literal.
8774 (rs6000_invalid_builtin): Add code to issue an error message if a
8775 built-in function that requires the power9_vector and -m32
8776 command-line options is compiled without these options.
8777 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
8778 (UNSPEC_VSX_SXSIGDP): New value.
8779 (UNSPEC_VSX_SXSIGPDP): New value.
8780 (UNSPEC_VSX_SIEXPDP): New value.
8781 (UNSPEC_VSX_SCMPEXPDP): New value.
8782 (UNSPEC_VSX_STSTDC): New value.
8783 (UNSPEC_VSX_VXEXP): New value.
8784 (UNSPEC_VSX_VXSIG): New value.
8785 (UNSPEC_VSX_VIEXP): New value.
8786 (UNSPEC_VSX_VTSTDC): New value.
8787 (xsxexpdp): New insn for scalar extract exponent.
8788 (xsxsigdp): New insn for scalar extract significand.
8789 (xsiexpdp): New insn for scalar insert exponent.
8790 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
8791 (*xscmpexpdp): New insn for scalar compare exponents.
8792 (xststdc<Fvsx): New expansion for both single- and
8793 double-precision scalar test data class operations.
8794 (xststdcneg<Fvsx>): New expansion for both single- and
8795 double-precision scalar test for negative value operations.
8796 (*xststdc<Fvsx>): New insn for scalar test data class
8798 (xvxexp<VSs>): New insn for single- and double-precision
8799 vector extract exponent operation.
8800 (xvxsig<VSs>): New insn for single- and double-precision
8801 vector extract significand operation.
8802 (xviexp<VSs>): New insn for single- and double-precision
8803 vector insert exponent operation.
8804 (xvtstdc<VSs>): New insn for single- and double-precision
8805 vector test data class operation.
8806 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8807 built-in functions to represent the Power9 binary floating-point
8808 support instructions.
8810 2016-08-10 bin cheng <bin.cheng@arm.com>
8812 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
8814 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
8815 Renlin Li <renlin.li@arm.com>
8816 Bin Cheng <bin.cheng@arm.com>
8818 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
8819 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
8820 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
8821 (aarch64_vcond_internal<mode><mode>): Delete pattern.
8822 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
8823 (vcond<v_cmp_result><mode>): Ditto.
8824 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
8825 (vcondu<mode><mode>): Ditto.
8826 (vcond<v_cmp_mixed><mode>): New pattern.
8827 (vcondu<mode><v_cmp_mixed>): New pattern.
8828 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
8829 of aarch64_vcond_internal.
8831 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
8832 Renlin Li <renlin.li@arm.com>
8833 Bin Cheng <bin.cheng@arm.com>
8835 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
8836 (vec_cmp<mode><v_cmp_result>): New pattern.
8837 (vec_cmpu<mode><mode>): New pattern.
8838 (vcond_mask_<mode><v_cmp_result>): New pattern.
8840 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8842 PR tree-optimization/71734
8843 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
8844 REF_LOOP, invoke ref_indep_loop_p_1.
8845 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
8846 to ref_indep_loop_p.
8847 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
8848 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
8849 is inside LOOP, do not cache dpendence value for loops with
8851 (ref_indep_loop_p_2): Delete function.
8852 (can_sm_ref_p): Pass LOOP as additional argument to
8855 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8858 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
8859 being an offsettable address.
8861 2016-08-10 Martin Liska <mliska@suse.cz>
8863 PR gcov-profile/58306
8864 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
8865 atomic variants of profile update functions.
8867 2016-08-10 Martin Liska <mliska@suse.cz>
8869 Cherry picked (and modified) from google-4_7 branch
8870 2012-12-26 Rong Xu <xur@google.com>
8871 * common.opt (fprofile-update): Add new flag.
8872 * coretypes.h: Define enum profile_update.
8873 * doc/invoke.texi: Document -fprofile-update.
8874 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
8875 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
8876 * tree-profile.c (gimple_init_edge_profiler): Generate
8877 also atomic profiler update.
8878 (gimple_gen_edge_profiler): Likewise.
8880 2016-08-10 David Malcolm <dmalcolm@redhat.com>
8882 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
8883 stack_usage_file to NULL after fclose calls.
8885 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8888 * reload.c (push_reload): Compute subreg_in_class for
8889 subregs of constants and plus expressions. Remove special
8890 handling of SYMBOL_REFs.
8892 2016-08-10 Alan Modra <amodra@gmail.com>
8895 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
8896 SImode for TARGET_E500_DOUBLE when given SImode.
8898 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
8900 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
8901 unused variable __O.
8903 2016-08-09 Martin Liska <mliska@suse.cz>
8905 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
8906 _gcov_reset to __gcov_reset.
8907 * doc/gcov-tool.texi: Fix typo.
8909 2016-08-09 Martin Liska <mliska@suse.cz>
8911 * value-prof.c (gimple_divmod_values_to_profile): Do not
8912 instrument MOD histogram if a value is not a SSA name.
8914 2016-08-09 Martin Liska <mliska@suse.cz>
8916 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
8919 2016-08-09 Renlin Li <renlin.li@arm.com>
8922 * calls.c (prepare_call_address): Convert funexp to Pmode when
8924 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
8925 (sibcall_value): Likewise.
8927 2016-08-09 Marek Polacek <polacek@redhat.com>
8930 * cselib.c (cselib_expand_value_rtx_1): Add return.
8931 * gengtype.c (dbgprint_count_type_at): Likewise.
8932 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
8933 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
8935 2016-08-09 Martin Jambor <mjambor@suse.cz>
8938 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
8939 if instance is a MEM_REF.
8941 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
8944 * config/i386/i386.md (*movtf_internal): Use
8945 lra_in_progress || reload_completed instead of !can_create_pseudo_p
8946 in the insn constraint.
8947 (*movxf_internal): Ditto.
8948 (*movdf_internal): Ditto.
8949 (*movsf_internal): Ditto.
8951 2016-08-09 Bin Cheng <bin.cheng@arm.com>
8953 PR tree-optimization/72772
8954 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8957 2016-08-09 Bin Cheng <bin.cheng@arm.com>
8959 PR tree-optimization/72772
8960 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
8962 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
8963 parameter STOP and update calls. Move expand_simple_operations
8964 function call from here...
8965 (simplify_using_initial_conditions): ...to here. Delete parameter
8967 (tree_simplify_using_condition): Delete parameter STOP.
8968 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
8969 simplify_using_initial_conditions.
8971 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
8974 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
8975 Use create_tmp_var_raw instead of create_tmp_var.
8977 2016-08-09 Richard Biener <rguenther@suse.de>
8979 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
8980 Treat same SSA names related.
8982 2016-08-09 Jakub Jelinek <jakub@redhat.com>
8984 PR tree-optimization/72824
8985 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
8986 real_zerop is not negative.
8988 2016-08-09 Richard Biener <rguenther@suse.de>
8990 PR tree-optimization/71802
8991 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
8992 all merge opportunities with the predecessor.
8994 2016-08-09 Richard Biener <rguenther@suse.de>
8997 * ipa-prop.c (ipa_modify_formal_parameters): Build
8998 parameter types with natural alignment also for the
9001 2016-08-08 Andi Kleen <ak@linux.intel.com>
9003 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
9005 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9008 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
9009 do-nothing langhook.
9010 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
9011 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
9012 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
9013 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
9015 2016-08-08 David Malcolm <dmalcolm@redhat.com>
9018 * input.c: Ensure that HAVE_ICONV is defined.
9020 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9023 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
9024 private vars for lastprivate and for linear iterator.
9027 * omp-simd-clone.c: Include varasm.h.
9028 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
9029 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
9030 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
9031 update function name.
9033 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9035 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
9036 (avr_diagnose_devicespecs_error): Remove.
9037 (avr_devicespecs_file): Remove composing absolute path for specfile
9038 and its verbose info. Remove conditions to check specs-file,
9040 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9042 PR rtl-optimization/72821
9043 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
9044 just return false for them.
9046 2016-08-08 Alan Modra <amodra@gmail.com>
9049 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
9050 toc refs created during reload. Update function comment.
9052 2016-08-08 Alan Modra <amodra@gmail.com>
9055 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
9056 alternatives. Put loads first, then stores, and reg/reg moves
9057 within same class later. Delete attr length.
9059 2016-08-08 Alan Modra <amodra@gmail.com>
9062 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
9063 (mem_operand_ds_form): New predicate.
9064 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
9065 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
9066 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
9067 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
9068 (extendsfdf2_fpr): Replace o constraint with wY.
9070 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
9072 * tree-ssa-threadbackward.c: Include tree-inline.h
9073 (profitable_jump_thread_path): Use estimate_num_insns to estimate
9074 size of copied block; for cold paths reduce duplication.
9075 (find_jump_threads_backwards): Remove redundant tests.
9076 (pass_thread_jumps::gate): Enable for -Os.
9078 2016-08-07 Jakub Jelinek <jakub@redhat.com>
9081 * stor-layout.c (layout_decl): Fix up formatting.
9082 (relayout_decl): Allow DECL to be FIELD_DECL.
9084 2016-08-07 Alan Modra <amodra@gmail.com>
9086 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
9088 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9090 * data-streamer-in.c (streamer_read_wide_int): New.
9091 (streamer_read_widest_int): Renamed function.
9092 * data-streamer-out.c (streamer_write_wide_int): New
9093 (streamer_write_widest_int): Renamed function.
9094 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
9096 (input_cfg): Call renamed function.
9097 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
9099 (output_cfg): Call renamed function.
9100 * data-streamer.h: Add declarations.
9102 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9104 * tree-ssa-ccp.c (extend_mask): New param sgn.
9105 Remove ORing with wi::mask.
9106 (get_default_value): Adjust call to extend_mask to pass sign.
9107 (evaluate_stmt): Likewise.
9109 2016-08-06 Jakub Jelinek <jakub@redhat.com>
9111 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
9114 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9116 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
9117 transform if operand's type is pointer to function or method.
9119 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9121 PR tree-optimization/18046
9122 * tree-ssa-threadedge.c: Include cfganal.h.
9123 (simplify_control_statement_condition): If simplifying a
9124 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
9125 with the dominating ASSERT_EXPR before handing it off to VRP.
9126 Mention that a CASE_LABEL_EXPR may be returned.
9127 (thread_around_empty_blocks): Adjust to handle
9128 simplify_control_statement_condition() returning a
9130 (thread_through_normal_block): Likewise.
9131 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
9132 a switch statement by trying to determine which case label
9135 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
9137 PR rtl-optimization/69847
9138 * lra-constraints.c (process_invariant_for_inheritance): Save
9139 pattern instead of src.
9140 (remove_inheritance_pseudos): Use the pattern. Add assert.
9142 2016-08-05 David Malcolm <dmalcolm@redhat.com>
9144 * input.c (string_concat::string_concat): New constructor.
9145 (string_concat_db::string_concat_db): New constructor.
9146 (string_concat_db::record_string_concatenation): New method.
9147 (string_concat_db::get_string_concatenation): New method.
9148 (string_concat_db::get_key_loc): New method.
9149 (class auto_cpp_string_vec): New class.
9150 (get_substring_ranges_for_loc): New function.
9151 (get_source_range_for_substring): New function.
9152 (get_num_source_ranges_for_substring): New function.
9153 (class selftest::lexer_test_options): New class.
9154 (struct selftest::lexer_test): New struct.
9155 (class selftest::ebcdic_execution_charset): New class.
9156 (selftest::ebcdic_execution_charset::s_singleton): New variable.
9157 (selftest::lexer_test::lexer_test): New constructor.
9158 (selftest::lexer_test::~lexer_test): New destructor.
9159 (selftest::lexer_test::get_token): New method.
9160 (selftest::assert_char_at_range): New function.
9161 (ASSERT_CHAR_AT_RANGE): New macro.
9162 (selftest::assert_num_substring_ranges): New function.
9163 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
9164 (selftest::assert_has_no_substring_ranges): New function.
9165 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
9166 (selftest::test_lexer_string_locations_simple): New function.
9167 (selftest::test_lexer_string_locations_ebcdic): New function.
9168 (selftest::test_lexer_string_locations_hex): New function.
9169 (selftest::test_lexer_string_locations_oct): New function.
9170 (selftest::test_lexer_string_locations_letter_escape_1): New function.
9171 (selftest::test_lexer_string_locations_letter_escape_2): New function.
9172 (selftest::test_lexer_string_locations_ucn4): New function.
9173 (selftest::test_lexer_string_locations_ucn8): New function.
9174 (selftest::uint32_from_big_endian): New function.
9175 (selftest::test_lexer_string_locations_wide_string): New function.
9176 (selftest::uint16_from_big_endian): New function.
9177 (selftest::test_lexer_string_locations_string16): New function.
9178 (selftest::test_lexer_string_locations_string32): New function.
9179 (selftest::test_lexer_string_locations_u8): New function.
9180 (selftest::test_lexer_string_locations_utf8_source): New function.
9181 (selftest::test_lexer_string_locations_concatenation_1): New
9183 (selftest::test_lexer_string_locations_concatenation_2): New
9185 (selftest::test_lexer_string_locations_concatenation_3): New
9187 (selftest::test_lexer_string_locations_macro): New function.
9188 (selftest::test_lexer_string_locations_stringified_macro_argument):
9190 (selftest::test_lexer_string_locations_non_string): New function.
9191 (selftest::test_lexer_string_locations_long_line): New function.
9192 (selftest::test_lexer_char_constants): New function.
9193 (selftest::input_c_tests): Call the new test functions once per
9194 case within the line_table test matrix.
9195 * input.h (struct string_concat): New struct.
9196 (struct location_hash): New struct.
9197 (class string_concat_db): New class.
9198 * substring-locations.h: New header.
9200 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
9202 PR tree-optimization/72810
9203 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
9204 the type of the case labels when truncating.
9206 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9209 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
9210 (aarch64_fp16_ptr_type_node): Likewise.
9211 * config/aarch64/aarch64-simd-builtins.c
9212 (aarch64_fp16_ptr_type_node): Define.
9213 (aarch64_init_fp16_types): New, refactored out of...
9214 (aarch64_init_builtins): ...here, update to call
9215 aarch64_init_fp16_types.
9216 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
9218 (aapcs_vfp_sub_candidate): Likewise.
9220 2016-08-05 Martin Liska <mliska@suse.cz>
9221 Joshua Cranmer <Pidgeot18@gmail.com>
9223 * gcov.c (line_t::has_block): New function.
9224 (enum loop_type): New enum.
9225 (handle_cycle): New function.
9226 (unblock): Likewise.
9227 (circuit): Likewise.
9228 (get_cycles_count): Likewise.
9229 (accumulate_line_counts): Use new loop detection algorithm.
9231 2016-08-05 Martin Liska <mliska@suse.cz>
9233 * gcov.c (output_intermediate_file): Rename
9234 function_info::line_next to next_file_fn.
9235 (process_file): Likewise.
9236 (read_graph_file): Likewise.
9237 (accumulate_line_counts): Likewise.
9238 (output_lines): Likewise.
9240 2016-08-05 Richard Biener <rguenther@suse.de>
9242 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
9243 restriction on threading to a loop header.
9245 2016-08-05 Richard Biener <rguenther@suse.de>
9247 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
9248 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
9249 adjust loop info accordingly.
9251 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9253 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
9254 before folding call to __builtin_constant_p with parameters to false.
9256 2016-08-05 Alan Modra <amodra@gmail.com>
9258 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
9259 code accidentally committed 2016-05-02 providing class when given
9262 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9264 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
9265 the case label ranges that partially overlap with OP's value
9268 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
9271 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
9272 Cast builtin function result to __mmask16 instead of __mmask8.
9273 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9274 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
9275 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9277 2016-08-04 David Malcolm <dmalcolm@redhat.com>
9279 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
9280 (ASSERT_TRUE_AT): New macro.
9281 (ASSERT_FALSE): Reimplement in terms of...
9282 (ASSERT_FALSE_AT): New macro.
9283 (ASSERT_STREQ_AT): Fix typo in comment.
9285 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
9287 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
9288 labels are exhaustive, designate the label with the widest
9289 range to be the default label.
9291 2016-08-04 Andrew Pinski <apinski@cavium.com>
9293 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
9294 (thunderx_tunings): Use thunderx_vector_cost instead of
9295 generic_vector_cost.
9297 2016-08-04 Martin Liska <mliska@suse.cz>
9299 * gcov.c (main): Fix GNU coding style.
9300 (output_intermediate_file): Likewise.
9301 (process_file): Likewise.
9302 (generate_results): Likewise.
9303 (release_structures): Likewise.
9304 (create_file_names): Likewise.
9305 (find_source): Likewise.
9306 (read_graph_file): Likewise.
9307 (find_exception_blocks): Likewise.
9308 (canonicalize_name): Likewise.
9309 (make_gcov_file_name): Likewise.
9310 (mangle_name): Likewise.
9311 (accumulate_line_counts): Likewise.
9312 (output_branch_count): Likewise.
9313 (read_line): Likewise.
9315 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9317 PR rtl-optimization/71779
9318 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
9319 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
9320 or if it was truncated.
9322 PR rtl-optimization/70903
9323 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
9325 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9327 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
9328 accessing SSA_NAME_PTR_INFO.
9330 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9333 * common/config/avr/avr-common.c (avr_option_optimization_table)
9334 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
9336 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
9339 * config/avr/avr.md: New pattern to work around do_store_flag
9340 generating shift instructions for bit extractions.
9342 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
9344 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
9346 (add_equivalence): Likewise.
9347 (get_value_range): Allocate value range with vrp_value_range_pool.
9348 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
9349 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
9351 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
9353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
9354 the default for the rs6000 port.
9356 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9359 * calls.c (special_function_p): Remove special handling of
9360 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
9361 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
9362 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
9364 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
9367 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
9368 Don't stop on regular insns.
9370 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9372 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
9373 size to DImode boundary.
9374 (nvptx_propagate): Likewise.
9376 2016-08-03 Alan Modra <amodra@gmail.com>
9378 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
9379 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
9380 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
9381 from -mefficient-unaligned-vector. Note that this affects fp too.
9383 2016-08-03 Alan Modra <amodra@gmail.com>
9385 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
9388 2016-08-03 Alan Modra <amodra@gmail.com>
9390 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
9391 to a reg. Localize vars.
9393 2016-08-03 Alan Modra <amodra@gmail.com>
9395 * config/rs6000/rs6000.opt: Remove negatives from help strings
9398 2016-08-03 Alan Modra <amodra@gmail.com>
9400 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
9401 Delete duplicated code.
9403 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9406 * lra-spills.c (regno_in_use_p): New.
9407 (lra_final_code_change): Use it.
9409 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
9411 PR rtl-optimization/69847
9412 * lra-int.h (struct lra-reg): Use restore_rtx instead of
9414 (lra_rtx_hash): New.
9415 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
9417 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
9418 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
9419 * lra-spills.c (lra_final_code_change): Don't delete insn when the
9420 next insn is USE with the same reg as the current insn source.
9421 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
9423 (lra_constraints_init): Call initiate_invariants.
9424 (lra_constraints_finish): Call finish_invariants.
9425 (struct invariant, invariant_t, invariant_ptr_t): New.
9426 (const_invariant_ptr_t, invariants, invariants_pool): New.
9427 (invariant_table, invariant_hash, invariant_eq_p): New.
9428 (insert_invariant, initiate_invariants, finish_invariants): New.
9429 (clear_invariants, invalid_invariant_regs): New.
9430 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
9431 instead of restore_regno.
9432 (invariant_p, process_invariant_for_inheritance): New.
9433 (inherit_in_ebb): Implement invariant inheritance.
9434 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
9435 (remove_inheritance_pseudos): Implement undoing invariant
9437 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
9438 instead of restore_regno.
9439 * lra-assigns.c (regno_live_length): New.
9440 (reload_pseudo_compare_func): Use regno_live_length.
9441 (assign_by_spills): Use restore_rtx instead of restore_regno.
9442 (lra_assign): Ditto. Initiate regno_live_length.
9444 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
9446 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
9447 __builtin_aarch64_fmindf.
9449 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9451 PR tree-optimization/34114
9452 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
9453 information for more control IVs.
9455 2016-08-02 Bin Cheng <bin.cheng@arm.com>
9457 PR tree-optimization/34114
9458 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
9459 PLUS_EXPR case. Handle SSA_NAME case.
9461 2016-08-02 Tamar Christina <tamar.christina@arm.com>
9463 * config/aarch64/aarch64-simd-builtins.def
9464 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
9465 (__builtin_aarch64_fmaxdf): Likewise.
9466 (__builtin_aarch64_smin_nandf): Likewise.
9467 (__builtin_aarch64_smax_nandf): Likewise.
9468 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
9469 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
9470 (<fmaxmin><mode>3): ...this.
9471 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
9472 (vminnm_f64): Likewise.
9473 (vmin_f64): Likewise.
9474 (vmax_f64): Likewise.
9475 * config/aarch64/iterators.md (FMAXMIN): Merge with...
9476 (FMAXMIN_UNS): ...this.
9477 (fmaxmin): Merged with
9478 (fmaxmin_op): ...this...
9479 (maxmin_uns_op): ...in to this.
9481 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9483 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9484 Add support for vec_extract on vector float, vector int, vector
9485 short, and vector char vector types.
9486 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9487 vector float, vector int, vector short, and vector char
9488 optimizations on 64-bit ISA 2.07 systems for both constant and
9489 variable element numbers.
9490 (rs6000_split_vec_extract_var): Likewise.
9491 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
9492 Altivec registers on ISA 2.07 and above.
9493 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
9494 which never was matched due to the split occuring before register
9495 allocation (and the code would not have worked on little endian
9496 systems if it did match). Allow extracts to go to the Altivec
9497 registers if ISA 2.07 (power8). Change from using "" around the
9498 C++ code to using {}'s.
9499 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
9500 vec_extracts when the vector is in memory.
9501 (vsx_extract_v4sf_var): New insn to optimize vector float
9502 vec_extracts when the element number is variable on 64-bit ISA
9504 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
9505 for 64-bit ISA 2.07 as well as ISA 3.0.
9506 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
9507 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
9508 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
9509 optimize vector int, vector short, and vector char vec_extracts
9510 when the vector is in memory.
9511 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
9512 optimize vector int, vector short, and vector char vec_extracts
9513 when the element number is variable.
9515 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9518 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
9519 does not overlap with other symbol flags.
9521 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
9523 * config/aarch64/aarch64.h (aarch64_frame):
9524 Remove padding0 and hardfp_offset. Add locals_offset,
9525 initial_adjust, callee_adjust, callee_offset and final_adjust.
9526 * config/aarch64/aarch64.c (aarch64_layout_frame):
9527 Remove unused padding0 and hardfp_offset initializations.
9528 Choose frame layout and set frame variables accordingly.
9529 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
9530 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
9531 (aarch64_pop_regs): Likewise.
9532 (aarch64_expand_prologue): Remove all decision code, just emit
9533 prolog according to frame variables.
9534 (aarch64_expand_epilogue): Remove all decision code, just emit
9535 epilog according to frame variables.
9536 (aarch64_initial_elimination_offset): Use offset to local/arg area.
9538 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
9541 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
9542 fix_debug_reg_uses after changing source register mode to
9543 V1TImode if source register is undefined.
9545 2015-08-01 Alan Hayward <alan.hayward@arm.com>
9547 PR tree-optimization/71818
9548 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
9549 with non invariant evolutions
9551 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9554 * config/avr/avr.md (length) [branch]: Correct insn length
9555 attribute for forward branches.
9557 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
9559 * doc/extend.texi (AVR Built-in Functions): Document
9561 * config/avr/builtins.def (NOPS): New.
9562 * config/avr/avr.c (avr_expand_nops): New static function.
9563 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
9565 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9567 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
9568 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
9571 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
9573 * config/aarch64/aarch64.c (vulcan_tunings): Update
9574 vulcan L1 cache_line_size.
9576 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9578 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
9579 function that takes a vector memory address, a hard register, an
9580 element number and a temporary base register, and recreates an
9581 address that points to the appropriate element within the vector.
9582 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
9583 (rs6000_split_vec_extract_var): Add support for the target of a
9584 vec_extract with variable element number being a scalar memory
9586 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
9588 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
9589 vsx_extract_<mode>_load insn with a new insn that optimizes
9590 storing either element to a memory location, using scratch
9591 registers to pick apart the vector and reconstruct the address.
9592 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
9593 (vsx_extract_<mode>_store): Rework alternatives to more correctly
9594 support Altivec registers. Add support for ISA 3.0 Altivec d-form
9596 (vsx_extract_<mode>_var): Add support for extracting a variable
9597 element number from memory.
9599 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9601 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
9602 when testing for compares against constants of the form 0xabab.
9604 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9606 PR tree-optimization/57558
9607 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
9609 (vect_loop_versioning): Support versioning with niter assumptions.
9610 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
9611 (vect_get_loop_niters): New parameter. Reimplement to support
9612 assumptions in loop niter info.
9613 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
9614 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
9615 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
9616 Support loop versioning for niters.
9617 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
9618 (vect_free_loop_info_assumptions): New function.
9619 (vectorize_loops): Free loop niter info for loops with flag
9620 LOOP_F_ASSUMPTIONS set if vectorization failed.
9621 * tree-vectorizer.h (struct _loop_vec_info): New field
9622 num_iters_assumptions.
9623 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
9624 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
9625 (LOOP_REQUIRES_VERSIONING): New macro.
9626 (vect_free_loop_info_assumptions): New decl.
9628 2016-07-29 Bin Cheng <bin.cheng@arm.com>
9630 * cfgloop.h (struct loop): New field constraints.
9631 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
9632 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
9634 * cfgloop.c (alloc_loop): Initialize new field.
9635 * cfgloopmanip.c (copy_loop_info): Copy constraints.
9636 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9637 Adjust niter analysis wrto loop constraints.
9638 * doc/loop.texi (@node Number of iterations): Add description for loop
9641 2016-07-29 Marek Polacek <polacek@redhat.com>
9644 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
9645 (ix86_expand_round_builtin): Likewise.
9647 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9648 Georg-Johann Lay <avr@gjlay.de>
9650 PR rtl-optimization/71976
9651 * combine.c (get_last_value): Return 0 if the argument for which
9652 the function is called has a wider mode than the recorded value.
9654 2016-07-29 Marek Polacek <polacek@redhat.com>
9657 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
9658 (altivec_expand_st_builtin): Likewise.
9660 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
9662 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
9663 introduced in r238381.
9665 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9668 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
9669 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
9671 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9673 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
9675 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9676 Add support for vec_extract of vector double or vector long having
9677 a variable element number on 64-bit ISA 2.07 systems or newer.
9678 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9680 (rs6000_split_vec_extract_var): New function to split a
9681 vec_extract built-in function with variable element number.
9682 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
9684 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
9685 (UNSPEC_VSX_EXTRACT): Likewise.
9686 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
9687 direct move instructions to be generated on 64-bit ISA 2.07
9688 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
9690 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
9691 arguments for vec_extract variable element.
9692 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
9693 vec_extract with variable element on V2DFmode and V2DImode
9695 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
9696 -mupper-regs-df requirement, since it isn't needed.
9697 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
9698 do direct moves on 64-bit systems, which allows optimization of
9699 vec_extract on 64-bit ISA 2.07 systems and newer.
9701 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9702 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9704 * config/aarch64/aarch64.md
9705 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
9707 (<optab>qihi2_aarch64): Likewise, and split into two.
9708 (extendqihi2_aarch64): New.
9709 (zero_extendqihi2_aarch64): New.
9710 * config/aarch64/iterators.md (ldrxt): Remove.
9711 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
9714 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
9716 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
9718 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
9720 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
9721 (aarch64_push_reg): New function to push 1 or 2 registers.
9722 (aarch64_pop_reg): New function to pop 1 or 2 registers.
9723 (aarch64_expand_prologue): Use aarch64_push_regs.
9724 (aarch64_expand_epilogue): Use aarch64_pop_regs.
9726 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
9728 PR tree-optimization/71734
9729 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
9730 attribute instead of REF_LOOP and use it.
9731 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
9732 set it for Loops having non-zero safelen attribute.
9733 (ref_indep_loop_p): Pass zero as initial value for safelen.
9735 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
9739 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
9740 call using chkp_gimple_call_builtin_p.
9741 (chkp_copy_bounds_for_assign): Likewise.
9743 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9745 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
9746 * config/arm/arm-protos.h (struct tune_params): Likewise.
9747 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9748 (cortex_a9_sched_adjust_cost): Likewise.
9749 (fa726te_sched_adjust_cost): Likewise.
9750 (arm_adjust_cost): Likewise.
9751 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
9752 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
9753 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
9754 * config/i386/i386.c (ix86_adjust_cost): Likewise.
9755 * config/ia64/ia64.c: Likewise.
9756 * config/m68k/m68k.c: Likewise.
9757 * config/mep/mep.c (mep_adjust_cost): Likewise.
9758 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9760 * config/mips/mips.c (mips_adjust_cost): Likewise.
9761 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
9763 * config/pa/pa.c (pa_adjust_cost): Likewise.
9764 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
9765 (rs6000_debug_adjust_cost): Likewise.
9766 * config/sh/sh.c (sh_adjust_cost): Likewise.
9767 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
9768 (hypersparc_adjust_cost): Likewise.
9769 (sparc_adjust_cost): Likewise.
9770 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
9771 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
9772 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
9774 * config/visium/visium.c (visium_adjust_cost): Likewise.
9775 * doc/tm.texi: Regenerate.
9776 * haifa-sched.c (dep_cost_1): Adjust.
9777 * target.def: Merge adjust_cost and adjust_cost_2.
9779 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9781 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
9783 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9785 * store-motion.c (struct st_expr): Make pattern_regs a vector.
9786 (extract_mentioned_regs): Append to a vector instead of
9787 returning a rtx_expr_list.
9788 (st_expr_entry): Adjust.
9789 (free_st_expr_entry): Likewise.
9790 (store_ops_ok): Likewise.
9791 (store_killed_in_insn): Likewise.
9792 (find_moveable_store): Likewise.
9794 2016-07-28 Martin Liska <mliska@suse.cz>
9796 PR gcov-profile/68025
9797 * tree-profile.c (tree_profiling): Respect
9798 no_profile_instrument_function attribute.
9799 * doc/extend.texi: Document no_profile_instrument_function
9802 2016-07-28 Martin Liska <mliska@suse.cz>
9804 PR rtl-optimization/70944
9805 * combine.c (make_compound_operation):
9806 Do not allow make_compound_operation for vector mode
9808 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
9811 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
9812 before calling get_ops.
9814 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9816 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
9817 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
9818 (BITS_PER_UNIT_LOG): Remove.
9819 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
9820 * expr.c (expand_assignment): Likewise.
9821 * stor-layout.c (initialize_sizetypes): Likewise.
9823 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9825 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
9826 signature of rs6000_expand_vector_extract so that the element
9827 number is a RTX instead of a constant integer.
9828 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
9830 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
9831 (altivec_expand_vec_ext_builtin): Likewise.
9832 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
9833 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
9834 MFVSRLD instruction.
9836 2016-07-27 David Malcolm <dmalcolm@redhat.com>
9838 * input.c (get_pure_location): Move here from tree.c.
9839 (make_location): Likewise. Add header comment.
9840 (selftest::test_accessing_ordinary_linemaps): Verify
9841 pure_location_p, make_location, get_location_from_adhoc_loc and
9843 * input.h (get_pure_location): Move declaration here from tree.h.
9844 (get_finish): Likewise for inline function.
9845 (make_location): Likewise for declaration.
9846 * tree.c (get_pure_location): Move to input.c.
9847 (make_location): Likewise.
9848 * tree.h (get_pure_location): Move declaration to tree.h.
9849 (get_finish): Likewise for inline function.
9850 (make_location): Likewise for declaration.
9852 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9855 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
9857 2016-07-27 David Malcolm <dmalcolm@redhat.com>
9859 * system.h (STATIC_ASSERT): Use static_assert if building
9862 2016-07-27 Richard Biener <rguenther@suse.de>
9864 PR tree-optimization/72517
9865 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9866 Revert change to not compute read-read dependences.
9868 2016-07-27 Richard Biener <rguenther@suse.de>
9870 * predict.c (set_even_probabilities): Make nedges unsigned.
9872 2016-07-27 Martin Liska <mliska@suse.cz>
9874 * predict.c (set_even_probabilities): Handle unlikely edges.
9875 (combine_predictions_for_bb): Likewise.
9877 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9880 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
9881 __float128 support when we don't have hardware support, so that
9882 the IEEE built-in functions like isgreater, first call __unordkf3
9883 to make sure neither operand is a NaN, and if both operands are
9884 ordered, do the normal comparison.
9886 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
9888 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
9890 (extract_code_and_val_from_cond_with_ops): Verify that name is
9891 either cond_op0 or cond_op1.
9893 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
9895 PR tree-optimization/18046
9896 * genmodes.c (emit_mode_size_inline): Emit an assert that
9897 verifies that mode is a valid array index.
9898 (emit_mode_nuinits_inline): Likewise.
9899 (emit_mode_inner_inline): Likewise.
9900 (emit_mode_unit_size_inline): Likewise.
9901 (emit_mode_unit_precision_inline): Likewise.
9902 * tree-vrp.c: Include params.h.
9903 (find_switch_asserts): Register edge assertions for the default
9904 label which correspond to the anti-ranges of each case label.
9905 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
9906 * doc/invoke.texi: Document it.
9908 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9910 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
9911 and unnecessary call to gimple_bb.
9913 2016-07-26 Richard Biener <rguenther@suse.de>
9915 PR rtl-optimization/71984
9916 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
9919 2016-07-26 Richard Biener <rguenther@suse.de>
9922 * expmed.c (extract_bit_field_1): Constrain the vector mode
9923 with element size matching the extraction mode size when
9924 choosing a better vector mode to do the extraction from.
9926 2016-07-26 Richard Biener <rguenther@suse.de>
9927 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9930 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
9933 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9935 * tree-ssa-structalias.c (struct scc_info): Change types of
9936 members to auto_sbitmap and auto_vec.
9937 (scc_info::scc_info): New constructor.
9938 (scc_info::~scc_info): New destructor.
9939 (init_scc_info): Remove.
9940 (free_scc_info): Remove.
9941 (find_indirect_cycles): Adjust.
9942 (perform_var_substitution): Likewise.
9943 (free_var_substitution_info): Likewise.
9945 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9947 * tree-outof-ssa.c (struct elim_graph): Change type of members
9948 to auto_vec and auto_sbitmap.
9949 (elim_graph::elim_graph): New constructor.
9950 (delete_elim_graph): Remove.
9951 (expand_phi_nodes): Adjust.
9953 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9955 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
9956 (new_elim_graph): Adjust.
9957 (clear_elim_graph): Likewise.
9958 (delete_elim_graph): Likewise.
9959 (elim_graph_size): Likewise.
9960 (elim_graph_add_node): Likewise.
9961 (elim_graph_add_edge): Likewise.
9962 (elim_graph_remove_succ_edge): Likewise.
9963 (eliminate_name): Likewise.
9964 (eliminate_build): Likewise.
9965 (elim_forward): Likewise.
9966 (elim_unvisited_predecessor): Likewise.
9967 (elim_backward): Likewise.
9968 (elim_create): Likewise.
9969 (eliminate_phi): Likewise.
9970 (expand_phi_nodes): Likewise.
9972 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9974 * bt-load.c (compute_out): Use auto_sbitmap class.
9975 (link_btr_uses): Likewise.
9976 * cfganal.c (mark_dfs_back_edges): Likewise.
9977 (post_order_compute): Likewise.
9978 (inverted_post_order_compute): Likewise.
9979 (pre_and_rev_post_order_compute_fn): Likewise.
9980 (single_pred_before_succ_order): Likewise.
9981 * cfgexpand.c (pass_expand::execute): Likewise.
9982 * cfgloop.c (verify_loop_structure): Likewise.
9983 * cfgloopmanip.c (fix_bb_placements): Likewise.
9984 (remove_path): Likewise.
9985 (update_dominators_in_loop): Likewise.
9986 * cfgrtl.c (break_superblocks): Likewise.
9987 * ddg.c (check_sccs): Likewise.
9988 (create_ddg_all_sccs): Likewise.
9989 * df-core.c (df_worklist_dataflow): Likewise.
9990 * dse.c (dse_step3): Likewise.
9991 * except.c (eh_region_outermost): Likewise.
9992 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9993 * gcse.c (prune_expressions): Likewise.
9994 (prune_insertions_deletions): Likewise.
9995 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
9996 * graph.c (draw_cfg_nodes_no_loops): Likewise.
9997 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
9998 * lcm.c (compute_earliest): Likewise.
9999 (compute_farthest): Likewise.
10000 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
10001 (unroll_loop_runtime_iterations): Likewise.
10002 (unroll_loop_stupid): Likewise.
10003 * lower-subreg.c (decompose_multiword_subregs): Likewise.
10004 * lra-lives.c: Likewise.
10005 * lra.c (lra): Likewise.
10006 * modulo-sched.c (schedule_reg_moves): Likewise.
10007 (optimize_sc): Likewise.
10008 (get_sched_window): Likewise.
10009 (sms_schedule_by_order): Likewise.
10010 (check_nodes_order): Likewise.
10011 (order_nodes_of_sccs): Likewise.
10012 (order_nodes_in_scc): Likewise.
10013 * recog.c (split_all_insns): Likewise.
10014 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
10015 * reload1.c (reload): Likewise.
10016 * sched-rgn.c (haifa_find_rgns): Likewise.
10017 (split_edges): Likewise.
10018 (compute_trg_info): Likewise.
10019 * sel-sched.c (init_seqno): Likewise.
10020 * store-motion.c (remove_reachable_equiv_notes): Likewise.
10021 * tree-into-ssa.c (update_ssa): Likewise.
10022 * tree-ssa-live.c (live_worklist): Likewise.
10023 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
10024 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10026 (try_peel_loop): Likewise.
10027 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10029 * tree-ssa-pre.c (compute_antic): Likewise.
10030 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
10031 * tree-stdarg.c (reachable_at_most_once): Likewise.
10032 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
10033 * var-tracking.c (vt_find_locations): Likewise.
10035 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10037 * sbitmap.h (auto_sbitmap): New class.
10039 2016-07-26 Alan Modra <amodra@gmail.com>
10042 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
10045 2016-07-25 David Malcolm <dmalcolm@redhat.com>
10047 * input.c (selftest::temp_source_file::temp_source_file): Fix
10048 missing "%s" in fprintf.
10050 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
10052 PR middle-end/71732
10053 * cselib.c (cselib_process_insn): Invalidate argument slots for
10056 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10058 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
10059 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
10060 vmulxh_lane_f16, vmulxh_laneq_f16): New.
10062 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10064 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10065 * config/aarch64/aarch64.md (fma, fnma): Support HF.
10066 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
10068 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10070 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10071 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
10073 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
10074 (add<mode>3): Likewise.
10075 (sub<mode>3): Likewise.
10076 (mul<mode>3): Likewise.
10077 (div<mode>3): Likewise.
10078 (*div<mode>3): Likewise.
10079 (<fmaxmin><mode>3): Extend to HF.
10080 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
10081 (fabd<mode>3): Likewise.
10082 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
10083 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
10084 (aarch64_fmulx<mode>): Likewise.
10085 (aarch64_fac<optab><mode>): Likewise.
10086 (aarch64_frecps<mode>): Likewise.
10087 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
10088 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
10089 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
10090 (VSDQ_HSDI): Support HI.
10091 (fcvt_target, FCVT_TARGET): Likewise.
10092 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
10093 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
10094 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
10095 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
10096 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
10097 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
10098 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
10099 vrsqrtsh_f16): New.
10101 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10103 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
10104 * config/aarch64/aarch64-builtins.c (hi_UP): New.
10105 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10106 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
10108 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10109 (aarch64_cm<optab><mode>): Likewise.
10110 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
10111 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
10112 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
10113 (sqrt<mode>2): Likewise.
10114 (*sqrt<mode>2): Likewise.
10115 (abs<mode>2): Likewise.
10116 (<optab><mode>hf2): New pattern for HF mode.
10117 (<optab>hihf2): Likewise.
10118 * config/aarch64/arm_neon.h: Include arm_fp16.h.
10119 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
10120 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
10122 * config/aarch64/arm_fp16.h: New file.
10123 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
10124 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
10125 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
10126 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
10127 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
10128 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
10129 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
10130 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
10131 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
10132 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
10133 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
10134 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
10137 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10139 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
10140 reduc_smin_scal_): Use VDQIF_F16.
10141 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
10142 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
10144 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
10145 * config/aarch64/iterators.md (VDQIF_F16): New.
10146 (vp): Support HF modes.
10147 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
10148 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
10150 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10152 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
10153 "*aarch64_mulx_elt_from_dup<mode>".
10154 (*aarch64_mul3_elt<mode>): Update schedule type.
10155 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
10156 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
10157 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10158 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
10159 (f, fp): Support HF modes.
10160 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
10161 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
10162 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
10163 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
10164 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
10165 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
10167 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10169 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10170 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
10172 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
10175 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10177 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10178 * config/aarch64/aarch64-simd.md
10179 (aarch64_rsqrts<mode>): Extend to HF modes.
10180 (fabd<mode>3): Likewise.
10181 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
10182 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
10183 (aarch64_<maxmin_uns>p<mode>): Likewise.
10184 (<su><maxmin><mode>3): Likewise.
10185 (<maxmin_uns><mode>3): Likewise.
10186 (<fmaxmin><mode>3): Likewise.
10187 (aarch64_faddp<mode>): Likewise.
10188 (aarch64_fmulx<mode>): Likewise.
10189 (aarch64_frecps<mode>): Likewise.
10190 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
10191 (add<mode>3): Extend to HF modes.
10192 (sub<mode>3): Likewise.
10193 (mul<mode>3): Likewise.
10194 (div<mode>3): Likewise.
10195 (*div<mode>3): Likewise.
10196 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
10198 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
10199 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
10200 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
10201 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
10202 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
10203 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
10204 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
10205 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
10206 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
10207 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
10208 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
10209 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
10210 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
10211 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
10213 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10215 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
10216 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10217 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
10218 (neg<mode>2): Likewise.
10219 (abs<mode>2): Likewise.
10220 (<frint_pattern><mode>2): Likewise.
10221 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10222 (<optab><VDQF:mode><fcvt_target>2): Likewise.
10223 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
10224 (ftrunc<VDQF:mode>2): Likewise.
10225 (<optab><fcvt_target><VDQF:mode>2): Likewise.
10226 (sqrt<mode>2): Likewise.
10227 (*sqrt<mode>2): Likewise.
10228 (aarch64_frecpe<mode>): Likewise.
10229 (aarch64_cm<optab><mode>): Likewise.
10230 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
10232 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
10233 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
10235 * config/aarch64/arm_neon.h (vdup_n_f16): New.
10236 (vdupq_n_f16): Likewise.
10237 (vld1_dup_f16): Use vdup_n_f16.
10238 (vld1q_dup_f16): Use vdupq_n_f16.
10239 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
10240 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
10241 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
10242 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
10243 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
10244 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
10245 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
10246 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
10247 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
10248 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
10249 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
10250 vsqrt_f16, vsqrtq_f16): New.
10252 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10254 * config/aarch64/aarch64-simd.md
10255 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
10256 (aarch64_ext<mode>): Likewise.
10257 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
10258 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
10259 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
10261 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
10263 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
10264 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
10265 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
10266 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
10267 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
10268 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
10269 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
10271 (vmov_n_f16): Reimplement using vdup_n_f16.
10272 (vmovq_n_f16): Reimplement using vdupq_n_f16..
10274 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10276 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
10277 "frame_related_p". Generate CFA annotation when it's necessary.
10278 (aarch64_expand_prologue): Use aarch64_add_constant.
10279 (aarch64_expand_epilogue): Likewise.
10280 (aarch64_output_mi_thunk): Pass "false" when calling
10281 aarch64_add_constant.
10283 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10285 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
10288 2016-07-25 Jiong Wang <jiong.wang@arm.com>
10290 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
10291 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
10292 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
10293 (aarch64_build_constant): Delete.
10295 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
10298 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10300 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10301 flag_toplevel_reorder.
10303 2016-07-25 Richard Biener <rguenther@suse.de>
10305 * cgraph.c (cgraph_node::verify_node): Compare against builtin
10306 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
10307 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
10308 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
10309 (streamer_get_builtin_tree): Likewise.
10310 (streamer_write_builtin): Likewise.
10311 * lto-streamer.h (LTO_builtin_decl): Remove.
10312 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
10313 (lto_input_scc): Remove LTO_builtin_decl handling.
10314 (lto_input_tree_1): Liekwise.
10315 * lto-streamer-out.c (lto_output_tree_1): Remove special
10316 handling of builtins.
10317 (DFS::DFS): Likewise.
10318 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
10319 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
10321 (streamer_write_builtin): Remove.
10323 2016-07-25 Martin Liska <mliska@suse.cz>
10325 * lto-cgraph.c (input_symtab): Don't call get_working_sets
10326 if flag_auto_profile is set to true.
10328 2016-07-25 Martin Liska <mliska@suse.cz>
10330 PR gcov-profile/71868
10331 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
10332 have a function with multiple latches, count them all.
10334 2016-07-25 Martin Liska <mliska@suse.cz>
10336 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
10338 2016-07-25 Martin Liska <mliska@suse.cz>
10340 PR tree-optimization/71987
10341 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
10342 just for SSA_NAMEs. Fix GNU coding style.
10344 2016-07-25 Martin Liska <mliska@suse.cz>
10346 PR gcov-profile/64874
10347 * gcov-io.h: Update command about file format.
10348 * gcov-iov.c (main): Adapt the numbering scheme.
10350 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
10352 PR middle-end/66726
10353 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
10354 whose result is used in PHI.
10355 (final_range_test_p): Likewise.
10356 (maybe_optimize_range_tests): Likewise.
10358 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10360 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10361 Reformat two multi-line strings.
10363 2016-07-22 Martin Sebor <msebor@redhat.com>
10365 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
10367 2016-07-22 Martin Sebor <msebor@redhat.com>
10370 * doc/extend.texi (Compound Literals): Correct and clarify.
10371 (Cast to Union): Same.
10373 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
10375 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10376 comments to explain why certain error messages make mention of
10377 undocumented options.
10378 (rs6000_invalid_builtin): Change error messages to replace mention
10379 of undocumented options with mention of the -mcpu=power9 option
10380 that enables those undocumented options.
10381 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
10382 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
10383 definition of this macro to correct an existing error.
10384 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
10385 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
10386 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
10387 descriptions of built-in functions so that they depend on
10388 -mcpu=power9 instead of on the corresponding undocumented flags.
10389 * doc/invoke.texi (Option Summary): Remove all mention of newly
10390 undocumented flags.
10391 (IBM RS/6000 and PowerPC Options): Likewise.
10392 * doc/md.texi (Constraints for Particuliar Machines): Remove all
10393 mention of newly undocumented flags.
10395 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
10397 * ipa-cp.c (determine_versionability): Do not create constprop clones,
10398 when target_clones attribute is set.
10400 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10402 * common.opt (funsafe-loop-optimizations): Mark ignore.
10403 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
10404 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
10406 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
10407 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
10409 2016-07-22 Bin Cheng <bin.cheng@arm.com>
10411 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10413 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10415 (number_of_iterations_exit): Warn missed loop optimization for
10416 possible infinite loops.
10418 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
10421 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
10422 when to emit a ".machine" pseudo-op.
10424 2016-07-22 Martin Liska <mliska@suse.cz>
10426 PR gcov-profile/69028
10427 PR gcov-profile/62047
10428 * coverage.c (coverage_compute_lineno_checksum): Do not
10429 calculate checksum for fns w/o xloc.file.
10430 (coverage_compute_profile_id): Likewise.
10432 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
10434 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
10435 (avr_secondary_reload): ...and implementation.
10436 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
10437 * config/avr/avr.md (reload_in<mode>): Remove insns.
10438 (adjust_len) [lpm]: Remove insn attribute value.
10439 * config/avr/predicates.md (flash_operand): Remove insn predicate.
10441 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10443 PR middle-end/71876
10444 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
10446 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
10447 * calls.c (special_function_p): Remove the special handling of the
10448 "__builtin_" prefix.
10450 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10452 PR middle-end/71876
10453 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
10454 if STMT may be an alloca call.
10455 (gimple_alloca_call_p, alloca_call_p): Return only true for the
10456 builtin alloca call.
10457 * calls.h (gimple_maybe_alloca_call_p): New function.
10458 * tree-inline.c (inline_forbidden_p_stmt): Use
10459 gimple_maybe_alloca_call_p here.
10461 2016-07-21 David Malcolm <dmalcolm@redhat.com>
10463 * spellcheck-tree.c (best_macro_match::best_macro_match):
10464 Explictly specify the template arguments when invoking the base
10465 class constructor, to help older C++ compilers.
10467 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10470 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
10471 before builtin_decl_implicit.
10473 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10475 * optabs.c (emit_condiitonal_move): Short circuit for identical
10478 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10480 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
10481 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
10482 (noce_conversion_profitable_p): New.
10483 (noce_try_store_flag_constants): Use it.
10484 (noce_try_addcc): Likewise.
10485 (noce_try_store_flag_mask): Likewise.
10486 (noce_try_cmove): Likewise.
10487 (noce_try_cmove_arith): Likewise.
10488 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
10490 (noce_convert_multiple_sets): Move cost model to here, from...
10491 (bb_ok_for_noce_convert_multiple_sets) ...here.
10492 (noce_process_if_block): Update calls for above changes.
10493 (noce_find_if_block): Record new noce_if_info parameters.
10495 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
10497 * target.def (max_noce_ifcvt_seq_cost): New.
10498 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
10499 * doc/tm.texi: Regenerate.
10500 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
10501 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
10502 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
10503 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
10504 * doc/invoke.texi: Document new params.
10506 2016-07-21 Richard Biener <rguenther@suse.de>
10508 PR tree-optimization/71947
10509 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
10510 ranges have useful limit_vr information.
10512 2016-07-21 Richard Biener <rguenther@suse.de>
10514 * function-tests.c (build_trivial_generic_function): Set
10515 BLOCK_SUPERCONTEXT of DECL_INITIAL.
10516 * omp-low.c (create_omp_child_function): Likewise.
10517 (grid_expand_target_grid_body): Likewise.
10518 * cgraphunit.c (init_lowered_empty_function): Likewise.
10519 (cgraph_node::expand_thunk): Likewise.
10520 * tree-parloops.c (create_loop_fn): Likewise.
10521 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
10523 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10525 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
10528 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
10530 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
10531 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
10532 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
10533 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
10534 values for insn attribute.
10535 * config/avr/avr.c (avr_out_insert_notbit): New function.
10536 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
10537 ADJUST_LEN_INSV_NOTBIT_0/_7.
10538 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
10540 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10542 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
10543 (chrec_convert_1, chrec_convert): Ditto.
10544 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
10545 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
10546 * tree-vrp.c (adjust_range_with_scev): Ditto.
10547 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
10548 (scev_var_range_cant_overflow): New function.
10549 (scev_probably_wraps_p): New parameter. Call above function.
10550 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
10552 2016-07-21 Bin Cheng <bin.cheng@arm.com>
10554 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
10555 by removing computation of may_be_zero.
10557 2016-07-21 Jakub Jelinek <jakub@redhat.com>
10559 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
10561 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
10563 Improving concepts performance and diagnostics.
10564 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
10565 for constraint satisfaction and subsumption.
10566 * timevar.h (auto_timevar): New constructor that matches the push/pop
10567 pattern of usage in pt.c.
10569 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10571 * hwint.h (HOST_WIDE_INT_0): New define.
10572 (HOST_WIDE_INT_0U): Ditto.
10573 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
10574 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
10575 * simplify-rtx.c: Ditto.
10576 * tree-object-size.c: Ditto.
10578 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10580 * config/s390/s390.c (s390_encode_section_info): Remove mode size
10583 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
10585 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
10586 * combine.c: Use HOST_WIDE_INT_M1U instead of
10587 ~(unsigned HOST_WIDE_INT) 0.
10588 * double-int.h: Ditto.
10590 * dwarf2asm.c:Ditto.
10592 * genmodes.c: Ditto.
10594 * read-rtl.c: Ditto.
10595 * tree-ssa-loop-ivopts.c: Ditto.
10596 * tree-ssa-loop-prefetch.c: Ditto.
10597 * tree-vect-generic.c: Ditto.
10598 * tree-vect-patterns.c: Ditto.
10601 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10603 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
10604 constant addresses outside [0,0xc0] into a register.
10605 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
10606 cases where the base address register is unused after.
10607 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
10608 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
10609 (avr_out_store_psi_reg_disp_tiny): Same.
10611 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10613 Implement attribute progmem on reduced Tiny cores by adding
10614 flash offset 0x4000 to respective symbols.
10617 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
10618 documentation how it works on reduced Tiny cores.
10619 (AVR Named Address Spaces): No support for reduced Tiny.
10620 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
10621 (avr_address_tiny_pm_p): New static function.
10622 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
10623 if the address is in progmem.
10624 (avr_assemble_integer): Same.
10625 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
10626 for symbol_ref in progmem.
10627 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
10628 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
10629 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
10631 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
10633 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
10634 * configure: Regenerate.
10635 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
10636 (USE_THIN_ARCHIVES): New variable.
10637 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
10638 this archive as a thin archive.
10640 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10642 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
10643 same location as last time, don't skip if we have fix-it hints.
10644 Clarify the skipping logic by converting it from one "if" clause
10645 to repeated "if" clauses.
10646 * spellcheck-tree.c: Include "cpplib.h".
10647 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
10648 (best_macro_match::best_macro_match): New constructor.
10649 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
10650 Move here from c/c-decl.c.
10651 (class best_macro_match): Move here from c/c-decl.c, converting
10652 from a typedef to a subclass, gaining a ctor.
10654 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10656 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
10657 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
10659 (avr_addr_space_diagnose_usage): ...and implementation.
10660 (avr_addr_space_supported_p): New function.
10661 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
10662 report bad address space usage if that space is supported.
10663 (avr_insert_attributes): Same. No more complain about unsupported
10665 * config/avr/avr-c.c (tm_p.h): Include it.
10666 (avr_cpu_cpp_builtins): Only define addr-space related built-in
10667 macro if avr_addr_space_supported_p.
10669 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
10671 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10672 flag_toplevel_reorder.
10674 2016-07-20 David Malcolm <dmalcolm@redhat.com>
10676 * gcc-rich-location.c
10677 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
10679 * gcc-rich-location.h
10680 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
10682 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
10684 * target.def (addr_space): Add new diagnose_usage to hook vector.
10685 * targhooks.c (default_addr_space_diagnose_usage): Add default
10686 implementation and...
10687 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
10688 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
10689 is some address space, call targetm.addr_space.diagnose_usage.
10690 * doc/tm.texi.in (Named Address Spaces): Add anchor for
10691 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
10692 * doc/tm.texi: Regenerate.
10694 2016-07-20 Martin Liska <mliska@suse.cz>
10696 PR middle-end/71898
10697 * graphite-isl-ast-to-gimple.c (later_of_the_two):
10698 Properly handly PHI stmts.
10700 2016-07-20 Bin Cheng <bin.cheng@arm.com>
10702 PR tree-optimization/71503
10703 PR tree-optimization/71683
10704 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
10707 2016-07-20 Martin Liska <mliska@suse.cz>
10709 * doc/invoke.texi (-fipa-ra): Document when the option is
10710 disabled. Fix a typo.
10712 2016-07-20 Martin Liska <mliska@suse.cz>
10714 * Makefile.in: Include fibonacci_heap.c
10715 * fibonacci_heap.c: New file.
10716 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
10717 (fibonacci_heap::union_with): Fix deletion of the second heap.
10718 * selftest-run-tests.c (selftest::run_tests): Incorporate
10719 fibonacci heap tests.
10720 * selftest.h: Declare fibonacci_heap_c_tests.
10722 2016-07-20 Martin Liska <mliska@suse.cz>
10724 * selftest-run-tests.c (selftest::run_tests): New function.
10725 * selftest.h (sreal_c_tests): Declare.
10726 * sreal.c (sreal_verify_basics): New function.
10727 (verify_aritmetics): Likewise.
10728 (sreal_verify_arithmetics): Likewise.
10729 (verify_shifting): Likewise.
10730 (sreal_verify_shifting): Likewise.
10731 (void sreal_c_tests): Likewise.
10733 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10735 PR rtl-optimization/71916
10736 * cfgrtl.c (contains_no_active_insn_p): Return false also for
10737 bb which have a single succ fake edge.
10739 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
10742 * dwarf2out.c (gen_subprogram_die): Only call
10743 gen_unspecified_parameters_die while dumping early dwarf.
10745 2016-07-19 Jakub Jelinek <jakub@redhat.com>
10747 PR middle-end/71874
10748 * gimple-fold.c (fold_builtin_memory_op): Use
10749 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10751 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
10753 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
10754 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
10755 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
10756 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
10757 * combine.c: Ditto.
10760 * double-int.c: Ditto.
10762 * dwarf2out.c: Ditto.
10765 * fold-const.c: Ditto.
10766 * function.c: Ditto.
10768 * genmodes.c: Ditto.
10772 * loop-doloop.c: Ditto.
10773 * loop-invariant.c: Ditto.
10774 * loop-iv.c: Ditto.
10779 * rtlanal.c: Ditto.
10780 * simplify-rtx.c: Ditto.
10781 * stor-layout.c: Ditto.
10783 * tree-ssa-loop-ivopts.c: Ditto.
10784 * tree-vect-generic.c: Ditto.
10785 * tree-vect-patterns.c: Ditto.
10790 * wide-int-print.cc: Ditto.
10791 * wide-int.cc: Ditto.
10792 * wide-int.h: Ditto.
10794 2016-07-19 David Malcolm <dmalcolm@redhat.com>
10796 * selftest.c (selftest::assert_streq): Handle NULL values of
10797 val_actual and val_expected.
10799 2016-07-19 Martin Jambor <mjambor@suse.cz>
10802 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
10803 rather than cgraph_create_node to get a call graph node.
10805 2016-07-19 Richard Biener <rguenther@suse.de>
10807 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
10808 handle all tcc_constant bases and valueize SSA names.
10809 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
10810 tcc_constant bases.
10812 2016-07-19 David Malcolm <dmalcolm@redhat.com>
10814 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
10815 the flags of the exit block and bb2, not just the entry block.
10817 2016-07-19 Richard Biener <rguenther@suse.de>
10819 PR tree-optimization/71901
10820 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10821 align member, group stuff with the bitfield.
10822 (vn_ref_op_align_unit): New inline.
10823 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
10824 record element alignment and operand 3 unchanged.
10825 (ao_ref_init_from_vn_reference): Adjust.
10826 (valueize_refs_1): Likewise.
10827 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10829 2016-07-19 Richard Biener <rguenther@suse.de>
10831 PR tree-optimization/71908
10832 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
10833 symbolic constants in a more reliable way.
10835 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
10837 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
10839 (vect_update_inits_of_drs): Likewise.
10840 (vect_create_cond_for_alias_checks): Likewise.
10841 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
10843 2016-07-19 Richard Biener <rguenther@suse.de>
10846 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
10847 with an abstract origin that is not an inlined function outer
10848 scope add a self-reference as abstract origin.
10849 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
10851 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10854 * config/rs6000/rs6000.c (rs6000_function_value): Fix
10855 unintentional System V.4 structure return breakage for structures
10856 with a single floating point element.
10858 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10860 PR tree-optimization/71734
10861 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
10862 contains REF, use it to check safelen, assume that safelen value
10863 must be greater 1, fix style.
10864 (ref_indep_loop_p_2): Add REF_LOOP argument.
10865 (ref_indep_loop_p): Pass LOOP as additional argument to
10866 ref_indep_loop_p_2.
10868 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
10870 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
10871 allocation in the prologue.
10872 * explow.c (get_dynamic_stack_base): New function to return an address
10873 expression for the dynamic stack base.
10874 (get_dynamic_stack_size): New function to do the required dynamic stack
10875 space size calculations.
10876 (allocate_dynamic_stack_space): Use new functions.
10877 (align_dynamic_address): Move some code from
10878 allocate_dynamic_stack_space to new function.
10879 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
10881 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10883 * config/s390/s390.c (s390_encode_section_info): Always set
10884 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
10887 2016-07-18 Richard Biener <rguenther@suse.de>
10889 PR tree-optimization/71893
10890 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
10891 for sizetype cast added by array_ref_element_size.
10892 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10894 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
10896 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
10897 register parameters. Remove code to initialize argument pointer
10898 on TARGET_64BIT. Optimize call to _mcount when it can be reached
10899 using a pc-relative branch. Cleanup conditional code.
10900 * config/pa/pa.md (call_mcount): New expander.
10901 (call_mcount_nonpic): New insn.
10902 (call_mcount_pic): New insn and split.
10903 (call_mcount_pic_post_reload): New insn.
10904 (call_mcount_64bit): New insn and split.
10905 (call_mcount_64bit_post_reload): New insn.
10907 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
10909 * config/avr/predicates.md (const_m255_to_m1_operand): New.
10910 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
10911 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
10912 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
10913 (*usum_widenqihi3, *udiff_widenqihi3)
10914 (*addhi3_zero_extend.const): New combiner insns.
10915 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
10916 just 1 bit is affected.
10917 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
10918 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
10920 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10922 * omp-low.c (lower_omp_target): Mark data clauses with
10923 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
10924 zero-length subarrays.
10926 2016-07-15 Richard Biener <rguenther@suse.de>
10928 PR tree-optimization/71881
10929 * tree-loop-distribution.c (destroy_loop): Remove blocks in
10930 reverse DOM order to make debug temp generation happy.
10932 2016-07-15 Richard Biener <rguenther@suse.de>
10934 PR tree-optimization/71887
10935 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
10936 verify it is not zero for division / modulo handling.
10937 (value_replacement): Adjust.
10939 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
10940 Julian Brown <julian@codesourcery.com>
10942 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
10943 * config/aarch64/aarch64-cost-tables.h
10944 (vulcan_extra_costs): New variable.
10945 * config/aarch64/aarch64.c
10946 (vulcan_addrcost_table): Likewise.
10947 (vulcan_regmove_cost): Likewise.
10948 (vulcan_vector_cost): Likewise.
10949 (vulcan_branch_cost): Likewise.
10950 (vulcan_tunings): Likewise.
10952 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
10954 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
10955 (output_in_order): Loop over undefined variables too. Output them
10956 via assemble_undefined_decl. Skip variables that correspond to hard
10957 registers or have value-exprs.
10958 * varpool.c (symbol_table::output_variables): Handle undefined
10959 variables together with defined ones.
10961 2016-07-15 Richard Biener <rguenther@suse.de>
10963 * tree-ssa-pre.c (get_representative_for): Make sure to return
10964 the value number of SSA names.
10965 (phi_translate_1): get_representative_for cannot return NULL.
10966 (do_pre_regular_insertion): Remove redundant call to
10967 fully_constant_expression.
10968 (do_pre_partial_partial_insertion): Likewise.
10970 2016-07-15 Bin Cheng <bin.cheng@arm.com>
10972 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
10973 (derive_simple_iv_with_niters): New function.
10974 (simple_iv): Rewrite using simple_iv_with_niters.
10975 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
10976 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10978 (number_of_iterations_exit): Rewrite using above function.
10979 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10982 2016-07-15 Richard Biener <rguenther@suse.de>
10984 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
10985 vec_construct cost.
10987 2016-07-14 Jakub Jelinek <jakub@redhat.com>
10989 PR tree-optimization/71872
10990 * tree-data-ref.c (get_references_in_stmt): Ignore references
10991 with is_gimple_constant get_base_address.
10993 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
10995 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
10996 (TARGET_HAVE_LDACQD): New macro.
10997 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
10998 than TARGET_HAVE_LDACQ.
10999 (arm_load_acquire_exclusivedi): Likewise.
11000 (arm_store_release_exclusivedi): Likewise.
11002 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11004 PR rtl-optimization/71878
11005 * lra-constraints.c (match_reload): Pass information about other
11006 output operands. Create new unique register value if matching input
11007 operand shares same register value as output operand being considered.
11008 (curr_insn_transform): Record output operands already processed.
11010 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11013 PR tree-optimization/70923
11014 * tree-vect-patterns.c: Include mult-synthesis.h.
11015 (target_supports_mult_synth_alg): New function.
11016 (synth_lshift_by_additions): Likewise.
11017 (apply_binop_and_append_stmt): Likewise.
11018 (vect_synth_mult_by_constant): Likewise.
11019 (target_has_vecop_for_code): Likewise.
11020 (vect_recog_mult_pattern): Use above functions to synthesize vector
11021 multiplication by integer constants.
11023 2016-07-14 Alan Modra <amodra@gmail.com>
11025 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
11026 gpr alternatives. Correct '*' placement on Y,r alternative.
11027 Add '*' on operand 1 of r,r alternative.
11029 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11031 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
11032 * expmed.h: ... Here.
11034 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
11036 * gimple.h (stmt_can_terminate_bb_p): New function.
11037 * tree-cfg.c (need_fake_edge_p): Rename to ...
11038 (stmt_can_terminate_bb_p): ... this; return true if stmt can
11039 throw external; handle const and pure calls.
11040 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
11042 2016-07-14 Richard Biener <rguenther@suse.de>
11044 PR tree-optimization/71866
11045 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
11046 (do_hoist_insertion): Avoid endless recursion when we
11047 didn't insert anything because we managed to simplify
11048 things down to a constant or SSA name.
11049 (fully_constant_expression): Re-write in terms of ...
11050 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
11051 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
11052 vn_nary_build_or_lookup_1.
11053 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
11054 (vn_nary_build_or_lookup): ... this which now wraps it.
11056 2016-07-14 Alan Modra <amodra@gmail.com>
11059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
11060 with p9_vector override before power9-dform override.
11062 2016-07-13 Andi Kleen <ak@linux.intel.com>
11064 * value-prof.c (gimple_value_profile_transformations): Don't run
11065 when auto_profile is on.
11067 2016-07-13 Andi Kleen <ak@linux.intel.com>
11069 * auto-profile.c (update_inlined_ind_target,
11070 afdo_indirect_call): Print information to dump file.
11072 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
11074 * genrecog.c (special_predicate_operand_p): New function.
11075 (predicate_name): Move function.
11076 (validate_pattern): Don't warn about missing mode for all
11077 define_special_predicate predicates.
11079 2016-07-13 Bin Cheng <bin.cheng@arm.com>
11081 * tree-vect-data-refs.c (vect_no_alias_p): New function.
11082 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
11083 resolve alias checks which are known at compilation time.
11084 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
11085 alias checks are resolved. Move dump info for too many runtime
11086 alias checks to here...
11087 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
11089 2016-07-13 Richard Biener <rguenther@suse.de>
11091 PR tree-optimization/24574
11092 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
11093 position and add shift, rotate, divison and modulo support
11095 (value_replacement): Pass in argument position to absorbing_element_p.
11097 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
11100 * ipa-inline-transform.c (inline_call): Support
11101 instrumented thunks.
11103 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11105 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
11106 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
11108 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
11109 Baseline. Make initial alternative TARGET_32BIT only.
11110 (udivsi3): Likewise.
11111 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
11112 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
11115 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11117 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
11118 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
11119 availability with TARGET_HAVE_MOVT.
11120 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
11121 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
11122 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
11124 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
11125 extra instruction if MOVW is available. Use a cost variable
11126 incremented by COSTS_N_INSNS (1) when the condition match rather than
11127 returning an arithmetic expression based on COSTS_N_INSNS. Make
11128 constant with bottom half word zero cost 2 instruction if MOVW is
11130 * config/arm/arm.md (define_attr "arch"): Add v8mb.
11131 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
11132 target is ARMv8-M Baseline.
11133 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
11134 (arm_movtas_ze): Likewise.
11135 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
11136 alternative for constants satisfying j constraint.
11137 (thumb1_movsi_insn): Likewise.
11138 (movsi splitter for K alternative): Tighten condition to not trigger
11139 if movt is available and j constraint is satisfied.
11140 (Pe immediate splitter): Likewise.
11141 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
11142 constant fitting in an halfword to use MOVW.
11143 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
11146 2016-07-13 Richard Biener <rguenther@suse.de>
11148 PR middle-end/71104
11149 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
11150 gimplifying the LHS. Make sure to gimplify a returning twice
11151 call LHS without using SSA names.
11153 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11155 * tree-data-ref.c (find_data_references_in_stmt): Remove
11156 unnecessary call to vec::release.
11157 (graphite_find_data_references_in_stmt): Likewise.
11158 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
11159 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11161 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11163 * cfgexpand.c (expand_used_vars): Make the type of a local
11165 * genmatch.c (lower_for): Likewise.
11166 * haifa-sched.c (haifa_sched_init): Likewise.
11167 (add_to_speculative_block): Likewise.
11168 (create_check_block_twin): Likewise.
11169 * predict.c (handle_missing_profiles): Likewise.
11170 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
11171 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
11172 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11174 (maybe_lower_iteration_bound): Likewise.
11175 * tree-ssa-sccvn.c (DFS): Likewise.
11176 * tree-stdarg.c (reachable_at_most_once): Likewise.
11177 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
11178 (vectorizable_store): Likewise.
11180 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11182 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
11183 (sccvn_dom_walker): make cond_stack an auto_vec.
11185 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11187 * ree.c (struct ext_state): Make type of members auto_vec.
11188 (find_and_remove_re): Adjust.
11190 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11192 * cfgexpand.c (struct stack_vars_data): Make type of fields
11194 (expand_used_vars): Adjust.
11196 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11198 * ipa.c (record_cdtor_fn): Adjust.
11199 (build_cdtor_fns): Likewise.
11200 (ipa_cdtor_merge): Make static_ctors and static_dtors local
11203 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11205 * genextract.c (struct accum_extract): Add constructor and make
11207 (gen_insn): Adjust.
11209 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11211 * tree.c (struct free_lang_data_d): Add constructor and change
11212 types of members to ones that automatically manage resources.
11213 (fld_worklist_push): Adjust.
11214 (find_decls_types): Likewise.
11215 (find_decls_types_in_eh_region): Likewise.
11216 (free_lang_data_in_cgraph): Stop manually creating and
11217 destroying members of free_lang_data_d.
11219 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
11221 PR rtl-optimization/68961
11222 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
11223 peephole variant. Use sse_reg_operand predicates.
11225 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
11227 * config/i386/predicates.md (x86_64_immediate_operand)
11228 <case CONST_INT>: Remove unneeded truncation to DImode.
11229 <case CONST>: Ditto.
11230 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11232 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11235 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
11236 The xxperm and xxpermr instructions require that the 2nd input
11237 operand overlap with the output operand, and not the 1st.
11238 (altivec_vperm_v8hiv16qi): Likewise.
11239 (altivec_vperm_<mode>_uns_internal): Likewise.
11240 (altivec_vpermr_<mode>_internal): Likewise.
11241 (vperm_v8hiv4si): Likewise.
11242 (vperm_v16qiv8hi): Likewise.
11244 2016-07-12 Nathan Sidwell <nathan@acm.org>
11246 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
11247 when -mno-pic-data-is-text-relative is in effect, by default.
11248 * doc/invoke.texi (mpic-data-is-text-relative): Document new
11249 behavior and clarify.
11251 2016-07-12 Martin Liska <mliska@suse.cz>
11253 * params.def: Add avg-loop niter.
11254 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
11255 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
11256 * doc/invoke.texi: Document the new parameter.
11258 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11260 PR middle-end/71700
11261 * expr.c (store_constructor): Mask sign-extended bits when widening
11262 sub-word constructor element at the start of a word.
11264 2016-07-12 Martin Liska <mliska@suse.cz>
11266 * Makefile.in: Append rule for params-options.h.
11267 * params-options.h: New file.
11269 2016-07-12 Martin Liska <mliska@suse.cz>
11271 * ira-build.c (mark_loops_for_removal): Properly iterate
11274 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
11275 Richard Biener <rguenther@suse.de>
11277 PR tree-optimization/23286
11278 PR tree-optimization/70159
11279 * doc/invoke.texi: Document -fcode-hoisting.
11280 * common.opt (fcode-hoisting): New flag.
11281 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
11282 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
11283 (do_regular_insertion): Rename to ...
11284 (do_pre_regular_insertion): ... this and amend general comments
11285 on insertion strathegy.
11286 (do_partial_partial_insertion): Rename to ...
11287 (do_pre_partial_partial_insertion): ... this.
11288 (do_hoist_insertion): New function.
11289 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
11290 and call do_hoist_insertion properly.
11292 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
11293 (pass_pre::execute): Register hoist_insert stats.
11295 2016-07-12 Jakub Jelinek <jakub@redhat.com>
11297 PR middle-end/71716
11298 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
11299 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
11300 is different from mode's bitsize. Small cleanup.
11302 2016-07-12 Richard Biener <rguenther@suse.de>
11304 PR rtl-optimization/68961
11305 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
11306 to simplify to a non-constant.
11308 2016-07-11 Jakub Jelinek <jakub@redhat.com>
11310 PR middle-end/71758
11311 * omp-low.c (expand_omp_target): Gimplify device.
11313 PR tree-optimization/71823
11314 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
11315 to get vec_oprnds2 from op2.
11317 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
11319 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
11320 Hoist common subexpressions.
11321 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11323 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
11326 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
11327 prevent generation of 'stxsiwx' on pre Power8 hardware.
11329 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11331 * input.c: Include cpplib.h.
11332 (selftest::temp_source_file): New class.
11333 (selftest::temp_source_file::temp_source_file): New ctor.
11334 (selftest::temp_source_file::~temp_source_file): New dtor.
11335 (selftest::should_have_column_data_p): New function.
11336 (selftest::test_should_have_column_data_p): New function.
11337 (selftest::temp_line_table): New class.
11338 (selftest::temp_line_table::temp_line_table): New ctor.
11339 (selftest::temp_line_table::~temp_line_table): New dtor.
11340 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
11341 it to create a temp_line_table.
11342 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
11343 locations that are known to have column data.
11344 (selftest::line_table_case): New struct.
11345 (selftest::test_reading_source_line): Move tempfile handling
11346 to class temp_source_file.
11347 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
11348 (selftest::assert_token_loc_eq): New function.
11349 (ASSERT_TOKEN_LOC_EQ): New macro.
11350 (selftest::test_lexer): New function.
11351 (selftest::boundary_locations): New array.
11352 (selftest::input_c_tests): Call test_should_have_column_data_p.
11353 Loop over a test matrix of interesting values of location and
11354 default_range_bits, calling test_lexer on each case in the matrix.
11355 Move call to test_accessing_ordinary_linemaps into the matrix.
11356 * selftest.h (ASSERT_EQ): Reimplement in terms of...
11357 (ASSERT_EQ_AT): New macro.
11359 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
11362 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11363 Don't convert TImode in debug insn.
11365 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11367 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
11368 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
11369 (tree_type_common::lang_flag_7): New.
11370 (tree_type_common::spare): Reduce size.
11371 * tree.h (TYPE_ALIGN_OK): Remove.
11372 (TYPE_LANG_FLAG_7): New.
11373 (get_inner_reference): Adjust header.
11374 * print-tree.c (print_node): Adjust.
11375 * expr.c (get_inner_reference): Remove parameter keep_aligning.
11376 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
11377 calls to get_inner_reference.
11378 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
11379 handling of TYPE_ALIGN_OK.
11380 * builtins.c (get_object_alignment_2): Adjust call to
11381 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
11382 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
11384 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
11385 * cfgexpand.c (expand_debug_expr): Likewise.
11386 * dbxout.c (dbxout_expand_expr): Likewise.
11387 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
11388 loc_list_from_tree, fortran_common): Likewise.
11389 * fold-const.c (optimize_bit_field_compare,
11390 decode_field_reference, fold_unary_loc, fold_comparison,
11391 split_address_to_core_and_offset): Likewise.
11392 * gimple-laddress.c (execute): Likewise.
11393 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
11394 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
11395 * hsa-gen.c (gen_hsa_addr): Likewise.
11396 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
11397 * tsan.c (instrument_expr): Likewise.
11398 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
11399 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
11400 * tree-affine.c (tree_to_aff_combination,
11401 get_inner_reference_aff): Adjust calls to get_inner_reference.
11402 * tree-data-ref.c (split_constant_offset_1,
11403 dr_analyze_innermost): Likewise.
11404 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
11405 * tree-sra.c (ipa_sra_check_caller): Likewise.
11406 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
11407 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
11408 bswap_replace): Likewise.
11409 * tree-vect-data-refs.c (vect_check_gather,
11410 vect_analyze_data_refs): Likewise.
11411 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
11412 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
11415 2016-07-11 David Malcolm <dmalcolm@redhat.com>
11417 * Makefile.in (selftest-valgrind): New phony target.
11418 * function-tests.c (selftest::build_cfg): Delete pass instances
11419 created by the test.
11420 (selftest::convert_to_ssa): Likewise.
11421 (selftest::test_expansion_to_rtl): Likewise.
11422 * tree-cfg.c (selftest::test_linear_chain): Release dominator
11424 (selftest::test_diamond): Likewise.
11426 2016-07-11 Richard Biener <rguenther@suse.de>
11428 PR tree-optimization/71816
11429 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
11430 than replacing all of its operands.
11432 2016-07-11 Alan Modra <amodra@gmail.com>
11434 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
11435 (ctr<mode>): Add unspec.
11436 (ctr<mode>_internal*): Likewise.
11438 2016-07-08 James Bowman <james.bowman@ftdichip.com>
11440 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
11441 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
11443 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
11445 PR rtl-optimization/71621
11446 * lra-constraints.c (process_alt_operands): Check combination of
11447 reg class and mode.
11449 2016-07-08 Jason Merrill <jason@redhat.com>
11450 Richard Biener <rguenther@suse.de>
11452 P0145: Refining Expression Order for C++.
11453 * gimplify.c (initial_rhs_predicate_for): New.
11454 (gimplfy_modify_expr): Gimplify RHS before LHS.
11456 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11459 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11460 Allow standard error handling to take over when a wrong number
11461 of arguments is presented to __builtin_vec_ld () or
11462 __builtin_vec_st ().
11464 2016-07-08 Jiong Wang <jiong.wang@arm.com>
11466 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
11471 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
11472 __builtin_aarch64_fmaxv2sf.
11473 (vmaxnmq_f32): Likewise.
11474 (vmaxnmq_f64): Likewise.
11475 (vminnm_f32): Likewise.
11476 (vminnmq_f32): Likewise.
11477 (vminnmq_f64): Likewise.
11479 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11482 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
11483 enable -mfloat128-hardware by default.
11484 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
11485 that IEEE 128-bit hardware support needs.
11486 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11487 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
11488 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
11489 floating point requires.
11490 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11491 -mfloat128 and -mfloat128-hardware changes.
11493 2016-07-08 Alan Hayward <alan.hayward@arm.com>
11495 PR tree-optimization/71667
11496 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
11498 2016-07-08 Martin Liska <mliska@suse.cz>
11500 PR middle-end/71606
11501 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
11502 folding produces SAVE_EXPRs, thus return false for the type.
11504 2016-07-07 Martin Liska <mliska@suse.cz>
11506 * file-find.c (remove_prefix): New function.
11507 * file-find.h (remove_prefix): Declare the function.
11508 * gcc-ar.c (main): Skip a folder of the wrapper if
11509 a wrapped binary would point to the same file.
11511 2016-07-07 Jan Hubicka <jh@suse.cz>
11513 * tree-scalar-evolution.c (iv_can_overflow_p): export.
11514 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
11515 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
11517 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
11520 * ipa-inline-analysis.c (compute_inline_parameters): Set
11521 local.can_change_signature to false for intrumentation
11524 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11526 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
11527 with TARGET_HAVE_MOVT.
11528 (TARGET_HAVE_MOVT): Define.
11529 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
11530 availability with TARGET_HAVE_MOVT.
11531 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
11533 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
11535 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
11536 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
11537 * config/arm/constraints.md (define_constraint "j"): Use
11538 TARGET_HAVE_MOVT to check MOVT availability.
11540 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11542 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
11544 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11546 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
11547 (armv8-m.main): Likewise.
11548 (armv8-m.main+dsp): Likewise.
11549 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
11550 (FL_FOR_ARCH8M_MAIN): Likewise.
11551 * config/arm/arm-tables.opt: Regenerate.
11552 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
11553 armv8-m.main+dsp to BE8_LINK_SPEC.
11554 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
11555 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
11556 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
11557 Baseline and Mainline.
11558 (arm_option_override_internal): Also disable arm_restrict_it when
11559 !arm_arch_notm. Update comment for -munaligned-access to also cover
11561 (arm_file_start): Increase buffer size for printing architecture name.
11562 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
11563 and armv8-m.main+dsp.
11564 (mno-unaligned-access): Clarify that this is disabled by default for
11565 ARMv8-M Baseline architectures as well.
11567 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11569 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
11570 decide whether to prevent some libgcc routines being included for some
11571 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
11572 link between this condition and the one in
11573 libgcc/config/arm/lib1func.S.
11575 2016-07-07 Richard Biener <rguenther@suse.de>
11577 * tree-ssa-pre.c: Include alias.h.
11578 (compute_avail): If we have multiple VN_REFERENCEs with the
11579 same hashtable entry adjust that to make it a valid replacement
11580 for all of them with respect to alignment and aliasing
11581 when doing insertion.
11582 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
11583 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
11585 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
11589 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11590 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
11593 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11595 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
11596 (adjust_mems): Adjust.
11597 (adjust_insn): Likewise.
11598 (prepare_call_arguments): Likewise.
11600 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11602 * gcse.c (struct ls_expr): Make stores field a vector.
11603 (ldst_entry): Adjust.
11604 (free_ldst_entry): Likewise.
11605 (print_ldst_list): Likewise.
11606 (compute_ld_motion_mems): Likewise.
11607 (update_ld_motion_stores): Likewise.
11609 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11611 * gcse.c (struct ls_expr): Remove loads field.
11612 (ldst_entry): Adjust.
11613 (free_ldst_entry): Likewise.
11614 (print_ldst_list): Likewise.
11615 (compute_ld_motion_mems): Likewise.
11617 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11619 * store-motion.c (struct st_expr): Make antic_stores a vector.
11620 (st_expr_entry): Adjust.
11621 (free_st_expr_entry): Likewise.
11622 (print_store_motion_mems): Likewise.
11623 (find_moveable_store): Likewise.
11624 (compute_store_table): Likewise.
11625 (remove_reachable_equiv_notes): Likewise.
11626 (replace_store_insn): Likewise.
11627 (build_store_vectors): Likewise.
11629 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11631 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
11632 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
11634 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
11636 PR tree-optimization/71518
11637 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
11638 misalign also for outer loops with negative step.
11640 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
11642 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
11643 (cortex_a53_shift): Add mov_shift.
11644 (cortex_a53_shift_reg): Add new reservation for register shifts.
11645 (cortex_a53_alu): Remove bfm.
11646 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
11647 (cortex_a53_alu_extr): Add new reservation for EXTR.
11648 (bypasses): Improve bypass modelling.
11650 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11653 * config/avr/avr.c (avr_asm_select_section): Strip off
11654 SECTION_DECLARED from flags when calling get_section.
11656 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11658 * tree-vectorizer.h (vect_memory_access_type): Add
11659 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
11660 * tree-vect-stmts.c (compare_step_with_zero): New function.
11661 (perm_mask_for_reverse): Move further up file.
11662 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
11664 (get_negative_load_store_type): New function.
11665 (get_load_store_type): Call it. Add an ncopies argument.
11666 (vectorizable_mask_load_store): Update call accordingly and
11667 remove tests for negative steps.
11668 (vectorizable_store, vectorizable_load): Likewise. Handle new
11669 memory_access_types.
11671 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11673 * tree-vectorizer.h (vect_memory_access_type): New enum.
11674 (_stmt_vec_info): Add a memory_access_type field.
11675 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
11676 (vect_model_store_cost): Take an access type instead of a boolean.
11677 (vect_model_load_cost): Likewise.
11678 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
11679 vect_model_store_cost and vect_model_load_cost.
11680 * tree-vect-stmts.c (vec_load_store_type): New enum.
11681 (vect_model_store_cost): Take an access type instead of a
11682 store_lanes_p boolean. Simplify tests.
11683 (vect_model_load_cost): Likewise, but for load_lanes_p.
11684 (get_group_load_store_type, get_load_store_type): New functions.
11685 (vectorizable_store): Use get_load_store_type. Record the access
11686 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
11687 (vectorizable_load): Likewise.
11688 (vectorizable_mask_load_store): Likewise. Replace is_store
11689 variable with vls_type.
11691 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11693 * tree-vectorizer.h (vect_grouped_load_supported): Add a
11694 single_element_p parameter.
11695 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11696 Check the PR65518 case here rather than in vectorizable_load.
11697 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
11698 * tree-vect-stmts.c (vectorizable_load): Likewise.
11700 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11702 * tree-vectorizer.h (gather_scatter_info): New structure.
11703 (vect_check_gather_scatter): Return a bool rather than a decl.
11704 Replace return-by-pointer arguments with a single
11705 gather_scatter_info *.
11706 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
11707 (vect_analyze_data_refs): Update call accordingly.
11708 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11709 (vectorizable_mask_load_store): Likewise. Also record the
11710 offset dt and vectype in the gather_scatter_info.
11711 (vectorizable_store): Likewise.
11712 (vectorizable_load): Likewise.
11714 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11716 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
11717 strided groups, use the cost of N scalar accesses instead
11718 of ncopies vector accesses.
11719 (vect_model_load_cost): Likewise.
11721 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11723 * tree-vect-stmts.c (vect_cost_group_size): Delete.
11724 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
11725 variable to indicate when once-per-group costs are being used.
11726 (vect_model_load_cost): Likewise. Fix comment and misindented code.
11728 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
11730 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
11731 peeling-for-gaps condition.
11733 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11735 * config/s390/s390.c (s390_expand_vec_init): Force initializer
11736 element to register if it doesn't match general_operand.
11738 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11739 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11741 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
11743 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
11744 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
11745 (SIGNBIT): New mode iterator.
11746 (Fsignbit): New mode attribute.
11747 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
11748 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
11749 when direct moves are available.
11750 (signbit<mode>2_dm): New define_insn_and_split).
11751 (signbit<mode>2_dm2): New define_insn.
11753 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11755 PR rtl-optimization/71594
11756 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
11757 into subregs of appropriate mode before trying to emit a conditional
11760 2016-07-05 Jan Hubicka <jh@suse.cz>
11762 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
11763 (simple_iv): Use it.
11765 2016-07-05 Jan Hubicka <jh@suse.cz>
11767 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
11769 2016-07-05 Jiong Wang <jiong.wang@arm.com>
11771 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
11774 2016-07-05 Jan Hubicka <jh@suse.cz>
11776 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
11779 2016-07-05 Richard Biener <rguenther@suse.de>
11781 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
11782 Handle empty else block.
11783 (is_feasible_trace): Likewise.
11784 (split_paths): Likewise.
11786 2016-07-05 Richard Biener <rguenther@suse.de>
11788 * tree-loop-distribution.c (distribute_loop): Fix issue with
11789 the cost model loop.
11791 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
11793 * config/arm/neon-testgen.ml: Delete.
11794 * config/arm/neon.ml: Delete.
11796 2016-07-04 Jakub Jelinek <jakub@redhat.com>
11799 * tree.c (attribute_value_equal): Use get_attribute_name instead of
11800 directly using TREE_PURPOSE.
11802 2016-07-04 Jiong Wang <jiong.wang@arm.com>
11804 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
11805 * config/aarch64/aarch64_neon.h: Likewise.
11806 * config/aarch64/arm_neon.h: Likewise.
11807 * config/aarch64/atomics.md: Likewise.
11808 * config/aarch64/aarch64-simd-builtins.def: Likewise.
11809 * doc/invoke.texi: Likewise.
11811 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
11813 * config/s390/s390.md: Add "z13" cpu_facility.
11814 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
11815 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
11816 condition" type instructions.
11818 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
11819 Jeff Law <law@redhat.com>
11821 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
11822 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
11824 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
11826 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
11827 permutation for TARGET_AVX512F.
11828 (ix86_expand_vec_one_operand_perm_avx512): New function.
11829 (expand_vec_perm_1): Invoke introduced function.
11830 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
11831 it may be not valid after vectorization.
11833 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11836 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
11837 typo in comment. Only force to memory if it is a weak
11838 external reference.
11840 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
11841 Jiong Wang <jiong.wang@arm.com>
11843 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
11844 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
11845 (AARCH64_FL_F16): New.
11846 (AARCH64_FL_FOR_ARCH8_2): New.
11847 (AARCH64_ISA_8_2): New.
11848 (AARCH64_ISA_F16): New.
11849 (TARGET_FP_F16INST): New.
11850 (TARGET_SIMD_F16INST): New.
11851 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
11852 ("fp"): Disabling "fp" also disables "fp16".
11853 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
11854 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
11855 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
11856 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
11858 2016-07-04 Jan Beulich <jbeulich@suse.com>
11860 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
11862 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11865 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
11866 the insns, use an insn form that does not adjust the offset on
11867 little endian systems.
11869 2016-07-01 Jan Beulich <jbeulich@suse.com>
11871 * varasm.c (get_variable_section): Validate initializer in
11872 named .bss-like sections.
11874 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
11876 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
11877 Exchange the order of the second and third operands in the vpermr
11878 instruction tmeplate.
11880 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
11883 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
11884 Disallow TDmode values.
11886 2016-07-01 Alan Modra <amodra@gmail.com>
11888 PR rtl-optimization/71709
11889 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
11890 being set, not referenced.
11892 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
11894 PR tree-optimization/70729
11895 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
11896 of loop since it can be not valid after transformation.
11898 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11900 * config/arm/arm.c (thumb_reload_in_hi): Delete.
11901 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
11903 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
11905 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
11908 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11911 * config/rs6000/constraints.md (wY constraint): New constraint to
11912 match the requirements for the LXSD and STXSD instructions.
11913 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
11914 predicate to match the requirements for the LXSD and STXSD
11916 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
11917 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
11918 to make sure that the bottom 2 bits of offset are 0, the address
11919 form is offsettable, and no updating is done in the address mode.
11920 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
11921 (movdi_internal32): Likewise
11922 (movdi_internal64): Likewise.
11924 2016-06-30 Jakub Jelinek <jakub@redhat.com>
11926 PR tree-optimization/71707
11927 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
11928 strinfo even for ADDR_EXPR ptr.
11930 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
11932 * config/rs6000/altivec.md (darn_32): Change the condition to
11933 TARGET_P9_MISC instead of TARGET_MODULO.
11934 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
11935 condition expression.
11936 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
11937 condition expression.
11938 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
11939 (DFP_TEST): New code iterator.
11940 (dfptstsfi_<code>_mode>): New define_expand.
11941 (*dfp_sgnfcnc_<mode>): New define_insn.
11942 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
11943 definition next to BU_P9_MISC_1 definition and change the MASK
11944 value to RS6000_BTM_P9_MISC.
11945 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
11946 (BU_P9_64BIT_MISC_0): Likewise.
11947 (BU_P9_DFP_MISC_0): New macro definition.
11948 (BU_P9_DFP_MISC_1): New macro definition.
11949 (BU_P9_DFP_MISC_2): New macro definition.
11950 (BU_P9_DFP_OVERLOAD_1): New macro definition.
11951 (BU_P9_DFP_OVERLOAD_2): New macro definition.
11952 (BU_P9_DFP_OVERLOAD_3): New macro definition.
11953 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
11954 (TSTSFI_LT_TD): Likewise.
11955 (TSTSFI_EQ_DD): Likewise.
11956 (TSTSFI_EQ_TD): Likewise.
11957 (TSTSFI_GT_DD): Likewise.
11958 (TSTSFI_GT_TD): Likewise.
11959 (TSTSFI_OV_DD): Likewise.
11960 (TSTSFI_OV_TD): Likewise.
11961 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
11962 (TSTSFI_LT_DD): Likewise.
11963 (TSTSFI_LT_TD): Likewise.
11964 (TSTSFI_EQ): Likewise.
11965 (TSTSFI_EQ_DD): Likewise.
11966 (TSTSFI_EQ_TD): Likewise.
11967 (TSTSFI_GT): Likewise.
11968 (TSTSFI_GT_DD): Likewise.
11969 (TSTSFI_GT_TD): Likewise.
11970 (TSTSFI_OV): Likewise.
11971 (TSTSFI_OV_DD): Likewise.
11972 (TSTSFI_OV_TD): Likewise.
11973 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11974 overloaded test significance functions.
11975 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11976 OPTION_MASK_P9_MISC into the representation of this mask.
11977 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
11979 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
11980 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
11982 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
11983 argument is a 6-bit unsigned literal value if the icode argument
11984 represents a DFP test significance built-in call.
11985 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
11986 flag used independently and in combination with the
11987 RS6000_BTM_64BIT flag.
11988 (rs6000_opt_masks): Add entry for power9-misc command-line option.
11989 (rs6000_builtin_mask_names): Add entry for power9-misc
11990 command-line option.
11991 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
11992 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
11993 RS6000_BTM_P9_MISC macros.
11994 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
11995 option and change the description of the -mpower9-vector option to
11996 enable only vector instructions, removing its erroneously claimed
11997 support for scalar instructions.
11998 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11999 the ISA 3.0 digital floating point test significance built-in
12002 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
12004 * config/aarch64/aarch64.c (cortexa35_tunings):
12005 Enable AES fusion. Use cortexa57_branch_cost.
12006 (cortexa53_tunings): Use cortexa57_branch_cost.
12007 (cortexa72_tunings): Use cortexa57_branch_cost.
12008 Use AUTOPREFETCHER_WEAK.
12009 (cortexa73_tunings): Use cortexa57_branch_cost.
12011 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12012 James Greenhalgh <james.greenhalgh@arm.com>
12014 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
12015 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
12016 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
12017 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
12018 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
12019 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
12020 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
12021 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
12022 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
12023 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
12024 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
12025 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
12026 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
12029 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
12030 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12032 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
12034 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
12036 2016-06-30 David Malcolm <dmalcolm@redhat.com>
12039 * gcc.c (driver::build_option_suggestions): Pass "option" to
12040 add_misspelling_candidates.
12041 * opts-common.c (add_misspelling_candidates): Add "option" param;
12042 use it to avoid adding negated forms for options marked with
12044 * opts.h (add_misspelling_candidates): Add "option" param.
12046 2016-06-30 Jakub Jelinek <jakub@redhat.com>
12048 PR middle-end/71693
12049 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
12050 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
12051 first when permuting bitwise operation with rotate. Cast
12052 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
12054 2016-06-29 David Malcolm <dmalcolm@redhat.com>
12056 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
12057 for misspelled param names.
12058 * params.c: Include spellcheck.h.
12059 (find_param_fuzzy): New function.
12060 * params.h (find_param_fuzzy): New prototype.
12061 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
12062 * spellcheck.h (struct edit_distance_traits<const char *>):
12065 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12067 * config/rs6000/predicates.md (const_0_to_7_operand): New
12068 predicate, recognize 0..7.
12069 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12070 support for doing extracts from V16QImode, V8HImode, V4SImode
12072 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
12073 vector extract support.
12074 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
12075 for ISA 3.0 vector extract.
12076 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
12077 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
12078 extracts of a constant element number from small integer vectors
12079 on 64-bit ISA 3.0 systems.
12080 (vsx_extract_<mode>_di): Likewise.
12081 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
12082 say when we can do ISA 3.0 vector extracts.
12083 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
12084 registers, using the stxsiwx instruction.
12086 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
12088 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
12089 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
12090 qdf24xx_regmove_cost, qdf24xx_tunings): New.
12091 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
12092 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
12093 * config/arm/arm.c (arm_qdf24xx_tune): New.
12095 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
12097 * config/aarch64/aarch64.c (cortexa53_tunings):
12098 Increase loop alignment to 8. Set function alignment to 16.
12099 (cortexa35_tunings): Likewise.
12100 (cortexa57_tunings): Increase loop alignment to 8.
12101 (cortexa72_tunings): Likewise.
12102 (cortexa73_tunings): Likewise.
12104 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
12106 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
12107 for arm_fp16_ok and arm_fp16_hw.
12108 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
12109 arm_fp16_alternative.
12111 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
12113 PR tree-optimization/71655
12114 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
12115 types when swapping operands.
12117 2016-06-29 Martin Liska <mliska@suse.cz>
12119 PR middle-end/71585
12120 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
12121 * ipa-inline-transform.c (inline_call): Remove unnecessary call
12122 of build_optimization_node.
12124 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
12126 PR tree-optimization/70729
12127 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
12128 independent in loops having positive safelen value.
12129 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12130 it may be not valid after vectorization.
12132 2016-06-29 Jakub Jelinek <jakub@redhat.com>
12134 PR tree-optimization/71625
12135 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
12136 is sorted by ascending list->offset. If PTR is non-NULL and there is
12137 previous strinfo, call get_stridx_plus_constant.
12138 (get_stridx): Pass exp as second argument to get_addr_stridx.
12139 (addr_stridxptr): Add missing list = list->next, so that there can be
12140 more than one entries in the list. Bump limit from 16 to 32. Ensure
12141 the list is sorted by ascending list->offset.
12142 (get_stridx_plus_constant): Adjust so that it can be also called with
12143 ADDR_EXPR instead of SSA_NAME as PTR.
12144 (handle_char_store): Pass NULL_TREE as second argument to
12147 2016-06-29 Richard Biener <rguenther@suse.de>
12149 PR rtl-optimization/68961
12150 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
12152 2016-06-29 Richard Biener <rguenther@suse.de>
12154 PR middle-end/71002
12155 * alias.c (component_uses_parent_alias_set_from): Handle
12156 type punning through union accesses by using the union alias set.
12157 * gimple.c (gimple_get_alias_set): Remove union type punning case.
12159 2016-07-29 Richard Biener <rguenther@suse.de>
12161 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
12162 precision not matching mode precision.
12164 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
12166 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
12167 pa_output_arg_descriptor.
12168 (call_val_symref_64bit_post_reload): Likewise.
12169 (call_val_powf_64bit_post_reload): Likewise.
12170 (sibcall_internal_symref_64bit): Likewise.
12171 (sibcall_value_internal_symref_64bit): Likewise.
12173 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12175 PR middle-end/71626
12176 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
12177 a constant, force its SUBREG_REG into memory or register instead
12180 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12183 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
12184 * doc/invoke.texi (AVR Options): Document it.
12186 2016-06-28 Walter Lee <walt@tilera.com>
12188 * config/tilegx/linux.h: Do not include arch/icache.h
12189 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12190 * config/tilepro/linux.h: Do not include arch/icache.h
12191 (CLEAR_INSN_CACHE): Provide inlined definition directly.
12193 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
12195 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
12196 for big-endian BIT_FIELD_REF.
12198 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
12200 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
12201 ('size' attribute): Add '128'.
12203 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
12204 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
12205 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
12206 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
12207 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
12208 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
12209 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
12210 *trunc<mode>df2_odd): Set size attribute to '128'.
12211 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
12212 * config/rs6000/power6.md (power6-fp): Include dfp type.
12213 * config/rs6000/power7.md (power7-fp): Likewise.
12214 * config/rs6000/power8.md (power8-fp): Likewise.
12215 * config/rs6000/power9.md: New file.
12216 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
12217 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
12218 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
12220 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
12221 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12222 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
12223 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
12224 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
12225 dfp_dscri_<mode>): Change type attribute to dfp.
12226 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
12227 attribute to vecsimple.
12228 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
12229 and prefetch streams.
12230 (rs6000_option_override_internal): Remove temporary code setting
12231 tuning to power8. Don't set rs6000_sched_groups for power9.
12232 (last_scheduled_insn): Change to rtx_insn *.
12233 (divide_cnt, vec_load_pendulum): New variables.
12234 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
12235 (rs6000_issue_rate): Set issue rate for Power9.
12236 (is_power9_pairable_vec_type): New.
12237 (power9_sched_reorder2): New.
12238 (rs6000_sched_reorder2): Call new function for Power9 specific
12240 (insn_must_be_first_in_group): Remove Power9.
12241 (insn_must_be_last_in_group): Likewise.
12242 (force_new_group): Likewise.
12243 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
12244 Initialize divide_cnt/vec_load_pendulum.
12245 (_rs6000_sched_context, rs6000_init_sched_context,
12246 rs6000_set_sched_context): Handle context save/restore of new
12249 2016-06-28 Richard Biener <rguenther@suse.de>
12251 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12252 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
12253 COMPONENT_REF operand.
12254 (nonoverlapping_component_refs_p): Likewise.
12255 * stor-layout.c (start_bitfield_representative): Mark
12256 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
12258 2016-06-28 Jakub Jelinek <jakub@redhat.com>
12260 * Makefile.in: Don't cat ../stage_current if it does not exist.
12262 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
12263 last argument is a bit-field.
12265 PR rtl-optimization/71673
12266 * internal-fn.c (expand_arith_overflow_result_store): Use
12267 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
12268 expand_simple_binop.
12270 PR middle-end/66867
12271 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
12272 expand_ifn_atomic_compare_exchange): New functions.
12273 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
12274 * tree.h (build_call_expr_internal_loc): Rename to ...
12275 (build_call_expr_internal_loc_array): ... this. Fix up type of
12277 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
12278 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
12279 ATOMIC_COMPARE_EXCHANGE result.
12280 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
12281 * gimple-fold.h (optimize_atomic_compare_exchange_p,
12282 fold_builtin_atomic_compare_exchange): New prototypes.
12283 * gimple-fold.c (optimize_atomic_compare_exchange_p,
12284 fold_builtin_atomic_compare_exchange): New functions..
12285 * tree-ssa.c (execute_update_addresses_taken): If
12286 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
12287 of call when finding addressable vars, and if such var becomes
12288 non-addressable, call fold_builtin_atomic_compare_exchange.
12290 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
12293 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
12294 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
12296 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
12298 * config/rs6000/rs6000.md ('type' attribute): Add
12299 veclogical,veccmpfx,vecexts,vecmove insn types.
12300 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
12301 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
12302 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
12303 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
12304 *nabs<mode>2_hw): Change type to vecmove.
12305 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
12306 *boolcc<mode>3_internal, *eqv<mode>3_internal,
12307 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
12308 *ieee_128bit_vsx_abs<mode>2_internal,
12309 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
12310 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
12311 *ieee128_mtvsrd_32bit): Change type to veclogical.
12312 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12313 *movdi_internal32, *movdi_internal64): Update insn types.
12314 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
12315 vsx_extract_<mode>): Change type to veclogical.
12316 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
12317 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
12318 *vsx_sign_extend_si_v2di): Change type to vecexts.
12319 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
12320 type to veclogical.
12321 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
12322 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
12323 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
12324 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
12325 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12326 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
12327 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
12328 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
12329 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
12330 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
12331 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
12332 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
12333 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
12334 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
12335 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
12336 (ppc7450-vecsimple): Add veclogical, vecmove.
12337 (ppc7450-veccmp): Add veccmpfx.
12338 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
12340 (ppc8540_vector_compare): Add veccmpfx.
12341 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
12342 * config/rs6000/cell.md (cell-fp): Add fpsimple.
12343 (cell-vecsimple): Add veclogical, vecmove.
12344 (cell-veccmp): Add veccmpfx.
12345 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
12346 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
12348 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
12349 * config/rs6000/power4.md (power4-fp): Add fpsimple.
12350 (power4-vecsimple): Add veclogical, vecmove.
12351 (power4-veccmp): Add veccmpfx.
12352 * config/rs6000/power5.md (power5-fp): Add fpsimple.
12353 * config/rs6000/power6.md (power6-fp): Add fpsimple.
12354 (power6-vecsimple): Add veclogical, vecmove.
12355 (power6-veccmp): Add veccmpfx.
12356 * config/rs6000/power7.md (power7-fp): Add fpsimple.
12357 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
12358 * config/rs6000/power8.md (power8-fp): Add fpsimple.
12359 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
12360 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
12361 * config/rs6000/titan.md (titan_fp): Add fpsimple.
12362 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
12364 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
12366 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
12369 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12370 OPTION_MASK_P9_DFORM_VECTOR.
12371 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12372 disable -mpower9-dform-vector when using reload.
12373 (quad_address_p): Remove 'gpr_p' argument and all associated code.
12374 New 'strict' argument. Update all callers. Add strict addressing
12376 (rs6000_legitimate_offset_address_p): Remove call to
12377 virtual_stack_registers_memory_p.
12378 (rs6000_legitimize_reload_address): Add quad address support.
12379 (rs6000_legitimate_address_p): Move call to quad_address_p above
12380 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
12381 to account for new strict usage.
12382 (rs6000_output_move_128bit): Adjust quad_address_p args to account
12383 for new strict usage.
12384 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
12386 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
12393 * config/i386/i386.c (ix86_spill_class): Disable condition to
12394 always return NO_REGS.
12396 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
12398 * predict.c: Include gimple-pretty-print.h
12399 (predicted_by_loop_heuristics_p): Check also
12400 PRED_LOOP_EXIT_WITH_RECURSION
12401 (predict_loops): Find self recursive calls and use special purpose
12402 predictors for them; dump log about decisions.
12403 (pass_profile::execute): Dump info about #of iterations.
12404 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
12405 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
12407 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
12409 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
12410 output_asm_insn calls and shorten long lines. Output .CALL
12411 argument descriptor using pa_output_arg_descriptor. Add various
12412 inline $$dyncall and other optimizations.
12413 (pa_attr_length_indirect_call): Adjust ordering and lengths.
12415 2016-06-25 Jakub Jelinek <jakub@redhat.com>
12417 PR tree-optimization/71643
12418 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
12421 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
12422 leak a bitmap if dep_bb is NULL.
12424 PR tree-optimization/71631
12425 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
12426 to rewrite_expr_tree even if negate_result, move new_lhs var
12427 declaration and initialization earlier, for powi_result set afterwards
12428 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
12429 if new_lhs != lhs, and don't shadow gsi var.
12431 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12433 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
12434 Add in_loop parameter.
12435 (predict_loops): Add loop guard heuristics.
12436 * predict.def (PRED_LOOP_GUARD): New heuristics.
12438 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
12440 * predict.c: Include ipa-utils.h
12441 (tree_bb_level_prediction): Predict recursive calls.
12442 (tree_estimate_probability_bb): Skip inexpensive calls for call
12444 * predict.def (PRED_RECURSIVE_CALL): New.
12446 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12448 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
12449 (BU_FLOAT128_1): Likewise.
12451 (COPYSIGNQ): Likewise.
12452 (RS6000_BUILTIN_NANQ): Likewise.
12453 (RS6000_BUILTIN_NANSQ): Likewise.
12454 (RS6000_BUILTIN_INFQ): Likewise.
12455 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
12456 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
12457 (TARGET_FOLD_BUILTIN): New #define.
12458 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
12459 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
12460 (rs6000_fold_builtin): New target hook implementation, handling
12461 folding of 128-bit NaNs and infinities.
12462 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
12463 entries are filled in to avoid problems during bootstrap
12464 self-test; define builtins for 128-bit NaNs and infinities.
12465 (rs6000_opt_mask): Add entry for float128.
12466 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
12467 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
12468 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
12469 (const_str_type_node): New #define.
12470 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
12471 to a define_expand that dispatches to either copysign<mode>3_soft
12472 or copysign<mode>3_hard.
12473 (copysign<mode>3_hard): Rename from copysign<mode>3.
12474 (copysign<mode>3_soft): New define_insn.
12475 * doc/extend.texi: Document new builtins.
12477 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12479 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
12480 PRIu64 instead of lu.
12482 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
12485 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
12486 copy the type name.
12488 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12490 PR tree-optimization/71647
12491 * omp-low.c (lower_rec_input_clauses): Convert
12492 omp_clause_aligned_alignment (c) to size_type_node for the
12493 last argument of __builtin_assume_aligned.
12495 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
12497 * configure.ac (calling ___tls_get_addr via GOT): New
12498 assembler/linker check.
12499 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
12500 assembler and linker supports calling ___tls_get_addr via GOT.
12501 Otherise, defined to 0.
12502 * config.in: Regenerated.
12503 * configure: Likewise.
12504 * config/i386/constraints.md (Yb): New constraint.
12505 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
12506 (REG_CLASS_NAMES): Likewise.
12507 (REG_CLASS_CONTENTS): Likewise.
12508 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
12509 the b constraint with the Yb constraint. Call ___tls_get_addr
12510 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
12512 (*tls_local_dynamic_base_32_gnu): Likewise.
12513 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
12514 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
12515 (*tls_local_dynamic_base_64_<mode>): Likewise.
12517 2016-06-24 Martin Liska <mliska@suse.cz>
12519 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
12520 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
12522 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
12523 argument to true if the expected number of iterations is
12526 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
12528 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
12529 assemble for 32bit target.
12530 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
12531 and $ld_ix86_gld_32_opt to link for 32bit target.
12532 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
12533 * configure: Regenerate.
12535 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12537 * config/arm/arm.c (int_log2): Delete definition and prototype.
12538 (shift_op): Use exact_log2 instead of int_log2.
12539 (vfp3_const_double_for_fract_bits): Likewise.
12541 2016-06-24 Jakub Jelinek <jakub@redhat.com>
12543 * internal-fn.c (expand_arith_set_overflow): New function.
12544 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
12546 (expand_arith_overflow_result_store): Likewise. Handle precision
12547 smaller than mode precision.
12548 * tree-vrp.c (extract_range_basic): For imag part, handle
12549 properly signed 1-bit precision result.
12550 * doc/extend.texi (__builtin_add_overflow): Document that last
12551 argument can't be pointer to enumerated or boolean type.
12552 (__builtin_add_overflow_p): Document that last argument can't
12553 have enumerated or boolean type.
12555 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12556 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12558 * config/rs6000/predicates.md (splat_input_operand): Rework.
12559 Don't allow constants, since the insns that use this predicate
12560 don't support constants. Constants are handled by other insns
12561 that are created via combine. During and after register
12562 allocation, only allow indexed or indirect addresses, and not
12563 general addresses. Only allow modes supported by the hardware.
12564 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
12565 comment. Move check for using VSPLTIS<x> to a common location,
12566 instead of doing it in two different places.
12568 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
12570 * config/i386/driver-i386.c (host_detect_local_cpu): Set
12571 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
12572 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
12573 signature_CENTAUR_ebx.
12575 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
12579 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
12580 (as_ix86_gas_32_opt): This.
12581 (ld_ix86_tls_ldm_opt): Renamed to ...
12582 (ld_ix86_gld_32_opt): This.
12583 (R_386_TLS_LDM reloc): Updated.
12584 (R_386_GOT32X reloc): New assembler/linker check.
12585 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
12586 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
12588 * config.in: Regenerated.
12589 * configure: Likewise.
12590 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
12591 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
12592 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
12593 if ix86_force_load_from_GOT_p returns true.
12594 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
12595 ix86_force_load_from_GOT_p returns true.
12596 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
12597 the external function address via the GOT slot.
12598 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
12599 HAVE_AS_IX86_GOT32X before returning false.
12600 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
12601 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
12603 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
12605 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
12607 2016-06-23 Andi Kleen <ak@linux.intel.com>
12609 * Makefile.in: Regenerate.
12610 * doc/install.texi: Document autoprofiledbootstrap.
12612 2016-06-23 Andi Kleen <ak@linux.intel.com>
12614 * config/i386/gcc-auto-profile: New file.
12616 2016-06-23 Martin Liska <mliska@suse.cz>
12618 PR middle-end/71619
12619 * predict.c (predict_loops): Revert the hunk that was removed
12622 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
12624 * config.gcc: Add support for arm*-*-phoenix* targets.
12625 * config/arm/t-phoenix: New.
12626 * config/phoenix.h: New.
12628 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
12629 H.J. Lu <hongjiu.lu@intel.com>
12632 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
12633 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
12634 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
12635 ix86_force_load_from_GOT_p returns true.
12636 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
12637 ix86_force_load_from_GOT_p returns true.
12638 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
12639 ix86_force_load_from_GOT_p returns true.
12640 (ix86_expand_move): Load the external function address via the
12641 GOT slot if ix86_force_load_from_GOT_p returns true.
12642 * config/i386/predicates.md (x86_64_immediate_operand): Return
12643 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
12644 (x86_64_zext_immediate_operand): Ditto.
12646 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
12648 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
12650 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12653 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
12654 * diagnostic.c (pedwarn_at_rich_loc): New function.
12655 * spellcheck.h (best_match::best_match): Add a
12656 "best_distance_so_far" optional parameter.
12657 (best_match::set_best_so_far): New method.
12658 (best_match::get_best_distance): New accessor.
12659 (best_match::get_best_candidate_length): New accessor.
12661 2016-06-22 Nick Clifton <nickc@redhat.com>
12663 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
12664 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
12665 modes are accepted as well.
12666 (ucompare_loc_descriptor): Likewise.
12667 (minmax_loc_descriptor): Likewise.
12668 (clz_loc_descriptor): Likewise.
12669 (popcount_loc_descriptor): Likewise.
12670 (bswap_loc_descriptor): Likewise.
12671 (rotate_loc_descriptor): Likewise.
12672 (mem_loc_descriptor): Likewise.
12673 (loc_descriptor): Likewise.
12675 2016-06-22 David Malcolm <dmalcolm@redhat.com>
12677 * common.opt (fdiagnostics-parseable-fixits): New option.
12678 * diagnostic.c: Include "selftest.h".
12679 (print_escaped_string): New function.
12680 (print_parseable_fixits): New function.
12681 (diagnostic_report_diagnostic): Call print_parseable_fixits.
12682 (selftest::assert_print_escaped_string): New function.
12683 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
12684 (selftest::test_print_escaped_string): New function.
12685 (selftest::test_print_parseable_fixits_none): New function.
12686 (selftest::test_print_parseable_fixits_insert): New function.
12687 (selftest::test_print_parseable_fixits_remove): New function.
12688 (selftest::test_print_parseable_fixits_replace): New function.
12689 (selftest::diagnostic_c_tests): New function.
12690 * diagnostic.h (struct diagnostic_context): Add field
12691 "parseable_fixits_p".
12692 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12693 -fdiagnostics-parseable-fixits.
12694 (-fdiagnostics-parseable-fixits): New option.
12695 * opts.c (common_handle_option): Handle
12696 -fdiagnostics-parseable-fixits.
12697 * selftest-run-tests.c (selftest::run_tests): Call
12698 selftest::diagnostic_c_tests.
12699 * selftest.h (selftest::diagnostic_c_tests): New prototype.
12701 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
12703 PR tree-optimization/71488
12704 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
12705 comparison of boolean vectors.
12706 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
12707 of boolean vectors using bitwise operations.
12709 2016-06-22 Andreas Schwab <schwab@suse.de>
12711 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
12712 Remove declaration.
12714 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
12716 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
12718 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
12720 * config/i386/i386.c (print_reg): Emit an error message on attempt to
12723 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12725 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
12726 * config/arm/arm-cores.def (cortex-a73): New entry.
12727 (cortex-a73.cortex-a35): Likewise.
12728 (cortex-a73.cortex-a53): Likewise.
12729 * config/arm/arm-tables.opt: Regenerate.
12730 * config/arm/arm-tune.md: Likewise.
12731 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
12732 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12733 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
12734 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12735 * doc/invoke.texi (ARM Options): Document cortex-a73,
12736 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
12738 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12740 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
12741 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
12742 (cortex-a73.cortex-a35): Likewise.
12743 (cortex-a73.cortex-a53): Likewise.
12744 * config/aarch64/aarch64-tune.md: Regenerate.
12745 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
12746 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
12749 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12751 * configure.ac (gcc_cv_as_compress_debug): Remove
12752 --compress-debug-sections as extra as switch.
12753 Handle gas --compress-debug-sections=type.
12754 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
12755 Handle gld --compress-debug-sections=type.
12756 * configure: Regenerate.
12758 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
12760 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
12762 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
12764 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
12765 (do_rewrite): likewise.
12767 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12769 * common/config/mep/mep-common.c: Remove.
12770 * config.gcc: Remove mep-* support.
12771 * config/mep/constraints.md: Remove.
12772 * config/mep/default.h: Remove.
12773 * config/mep/intrinsics.h: Remove.
12774 * config/mep/intrinsics.md: Remove.
12775 * config/mep/ivc2-template.h: Remove.
12776 * config/mep/mep-c5.cpu: Remove.
12777 * config/mep/mep-core.cpu: Remove.
12778 * config/mep/mep-default.cpu: Remove.
12779 * config/mep/mep-ext-cop.cpu: Remove.
12780 * config/mep/mep-intrin.h: Remove.
12781 * config/mep/mep-ivc2.cpu: Remove.
12782 * config/mep/mep-pragma.c: Remove.
12783 * config/mep/mep-protos.h: Remove.
12784 * config/mep/mep.c: Remove.
12785 * config/mep/mep.cpu: Remove.
12786 * config/mep/mep.h: Remove.
12787 * config/mep/mep.md: Remove.
12788 * config/mep/mep.opt: Remove.
12789 * config/mep/predicates.md: Remove.
12790 * config/mep/t-mep: Remove.
12791 * doc/install.texi: Remove mep-* documentation.
12792 * doc/md.texi: Likewise.
12794 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12796 * config.gcc: Remove support for avr-rtems.
12797 * config/avr/gen-avr-mmcu-specs.c: Likewise.
12798 * config/avr/rtems.h: Remove.
12799 * config/avr/t-rtems: Remove.
12801 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12803 * config.gcc: Remove m32r-rtems support.
12804 * config/m32r/rtems.h: Remove.
12806 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12808 * config.gcc: Remove h8300-rtems support.
12809 * config/h8300/rtems.h: Remove.
12810 * config/h8300/t-rtems: Remove.
12812 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12814 * config.gcc: Remove support for knetbsd.
12815 * configure.ac: Likewise.
12816 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
12817 * config/knetbsd-gnu.h: Remove.
12818 * configure: Regenerate.
12820 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12822 * config.gcc: Remove support for openbsd 2 and 3.
12823 * config/openbsd-oldgas.h: Remove.
12825 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12827 * config.gcc: Remove interix support.
12828 * config/i386/i386-interix.h: Remove.
12829 * config/i386/interix.opt: Remove.
12830 * config/i386/t-interix: Remove.
12831 * configure: Regenerate.
12832 * configure.ac: Remove interix support.
12833 * doc/install.texi: Remove interix documentation.
12835 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
12837 * config/rs6000/rs6000.h: Add conditional preprocessing directives
12838 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
12841 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
12843 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
12844 they are both PLACEHOLDER_EXPRs.
12846 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12848 * stor-layout.c (layout_type): Move setting complex MODE to
12849 layout_type, instead of setting it ahead of time by the caller.
12850 * tree.c (build_complex_type): Likewise.
12852 2016-06-21 Martin Liska <mliska@suse.cz>
12854 * predict.c (force_edge_cold): Replace imposisble with
12857 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
12859 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
12860 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
12862 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
12864 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
12866 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
12867 Ilya Enkovich <ilya.enkovich@intel.com>
12870 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
12871 New member function to convert V1TImode register to SUBREG
12872 TImode in debug insn.
12873 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
12874 after changing register mode to V1TImode.
12876 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
12878 * config/aarch64/aarch64-cores.def (vulcan): New core.
12879 * config/aarch64/aarch64-tune.md: Regenerate.
12880 * doc/invoke.texi: Document vulcan as an available option.
12882 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
12884 * cse.c (canon_asm_operands): New function extracted from...
12885 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
12886 either standalone or member of a PARALLEL.
12888 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
12891 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
12892 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
12893 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
12895 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
12898 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
12899 constant addresses if can_create_pseudo_p.
12901 2016-06-21 Jakub Jelinek <jakub@redhat.com>
12903 PR tree-optimization/71588
12904 * tree-ssa-strlen.c (valid_builtin_call): New function.
12905 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
12908 2016-06-20 Jakub Jelinek <jakub@redhat.com>
12910 PR middle-end/71581
12911 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
12912 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
12913 for conversion of scalar user var to complex type and use the
12914 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
12917 PR rtl-optimization/71591
12918 * toplev.c (toplev::run_self_tests): If no_backend, complain and
12919 don't run any tests.
12921 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
12924 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
12925 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
12926 space for PIC with non-v32 and the common non-PIC "jump".
12928 2016-06-20 Jakub Jelinek <jakub@redhat.com>
12931 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
12932 returned values and add UN*/LTGT/*ORDERED cases with values matching
12933 D operand modifier on vcmp for AVX.
12935 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
12937 * config/aarch64/aarch64.opt
12938 (mpc-relative-literal-loads): Rename internal option name.
12939 * config/aarch64/aarch64.c
12940 (aarch64_nopcrelative_literal_loads): Rename to
12941 aarch64_pcrelative_literal_loads.
12942 (aarch64_expand_mov_immediate): Likewise.
12943 (aarch64_secondary_reload): Likewise.
12944 (aarch64_can_use_per_function_literal_pools_p): Likewise.
12945 (aarch64_override_options_after_change_1): Rename and simplify logic.
12946 (aarch64_classify_symbol): Merge large model checks into switch,
12947 remove pc-relative load check.
12949 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
12951 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
12952 costs relative to the cost of a register move.
12954 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
12956 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
12957 (vcvt_n_f64_u64): Likewise.
12958 (vcvt_n_s64_f64): Likewise.
12959 (vcvt_n_u64_f64): Likewise.
12960 (vcvt_f64_s64): Likewise.
12961 (vrecpe_f64): Likewise.
12962 (vcvt_f64_u64): Likewise.
12963 (vrecps_f64): Likewise.
12965 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
12967 * config/aarch64/aarch64.md
12968 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
12970 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
12972 * config/aarch64/aarch64-builtins.c
12973 (aarch64_types_binop_uss_qualifiers): Delete.
12974 (TYPES_BINOP_USS): Likewise.
12975 (aarch64_types_binop_sus_qualifiers): Likewise.
12976 (TYPES_BINOP_SUS): Likewise.
12977 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
12978 (TYPES_FCVTIMM_SUS): Likewise.
12979 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
12981 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
12982 (fcvtzs): Use SHIFTIMM rather than BINOP.
12983 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
12985 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
12987 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
12988 costs relative to the cost of a register move.
12990 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
12992 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
12993 Allow scalar/single vector modes to be tieable.
12995 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
12997 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
12999 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13001 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
13003 * tree.h (TYPE_ALIGN): Likewise.
13005 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13008 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
13010 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
13012 * config/avr/avr.c (avr_print_operand): Fix "format not a string
13013 literal" build warnings.
13014 (avr_print_operand_address): Dito.
13016 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
13019 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
13020 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
13022 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
13024 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
13026 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
13029 * reload1.c (reload): Pass 0 to finish_spills when called because
13030 update_eliminables_and_spill returns true and remove did_spill.
13031 (finish_spills): Adjust comment and document GLOBAL parameter.
13033 2016-06-17 DJ Delorie <dj@redhat.com>
13036 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
13037 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
13038 (umulqihi3_virt): Likewise.
13039 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
13040 (umulqihi3_real): Likewise.
13042 2016-06-17 Martin Liska <mliska@suse.cz>
13044 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
13046 2016-06-17 Martin Liska <mliska@suse.cz>
13048 * predict.def: PRED_LOOP_EXIT from 92 to 85.
13050 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
13052 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
13054 (vaddq_f32): Likewise.
13055 (vmul_f32): Likewise.
13056 (vmulq_f32): Likewise.
13057 (vsub_f32): Likewise.
13058 (vsubq_f32): Likewise.
13060 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13062 PR tree-optimization/71347
13063 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
13064 cost for all uses in group.
13066 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13068 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
13069 insert gimple seq if it's not empty.
13071 2016-06-17 Bin Cheng <bin.cheng@arm.com>
13073 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
13075 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
13076 rather than OFFSET.
13077 (comp_dr_with_seg_len_pair): Ditto.
13078 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
13079 struct dr_with_seg_len_pair against DR_OFFSET.
13080 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
13081 DR_OFFSET directly.
13083 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
13085 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
13087 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
13089 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
13090 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
13091 (pa_output_millicode_call): Likewise.
13092 (pa_output_call): Likewise.
13093 (pa_output_indirect_call): Likewise.
13094 (pa_asm_output_mi_thunk): Likewise.
13096 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13098 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
13100 2016-06-16 Martin Liska <mliska@suse.cz>
13102 * predict.c (combine_predictions_for_insn): When we find a first
13103 match predictor, we should consider just predictors with
13104 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
13105 DS theory predictor.
13106 (combine_predictions_for_bb): Likewise.
13108 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13110 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
13111 with base of reference to struct.
13113 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13115 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
13117 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13120 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
13121 progmem_swtable_section.
13122 (progmem_swtable_section): Remove.
13123 (avr_asm_function_rodata_section): Remove.
13124 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13125 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
13127 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
13129 * config/i386/driver-i386.c (host_detect_local_cpu): Set
13130 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
13131 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
13132 signature_CENTAUR_ebx.
13133 * config/i386/i386.c (ix86_option_override_internal): Add
13134 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
13135 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
13136 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
13138 2016-06-16 Martin Liska <mliska@suse.cz>
13140 * predict.def: Add fortran loop preheader predictor.
13141 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
13142 fold IFN_BUILTIN_EXPECT with a known constant argument.
13144 2016-06-16 Martin Liska <mliska@suse.cz>
13146 * predict.def: Add 'Fortran' to display text of all
13147 PRED_FORTRAN_* predictors.
13149 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
13152 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
13153 [IA64_BUILTIN_NANSQ]: Ditto.
13154 (ia64_fold_builtin): New function.
13155 (TARGET_FOLD_BUILTIN): New define.
13156 (ia64_init_builtins) Declare const_string_type node.
13157 Add __builtin_nanq and __builtin_nansq builtin functions.
13158 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
13160 2016-06-16 Nick Clifton <nickc@redhat.com>
13162 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
13163 MSP430_HWMULT_ prefix to enum values.
13164 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
13165 * config/msp430/msp430.c: Update use of enum values.
13166 * config/msp430/msp430.md: Likewise.
13167 * config/msp430/msp430.opt: Likewise.
13169 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
13171 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
13172 of comparsions in the last iteration.
13174 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13175 Joern Rennecke <joern.rennecke@embecosm.com>
13177 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
13179 (arc_needs_pcl_p): Add GOTOFFPC.
13180 (arc_legitimate_pic_addr_p): Likewise.
13181 (arc_output_pic_addr_const): Likewise.
13182 (arc_legitimize_pic_address): Generate a pc-relative address using
13184 (arc_output_libcall): Use @pcl syntax.
13185 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
13186 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
13187 (*movsi_insn): Use @pcl syntax.
13188 (doloop_begin_i): Likewise.
13190 2016-06-16 Martin Liska <mliska@suse.cz>
13192 * predict.def: Define a new predictor.
13194 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
13196 * config/arc/arc.opt (mtp-regno): Update text.
13198 2016-06-16 Renlin Li <renlin.li@arm.com>
13200 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
13202 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13205 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
13206 (setcc + and peephole2): Likewise.
13208 PR rtl-optimization/71532
13209 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
13212 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13214 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
13215 DImode constants with XXSPLTIB in vector registers.
13216 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
13217 vsx_extract_<mode>_internal{1,2} into a single insn that handles
13218 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
13219 extraction of the element at the top of the register as a scalar
13221 (vsx_extract_<mode>_internal1): Likewise.
13222 (vsx_extract_<mode>_internal2): Likewise.
13223 * config/rs6000/constraints.md (wi constraint): Remove a comment
13224 about DImode not being allowed in Altivec registers.
13225 (wB constraint): New constraint for constants that can be
13226 generated in Altivec registers with VSPLTISW/VUPKHSW.
13227 * config/rs6000/predicates.md (xxspltib_constant_split): Update
13229 (xxspltib_constant_nosplit): Likewise.
13230 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
13231 support for -mupper-regs-di to enable DImode to go into Altivec
13233 (POWERPC_MASKS): Likewise.
13234 (power7 cpu): Likewise.
13235 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
13236 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
13237 for DImode being allowed in Altivec registers. Update wi/wj
13238 constraints. Set scalar_in_vmx_p flag.
13239 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
13240 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
13241 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
13242 (rs6000_opt_masks): Add -mupper-regs-di.
13243 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
13244 direct move to use wi and not wj.
13245 (lfiwzx): Likewise.
13246 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
13248 (floatunssi<mode>2_lfiwzx_mem): Likewise.
13249 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
13250 any VSX register, instead of just Altivec registers, to allow
13251 either operand to be an Altivec register or both.
13252 (fixuns_trunc<mode>di2_fctiduz): Likewise.
13253 (movdi_internal32): Add support for -mupper-regs-di. Add support
13254 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
13255 the alternatives and attributes to be lined up to be easier to
13257 (movdi_internal64): Likewise.
13258 (64-bit DImode splitters): Change predicates to only split loading
13259 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
13260 load constants in ISA 3.0 or ISA 2.07 respectively.
13261 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13262 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
13263 mention -mcpu=power9 sets these options.
13264 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
13267 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13270 * config/avr/avr.c (avr_set_current_function): Warn misspelled
13271 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
13272 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
13273 by default to warn misspelled interrupt/ signal handler.
13274 * doc/invoke.texi (AVR Options): Document it. Update description
13275 for -nodevicelib option.
13277 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13279 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
13280 up parentheses. Use GET_MODE_UNIT_BITSIZE.
13281 (aarch64_<sur>shll2_n<mode>): Likewise.
13283 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
13285 PR middle-end/71529
13286 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
13287 DECL_CONTEXT for copied arguments.
13289 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13291 PR tree-optimization/71483
13292 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
13295 2016-06-15 Martin Liska <mliska@suse.cz>
13297 * predict.c (tree_predict_by_opcode): Call predict_edge_def
13298 instead of predict_edge w/o a probability.
13300 2016-06-15 Alan Hayward <alan.hayward@arm.com>
13302 PR tree-optimization/71439
13303 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
13306 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13308 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
13309 register subregs in SET_SRC.
13311 2016-06-15 Richard Biener <rguenther@suse.de>
13313 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
13314 store restrictions.
13316 2016-06-15 Richard Biener <rguenther@suse.de>
13318 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
13319 not consider dependences between accesses that belong to the
13321 (vect_analyze_data_ref_dependences): Do not analyze read-read
13322 or self-dependences.
13324 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13326 * spellcheck-tree.c: Include spellcheck-tree.h rather than
13328 (find_closest_identifier): Reimplement in terms of
13329 best_match<tree,tree>.
13330 * spellcheck-tree.h: New file.
13331 * spellcheck.c (struct edit_distance_traits<const char *>): New
13333 (find_closest_string): Reimplement in terms of
13334 best_match<const char *, const char *>.
13335 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
13336 overload to spellcheck-tree.h.
13337 (find_closest_identifier): Likewise.
13338 (struct edit_distance_traits<T>): New template.
13339 (class best_match): New class.
13341 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13343 * selftest-run-tests.c (selftest::run_tests): Call
13344 selftest::spellcheck_tree_c_tests.
13345 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
13346 * spellcheck-tree.c: Include selftest.h and stringpool.h.
13347 (selftest::test_find_closest_identifier): New function.
13348 (selftest::spellcheck_tree_c_tests): New function.
13349 * spellcheck.c (selftest::test_find_closest_string): Verify that
13350 the order of the vec does not affect the results for this case.
13351 (selftest::test_data): New array.
13352 (selftest::test_metric_conditions): New function.
13353 (selftest::spellcheck_c_tests): Add a test of case-comparison.
13354 Call selftest::test_metric_conditions.
13356 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13358 * config/rs6000/rs6000-builtin.def (commentary): Typo.
13359 (BU_P9_MISC_1): Likewise.
13360 (BU_P9_64BIT_MISC_0): Likewise.
13361 (BU_P9_MISC_0): Likewise.
13363 2016-06-14 David Malcolm <dmalcolm@redhat.com>
13365 * gcc-rich-location.c
13366 (gcc_rich_location::add_fixit_misspelled_id): New method.
13367 * gcc-rich-location.h
13368 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
13370 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
13372 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
13373 FreeBSD 11 and above.
13375 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
13377 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
13379 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13381 * expmed.h: Close parenthesis in "at your option" in copyright
13383 * lower-subreg.h: Likewise.
13385 2016-06-14 Richard Biener <rguenther@suse.de>
13387 PR middle-end/71526
13388 * genmatch.c (expr::gen_transform): Use in_type for comparisons
13391 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13393 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
13395 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
13396 mask+shift version.
13397 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
13399 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
13400 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
13402 2016-06-14 Richard Biener <rguenther@suse.de>
13404 PR tree-optimization/71522
13405 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
13406 copying into float copying.
13408 2016-06-14 Jakub Jelinek <jakub@redhat.com>
13410 PR tree-optimization/71520
13411 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
13412 (replace_block_by): Move user labels from bb1 to bb2.
13414 2016-06-14 Richard Biener <rguenther@suse.de>
13416 PR middle-end/71310
13418 * expr.h (get_bit_range): Declare.
13419 * expr.c (get_bit_range): Export.
13420 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
13421 word_mode again to constrain the bitfield access.
13423 2016-06-14 Richard Biener <rguenther@suse.de>
13425 PR tree-optimization/71521
13426 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
13427 division int_const_binop against zero divisor.
13429 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13431 * config/i386/i386.md (signbittf2): New expander.
13432 * config/i386/sse.md (ptesttf2): New insn pattern.
13434 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13437 * input.c (selftest::test_reading_source_line): Avoid reading from
13438 __FILE__ by creating a tempfile with known content and reading
13441 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13443 * pretty-print.c (assert_pp_format_colored): Skip the test if
13445 (test_pp_format): Remove comment about GCC_COLORS.
13447 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13449 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
13450 * pretty-print.c (assert_pp_format_va): Add location param and use
13451 it with ASSERT_STREQ_AT.
13452 (assert_pp_format): Add location param and pass it to
13453 assert_pp_format_va.
13454 (assert_pp_format_colored): Likewise.
13455 (ASSERT_PP_FORMAT_1): New.
13456 (ASSERT_PP_FORMAT_2): New.
13457 (ASSERT_PP_FORMAT_3): New.
13458 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
13459 explicitly, or implicitly via the above macros.
13460 * selftest.c (selftest::pass): Use a selftest::location rather
13461 than file and line.
13462 (selftest::fail): Likewise. Print the function name.
13463 (selftest::fail_formatted): Likewise.
13464 (selftest::assert_streq): Use a selftest::location rather than
13466 * selftest.h (selftest::location): New struct.
13467 (SELFTEST_LOCATION): New macro.
13468 (selftest::pass): Accept a const location & rather than file
13470 (selftest::fail): Likewise.
13471 (selftest::fail_formatted): Likewise.
13472 (selftest::assert_streq): Likewise.
13473 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
13474 (ASSERT_FALSE): Likewise.
13475 (ASSERT_EQ): Likewise.
13476 (ASSERT_NE): Likewise.
13477 (ASSERT_STREQ): Likewise.
13478 (ASSERT_PRED1): Likewise.
13479 (ASSERT_STREQ_AT): New macro.
13481 2016-06-13 David Malcolm <dmalcolm@redhat.com>
13483 * selftest.c (selftest::fail_formatted): New function.
13484 (selftest::assert_streq): New function.
13485 * selftest.h (selftests::fail_formatted): New decl.
13486 (selftest::assert_streq): New decl.
13487 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
13489 2016-06-13 Jeff Law <law@redhat.com>
13491 PR tree-optimization/71403
13492 * tree-ssa-threadbackward.c
13493 (convert_and_register_jump_thread_path): No longer accept reference
13494 to path. Do not pop items off the path anymore.
13495 (fsm_find_control_statement_thread_paths): Do not allow threading
13496 to a deeper loop nest. Pop the last item off the path here rather
13497 than in convert_and_register_jump_thread_path.
13499 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13500 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
13502 [AArch64] Emit division using the Newton series
13504 * config/aarch64/aarch64-protos.h
13505 (cpu_approx_modes): Add new member "division".
13506 (aarch64_emit_approx_div): Declare new function.
13507 * config/aarch64/aarch64.c
13508 (generic_approx_modes): New member "division".
13509 (exynosm1_approx_modes): Likewise.
13510 (xgene1_approx_modes): Likewise.
13511 (aarch64_emit_approx_div): Define new function.
13512 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
13513 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
13514 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
13515 * doc/invoke.texi (-mlow-precision-div): Describe new option.
13517 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13518 Wilco Dijkstra <wilco.dijkstra@arm.com>
13520 [AArch64] Emit square root using the Newton series
13522 * config/aarch64/aarch64-protos.h
13523 (aarch64_emit_approx_rsqrt): Replace with new function
13524 "aarch64_emit_approx_sqrt".
13525 (cpu_approx_modes): New member "sqrt".
13526 * config/aarch64/aarch64.c
13527 (generic_approx_modes): New member "sqrt".
13528 (exynosm1_approx_modes): Likewise.
13529 (xgene1_approx_modes): Likewise.
13530 (aarch64_emit_approx_rsqrt): Replace with new function
13531 "aarch64_emit_approx_sqrt".
13532 (aarch64_override_options_after_change_1): Handle new option.
13533 * config/aarch64/aarch64-simd.md
13534 (rsqrt<mode>2): Use new function instead.
13535 (sqrt<mode>2): New expansion and insn definitions.
13536 * config/aarch64/aarch64.md: Likewise.
13537 * config/aarch64/aarch64.opt
13538 (mlow-precision-sqrt): Add new option description.
13539 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
13541 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
13543 [AArch64] Add more choices for the reciprocal square root approximation
13545 Allow a target to prefer such operation depending on the operation mode.
13547 * config/aarch64/aarch64-protos.h
13548 (AARCH64_APPROX_MODE): New macro.
13549 (AARCH64_APPROX_{NONE,ALL}): Likewise.
13550 (cpu_approx_modes): New structure.
13551 (tune_params): New member "approx_modes".
13552 * config/aarch64/aarch64-tuning-flags.def
13553 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
13554 * config/aarch64/aarch64.c
13555 (generic_approx_modes): New core "cpu_approx_modes" structure.
13556 (exynosm1_approx_modes): Likewise.
13557 (xgene1_approx_modes): Likewise.
13558 (generic_tunings): New member "approx_modes".
13559 (cortexa35_tunings): Likewise.
13560 (cortexa53_tunings): Likewise.
13561 (cortexa57_tunings): Likewise.
13562 (cortexa72_tunings): Likewise.
13563 (exynosm1_tunings): Likewise.
13564 (thunderx_tunings): Likewise.
13565 (xgene1_tunings): Likewise.
13566 (use_rsqrt_p): New argument for the mode and use new member from
13568 (aarch64_builtin_reciprocal): Devise mode from builtin.
13569 (aarch64_optab_supported_p): New argument for the mode.
13570 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
13572 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13574 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
13575 RS6000_BTM_MODULO flag into the set of flags that are considered
13576 to be part of the common configuration.
13578 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13580 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
13581 difference unsigned.
13582 (vec_absdb): New macro for vector absolute difference unsigned
13584 (vec_absdh): New macro for vector absolute difference unsigned
13586 (vec_absdw): New macro for vector absolute difference unsigned word.
13587 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
13588 (vadu<mode>3): New insn.
13589 (*p9_vadu<mode>3): New insn.
13590 * config/rs6000/rs6000-builtin.def (vadub): New built-in
13592 (vaduh): New built-in definition.
13593 (vaduw): New built-in definition.
13594 (vadu): New overloaded built-in definition.
13595 (vadub): New overloaded built-in definition.
13596 (vaduh): New overloaded built-in definition.
13597 (vaduw): New overloaded built-in definition.
13598 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13599 overloaded vector absolute difference unsigned functions.
13600 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13601 the ISA 3.0 vector absolute difference unsigned built-in functions.
13603 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
13605 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
13606 update shared_lookup_references only once after changing operands.
13608 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
13610 PR middle-end/71373
13611 * tree-nested.c (convert_nonlocal_omp_clauses)
13612 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
13614 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
13615 * tree.def (CASE_LABEL_EXPR): Likewise.
13617 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13620 * input.c (test_builtins): Fix an assertion.
13622 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13624 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
13625 (paritysi2): Ditto.
13627 (isinf<mode>2): Ditto.
13629 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
13631 * ggc-tests.c (test_finalization): Only test need_finalization_p
13632 for GCC_VERSION >= 4003.
13634 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13636 * config/s390/vecintrin.h: Fix file description in comment.
13638 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13640 * config/s390/s390-builtin-types.def: Change builtin type naming
13641 scheme to match builtin-types.def.
13643 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
13645 * fold-const.c (optimize_minmax_comparison): Remove.
13646 (fold_comparison): Remove call to the above.
13647 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
13648 New transformations.
13650 2016-06-13 Alan Hayward <alan.hayward@arm.com>
13652 PR tree-optimization/71416
13653 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
13656 2016-06-13 Martin Liska <mliska@suse.cz>
13658 * predict.c (enum predictor_reason): Prefix enum with REASON_.
13659 (combine_predictions_for_insn): Likewise.
13660 (prune_predictions_for_bb): Likewise.
13661 (combine_predictions_for_bb): Likewise.
13663 2016-06-13 Richard Biener <rguenther@suse.de>
13665 PR tree-optimization/71505
13666 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
13667 assert match comment.
13669 2016-06-13 Marek Polacek <polacek@redhat.com>
13671 PR middle-end/71476
13672 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
13673 gimplify_switch_expr.
13674 (warn_switch_unreachable_r): New function.
13676 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13679 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
13682 2016-06-13 Richard Biener <rguenther@suse.de>
13684 PR middle-end/64516
13685 * fold-const.c (fold_unary_loc): Preserve alignment when
13686 folding a VIEW_CONVERT_EXPR into a MEM_REF.
13688 2016-06-13 Martin Liska <mliska@suse.cz>
13691 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
13692 w/ -fsanitize=bounds.
13694 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13696 * config/i386/i386.c (ix86_init_builtins): Calculate
13697 FLOAT128_FTYPE_CONST_STRING function type only once.
13698 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
13699 built-in functions are available for x86-32 and x86-64 targets.
13701 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
13704 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
13705 New primitive type.
13706 (FLOAT128_FTYPE_CONST_STRING): New function type.
13707 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
13708 [IX86_BUILTIN_NANSQ]: Ditto.
13709 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13710 (ix86_init_builtin_types): Declare const_string_type_node.
13711 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
13713 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13714 * doc/extend.texi (x86 Built-in Functions): Document
13715 __builtin_nanq and __builtin_nansq.
13717 2016-06-11 Jiong Wang <jiong.wang@arm.com>
13720 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
13721 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
13722 length for pop patterns.
13723 (arm_attr_length_push_multi): Update comments.
13724 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
13726 (*pop_multiple_with_writeback_and_return): Likewise.
13727 (*pop_multiple_with_return): Likewise.
13729 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
13731 PR middle-end/71310
13732 * fold-const.c (optimize_bit_field_compare): Don't try to use
13733 word_mode unconditionally for reading the bit field, look at
13734 DECL_BIT_FIELD_REPRESENTATIVE instead.
13736 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
13738 PR middle-end/71478
13739 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
13740 vector integer type.
13742 2016-06-10 Jakub Jelinek <jakub@redhat.com>
13744 PR middle-end/71494
13745 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
13746 without LABEL_DECL, set *handled_ops_p to false instead of true.
13748 2016-06-10 Martin Sebor <msebor@redhat.com>
13751 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
13752 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
13753 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
13755 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
13756 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
13757 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
13758 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
13759 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
13760 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
13761 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
13762 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
13764 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13766 * config/arm/arm.h (pool_vector_label,
13767 return_used_this_function): Remove.
13769 2016-06-10 Jeff Law <law@redhat.com>
13771 PR tree-optimization/71335
13772 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
13773 zero length paths here.
13774 (convert_and_register_jump_thread_path): Remove hacks related to
13775 duplicated blocks in the jump thread path.
13776 (fsm_find_control_statement_thread_paths): Avoid putting the same
13777 block on the thread path twice, but ensure the thread path is
13778 unchanged from the caller's point of view.
13780 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
13782 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
13783 * predict.def (PRED_LOOP_BRANCH): Remove.
13785 2016-06-10 David Malcolm <dmalcolm@redhat.com>
13787 * Makefile.in (OBJS): Add ggc-tests.o.
13788 (GTFILES): Add ggc-tests.c.
13789 * ggc-tests.c: New file.
13790 * selftest-run-tests.c (selftest::run_tests): Call
13791 selftest::ggc_tests_c_tests.
13792 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
13794 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
13796 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
13798 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
13801 * varasm.c (place_block_symbol): Adjust alignment for asan protected
13802 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
13804 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
13806 * profile.c: Include cfgloop.h.
13807 (branch_prob): Compute estimated number of iterations.
13808 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
13809 recompute estimate number of iterations from profile.
13811 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13813 PR inline-asm/68843
13814 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
13815 must be grouped on top of stack. Don't force early clobber
13816 on ordinary reg outputs.
13818 2016-06-10 Richard Biener <rguenther@suse.de>
13820 * targhooks.c (default_builtin_vectorization_cost): Adjust
13821 vec_construct cost.
13823 2016-06-10 Richard Biener <rguenther@suse.de>
13825 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
13826 to fold the RHS to a constant if possible.
13828 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13830 PR middle-end/71373
13831 * tree-nested.c (convert_nonlocal_omp_clauses)
13832 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
13833 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
13834 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
13836 * gimplify.c (gimplify_adjust_omp_clauses): Discard
13838 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
13840 * omp-low.c (scan_sharing_clauses): Don't expect
13841 OMP_CLAUSE__CACHE_.
13843 2016-06-10 Alan Hayward <alan.hayward@arm.com>
13845 PR tree-optimization/71407
13846 PR tree-optimization/71416
13847 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
13848 BIT_FIELD_REF type.
13850 2016-06-10 Richard Biener <rguenther@suse.de>
13852 PR middle-end/71477
13853 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
13855 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
13857 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
13859 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
13860 Jiong Wang <jiong.wang@arm.com>
13862 PR rtl-optimization/70751
13863 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
13864 spilled into memory.
13866 2016-06-09 Jonathan Yong <10walls@gmail.com>
13869 2015-09-21 Jonathan Yong <10walls@gmail.com>
13871 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13872 sysroot/usr/lib/32api for additional win32 libraries,
13873 fixes failing Cygwin bootstrapping.
13875 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
13877 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
13880 2016-06-09 David Malcolm <dmalcolm@redhat.com>
13883 * pretty-print.c (pp_indent): Specify that %p is printed in a
13884 host-dependent manner.
13885 (test_pp_format): Remove the test for %p.
13887 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
13889 * config/mips/mips.c (mips_output_jump): Fix formatting.
13891 2016-06-09 Richard Biener <rguenther@suse.de>
13893 PR tree-optimization/71462
13894 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
13897 2016-06-09 Martin Liska <mliska@suse.cz>
13899 * predict.c (dump_prediction): Add new argument.
13900 (enum predictor_reason): New enum.
13901 (struct predictor_hash): New struct.
13902 (predictor_hash::hash): New function.
13903 (predictor_hash::equal): Likewise.
13904 (not_removed_prediction_p): New function.
13905 (prune_predictions_for_bb): Likewise.
13906 (combine_predictions_for_bb): Prune predictions.
13908 2016-06-09 Martin Liska <mliska@suse.cz>
13910 * predict.c (filter_predictions): New function.
13911 (remove_predictions_associated_with_edge): Use the filter
13913 (equal_edge_p): New function.
13915 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
13917 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
13918 Correct usage of @samp vs @option, add @samp where appropriate.
13919 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
13920 Add armv6s-m and document it, as it is no official ARM name.
13922 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13924 * ifcvt.c (struct noce_if_info): Add transform_name field.
13925 (noce_try_move): Set if_info->transform_name to the function name.
13926 (noce_try_ifelse_collapse): Likewise.
13927 (noce_try_store_flag): Likewise.
13928 (noce_try_inverse_constants): Likewise.
13929 (noce_try_store_flag_constants): Likewise.
13930 (noce_try_addcc): Likewise.
13931 (noce_try_store_flag_mask): Likewise.
13932 (noce_try_cmove): Likewise.
13933 (noce_try_cmove_arith): Likewise.
13934 (noce_try_minmax): Likewise.
13935 (noce_try_abs): Likewise.
13936 (noce_try_sign_mask): Likewise.
13937 (noce_try_bitop): Likewise.
13938 (noce_convert_multiple_sets): Likewise.
13939 (noce_process_if_block): Print if_info->transform_name to
13940 dump_file if transformation succeeded.
13942 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13944 * config/arm/cortex-a57.md (cortex_a57_alu):
13947 2016-06-08 Martin Sebor <msebor@redhat.com>
13948 Jakub Jelinek <jakub@redhat.com>
13952 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
13953 BUILT_IN_MUL_OVERFLOW_P): New builtins.
13954 * builtins.c: Include gimple-fold.h.
13955 (fold_builtin_arith_overflow): Handle
13956 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
13957 (fold_builtin_3): Likewise.
13958 * doc/extend.texi (Integer Overflow Builtins): Document
13959 __builtin_{add,sub,mul}_overflow_p.
13961 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
13963 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
13964 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
13966 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
13968 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
13969 Rewrite, looking one level down for records and arrays.
13971 2016-06-08 David Malcolm <dmalcolm@redhat.com>
13973 * pretty-print.c: Include "selftest.h".
13974 (pp_format): Fix comment.
13975 (identifier_to_locale): Likewise.
13976 (selftest::test_basic_printing): New function.
13977 (selftest::assert_pp_format): New function.
13978 (selftest::test_pp_format): New function.
13979 (selftest::pretty_print_c_tests): New function.
13980 * selftest-run-tests.c (selftest::run_tests): Call
13981 selftest::pretty_print_c_tests.
13982 * selftest.h (pretty_print_c_tests): New declaration.
13984 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
13986 * invoke.texi (max-loop-headers-insns): Document.
13987 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
13988 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
13989 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
13991 2016-06-08 Richard Biener <rguenther@suse.de>
13993 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
13994 on strided SLP loads and fall back to scalar loads in case
13995 we can't chunk them.
13997 2016-06-08 Richard Biener <rguenther@suse.de>
13999 PR tree-optimization/71452
14000 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
14001 type used for the SSA rewrite has enough precision to cover
14002 the dynamic type of the location.
14004 2016-06-08 Jakub Jelinek <jakub@redhat.com>
14005 Richard Biener <rguenther@suse.de>
14008 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
14009 the same as DECL_P (base0) for indirect_base0. Use equality_code
14010 in one further place.
14012 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
14014 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
14015 to one word if the field is known to overlap other words.
14016 (extract_bit_field_1): Likewise.
14017 (store_split_bit_field): Remove compensating code.
14018 (extract_split_bit_field): Likewise.
14020 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
14024 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
14026 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14028 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
14030 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
14031 (arch64_addpv4sf): Delete.
14032 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
14033 "gen_aarch64_addpv4sf".
14034 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
14036 (vpadds_f32): Likewise.
14037 (vpaddq_f32): Likewise.
14038 (vpaddq_f64): Likewise.
14040 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14042 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
14044 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
14045 to VALLF. Rename to "fabd<mode>3".
14046 "*fabd_scalar<mode>3): Delete.
14047 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
14049 (vabdd_f64): Likewise.
14050 (vabd_f32): Likewise.
14051 (vabd_f64): Likewise.
14052 (vabdq_f32): Likewise.
14053 (vabdq_f64): Likewise.
14055 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14057 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
14059 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
14060 "aarch64_rsqrts<mode>".
14061 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
14062 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
14064 (vrsqrtsd_f64): Likewise.
14065 (vrsqrts_f32): Likewise.
14066 (vrsqrts_f64): Likewise.
14067 (vrsqrtsq_f32): Likewise.
14068 (vrsqrtsq_f64): Likewise.
14070 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14072 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
14074 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
14075 "aarch64_rsqrte<mode>".
14076 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
14077 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
14079 (vrsqrted_f64): Likewise.
14080 (vrsqrte_f32): Likewise.
14081 (vrsqrte_f64): Likewise.
14082 (vrsqrteq_f32): Likewise.
14083 (vrsqrteq_f64): Likewise.
14085 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14087 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
14089 (fcvtzs): Likewise.
14090 (fcvtzu): Likewise.
14091 * config/aarch64/aarch64-simd.md
14092 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
14093 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
14094 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
14096 (vcvt_n_f32_u32): Likewise.
14097 (vcvt_n_s32_f32): Likewise.
14098 (vcvt_n_u32_f32): Likewise.
14099 (vcvtq_n_f32_s32): Likewise.
14100 (vcvtq_n_f32_u32): Likewise.
14101 (vcvtq_n_f64_s64): Likewise.
14102 (vcvtq_n_f64_u64): Likewise.
14103 (vcvtq_n_s32_f32): Likewise.
14104 (vcvtq_n_s64_f64): Likewise.
14105 (vcvtq_n_u32_f32): Likewise.
14106 (vcvtq_n_u64_f64): Likewise.
14107 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
14108 (VSDQ_SDI): Likewise.
14109 (fcvt_target): Support V4DI, V4SI and V2SI.
14110 (FCVT_TARGET): Likewise.
14112 2016-06-08 Jiong Wang <jiong.wang@arm.com>
14114 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
14115 (TYPES_BINOP_SUS): Likewise.
14116 (aarch64_simd_builtin_data): Update include file name.
14117 (aarch64_builtins): Likewise.
14118 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
14119 for conversion between scalar float-point and fixed-point.
14121 (fcvtzs): Likewise.
14122 (fcvtzu): Likewise.
14123 * config/aarch64/aarch64.md
14124 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
14125 pattern for conversion between scalar float to fixed-pointer.
14126 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
14127 (UNSPEC_FCVTZS): New UNSPEC enumeration.
14128 (UNSPEC_FCVTZU): Likewise.
14129 (UNSPEC_SCVTF): Likewise.
14130 (UNSPEC_UCVTF): Likewise.
14131 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
14133 (vcvtd_n_f64_u64): Likewise.
14134 (vcvtd_n_s64_f64): Likewise.
14135 (vcvtd_n_u64_f64): Likewise.
14136 (vcvtd_n_f32_s32): Likewise.
14137 (vcvts_n_f32_u32): Likewise.
14138 (vcvtd_n_s32_f32): Likewise.
14139 (vcvts_n_u32_f32): Likewise.
14140 * config/aarch64/iterators.md (fcvt_target): Support integer to float
14142 (FCVT_TARGET): Likewise.
14143 (FCVT_FIXED2F): New iterator.
14144 (FCVT_F2FIXED): Likewise.
14145 (fcvt_fixed_insn): New define_int_attr.
14147 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14149 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
14150 some statements was removed.
14152 2016-06-08 Alan Hayward <alan.hayward@arm.com>
14154 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
14155 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
14156 (vect_can_advance_ivs_p): likewise.
14157 (vect_update_ivs_after_vectorizer): likewise.
14158 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
14159 (vect_analyze_scalar_cycles_1): likewise.
14160 (vect_analyze_loop_operations): likewise.
14161 (report_vect_op): likewise.
14162 (vect_is_slp_reduction): likewise.
14163 (vect_is_simple_reduction): likewise.
14164 (get_initial_def_for_induction): likewise.
14165 (vect_transform_loop): likewise.
14166 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
14167 (vect_recog_sad_pattern): likewise.
14168 (vect_recog_widen_sum_pattern): likewise.
14169 (vect_recog_widening_pattern): likewise.
14170 (vect_recog_divmod_pattern): likewise.
14171 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
14172 (vect_analyze_slp_instance): likewise.
14173 (vect_transform_slp_perm_load): likewise.
14174 (vect_schedule_slp_instance): likewise.
14176 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14178 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
14179 (return_prediction): PRED_CONST_RETURN predict return as not taken.
14180 * predict.def (PRED_CONTINUE): Change hitrate 50->67
14181 (PRED_LOOP_BRANCH): Document predictor as broken.
14182 (PRED_LOOP_EXIT): Change hitrate 91->92.
14183 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
14184 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
14185 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
14186 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
14187 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
14188 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
14189 (PRED_CALL): Chane hitrate 71->67.
14190 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
14191 (PRED_GOTO): Document as unused right now.
14192 (PRED_CONST_RETURN): Change hitrate 67->69
14193 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
14194 (PRED_NULL_RETURN): Change hitrate 91->90.
14195 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
14196 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
14197 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
14199 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
14201 * config/rs6000/altivec.h: Add __builtin_vec_mul.
14202 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
14203 special case Altivec builtin.
14204 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
14205 VSX_BUILTIN_VEC_MUL (replaced with special case code).
14206 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14207 code for ALTIVEC_BUILTIN_VEC_MUL.
14208 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
14209 for __builtin_vec_mul.
14211 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
14213 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
14216 2016-06-07 David Malcolm <dmalcolm@redhat.com>
14218 * spellcheck.c (selftest::test_find_closest_string): New function.
14219 (spellcheck_c_tests): Call the above.
14221 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14223 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
14225 2016-06-07 Jakub Jelinek <jakub@redhat.com>
14227 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
14228 Yv=Yv,C alternatives.
14230 2016-06-07 Richard Biener <rguenther@suse.de>
14233 * common.opt (ffast-math): Make Optimization.
14235 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
14236 Prachi Godbole <prachi.godbole@imgtec.com>
14238 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
14239 `fabs' and `fneg' type attributes.
14240 (p5600_fpu_fabs): Add `fmove' to the comment.
14242 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
14244 * gimple.c: Include builtins.h
14245 (gimple_inexpensive_call_p): New function.
14246 * gimple.h (gimple_inexpensive_call_p): Declare.
14247 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
14248 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
14251 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
14253 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
14254 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
14255 warning_at_rich_loc, warning_n, pedwarn, permerror,
14256 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
14257 sorry, fatal_error, internal_error, internal_error_no_backtrace):
14260 2016-06-07 Richard Biener <rguenther@suse.de>
14262 PR tree-optimization/71428
14263 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
14264 BIT_FIELD_REF op vs. load.
14266 2016-06-07 Richard Biener <rguenther@suse.de>
14268 PR middle-end/71423
14269 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
14272 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14274 * config/pa/pa.md (call): Generate indirect long calls to non-local
14275 functions on TARGET_64BIT.
14276 (call_value): Likewise.
14278 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
14280 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
14281 pattern and subsequent splitters.
14282 (call_val_reg_64bit_post_reload): Likewise.
14284 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14286 PR middle-end/71408
14287 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
14288 propagate_op_to_single_use.
14290 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14292 PR middle-end/71281
14293 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
14295 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
14297 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
14298 (enum x86_dirflag_state): New enum.
14299 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
14300 (machine_function): Remove needs_cld.
14301 (ix86_current_function_needs_cld): Remove.
14302 * config/i386/i386.c (ix86_set_func_type): Set
14303 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
14304 (ix86_expand_prologue): Do not emit CLD here.
14305 (ix86_dirflag_mode_needed): New function.
14306 (ix86_dirflag_mode_entry): Ditto.
14307 (ix86_mode_needed): Handle X86_DIRFLAG entity.
14308 (ix86_mode_after): Ditto.
14309 (ix86_mode_entry): Ditto.
14310 (ix86_mode_exit): Ditto.
14311 (ix86_emit_mode_set): Ditto.
14312 * config/i386/i386.md (strmov_singleop): Set
14313 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
14314 Do not set ix86_current_function_needs_cld.
14316 (strset_singleop): Ditto.
14318 (cmpstrnqi_nz_1): Ditto.
14319 (cmpstrnqi_1): Ditto.
14320 (strlenqi_1): Ditto.
14322 2016-06-06 Jakub Jelinek <jakub@redhat.com>
14324 PR tree-optimization/71259
14325 * tree-vect-slp.c (vect_get_constant_vectors): For
14326 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
14327 one for constant op, and use COND_EXPR for non-constant.
14329 2016-06-06 David Malcolm <dmalcolm@redhat.com>
14331 * Makefile.in (OBJS): Add function-tests.o,
14332 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
14333 selftest-run-tests.o.
14334 (OBJS-libcommon): Add selftest.o.
14335 (OBJS-libcommon-target): Add selftest.o.
14336 (all.internal): Add "selftest".
14337 (all.cross): Likewise.
14338 (selftest): New phony target.
14339 (s-selftest): New target.
14340 (selftest-gdb): New phony target.
14341 (COLLECT2_OBJS): Add selftest.o.
14342 * bitmap.c: Include "selftest.h".
14343 (selftest::test_gc_alloc): New function.
14344 (selftest::test_set_range): New function.
14345 (selftest::test_clear_bit_in_middle): New function.
14346 (selftest::test_copying): New function.
14347 (selftest::test_bitmap_single_bit_set_p): New function.
14348 (selftest::bitmap_c_tests): New function.
14349 * common.opt (fself-test): New.
14350 * diagnostic-show-locus.c: Include "selftest.h".
14351 (make_range): New function.
14352 (test_range_contains_point_for_single_point): New function.
14353 (test_range_contains_point_for_single_line): New function.
14354 (test_range_contains_point_for_multiple_lines): New function.
14355 (assert_eq): New function.
14356 (test_get_line_width_without_trailing_whitespace): New function.
14357 (selftest::diagnostic_show_locus_c_tests): New function.
14358 * et-forest.c: Include "selftest.h".
14359 (selftest::test_single_node): New function.
14360 (selftest::test_simple_tree): New function.
14361 (selftest::test_disconnected_nodes): New function.
14362 (selftest::et_forest_c_tests): New function.
14363 * fold-const.c: Include "selftest.h".
14364 (selftest::assert_binop_folds_to_const): New function.
14365 (selftest::assert_binop_folds_to_nonlvalue): New function.
14366 (selftest::test_arithmetic_folding): New function.
14367 (selftest::fold_const_c_tests): New function.
14368 * function-tests.c: New file.
14369 * gimple.c: Include "selftest.h".
14370 Include "gimple-pretty-print.h".
14371 (selftest::verify_gimple_pp): New function.
14372 (selftest::test_assign_single): New function.
14373 (selftest::test_assign_binop): New function.
14374 (selftest::test_nop_stmt): New function.
14375 (selftest::test_return_stmt): New function.
14376 (selftest::test_return_without_value): New function.
14377 (selftest::gimple_c_tests): New function.
14378 * hash-map-tests.c: New file.
14379 * hash-set-tests.c: New file.
14380 * input.c: Include "selftest.h".
14381 (selftest::assert_loceq): New function.
14382 (selftest::test_accessing_ordinary_linemaps): New function.
14383 (selftest::test_unknown_location): New function.
14384 (selftest::test_builtins): New function.
14385 (selftest::test_reading_source_line): New function.
14386 (selftest::input_c_tests): New function.
14387 * rtl-tests.c: New file.
14388 * selftest-run-tests.c: New file.
14389 * selftest.c: New file.
14390 * selftest.h: New file.
14391 * spellcheck.c: Include "selftest.h".
14392 (selftest::levenshtein_distance_unit_test_oneway): New function,
14393 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
14394 (selftest::levenshtein_distance_unit_test): Likewise.
14395 (selftest::spellcheck_c_tests): Likewise.
14396 * toplev.c: Include selftest.h.
14397 (toplev::run_self_tests): New.
14398 (toplev::main): Handle -fself-test.
14399 * toplev.h (toplev::run_self_tests): New.
14400 * tree.c: Include "selftest.h".
14401 (selftest::test_integer_constants): New function.
14402 (selftest::test_identifiers): New function.
14403 (selftest::test_labels): New function.
14404 (selftest::tree_c_tests): New function.
14405 * tree-cfg.c: Include "selftest.h".
14406 (selftest::push_fndecl): New function.
14407 (selftest::test_linear_chain): New function.
14408 (selftest::test_diamond): New function.
14409 (selftest::test_fully_connected): New function.
14410 (selftest::tree_cfg_c_tests): New function.
14411 * vec.c: Include "selftest.h".
14412 (selftest::safe_push_range): New function.
14413 (selftest::test_quick_push): New function.
14414 (selftest::test_safe_push): New function.
14415 (selftest::test_truncate): New function.
14416 (selftest::test_safe_grow_cleared): New function.
14417 (selftest::test_pop): New function.
14418 (selftest::test_safe_insert): New function.
14419 (selftest::test_ordered_remove): New function.
14420 (selftest::test_unordered_remove): New function.
14421 (selftest::test_block_remove): New function.
14422 (selftest::reverse_cmp): New function.
14423 (selftest::test_qsort): New function.
14424 (selftest::vec_c_tests): New function.c.
14425 * wide-int.cc: Include selftest.h and wide-int-print.h.
14426 (selftest::from_int <wide_int>): New function.
14427 (selftest::from_int <offset_int>): New function.
14428 (selftest::from_int <widest_int>): New function.
14429 (selftest::assert_deceq): New function.
14430 (selftest::assert_hexeq): New function.
14431 (selftest::test_printing <VALUE_TYPE>): New function template.
14432 (selftest::test_ops <VALUE_TYPE>): New function template.
14433 (selftest::test_comparisons <VALUE_TYPE>): New function template.
14434 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
14436 (selftest::wide_int_cc_tests): New function.
14438 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14440 PR middle-end/37780
14441 * ifcvt.c (noce_try_ifelse_collapse): New function.
14443 (noce_process_if_block): Call noce_try_ifelse_collapse.
14444 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
14445 (simplify_ternary_operation): Use the above to simplify
14446 conditional CLZ/CTZ expressions.
14448 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14450 PR middle-end/37780
14451 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
14452 define_insn_and_split.
14454 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14456 PR middle-end/37780
14457 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
14459 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
14462 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
14463 Implicitly clobber memory for basic asm with non-empty assembler
14464 string. Use targetm.md_asm_adjust also here.
14465 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
14466 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
14467 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
14468 non-empty assembler string.
14469 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
14470 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
14471 (decode_asm_operands): Handle basic asm in PARALLEL block.
14472 (extract_insn): Handle basic asm in PARALLEL block.
14473 * doc/extend.texi: Mention new behavior of basic asm.
14474 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
14475 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
14476 branch_needs_nop_p): Use asm_noperands.
14478 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
14480 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
14481 Include the M7 SPARC DFA scheduler.
14482 New attribute v3pipe.
14483 Annotate insns with v3pipe where appropriate.
14484 Define cpu_feature vis4.
14485 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
14486 Add (V8QI "8") to vbits.
14487 Add insns {add,sub}v8qi3
14488 Add insns ss{add,sub}v8qi3
14489 Add insns us{add,sub}{v8qi,v4hi}3
14490 Add insns {min,max}{v8qi,v4hi,v2si}3
14491 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
14492 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
14493 * config/sparc/niagara4.md: Add a comment explaining the
14494 discrepancy between the documented latenty numbers and the
14496 * config/sparc/niagara7.md: New file.
14497 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
14498 supports SPARC5 and VIS 4.0 instructions.
14499 * configure: Regenerate.
14500 * config.in: Likewise.
14501 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
14502 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
14503 TARGET_CPU_niagara7.
14504 (ASM_CPU64_DEFAULT_SPEC): Likewise.
14505 (CPP_CPU_SPEC): Handle niagara7.
14506 (ASM_CPU_SPEC): Likewise.
14507 * config/sparc/sparc-opts.h (processor_type): Add
14508 PROCESSOR_NIAGARA7.
14509 (mvis4): New option.
14510 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
14511 (AS_NIAGARA7_FLAG): Define.
14512 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
14513 (CPP_CPU64_DEFAULT_SPEC): Likewise.
14514 (CPP_CPU_SPEC): Handle niagara7.
14515 (ASM_CPU_SPEC): Likewise.
14516 * config/sparc/sparc.c (niagara7_costs): Define.
14517 (sparc_option_override): Handle niagara7 and adjust cache-related
14518 parameters with better values for niagara cpus. Also support VIS4.
14519 (sparc32_initialize_trampoline): Likewise.
14520 (sparc_use_sched_lookahead): Likewise.
14521 (sparc_issue_rate): Likewise.
14522 (sparc_register_move_cost): Likewise.
14523 (dump_target_flag_bits): Support VIS4.
14524 (sparc_vis_init_builtins): Likewise.
14525 (sparc_builtins): Likewise.
14526 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
14528 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
14530 * config/sparc/sparc.opt (sparc_processor_type): New value
14532 * config/sparc/visintrin.h (__attribute__): Prototypes for the
14534 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
14536 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14539 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
14541 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
14543 2016-06-06 Richard Biener <rguenther@suse.de>
14545 PR tree-optimization/71398
14546 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
14549 2016-06-05 James Bowman <james.bowman@ftdichip.com>
14551 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
14552 ft32_expand_prolog, ft32_expand_epilogue):
14553 Handle pretend_args.
14554 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
14555 * config/ft32/ft32.md: Add pretend_returner.
14557 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
14560 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14561 Copy op1 RTX to avoid invalid sharing.
14562 (ix86_expand_vector_move_misalign): Ditto.
14564 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
14566 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
14569 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14571 * predict.c (predicted_by_loop_heuristics_p): New function.
14572 (predict_iv_comparison): Use it.
14573 (predict_loops): Walk from innermost loops; do not predict edges
14574 leaving multiple loops multiple times; implement
14575 PRED_LOOP_ITERATIONS_MAX heuristics.
14576 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
14578 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
14580 * cfg.c (check_bb_profile): Do not report mismatched profiles when
14581 only edges out of BB are EH edges.
14583 2016-06-04 Martin Sebor <msebor@redhat.com>
14584 Marcin Baczyński <marbacz@gmail.com>
14587 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
14588 a void expression in a void function.
14590 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14592 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
14593 aux; dump reasons of decisions.
14594 (should_duplicate_loop_header_p): Likewise.
14595 (do_while_loop_p): Likewise.
14596 (ch_base::copy_headers): Dump asi num insns duplicated.
14598 2016-06-04 Jakub Jelinek <jakub@redhat.com>
14600 PR tree-optimization/71405
14601 * tree-ssa.c (execute_update_addresses_taken): For clobber with
14602 incompatible type, build a new clobber with the right type instead
14603 of building a VIEW_CONVERT_EXPR around it.
14605 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14607 PR tree-optimization/52171
14608 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
14609 by_pieces_ninsns instead of move_by_pieces_ninsns.
14611 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
14613 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
14614 for reg+reg addressing mode.
14616 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14618 * rs6000-c.c (c/c-tree.h): Add #include.
14619 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
14620 in C++ when found in the base position of vec_ld or vec_st.
14622 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
14624 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
14625 use of profile unless profile status is PROFILE_READ.
14626 * profile.c (compute_branch_probabilities): Set profile status
14627 only after reporting predictor hitrates.
14629 2016-06-03 Joseph Myers <joseph@codesourcery.com>
14633 * common.opt (ffp-int-builtin-inexact): New option.
14634 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14635 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
14636 (ceil@var{m}2): Document dependence on this option.
14637 * ipa-inline-transform.c (inline_call): Handle
14638 flag_fp_int_builtin_inexact.
14639 * ipa-inline.c (can_inline_edge_p): Likewise.
14640 * config/i386/i386.md (rintxf2): Do not test
14641 flag_unsafe_math_optimizations.
14642 (rint<mode>2_frndint): New define_insn.
14643 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
14644 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
14645 for 387 instead of extending and truncating.
14646 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
14647 !flag_trapping_math instead of flag_unsafe_math_optimizations.
14648 Change to frndint<mode>2_<rounding>.
14649 (frndintxf2_<rounding>_i387): Likewise. Change to
14650 frndint<mode>2_<rounding>_i387.
14651 (<rounding_insn>xf2): Likewise.
14652 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
14653 !flag_trapping_math instead of flag_unsafe_math_optimizations for
14654 x87. Test TARGET_ROUND || !flag_trapping_math ||
14655 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
14656 SSE. Use ROUND_NO_EXC in constant operand of
14657 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
14658 for 387 instead of extending and truncating.
14660 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
14661 Julia Koval <julia.koval@intel.com>
14673 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
14674 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
14675 all registers, except for function return registers if there are
14676 no caller-saved registers.
14677 (ix86_set_func_type): New function.
14678 (ix86_set_current_function): Call ix86_set_func_type to set
14679 no_caller_saved_registers and func_type. Call reinit_regs if
14680 caller-saved registers are changed. Don't allow MPX, SSE, MMX
14681 nor x87 instructions in interrupt handler nor function with
14682 no_caller_saved_registers attribute.
14683 (ix86_function_ok_for_sibcall): Return false if there are no
14684 caller-saved registers.
14685 (type_natural_mode): Don't warn ABI change for MMX in interrupt
14687 (ix86_function_arg_advance): Skip for callee in interrupt handler.
14688 (ix86_function_arg): Return special arguments in interrupt handler.
14689 (ix86_promote_function_mode): Promote pointer to word_mode only
14690 for normal functions.
14691 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
14693 (ix86_epilogue_uses): New function.
14694 (ix86_hard_regno_scratch_ok): Likewise.
14695 (ix86_save_reg): Preserve all registers in interrupt handler
14696 after reload. Preserve all registers, except for function return
14697 registers, if there are no caller-saved registers after reload.
14698 (find_drap_reg): Always use callee-saved register if there are
14699 no caller-saved registers.
14700 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
14701 for interrupt handler.
14702 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
14703 Emit cld instruction if stringops are used in interrupt handler
14704 or interrupt handler isn't a leaf function.
14705 (ix86_expand_epilogue): Generate interrupt return for interrupt
14706 handler and pop the 'ERROR_CODE' off the stack before interrupt
14707 return in exception handler.
14708 (ix86_expand_call): Disallow calling interrupt handler directly.
14709 If there are no caller-saved registers, mark all registers that
14710 are clobbered by the call which returns as clobbered.
14711 (ix86_handle_no_caller_saved_registers_attribute): New function.
14712 (ix86_handle_interrupt_attribute): Likewise.
14713 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
14715 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
14716 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
14717 accumulation in interrupt function if stack may be realigned to
14719 (EPILOGUE_USES): New.
14720 (function_type): New enum.
14721 (machine_function): Add func_type and no_caller_saved_registers.
14722 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
14723 (interrupt_return): New pattern.
14724 * doc/extend.texi: Document x86 interrupt and
14725 no_caller_saved_registers attributes.
14727 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
14729 PR tree-optimization/52171
14730 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
14731 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
14732 Look for constant strings. Move some code to emit_block_cmp_hints
14734 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
14735 * defaults.h (COMPARE_MAX_PIECES): New macro.
14736 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
14737 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
14738 (clear_by_pieces_1): Don't declare. Move definition before use.
14739 (can_do_by_pieces): New static function.
14740 (can_move_by_pieces): Use it. Return bool.
14741 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
14742 OP. All callers changed. Handle COMPARE_BY_PIECES.
14743 (class pieces_addr); New.
14744 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
14745 pieces_addr::adjust, pieces_addr::increment_address,
14746 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
14748 (class op_by_pieces_d): New.
14749 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
14751 (class move_by_pieces_d, class compare_by_pieces_d,
14752 class store_by_pieces_d): New subclasses of op_by_pieces_d.
14753 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
14754 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
14755 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
14756 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
14757 compare_by_pieces_d::finish_mode): New member functions.
14758 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
14760 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
14761 (emit_block_cmp_hints): New function.
14762 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
14763 use the newly defined classes.
14764 * expr.h (by_pieces_constfn): New typedef.
14765 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
14766 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
14767 (move_by_pieces_ninsns): Don't declare.
14768 (can_move_by_pieces): Change return value to bool.
14769 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
14770 (compare_by_pieces_branch_ratio): New hook.
14771 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
14772 (by_pieces_ninsns): Declare.
14773 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
14775 (default_compare_by_pieces_branch_ratio): New function.
14776 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
14777 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
14778 * doc/tm.texi: Regenerate.
14779 * tree-ssa-strlen.c: Include "builtins.h".
14780 (handle_builtin_memcmp): New static function.
14781 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
14782 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
14784 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14786 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
14787 relevant stmts which are simple and invariant.
14788 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
14789 instead of simple and invariant
14791 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14793 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
14794 (vectorizable_reduction): Check for new relevant state.
14795 (vectorizable_live_operation): vectorize live stmts using
14796 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
14797 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
14798 (vect_stmt_relevant_p): Check for stmts which are only used live.
14799 (process_use): Use of a stmt does not inherit it's live value.
14800 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
14801 (vect_analyze_stmt): Check for new relevant state.
14802 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
14803 outside the loop, but not inside it.
14805 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14807 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
14808 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
14809 (vect_get_vec_def_for_operand): Split out code.
14811 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14813 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
14815 2016-06-03 Alan Hayward <alan.hayward@arm.com>
14817 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
14819 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14821 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
14823 2016-06-03 Jakub Jelinek <jakub@redhat.com>
14825 PR middle-end/71387
14826 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
14827 to noreturn e->callee->decl that has void return type and void
14828 arguments, adjust gimple_call_fntype and remove lhs even if it had
14829 previously addressable type.
14831 2016-06-02 Jeff Law <law@redhat.com>
14833 PR tree-optimization/71328
14834 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
14835 error when checking for a jump back onto the copied path.
14837 2016-06-02 David Malcolm <dmalcolm@redhat.com>
14839 * config/microblaze/microblaze.c (get_branch_target): Add return
14840 NULL_RTX for the non-CALL_P case.
14841 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
14842 (insert_wic): Remove unused local "j".
14844 2016-06-02 Martin Liska <mliska@suse.cz>
14846 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
14848 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
14849 Julia Koval <julia.koval@intel.com>
14851 * function.c (assign_parm_setup_stack): Force source into a
14852 register if needed.
14853 * target.def (function_incoming_arg): Update documentation to
14854 allow arbitrary address computation based on hard register.
14855 * doc/tm.texi: Regenerated.
14857 2016-06-02 Martin Liska <mliska@suse.cz>
14859 * predict.c (combine_predictions_for_bb): Fix first match in
14860 cases where a first predictor contains more than one occurence
14861 in list of predictors. Take the best value in such case.
14863 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14865 PR rtl-optimization/71295
14866 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
14867 offset would go over the size of the inner mode reject it.
14869 2016-06-02 Jakub Jelinek <jakub@redhat.com>
14871 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
14872 x=x,x and v=v,m instead of x=x,m.
14874 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
14875 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
14876 alternative to v=rm,C.
14878 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
14879 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
14880 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
14881 instead of vex for the last two above mentioned alternatives.
14883 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14886 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
14888 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
14890 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
14892 2016-06-01 David Malcolm <dmalcolm@redhat.com>
14894 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
14895 from int to unsigned.
14897 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14899 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
14900 alternatives, eliminating preferred register class. Add support
14901 for the MTVSRDD instruction in ISA 3.0.
14902 (vsx_splat_v4si_internal): Use splat_input_operand instead of
14903 reg_or_indexed_operand.
14904 (vsx_splat_v4sf_internal): Likewise.
14906 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14909 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
14910 for loading up all 0's or all 1's.
14912 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
14914 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
14916 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
14918 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
14920 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
14921 * gcc.c (set_source_date_epoch_envvar): New function, sets
14922 the SOURCE_DATE_EPOCH environment variable to the current time.
14924 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
14926 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
14927 the factor for live Phi nodes.
14929 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
14931 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
14932 * tree-parloops.c (parallelize_loops): likewise.
14933 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
14934 tree_unswitch_outer_loop): likewise.
14936 2016-06-01 Jakub Jelinek <jakub@redhat.com>
14938 PR middle-end/71371
14939 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
14940 around creation of the temporary.
14942 2016-06-01 Richard Biener <rguenther@suse.de>
14944 PR tree-optimization/71366
14945 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
14946 (unloop_loops): Move removing edges here ...
14947 (try_unroll_loop_completely): ... from here.
14948 (try_peel_loop): ... and here.
14949 (tree_unroll_loops_completely_1): Track parent loops via
14950 bitmap of header BBs.
14951 (tree_unroll_loops_completely): Adjust for that.
14953 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
14955 * config/rs6000/altivec.h (vec_slv): New macro.
14956 (vec_srv): New macro.
14957 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
14958 (UNSPEC_VSRV): New value.
14961 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
14962 (vsrv): New builtin definition.
14963 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
14964 define argument types for new builtin.
14965 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
14967 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
14970 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
14971 Jocelyn Mayer <l_indien@magic.fr>
14974 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
14975 detect processor family for signature_CENTAUR_ebx.
14976 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
14977 signature_CENTAUR_ebx.
14978 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
14979 <default>: Pass x86-64 for has_longmode.
14981 2016-06-01 Nathan Sidwell <nathan@acm.org>
14983 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
14986 2016-06-01 Richard Biener <rguenther@suse.de>
14988 PR tree-optimization/71261
14989 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
14990 of stmts successfully put in the bool pattern. Remove
14991 single-use restriction.
14992 (adjust_bool_pattern_cast): Add cast at the use site via the
14993 pattern def sequence.
14994 (adjust_bool_pattern): Remove recursion, maintain a hash-map
14995 of patterned defs. Use the pattern def seqence instead of
14996 multiple independent patterns.
14997 (sort_after_uid): New qsort compare function.
14998 (adjust_bool_stmts): New function to process stmts in the bool
14999 pattern in IL order.
15000 (vect_recog_bool_pattern): Adjust.
15001 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
15002 (ifcvt_walk_pattern_tree): Likewise.
15003 (stmt_is_root_of_bool_pattern): Likewise.
15004 (ifcvt_repair_bool_pattern): Likewise.
15005 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
15007 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
15009 * loop-unroll.c (decide_unroll_constant_iterations,
15010 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
15011 likely upper bounds.
15012 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
15014 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
15016 * tree-core.h (enum omp_clause_code): Remove
15017 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
15019 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15021 * config/arm/sync.md (arm_store_exclusive<mode>):
15022 Use 'H' output modifier on operands[2] rather than creating a new
15023 entry in out-of-bounds memory of the operands array.
15024 (arm_store_release_exclusivedi): Likewise.
15026 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15028 * config/arm/arm.c (arm_fusion_enabled_p): New function.
15029 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
15030 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
15031 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15033 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
15035 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
15036 into account live statements for mask producers.
15038 2016-06-01 Richard Biener <rguenther@suse.de>
15040 PR tree-optimization/71311
15041 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
15042 restrict to non-INTEGER_CST @0.
15044 2016-06-01 Richard Biener <rguenther@suse.de>
15046 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
15047 (relational patterns): Use :c to avoid pattern duplications.
15049 2016-06-01 Richard Biener <rguenther@suse.de>
15051 * genmatch.c (comparison_code_p): New predicate.
15052 (swap_tree_comparison): New function.
15053 (commutate): Add for_vec parameter to append new for entries.
15054 Support commutating relational operators by swapping it alongside
15056 (lower_commutative): Adjust.
15057 (dt_simplify::gen): Do not pass artificial operators to gen
15059 (decision_tree::gen): Do not add artificial operators as parameters.
15060 (parser::parse_expr): Verify operator commutativity when :c is
15061 applied. Allow :C to override this.
15062 * match.pd: Adjust patterns to use :C instead of :c where required.
15064 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
15066 PR tree-optimization/71077
15067 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
15068 the combining step, use boolean_false_node and boolean_true_node
15069 as the designated false/true return values.
15071 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15073 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
15074 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
15075 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
15078 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15080 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
15081 of flags impliying the register renaming.
15082 * toplev.c (process_options): Do not imply flag_rename_registers with
15085 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15087 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
15088 default implementation.
15090 2016-05-31 Nathan Sidwell <nathan@acm.org>
15092 * dwarf2out.c (cur_line_info_table): Add GTY marker.
15094 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15096 * config/sh/constraints.md (b): Remove constraint.
15097 * config/sh/predicates.md (arith_reg_operand): Remove
15099 * config/sh/sh-modes.def (PDI): Remove.
15100 * config/sh/sh.c (sh_target_reg_class,
15101 sh_optimize_target_register_callee_saved): Remove functions.
15102 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
15103 (sh_expand_epilogue): Update comment.
15104 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
15105 sh_secondary_reload): Remove TARGET_REGS related code.
15106 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
15107 TARGET_REGISTER_P): Remove macros.
15108 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
15109 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
15110 TR1_REG, TR2_REG): Remove constants.
15111 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
15113 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15115 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
15116 define_expand patterns.
15117 (adddi3_compact): Rename to adddi3.
15118 (subdi3_compact): Rename to subdi3.
15119 (*negdi2): Rename to negdi2.
15120 (*abs<mode>2): Rename to abs<mode>2.
15122 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
15124 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
15125 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
15126 (atomic_sub_fetchsi): ... this new pattern.
15127 (mvtc): Add CC_REG clobber.
15129 2016-05-31 Marek Polacek <polacek@redhat.com>
15131 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
15133 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15135 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
15136 aarch64_fusion_enabled_p to check for fusion capabilities.
15138 2016-05-31 Richard Biener <rguenther@suse.de>
15140 PR tree-optimization/71352
15141 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
15142 minus one and a negate.
15144 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15146 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
15147 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
15149 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
15150 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
15151 Remove use of aarch64_simd_attr_length_move, set length attribute
15153 (*aarch64_be_movoi): Likewise.
15154 (*aarch64_be_movci): Likewise.
15155 (*aarch64_be_movxi): Likewise.
15157 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
15159 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
15160 It no longer does that.
15161 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
15163 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
15165 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
15166 attribute __unused__.
15168 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
15170 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
15171 * config/arm/arm.c (arm_arch_thumb1): Define.
15172 (arm_option_override): Initialize arm_arch_thumb1.
15173 * config/arm/arm.h (arm_arch_thumb1): Declare.
15174 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
15175 support Thumb-1 ISA.
15177 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
15180 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
15181 `Yv' for scalar operand.
15183 2016-05-31 Tom de Vries <tom@codesourcery.com>
15185 PR tree-optimization/69068
15186 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
15187 phis with more than two args.
15189 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
15191 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
15192 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
15195 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
15197 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
15199 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
15201 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
15202 cpu_32, cpu_64, tune_32 and tune_64.
15203 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
15205 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
15207 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
15209 2016-05-30 Andi Kleen <ak@linux.intel.com>
15211 * auto-profile.c (read_profile): Replace asserts with errors
15212 when file does not exist.
15213 * gcov-io.c (gcov_read_words): Dito.
15215 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15217 * tree-cfg.c (print_loop): Print likely upper bounds.
15219 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15221 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
15222 * opts.c (default_options): Enable peel loops at -O3.
15223 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
15224 (try_peel_loop): Do not re-peel already peeled loops;
15225 use likely upper bounds; fix profile updating.
15226 (pass_complete_unroll::execute): Initialize peeled_loops.
15228 2016-05-30 Martin Liska <mliska@suse.cz>
15230 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
15231 computed costs by frequency of BB they belong to.
15232 (get_scaled_computation_cost_at): New function.
15234 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
15235 Marc Glisse <marc.glisse@inria.fr>
15237 PR tree-optimization/71289
15238 * match.pd (-1 / B < A, A > -1 / B): New transformations.
15240 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15242 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
15244 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15246 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
15247 for peeled copies; avoid underflow when updating estimates; correctly
15248 scale loop profile.
15250 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15252 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
15253 r236875. Corrected oe3 to oe2 as obvious.
15255 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15257 PR middle-end/71269
15258 PR middle-end/71252
15259 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
15260 that inserted stmt will not dominate stmts that defines its operand.
15261 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
15262 (rewrite_expr_tree_parallel): Likewise.
15264 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
15266 PR middle-end/71252
15267 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
15268 all fields including stmt_to_insert are swapped.
15270 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15272 * predict.h (force_edge_cold): Declare.
15273 * predict.c (force_edge_cold): New function.
15274 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
15276 (canonicalize_loop_induction_variables): Fix formating.
15278 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
15280 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
15281 (visium_expand_copysign): Use gen_int_mode directly.
15282 (visium_compute_frame_size): Minor tweaks.
15284 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
15286 * tree-vect-loop.c (vect_analyze_loop_2): Use
15287 likely_max_stmt_executions_int.
15289 2016-05-30 Tom de Vries <tom@codesourcery.com>
15291 PR tree-optimization/69067
15292 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
15294 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
15297 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
15298 New peepholes to remove unneeded fild/fistp pairs.
15299 (define_peephole2 atomic_loaddi_fpu): Ditto.
15301 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15303 * predict.c (maybe_hot_frequency_p): Avoid division.
15305 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
15307 * doc/install.texi: Use https for shop.fsf.org.
15309 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15311 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
15312 likely_max_stmt_executions_int.
15314 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15316 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
15317 likely_max_stmt_executions_int.
15319 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15321 * profile.c (compute_branch_probabilities): Do not report hitrates
15323 (branch_prob): Report hitrates here.
15324 * predict.c (gimple_predict_edge): Do not assert profile status;
15325 fix formatting issues.
15327 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15329 * predict.c (edge_predicted_by_p): New function.
15330 (predict_paths_for_bb): Do not put multiple predictions of the same type
15333 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15335 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
15338 2016-05-28 Alan Modra <amodra@gmail.com>
15340 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
15342 2016-05-28 Alan Modra <amodra@gmail.com>
15344 PR rtl-optimization/71275
15345 * ira.c (ira): Free dominance info.
15347 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
15349 * doc/sourcebuild.texi: New address for upstream Go repository.
15351 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15353 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
15354 (TARGET_ARM_V7M): Likewise.
15356 2016-05-26 Jeff Law <law@redhat.com>
15358 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
15359 (thread_across_edge): Remove calls to find_jump_threads_backwards.
15360 * passes.def: Add jump threading passes before DOM/VRP.
15361 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
15362 argument to a basic block from an edge. Remove tests which are
15364 (pass_data_thread_jumps, class pass_thread_jumps): New.
15365 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
15366 (make_pass_thread_jumps): Likewise.
15367 * tree-pass.h (make_pass_thread_jumps): Declare.
15369 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
15371 * config/visium/visium-protos.h (split_double_move): Rename into...
15372 (visium_split_double_move): ...this.
15373 (visium_split_double_add): Declare.
15374 * config/visium/visium.c (split_double_move): Rename into...
15375 (visium_split_double_move): ...this.
15376 (visium_split_double_add): New function.
15377 (visium_expand_copysign): Renumber operands for consistency.
15378 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
15379 (DFmode move splitter): Likewise.
15380 (*addi3_insn): Split by means of visium_split_double_add.
15381 (*adddi3_insn_flags): Delete.
15382 (*plus_plus_sltu<subst_arith>): New insn.
15383 (*subdi3_insn): Split by means of visium_split_double_add.
15384 (subdi3_insn_flags): Delete.
15385 (*minus_minus_sltu<subst_arith>): New insn.
15386 (*negdi2_insn): Split by means of visium_split_double_add.
15387 (*negdi2_insn_flags): Delete.
15389 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
15391 * configure.ac: Treat a --with-headers option without argument
15392 the same as the default (i.e. consult sys-include directory).
15393 * configure: Regenerate.
15395 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15397 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
15398 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
15400 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
15401 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
15403 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15406 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
15407 tree-stdarg analysis results.
15408 (aarch64_setup_incoming_varargs): Likewise.
15410 2016-05-27 Jiong Wang <jiong.wang@arm.com>
15412 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
15413 va_list_gpr_counter_field and va_list_fpr_counter_field.
15415 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
15418 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
15419 * config/aarch64/aarch64.c
15420 (aarch64_cannot_change_mode_class): Remove function.
15421 * config/aarch64/aarch64-protos.h
15422 (aarch64_cannot_change_mode_class): Remove.
15424 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
15426 * cfgloop.c (record_niter_bound): Record likely upper bounds.
15427 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
15428 get_likely_max_loop_iterations_int): New.
15429 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
15430 any_likely_upper_bound.
15431 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
15433 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
15434 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
15436 (unroll_loop_constant_iterations): Likewise.
15437 (unroll_loop_runtime_iterations): Likewise.
15438 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
15439 * lto-streamer-out.c (output_cfg): Likewise.
15440 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
15442 (canonicalize_loop_induction_variables): Dump likely upper bounds.
15443 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
15444 (likely_max_loop_iterations): New.
15445 (likely_max_loop_iterations_int): New.
15446 (likely_max_stmt_executions): New.
15447 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
15448 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
15449 likely_max_stmt_executions): Declare.
15451 2016-05-27 Marek Polacek <polacek@redhat.com>
15453 PR middle-end/71308
15454 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
15456 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15458 * config/s390/s390.md (2x risbg splitters): Use
15459 reg_overlap_mentioned_p instead of rtx_equal_p.
15461 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15463 * combine.c (make_compound_operation): Take known zero bits into
15464 account when checking for possible zero_extend.
15466 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15468 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
15469 Use const_int_operand for operand 2 predicate. Simplify expand code
15472 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
15474 PR middle-end/71279
15475 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
15478 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15480 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
15481 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
15482 that returns CC_SESWPmode and CC_ZESWPmode.
15483 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
15485 (aarch64_rtx_costs): Likewise.
15487 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15489 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
15490 for ISA 3.0 min/max support.
15491 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
15492 conditional move support.
15493 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
15494 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
15496 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
15497 conditional moves where the comparison type is different from move
15499 (fp_minmax): New code iterator for smin/smax.
15500 (minmax): New code attributes for min/max.
15501 (SMINMAX): Likewise.
15502 (smax<mode>3): Combine min, max insns into one insn using the
15503 fp_minmax code iterator. Add support for ISA 3.0 min/max
15504 instructions that don't need -ffast-math.
15505 (s<minmax><mode>3): Likewise.
15506 (smax<mode>3_vsx): Likewise.
15507 (smin<mode>3): Likewise.
15508 (s<minmax><mode>3_vsx): Likewise.
15509 (smin<mode>3_vsx): Likewise.
15510 (pre-VSX min/max splitters): Likewise.
15511 (s<minmax><mode>3_fpr): Likewise.
15512 (movsfcc): Rewrite floating point conditional moves to combine
15513 SFmode/DFmode into a single insn.
15514 (mov<mode>cc): Likewise.
15515 (movdfcc): Likewise.
15516 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
15517 SFDF2 iterators to handle all combinations.
15518 (fseldfsf4): Likewise.
15519 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
15520 (fseldfdf4): Likewise.
15521 (fselsfdf4): Likewise.
15522 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
15523 comparison instructions that set a 0/-1 mask, and use it for
15524 floating point conditional move via XXSEL.
15525 (fpmask<mode>): Likewise.
15526 (xxsel<mode>): Likewise.
15527 * config/rs6000/predicates.md (min_max_operator): Delete, no
15529 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
15530 instructions that generate a 0/-1 mask for use with XXSEL.
15531 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
15532 say whether floating point min/max is available, either through
15533 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
15534 (TARGET_MINMAX_DF): Likewise.
15536 2016-05-27 Alan Modra <amodra@gmail.com>
15538 PR rtl-optimization/71275
15539 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
15540 for update_equiv_regs and combine_and_move_insns.
15542 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
15544 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
15545 if_then_else or cond RTXes to calculate attribute value.
15546 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
15547 <attr "length_immediate>: Ditto.
15548 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
15549 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
15550 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
15551 <attr "type">: Ditto.
15552 <attr "prefix_data16">: Ditto.
15553 <attr "prefix_extra">: Ditto.
15554 <attr "length_immediate">: Ditto.
15555 <attr "prefix">: Ditto.
15556 (vec_set<mode>_0) <attr "isa">: Ditto.
15557 <attr "prefix_extra">: Ditto.
15558 <attr "length_immediate">: Ditto.
15559 <attr "prefix">: Ditto.
15560 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
15561 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
15562 (sse2_storelpd) <attr "prefix_data16">: Ditto.
15563 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
15564 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
15565 <attr "length_immediate">: Ditto.
15566 <attr "prefix">: Ditto.
15567 (sse2_movsd) <attr "length_immediate">: Ditto.
15568 <attr "prefix">: Ditto.
15569 (vec_concatv2df) <attr "isa">: Ditto.
15570 <attr "prefix">: Ditto.
15571 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
15572 (*vec_extractv2di_1) <attr "isa">: Ditto.
15573 <attr "type">: Ditto.
15574 <attr "length_immediate">: Ditto.
15575 <attr "prefix_rex">: Ditto.
15576 <attr "prefix_extra">: Ditto.
15577 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
15578 <attr "prefix_extra">: Ditto.
15579 <attr "length_immediate">: Ditto.
15580 (vec_concatv2di) <attr "isa">: Ditto.
15581 <attr "prefix_extra">: Ditto.
15582 <attr "length_immediate">: Ditto.
15583 <attr "prefix">: Ditto.
15585 2016-05-26 Martin Liska <mliska@suse.cz>
15587 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
15589 (operator+): Likewise.
15590 (operator-): Likewise.
15591 (comp_cost::operator+=): Likewise.
15592 (comp_cost::operator-=): Likewise.
15593 (comp_cost::operator/=): Likewise.
15594 (comp_cost::operator*=): Likewise.
15595 (operator<): Likewise.
15596 (operator==): Likewise.
15597 (operator<=): Likewise.
15598 (new_cost): Remove.
15599 (infinite_cost_p): Likewise.
15600 (add_costs): Likewise.
15601 (sub_costs): Likewise.
15602 (compare_costs): Likewise.
15603 (set_group_iv_cost): Use the newly introduced functions.
15604 (get_address_cost): Likewise.
15605 (get_shiftadd_cost): Likewise.
15606 (force_expr_to_var_cost): Likewise.
15607 (split_address_cost): Likewise.
15608 (ptr_difference_cost): Likewise.
15609 (difference_cost): Likewise.
15610 (get_computation_cost_at): Likewise.
15611 (determine_group_iv_cost_generic): Likewise.
15612 (determine_group_iv_cost_address): Likewise.
15613 (determine_group_iv_cost_cond): Likewise.
15614 (autoinc_possible_for_pair): Likewise.
15615 (determine_group_iv_costs): Likewise.
15616 (cheaper_cost_pair): Likewise.
15617 (iv_ca_recount_cost): Likewise.
15618 (iv_ca_set_no_cp): Likewise.
15619 (iv_ca_set_cp): Likewise.
15620 (iv_ca_cost): Likewise.
15621 (iv_ca_new): Likewise.
15622 (iv_ca_dump): Likewise.
15623 (iv_ca_narrow): Likewise.
15624 (iv_ca_prune): Likewise.
15625 (iv_ca_replace): Likewise.
15626 (try_add_cand_for): Likewise.
15627 (try_improve_iv_set): Likewise.
15628 (find_optimal_iv_set): Likewise.
15630 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
15632 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
15633 that internal functions will clobber all caller-saved registers.
15635 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15637 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
15638 Return a better case_values_threshold when optimizing.
15640 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
15642 * config/aarch64/aarch64-simd.md (aarch64_combinez):
15643 Add ? to integer variant.
15644 (aarch64_combinez_be): Likewise.
15646 2016-05-26 Jakub Jelinek <jakub@redhat.com>
15648 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15649 instead of x constraint.
15650 (vcvtps2ph256<mask_name>): Likewise.
15652 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
15653 alternative. Formatting fix.
15655 * config/i386/sse.md
15656 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
15658 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
15659 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
15660 maybe_evex prefix instead of vex.
15661 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
15662 EXT_REX_SSE_REG_P (op0) case in the splitter.
15664 2016-05-25 Jeff Law <law@redhat.com>
15666 PR tree-optimization/71272
15667 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
15668 Update comments. Add test for empty path.
15670 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15672 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
15673 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
15674 special case builtin.
15675 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15676 code for ALTIVEC_BUILTIN_VEC_CMPNE.
15677 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15678 for __builtin_vec_cmpne.
15680 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
15682 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
15683 redundant test and bail out if the type of the new operand is not
15684 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
15686 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15688 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
15689 (x_ix86_target_flags_explicit): Remove.
15690 * config/i386/i386.c (ix86_function_specific_save): Do not copy
15691 x_ix86_target_flags_explicit.
15692 (ix86_function_specific_restore): Ditto.
15694 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
15695 H.J. Lu <hongjiu.lu@intel.com>
15698 * common/config/i386/i386-common.c
15699 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
15700 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
15701 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
15702 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
15703 (-mgeneral-regs-only): Add new option.
15704 * config/i386/i386.c (ix86_option_override_internal): Don't enable
15705 x87 instructions if only general registers are allowed.
15706 (ix86_target_string): Add ix86_flags argument. Handle additional
15707 flags options through ix86_flags argument. Update all callers.
15708 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
15710 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15712 PR rtl-optimization/66940
15713 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
15714 decrementing desired_val will not overflow before performing these
15717 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
15719 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
15720 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
15721 * config/i386/i386.c (enum ix86_builtins): Add
15722 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
15723 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
15724 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
15725 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
15726 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
15727 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
15728 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
15729 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
15730 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
15731 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
15732 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
15733 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
15734 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
15735 __builtin_ia32_cvtps2dq512_mask.
15736 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
15737 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
15738 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
15739 * config/i386/sse.md
15740 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
15742 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
15743 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
15745 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
15746 (avx512f_vec_pack_sfix_v8df): New define_expand.
15747 (avx512f_roundpd512): Rename to ...
15748 (avx512f_round<castmode>512): ... this. Change iterator.
15749 (avx512f_roundps512_sfix): New define_expand.
15750 (round<mode>2_sfix): Change iterator.
15752 2016-05-25 Nick Clifton <nickc@redhat.com>
15754 * config/msp430/msp430.c (msp430_attr): Produce an error if a
15755 static interrupt handler is detected.
15756 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
15757 default linker script.
15758 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
15759 the low part of a symbolic pointer.
15761 2016-05-25 Richard Biener <rguenther@suse.de>
15763 PR tree-optimization/71261
15764 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
15765 interesting stmt instead of immediate uses when looking
15766 for the use operand to replace.
15768 2016-05-25 Martin Liska <mliska@suse.cz>
15770 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
15772 2016-05-25 Richard Biener <rguenther@suse.de>
15774 PR tree-optimization/71264
15775 * tree-vect-stmts.c (vect_init_vector): Properly deal with
15778 2016-05-25 Martin Liska <mliska@suse.cz>
15780 PR tree-optimization/71239
15781 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
15782 if DECL_SIZE is NULL.
15784 2016-05-25 Richard Biener <rguenther@suse.de>
15786 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
15787 * tree-if-conv.c (pass_data_if_conversion): Use it.
15789 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
15791 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
15792 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
15793 * varpool.c (varpool_node::get_availability): Likewise.
15795 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15797 * config/rs6000/altivec.md (VNEG iterator): New iterator for
15798 VNEGW/VNEGD instructions.
15799 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
15800 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
15801 support for ISA 3.0 VNEGW/VNEGD instructions.
15803 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
15805 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
15806 pointers inside OACC_DATA regions.
15807 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
15808 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
15809 (gimplify_adjust_omp_clauses): Fix typo in comment.
15811 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15813 * config/rs6000/altivec.md (VParity): New mode iterator for vector
15814 parity built-in functions.
15815 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
15817 (p9v_parity<mode>2): Likewise.
15818 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
15820 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
15821 (parity<mode>2): ISA 3.0 expander for vector parity.
15822 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
15824 (BU_P9_64BIT_MISC_0): Likewise.
15825 (BU_P9_MISC_0): Likewise.
15826 (BU_P9V_AV_1): Likewise.
15827 (BU_P9V_AV_2): Likewise.
15828 (BU_P9V_AV_3): Likewise.
15829 (BU_P9V_AV_P): Likewise.
15830 (BU_P9V_VSX_1): Likewise.
15831 (BU_P9V_OVERLOAD_1): Likewise.
15832 (BU_P9V_OVERLOAD_2): Likewise.
15833 (BU_P9V_OVERLOAD_3): Likewise.
15834 (VCTZB): Add vector count trailing zeros support.
15838 (VPRTYBD): Add vector parity support.
15839 (VPRTYBQ): Likewise.
15840 (VPRTYBW): Likewise.
15841 (VCTZ): Add overloaded vector count trailing zeros support.
15842 (VPRTYB): Add overloaded vector parity support.
15843 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15844 overloaded vector count trailing zeros and parity instructions.
15845 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
15846 vector parity support.
15847 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
15848 trailing zeros support.
15849 (vec_cntlz): Likewise.
15850 (vec_vctzb): Likewise.
15851 (vec_vctzd): Likewise.
15852 (vec_vctzh): Likewise.
15853 (vec_vctzw): Likewise.
15854 (vec_vprtyb): Add ISA 3.0 vector parity support.
15855 (vec_vprtybd): Likewise.
15856 (vec_vprtybw): Likewise.
15857 (vec_vprtybq): Likewise.
15858 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15859 the ISA 3.0 vector count trailing zeros and vector parity built-in
15862 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15864 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
15865 when there is stmt_to_insert.
15867 2016-05-24 Martin Sebor <msebor@redhat.com>
15870 * tree.h (complete_or_array_type_p): New inline function.
15872 2016-05-24 Jakub Jelinek <jakub@redhat.com>
15874 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
15875 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
15876 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
15878 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
15879 Limit 1st alternative to noavx isa, split 2nd alternative into one
15880 noavx and one avx alternative, use *x and Bm in the former and
15881 x and m in the latter.
15883 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
15884 of sse4 for the first alternative, drop %v from the template
15885 and d operand modifier. Split second alternative into one sse4_noavx
15886 and one avx alternative, use *x instead of *v in the former and v
15887 instead of *v in the latter.
15888 (*sse4_1_extractps): Use noavx isa instead of * for the first
15889 alternative, drop %v from the template. Split second alternative into
15890 one noavx and one avx alternative, use *x instead of *v in the
15891 former and v instead of *v in the latter.
15892 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
15893 with noavx and the last one with avx.
15894 (sse4_1_phminposuw): Guard first alternative with noavx isa,
15895 split the second one into one noavx and one avx alternative,
15896 use *x and Bm in the former and x and m in the latter one.
15897 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
15900 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
15901 first two alternatives to noavx, use *x instead of *v in the second
15902 one, add avx alternative without *.
15903 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
15904 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
15905 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
15907 2016-05-24 Jeff Law <law@redhat.com>
15909 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
15910 New function, extracted from...
15911 (fsm_find_control_statement_thread_paths): Here. Use the new function.
15912 Allow simple copies and constant initializations in the SSA chain.
15914 2016-05-24 Marek Polacek <polacek@redhat.com>
15917 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
15920 2016-05-24 Jakub Jelinek <jakub@redhat.com>
15923 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
15924 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
15925 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
15926 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
15927 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
15929 2016-05-24 Richard Biener <rguenther@suse.de>
15931 PR tree-optimization/71240
15932 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
15935 2016-05-24 Richard Biener <rguenther@suse.de>
15937 PR tree-optimization/71230
15938 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
15940 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
15942 * tree-vectorizer.h (vectorizable_comparison): Delete.
15943 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
15944 PURE_SLP_STMT check.
15945 * tree-vect-stmts.c (vectorizable_call): Likewise.
15946 (vectorizable_simd_clone_call): Likewise.
15947 (vectorizable_conversion): Likewise.
15948 (vectorizable_assignment): Likewise.
15949 (vectorizable_shift): Likewise.
15950 (vectorizable_operation): Likewise.
15951 (vectorizable_load): Likewise.
15952 (vectorizable_condition): Likewise.
15953 (vectorizable_store): Likewise. Assert that we don't have
15955 (vectorizable_comparison): Make static. Remove redundant
15956 PURE_SLP_STMT check.
15957 (vect_transform_stmt): Assert that we always have an slp_node
15960 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15962 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
15963 operands[2] against 1 with comparison against CONST1_RTX.
15964 (<shift>di3_neon): Likewise.
15965 * config/arm/predicates.md (const0_operand): Replace with comparison
15966 against CONST0_RTX.
15968 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15970 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
15971 operands[2] against 1 with comparison against CONST1_RTX.
15972 (ashrdi3): Likewise.
15973 (lshrdi3): Likewise.
15974 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
15976 (ashrsi3): Likewise.
15977 (lshrsi3): Likewise.
15978 (rotrsi3): Likewise.
15979 (define_split above *compareqi_eq0): Likewise.
15980 (define_split above "prologue"): Likewise.
15981 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
15982 * config/arm/predicates.md (shift_operator): Likewise.
15983 (shift_nomul_operator): Likewise.
15984 (sat_shift_operator): Likewise.
15985 (thumb1_cmp_operand): Likewise.
15986 (const_neon_scalar_shift_amount_operand): Replace manual range
15987 check with IN_RANGE.
15988 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
15989 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
15991 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15993 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
15994 with HOST_WIDE_INT_1.
15996 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
15997 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
15998 (arm_canonicalize_comparison): Likewise.
15999 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
16001 (thumb1_size_rtx_costs): Likewise.
16002 (vfp_const_double_index): Replace cast of 1 to unsigned
16003 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16004 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
16006 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
16007 HOST_WIDE_INT with HOST_WIDE_INT_1U.
16008 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
16009 HOST_WIDE_INT with HOST_WIDE_INT_1.
16011 2016-05-24 Marek Polacek <polacek@redhat.com>
16013 * tree-cfg.h (should_remove_lhs_p): New predicate.
16014 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16015 * gimplify.c (gimplify_modify_expr): Likewise.
16016 * tree-cfg.c (verify_gimple_call): Likewise.
16017 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16018 * gimple-fold.c: Include "tree-cfg.h".
16019 (gimple_fold_call): Use should_remove_lhs_p.
16021 2016-05-24 Richard Biener <rguenther@suse.de>
16023 PR tree-optimization/71253
16024 * cfganal.h (control_dependences): Make robust against edge
16026 (control_dependences::control_dependences): Remove edge_list argument.
16027 (control_dependences::get_edge): Remove.
16028 (control_dependences::get_edge_src): Add.
16029 (control_dependences::get_edge_dest): Likewise.
16030 (control_dependences::m_el): Make a vector of edge src/dest index.
16031 * cfganal.c (control_dependences::find_control_dependence): Adjust.
16032 (control_dependences::control_dependences): Likewise.
16033 (control_dependences::~control_dependence): Likewise.
16034 (control_dependences::get_edge): Remove.
16035 (control_dependences::get_edge_src): Add.
16036 (control_dependences::get_edge_dest): Likewise.
16037 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
16039 (perform_tree_ssa_dce): Adjust.
16040 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
16042 (pass_loop_distribution::execute): Adjust. Do loop destroying
16043 conditional on changed.
16045 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16048 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
16049 return. Reindent transformation comment and mention the ARM state
16052 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16054 PR middle-end/71252
16055 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
16056 after build_and_add_sum creates new use stmt.
16058 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16060 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
16061 load_lanes/grouped_load classification comes first. Don't check
16062 whether the vectorization factor is a multiple of the group size
16065 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
16067 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
16068 GROUP_GAP for single-element interleaving.
16069 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
16072 2016-05-24 Richard Biener <rguenther@suse.de>
16074 PR middle-end/70434
16076 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
16077 bases which are accessed with non-invariant indices.
16078 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
16079 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
16081 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16083 PR middle-end/71170
16084 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
16085 (add_to_ops_vec): Add stmt_to_insert.
16086 (add_repeat_to_ops_vec): Init stmt_to_insert.
16087 (insert_stmt_before_use): New.
16088 (transform_add_to_multiply): Remove mult_stmt insertion and add it
16090 (get_ops): Init stmt_to_insert.
16091 (maybe_optimize_range_tests): Likewise.
16092 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
16093 (rewrite_expr_tree_parallel): Likewise.
16094 (reassociate_bb): Likewise.
16096 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16099 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
16100 ISA 3.0 xxperm fusion alternative.
16101 (altivec_vperm_v8hiv16qi): Likewise.
16102 (altivec_vperm_<mode>_uns_internal): Likewise.
16103 (vperm_v8hiv4si): Likewise.
16104 (vperm_v16qiv8hi): Likewise.
16106 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16107 Kelvin Nilsen <kelvin@gcc.gnu.org>
16109 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
16110 vpermr/xxpermr on ISA 3.0.
16111 (altivec_expand_vec_perm_le): Likewise.
16112 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
16113 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
16116 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
16118 * config/i386/i386.h (IS_STACK_MODE): Enable for
16119 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
16120 SSE_FLOAT_MODE_P macros.
16121 * config/i386/i386.c (ix86_preferred_reload_class): Use
16122 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
16123 Cleanup regclass processing for CONST_DOUBLE_P.
16124 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
16125 (ix86_rtx_costs): Remove redundant TARGET_80387 check
16126 with IS_STACK_MODE macro.
16127 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
16129 (*movdf_internal): Use IS_STACK_MODE macro.
16130 (*movsf_internal): Ditto.
16132 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
16134 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
16135 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
16137 2016-05-23 Jeff Law <law@redhat.com>
16139 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
16141 (fsm_find_control_statement_thread_paths): Call it.
16143 2016-05-23 Martin Jambor <mjambor@suse.cz>
16146 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
16147 from_global_constant if t is not NULL.
16149 2016-05-23 Marek Polacek <polacek@redhat.com>
16152 * common.opt (Wswitch-unreachable): New option.
16153 * doc/invoke.texi: Document -Wswitch-unreachable.
16154 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
16157 2016-05-23 Bin Cheng <bin.cheng@arm.com>
16159 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
16160 TMR_INDEX is non-NULL.
16162 2016-05-23 Richard Biener <rguenther@suse.de>
16164 PR tree-optimization/71230
16165 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
16166 (try_special_add_to_ops): ... here. Always test for single-use.
16168 2016-05-23 Martin Jambor <mjambor@suse.cz>
16170 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
16171 default block if a PHI node in the original one would be resized.
16173 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16175 PR tree-optimization/58135
16176 * tree-vect-slp.c: When group size is not multiple
16177 of vector size, allow splitting of store group at
16180 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
16182 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
16184 2016-05-22 Jakub Jelinek <jakub@redhat.com>
16186 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16187 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
16188 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
16191 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
16192 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
16193 v constraint instead of x and vinserti32x4 insn.
16195 * config/i386/sse.md (i128vldq): New mode iterator.
16196 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
16197 avx512dq and avx512vl alternatives.
16199 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
16200 constraint, use maybe_evex prefix instead of vex.
16201 (vec_dupv4sf): Use v constraint instead of x for output
16202 operand except for noavx alternative, use Yv constraint
16203 instead of x for input. Use maybe_evex prefix instead of vex.
16204 (*vec_dupv4si): Likewise.
16205 (*vec_dupv2di): Likewise.
16207 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16209 PR middle-end/40921
16210 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
16211 (linearize_expr_tree): Call try_special_add_to_ops.
16212 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
16214 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16216 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
16217 to computed stack_usage.
16219 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16222 * config/avr/avr.md (define_expand "mov<mode>"): If the source
16223 operand is subreg (symbol_ref) then move the symbol ref to register.
16225 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
16227 * tree.c (array_at_struct_end_p): Look through MEM_REF.
16229 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
16231 PR middle-end/71179
16232 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
16235 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16237 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
16238 ranges by calling get_single_symbol and tidy up. Look more closely
16239 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
16241 2016-05-20 Jeff Law <law@redhat.com>
16243 * bitmap.c (bitmap_find_bit): Remove useless test.
16245 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
16247 * function.c (thread_prologue_and_epilogue_insns): Commit the
16248 insertion of the epilogue.
16250 2016-05-20 Martin Jambor <mjambor@suse.cz>
16252 PR tree-optimization/70884
16253 * tree-sra.c (initialize_constant_pool_replacements): Do not check
16254 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
16255 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
16256 of constant pool data as a reason for scalarization.
16258 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
16260 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
16261 for naked functions.
16262 (thumb1_expand_prologue): Likewise.
16264 2016-05-20 Nathan Sidwell <nathan@acm.org>
16266 * config/nvptx/nptx.c (nvptx_option_override): Only set
16267 flag_toplevel_reorder, if not explicitly specified. Set
16268 flag_no_common, unless explicitly specified.
16270 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16272 * calls.c (can_implement_as_sibling_call_p): Mark param
16273 reg_parm_stack_space with ATTRIBUTE_UNUSED.
16275 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
16277 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
16278 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
16279 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
16281 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
16282 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
16283 and CASE_CONST_ANY.
16285 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
16287 * config/nvptx/nvptx.md (sincossf3): New pattern.
16289 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16291 * calls.c (maybe_complain_about_tail_call): New function.
16292 (initialize_argument_information): Call
16293 maybe_complain_about_tail_call when clearing *may_tailcall.
16294 (can_implement_as_sibling_call_p): Call
16295 maybe_complain_about_tail_call when returning false.
16296 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
16297 ensure try_tail_call is set. Call maybe_complain_about_tail_call
16298 if tail-call optimization fails.
16299 * cfgexpand.c (expand_call_stmt): Initialize
16300 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
16301 * gimple-pretty-print.c (dump_gimple_call): Dump
16302 gimple_call_must_tail_p.
16303 * gimple.c (gimple_build_call_from_tree): Call
16304 gimple_call_set_must_tail with the value of
16305 CALL_EXPR_MUST_TAIL_CALL.
16306 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
16307 (gimple_call_set_must_tail): New function.
16308 (gimple_call_must_tail_p): New function.
16309 * print-tree.c (print_node): Update printing of TREE_STATIC
16310 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
16311 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
16312 trailing comment listing applicable flags.
16313 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
16315 2016-05-20 David Malcolm <dmalcolm@redhat.com>
16317 * calls.c (expand_call): Move "Rest of purposes for tail call
16318 optimizations to fail" to...
16319 (can_implement_as_sibling_call_p): ...this new function, and
16320 split into multiple "if" statements.
16322 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16324 * cfgloop.h (expected_loop_iterations_unbounded,
16325 expected_loop_iterations): Unconstify.
16326 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
16327 profile with known upper bound; return 3 when profile is absent.
16328 (expected_loop_iterations): Update.
16330 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16332 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
16333 and get_max_loop_iterations_int.
16335 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
16337 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
16338 realistic upper bounds here.
16340 2016-05-20 Jakub Jelinek <jakub@redhat.com>
16343 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
16344 calls if the LHS is variable length or has addressable type.
16345 If targets[0]->decl is a noreturn call with void return type and
16346 zero arguments, adjust fntype and remove lhs in that case.
16348 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
16350 PR tree-optimization/71079
16351 PR tree-optimization/71206
16352 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
16354 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16356 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
16357 (get_vec_alignment_for_array_decl): Likewise.
16358 (get_vec_alignment_for_record_decl): Likewise.
16359 (increase_alignment::execute): Move code to find alignment to
16360 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
16361 (type_align_map): New hash_map.
16363 2016-05-20 Richard Guenther <rguenther@suse.de>
16365 PR tree-optimization/29756
16366 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
16367 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
16368 * fold-const.c (operand_equal_p): Likewise.
16369 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
16370 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
16371 * tree-inline.c (estimate_operator_cost): Likewise.
16372 * tree-pretty-print.c (dump_generic_node): Likewise.
16373 * tree-ssa-operands.c (get_expr_operands): Likewise.
16374 * cfgexpand.c (expand_debug_expr): Likewise.
16375 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16376 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
16377 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
16378 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
16379 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
16380 (execute_update_addresses_taken): Do it.
16382 2016-05-20 Richard Biener <rguenther@suse.de>
16384 PR tree-optimization/71185
16385 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
16386 register operations.
16388 2016-05-20 Richard Biener <rguenther@suse.de>
16390 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
16391 gimple_seq_add_seq_without_update.
16392 (release_bb_predicate): Assert we have no operands to free.
16393 (if_convertible_loop_p_1): Calculate post dominators later.
16394 Do not free BB predicates here.
16395 (combine_blocks): Do not recompute BB predicates.
16396 (version_loop_for_if_conversion): Save BB predicates around
16399 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16401 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
16402 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
16403 code. Ignore sibcalls on EDGE_IGNORE edges.
16404 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
16405 on edges for sibcalls that run without prologue. The rest of the
16406 function is combined from...
16407 (fix_fake_fallthrough_edge): ... this, and ...
16408 (try_shrink_wrapping): ... a part of this. Remove the bb_with
16409 function argument, make it a local variable.
16411 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
16413 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
16414 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
16415 for 32-bit mode and SEH for 64-bit.
16416 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
16417 TARGET_64BIT_DEFAULT.
16419 2016-05-19 Ryan Burn <contact@rnburn.com>
16421 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
16422 * gengtype.c (open_base_files): Add cilk.h to ifiles.
16424 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
16426 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
16427 force pending loads from memory.
16429 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
16431 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
16432 (UNSPEC_DARN_32): New unspec constant.
16433 (UNSPEC_DARN_RAW): New unspec constant.
16434 (darn_32): New instruction.
16435 (darn_raw): New instruction.
16436 (darn): New instruction.
16437 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
16438 support and documentation for this macro.
16439 (BU_P9_MISC_1): New macro definition.
16440 (BU_P9_64BIT_MISC_0): New macro definition.
16441 (BU_P9_MISC_0): New macro definition.
16442 (darn_32): New builtin definition.
16443 (darn_raw): New builtin definition.
16444 (darn): New builtin definition.
16445 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
16446 RS6000_BUILTIN_0 directives to surround each occurrence of
16447 #include "rs6000-builtin.def".
16448 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
16449 RS6000_BTM_64BIT flags to the returned mask, depending on
16451 (def_builtin): Correct an error in the assignments made to the
16452 debugging variable attr_string.
16453 (rs6000_expand_builtin): Add support for no-operand built-in
16455 (builtin_function_type): Remove fatal_error assertion that is no
16457 (rs6000_common_init_builtins): Add support for no-operand built-in
16459 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
16461 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
16463 (RS6000_BTM_64BIT): New macro definition.
16464 * doc/extend.texi: Document __builtin_darn (void),
16465 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
16468 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
16470 * tree-vect-loop.c (vect_analyze_loop_2): Use also
16471 max_loop_iterations_int.
16473 2016-05-19 Marek Polacek <polacek@redhat.com>
16475 PR tree-optimization/71031
16476 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
16477 condition and adjust the code a bit.
16479 2016-05-19 Martin Liska <mliska@suse.cz>
16481 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
16482 auto_vec instead of vec.
16484 2016-05-19 Martin Liska <mliska@suse.cz>
16486 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
16488 2016-05-19 Martin Liska <mliska@suse.cz>
16490 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
16492 2016-05-19 Martin Liska <mliska@suse.cz>
16494 * ipa-pure-const.c (set_function_state): Remove an existing
16496 (remove_node_data): Do not free it as it's released
16497 in set_function_state.
16499 2016-05-19 Martin Liska <mliska@suse.cz>
16501 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
16504 2016-05-19 Martin Liska <mliska@suse.cz>
16506 * omp-simd-clone.c (simd_clone_adjust): Release vector.
16508 2016-05-19 Martin Liska <mliska@suse.cz>
16510 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
16511 an auto_vec instead of re-creating it.
16513 2016-05-19 Martin Liska <mliska@suse.cz>
16515 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
16516 auto_vec instead of vec.
16518 2016-05-19 Martin Liska <mliska@suse.cz>
16520 * lto-section-in.c (lto_get_section_data): Call
16521 lto_check_version with additional argument.
16522 * lto-streamer.c (lto_check_version): Add new argument.
16523 * lto-streamer.h (lto_check_version): Likewise.
16525 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16527 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
16528 Don't add cost of inner memory when handling sign-extended loads.
16530 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
16532 PR rtl-optimization/71148
16533 * cse.c (cse_main): Free dominance info.
16534 (rest_of_handle_cse): Don't free dominance info.
16535 (rest_of_handle_cse2): Likewise.
16536 (rest_of_handle_cse_after_global_opts): Likewise.
16538 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16541 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
16542 NULL_TREE early if NEON is not available. Remove now redundant check
16543 in ARM_CHECK_BUILTIN_MODE.
16545 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
16548 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
16549 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
16550 * doc/cpp.texi: Document new macros.
16552 2016-05-19 Bin Cheng <bin.cheng@arm.com>
16554 PR tree-optimization/69848
16555 * tree-vect-loop.c (vectorizable_reduction): Don't factor
16556 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
16558 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16560 * function.c (thread_prologue_and_epilogue_insn): Move the
16561 "goto epilogue_done" one block later.
16563 2016-05-19 Richard Biener <rguenther@suse.de>
16565 PR tree-optimization/70729
16566 * passes.def: Move LIM pass before PRE. Remove no longer
16567 required copyprop and move first DCE out of the loop pipeline.
16569 2016-05-18 David Malcolm <dmalcolm@redhat.com>
16572 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
16573 (OBJS-libcommon-target): ...here.
16574 * opts-common.c: Include spellcheck.h.
16575 (cmdline_handle_error): Build a vec of valid options and use it
16576 to suggest provide hints for misspelled arguments.
16578 2016-05-18 Jakub Jelinek <jakub@redhat.com>
16581 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
16582 lhs if it has TREE_ADDRESSABLE type.
16584 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
16587 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
16588 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
16590 2016-05-18 Martin Jambor <mjambor@suse.cz>
16593 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
16594 input for NOP_EXPR pass-through functions.
16595 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
16596 aggregate global constant VAR_DECLs in constant jump functions.
16598 2016-05-18 Martin Jambor <mjambor@suse.cz>
16601 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
16602 from TREE_READONLY parameters.
16604 2016-05-18 Martin Jambor <mjambor@suse.cz>
16607 * cgraph.h (cgraph_indirect_call_info): New field
16608 guaranteed_unmodified.
16609 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
16610 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16612 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
16613 pass the parameter value to ipa_find_agg_cst_for_param.
16614 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
16615 guaranteed_unmodified, store AA results there instead of bailing out
16617 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
16618 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
16619 (find_constructor_constant_at_offset): New function.
16620 (ipa_find_agg_cst_from_init): Likewise.
16621 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
16622 static initializers of contants, report back through a new paameter
16623 from_global_constant if that was the case.
16624 (try_make_edge_direct_simple_call): Also pass parameter value to
16625 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16627 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
16628 (ipa_read_indirect_edge_info): Likewise.
16629 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
16630 (ipa_load_from_parm_agg): Likewise.
16632 2016-05-18 Jiong Wang <jiong.wang@arm.com>
16634 PR rtl-optimization/71150
16635 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
16638 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16641 * config/rs6000/constraints.md (wE constraint): New constraint
16642 for a vector constant that can be loaded with XXSPLTIB.
16643 (wM constraint): New constraint for a vector constant of a 1's.
16644 (wS constraint): New constraint for a vector constant that can be
16645 loaded with XXSPLTIB and a vector sign extend instruction.
16646 * config/rs6000/predicates.md (xxspltib_constant_split): New
16647 predicates for wE/wS constraints.
16648 (xxspltib_constant_nosplit): Likewise.
16649 (easy_vector_constant): Add support for constants that can be
16650 loaded via XXSPLTIB.
16651 (all_ones_constant): New predicate for vector constant with all
16653 (splat_input_operand): Add support for ISA 3.0 word splat operations.
16654 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
16655 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
16656 instruction and possibly with a sign extension.
16657 (output_vec_const_move): Add support for XXSPLTIB. If we are
16658 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
16659 instead of XXLXOR/XXLORC.
16660 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
16662 (rs6000_legitimize_reload_address): Likewise.
16663 (rs6000_output_move_128bit): Use output_vec_const_move to emit
16665 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
16666 combine VSX_M and VSX_M2 into one iterator.
16667 (VSX_M2): Likewise.
16668 (VSINT_84): New iterators for loading constants with XXSPLTIB.
16669 (VSINT_842): Likewise.
16670 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
16671 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
16672 XXSPLTIB instruction.
16673 (xxspltib_<mode>_nosplit): Likewise.
16674 (xxspltib_<mode>_split): New insn to load up constants with
16675 XXSPLTIB and a sign extend instruction.
16676 (vsx_mov<mode>): Replace single move that handled all vector types
16677 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
16678 moves (when -mvsx-timode is in effect) into the main vector
16679 moves. Eliminate separate moves for <VSr> <VSa>, where the
16680 preferred register class (<VSr>) is listed first, and the
16681 secondary register class (<VSa>) is listed second with a '?' to
16682 discourage use. Prefer loading 0/-1 in any VSX register for ISA
16683 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
16684 that if the register was involved in a slow operation, the
16685 clear/set operation does not wait for the slow operation to
16686 finish. Adjust the length attributes for 32-bit mode. Use
16687 rs6000_output_move_128bit and drop the use of the string
16688 instructions for 32-bit movti when -mvsx-timode is in effect. Use
16689 spacing so that the alternatives and attributes don't generate
16690 long lines, and put things in columns, so that it is easier to
16691 match up the operands and attributes with the insn alternatives.
16692 (vsx_mov<mode>_64bit): Likewise.
16693 (vsx_mov<mode>_32bit): Likewise.
16694 (vsx_movti_64bit): Fold movti into normal vector moves.
16695 (vsx_movti_32bit): Likewise.
16696 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
16697 splat instructions.
16698 (vsx_splat_v4si_internal): Likewise.
16699 (vsx_splat_v4sf_internal): Likewise.
16700 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
16701 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
16702 extend vector elements.
16703 (vsx_sign_extend_hi_<mode>): Likewise.
16704 (vsx_sign_extend_si_v2di): Likewise.
16705 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
16707 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
16708 constraints. Add trailing period to wL documentation.
16710 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
16712 PR middle-end/71020
16713 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
16714 * tree-dfa.c (replace_abnormal_ssa_names): New function.
16715 * tree-call-cdce.c: Include tree-dfa.h.
16716 (can_guard_call_p): New function, extracted from...
16717 (can_use_internal_fn): ...here.
16718 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
16720 (shrink_wrap_one_built_in_call): Likewise.
16721 (use_internal_fn): Likewise.
16722 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
16723 and return void. Call replace_abnormal_ssa_names.
16724 (pass_call_cdce::execute): Check can_guard_call_p during the
16725 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
16726 will always change something.
16728 2016-05-18 Martin Jambor <mjambor@suse.cz>
16731 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
16732 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
16734 2016-05-18 Martin Jambor <mjambor@suse.cz>
16737 * ipa-inline.h (condition): New field size.
16738 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
16739 for comaprison and store it into the new condition.
16740 (evaluate_conditions_for_known_args): Use condition size to check
16741 access sizes for all but CHANGED conditions.
16742 (unmodified_parm_1): New parameter size_p, store access size into it.
16743 (unmodified_parm): Likewise.
16744 (unmodified_parm_or_parm_agg_item): Likewise.
16745 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
16746 (set_cond_stmt_execution_predicate): Extract access sizes and store
16747 them to conditions.
16748 (set_switch_stmt_execution_predicate): Likewise.
16749 (will_be_nonconstant_expr_predicate): Likewise.
16750 (will_be_nonconstant_predicate): Likewise.
16751 (inline_read_section): Stream condition size.
16752 (inline_write_summary): Likewise.
16754 2016-05-18 Richard Biener <rguenther@suse.de>
16756 * tree-ssa-loop-im.c (determine_max_movement): Properly add
16757 condition cost to PHI cost instead of total_cost.
16759 2016-05-18 Martin Liska <mliska@suse.cz>
16762 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
16765 2016-05-18 Richard Biener <rguenther@suse.de>
16767 * lto-streamer.h (LTO_major_version): Bump to 6.
16769 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
16771 * function.c (make_split_prologue_seq, make_prologue_seq,
16772 make_epilogue_seq): New functions, factored out from...
16773 (thread_prologue_and_epilogue_insns): Here.
16775 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
16777 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16778 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
16779 of before. Add a comment.
16781 2016-05-18 Bin Cheng <bin.cheng@arm.com>
16783 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
16784 expression pointer, not pointer to the pointer.
16786 2016-05-18 Jakub Jelinek <jakub@redhat.com>
16788 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
16789 (avx2_pbroadcast<mode>): Add another alternative with v instead
16790 of x constraints in it, using <pbroadcast_evex_isa> isa.
16791 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
16793 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
16794 constraint x instead of v in second alternative, add avx512bw
16797 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
16798 constraint x instead of v in second alternative, add avx512bw
16801 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
16802 constraint x instead of v in second alternative, add avx512bw
16805 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
16806 avx512bw alternative.
16808 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
16810 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
16811 array to 128 chars.
16812 (define_insn "*andnottf3"): Ditto.
16813 (define_insn "*<code><mode>3"/any_logic): Ditto.
16814 (define_insn "*<code>tf3"/any_logic): Ditto.
16815 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
16816 operand to block AVX-512VL insn variant emit when it is not enabled.
16818 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
16820 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
16821 constraint fot SF mode.
16823 2016-05-18 Petr Murzin <petr.murzin@intel.com>
16824 Kirill Yukhin <kirill.yukhin@intel.com>
16826 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
16828 (define_insn "rsqrt14<mode>"): Ditto.
16829 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
16830 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16831 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
16832 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16833 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
16835 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
16836 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
16837 * config/i386/i386.c (ix86_print_operand): Expand check for size
16838 override codes for Intel syntax.
16840 2016-05-18 Richard Biener <rguenther@suse.de>
16842 PR tree-optimization/71168
16843 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
16844 initialization earlier.
16846 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
16848 * config/aarch64/aarch64-simd.md
16849 (aarch64_reduc_plus_internal<mode>): Rename to...
16850 (reduc_plus_scal): ...This, and remove previous implementation.
16852 2016-05-18 Richard Biener <rguenther@suse.de>
16854 * passes.def: Put late dse and cd_dce in canonical order.
16856 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
16858 * ipa-inline-transform.c (preserve_function_body_p): Look for
16859 first non-thunk clone.
16860 (save_function_body): Save into first non-thunk.
16861 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
16863 (lto_output_node): Inline thunks don't need body in every
16865 * lto-streamer-in.c: Do not fixup thunk clones.
16866 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
16868 * tree-inline.c (copy_bb): Be prepared for target node to be new after
16871 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16873 PR middle-end/63586
16874 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
16875 (reassociate_bb): Call transform_add_to_multiply.
16877 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16879 * config/aarch64/aarch64.c (all_extensions): Removed unused
16882 2016-05-17 Nathan Sidwell <nathan@acm.org>
16884 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
16885 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
16887 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
16889 PR tree-optimization/54579
16890 PR middle-end/55299
16891 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
16893 2016-05-17 Marek Polacek <polacek@redhat.com>
16896 * tree-inline.c (expand_call_inline): Call
16897 maybe_remove_unused_call_args.
16899 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
16901 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
16902 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
16903 * doc/md.texi (fmin@var{m}3): Likewise.
16905 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16907 * match.pd (X & C): New transformation.
16909 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16911 * match.pd (~X & Y): New transformation.
16913 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
16915 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
16916 information for new SSA_NAME.
16917 (simplify_conversion_using_ranges): Get range through get_range_info
16918 instead of get_value_range.
16920 2016-05-17 Jiong Wang <jiong.wang@arm.com>
16922 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
16923 Remove inline assembly.
16924 (vmvn_s16): Likewise.
16925 (vmvn_s32): Likewise.
16926 (vmvn_u8): Likewise.
16927 (vmvn_u16): Likewise.
16928 (vmvn_u32): Likewise.
16929 (vmvnq_s8): Likewise.
16930 (vmvnq_s16): Likewise.
16931 (vmvnq_s32): Likewise.
16932 (vmvnq_u8): Likewise.
16933 (vmvnq_u16): Likewise.
16934 (vmvnq_u32): Likewise.
16935 (vmvn_p8): Likewise.
16936 (vmvnq_p16): Likewise.
16938 2016-05-17 Jiong Wang <jiong.wang@arm.com>
16940 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
16942 (vmul_n_s16): Likewise.
16943 (vmul_n_s32): Likewise.
16944 (vmul_n_u16): Likewise.
16945 (vmul_n_u32): Likewise.
16946 (vmulq_n_f32): Likewise.
16947 (vmulq_n_f64): Likewise.
16948 (vmulq_n_s16): Likewise.
16949 (vmulq_n_s32): Likewise.
16950 (vmulq_n_u16): Likewise.
16951 (vmulq_n_u32): Likewise.
16953 2016-05-17 Jiong Wang <jiong.wang@arm.com>
16955 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
16956 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
16958 2016-05-17 Jiong Wang <jiong.wang@arm.com>
16960 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
16961 to *aarch64_fma4_elt_from_dup<mode>.
16962 (*aarch64_fnma4_elt_to_128df): Rename to
16963 *aarch64_fnma4_elt_from_dup<mode>.
16964 * config/aarch64/arm_neon.h (vfma_n_f64): New.
16965 (vfms_n_f32): Likewise.
16966 (vfms_n_f64): Likewise.
16967 (vfmsq_n_f32): Likewise.
16968 (vfmsq_n_f64): Likewise.
16970 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
16972 * wide-int.h: Change fixed_wide_int_storage from class to struct.
16974 2016-05-17 Richard Biener <rguenther@suse.de>
16976 PR tree-optimization/71132
16977 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
16978 Only add control dependences for blocks in the loop.
16979 (build_rdg): Adjust.
16980 (generate_code_for_partition): Return whether loop should
16981 be destroyed and delay that.
16982 (distribute_loop): Likewise.
16983 (pass_loop_distribution::execute): Record loops to be destroyed
16984 and perform delayed destroying of loops.
16986 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16989 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
16991 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
16993 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
16995 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
16998 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
16999 insertion point for instructions generated by validize_mem.
17001 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17003 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
17006 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
17008 * config/aarch64/aarch64.c
17009 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
17010 rather than a macro.
17012 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17014 * doc/invoke.texi (AArch64 Options): Various updates.
17016 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17018 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
17019 into instrumentation thunks.
17020 * cif-code.def (CIF_CHKP): New.
17022 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
17024 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
17026 2016-05-16 Martin Jambor <mjambor@suse.cz>
17028 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
17029 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
17031 2016-05-16 Marek Polacek <polacek@redhat.com>
17033 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
17036 2016-05-16 Martin Jambor <mjambor@suse.cz>
17039 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
17040 the outlined kernel function.
17042 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
17044 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
17045 (ISA_HAS_DLSA): Ditto.
17047 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17049 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
17051 2016-05-16 Nathan Sidwell <nathan@acm.org>
17053 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
17054 (nvptx_name_replacement): Restore. Add comment.
17055 (write_fn_proto, write_fn_proto_from_insn,
17056 nvptx_output_call_insn): Restore
17057 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
17059 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17061 * config/aarch64/aarch64.md
17062 (add<mode>3_compareC_cconly_imm): Remove use of %w.
17063 (add<mode>3_compareC_imm): Likewise.
17064 (<optab>si3_uxtw): Split into register and immediate variants.
17065 (andsi3_compare0_uxtw): Likewise.
17066 (and<mode>3_compare0): Likewise.
17067 (and<mode>3nr_compare0): Likewise.
17068 (stack_protect_test_<mode>): Don't use %x for memory operands.
17070 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
17072 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
17074 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
17076 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17077 Split integer shifts into shift_reg and bfm.
17078 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17079 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17080 (ror<mode>3_insn): Likewise.
17081 (<optab>si3_insn_uxtw): Likewise.
17082 (<optab><mode>3_insn): Change to rotate_imm.
17083 (extr<mode>5_insn_alt): Likewise.
17084 (extrsi5_insn_uxtw): Likewise.
17085 (extrsi5_insn_uxtw_alt): Likewise.
17087 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17089 * doc/tm.texi: Regenerate.
17090 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
17091 (TARGET_INVALID_RETURN_TYPE): Remove.
17092 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
17093 TARGET_INVALID_RETURN_TYPE.
17094 * target.def (invalid_parameter_type): Remove.
17095 (invalid_return_type): Remove.
17097 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17099 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
17100 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
17102 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
17104 (preserve_function_body_p): No need to preserve function body
17105 * cif-codes.def (CIF_THUNK): Remove.
17106 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
17108 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17110 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
17112 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17114 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
17117 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17119 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
17120 (inline_small_functions): Do not look for function symbol when
17123 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
17125 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
17128 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17129 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17130 Jiong Wang <jiong.wang@arm.com>
17132 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
17133 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
17134 Define __ARM_FP16_ARGS when appropriate.
17135 * config/arm/arm.c (arm_invalid_parameter_type): Remove
17137 (arm_invalid_return_type): Likewise.
17138 (TARGET_INVALID_PARAMETER_TYPE): Remove.
17139 (TARGET_INVALID_RETURN_TYPE): Remove.
17140 (aapcs_vfp_sub_candidate): Allow HFmode.
17141 (aapcs_vfp_allocate): Add comment. Support HFmode.
17142 (aapcs_vfp_allocate_return_reg): Likewise.
17143 (struct aapcs_cp_arg_layout): Slightly reword comments for
17144 is_return_candidate and allocate_return_reg.
17145 (output_mov_vfp): Update assert.
17146 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
17148 (arm_invalid_parameter_type): Remove.
17149 (amr_invalid_return_type): Remove.
17150 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
17151 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
17152 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
17154 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
17156 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17157 * config/aarch64/arch64-protos.h
17158 (aarch64_legitimize_reload_address): Remove.
17159 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
17162 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
17164 * configure.ac: Add ACX_NONCANONICAL_HOST.
17165 * configure: Regenerate.
17166 * Makefile.in: Set host_noncanonical.
17168 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
17171 * config/i386/i386.md (*movtf_internal): Before register allocation,
17172 do not allow FP constants for CM_MEDIUM memory model, allow only
17173 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
17174 (*movxf_internal): Ditto.
17175 (*movdf_internal): Ditto.
17176 (*movsf_internal): Ditto.
17178 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17180 PR rtl-optimization/67483
17181 * combine.c (make_compound_operation): Don't call extract_left_shift
17182 with negative shift amounts.
17184 2016-05-13 Jakub Jelinek <jakub@redhat.com>
17187 * fold-const.c (fold_checksum_tree): Allow modification
17188 of TYPE_ALIAS_SET during folding.
17190 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
17191 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
17192 (ix86_split_to_parts): Likewise. Fix up formatting.
17194 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
17196 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
17197 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
17200 2016-05-13 Nathan Sidwell <nathan@acm.org>
17202 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
17203 (nvptx_name_replacement): Delete.
17204 (write_fn_proto, write_fn_proto_from_insn,
17205 nvptx_output_call_insn): Remove nvptx_name_replacement call.
17206 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
17207 * langhooks.c (add_builtin_funcction_common): Call
17208 targetm.mangle_decl_assembler_name.
17210 * config/nvptx/nvptx.c (write_fn_proto): Handle
17211 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
17213 2016-05-13 Martin Liska <mliska@suse.cz>
17215 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
17216 and PRIu64 in printf format.
17218 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17220 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
17223 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17225 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17226 Change --param max-completely-peeled-times to
17227 --param max-completely-peel-times in dump file printing.
17229 2016-05-13 Richard Biener <rguenther@suse.de>
17231 PR tree-optimization/42587
17232 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
17233 (find_bswap_or_nop_1): Likewise.
17234 (bswap_replace): Likewise.
17236 2016-05-13 Martin Liska <mliska@suse.cz>
17238 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
17239 Initialize a variable with default value.
17241 2016-05-13 Martin Liska <mliska@suse.cz>
17243 * doc/invoke.texi: Enhance explanation of error recovery
17246 2016-05-13 Martin Liska <mliska@suse.cz>
17248 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
17249 (struct cost_pair): Change inv_expr_id (int) to inv_expr
17250 (iv_inv_expr_ent *).
17251 (struct iv_inv_expr_ent): Comment struct fields.
17252 (sort_iv_inv_expr_ent): New function.
17253 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
17254 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
17255 a hash_map between iv_inv_expr_ent and number of usages.
17256 (niter_for_exit): Fix coding style.
17257 (tree_ssa_iv_optimize_init): Use renamed variable.
17258 (determine_base_object): Fix coding style.
17259 (alloc_iv): Likewise.
17260 (find_interesting_uses_outside): Likewise.
17261 (add_candidate_1): Likewise.
17262 (add_standard_iv_candidates): Likewise.
17263 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
17264 (prepare_decl_rtl): Fix coding style.
17265 (get_address_cost): Likewise.
17266 (get_shiftadd_cost): Likewise.
17267 (force_expr_to_var_cost): Likewise.
17268 (compare_aff_trees): Likewise.
17269 (get_expr_id): Restructure the function.
17270 (get_loop_invariant_expr_id): Renamed to
17271 get_loop_invariant_expr.
17272 (get_computation_cost_at): Replace usage of inv_expr_id with
17274 (get_computation_cost): Likewise.
17275 (determine_group_iv_cost_generic): Likewise.
17276 (determine_group_iv_cost_address): Likewise.
17277 (iv_period): Fix coding style.
17278 (iv_elimination_compare_lt): Likewise.
17279 (may_eliminate_iv): Likewise.
17280 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
17282 (determine_group_iv_costs): Dump invariant expressions.
17283 (iv_ca_recount_cost): Use the newly added hash_map.
17284 (iv_ca_set_remove_invariants): Fix coding style.
17285 (iv_ca_set_add_invariants): Fix coding style.
17286 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
17288 (iv_ca_set_cp): Likewise.
17289 (iv_ca_new): Initialize the newly added hash_map and remove
17290 initialization of fields.
17291 (iv_ca_free): Delete the hash_map.
17292 (iv_ca_dump): Dump invariant expressions.
17293 (iv_ca_extend): Fix coding style.
17294 (try_add_cand_for): Likewise.
17295 (create_new_ivs): Dump information about # of avg iterations and
17296 # of used invariant expressions.
17297 (rewrite_use_compare): Fix coding style.
17298 (free_loop_data): Set default value for max_inv_expr_id.
17300 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17302 * cse.c (rest_of_handle_cse): Use cleanup_cfg
17303 returned value cse_cfg_altered computation.
17304 (rest_of_handle_cse2): Likewise.
17305 (rest_of_handle_cse_after_global_opts): Likewise.
17307 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17310 * config/arm/arm.c (arm32_output_mi_thunk): New.
17311 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
17312 to split Thumb1 vs TARGET_32BIT functionality.
17313 (arm_thumb1_mi_thunk): New.
17315 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17317 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
17320 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17323 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
17325 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
17327 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
17328 (expand_builtin_trap): Emit a regular call.
17329 (set_builtin_user_assembler_name): Remove obsolete cases.
17330 * dse.c (scan_insn): Adjust.
17331 * except.c: Include calls.h.
17332 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
17333 emit a regular call to setjmp.
17334 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
17335 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
17336 (emit_block_move_via_libcall): Delete.
17337 (block_move_fn): Delete.
17338 (init_block_move_fn): Likewise.
17339 (emit_block_move_libcall_fn): Likewise.
17340 (emit_block_op_via_libcall): New function.
17341 (set_storage_via_libcall): Tidy up and use memset builtin.
17342 (block_clear_fn): Delete.
17343 (init_block_clear_fn): Likewise.
17344 (clear_storage_libcall_fn): Likewise.
17345 (expand_assignment): Call emit_block_move_via_libcall.
17346 Do not include gt-expr.h.
17347 * expr.h (emit_block_op_via_libcall): Declare.
17348 (emit_block_copy_via_libcall): New inline function.
17349 (emit_block_move_via_libcall): Likewise.
17350 (emit_block_comp_via_libcall): Likewise.
17351 (block_clear_fn): Delete.
17352 (init_block_move_fn): Likewise.
17353 (init_block_clear_fn): Likewise.
17354 (emit_block_move_via_libcall): Likewise.
17355 (set_storage_via_libcall): Add default parameter value.
17356 * libfuncs.h (enum libfunc_index): Remove obsolete values.
17357 (abort_libfunc): Delete.
17358 (memcpy_libfunc): Likewise.
17359 (memmove_libfunc): Likewise.
17360 (memcmp_libfunc): Likewise.
17361 (memset_libfunc): Likewise.
17362 (setbits_libfunc): Likewise.
17363 (setjmp_libfunc): Likewise.
17364 (longjmp_libfunc): Likewise.
17365 (profile_function_entry_libfunc): Likewise.
17366 (profile_function_exit_libfunc): Likewise.
17367 (gcov_flush_libfunc): Likewise.
17368 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
17369 and DECL_VISIBILITY on the declaration.
17370 (init_optabs): Do not initialize obsolete libfuncs.
17371 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
17372 * tree-core.h (ECF_RET1): Define.
17373 (ECF_TM_PURE): Adjust.
17374 (ECF_TM_BUILTIN): Likewise.
17375 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
17376 (build_common_builtin_nodes): Initialize abort builtin.
17377 Add ECF_RET1 on memcpy, memmove and memset builtins.
17378 Pass final flags for alloca and alloca_with_align builtins.
17379 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
17381 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
17382 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
17383 set_storage_via_libcall and call emit_block_copy_via_libcall.
17385 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
17387 * config/i386/i386.md (*call_got_x32): Change operand 0 to
17388 DImode before it is passed to ix86_output_call_operand.
17389 (*call_value_got_x32): Ditto for operand 1.
17391 2016-05-12 Jiong Wang <jiong.wang@arm.com>
17393 PR rtl-optimization/70904
17394 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
17395 reload for wide mode.
17397 2016-05-12 Marek Polacek <polacek@redhat.com>
17400 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
17401 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
17402 * langhooks.h (incomplete_type_error): Likewise.
17403 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
17404 parameter, pass it down to incomplete_type_error.
17405 * tree.h (size_in_bytes): New inline overload.
17406 (size_in_bytes_loc): Renamed from size_in_bytes.
17408 2016-05-12 Richard Biener <rguenther@suse.de>
17410 PR tree-optimization/71059
17411 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
17412 nary before looking up or entering the expression into the VN
17414 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
17415 Make sure to re-use NARYs without result as inserted by
17418 2016-05-12 Richard Biener <rguenther@suse.de>
17420 PR tree-optimization/71062
17421 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17423 * tree-ssa-structalias.c (set_uids_in_ptset): Set
17424 vars_contains_restrict if the var is a restrict tag.
17425 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
17426 do not disambiguate pointers against it.
17427 (dump_points_to_solution): Re-structure and adjust for new
17428 vars_contains_restrict flag.
17429 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
17431 2016-05-12 Martin Liska <mliska@suse.cz>
17433 * doc/invoke.texi: Explain connection between
17434 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
17436 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
17438 PR tree-optimization/71006
17439 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17440 consider COND_EXPR as a mask producer.
17442 2016-05-12 Marek Polacek <polacek@redhat.com>
17445 * opts.c (common_handle_option): Detect missing argument for --help^.
17447 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17450 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
17451 when popping the PC and within an interrupt handler routine.
17452 Add missing tab to output of "ldmfd".
17453 (output_return_instruction): Output LDMFD with SP update rather
17454 than POP when returning from interrupt handler.
17456 2016-05-12 Jakub Jelinek <jakub@redhat.com>
17458 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
17459 TARGET_64BIT && TARGET_AVX512DQ.
17460 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
17461 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
17462 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
17463 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
17464 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
17465 (*vec_extractv4si_zext): Add avx512dq alternative.
17466 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
17467 use v instead of x constraint in other alternatives where possible.
17469 * config/i386/sse.md (sse2_loadld): Use v instead of x
17470 constraint in alternatives 0,1,4.
17472 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
17473 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
17474 v constraints instead of x and <pinsr_evex_isa> isa attribute.
17477 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
17478 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
17479 is not emitted unless TARGET_AVX512BW.
17480 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
17481 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
17482 for the result operand.
17484 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
17485 constraint instead of x in avx alternatives. Use maybe_evex instead
17488 * config/i386/constraints.md (Yv): New constraint.
17489 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
17490 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
17491 * config/i386/i386.md (avx512fvecmode): New mode attr.
17492 (*pushtf): Use v constraint instead of x.
17493 (*movtf_internal): Likewise. For TARGET_AVX512VL and
17494 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
17495 (*absneg<mode>2): Use Yv constraint instead of x constraint.
17496 (*absnegtf2_sse): Likewise.
17497 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
17498 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
17499 avx512f alternatives.
17500 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
17502 2016-05-12 Richard Biener <rguenther@suse.de>
17504 PR tree-optimization/71060
17505 * tree-data-ref.c (initialize_data_dependence_relation): Do not
17506 require exact match of DR_BASE_OBJECT but only matching address and
17509 2016-05-12 Richard Biener <rguenther@suse.de>
17511 PR tree-optimization/70986
17512 * cfganal.c: Include cfgloop.h.
17513 (dfs_find_deadend): Prefer to take edges exiting loops.
17515 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17517 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
17518 compile and run time.
17520 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
17523 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
17525 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
17527 * config/i386/i386.c (legitimize_pic_address): Use
17528 copy_to_suggested_reg instead of gen_movsi.
17530 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17532 * config/rs6000/predicates.md (quad_memory_operand): Move most of
17533 the code into quad_address_p and call it to share code with
17534 vsx_quad_dform_memory_operand.
17535 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
17537 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
17538 bit instead of being a separate word. Split -mpower9-dform into
17539 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17540 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
17541 for the register class supporting 128-bit quad word memory offsets.
17542 (mode_supports_vsx_dform_quad): Helper function to return if the
17543 register class uses quad word memory offsets.
17544 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
17545 (rs6000_debug_reg_global): Always print if we are using LRA or not.
17546 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
17547 instructions are enabled, set up the appropriate addr_masks for
17549 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
17550 -mpower9-dform-scalar, instead of -mpower9-dform.
17551 (rs6000_option_override_internal): Split -mpower9-dform into two
17552 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
17553 -mpower9-dform switch sets or clears both. If we are not using
17554 the LRA register allocator, do not enable -mpower9-dform-vector by
17555 default. If we are using LRA, enable -mpower9-dform-vector and
17556 -mvsx-timode if it is appropriate. Issue a warning if either
17557 -mpower9-dform-vector or -mvsx-timode are explicitly used without
17559 (quad_address_offset_p): New helper function to return if the
17560 offset is legal for quad word memory instructions.
17561 (quad_address_p): New function to determin if GPR or vector
17562 register quad word memory addresses are legal.
17563 (mem_operand_gpr): Validate quad word address offsets.
17564 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
17565 d-form (register + offset) instructions.
17566 (offsettable_ok_by_alignment): Likewise.
17567 (rs6000_legitimate_offset_address_p): Likewise.
17568 (legitimate_lo_sum_address_p): Likewise.
17569 (rs6000_legitimize_address): Likewise.
17570 (rs6000_legitimize_reload_address): Add more debug statements for
17572 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
17573 d-form instructions.
17574 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
17575 d-form instructions. Distinguish different cases in debug
17576 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
17577 d-form instructions.
17578 (rs6000_preferred_reload_class): Likewise.
17579 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
17580 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
17581 of the ISA 2.06 indexed memory instructions.
17582 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
17583 use them to save/restore the saved vector registers instead of
17584 using Altivec instructions.
17585 (rs6000_emit_epilogue): Likewise.
17586 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
17587 (rs6000_opt_masks): Split -mpower9-dform into
17588 -mpower9-dform-scalar and -mpower9-dform-vector.
17589 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
17591 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
17592 ISA 3.0 vector indexed memory instructions, and fold the code into
17593 the normal mov<mode> patterns.
17594 (p9_vecstore_<mode>): Likewise.
17595 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
17597 (vsx_movti_64bit): Likewise.
17598 (vsx_movti_32bit): Likewise.
17599 * config/rs6000/constraints.md (wO constraint): New constraint for
17600 ISA 3.0 vector d-form support.
17601 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
17602 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
17603 include -mpower9-dform-vector until we switch over to LRA.
17604 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
17605 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17606 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
17607 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
17608 for -mpower9-dform and -mlra.
17609 * doc/md.texi (wO constraint): Document wO constraint.
17611 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
17613 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
17614 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
17615 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
17616 Move handling of non-insn arguments inline into the sole user:
17617 (output_trans_func): ...here.
17618 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
17619 in emitted function prototype.
17620 (output_internal_insn_latency_func): Ditto. Simplify.
17621 (output_internal_maximal_insn_latency_func): Ditto. Delete
17622 always-unused argument.
17623 (output_insn_latency_func): Ditto.
17624 (output_maximal_insn_latency_func): Ditto.
17626 2016-05-11 Richard Biener <rguenther@suse.de>
17628 PR tree-optimization/71055
17629 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
17630 sth with precision not equal to access size verify we don't chop
17633 2016-05-11 Richard Biener <rguenther@suse.de>
17636 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
17637 (dwarf2out_finish): Move retry_incomplete_types call ...
17638 (dwarf2out_early_finish): ... here.
17640 2016-05-11 Richard Biener <rguenther@suse.de>
17642 PR middle-end/71002
17643 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
17644 if the langhook insists on it.
17645 * fold-const.c (make_bit_field_ref): Add arg for the original
17646 reference and preserve its alias-set.
17647 (decode_field_reference): Take exp by reference and adjust it
17648 to the original memory reference.
17649 (optimize_bit_field_compare): Adjust callers.
17650 (fold_truth_andor_1): Likewise.
17651 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
17653 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
17655 PR middle-end/70807
17656 * cfgrtl.h (delete_insn_and_edges): Now return bool.
17657 * cfgrtl.c (delete_insn_and_edges): Likewise.
17658 * config/i386/i386.c (convert_scalars_to_vector): Remove
17660 * cse.c (cse_insn): Compute cse_cfg_altered.
17661 (delete_trivially_dead_insns): Likewise.
17662 (cse_cc_succs): Likewise.
17663 (rest_of_handle_cse): Free dominance info if required.
17664 (rest_of_handle_cse2): Likewise.
17665 (rest_of_handle_cse_after_global_opts): Likewise.
17667 2016-05-11 Alan Modra <amodra@gmail.com>
17669 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
17670 abi_v4_pass_in_fpr): New functions.
17671 (rs6000_function_arg_boundary): Exclude complex IBM long double
17672 from 64-bit alignment when ABI_V4.
17673 (rs6000_function_arg, rs6000_function_arg_advance_1,
17674 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
17676 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
17678 PR rtl-optimization/71028
17679 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
17680 jump with just a return in the fallthrough block if the branch
17681 block contains just a return as well.
17683 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
17685 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
17686 * match.pd ((X & Y) ^ Y): ... this.
17687 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
17688 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
17690 2016-05-10 David Malcolm <dmalcolm@redhat.com>
17692 * read-md.c (require_char_ws): New function.
17693 (read_string): Simplify using require_char_ws.
17694 (handle_constants): Likewise.
17695 (handle_enum): Likewise.
17696 (handle_file): Likewise.
17697 * read-md.h (require_char_ws): New declaration.
17698 * read-rtl.c (read_conditions): Simplify using require_char_ws.
17699 (read_mapping): Likewise.
17700 (read_rtx_code): Likewise.
17701 (read_nested_rtx): Likewise.
17703 2016-05-10 James Norris <jnorris@codesourcery.com>
17705 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
17706 if offloading is enabled and -fopenacc or -fopenmp is specified.
17707 (CRTOFFLOADEND): Likewise.
17708 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
17709 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
17711 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
17713 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
17714 gotoff_operand code paths. Use copy_to_suggested_regs and
17715 expand_simple_binop where appropriate. Cleanup.
17717 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17720 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
17722 (dimode_scalar_chain::vector_const_cost): New.
17723 (dimode_scalar_chain::compute_convert_gain): Handle constants.
17724 (dimode_scalar_chain::convert_op): Likewise.
17725 (dimode_scalar_chain::convert_insn): Likewise.
17727 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
17729 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
17730 unary operation, not a binary one.
17732 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17734 PR middle-end/70877
17735 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
17736 calls with type casted fndecl.
17738 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
17740 PR tree-optimization/70786
17741 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
17742 * calls.c (initialize_argument_information): Bind bounds
17743 with corresponding args passed by reference.
17745 2016-05-10 Jakub Jelinek <jakub@redhat.com>
17748 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
17749 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
17750 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
17753 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17756 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
17757 code for a zero scale factor.
17758 (vsx_xvcvdpuxds_scale): Likewise.
17760 2016-05-10 David Malcolm <dmalcolm@redhat.com>
17762 * diagnostic-show-locus.c (layout::layout): Call show_ruler
17763 if show_ruler_p was set on the context.
17764 (layout::show_ruler): New method.
17765 * diagnostic.h (struct diagnostic_context): Add field
17768 2016-05-10 Richard Biener <rguenther@suse.de>
17770 PR tree-optimization/71039
17771 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
17772 (chk_uses): New function.
17773 (propagate_with_phi): Verify we can safely replicate the lhs of an
17774 aggregate assignment on all incoming edges.
17776 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
17778 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
17780 (rx_atomic_sequence): New class.
17781 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
17782 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
17784 (rx_atomic_sequence::rx_atomic_sequence,
17785 rx_atomic_sequence::~rx_atomic_sequence): New functions.
17786 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
17787 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
17788 CTRLREG_INTB): New constants.
17789 (FETCHOP): New code iterator.
17790 (fethcop_name, fetchop_name2): New iterator code attributes.
17791 (QIHI): New mode iterator.
17792 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
17793 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
17794 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
17796 2016-05-10 Martin Liska <mliska@suse.cz>
17798 * tree-inline.c (remap_dependence_clique): Do not remap
17799 debugging statements.
17801 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17803 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
17804 ("*fixuns_truncdfdi2_z13")
17805 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
17806 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
17807 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
17809 2016-05-10 Richard Biener <rguenther@suse.de>
17811 PR tree-optimization/70497
17812 PR tree-optimization/28367
17813 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
17815 (visit_reference_op_load): ... here.
17816 (vn_reference_lookup_3): Use it to handle subreg-like accesses
17817 with simplified BIT_FIELD_REFs.
17818 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
17819 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
17822 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
17824 * dwarf2out.c (add_abstract_origin_attribute): Adjust
17825 documentation comment. For BLOCK nodes, add a
17826 DW_AT_abstract_origin attribute that points to the DIE generated
17827 for the origin BLOCK.
17828 (gen_lexical_block_die): Call add_abstract_origin_attribute for
17829 blocks from inlined functions.
17831 2016-05-10 Alan Modra <amodra@gmail.com>
17834 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
17835 regrename modifying insns saving lr before __morestack call.
17836 * config/rs6000/rs6000.md (split_stack_return): Similarly for
17837 insns restoring lr after __morestack call.
17839 2016-05-09 Jakub Jelinek <jakub@redhat.com>
17841 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
17842 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
17844 * config/i386/sse.md (vec_interleave_high<mode>,
17845 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
17846 <avx512>_vpermt2var<mode>3_maskz): Likewise.
17848 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17850 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
17851 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
17852 parallel reassociation for power8 and forward.
17854 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
17856 * config/i386/i386.md (absneg splitters with general regs): Use
17857 general_reg_operand predicate.
17858 (btsq peephole2): Use x86_64_immediate_operand to check if new
17859 value is suitable for immediate operand. Generate emitted insn
17860 using RTL expressions.
17861 (btcq peephole2): Ditto.
17862 (btrq peephole2): Ditto. Generate correct immediate operand
17865 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
17867 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
17870 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
17872 * tree-affine.c (wide_int_constant_multiple_p): Add missing
17873 pointer dereference.
17875 2016-05-09 Richard Biener <rguenther@suse.de>
17877 PR tree-optimization/70985
17878 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
17879 op0 isn't a gimple register.
17881 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
17883 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
17884 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
17885 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
17886 (i6400_fpu_mult): New cpu units.
17887 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
17888 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
17889 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
17890 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
17891 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
17892 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
17893 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
17894 (i6400_msa_long_float4, i6400_msa_long_float5)
17895 (i6400_msa_long_float8, i6400_msa_fdiv_df)
17896 (i6400_msa_fdiv_sf): New reservations.
17897 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
17898 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
17899 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
17900 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
17901 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
17902 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
17903 (msa_short_cmp, msa_short_float2, msa_short_logic3)
17904 (msa_short_store4, msa_long_load, msa_short_store)
17905 (msa_long_logic, msa_long_float2, msa_long_float4)
17906 (msa_long_float5, msa_long_float8, msa_long_mult)
17907 (msa_long_fdiv, msa_long_div): New reservations.
17909 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
17910 Sameera Deshpande <sameera.deshpande@imgtec.com>
17911 Matthew Fortune <matthew.fortune@imgtec.com>
17912 Graham Stott <graham.stott@imgtec.com>
17913 Chao-ying Fu <chao-ying.fu@imgtec.com>
17915 * config.gcc: Add MSA header file for mips*-*-* target.
17916 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
17917 (Ubv8i, Urv8): New constraints.
17918 * config/mips/mips-ftypes.def: Add function types for MSA
17920 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
17921 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
17922 * config/mips/mips-msa.md: New file.
17923 * config/mips/mips-protos.h
17924 (mips_split_128bit_const_insns): New prototype.
17925 (mips_msa_idiv_insns): Likewise.
17926 (mips_split_128bit_move): Likewise.
17927 (mips_split_128bit_move_p): Likewise.
17928 (mips_split_msa_copy_d): Likewise.
17929 (mips_split_msa_insert_d): Likewise.
17930 (mips_split_msa_fill_d): Likewise.
17931 (mips_expand_msa_branch): Likewise.
17932 (mips_const_vector_same_val_p): Likewise.
17933 (mips_const_vector_same_bytes_p): Likewise.
17934 (mips_const_vector_same_int_p): Likewise.
17935 (mips_const_vector_shuffle_set_p): Likewise.
17936 (mips_const_vector_bitimm_set_p): Likewise.
17937 (mips_const_vector_bitimm_clr_p): Likewise.
17938 (mips_msa_vec_parallel_const_half): Likewise.
17939 (mips_msa_output_division): Likewise.
17940 (mips_ldst_scaled_shift): Likewise.
17941 (mips_expand_vec_cond_expr): Likewise.
17942 * config/mips/mips.c (enum mips_builtin_type): Add
17943 MIPS_BUILTIN_MSA_TEST_BRANCH.
17944 (mips_gen_const_int_vector_shuffle): New prototype.
17945 (mips_const_vector_bitimm_set_p): New function.
17946 (mips_const_vector_bitimm_clr_p): Likewise.
17947 (mips_const_vector_same_val_p): Likewise.
17948 (mips_const_vector_same_bytes_p): Likewise.
17949 (mips_const_vector_same_int_p): Likewise.
17950 (mips_const_vector_shuffle_set_p): Likewise.
17951 (mips_symbol_insns): Forbid loading symbols via immediate for
17953 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
17955 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
17957 (mips_lx_address_p): Add support load indexed address for MSA.
17958 (mips_address_insns): Add calculation of instructions needed for
17959 stores and loads for MSA.
17960 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
17961 CONST_VECTOR for MSA and let it fall through.
17962 (mips_ldst_scaled_shift): New function.
17963 (mips_subword_at_byte): Likewise.
17964 (mips_msa_idiv_insns): Likewise.
17965 (mips_legitimize_move): Validate MSA moves.
17966 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
17967 calculation of costs for MSA division.
17968 (mips_split_move_p): Check if MSA moves need splitting.
17969 (mips_split_move): Split MSA moves if necessary.
17970 (mips_split_128bit_move_p): New function.
17971 (mips_split_128bit_move): Likewise.
17972 (mips_split_msa_copy_d): Likewise.
17973 (mips_split_msa_insert_d): Likewise.
17974 (mips_split_msa_fill_d): Likewise.
17975 (mips_output_move): Handle MSA moves.
17976 (mips_expand_msa_branch): New function.
17977 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
17978 Reinstate 'y' modifier.
17979 (mips_file_start): Add MSA .gnu_attribute.
17980 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
17982 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
17983 (mips_class_max_nregs): Add register size for MSA supported mode.
17984 (mips_cannot_change_mode_class): Allow conversion between MSA
17985 vector modes and TImode.
17986 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
17988 (mips_secondary_reload_class): Force MSA loads/stores via memory.
17989 (mips_preferred_simd_mode): Add preffered modes for MSA.
17990 (mips_vector_mode_supported_p): Add MSA supported modes.
17991 (mips_autovectorize_vector_sizes): New function.
17992 (mips_msa_output_division): Likewise.
17993 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
17994 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
17995 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
17996 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
17997 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
17998 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
17999 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
18000 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
18001 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
18002 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
18003 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
18004 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
18005 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
18006 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
18007 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
18008 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
18009 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
18010 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
18011 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
18012 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
18013 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
18014 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
18015 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
18016 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
18017 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
18018 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
18019 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
18020 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
18021 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
18022 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
18023 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
18024 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
18025 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
18026 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
18027 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
18028 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
18029 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
18030 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
18031 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
18032 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
18033 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
18034 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
18035 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
18036 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
18037 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18038 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18039 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18040 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18041 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18042 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18043 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18044 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18045 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
18046 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
18047 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
18048 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
18049 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
18050 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
18051 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
18052 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
18053 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
18054 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
18055 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
18056 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
18057 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
18058 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
18059 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
18060 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
18061 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
18062 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
18063 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
18064 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
18065 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
18066 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
18067 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
18068 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
18069 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
18070 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
18071 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
18072 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
18073 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
18074 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
18075 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
18076 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
18077 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
18078 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
18079 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
18080 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
18081 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
18082 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
18083 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
18084 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
18085 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
18086 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
18087 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
18088 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
18089 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
18090 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
18091 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
18092 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
18093 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
18094 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
18095 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
18096 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
18097 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
18098 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
18099 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
18100 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
18101 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
18102 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
18103 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
18104 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
18105 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
18106 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
18107 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
18108 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
18109 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
18110 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
18111 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
18112 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
18113 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
18114 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
18115 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
18116 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
18117 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
18118 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
18119 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
18120 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
18121 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
18122 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
18123 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
18124 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
18125 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
18126 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
18127 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
18128 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
18129 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
18130 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
18131 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
18132 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
18133 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
18134 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
18135 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
18136 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
18137 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
18138 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
18139 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
18140 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
18141 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
18142 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
18143 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
18145 (mips_get_builtin_decl_index): New array.
18146 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
18147 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
18148 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
18149 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
18150 (mips_init_builtins): Initialize mips_get_builtin_decl_index
18152 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
18154 (mips_expand_builtin_insn): Prepare operands for
18155 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
18156 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
18157 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
18158 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
18159 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
18160 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
18161 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
18162 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
18163 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
18164 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
18165 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
18166 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
18167 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
18168 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
18169 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
18170 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
18171 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
18172 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
18173 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
18174 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
18175 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
18176 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
18177 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
18178 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
18179 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
18180 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
18181 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
18182 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
18183 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
18184 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
18185 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
18186 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
18187 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
18188 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
18189 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
18190 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
18191 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
18192 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
18193 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
18194 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
18195 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
18196 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
18197 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
18198 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
18199 These are set implicitly and an error is reported if overridden.
18200 (mips_expand_builtin_msa_test_branch): New function.
18201 (mips_expand_msa_shuffle): Likewise.
18202 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
18203 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
18204 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
18205 (mips_expand_vec_unpack): Add support for MSA.
18206 (mips_expand_vector_init): Likewise.
18207 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
18208 instead of const0_rtx.
18209 (mips_msa_vec_parallel_const_half): New function.
18210 (mips_gen_const_int_vector): Likewise.
18211 (mips_gen_const_int_vector_shuffle): Likewise.
18212 (mips_expand_msa_cmp): Likewise.
18213 (mips_expand_vec_cond_expr): Likewise.
18214 * config/mips/mips.h
18215 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
18216 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
18218 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
18219 (ISA_HAS_MSA): New macro.
18220 (UNITS_PER_MSA_REG): Likewise.
18221 (BITS_PER_MSA_REG): Likewise.
18222 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
18223 (MSA_REG_FIRST): New macro.
18224 (MSA_REG_LAST): Likewise.
18225 (MSA_REG_NUM): Likewise.
18226 (MSA_REG_P): Likewise.
18227 (MSA_REG_RTX_P): Likewise.
18228 (MSA_SUPPORTED_MODE_P): Likewise.
18229 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
18230 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
18231 * config/mips/mips.md: Include mips-msa.md.
18232 (alu_type): Add simd_add.
18233 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
18234 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
18235 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
18236 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
18237 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
18238 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
18239 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
18240 simd_move, simd_load, simd_store. Choose "multi" for moves
18242 (qword_mode): New attribute.
18243 (insn_count): Add instruction count for quad moves.
18244 Increase the count for MIPS SIMD division.
18245 (UNITMODE): Add UNITMODEs for vector types.
18246 (addsub): New code iterator.
18247 * config/mips/mips.opt (mmsa): New option.
18248 * config/mips/msa.h: New file.
18249 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
18251 * config/mips/mti-linux.h: Likewise.
18252 * config/mips/predicates.md
18253 (const_msa_branch_operand): New constraint.
18254 (const_uimm3_operand): Likewise.
18255 (const_uimm4_operand): Likewise.
18256 (const_uimm5_operand): Likewise.
18257 (const_uimm8_operand): Likewise.
18258 (const_imm5_operand): Likewise.
18259 (aq10b_operand): Likewise.
18260 (aq10h_operand): Likewise.
18261 (aq10w_operand): Likewise.
18262 (aq10d_operand): Likewise.
18263 (const_m1_operand): Likewise.
18264 (reg_or_m1_operand): Likewise.
18265 (const_exp_2_operand): Likewise.
18266 (const_exp_4_operand): Likewise.
18267 (const_exp_8_operand): Likewise.
18268 (const_exp_16_operand): Likewise.
18269 (const_vector_same_val_operand): Likewise.
18270 (const_vector_same_simm5_operand): Likewise.
18271 (const_vector_same_uimm5_operand): Likewise.
18272 (const_vector_same_uimm6_operand): Likewise.
18273 (const_vector_same_uimm8_operand): Likewise.
18274 (par_const_vector_shf_set_operand): Likewise.
18275 (reg_or_vector_same_val_operand): Likewise.
18276 (reg_or_vector_same_simm5_operand): Likewise.
18277 (reg_or_vector_same_uimm6_operand): Likewise.
18278 * doc/extend.texi (MIPS SIMD Architecture Functions): New
18280 * doc/invoke.texi (-mmsa): Document new option.
18282 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18284 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
18285 * configure: Regenerate.
18286 * config.in: Regenerate.
18287 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
18288 on -fvtable-verify.
18289 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
18290 (ENDFILE_VTV_SPEC): Define.
18292 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
18294 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
18295 registers in all interrupt handlers if necessary.
18296 (rl78_option_override): Add warning.
18297 (MUST_SAVE_MDUC_REGISTERS): New macro.
18298 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
18299 * config/rl78/rl78.c (check_mduc_usage): New function.
18300 (mduc_regs): New structure to hold MDUC register data.
18301 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
18302 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
18303 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
18304 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
18305 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
18306 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
18308 2016-05-09 Bin Cheng <bin.cheng@arm.com>
18310 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
18311 (tree-ssa-loop-niter.h): Ditto.
18312 (idx_within_array_bound, ref_within_array_bound): New functions.
18313 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
18314 Factor out check on writable base object to ...
18315 (base_object_writable): ... here.
18317 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18319 * config/arm/arm.md (probe_stack): Add modes to set source
18322 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
18324 * regrename.c (base_reg_class_for_rename): New static function.
18325 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
18327 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
18329 * cgraph.c (thunk_adjust): Export.
18330 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
18331 * cgraphunit.c (thunk_adjust): Export.
18332 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
18334 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
18336 * tree-inline.c (expand_call_inline): Expand thunks inline.
18338 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
18341 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
18342 (*sse2_vd_cvtss2sd): Ditto.
18343 * config/i386/i386.md
18344 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
18345 Generate *sse2_vd_cvtsd2ss pattern.
18346 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
18347 Generate *sse2_vd_cvtss2sd pattern.
18349 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18351 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
18352 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
18355 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
18357 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
18358 * config/sh/sh.c: Define and declare variables on first use throughout
18360 (current_function_interrupt): Change to bool type.
18361 (frame_insn): Rename to emit_frame_insn and update users.
18362 (push_regs): Use bool for 'interrupt_handler' argument.
18363 (save_schedule_s): Remove.
18364 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
18365 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
18366 targetm.asm_out.unaligned_op.di.
18367 (gen_far_branch): Remove redundant forward declaration.
18368 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
18369 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
18370 (sh_set_return_address, sh_function_ok_for_sibcall,
18371 scavenge_reg): Update comments.
18372 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
18373 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
18374 (sh_attr_renesas_p): Remove unnecessary parentheses.
18375 (branch_dest): Simplify.
18376 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
18377 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
18378 (CUMULATIVE_ARGS): Change macro to typedef.
18379 (current_function_interrupt): Change to bool type.
18380 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
18381 Surround with __cplusplus ifdef.
18382 (sh_compare_op0, sh_compare_op1): Remove.
18383 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
18385 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
18387 * config/arm/arm.md: (arch): Add neon.
18388 (arch_enabled): Return yes for arch neon when TARGET_NEON.
18389 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
18390 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
18391 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
18392 attributes for alt renumbering. Mark alt 3 as non-predicable.
18393 (thumb2_movdf_vfp): Likewise.
18395 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
18397 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
18398 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
18399 (*andqi_1): Add preferred_for_speed attribute to disparage
18400 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
18401 (*<code>qi_1): Ditto.
18402 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
18403 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
18404 (*ashlqi3_1): Ditto.
18405 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
18406 Add preferred_for_size attribute to disparage alternative 0 and
18407 preferred_for_speed attribute to disparage alternative 1 for
18408 TARGET_PARTIAL_REG_STALL targets.
18410 2016-05-07 Tom de Vries <tom@codesourcery.com>
18412 PR tree-optimization/70956
18413 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
18416 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18418 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
18419 * config/sh/sh.c (sh_cbranch_distance): Implement it.
18420 * config/sh/sh.md (branch_zero): Remove define_attr.
18421 (define_delay): Disable delay slot if branch distance is one insn.
18423 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18425 * config/i386/i386.md (LEAMODE): New mode attribute.
18426 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
18427 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
18428 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
18429 operand 2 predicate.
18430 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
18431 (*lea<mode>_general_3): Ditto.
18432 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
18434 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18436 * genmddump.c (main): Convert argv from char ** to const char **.
18438 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18440 * coretypes.h (OVERRIDE): New macro.
18441 (FINAL): New macro.
18443 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
18445 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
18446 allow coalescing if the types are compatible.
18448 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18450 * pass_manager.h (pass_manager::register_pass_name): New method.
18451 (pass_manager::get_pass_by_name): New method.
18452 (pass_manager::create_pass_tab): New method.
18453 (pass_manager::m_name_to_pass_map): New field.
18454 * passes.c (name_to_pass_map): Delete global in favor of field
18455 "m_name_to_pass_map" of pass_manager.
18456 (register_pass_name): Rename from a function to...
18457 (pass_manager::register_pass_name): ...this method, updating
18458 for renaming of global "name_to_pass_map" to field
18459 "m_name_to_pass_map".
18460 (create_pass_tab): Rename from a function to...
18461 (pass_manager::create_pass_tab): ...this method, updating
18462 for renaming of global "name_to_pass_map" to field.
18463 (get_pass_by_name): Rename from a function to...
18464 (pass_manager::get_pass_by_name): ...this method.
18465 (enable_disable_pass): Convert use of get_pass_by_name to
18466 a method call, locating the pass_manager singleton.
18468 2016-05-06 David Malcolm <dmalcolm@redhat.com>
18470 * genattr-common.c (main): Convert argv from char ** to const char **.
18471 * genattr.c (main): Likewise.
18472 * genattrtab.c (main): Likewise.
18473 * genautomata.c (initiate_automaton_gen): Likewise.
18475 * gencodes.c (main): Likewise.
18476 * genconditions.c (main): Likewise.
18477 * genconfig.c (main): Likewise.
18478 * genconstants.c (main): Likewise.
18479 * genemit.c (main): Likewise.
18480 * genenums.c (main): Likewise.
18481 * genextract.c (main): Likewise.
18482 * genflags.c (main): Likewise.
18483 * genmddeps.c (main): Likewise.
18484 * genopinit.c (main): Likewise.
18485 * genoutput.c (main): Likewise.
18486 * genpeep.c (main): Likewise.
18487 * genpreds.c (main): Likewise.
18488 * genrecog.c (main): Likewise.
18489 * gensupport.c (init_rtx_reader_args_cb): Likewise.
18490 (init_rtx_reader_args): Likewise.
18491 * gensupport.h (init_rtx_reader_args_cb): Likewise.
18492 (init_rtx_reader_args): Likewise.
18493 * gentarget-def.c (main): Likewise.
18494 * read-md.c (read_md_files): Likewise.
18495 * read-md.h (read_md_files): Likewise.
18497 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18499 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
18500 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
18501 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
18502 Remove unused predicate.
18503 (register_and_not_fp_reg_operand): Ditto.
18505 2016-05-06 Martin Liska <mliska@suse.cz>
18507 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
18508 instead of vec as the vector is local to the function.
18510 2016-05-06 Jakub Jelinek <jakub@redhat.com>
18512 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
18513 avx512bw alternative.
18515 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
18516 before the ashr<mode>3 pattern.
18518 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
18519 v instead of x in vex or maybe_vex alternatives, use
18520 maybe_evex instead of vex in prefix.
18522 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
18523 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
18524 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
18525 in vex or maybe_vex alternatives, use maybe_evex instead of vex
18528 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
18529 v instead of x in vex or maybe_vex alternatives, use
18530 maybe_evex instead of vex in prefix.
18532 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
18533 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
18534 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
18535 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
18536 alternatives, use maybe_evex instead of vex in prefix.
18538 * config/i386/sse.md (vec_interleave_lowv4sf,
18539 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
18540 v instead of x in vex or maybe_vex alternatives, use
18541 maybe_evex instead of vex in prefix.
18543 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
18544 v instead of x in vex or maybe_vex alternatives, use
18545 maybe_evex instead of vex in prefix.
18547 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
18548 v constraint instead of x.
18550 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
18552 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
18553 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
18556 2016-05-06 Richard Biener <rguenther@suse.de>
18558 PR tree-optimization/70948
18559 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18560 Properly clobber all fields of va_list for __builtin_va_start.
18562 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18565 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
18566 loop latch destination.
18568 2016-05-06 Martin Liska <mliska@suse.cz>
18570 * tree-ssa-uninit.c: Apply manual changes
18571 to the GNU coding style.
18572 (prune_uninit_phi_opnds): Rename from
18573 prune_uninit_phi_opnds_in_unrealizable_paths.
18575 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18577 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
18578 mspace): Remove deprecated options.
18579 * doc/invoke.texi (SH options): Remove -mspace.
18581 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18583 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
18585 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18587 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
18588 corresponding combine split pattern.
18590 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18593 * config/sh/predicates.md (long_displacement_mem_operand): New.
18594 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
18595 Add movi20, movi20s alternatives. Adjust length attribute for
18597 (movsi_ie): Allow for any FPU. Adjust length attribute for
18599 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
18600 attribute for alternatives.
18601 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
18602 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
18603 length attribute for alternatives.
18605 2016-05-06 Richard Biener <rguenther@suse.de>
18607 PR tree-optimization/70960
18608 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
18610 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18613 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
18614 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
18616 2016-05-06 Marek Polacek <polacek@redhat.com>
18619 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
18621 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
18624 * config/sh/sh.md (*rotcr): Add another variant.
18626 2016-05-06 Richard Biener <rguenther@suse.de>
18628 PR middle-end/70931
18629 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
18631 2016-05-06 Richard Biener <rguenther@suse.de>
18633 PR middle-end/70941
18634 * fold-const.c (split_tree): Always convert to the original type
18637 2016-05-06 Richard Biener <rguenther@suse.de>
18639 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
18640 (fwprop_addr): Likewise.
18642 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
18645 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
18647 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
18648 * config/i386/i386.md (push mem splitter): Use find_constant_src in
18649 the splitter condition.
18650 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
18651 the splitter condition.
18652 (FP float_extend load splitter): Ditto.
18654 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
18656 * config/i386/i386.md (peehole2 patterns): Change true_regnum
18657 to REGNO in all peephole2 patterns.
18658 (post-reload splitters): Change true_regnum to REGNO in
18659 post-reload splitters.
18660 (zero_extend splitters): Use general_reg_operand and
18661 nonimmediate_gr_operand predicates.
18663 2016-05-05 Jakub Jelinek <jakub@redhat.com>
18665 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
18666 v constraint instead of x.
18668 2016-05-05 Alan Modra <amodra@gmail.com>
18671 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
18672 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
18673 TARGET_NO_FP_IN_TOC for -mrelocatable.
18674 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
18675 TARGET_RELOCATABLE test.
18676 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18677 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18678 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18679 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18680 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18681 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18682 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18683 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18684 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
18685 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18687 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
18688 (rs6000_stack_info): Likewise.
18689 (rs6000_elf_asm_out_constructor): Likewise.
18690 (rs6000_elf_asm_out_destructor): Likewise.
18691 (rs6000_elf_declare_function_name): Likewise.
18692 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
18693 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
18696 2016-05-05 Alan Modra <amodra@gmail.com>
18698 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
18700 2016-05-05 Alan Modra <amodra@gmail.com>
18702 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
18703 out-of-line gpr restore for one or two regs if that would add
18706 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
18709 * config/i386/i386.md
18710 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
18711 Change to post-epilogue_completed late splitter. Use sse_reg_operand
18712 as operand 0 predicate.
18713 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
18715 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
18716 Ditto. Emit the pattern using RTX.
18718 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
18719 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
18720 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
18721 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
18723 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
18724 sse_reg_operand as operand 0 predicate.
18726 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
18727 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
18728 instead of gen_rtx_REG.
18729 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
18732 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18734 * function.c (emit_use_return_register_into_block): Delete.
18735 (gen_return_pattern): Delete.
18736 (emit_return_into_block): Delete.
18737 (active_insn_between): Delete.
18738 (convert_jumps_to_returns): Delete.
18739 (emit_return_for_exit): Delete.
18740 (thread_prologue_and_epilogue_insns): Delete all code dealing with
18741 simple_return for shrink-wrapped blocks.
18742 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
18743 end of blocks that need one.
18744 (get_unconverted_simple_return): Delete.
18745 (convert_to_simple_return): Delete.
18746 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
18747 (convert_to_simple_return): Ditto.
18749 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18751 * cfgcleanup.c (bb_is_just_return): New function.
18752 (try_optimize_cfg): Simplify jumps to return, branches to return,
18753 and branches around return.
18755 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18757 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
18758 branch to a return.
18760 2016-05-04 Jakub Jelinek <jakub@redhat.com>
18764 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
18765 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
18766 assert flags & OEP_HASH_CHECK, instead of asserting it
18767 never happens. Handle TARGET_EXPR.
18768 * fold-const.c (operand_equal_p): For hash verification,
18769 or in OEP_HASH_CHECK into flags.
18771 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
18773 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
18775 (compute_samebase_partition_bases): Fix typo.
18777 2016-05-04 Jakub Jelinek <jakub@redhat.com>
18779 * config/i386/sse.md (vec_interleave_highv8sf,
18780 vec_interleave_lowv8sf, vec_interleave_highv4df,
18781 vec_interleave_lowv4df): Remove constraints from expanders.
18783 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
18785 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
18787 * tree-inline.c (expand_call_inline): Fix path dealing with
18788 making lhs of call statement undefined.
18790 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
18792 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18793 Check availability on NODE, too.
18794 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
18795 (cgraph_node::call_for_symbol_and_aliases): Likewise.
18796 (varpool_node::call_for_symbol_and_aliase): Likewise.
18797 * ipa-pure-const.c (add_new_function): Analyze all bodies.
18798 (propagate_pure_const): Propagate across interposable functions, too.
18799 (skip_function_for_local_pure_const): Do not skip interposable bodies
18801 (pass_local_pure_const::execute): Update.
18803 2016-05-04 Marek Polacek <polacek@redhat.com>
18805 * doc/invoke.texi: Document -Wdangling-else.
18807 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18809 * config.gcc: Error out when conflicting multilib is detected. Do not
18810 loop over multilibs since no combination is legal.
18812 2016-05-04 Alan Modra <amodra@gmail.com>
18814 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
18815 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
18816 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18819 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
18821 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
18822 Clean up p5600 comments.
18824 2016-05-04 Richard Biener <rguenther@suse.de>
18826 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
18827 constructor simplifications.
18828 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
18830 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
18832 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
18833 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
18834 result.set_rtx is null instead of aborting.
18835 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
18837 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
18838 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
18839 *mov<mode>_store_postinc): New patterns.
18841 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
18843 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
18844 as commutative. Check both conversions are NOP.
18845 ((A & B) OP (C & B)): Remove.
18847 2016-05-04 Alan Modra <amodra@gmail.com>
18849 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
18851 2016-05-04 Alan Modra <amodra@gmail.com>
18854 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
18855 when cr2,3,4 are all fixed regs.
18857 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
18859 PR rtl-optimization/57193
18860 * opts.c (default_options_table): Revert OPT_frename_registers change.
18861 * doc/invoke.texi (-frename-registers, -O2): Likewise.
18863 2016-05-03 Martin Sebor <msebor@redhat.com>
18866 * builtins.c (fold_builtin_FILE): New function.
18867 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
18868 (fold_builtin_0): Call them.
18869 * gimplify.c (gimplify_call_expr): Remove the handling of
18870 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
18873 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
18874 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
18878 * doc/extend.texi (Function Names as Strings): Update __func__,
18879 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
18882 2016-05-03 Jakub Jelinek <jakub@redhat.com>
18883 Richard Biener <rguenther@suse.de>
18885 PR tree-optimization/70916
18886 * tree-if-conv.c: Include cfganal.h.
18887 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
18888 and remove_fake_exit_edges around the optimization pass.
18890 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
18892 * cgraph.c (symbol_table::create_edge): Set inline_failed.
18893 (cgraph_edge::make_direct): Likewise.
18894 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
18895 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
18896 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
18897 (CIF_THUNK): New code.
18898 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
18899 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
18900 (compute_inline_parameters): Set inline_failed for thunks.
18901 (inline_analyze_function): Cleanup.
18902 * ipa-inline.c (can_inline_edge_p): Do not deal with
18903 call_stmt_cannot_inline_p.
18904 (can_early_inline_edge_p): Likewise.
18905 (early_inliner): Initialize inline_failed.
18906 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
18908 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
18910 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
18911 from nonimm_ssenomem_operand.
18912 (nonimm_ssenomem_operand): New predicate.
18913 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
18914 as operand 0 predicate.
18915 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
18916 Disable unsupported alternatives using "enabled" attribute.
18917 Use register_ssemem_operand as operand 0 predicate.
18918 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
18920 2016-05-03 Marek Polacek <polacek@redhat.com>
18923 * input.c (expansion_point_location): New function.
18924 * input.h (expansion_point_location): Declare.
18926 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
18928 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
18929 occurence with frame_offset_ ones.
18931 2016-05-03 Alan Modra <amodra@gmail.com>
18933 PR rtl-optimization/70890
18934 * ira.c (combine_and_move_insns): When moving def_insn, remove
18935 equivs on use_insn.
18937 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
18939 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
18940 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
18941 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
18942 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
18944 2016-05-03 Alan Modra <amodra@gmail.com>
18946 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
18947 for SAVE_MULTIPLE/STORE_MULTIPLE.
18949 2016-05-03 Jakub Jelinek <jakub@redhat.com>
18951 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
18952 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
18954 2016-05-03 Richard Biener <rguenther@suse.de>
18956 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
18958 (gimplify_arg): Likewise.
18959 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
18960 re-writing the result to a decl if required.
18961 (internal_get_tmp_var): Add allow_ssa parameter
18962 and override into_ssa with it.
18963 (get_formal_tmp_var): Adjust.
18964 (get_initialized_tmp_var): Add allow_ssa parameter.
18965 (gimplify_arg): Add allow_ssa parameter and avoid generating
18966 SSA names for the result false.
18967 (gimplify_call_expr): If the call may return twice do not
18968 gimplify parameters into SSA.
18969 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
18970 (gimplify_modify_expr): Adjust assert. For noreturn calls
18971 with a SSA name LHS adjust its def.
18972 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
18973 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
18974 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
18975 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
18976 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
18977 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
18978 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
18979 (optimize_target_teams): Do not allow SSA names for clause operands.
18980 (gimplify_expr): Likewise for where we mark the result addressable.
18981 * passes.def (pass_init_datastructures): Remove.
18982 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
18983 (rewrite_stmt): Likewise.
18984 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
18985 (replace_locals_op): Replace SSA names.
18986 (copy_gimple_seq_and_replace_locals): Init src_cfun.
18987 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
18988 * cgraph.c (release_function_body): Free CFG annotations only
18989 when we have a CFG. Simplify.
18990 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
18991 force_gimple_operand instead of get_initialized_tmp_var.
18992 * tree-pass.h (make_pass_init_datastructures): Remove.
18993 * tree-ssa.c (execute_init_datastructures): Remove.
18994 (pass_data_init_datastructures): Likewise.
18995 (class pass_init_datastructures): Likewise.
18996 (make_pass_init_datastructures): Likewise.
18997 * omp-low.c (create_omp_child_function): Init SSA data structures.
18998 (grid_expand_target_grid_body): Likewise.
18999 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
19000 name before adding it to names_to_release.
19001 (remove_bb): Always release SSA defs.
19002 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
19003 before dereferencing it.
19004 * cgraphunit.c (init_lowered_empty_function): Always
19005 int SSA data structures.
19006 * tree-ssanames.c (release_defs): Remove assert that we are in
19008 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
19010 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19011 Uros Bizjak <ubizjak@gmail.com>
19013 PR rtl-optimization/70467
19014 * config/i386/predicates.md (x86_64_hilo_int_operand,
19015 x86_64_hilo_general_operand): New predicates.
19016 * config/i386/constraints.md (Wd): New constraint.
19017 * config/i386/i386.md (mode attr di): Use Wd instead of e.
19018 (general_hilo_operand): New mode attr.
19019 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
19020 instead of <general_operand>.
19021 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
19022 x86_64_hilo_general_operand instead of <general_operand>.
19024 2016-05-03 Jakub Jelinek <jakub@redhat.com>
19026 PR tree-optimization/70916
19027 * tree-if-conv.c (constant_or_ssa_name): Removed.
19028 (fold_build_cond_expr): Use is_gimple_val instead of
19029 constant_or_ssa_name.
19031 PR tree-optimization/70916
19032 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
19033 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
19036 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
19037 (optimize_atomic_bit_test_and): New function.
19038 (pass_fold_builtins::execute): Use it.
19039 * optabs.def (atomic_bit_test_and_set_optab,
19040 atomic_bit_test_and_complement_optab,
19041 atomic_bit_test_and_reset_optab): New optabs.
19042 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
19043 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
19044 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
19045 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
19046 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
19047 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
19048 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
19049 * doc/md.texi (atomic_bit_test_and_set@var{mode},
19050 atomic_bit_test_and_complement@var{mode},
19051 atomic_bit_test_and_reset@var{mode}): Document.
19052 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
19053 atomic_bit_test_and_complement<mode>,
19054 atomic_bit_test_and_reset<mode>): New expanders.
19055 (atomic_bit_test_and_set<mode>_1,
19056 atomic_bit_test_and_complement<mode>_1,
19057 atomic_bit_test_and_reset<mode>_1): New insns.
19059 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
19061 PR rtl-optimization/70687
19062 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
19063 instead of unsigned HOST_WIDE_INT.
19065 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
19067 PR rtl-optimization/44281
19068 * hard-reg-set.h (struct target_hard_regs): New field
19069 x_fixed_nonglobal_reg_set.
19070 (fixed_nonglobal_reg_set): New macro.
19071 * reginfo.c (init_reg_sets_1): Initialize it.
19072 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
19074 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
19076 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19078 PR tree-optimization/56541
19079 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
19080 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
19081 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
19082 (any_complicated_phi): new static variable.
19083 (aggressive_if_conv): delete.
19084 (if_convertible_phi_p): support phis with more than two arguments.
19085 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
19086 critical pred edges.
19087 (ifcvt_split_critical_edges): support phis with more than two
19088 arguments by checking new parameter. only split critical edges
19090 (tree_if_conversion): handle simd pragma marked loop using new
19091 local variable aggressive_if_conv. check any_complicated_phi.
19093 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19095 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
19098 2016-05-03 Bin Cheng <bin.cheng@arm.com>
19100 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
19103 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19105 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
19106 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
19107 define_insn_and_split.
19108 (mulsi3_i): New define_insn_and_split.
19109 (mulsi3_call): Convert to define_insn.
19110 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
19111 Remove constraints.
19113 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19115 * machmode.h (mode_complex): Add support to give the complex mode
19117 (GET_MODE_COMPLEX_MODE): Likewise.
19118 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
19119 stored by build_complex_type and gfc_build_complex_type instead of
19120 trying to figure out the appropriate mode based on the size. Raise
19121 an assertion error, if the type was not set.
19122 * genmodes.c (struct mode_data): Add field for the complex type of
19124 (blank_mode): Likewise.
19125 (make_complex_modes): Remember the complex mode created in the
19127 (emit_mode_complex): Write out the mode_complex array to map a
19128 type mode to the complex version.
19129 (emit_insn_modes_c): Likewise.
19130 * tree.c (build_complex_type): Set the complex type to use before
19131 calling layout_type.
19132 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
19133 support for __float128 complex datatypes.
19134 (rs6000_hard_regno_mode_ok): Likewise.
19135 (rs6000_setup_reg_addr_masks): Likewise.
19136 (rs6000_complex_function_value): Likewise.
19137 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
19138 __float128 and __ibm128 complex.
19139 (FLOAT128_IBM_P): Likewise.
19140 (ALTIVEC_ARG_MAX_RETURN): Likewise.
19141 * doc/extend.texi (Additional Floating Types): Document that
19142 -mfloat128 must be used to enable __float128. Document complex
19143 __float128 and __ibm128 support.
19145 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19148 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
19149 char/short arguments promoted to int because of promote_prototypes.
19151 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19153 * config/i386/predicates.md (register_ssemem_operand): New predicate.
19154 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
19155 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
19156 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
19157 alternatives using "enabled" attribute. Use register_ssemem_operand
19158 as operand 1 predicate.
19159 (*cmpi<unord>xf_i387): Split XFmode pattern from
19160 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
19161 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
19162 *absneg<mode>2_i387. Disable unsupported alternatives using
19163 "enabled" attribute.
19164 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
19166 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19168 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
19170 (oacc_loop_process): Check mask for loop termination.
19172 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19174 * cif-code.def (CIF_THUNK): Add.
19175 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
19178 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
19180 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
19181 (dump_inline_summary): Dump it.
19182 (fp_expression_p): New predicate.
19183 (estimate_function_body_sizes): Use it.
19184 (inline_merge_summary): Merge fp_expressions.
19185 (inline_read_section): Read fp_expressions.
19186 (inline_write_summary): Write fp_expressions.
19187 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
19188 codegen boundary if either caller or callee is !fp_expressions.
19189 * ipa-inline.h (inline_summary): Add fp_expressions.
19190 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
19191 to fp_expressions be sure the fp generation flags are updated.
19193 2016-05-02 Jakub Jelinek <jakub@redhat.com>
19195 PR rtl-optimization/70467
19196 * cse.c (cse_insn): Handle no-op MEM moves after folding.
19198 PR rtl-optimization/70467
19199 * ipa-pure-const.c (check_call): Handle internal calls even in
19200 ipa mode like in local mode.
19202 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19204 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
19206 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19208 * match.pd (X u< X, X u> X): New transformations.
19210 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
19212 * flag-types.h (enum warn_strict_overflow_code): Move ...
19213 * coretypes.h: ... here.
19214 * fold-const.h (fold_overflow_warning): Declare.
19215 * fold-const.c (fold_overflow_warning): Make non-static.
19216 (fold_comparison): Move the transformation of X +- C1 CMP C2
19217 into X CMP C2 -+ C1 ...
19218 * match.pd: ... here.
19219 * gimple-fold.c (fold_stmt_1): Protect with
19220 fold_defer_overflow_warnings.
19222 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
19224 * omp-low.c (struct oacc_loop): Add 'inner' field.
19225 (new_oacc_loop_raw): Initialize it to zero.
19226 (oacc_loop_fixed_partitions): Initialize it.
19227 (oacc_loop_auto_partitions): Partition outermost loop to outermost
19228 available partitioning.
19230 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19232 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
19234 (umulsidi3): Likewise.
19235 (indirect_jump): Fix jump instruction assembly patterns.
19237 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
19240 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
19241 (nvptx_function_value): Assert non-NULL cfun.
19243 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
19245 PR rtl-optimization/70886
19246 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
19248 * cselib.h (rtx_equal_for_cselib_1): Declare.
19249 (rtx_equal_for_cselib_p: New inline function.
19250 * cselib.c (rtx_equal_for_cselib_p): Delete.
19251 (rtx_equal_for_cselib_1): Make public.
19253 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
19255 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
19256 (register_mixssei387nonimm_operand): Remove predicate.
19257 * config/i386/i386.md (*fop_<mode>_comm): Merge from
19258 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
19259 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
19260 for TARGET_MIX_SSE_I387 alternatives.
19261 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
19262 Disable unsupported alternatives using "enabled" attribute. Use
19263 nonimm_ssenomem_operand as operand 1 predicate. Also check
19264 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
19266 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19268 * tree.c (cst_and_fits_in_hwi): Simplify.
19270 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19272 * tree.h (wi::to_wide): New function.
19273 * expr.c (expand_expr_real_1): Use wi::to_wide.
19274 * fold-const.c (int_const_binop_1): Likewise.
19275 (extract_muldiv_1): Likewise.
19277 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19279 * wide-int.h: Update offset_int and widest_int documentation.
19280 (WI_SIGNED_SHIFT_RESULT): New macro.
19281 (wi::binary_shift): Define signed_shift_result_type for
19282 shifts on offset_int- and widest_int-like types.
19283 (generic_wide_int): Support <<= and >>= if << and >> are supported.
19284 * tree.h (int_bit_position): Use shift operators instead of wi::
19286 * alias.c (adjust_offset_for_component_ref): Likewise.
19287 * expr.c (get_inner_reference): Likewise.
19288 * fold-const.c (fold_comparison): Likewise.
19289 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
19290 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
19291 * tree-dfa.c (get_ref_base_and_extent): Likewise.
19292 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19293 (stmt_kills_ref_p): Likewise.
19294 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
19295 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
19296 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19297 (ao_ref_init_from_vn_reference): Likewise.
19299 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
19301 * wide-int.h: Update offset_int and widest_int documentation.
19302 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
19303 (wi::binary_traits): Allow ordered comparisons between offset_int and
19304 offset_int, between widest_int and widest_int, and between either
19305 of these types and basic C types.
19306 (operator <, <=, >, >=): Define for the same combinations.
19307 * tree.h (tree_int_cst_lt): Use comparison operators instead
19308 of wi:: comparisons.
19309 (tree_int_cst_le): Likewise.
19310 * gimple-fold.c (fold_array_ctor_reference): Likewise.
19311 (fold_nonarray_ctor_reference): Likewise.
19312 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
19313 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
19314 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
19315 * tree-sra.c (completely_scalarize): Likewise.
19316 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
19317 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
19318 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
19319 (check_for_binary_op_overflow): Likewise.
19320 (search_for_addr_array): Likewise.
19321 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
19323 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19325 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
19326 (arc_save_restore): Likewise.
19327 (arc_dwarf_register_span): Likewise.
19328 (arc_output_pic_addr_const): Initialize suffix variable.
19330 2016-05-02 Martin Liska <mliska@suse.cz>
19332 * symbol-summary.h (function_summary::function_summary):
19333 Remove checking assert for all cgraph nodes.
19334 (function_summary::get): Check summary_uid.
19335 (symtab_insertion): Check summary_uid.
19337 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
19339 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
19340 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
19341 bmaskn instruction.
19342 (arc_dwarf_register_span): Remove enum keyword.
19343 (compact_memory_operand_p): New function.
19344 * config/arc/arc.h (reg_class): Add code density register classes.
19345 (REG_CLASS_NAMES): Likewise.
19346 (REG_CLASS_CONTENTS): Likewise.
19347 * config/arc/arc.md (*movqi_insn): Add code density instructions.
19348 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
19349 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
19350 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
19351 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
19353 (h, Rcd, Rsd, Rzd): New register constraints.
19354 (T): Use compact_memory_operand_p function.
19355 * config/arc/predicates.md (compact_load_memory_operand): Remove.
19357 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19359 * config/sh/sh.md (*negnegt, *movtt): Remove.
19361 2016-05-02 Marek Polacek <polacek@redhat.com>
19362 Tom de Vries <tom@codesourcery.com>
19364 PR tree-optimization/70700
19365 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
19366 bigger than FIRST_REF_NODE.
19368 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
19371 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
19373 (prepare_cbranch_operands): Don't use scratch register. Assume that
19374 function is used when pseudos can be created.
19375 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
19376 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
19377 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
19378 define_expand. Allow it only when pseudos can be created.
19379 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
19381 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
19383 * config/i386/constraints.md (BC): Only allow -1 operands.
19384 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
19385 Add "enabled" attribute. Update XI mode attribute calculation.
19386 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
19387 (*movoi_internal_avx): Update XI mode attribute calculation.
19388 (*movti_internal): Ditto.
19390 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19392 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
19393 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
19395 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
19397 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
19398 statement on instruction code. Remove trailing spaces.
19399 (altivec_expand_stv_builtin): Likewise.
19401 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19403 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
19404 (TARGET_FPU_DOUBLE): Simplify.
19405 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
19406 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
19407 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
19408 with 'TARGET_FPU_DOUBLE'.
19409 * config/sh/sh.md: Likewise.
19411 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
19413 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
19414 SH_DIV_STR_FOR_SIZE): Remove.
19415 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
19416 SH_DIV_STR_FOR_SIZE): Remove.
19418 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
19420 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
19421 logical_reg_operand): Delete.
19422 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
19423 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
19424 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
19425 match_operand and match_test.
19426 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
19427 variables on their first use. Return bool values.
19428 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
19429 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
19430 arith_reg_operand for input operand. Remove empty constraints.
19432 (*xorsi3_compact): Rename to xorsi3.
19433 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
19434 (*zero_extend<mode>si2_disp_mem): Update comment.
19437 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19439 * config/sh/t-sh: Remove SH5 support.
19440 * config.gcc: Likewise.
19441 * configure: Likewise.
19443 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19445 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
19447 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
19449 * config/sh/sh.c (register_sh_passes, sh_option_override,
19450 sh_print_operand, prepare_move_operands,
19451 sh_can_follow_jump): Remove TARGET_SH1 checks.
19452 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
19453 PROMOTE_MODE): Likewise.
19454 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
19457 2016-04-30 Alan Modra <amodra@gmail.com>
19459 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
19460 restoring when fixed_reg_p, but allow out-of-line or stmw save.
19461 Check for user regs later to avoid unnecessary looping over regs.
19462 Merge user reg check with non-saved reg check. Don't force
19463 inline VR restore when static chain used.
19464 (rs6000_frame_related): Omit eh_frame info for user regs when
19466 (fixed_regs_p): Delete.
19468 2016-04-30 Alan Modra <amodra@gmail.com>
19470 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
19471 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
19474 2016-04-30 Alan Modra <amodra@gmail.com>
19477 * config/rs6000/rs6000.c (fixed_reg_p): New function.
19478 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
19481 2016-04-30 Alan Modra <amodra@gmail.com>
19483 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
19484 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
19485 flag_pic test for Darwin.
19487 2016-04-30 Alan Modra <amodra@gmail.com>
19489 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
19490 throw_calls_crossed.
19491 (REG_FREQ_CALLS_CROSSED): Delete.
19492 (REG_N_THROWING_CALLS_CROSSED): Delete.
19493 * regstat.c (regstat_bb_compute_ri): Don't calculate
19494 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
19495 (dump_reg_info): Don't print call cross frequency.
19496 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
19497 and REG_N_THROWING_CALLS_CROSSED.
19499 2016-04-30 Alan Modra <amodra@gmail.com>
19501 * regs.h (struct reg_info_t): Delete live_length.
19502 (REG_LIVE_LENGTH): Delete macro.
19503 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
19504 local_live, local_processed and local_live_last_luid params.
19505 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
19507 (regstat_compute_ri): Adjust for above. Don't set
19509 (dump_reg_info): Don't print live length.
19510 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
19511 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
19512 Localize loop_depth var.
19514 2016-04-30 Alan Modra <amodra@gmail.com>
19516 * ira.c (enum valid_equiv): New.
19517 (validate_equiv_mem): Return enum.
19518 (update_equiv_mem): Create replacement in more cases.
19519 (add_store_equivs): Update validate_equiv_mem call.
19521 2016-04-30 Alan Modra <amodra@gmail.com>
19523 * ira.c (combine_and_move_insns): Rather than scanning insns,
19524 use DF infrastucture to find use and def insns.
19526 2016-04-30 Alan Modra <amodra@gmail.com>
19528 ira.c (combine_and_move_insns): Move invariant conditions..
19529 (ira.c): ..to here. Call combine_and_move_insns before
19530 add_store_equivs. Call grow_reg_equivs later. Allocate
19531 req_equiv later using max_reg_num() rather than global max_regno.
19532 (contains_replace_regs): Delete.
19533 (add_store_equivs): Remove contains_replace_regs test.
19535 2016-04-30 Alan Modra <amodra@gmail.com>
19537 * ira.c (struct equiv_mem_data): New.
19538 (equiv_mem, equiv_mem_modified): Delete static vars.
19539 (validate_equiv_mem_from_store): Use "data" param to communicate..
19540 (validate_equiv_mem): ..from here.
19542 2016-04-30 Alan Modra <amodra@gmail.com>
19544 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
19546 (update_reg_equivs): ..here. Move allocation and freeing of
19547 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
19548 end_alias_analysis to..
19551 2016-04-30 Alan Modra <amodra@gmail.com>
19553 * ira.c (pdx_subregs): Delete.
19554 (struct equivalence): Add pdx_subregs field.
19555 (set_paradoxical_subreg): Remove pdx_subregs param. Update
19556 pdx_subregs access.
19557 (update_equiv_regs): Don't create or free pdx_subregs. Update
19558 pdx_subregs access.
19560 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19562 * config/rs6000/altivec.h: Change definitions of vec_xl and
19564 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
19565 (LD_ELEMREV_V2DI): New.
19566 (LD_ELEMREV_V4SF): New.
19567 (LD_ELEMREV_V4SI): New.
19568 (LD_ELEMREV_V8HI): New.
19569 (LD_ELEMREV_V16QI): New.
19570 (ST_ELEMREV_V2DF): New.
19571 (ST_ELEMREV_V2DI): New.
19572 (ST_ELEMREV_V4SF): New.
19573 (ST_ELEMREV_V4SI): New.
19574 (ST_ELEMREV_V8HI): New.
19575 (ST_ELEMREV_V16QI): New.
19578 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19579 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
19580 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
19581 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
19582 (altivec_expand_builtin): Add handling for
19583 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
19584 (rs6000_invalid_builtin): Add error-checking for
19585 RS6000_BTM_P9_VECTOR.
19586 (altivec_init_builtins): Define builtins used to implement vec_xl
19588 (rs6000_builtin_mask_names): Define power9-vector.
19589 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
19590 (RS6000_BTM_P9_VECTOR): Define.
19591 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
19592 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
19593 (vsx_ld_elemrev_v2df): Likewise.
19594 (vsx_ld_elemrev_v4sf): Likewise.
19595 (vsx_ld_elemrev_v4si): Likewise.
19596 (vsx_ld_elemrev_v8hi): Likewise.
19597 (vsx_ld_elemrev_v16qi): Likewise.
19598 (vsx_st_elemrev_v2df): Likewise.
19599 (vsx_st_elemrev_v2di): Likewise.
19600 (vsx_st_elemrev_v4sf): Likewise.
19601 (vsx_st_elemrev_v4si): Likewise.
19602 (vsx_st_elemrev_v8hi): Likewise.
19603 (vsx_st_elemrev_v16qi): Likewise.
19604 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
19607 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
19609 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
19611 (simplify_control_stmt_condition_1): ... here. Recurse into
19612 BIT_AND_EXPRs and BIT_IOR_EXPRs.
19614 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
19617 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
19618 (zero_extendqi<mode>2_dot): Revert earlier conversion from
19619 define_insn_and_split to define_insn.
19620 (zero_extendqi<mode>2_dot2): Same.
19621 (extendqi<mode>2_dot): Same.
19622 (extendqi<mode>2_dot2): Same.
19624 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19626 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
19627 (probe_stack): New expander.
19628 (probe_stack_<mode>): New insn pattern.
19630 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19632 * config/i386/i386.md
19633 (operations with memory inputs setting flags peephole2):
19634 Remove uneeded REG_P checks. Cleanup pattern generation.
19636 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
19638 * tree-vect-loop.c (vect_transform_loop): Fix
19639 nb_iterations_upper_bound computation for vectorized loop.
19641 2016-04-29 Marek Polacek <polacek@redhat.com>
19642 Jakub Jelinek <jakub@redhat.com>
19645 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
19646 TARGET_EXPR_SLOT as a base.
19648 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
19650 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
19651 with 'rCm2' constraints to limit possible immediate size.
19652 (*load_zeroextendqisi_update): Likewise.
19653 (*load_signextendqisi_update): Likewise.
19654 (*loadhi_update): Likewise.
19655 (*load_zeroextendhisi_update): Likewise.
19656 (*load_signextendhisi_update): Likewise.
19657 (*loadsi_update): Likewise.
19658 (*loadsf_update): Likewise.
19660 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19662 * config/i386/predicates.md (constm1_operand): Fix comparison.
19664 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19666 * testsuite/gcc.target/arc/ieee_eq.c: New test.
19668 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
19670 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
19671 remaining SH5 related settings.
19672 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
19673 shmedia_prepare_call_address): Delete.
19674 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
19675 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
19676 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
19677 UNSUPPORTED_SH2A): Remove m5 checks.
19678 (sh_divide_strategy_e): Remove SH5 division strategies.
19679 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
19680 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
19682 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19684 * config/s390/s390.c (s390_rtx_costs): Update documentation.
19686 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19688 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
19689 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
19690 Change lder to ldr.
19691 * config/s390/vector.md ("mov<mode>"): Likewise.
19693 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
19695 * config/s390/constraints.md ("U", "W"): Invoke
19696 s390_mem_constraint with "ZR" and "ZT".
19697 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
19698 addresses when using LRA. Accept also short displacements for S
19699 and T constraints. Do not check for long displacement target for
19700 S and T constraints.
19701 (s390_mem_constraint): Remove handling of U and W constraints.
19702 * config/s390/s390.md (various patterns): Remove the short
19703 displacement constraints (Q and R) if a long displacement
19704 constraint is present. Add longdisp as required CPU capability.
19705 * config/s390/vector.md: Likewise.
19706 * config/s390/vx-builtins.md: Likewise.
19708 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19711 * reload1.c (reload): Call finish_spills before
19712 restarting reload loop. Skip select_reload_regs
19713 if update_eliminables_and_spill returns true.
19715 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
19717 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
19718 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
19719 (umulhisi3_imm): Update predicates and constraint letters.
19720 (umulhisi3_reg): Declare instruction as commutative.
19721 * config/arc/constraints.md (J12, J16): New constraints.
19722 * config/arc/predicates.md (short_unsigned_const_operand): New
19724 (arc_short_operand): Likewise.
19725 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
19727 2016-04-29 Richard Biener <rguenther@suse.de>
19729 PR tree-optimization/13962
19730 PR tree-optimization/65686
19731 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
19732 * tree-ssa-alias.c (ptrs_compare_unequal): New function
19733 using PTA to compare pointers.
19734 * match.pd: Add pattern for pointer equality compare simplification
19735 using ptrs_compare_unequal.
19737 2016-04-29 Richard Biener <rguenther@suse.de>
19739 * stor-layout.c (layout_type): Do not build a pointer-to-element
19742 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
19744 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
19745 Use SWI mode iterator. Use general_reg_operand predicate.
19746 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
19747 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
19750 2016-04-29 Jakub Jelinek <jakub@redhat.com>
19752 PR middle-end/70843
19753 * fold-const.c (operand_equal_p): Don't verify hash value equality
19755 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
19758 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19761 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
19762 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
19763 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
19764 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
19765 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
19767 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19769 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
19770 to info. Don't initialize separate fields to 0. Clean up
19773 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
19775 * config/i386/i386.md (peephole2s for operations with memory inputs):
19776 Use SWI mode iterator.
19777 (peephole2s for operations with memory outputs): Ditto.
19778 Do not check for stack checking probe.
19780 (probe_stack): Remove expander.
19782 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19783 Andrew Burgess <andrew.burgess@embecosm.com>
19785 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
19786 operands as 32-bits.
19788 2016-04-28 Jason Merrill <jason@redhat.com>
19790 * gdbinit.in: Skip line-map.h.
19792 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19793 Andrew Burgess <andrew.burgess@embecosm.com>
19795 * config/arc/arc.c (arc_conditional_register_usage): Take
19796 TARGET_RRQ_CLASS into account.
19797 (arc_print_operand): Support printing 'p' and 's' operands.
19798 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
19800 (TARGET_RRQ_CLASS): Define.
19801 (IS_POWEROF2_OR_0_P): Define.
19802 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
19804 (*tst_movb): New define_insn.
19805 (*tst): Avoid recognition if it could prevent '*tst_movb'
19806 combination; replace c/CnL with c/Chs alternative.
19807 (*tst_bitfield_tst): New define_insn.
19808 (*tst_bitfield_asr): New define_insn.
19809 (*tst_bitfield): New define_insn.
19810 (andsi3_i): Add Rrq variant.
19811 (extzv): New define_expand.
19812 (insv): New define_expand.
19813 (*insv_i): New define_insn.
19814 (*movb): New define_insn.
19815 (*movb_signed): New define_insn.
19816 (*movb_high): New define_insn.
19817 (*movb_high_signed): New define_insn.
19818 (*movb_high_signed + 1): New define_split pattern.
19819 (*mrgb): New define_insn.
19820 (*mrgb + 1): New define_peephole2 pattern.
19821 (*mrgb + 2): New define_peephole2 pattern.
19822 * config/arc/arc.opt (mbitops): New option for nps400, uses
19823 TARGET_NPS_BITOPS_DEFAULT.
19824 * config/arc/constraints.md (q): Make register class conditional.
19825 (Rrq): New register constraint.
19826 (Chs): New constraint.
19827 (Clo): New constraint.
19828 (Chi): New constraint.
19829 (Cbf): New constraint.
19830 (Cbn): New constraint.
19831 (C18): New constraint.
19832 (Cbi): New constraint.
19834 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19836 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
19838 (bitmap_intersection_of_preds): Ditto.
19839 (bitmap_union_of_succs): Ditto.
19840 (bitmap_union_of_preds): Ditto.
19841 * sbitmap.c (do_popcount): Delete.
19842 (BITMAP_DEBUGGING): Delete.
19843 (sbitmap_verify_popcount): Delete.
19844 (sbitmap_alloc): Don't initialize the popcount field.
19845 (sbitmap_alloc_with_popcount): Delete.
19846 (sbitmap_resize): Don't resize the popcount array.
19847 (sbitmap_vector_alloc): Don't initialize the popcount field.
19848 (bitmap_copy): Don't copy the popcount array.
19849 (bitmap_clear): Don't clear the popcount array.
19850 (bitmap_clear): Delete the popcount array handling.
19851 (bitmap_ior_and_compl): Delete the popcount assert.
19852 (bitmap_not): Ditto.
19853 (bitmap_and_compl): Ditto.
19854 (bitmap_and): Delete the popcount array handling.
19855 (bitmap_xor): Ditto.
19856 (bitmap_ior): Ditto.
19857 (bitmap_or_and): Delete the popcount assert.
19858 (bitmap_and_or): Ditto.
19859 (popcount_table): Delete.
19860 (sbitmap_elt_popcount): Delete.
19861 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
19862 (bitmap_set_bit): Delete the popcount assert.
19863 (bitmap_clear_bit): Ditto.
19864 (sbitmap_free): Don't free the popcount array.
19865 (sbitmap_alloc_with_popcount): Delete declaration.
19866 (sbitmap_popcount): Ditto.
19868 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19869 Andrew Burgess <andrew.burgess@embecosm.com>
19871 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
19872 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
19873 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
19874 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
19875 * config/arc/arc.opt (mcmem): New option.
19876 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
19877 supply length for r/m alternative.
19878 (*extendqisi2_ac): Likewise.
19879 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
19881 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
19882 (movhi_insn): Likewise.
19883 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
19884 (*zero_extendqihi2_i): Add r/Ucm alternative.
19885 (*zero_extendqisi2_ac): Likewise.
19886 (*zero_extendhisi2_i): Likewise.
19887 * config/arc/constraints.md (Uex): New memory constraint.
19888 (Ucm): New define_constraint.
19889 * config/arc/predicates.md (long_immediate_loadstore_operand):
19890 Return 0 for MEM with cmem_address address.
19891 (cmem_address_0): New predicates.
19892 (cmem_address_1): Likewise.
19893 (cmem_address_2): Likewise.
19894 (cmem_address): Likewise.
19896 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19898 * config/rs6000/rs6000.c (machine_function): Rename
19899 insn_chain_scanned_p to spe_insn_chain_scanned_p.
19900 (rs6000_stack_info): Adjust.
19902 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
19903 Andrew Burgess <andrew.burgess@embecosm.com>
19905 * config/arc/constraints.md (Usd): Convert to define_constraint.
19909 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19912 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
19913 Add new peephole2 where the first insn is *mov<mode>_or instead of
19914 *mov<mode>_internal.
19916 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
19918 * tracer.c (bb_seen): Make static.
19920 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
19922 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
19923 support, setup defaults.
19924 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
19925 * config/arc/arc.c (arc_init): Add NPS400 support.
19926 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
19927 (TARGET_ARC700): NPS400 is also an ARC700.
19928 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
19930 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
19933 * config/nds32/nds32.md (casesi): Don't access the operands array
19936 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
19938 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
19939 (or $-1,reg peephole2): Ditto.
19940 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
19942 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19944 * doc/extend.texi (Common Function Attributes) [optimize]:
19945 Discourage use of the optimize attribute.
19947 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
19949 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
19950 special case builtin.
19951 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19952 ALTIVEC_BUILTIN_VEC_ADDE.
19953 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19954 support for ALTIVEC_BUILTIN_VEC_ADDE.
19955 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19956 for __builtin_vec_adde.
19958 2016-04-28 Jakub Jelinek <jakub@redhat.com>
19960 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
19961 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
19963 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19966 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19967 attributes): Document cilkplus_runtime.
19969 2016-04-28 Martin Jambor <mjambor@suse.cz>
19971 * tree-cfg.c (verify_expr): Verify that local declarations belong to
19972 this function. Call verify_expr on MEM_REFs and bases of other
19973 handled_components.
19975 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19977 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
19978 for WORD_REGISTER_OPERATIONS to runtime check.
19980 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
19982 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
19984 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
19986 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
19987 big-endian compilation.
19988 * config/arc/arc.md (addf3): Likewise.
19989 (subdf3): Likewise.
19990 (muldf3): Likewise.
19992 2016-04-28 Richard Biener <rguenther@suse.de>
19994 PR tree-optimization/70840
19995 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
19996 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
19997 Mark x * pow(x,c) -> pow(x,c+1) commutative.
19998 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
20000 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20002 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
20003 and explain why in a comment.
20005 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20007 * config/arc/arc.md (cpu_facility): Add fpx variant.
20008 (subdf3): Prohibit use reverse sub when assist operations option
20010 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
20011 instructions only when FPX is enabled.
20012 * testsuite/gcc.target/arc/trsub.c: New test.
20014 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20016 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
20017 mult_operator when calculating "type" attribute.
20018 (*fop_<mode>_1_i387): Ditto.
20019 (*fop_xf_1_i387): Ditto.
20020 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
20021 Use std::swap to swap operands. Use RTL expressions to generate
20024 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20025 Joern Rennecke <joern.rennecke@embecosm.com>
20027 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
20029 (emit_pic_move): Remove.
20030 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
20031 * config/arc/arc.c (emit_pic_move): Removed.
20032 (TARGET_HAVE_TLS): Define.
20033 (arc_conditional_register_usage): Test for arc_tp_regno.
20034 (arc_print_operand, arc_print_operand_address): Handle TLS
20036 (arc_needs_pcl_p): New function.
20037 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
20038 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
20039 (arc_raw_symbolic_reference_mentioned_p): Likewise.
20040 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
20041 (arc_legitimize_tls_address): Likewise.
20042 (DTPOFF_ZERO_SYM): Define.
20043 (arc_legitimize_pic_address): Make it static, handle TLS cases.
20044 (arc_output_pic_addr_const): Print TLS unspecs.
20045 (prepare_pic_move): New function, replaces emit_pic_move.
20046 (arc_legitimate_constant_p): Handle TLS unspecs.
20047 (arc_legitimate_address_p): Likewise.
20048 (arc_rewrite_small_data_p): Use assert for TLS constants.
20049 (prepare_move_operands): Use prepare_pic_move.
20050 (arc_legitimize_address): Legitimize tls addresses.
20051 (arc_epilogue_uses): Check for arc_tp_regno.
20052 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
20053 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
20055 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
20057 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
20058 %(arc_tls_extra_start_spec).
20059 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
20060 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
20062 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
20063 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
20064 (UNSPEC_TLS_OFF): Add.
20066 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
20067 (get_thread_pointersi): New patterns.
20068 * config/arc/arc.opt (mtp-regno): New option.
20069 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
20070 (move_dest_operand): Likewise.
20071 * configure: Regenerate.
20072 * configure.ac: Add arc*-*-* case to test for tls.
20073 * doc/invoke.texi (ARC options): Document mtp-regno.
20075 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
20077 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
20078 the new ARC HS SIMD instructions.
20079 (arc_preferred_simd_mode): New function.
20080 (arc_autovectorize_vector_sizes): Likewise.
20081 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20082 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20083 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
20084 (arc_init_builtins): Add new SIMD builtin types.
20085 (arc_split_move): Handle 64 bit vector moves.
20086 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
20087 (TARGET_PLUS_QMACW): Define.
20088 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
20089 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
20090 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
20091 (VSUBADD4H): New builtins.
20092 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
20093 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
20095 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
20096 Matthias Klose <doko@debian.org>
20098 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
20100 2016-04-28 Richard Biener <rguenther@suse.de>
20102 PR middle-end/70777
20103 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
20106 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
20108 * common/config/sh/sh-common.c: Remove SH5 support.
20109 * config/sh/constraints.md: Likewise.
20110 * config/sh/config/sh/elf.h: Likewise.
20111 * config/sh/linux.h: Likewise.
20112 * config/sh/netbsd-elf.h: Likewise.
20113 * config/sh/predicates.md: Likewise.
20114 * config/sh/sh-c.c: Likewise.
20115 * config/sh/sh-protos.h: Likewise.
20116 * config/sh/sh.c: Likewise.
20117 * config/sh/sh.h: Likewise.
20118 * config/sh/sh.md: Likewise.
20119 * config/sh/sh.opt: Likewise.
20120 * config/sh/sync.md: Likewise.
20121 * config/sh/sh64.h: Delete.
20122 * config/sh/shmedia.h: Likewise.
20123 * config/sh/shmedia.md: Likewise.
20124 * config/sh/sshmedia.h: Likewise.
20125 * config/sh/t-netbsd-sh5-64: Likewise.
20126 * config/sh/t-sh64: Likewise.
20127 * config/sh/ushmedia.h: Likewise.
20129 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
20131 * config/i386/i386.md (sign_extend to memory peephole2s): Use
20132 general_reg_operand instead of register_operand predicate.
20134 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20136 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
20138 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
20140 * match.pd (A - B > A, A + B < A): New transformations.
20142 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
20144 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
20145 which defaults to true. Emit an outer pair of parentheses only if
20146 EMIT_PARENS. When continuing a chain of && or || (or & or |),
20147 don't emit parentheses for the right-hand operand.
20149 2016-04-27 Jeff Law <law@redhat.com>
20151 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
20153 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20155 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
20156 (altivec_lvx_<mode>_internal): Document.
20157 (altivec_lvx_<mode>_2op): New define_insn.
20158 (altivec_lvx_<mode>_1op): Likewise.
20159 (altivec_lvx_<mode>_2op_si): Likewise.
20160 (altivec_lvx_<mode>_1op_si): Likewise.
20161 (altivec_stvx_<mode>): Remove.
20162 (altivec_stvx_<mode>_internal): Document.
20163 (altivec_stvx_<mode>_2op): New define_insn.
20164 (altivec_stvx_<mode>_1op): Likewise.
20165 (altivec_stvx_<mode>_2op_si): Likewise.
20166 (altivec_stvx_<mode>_1op_si): Likewise.
20167 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20168 Expand vec_ld and vec_st during parsing.
20169 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
20171 (altivec_expand_stvx_be): Likewise.
20172 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
20173 address-masking behavior in RTL.
20174 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
20175 address-masking behavior in RTL.
20176 (altivec_expand_builtin): Change builtin code arguments for calls
20177 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
20178 (insn_is_swappable_p): Avoid incorrect swap optimization in the
20179 presence of lvx/stvx patterns.
20180 (alignment_with_canonical_addr): New function.
20181 (alignment_mask): Likewise.
20182 (find_alignment_op): Likewise.
20183 (recombine_lvx_pattern): Likewise.
20184 (recombine_stvx_pattern): Likewise.
20185 (recombine_lvx_stvx_patterns): Likewise.
20186 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
20187 stvx patterns from expand.
20188 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
20190 (vector_altivec_store_<mode>): Likewise.
20192 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
20194 * config/aarch64/aarch64.md
20195 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
20196 remove the "fp" attributes.
20197 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
20198 add the "simd" attributes.
20199 (*movdf_aarch64): Likewise.
20200 (*movtf_aarch64): Remove the "fp" attributes.
20201 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
20202 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
20204 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20206 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
20207 rtx to rtx_code_label *.
20208 * rtl.h (maybe_set_first_label_num): Likewise.
20210 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20212 * df-core.c (df_add_problem): Make the problem param be const.
20213 (df_remove_problem): Make local "problem" be const.
20214 * df-problems.c (problem_RD): Make const.
20215 (problem_LR): Likewise.
20216 (problem_LIVE): Likewise.
20217 (problem_MIR): Likewise.
20218 (problem_CHAIN): Likewise.
20219 (problem_WORD_LR): Likewise.
20220 (problem_NOTE): Likewise.
20221 (problem_MD): Likewise.
20222 * df-scan.c (problem_SCAN): Likewise.
20223 * df.h (struct df_problem): Make field "dependent_problem" be
20225 (struct dataflow): Likewise for field "problem".
20226 (df_add_problem): Make param const.
20228 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20230 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
20231 inter-unit moves to/from vector registers are enabled. Do not disable
20234 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20236 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
20237 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
20239 (enum df_problem_id): ...this new enum.
20240 (struct df_problem): Convert field "id" from "int" to
20241 enum df_problem_id.
20243 2016-04-27 David Malcolm <dmalcolm@redhat.com>
20245 * rtl.def: Update comment for "things in the instruction chain" to
20246 reflect the removal of the leading "i" field for INSN_UID in
20247 r210360. Fix bogus apostrophe.
20249 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
20251 * config/i386/i386.md
20252 (lea arith with mem operand + setcc peephole2): Set operator mode.
20254 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
20257 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
20258 (dimode_scalar_to_vector_candidate_p): This.
20259 (timode_scalar_to_vector_candidate_p): New function.
20260 (scalar_to_vector_candidate_p): Likewise.
20261 (timode_check_non_convertible_regs): Likewise.
20262 (timode_remove_non_convertible_regs): Likewise.
20263 (remove_non_convertible_regs): Likewise.
20264 (remove_non_convertible_regs): Renamed to ...
20265 (dimode_remove_non_convertible_regs): This.
20266 (scalar_chain::~scalar_chain): Make it virtual.
20267 (scalar_chain::compute_convert_gain): Make it pure virtual.
20268 (scalar_chain::mark_dual_mode_def): Likewise.
20269 (scalar_chain::convert_insn): Likewise.
20270 (scalar_chain::convert_registers): Likewise.
20271 (scalar_chain::add_to_queue): Make it protected.
20272 (scalar_chain::emit_conversion_insns): Likewise.
20273 (scalar_chain::replace_with_subreg): Likewise.
20274 (scalar_chain::replace_with_subreg_in_insn): Likewise.
20275 (scalar_chain::convert_op): Likewise.
20276 (scalar_chain::convert_reg): Likewise.
20277 (scalar_chain::make_vector_copies): Likewise.
20278 (scalar_chain::convert_registers): New pure virtual function.
20279 (class dimode_scalar_chain): New class.
20280 (class timode_scalar_chain): Likewise.
20281 (scalar_chain::mark_dual_mode_def): Renamed to ...
20282 (dimode_scalar_chain::mark_dual_mode_def): This.
20283 (timode_scalar_chain::mark_dual_mode_def): New function.
20284 (timode_scalar_chain::convert_insn): Likewise.
20285 (dimode_scalar_chain::convert_registers): Likewise.
20286 (scalar_chain::compute_convert_gain): Renamed to ...
20287 (dimode_scalar_chain::compute_convert_gain): This.
20288 (scalar_chain::replace_with_subreg): Renamed to ...
20289 (dimode_scalar_chain::replace_with_subreg): This.
20290 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
20291 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
20292 (scalar_chain::make_vector_copies): Renamed to ...
20293 (dimode_scalar_chain::make_vector_copies): This.
20294 (scalar_chain::convert_reg): Renamed to ...
20295 (dimode_scalar_chain::convert_reg ): This.
20296 (scalar_chain::convert_op): Renamed to ...
20297 (dimode_scalar_chain::convert_op): This.
20298 (scalar_chain::convert_insn): Renamed to ...
20299 (dimode_scalar_chain::convert_insn): This.
20300 (scalar_chain::convert): Call convert_registers.
20301 (convert_scalars_to_vector): Change to scalar_chain pointer to
20302 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
20303 in 32-bit mode. Delete scalar_chain pointer. Call
20304 free_dominance_info in 64-bit mode.
20305 (pass_stv::gate): Remove TARGET_64BIT check.
20306 (ix86_option_override): Put the 64-bit STV pass before the CSE
20309 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
20311 * dwarf2out.h (struct dw_loc_descr_node): Remove the
20312 dw_loc_frame_offset field.
20313 * dwarf2out.c (new_loc_descr): Likewise.
20314 (resolve_args_picking_1): Turn the VISITED hash set into a
20315 FRAME_OFFSET hash map. Use it to associate a frame offset to
20316 visited nodes. Remove uses of the CHECKING_P macro.
20317 (resolve_args_picking): Update call to resolve_args_picking_1.
20319 2016-04-27 Martin Liska <mliska@suse.cz>
20321 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
20322 (free_loop_data): Release vuses of groups.
20324 2016-04-27 Bin Cheng <bin.cheng@arm.com>
20326 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
20327 instead of redundant use_id and boolean have_use_for.
20328 (struct iv_use): Change sub_id into group_id. Remove field next.
20329 Move fields: related_cands, n_map_members, cost_map and selected
20331 (struct iv_group): ... here. New structure.
20332 (struct iv_common_cand): Use structure declaration directly.
20333 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
20334 (MAX_CONSIDERED_USES): Rename macro to ...
20335 (MAX_CONSIDERED_GROUPS): ... here.
20336 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
20337 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
20338 (dump_uses): Rename to ...
20339 (dump_groups): ... here. Update all uses.
20340 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
20341 (find_induction_variables): Refactor format of dump information.
20342 (record_sub_use): Delete.
20343 (record_use): Update all uses.
20344 (record_group): New function.
20345 (record_group_use, find_interesting_uses_op): Call above functions.
20347 (find_interesting_uses_cond): Ditto.
20348 (group_compare_offset): New function.
20349 (split_all_small_groups): Rename to ...
20350 (split_small_address_groups_p): ... here. Update all uses.
20351 (split_address_groups): Update all uses.
20352 (find_interesting_uses): Refactor format of dump information.
20353 (add_candidate_1): Update all uses. Remove redundant check on iv,
20355 (add_candidate, record_common_cand): Remove redundant assert.
20356 (add_iv_candidate_for_biv): Update use.
20357 (add_iv_candidate_derived_from_uses): Update all uses.
20358 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
20359 (alloc_use_cost_map): Ditto.
20360 (set_use_iv_cost, get_use_iv_cost): Rename to ...
20361 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
20362 (determine_use_iv_cost_generic): Ditto.
20363 (determine_group_iv_cost_generic): Ditto.
20364 (determine_use_iv_cost_address): Ditto.
20365 (determine_group_iv_cost_address): Ditto.
20366 (determine_use_iv_cost_condition): Ditto.
20367 (determine_group_iv_cost_cond): Ditto.
20368 (determine_use_iv_cost): Ditto.
20369 (determine_group_iv_cost): Ditto.
20370 (set_autoinc_for_original_candidates): Update all uses.
20371 (find_iv_candidates): Update all uses. Refactor dump information.
20372 (determine_use_iv_costs): Ditto.
20373 (determine_iv_costs): Ditto.
20374 (iv_ca_cand_for_use): Rename to ...
20375 (iv_ca_cand_for_group): ... here. Update all uses.
20376 (iv_ca_add_use, iv_ca_add_group): Ditto.
20377 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
20378 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
20379 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
20380 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
20381 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
20382 (create_new_iv, adjust_iv_update_pos): Ditto.
20383 (rewrite_use_address): Delete.
20384 (rewrite_use_address_1): Rename to ...
20385 (rewrite_use_address): ... here.
20386 (rewrite_use_compare): Update all uses.
20387 (rewrite_use): Delete.
20388 (rewrite_uses): Rename to ...
20389 (rewrite_groups): ... here. Update all uses.
20390 (remove_unused_ivs, free_loop_data): Update all uses.
20391 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
20393 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20395 * rtlanal.c (nonzero_bits1): Convert preprocessor check
20396 for WORD_REGISTER_OPERATIONS to runtime check.
20398 2016-04-27 Richard Biener <rguenther@suse.de>
20401 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
20402 aggregate_value_p to determine if a function result is
20403 returned by reference.
20404 (ipa_pta_execute): Functions having their address taken are
20405 not automatically nonlocal.
20407 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20410 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
20411 * fold-const.c (operand_equal_p): If flag_checking and
20412 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
20413 and if it returns non-zero, assert iterative_hash_expr on both
20416 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20418 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
20420 2016-04-27 Nick Clifton <nickc@redhat.com>
20422 PR middle-end/49889
20423 * varasm.c (merge_weak): Generate an error if an attempt is made
20424 to convert a non-weak static function into a weak, public function.
20426 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20428 * params.def (MAX_PARTITION_SIZE): New param.
20429 * doc/invoke.texi: Document lto-max-partition.
20431 2016-04-27 Richard Biener <rguenther@suse.de>
20434 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
20435 function cummulating used_from_other_partition, externally_visible
20436 and force_output from aliases.
20437 (refered_from_nonlocal_var): Likewise.
20438 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
20439 node flags properly.
20441 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
20443 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
20444 (-Wmemset-elt-size): New item.
20446 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
20449 * stor-layout.h (internal_reference_types): Delete.
20450 * stor-layout.c (reference_types_internal): Likewise.
20451 (internal_reference_types): Likewise.
20452 (layout_type) <REFERENCE_TYPE>: Adjust.
20454 2016-04-27 Jakub Jelinek <jakub@redhat.com>
20457 * tree.h (inchash::add_expr): Add FLAGS argument.
20458 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
20459 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
20460 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
20461 Formatting fix. Adjust recursive calls. For tcc_comparison,
20462 if swap_tree_comparison (code) is smaller than code, hash that
20463 and arguments in the other order. Hash CONVERT_EXPR the same
20464 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
20465 of ADDR_EXPR of decl as the decl itself. Add or remove
20466 OEP_ADDRESS_OF from recursive flags as needed. For
20467 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
20468 operands commutatively and only the third one normally.
20469 For internal CALL_EXPR hash in CALL_EXPR_IFN.
20471 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
20473 * config/rtems.h (LIB_SPEC): Add -latomic.
20475 2016-04-27 Joel Sherrill <joel@rtems.org>
20477 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
20478 xilink.ld and flags not relevant to RTEMS.
20480 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20482 * toplev.c (backend_init_target): Avoid calling init_reload when using
20485 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20487 * reorg.c (try_merge_delay_insns): Declare i and j inside the
20488 for loops rather than one for the whole function.
20490 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20492 * match.pd (X + CST CMP X): New transformation.
20494 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
20496 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
20497 * fold-const.c (fold_binary_loc): Remove 2 transformations
20498 superseded by match.pd.
20499 * match.pd (x+x -> x*2): Generalize to integers.
20501 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
20503 * config/i386/i386.md (operation on memory peephole): Duplicate an
20504 existing peephole and adapt it to match lea rather than an operation
20507 PR rtl-optimization/57193
20508 * opts.c (default_options_table): Add OPT_frename_registers at -O2
20510 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
20512 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20514 * tree-if-conv.c (any_pred_load_store): New static variable.
20515 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
20516 any_pred_load_store instead of and_mask_load_store.
20517 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
20518 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
20519 (combine_blocks, tree_if_conversion): Ditto.
20521 2016-04-26 Bin Cheng <bin.cheng@arm.com>
20523 PR tree-optimization/70771
20524 PR tree-optimization/70775
20525 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
20526 virtual PHI nodes. Delete parameter.
20527 (if_convertible_loop_p_1): Delete argument to above function.
20528 (predicate_all_scalar_phis): Delete code handling single-argument
20530 (tree_if_conversion): Mark and update virtual SSA.
20532 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20535 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
20536 (x86_elf_aligned_common): Rename to ...
20537 (x86_elf_aligned_decl_common): ... this.
20538 Add decl arg. Switch to .lbss for largecomm object. Use
20539 LARGECOMM_SECTION_ASM_OP.
20540 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
20542 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
20543 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
20545 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20546 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
20548 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20551 * config/i386/i386.c (SECTION_LARGE): Define.
20552 (x86_64_elf_select_section): Set it for large data/bss sections.
20553 Only clear SECTION_WRITE for .lrodata.
20554 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
20556 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
20557 * varasm.c (default_elf_asm_named_section): Grow flagchars.
20558 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
20560 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
20561 * doc/tm.texi: Regenerate.
20563 2016-04-26 Jakub Jelinek <jakub@redhat.com>
20566 * configure.ac (--enable-checking): Document extra flag, for
20567 non-release builds default to --enable-checking=yes,extra.
20568 If misc checking and extra checking, define CHECKING_P to 2 instead
20570 * common.opt (fchecking=): Add.
20571 * doc/invoke.texi (-fchecking=): Document.
20572 * doc/install.texi: Document --enable-checking changes.
20573 * configure: Regenerated.
20574 * config.in: Regenerated.
20576 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20578 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
20579 attribute instead of which_alternative.
20580 * config/i386/sse.md (*mov<mode>_internal): Ditto.
20581 Use EXT_REX_SSE_REG_P where appropriate.
20583 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20585 * config/i386/predicates.md (const0_operand): Do not match
20586 const_wide_int code.
20587 (const1_operand): Ditto.
20589 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20591 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
20592 for SSE constm1 operands and TARGET_AVX512VL.
20593 (*movti_internal): Ditto.
20594 (*mov<mode>_or): Use constm1_operand predicate.
20595 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
20596 for SSE vector_all_ones operands and TARGET_AVX512VL.
20597 * config/i386/predicates.md (constm1_operand): New predicate.
20598 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
20599 emission of constant -1 load.
20601 2016-04-25 Jason Merrill <jason@redhat.com>
20603 * gdbinit.in: Skip is-a.h.
20605 * attribs.c (register_scoped_attributes): Fix logic.
20606 * attribs.h: Declare register_scoped_attributes.
20608 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20610 * config/rs6000/rs6000-builtin.def: Correct pasto error for
20611 stxvd2x and stxvw4x built-in functions.
20613 2016-04-25 DJ Delorie <dj@redhat.com>
20615 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
20616 (ashrhi3): Likewise.
20617 (lshrhi3): Likewise.
20619 2016-04-25 Richard Biener <rguenther@suse.de>
20621 PR tree-optimization/70780
20622 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
20623 wasn't visited yet.
20624 (compute_antic): Mark blocks with abnormal preds as visited as
20625 they have a final empty antic-in solution already.
20627 2016-04-25 Michael Collison <michael.collison@linaro.org>
20629 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
20631 2016-04-25 Michael Collison <michael.collison@linaro.org>
20633 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
20634 mode is VQI to improve mixed mode vectorization.
20635 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
20636 define_insn to match low half of signed vaddw.
20637 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
20638 define_insn to match high half of signed vaddw.
20639 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
20640 define_insn to match low half of unsigned vaddw.
20641 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
20642 define_insn to match high half of unsigned vaddw.
20643 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
20644 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20645 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
20647 (arm_simd_check_vect_par_cnst_half_p): Likewise.
20648 * config/arm/predicates.md (vect_par_constant_high): Support
20649 big endian and simplify by calling
20650 arm_simd_check_vect_par_cnst_half
20651 (vect_par_constant_low): Likewise.
20653 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
20655 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
20656 predicate for operand 2.
20658 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
20659 H.J. Lu <hongjiu.lu@intel.com>
20661 * config/i386/i386-protos.h (standard_sse_constant_p): Add
20662 machine_mode argument.
20663 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
20664 constm1_rtx operands. For VOIDmode constants, get mode from
20665 pred_mode. Check mode size if the mode is supported by ABI.
20666 (standard_sse_constant_opcode): Do not use standard_constant_p.
20667 Strictly check ABI support for all-ones operands.
20668 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
20669 immediates. Update calls to standard_sse_constant_p.
20670 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
20671 (ix86_rtx_costs): Ditto.
20672 * config/i386/i386.md (*movxi_internal_avx512f): Use
20673 nonimmediate_or_sse_const_operand instead of vector_move_operand.
20674 Use (v,BC) alternative instead of (v,C). Use register_operand
20675 checks instead of MEM_P.
20676 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
20677 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
20678 isa attribute. Use register_operand checks instead of MEM_P.
20679 (*movti_internal): Use nonimmediate_or_sse_const_operand for
20680 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
20681 alternative and corresponding sse2 isa attribute.
20682 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
20683 to standard_sse_constant_p.
20684 (FP constant splitters): Ditto.
20685 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
20687 * config/i386/predicates.md (constm1_operand): Remove.
20688 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
20689 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
20690 vector_all_ones_operand instead of constm1_operand.
20692 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20694 * print-rtl.c (print_rtx_insn_vec): New function.
20695 * print-rtl.h: New prototype.
20696 * store-motion.c (struct st_expr): Make avail_stores a vector.
20697 (st_expr_entry): Adjust.
20698 (free_st_expr_entry): Likewise.
20699 (print_store_motion_mems): Likewise.
20700 (find_moveable_store): Likewise.
20701 (compute_store_table): Likewise.
20702 (delete_store): Likewise.
20703 (build_store_vectors): Likewise.
20705 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20707 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
20709 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20711 * vec.h (vec_safe_contains): New function.
20712 (vec::contains): Likewise.
20713 (vec::begin): Likewise.
20714 (vec::end): Likewise.
20716 2016-04-23 Jakub Jelinek <jakub@redhat.com>
20719 * cfgexpand.c (expand_stack_vars): Fix typo.
20721 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20723 * system.h (list, map, set, vector): Include conditionally.
20724 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
20725 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
20726 * ipa-icf.c (INCLUDE_LIST): Define.
20727 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
20728 * config/sh/sh.c (INCLUDE_VECTOR): Define.
20729 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
20730 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
20731 * cp/logic.cc (INCLUDE_LIST): Define.
20732 * fortran/trans-common.c (INCLUDE_MAP): Define.
20734 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
20736 * auto-profile.c: Remove <string.h> include.
20737 * ipa-icf-gimple.c: Remove <list> include.
20738 * diagnostic.c: Remove <new> include.
20739 * genmatch.c: Likewise.
20740 * pretty-print.c: Likewise.
20741 * toplev.c: Likewise
20742 * c/c-objc-common.c: Likewise.
20743 * cp/error.c: Likewise.
20744 * fortran/error.c: Likewise.
20746 2016-04-22 Richard Biener <rguenther@suse.de>
20748 * lto-streamer-in.c (input_ssa_names): Do not allocate
20749 GIMPLE_NOP for all SSA names.
20750 * lto-streamer-out.c (output_ssa_names): Do not output
20751 SSA names that should have been released.
20753 2016-04-22 Richard Biener <rguenther@suse.de>
20755 PR tree-optimization/70740
20756 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
20759 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
20762 * config/i386/predicates.md (call_insn_operand): Replace
20763 sibcall_memory_operand with memory_operand.
20765 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
20767 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
20768 has_single_use() tests.
20769 (register_edge_assert_for_1): Likewise.
20770 (find_assert_locations_1): Check the liveness bitmap instead of
20771 checking has_single_use().
20773 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
20776 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
20777 Extract AVX-512BW constraint from AVX.
20779 2016-04-21 Richard Biener <rguenther@suse.de>
20781 PR tree-optimization/70725
20782 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
20783 for phi_convertible_by_degenerating_args.
20784 (predicate_all_scalar_phis): Handle single-argument PHIs.
20786 2016-04-21 Richard Biener <rguenther@suse.de>
20788 PR middle-end/70747
20789 * fold-const.c (fold_comparison): Return properly typed
20792 2016-04-21 Bin Cheng <bin.cheng@arm.com>
20794 PR tree-optimization/70715
20795 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
20796 after expanding BASE using expand_simple_operations.
20798 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
20800 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
20801 New transformations.
20803 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
20805 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
20807 2016-04-20 Jan Hubicka <jh@suse.cz>
20809 * ipa-inline.c (can_inline_edge_p): Pass caller info to
20810 ultiimate_alias_target.
20811 (update_callee_keys): Likewise.
20812 (lookup_recursive_calls): Likewise.
20813 (speculation_useful_p): Likewise.
20815 2016-04-20 Jan Hubicka <jh@suse.cz>
20818 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
20819 (set_nothrow_flag_1): ... this; handle interposition correctly;
20820 recurse on aliases and thunks.
20821 (cgraph_node::set_nothrow_flag): New.
20822 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
20823 functions compiled with non-call exceptions that binds to current
20825 (propagate_nothrow): Be safe WRT interposition.
20826 * cgraph.h (set_nothrow_flag): Update prototype.
20828 2016-04-18 Jan Hubicka <jh@suse.cz>
20830 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20831 max_loop_iterations_int.
20832 (tree_unswitch_outer_loop): Likewise.
20834 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20836 PR tree-optimization/69489
20837 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
20838 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
20839 Revise dump message.
20840 (if_convertible_bb_p): Remove check on edge count of basic block's
20843 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20845 PR tree-optimization/56625
20846 PR tree-optimization/69489
20847 * tree-data-ref.h (DR_INNERMOST): New macro.
20848 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
20849 hashing struct innermost_loop_behavior.
20850 (ref_DR_map): Remove.
20851 (innermost_DR_map): New map.
20852 (baseref_DR_map): Revise comment.
20853 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
20854 to innermost_DR_map accroding to its innermost loop behavior.
20855 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
20856 to its innermost loop behavior.
20857 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
20858 Add initialization for innermost_DR_map. Record memory reference
20859 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
20860 have innermost loop behavior.
20861 (if_convertible_loop_p): Remove release for ref_DR_map. Release
20864 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
20866 * config/i386/i386.md (*lea<mode>_general_1): Rename from
20867 *lea_general_1. Use explicit SWI12 mode interator.
20868 (*lea<mode>_general_2): Rename from *lea_general_2.
20869 Use explicit SWI12 mode interator.
20870 (*lea<mode>_general_3): Rename from *lea_general_3.
20871 Use explicit SWI12 mode interator.
20872 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
20873 Use explicit SWI12 mode interator.
20874 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
20875 Use explicit SWI48 mode interator.
20877 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
20879 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20880 Short-cut unaligned load and store cases. Handle all integer
20882 (ix86_expand_vector_move_misalign): Short-cut unaligned load
20883 and store cases. Call ix86_avx256_split_vector_move_misalign
20884 directly without checking mode class.
20886 2016-04-20 Andrew Pinski <apinski@cavium.com>
20887 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20890 * config/aarch64/aarch64.md (sibcall): Force call
20891 address to be DImode for ILP32.
20892 (sibcall_value): Likewise.
20894 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
20896 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
20898 2016-04-20 Richard Biener <rguenther@suse.de>
20900 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
20901 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
20902 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
20903 (maybe_push_res_to_seq): Adjust.
20904 * gimple-fold.c (maybe_build_generic_op): Likewise.
20906 2016-04-20 Marek Polacek <polacek@redhat.com>
20908 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
20911 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
20913 * config/i386/sse.md (vec_unpacks_lo_hi): Always
20914 use kmovw to support AVX512F target.
20916 2016-04-20 Bin Cheng <bin.cheng@arm.com>
20918 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
20920 2016-04-20 Marek Polacek <polacek@redhat.com>
20922 PR tree-optimization/70725
20923 * tree-if-conv.c (is_false_predicate): New function.
20924 (predicate_mem_writes): Use it.
20926 2016-04-20 Richard Biener <rguenther@suse.de>
20928 PR tree-optimization/70726
20929 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
20930 shift amounts from a pattern stmt operand.
20932 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20935 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
20936 stack_restore_from_fpr pattern when restoring r15.
20937 (s390_optimize_prologue): Strip away the memory barrier in the
20938 parallel when trying to get rid of restore insns.
20939 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
20940 definition for loading the stack pointer from an FPR. Compared to
20941 the normal move insn this pattern includes a full memory barrier.
20943 2016-04-19 Jakub Jelinek <jakub@redhat.com>
20945 PR middle-end/70680
20946 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
20947 implicitly linear or lastprivate iterator on the outer context.
20949 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
20951 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
20953 * config/i386/i386.md (ssememalign): Removed.
20954 * config/i386/sse.md: Remove ssememalign attribute from patterns.
20956 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
20959 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
20960 const short * to __builtin_ia32_loaddquhi512_mask.
20961 (_mm512_maskz_loadu_epi16): Likewise.
20962 (_mm512_mask_storeu_epi16): Pass short * to
20963 __builtin_ia32_storedquhi512_mask.
20964 (_mm512_mask_loadu_epi8): Pass const char * to
20965 __builtin_ia32_loaddquqi512_mask.
20966 (_mm512_maskz_loadu_epi8): Likewise.
20967 (_mm512_mask_storeu_epi8): Pass char * to
20968 __builtin_ia32_storedquqi512_mask.
20969 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
20970 const double * to __builtin_ia32_loadupd512_mask.
20971 (_mm512_mask_loadu_pd): Likewise.
20972 (_mm512_maskz_loadu_pd): Likewise.
20973 (_mm512_storeu_pd): Pass double * to
20974 __builtin_ia32_storeupd512_mask.
20975 (_mm512_mask_storeu_pd): Likewise.
20976 (_mm512_loadu_ps): Pass const float * to
20977 __builtin_ia32_loadups512_mask.
20978 (_mm512_mask_loadu_ps): Likewise.
20979 (_mm512_maskz_loadu_ps): Likewise.
20980 (_mm512_storeu_ps): Pass float * to
20981 __builtin_ia32_storeups512_mask.
20982 (_mm512_mask_storeu_ps): Likewise.
20983 (_mm512_mask_loadu_epi64): Pass const long long * to
20984 __builtin_ia32_loaddqudi512_mask.
20985 (_mm512_maskz_loadu_epi64): Likewise.
20986 (_mm512_mask_storeu_epi64): Pass long long *
20987 to __builtin_ia32_storedqudi512_mask.
20988 (_mm512_loadu_si512): Pass const int * to
20989 __builtin_ia32_loaddqusi512_mask.
20990 (_mm512_mask_loadu_epi32): Likewise.
20991 (_mm512_maskz_loadu_epi32): Likewise.
20992 (_mm512_storeu_si512): Pass int * to
20993 __builtin_ia32_storedqusi512_mask.
20994 (_mm512_mask_storeu_epi32): Likewise.
20995 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
20996 char * to __builtin_ia32_storedquqi256_mask.
20997 (_mm_mask_storeu_epi8): Likewise.
20998 (_mm256_mask_loadu_epi16): Pass const short * to
20999 __builtin_ia32_loaddquhi256_mask.
21000 (_mm256_maskz_loadu_epi16): Likewise.
21001 (_mm_mask_loadu_epi16): Pass const short * to
21002 __builtin_ia32_loaddquhi128_mask.
21003 (_mm_maskz_loadu_epi16): Likewise.
21004 (_mm256_mask_loadu_epi8): Pass const char * to
21005 __builtin_ia32_loaddquqi256_mask.
21006 (_mm256_maskz_loadu_epi8): Likewise.
21007 (_mm_mask_loadu_epi8): Pass const char * to
21008 __builtin_ia32_loaddquqi128_mask.
21009 (_mm_maskz_loadu_epi8): Likewise.
21010 (_mm256_mask_storeu_epi16): Pass short * to.
21011 __builtin_ia32_storedquhi256_mask.
21012 (_mm_mask_storeu_epi16): Pass short * to.
21013 __builtin_ia32_storedquhi128_mask.
21014 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
21015 const double * to __builtin_ia32_loadupd256_mask.
21016 (_mm256_maskz_loadu_pd): Likewise.
21017 (_mm_mask_loadu_pd): Pass onst double * to
21018 __builtin_ia32_loadupd128_mask.
21019 (_mm_maskz_loadu_pd): Likewise.
21020 (_mm256_mask_storeu_pd): Pass double * to
21021 __builtin_ia32_storeupd256_mask.
21022 (_mm_mask_storeu_pd): Pass double * to
21023 __builtin_ia32_storeupd128_mask.
21024 (_mm256_mask_loadu_ps): Pass const float * to
21025 __builtin_ia32_loadups256_mask.
21026 (_mm256_maskz_loadu_ps): Likewise.
21027 (_mm_mask_loadu_ps): Pass const float * to
21028 __builtin_ia32_loadups128_mask.
21029 (_mm_maskz_loadu_ps): Likewise.
21030 (_mm256_mask_storeu_ps): Pass float * to
21031 __builtin_ia32_storeups256_mask.
21032 (_mm_mask_storeu_ps): ass float * to
21033 __builtin_ia32_storeups128_mask.
21034 (_mm256_mask_loadu_epi64): Pass const long long * to
21035 __builtin_ia32_loaddqudi256_mask.
21036 (_mm256_maskz_loadu_epi64): Likewise.
21037 (_mm_mask_loadu_epi64): Pass const long long * to
21038 __builtin_ia32_loaddqudi128_mask.
21039 (_mm_maskz_loadu_epi64): Likewise.
21040 (_mm256_mask_storeu_epi64): Pass long long * to
21041 __builtin_ia32_storedqudi256_mask.
21042 (_mm_mask_storeu_epi64): Pass long long * to
21043 __builtin_ia32_storedqudi128_mask.
21044 (_mm256_mask_loadu_epi32): Pass const int * to
21045 __builtin_ia32_loaddqusi256_mask.
21046 (_mm256_maskz_loadu_epi32): Likewise.
21047 (_mm_mask_loadu_epi32): Pass const int * to
21048 __builtin_ia32_loaddqusi128_mask.
21049 (_mm_maskz_loadu_epi32): Likewise.
21050 (_mm256_mask_storeu_epi32): Pass int * to
21051 __builtin_ia32_storedqusi256_mask.
21052 (_mm_mask_storeu_epi32): Pass int * to
21053 __builtin_ia32_storedqusi128_mask.
21054 * config/i386/i386-builtin-types.def (PCSHORT): New.
21055 (PINT64): Likewise.
21056 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
21057 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
21058 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
21059 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
21060 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
21061 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
21062 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
21063 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
21064 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
21065 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
21066 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
21067 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
21068 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
21069 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
21070 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
21071 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
21072 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
21073 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
21074 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
21075 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
21076 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
21077 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
21078 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
21079 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
21080 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
21081 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
21082 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
21083 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
21084 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
21085 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
21086 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
21087 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
21088 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
21089 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
21090 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
21091 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
21092 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
21093 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
21094 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
21095 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
21096 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
21097 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
21098 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
21099 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
21100 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
21101 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
21102 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
21103 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
21104 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
21106 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
21107 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
21109 (ix86_expand_vector_move_misalign): Likewise.
21110 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
21111 to scalar function prototype for unaligned load/store builtins.
21112 (ix86_expand_special_args_builtin): Updated.
21113 * config/i386/sse.md (UNSPEC_LOADU): Removed.
21114 (UNSPEC_STOREU): Likewise.
21115 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
21116 (VI_ULOADSTORE_F_AVX512VL): Likewise.
21117 (ssescalarsize): Handle V4TI, V2TI and V1TI.
21118 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21119 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21120 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
21121 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
21122 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
21123 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
21124 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
21125 (<avx512>_storedqu<mode>_mask): Likewise.
21126 (*sse4_2_pcmpestr_unaligned): Likewise.
21127 (*sse4_2_pcmpistr_unaligned): Likewise.
21128 (*mov<mode>_internal): Renamed to ...
21129 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
21130 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
21131 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
21132 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
21134 2016-04-19 Richard Biener <rguenther@suse.de>
21136 PR tree-optimization/70171
21137 * tree-ssa-phiprop.c: Include stor-layout.h.
21138 (phiprop_insert_phi): Handle the aggregate copy case.
21139 (propagate_with_phi): Likewise.
21141 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
21143 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
21144 instead of simplify_gen_subreg (... , 0).
21145 (ix86_delegitimize_address): Ditto.
21146 (ix86_split_divmod): Ditto.
21147 (ix86_split_copysign_const): Ditto.
21148 (ix86_split_copysign_var): Ditto.
21149 (ix86_expand_args_builtin): Ditto.
21150 (ix86_expand_round_builtin): Ditto.
21151 (ix86_expand_special_args_builtin): Ditto.
21152 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
21153 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
21154 (udivmodqi4): Ditto.
21155 (absneg splitters): Ditto.
21156 (*jcc_bt<mode>_1): Ditto.
21158 2016-04-19 Richard Biener <rguenther@suse.de>
21160 PR tree-optimization/70724
21161 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
21162 restoring out from ...
21163 (free_scc_vn): ... here.
21164 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
21165 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
21167 (pass_fre::execute): Restore SSA info.
21169 2016-04-19 Richard Biener <rguenther@suse.de>
21171 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
21172 * gimple-walk.c (walk_gimple_op): Initialize it.
21173 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
21174 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
21175 remapping SSA names of defs.
21176 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
21179 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
21181 PR middle-end/70689
21182 * lra-constraints.c (equiv_substition_p): New.
21183 (process_alt_operands): Use it.
21184 (swap_operands): Swap it.
21185 (curr_insn_transform): Update it.
21187 2016-04-18 Michael Matz <matz@suse.de>
21189 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
21190 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
21191 * tree-core.h (tree_type_common.align): Use bit-field.
21192 (tree_type_common.spare): New.
21193 (tree_decl_common.off_align): Make smaller.
21194 (tree_decl_common.align): Use bit-field.
21196 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
21197 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
21198 (scan_sharing_clauses): Ditto.
21199 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21200 (omp_finish_file): Ditto.
21201 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
21202 (layout_decl): Ditto.
21203 (relayout_decl): Ditto.
21204 (finalize_record_size): Use SET_TYPE_ALIGN.
21205 (finalize_type_size): Ditto.
21206 (finish_builtin_struct): Ditto.
21207 (layout_type): Ditto.
21208 (initialize_sizetypes): Ditto.
21209 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
21210 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
21211 (lookup_field_for_decl): Use SET_DECL_ALIGN.
21212 (get_chain_field): Ditto.
21213 (get_trampoline_type): Ditto.
21214 (get_nl_goto_field): Ditto.
21215 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
21217 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
21218 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
21219 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21220 (build_qualified_type): Use SET_TYPE_ALIGN.
21221 (build_aligned_type, build_range_type_1): Ditto.
21222 (build_atomic_base): Ditto.
21223 (build_common_tree_nodes): Ditto.
21224 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
21225 (expand_one_stack_var_at): Ditto.
21226 * coverage.c (build_var): Use SET_DECL_ALIGN.
21227 * except.c (init_eh): Ditto.
21228 * function.c (assign_parm_setup_block): Ditto.
21229 * symtab.c (increase_alignment_1): Ditto.
21230 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
21231 * tree-vect-stmts.c (ensure_base_align): Ditto.
21232 * varasm.c (align_variable): Ditto.
21233 (assemble_variable): Ditto.
21234 (build_constant_desc): Ditto.
21235 (output_constant_def_contents): Ditto.
21237 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
21238 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
21239 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
21240 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
21241 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
21243 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
21246 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
21247 replace %vmovsd with "%vmovq".
21248 (vec_concatv2df): Likewise.
21250 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
21252 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
21253 (*vec_extractv2si_0): Ditto.
21254 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
21255 (zero_extended_scalar_load_operand splitters): Ditto.
21256 (vec_extract splitters): Ditto.
21257 (*vec_extractv4si_0_zext): Ditto.
21258 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
21259 and lowpart_subreg.
21260 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
21261 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
21262 (*sse4_1_extractps): Use lowpart_subreg.
21263 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
21265 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21267 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
21269 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
21270 Mention Solaris 11 packaging changes.
21271 Update gas and gld requirements.
21272 Remove reference to pre-Solaris 10 bug.
21273 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
21275 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
21278 2016-04-17 Jan Hubicka <jh@suse.cz>
21280 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
21281 max_loop_iterations_int.
21283 2016-04-18 Richard Biener <rguenther@suse.de>
21285 PR tree-optimization/43434
21286 * tree-ssa-structalias.c (struct vls_data): New.
21287 (visit_loadstore): Handle all pointer-based accesses.
21288 (compute_dependence_clique): Compute a bitmap of restrict tags
21289 assigned bases and pass it to visit_loadstore.
21291 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
21294 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
21295 armv8.1-a and armv8.1-a+crc.
21297 2016-04-18 Richard Biener <rguenther@suse.de>
21299 PR tree-optimization/70701
21300 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
21301 references after translating through a memcpy.
21303 2016-04-18 Richard Biener <rguenther@suse.de>
21305 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
21306 (compute_antic): ... here. For partial antic use regular
21307 postorder and scrap iteration.
21308 (compute_partial_antic_aux): Remove unused return value.
21309 (init_pre): Do not allocate postorder.
21310 (fini_pre): Do not free postorder.
21312 2016-04-18 Richard Biener <rguenther@suse.de>
21314 PR middle-end/37870
21315 * expmed.c (extract_bit_field_1): Remove broken case
21316 using a wider MODE_INT mode.
21318 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
21320 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
21321 unless compiling with at least GCC-4.8.
21323 2016-04-17 Jan Hubicka <jh@suse.cz>
21326 * graphite.c (graphite_finalize): Update call to
21327 tree_estimate_probability.
21328 * predict.h (tree_estimate_probability): Update prototype.
21330 2016-04-17 Jan Hubicka <jh@suse.cz>
21332 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
21333 (tree_estimate_probability): Likewise.
21334 (pass_profile::execute): Update.
21335 (report_predictor_hitrates): New function.
21336 * profile.c (compute_branch_probabilities): Use it.
21337 * predict.h (report_predictor_hitrates): Declare.
21339 2016-04-17 Jan Hubicka <jh@suse.cz>
21342 * cgraph.h (cgraph_node::set_const_flag,
21343 cgraph_node::set_pure_flag): Update prototype to return bool;
21345 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
21346 of interposable symbol are interposable, too.
21347 (cgraph_set_const_flag_1): Rename to ...
21348 (set_const_flag_1): ... this one; change to self recursive function
21349 instead of call_for_symbol_thunks_and_aliases. Handle correctly
21350 clearnig the flag in all variants and also virtual thunks of const
21351 functions are pure; track if any change was done.
21352 (cgraph_node::set_const_flag): Update.
21353 (struct set_pure_flag_info): New struct.
21354 (cgraph_set_pure_flag_1): Rename to ...
21355 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
21356 rather than pointer encoded flags; track if any changes was done;
21357 handle correctly clearning flag and setting flag of aliases already
21359 (cgraph_node::set_pure_flag): Update.
21360 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
21362 2016-04-17 Tom de Vries <tom@codesourcery.com>
21365 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
21366 backslash in label.
21368 2016-04-17 Tom de Vries <tom@codesourcery.com>
21370 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
21371 '{}<> ' as escape-for-record.
21373 2016-04-17 Tom de Vries <tom@codesourcery.com>
21375 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
21378 2016-04-17 Tom de Vries <tom@codesourcery.com>
21381 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
21382 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
21383 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
21384 * passes.c (finish_optimization_passes): Only call
21385 finish_graph_dump_file if dfi->graph_dump_initialized.
21386 (execute_function_dump, pass_init_dump_file): Use
21387 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
21389 2016-04-17 Tom de Vries <tom@codesourcery.com>
21391 PR tree-optimization/70256
21392 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
21393 (debug_varmap): New function.
21395 2016-04-17 Tom de Vries <tom@codesourcery.com>
21398 * passes.c (pass_manager::register_pass): Propagate pflags.
21400 2016-04-17 Tom de Vries <tom@codesourcery.com>
21403 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
21404 * passes.c (pass_manager::pass_manager): Declare and init p_start in
21405 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
21406 check if it's equal to p_start.
21407 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
21409 2016-04-15 Jan Hubicka <jh@suse.cz>
21412 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
21413 function does not bind to current def.
21414 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
21415 handle conservatively calls to functions that does not need to bind
21417 (check_call): Update call of worse_state.
21418 (ignore_edge_for_nothrow): Update.
21419 (ignore_edge_for_pure_const): Likewise.
21420 (propagate_pure_const): Update calls to worse_state.
21421 (skip_function_for_local_pure_const): Reformat comments.
21423 2016-04-15 Jan Hubicka <jh@suse.cz>
21426 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
21427 (cgraph_node::function_symbol): Likewise.
21428 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21429 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
21430 (symtab_node::ultimate_alias_target): Add REF parameter.
21431 (symtab_node::binds_to_current_def_p): Declare.
21432 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
21433 (cgraph_node::function_symbol): Likewise.
21434 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21435 (cgraph_node::get_availability): Likewise.
21436 (cgraph_edge::binds_to_current_def_p): New inline function.
21437 (varpool_node::get_availability): Add REF parameter.
21438 (varpool_node::ultimate_alias_target): Likewise.
21439 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
21440 (symtab_node::binds_to_current_def_p): Likewise.
21441 * varpool.c (varpool_node::get_availability): Likewise.
21443 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21446 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
21447 Fix mode size check.
21449 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21451 * BASE-VER: Set to 7.0.0.
21453 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
21455 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
21457 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21459 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
21460 architecture revisions.
21462 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
21464 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
21465 * config/i386/i386.c (ix86_using_red_zone): No longer static.
21466 * config/i386/i386.md (stack decrement to push peepholes): Guard
21467 with !x86_using_red_zone ().
21469 2016-04-15 Jakub Jelinek <jakub@redhat.com>
21472 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
21473 to dump_generic_node.
21474 (NIY): Pass also flags to do_niy.
21476 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
21478 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
21479 (simd_clone_vector_of_formal_parm_types)
21480 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
21481 (simd_clone_mangle, simd_clone_create)
21482 (simd_clone_adjust_return_type, create_tmp_simd_array)
21483 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
21484 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
21485 (ipa_simd_modify_function_body, simd_clone_linear_addend)
21486 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
21487 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
21488 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
21489 * omp-simd-clone.c: ... this new file.
21490 (simd_clone_vector_of_formal_parm_types): Make it static.
21491 * Makefile.in (OBJS): Add omp-simd-clone.o.
21493 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
21496 * config/i386/sse.md: Use proper memory operand modifiers.
21499 2016-04-15 Richard Biener <rguenther@suse.de>
21500 Alan Modra <amodra@gmail.com>
21502 PR tree-optimization/70130
21503 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
21504 when alignment stays not the same and no not use the realign
21507 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21510 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21511 direct move handlers for KFmode. Change TFmode handlers test from
21512 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
21514 2016-04-14 Jakub Jelinek <jakub@redhat.com>
21517 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
21518 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
21519 (inlined_polymorphic_ctor_dtor_block_p): Use it.
21520 * tree-ssa-live.c (remove_unused_scope_block_p): When
21521 in_ctor_dtor_block, avoid discarding not just BLOCKs with
21522 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
21523 block_ultimate_origin is FUNCTION_DECL.
21524 (remove_unused_locals): If current_function_decl is
21525 polymorphic_ctor_dtor_p, pass initial true to
21526 remove_unused_scope_block_p' is_ctor_dtor_block.
21528 2016-04-14 Martin Sebor <msebor@redhat.com>
21533 * doc/extend.texi (Variable Length): Revert.
21535 2016-04-14 Marek Polacek <polacek@redhat.com>
21536 Jan Hubicka <hubicka@ucw.cz>
21539 * tree.c (verify_type): Disable the canonical type of main variant
21542 2016-04-14 Jason Merrill <jason@redhat.com>
21544 * cfgexpand.c, expr.c: Revert previous change.
21546 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
21548 PR middle-end/70643
21549 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
21550 when building a mem ref for the incoming reduction variable.
21552 2016-04-14 Richard Biener <rguenther@suse.de>
21554 PR tree-optimization/70614
21555 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
21556 loop if the evolution dropped to chrec_dont_know.
21557 (interpret_condition_phi): Likewise.
21559 2016-04-14 Richard Biener <rguenther@suse.de>
21561 PR tree-optimization/70623
21562 * tree-ssa-pre.c (changed_blocks): Make global ...
21563 (compute_antic): ... local here. Move and fix worklist
21564 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
21565 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
21566 worklist handling, dump when ANTIC_IN changed.
21567 (compute_partial_antic_aux): Remove worklist handling.
21568 (init_pre): Do not compute post dominators. Add a comment about
21569 the CFG order chosen.
21570 (fini_pre): Do not free post dominators.
21572 2016-04-13 Martin Sebor <msebor@redhat.com>
21577 * doc/extend.texi (Variable Length): Document C++ specifics.
21579 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21582 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
21583 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
21584 eh edges have been purged.
21587 * tree-sra.c (create_access_replacement,
21588 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
21590 * tree-pretty-print.c (dump_fancy_name): New function.
21591 (dump_decl_name, dump_generic_node): Use it.
21593 2016-04-13 Jason Merrill <jason@redhat.com>
21595 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
21596 * expr.c (expand_expr_real_1): Likewise.
21598 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
21600 * config/i386/i386.md (kunpckhi): Swap operands.
21601 (kunpcksi): Likewise.
21602 (kunpckdi): Likewise.
21603 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
21604 (vec_pack_trunc_<mode>): Likewise.
21606 2016-04-13 Jakub Jelinek <jakub@redhat.com>
21609 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
21611 PR middle-end/70633
21612 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
21613 gimplification turns some element into non-constant.
21616 * rtl.h (convert_memory_address_addr_space_1): New prototype.
21617 * explow.c (convert_memory_address_addr_space_1): No longer static,
21618 add NO_EMIT argument and don't call convert_modes if true, pass
21619 it down recursively, remove break after return.
21620 (convert_memory_address_addr_space): Adjust caller.
21621 * simplify-rtx.c (simplify_unary_operation_1): Call
21622 convert_memory_address_addr_space_1 instead of convert_memory_address,
21623 if it returns NULL, don't simplify.
21625 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
21628 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
21630 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21632 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21633 Bump the upper SIMDLEN limits, so that if the return type or
21634 characteristic type if the return type is void can be passed in
21635 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
21638 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21641 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
21642 Do not use "=" constraint on an input constraint.
21643 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
21644 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
21645 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
21646 generates (neg (abs ...)) instead of (abs ...).
21648 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21650 PR rtl-optimization/70596
21651 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
21652 just invalidate LRA data and reset them. Adjust dump wording.
21654 2016-04-12 Martin Liska <mliska@suse.cz>
21657 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
21659 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21661 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21662 max_loop_iterations_int.
21663 (tree_unswitch_outer_loop): Likewise.
21664 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21665 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21667 2016-04-12 Tom de Vries <tom@codesourcery.com>
21669 PR tree-optimization/68756
21670 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
21671 instead of new_name.
21673 2016-04-12 Jakub Jelinek <jakub@redhat.com>
21675 PR tree-optimization/70602
21676 * tree-sra.c (generate_subtree_copies): Don't write anything into
21677 constant pool decls.
21679 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
21680 regardless whether there are depend clauses or not.
21682 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21685 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
21686 target attribute and pragma from changing the -mfloat128
21687 and -mfloat128-hardware options.
21689 * doc/extend.texi (Additional Floating Types): Document PowerPC
21690 __float128 restrictions.
21692 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21695 * config/aarch64/driver-aarch64.c
21696 (aarch64_get_extension_string_for_isa_flags): New.
21697 (arch_extension): Rename to...
21698 (aarch64_arch_extension): ...This.
21699 (ext_to_feat_string): Rename to...
21700 (aarch64_extensions): ...This.
21701 (aarch64_core_data): Keep track of architecture extension flags.
21702 (cpu_data): Rename to...
21703 (aarch64_cpu_data): ...This.
21704 (aarch64_arch_driver_info): Keep track of architecture extension
21706 (get_arch_name_from_id): Rename to...
21707 (get_arch_from_id): ...This, change return type.
21708 (host_detect_local_cpu): Update and reformat for renames, handle
21709 extensions through common infrastructure.
21711 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21714 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
21715 track of a canonical flag name.
21716 (all_extensions): Likewise.
21717 (arch_to_arch_name): Also track extension flags enabled by the arch.
21718 (all_architectures): Likewise.
21719 (aarch64_parse_extension): Move to here.
21720 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
21722 (aarch64_rewrite_selected_cpu): Update for above change.
21723 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
21724 are handled, such that the single explicit value enabled by an
21725 extension is kept seperate from the implicit values it also enables.
21726 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
21728 (aarch64_parse_extension): New.
21729 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
21730 here to config/aarch64/aarch64-protos.h.
21731 (aarch64_parse_extension): Move from here to
21732 common/config/aarch64/aarch64-common.c.
21733 (aarch64_option_print): Update.
21734 (aarch64_declare_function_name): Likewise.
21735 (aarch64_start_file): Likewise.
21736 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
21737 the canonical flag for extensions.
21738 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
21741 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
21743 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
21746 2016-04-09 Tom de Vries <tom@codesourcery.com>
21748 PR tree-optimization/68953
21749 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
21750 first to last subscript.
21752 2016-04-09 Jakub Jelinek <jakub@redhat.com>
21754 PR tree-optimization/70586
21755 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
21758 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
21762 PR tree-optimization/70373
21763 PR middle-end/70533
21764 PR middle-end/70534
21765 PR middle-end/70535
21766 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
21767 clauses for acc parallel reductions as necessary. Error on those
21769 * omp-low.c (scan_sharing_clauses): Don't install variables which
21770 are used in acc parallel reductions.
21771 (lower_rec_input_clauses): Remove dead code.
21772 (lower_oacc_reductions): Add support for reference reductions.
21773 (lower_reduction_clauses): Remove dead code.
21774 (lower_omp_target): Don't remap variables appearing in acc parallel
21776 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
21778 2016-04-08 Jakub Jelinek <jakub@redhat.com>
21780 PR middle-end/70593
21781 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
21782 with multiple SSA_NAME defs, force the outputs other than first
21783 to be live before calling live_track_process_def on each output.
21785 PR rtl-optimization/70574
21786 * fwprop.c (forward_propagate_and_simplify): Don't add
21787 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
21788 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
21789 paradoxical subregs within *loc.
21791 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
21793 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
21794 -ftree-parallelize-loops={0,1}.
21795 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21796 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21797 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21798 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21799 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21801 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
21804 * asan.c (instrument_derefs): If we get unknown location, extract it
21805 with EXPR_LOCATION.
21806 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
21808 2016-04-08 Tom de Vries <tom@codesourcery.com>
21810 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
21811 implicit firstprivate clause.
21813 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21816 * config/arm/thumb2.md (tst + branch-> lsls + branch
21817 peephole below *orsi_not_shiftsi_si): Require that condition
21818 register is dead after the peephole.
21819 (second peephole after the above): Likewise.
21821 2016-04-08 Alan Modra <amodra@gmail.com>
21824 * builtins.c (fold_builtin_classify): For IBM extended precision,
21825 look at just the high-order double to test for NaN.
21826 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
21827 test just the high double for Inf but both doubles for subnormal
21830 2016-04-07 Jakub Jelinek <jakub@redhat.com>
21832 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
21833 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
21834 node->simdclone->mask_mode != VOIDmode masks.
21835 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
21836 earlier, use it instead of node->simdclone.
21837 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21838 Set clonei->mask_mode.
21840 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
21843 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
21844 Pass it through to cp_parser_already_scoped_statement.
21845 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
21846 it through to cp_parser_statement.
21847 (cp_parser_statement): Pass IF_P through to
21848 cp_parser_iteration_statement.
21849 (cp_parser_pragma): Adjust call to
21850 cp_parser_iteration_statement.
21852 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
21855 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
21856 resolve a future -Wparentheses warning.
21857 * omp-low.c (scan_sharing_clauses): Likewise.
21858 * tree-parloops.c (eliminate_local_variables): Likewise.
21860 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
21862 PR rtl-optimization/70398
21863 * lra-constraints.c (process_address_1): Check zero scale and code
21864 for reloading with zero scale.
21866 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
21868 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
21869 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
21871 2016-04-06 Jakub Jelinek <jakub@redhat.com>
21873 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21874 Add support for AVX512F clones, include them by default for
21875 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
21876 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
21879 PR middle-end/70550
21880 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
21881 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
21882 firstprivate clauses.
21883 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
21884 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
21885 (lower_omp_target): Set TREE_NO_WARNING for
21886 non-addressable possibly uninitialized vars which are copied into
21887 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
21889 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
21891 * config/pa/predicates.md (integer_store_memory_operand): Accept
21892 REG+D operands with a large offset when reload_in_progress is true.
21893 (floating_point_store_memory_operand): Likewise.
21895 2016-04-05 Jakub Jelinek <jakub@redhat.com>
21898 * match.pd (nested int casts): Limit to GIMPLE.
21900 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
21903 * ipa-devirt.c (maybe_record_node): Fix comment; use
21904 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
21906 2016-04-05 Jakub Jelinek <jakub@redhat.com>
21908 PR rtl-optimization/70542
21909 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
21910 if there are any uses other than insn or debug insns.
21912 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
21913 Jakub Jelinek <jakub@redhat.com>
21915 PR tree-optimization/70509
21916 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
21917 Shift HOST_WIDE_INT_1U instead of 1.
21919 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
21921 PR tree-optimization/70509
21922 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
21923 of the vector base type for index.
21925 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
21928 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
21930 2016-04-05 Richard Biener <rguenther@suse.de>
21932 PR tree-optimization/70526
21933 * tree-sra.c (build_ref_for_offset): Use prev_base to
21934 extract the alias pointer type.
21936 2016-04-05 Richard Biener <rguenther@suse.de>
21938 * dse.c (struct store_info): Remove alias_set member.
21939 (struct read_info_type): Likewise.
21940 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
21941 spill_deleted, clear_alias_set_lookup): Remove.
21942 (get_group_info): Remove dead base == NULL_RTX case.
21943 (dse_step0): Remove initialization of removed variables.
21944 (delete_dead_store_insn): Reomve alias set dumping.
21945 (free_read_records): Remove alias_set handling.
21946 (canon_address): Remove alias_set_out parameter.
21947 (record_store): Remove spill_alias_set, it's always zero.
21948 (check_mem_read_rtx): Likewise.
21949 (dse_step2): Rename from ...
21950 (dse_step2_nospill): ... this. Adjust.
21951 (scan_stores): Rename from ...
21952 (scan_stores_nospill): ... this.
21953 (scan_reads): Rename from ...
21954 (scan_reads_nospill): ... this.
21955 (scan_stores_spill, scan_reads_spill): Remove.
21956 (dse_step3_scan): Remove for_spills argument which is always false.
21957 (dse_step3): Likewise.
21958 (dse_step5): Rename from ...
21959 (dse_step5_nospill): ... this. Remove alias_set handling.
21960 (rest_of_handle_dse): Adjust.
21962 2016-04-05 Jakub Jelinek <jakub@redhat.com>
21965 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
21966 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
21967 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
21968 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
21970 2016-04-05 Richard Biener <rguenther@suse.de>
21972 PR middle-end/70499
21973 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
21974 non-register type temporaries into SSA.
21976 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
21979 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
21980 calls when sanitizing.
21981 (possible_polymorphic_call_target_p): Fix formatting.
21983 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21984 Jakub Jelinek <jakub@redhat.com>
21986 PR middle-end/70457
21987 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
21988 to ensure a call statement is compatible with a built-in's
21990 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
21993 2016-04-04 Richard Biener <rguenther@suse.de>
21995 PR rtl-optimization/70484
21996 * rtl.h (canon_output_dependence): Declare.
21997 * alias.c (canon_output_dependence): New function.
21998 * dse.c (record_store): Use canon_output_dependence rather
21999 than canon_true_dependence.
22001 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22004 * cgraph.h (symtab_node::copy_visibility_from): New function.
22005 * symtab.c (symtab_node::copy_visibility_from): New function.
22006 * ipa-visibility.c (optimize_weakref): New function.
22007 (function_and_variable_visibility): Use it.
22009 2016-04-04 Martin Liska <mliska@suse.cz>
22012 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
22013 value that is really in range handled by SBR instruction.
22014 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
22015 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
22016 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
22018 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
22022 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
22023 set, but not for SP_REG operands.
22025 2016-04-02 Martin Sebor <msebor@redhat.com>
22028 * fold-const.c (maybe_nonzero_address): New function.
22029 (fold_comparison): Call it. Fold equality and relational
22030 expressions involving null pointers.
22031 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
22033 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
22035 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
22036 the "Y" constraint (scalar FP 0.0 immediate).
22038 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
22039 Add the "const_double" to the list of operand constraints.
22041 2016-04-01 Jakub Jelinek <jakub@redhat.com>
22043 PR rtl-optimization/70467
22044 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
22045 If low word of the last operand is 0, just emit addition/subtraction
22048 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22051 * config/s390/s390.c (s390_expand_insv): Check for everything
22052 constant instead of just VOIDmode stuff.
22054 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22057 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
22059 2016-04-01 Nathan Sidwell <nathan@acm.org>
22061 * tree.def (TRY_CATCH_EXPR): Correct documentation.
22063 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
22065 PR rtl-optimization/70461
22066 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
22069 2016-03-31 Martin Liska <mliska@suse.cz>
22072 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
22073 a tree value or an immediate integer value to a buffer
22074 that is eventually copied to a BRIG section.
22075 (emit_immediate_operand): Call the function here.
22076 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
22077 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
22078 of class' fields that are removed.
22079 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
22080 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
22081 m_brig_repr_size fields.
22083 2016-03-31 Martin Liska <mliska@suse.cz>
22086 * hsa-gen.c (hsa_function_representation::update_dominance): New
22088 (convert_addr_to_flat_segment): Likewise.
22089 (gen_hsa_memory_set): New alignment argument.
22090 (gen_hsa_ctor_assignment): Likewise.
22091 (gen_hsa_insns_for_single_assignment): Provide alignment
22092 to gen_hsa_ctor_assignment.
22093 (gen_hsa_insns_for_direct_call): Add new argument.
22094 (expand_lhs_of_string_op): New function.
22095 (expand_string_operation_builtin): Likewise.
22096 (expand_memory_copy): New function.
22097 (expand_memory_set): New function.
22098 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
22099 (convert_switch_statements): Change signature.
22100 (generate_hsa): Use a return value of the function.
22101 (pass_gen_hsail::execute): Do not call
22102 convert_switch_statements here.
22103 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
22104 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
22105 (hsa_function_representation::update_dominance): New function.
22107 2016-03-31 Martin Liska <mliska@suse.cz>
22110 * hsa-brig.c (emit_directive_variable): Emit alignment
22111 according to hsa_symbol::m_align.
22112 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
22113 (dump_hsa_symbol): Dump alignment of HSA symbols.
22114 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
22115 (gen_hsa_addr_with_align): New function.
22116 (hsa_bitmemref_alignment): Use newly added function.
22117 (gen_hsa_insns_for_load): Likewise.
22118 (gen_hsa_insns_for_store): Likewise.
22119 (gen_hsa_memory_copy): New argument added.
22120 (gen_hsa_insns_for_single_assignment): Respect
22121 alignment for assignments processed via gen_hsa_memory_copy.
22122 (gen_hsa_insns_for_direct_call): Likewise.
22123 (gen_hsa_insns_for_return): Likewise.
22124 (gen_function_def_parameters): Set default alignment.
22125 * hsa.c (hsa_object_alignment): New function.
22126 (hsa_byte_alignment): Pasted function.
22127 * hsa.h (hsa_symbol::m_align): New field.
22129 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22131 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
22132 scratch field for goto case.
22134 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
22136 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
22138 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
22141 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
22142 (scalar_chain::convert_insn): Call convert_op for reg
22143 moves to handle undefined registers.
22145 2016-03-31 Nathan Sidwell <nathan@acm.org>
22148 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
22149 Assert we don't want to move backwards.
22151 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
22154 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
22156 2016-03-31 Jakub Jelinek <jakub@redhat.com>
22158 PR rtl-optimization/70460
22159 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
22160 with operand from REG_LABEL_OPERAND, instead substitute
22161 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
22162 Don't do anything for REG_NON_LOCAL_GOTO jumps.
22164 2016-03-31 Martin Liska <mliska@suse.cz>
22166 * passes.c (execute_one_pass): Do not call
22167 todo_after for a discarded function.
22169 2016-03-31 Bin Cheng <bin.cheng@arm.com>
22171 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
22172 (no_cost, infinite_cost): Initialize the new field.
22173 (get_computation_cost_at): Record setup cost.
22174 (determine_use_iv_cost_address): Skip cost computation for sub
22175 uses if we can estimate it without losing accuracy.
22177 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
22179 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
22181 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
22182 max_loop_iterations_int.
22183 (tree_unswitch_outer_loop): Likewise.
22184 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
22185 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22187 2016-03-30 Richard Biener <rguenther@suse.de>
22189 PR middle-end/70450
22190 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
22192 2016-03-30 Jakub Jelinek <jakub@redhat.com>
22195 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
22196 in gen_blendm expander.
22198 2016-03-30 Nick Clifton <nickc@redhat.com>
22201 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
22202 case where we are already provided with an SImode SUBREG.
22204 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
22207 * config/i386/i386.c (ix86_expand_epilogue): Properly check
22208 conflict between DRAP register and __builtin_eh_return.
22210 2016-03-30 Michael Matz <matz@suse.de>
22211 Richard Biener <rguenther@suse.de>
22214 * ipa-polymorphic-call.c (struct type_change_info): Change
22215 speculative to an unsigned allowing to limit the work we do.
22216 (csftc_abort_walking_p): New inline function..
22217 (check_stmt_for_type_change): Limit the number of may-defs
22218 skipped for speculative devirtualization to
22219 max-speculative-devirt-maydefs.
22220 * params.def (max-speculative-devirt-maydefs): New param.
22221 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
22223 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
22226 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
22229 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
22231 PR tree-optimization/59124
22232 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
22233 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
22235 2016-03-29 Jeff Law <law@redhat.com>
22237 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
22239 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22241 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
22244 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
22246 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
22247 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
22248 gcrt0.o if linking dynamically.
22250 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22253 * ipa-devirt.c (methods_equal_p): New function.
22254 (compare_virtual_tables): Use it.
22255 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
22256 * cgraphclones.c (clone_function_name_1): Use
22257 symbol_table::symbol_suffix_separator.
22258 * coverage.c (build_var): Likewise.
22259 * symtab.c (symbol_table::symbol_suffix_separator): New.
22261 2016-03-29 Jakub Jelinek <jakub@redhat.com>
22263 PR rtl-optimization/70429
22264 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
22265 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
22266 mode != result_mode.
22269 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
22271 PR tree-optimization/70405
22272 * ssa-iterators.h (num_imm_uses): Add missing braces.
22274 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
22276 PR rtl-optimization/68695
22277 * ira-color.c (allocno_copy_cost_saving): New.
22278 (improve_allocation): Use it.
22280 2016-03-29 Richard Henderson <rth@redhat.com>
22282 PR middle-end/70355
22283 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
22285 2016-03-29 Richard Biener <rguenther@suse.de>
22287 PR middle-end/70424
22288 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
22289 use alignment returned by get_pointer_alignment_1 if it is
22290 bigger than BITS_PER_UNIT.
22291 * builtins.c (get_pointer_alignment_1): Do not return true
22292 for alignment extracted from SSA info.
22294 2016-03-28 James Bowman <james.bowman@ftdichip.com>
22296 * config/ft32/ft32.opt (mnodiv): New.
22297 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
22298 * doc/invoke.texi (FT32 Options -mnodiv): New.
22300 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
22303 * config/i386/i386.md (define_split, andn): Fix modes.
22305 2016-03-26 Richard Biener <rguenther@suse.de>
22306 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22309 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
22311 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
22312 as 2nd argument to cl_optimization_restore().
22314 2016-03-25 Richard Henderson <rth@redhat.com>
22317 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
22318 * config/aarch64/aarch64-protos.h: Declare it.
22319 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
22321 2016-03-25 Alan Modra <amodra@gmail.com>
22324 * config/rs6000/constraints.md (j): Simplify.
22325 * config/rs6000/predicates.md (easy_fp_constant): Exclude
22327 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
22328 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
22329 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
22330 in all constraint alternatives.
22331 (movtd_64bit_nodm): Delete "j" constraint alternative.
22333 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22335 * tree-ssa-propagate.c: Enhance docs for
22336 SSA_PROP_NOT_INTERESTING.
22338 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
22340 * doc/extend.texi: Fix typo in documentation to pure attribute.
22342 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
22345 * config/pa/pa.md (bswapdi2): Use a scratch register.
22347 2016-03-24 Richard Henderson <rth@redhat.com>
22349 PR middle-end/69845
22350 * fold-const.c (extract_muldiv_1): Correct test for multiplication
22353 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
22355 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
22356 using ix86_expand_binary_operator instead of gen_andsi3.
22358 2016-03-24 Richard Biener <rguenther@suse.de>
22360 PR tree-optimization/70396
22361 * tree-vect-stmts.c (vectorizable_comparison): Use
22362 get_vectype_for_scalar_type.
22364 2016-03-24 Richard Biener <rguenther@suse.de>
22366 PR middle-end/70370
22367 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
22368 with register bases.
22370 2016-03-24 Richard Biener <rguenther@suse.de>
22372 PR tree-optimization/70372
22373 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
22374 build_all_ones_cst to also handle vector types correctly.
22376 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22379 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
22382 2016-03-23 Marek Polacek <polacek@redhat.com>
22385 * doc/invoke.texi: Document -Wignored-attributes.
22387 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22389 PR tree-optimization/69042
22390 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
22391 parameter from 30 to 40.
22393 2016-03-23 Bin Cheng <bin.cheng@arm.com>
22395 PR tree-optimization/69042
22396 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
22397 for use with constant offset stripped in base.
22399 2016-03-23 Richard Biener <rguenther@suse.de>
22401 PR middle-end/70251
22402 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
22403 mode compatibility check.
22404 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22406 2016-03-23 Jeff Law <law@redhat.com>
22408 PR tree-optimization/64058
22409 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
22411 (struct ssa_conflicts): Move up earlier in the file.
22412 (conflicts_, var_map_): New static variables.
22413 (initialize_conflict_count): New function to initialize the
22414 CONFLICT_COUNT field for each conflict pair.
22415 (compare_pairs): Lazily initialize the conflict count and use it
22416 as the first tie-breaker.
22417 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
22418 and wipe conflicts_ and map_ around the call to qsort. Remove
22419 special case for 2 coalesce pairs.
22420 * bitmap.c (bitmap_count_unique_bits): New function.
22421 (bitmap_count_bits_in_word): New function, extracted from
22423 (bitmap_count_bits): Use bitmap_count_bits_in_word.
22424 * bitmap.h (bitmap_count_unique_bits): Declare it.
22426 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
22429 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
22430 transparent alias chain for decl assembler name.
22431 * config/sol2.c (solaris_assemble_visibility): Likewise.
22433 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22435 * config/arm/arm1020e.md (1020call_op): Reduce reservation
22437 (v10_fdivs): Likewise.
22438 (v10_fdivd): Likewise.
22440 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22443 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
22444 to not call fclose twice on file.
22446 2016-03-23 Jakub Jelinek <jakub@redhat.com>
22448 PR tree-optimization/70354
22449 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22450 oprnd0 is wider than oprnd1 and there is a cast from the wider
22451 type to oprnd1, mask it with the mask of the narrower type.
22454 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
22455 Optimize TARGET_STV splitters, if high or low word of last argument
22458 2016-03-22 Jeff Law <law@redhat.com>
22461 tree-ssa-threadbackward.c
22462 (fsm_find_control_statement_thread_paths): Correctly distinguish
22463 between old style jump threads vs FSM jump threads.
22465 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22468 * config/i386/i386.c (scalar_chain::convert_op): Support
22469 uninitialized register usage case.
22471 2016-03-22 Richard Biener <rguenther@suse.de>
22473 PR middle-end/70251
22474 * genmatch.c (gen_transform): Adjust last parameter to a three-state
22476 (capture::gen_transform): ... to change behavior when substituting
22477 a condition into cond or not-cond expr context.
22478 (dt_simplify::gen_1): Adjust.
22479 * gimple-match-head.c: Include gimplify.h for unshare_expr.
22480 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
22481 last change and instead change to
22482 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
22483 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22485 2016-03-22 Anthony Green <green@moxielogic.com>
22487 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
22488 issue for moxiebox targets.
22489 (CC1PLUS_SPEC): Ditto.
22491 2016-03-22 Richard Biener <rguenther@suse.de>
22493 PR middle-end/70333
22494 * fold-const.c (extract_muldiv_1): Properly perform multiplication
22497 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22499 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
22501 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
22504 * config/i386/i386.c (def_builtin): Handle
22505 OPTION_MASK_ISA_AVX512VL to be and-ed with other
22507 (const struct builtin_description bdesc_special_args[]):
22508 Remove duplicate ISA bits.
22510 2016-03-22 Jakub Jelinek <jakub@redhat.com>
22513 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
22514 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
22515 in a way that works also for AVX512BW.
22518 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
22519 instead of source if operands[1] is xmm16 and above and
22520 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
22521 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
22524 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
22525 on assign if (*from_p) is a comparison, set it to
22526 TREE_NO_WARNING (*from_p).
22528 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22530 PR middle-end/70326
22531 * lra.c (restore_scratches): Ignore deleted insns.
22533 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
22534 Jakub Jelinek <jakub@redhat.com>
22536 PR tree-optimization/70317
22537 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
22540 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
22543 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
22544 of ix86_expand_move.
22546 (movti): Use general_operand for operand 1 predicate.
22548 2016-03-21 Martin Liska <mliska@suse.cz>
22550 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
22552 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
22554 2016-03-21 Martin Liska <mliska@suse.cz>
22557 * ipa-icf.c (sem_function::parse): Skip static
22558 constructors and destructors.
22560 2016-03-21 Jakub Jelinek <jakub@redhat.com>
22563 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
22564 function-like macro, peek following token(s) if it is followed
22565 by CPP_OPEN_PAREN token with optional padding in between, and
22566 if not, don't treat it like a macro.
22568 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
22569 Alexander Monakov <amonakov@ispras.ru>
22571 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
22572 for the stabs debug format.
22574 2016-03-21 Richard Biener <rguenther@suse.de>
22576 PR tree-optimization/70310
22577 * tree-vect-generic.c (expand_vector_condition): Fold the built
22580 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
22583 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
22584 Block third alternative for AVX-512VL target,
22586 2016-03-21 Martin Liska <mliska@suse.cz>
22589 * hsa-brig.c (emit_function_directives): Mark unemitted
22590 global variables for emission.
22591 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
22592 (get_symbol_for_decl): Likewise.
22593 * hsa.h (struct hsa_symbol): New flag.
22595 2016-03-21 Richard Biener <rguenther@suse.de>
22597 PR tree-optimization/70288
22598 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
22599 we do not estimate unsimplified all-constant conditionals or
22600 switches as optimized away.
22602 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
22604 PR rtl-optimization/69102
22605 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
22606 when we have a readonly dependency context.
22608 2016-03-18 Jeff Law <law@redhat.com>
22610 PR rtl-optimization/70263
22611 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
22612 (update_equiv_regs): When trying to move a store to after the insn
22613 that sets the source of the store, make sure the store occurs after
22614 the insn that sets the source of the store. When successful note
22615 the REG_EQUIV note created in the dump file.
22617 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
22618 Bernd Schmidt <bschmidt@redhat.com>
22620 * doc/extend.texi: Document more potential problems with basic asms.
22622 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
22624 PR rtl-optimization/70278
22625 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
22628 2016-03-18 Jason Merrill <jason@redhat.com>
22630 * calls.c (load_register_parameters): Fix zero size sibcall logic.
22632 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22634 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
22635 values to 128b regs.
22637 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22639 PR tree-optimization/70252
22640 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
22641 boolean vector has a proper number of elements.
22642 (supportable_narrowing_operation): Likewise.
22644 2016-03-18 Tom de Vries <tom@codesourcery.com>
22647 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
22649 2016-03-18 Jakub Jelinek <jakub@redhat.com>
22651 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
22652 instead of replace_rtx for DEBUG_INSNs.
22654 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22656 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
22657 load type reservations.
22659 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
22662 * config/pa/constraints.md: Revert 2015-02-13 change. Use
22663 define_constraint for "Q" and "T" constraints.
22665 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
22667 Tweak the pipeline model for Exynos M1
22669 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
22672 2016-03-17 David Malcolm <dmalcolm@redhat.com>
22675 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
22676 where one or both locations aren't within a line_map.
22678 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
22681 * opts.c (finish_options): Don't set flag_pie to the default if
22682 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
22685 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
22687 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
22688 true as ALL_REGS argument to replace_rtx.
22690 2016-03-17 Richard Biener <rguenther@suse.de>
22693 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
22696 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22699 * rtl.h (replace_rtx): Add ALL_REGS argument.
22700 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
22701 equality and assert mode is the same, instead of just rtx pointer
22703 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
22704 true as ALL_REGS argument to replace_rtx.
22706 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
22708 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
22709 for boolean vector with vector mode only.
22710 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22712 2016-03-17 Nick Clifton <nickc@redhat.com>
22715 * config/rx/rx.c (rx_print_integer): Print negative constants in
22718 2016-03-17 Jakub Jelinek <jakub@redhat.com>
22721 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
22723 2016-03-16 Richard Henderson <rth@redhat.com>
22724 Richard Biener <rguenth@suse.de>
22726 PR middle-end/70240
22727 PR middle-end/68215
22729 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
22730 first operand as is_gimple_condexpr.
22732 PR middle-end/70240
22733 PR middle-end/68215
22735 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
22736 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
22737 Do not gimplify the result.
22738 (do_unop): Adjust call to tree_vec_extract.
22739 (do_binop): Likewise.
22740 (do_compare): Likewise.
22741 (do_plus_minus): Likewise.
22742 (do_negate): Likewise.
22743 (expand_vector_condition): Likewise.
22744 (do_cond): Likewise.
22746 2016-03-16 Richard Henderson <rth@redhat.com>
22749 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
22750 (aarch64_classify_address): Use it.
22751 (aarch64_legitimize_address): Force all subexpressions of PLUS
22752 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
22754 2016-03-16 Jakub Jelinek <jakub@redhat.com>
22755 Richard Biener <rguenth@suse.de>
22758 * rtlanal.c (replace_rtx): For REG, if from is a REG,
22759 return to even if only REGNO is equal, and assert
22762 2016-03-11 Jeff Law <law@redhat.com>
22764 PR rtl-optimization/70224
22765 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
22767 2016-03-16 Richard Henderson <rth@redhat.com>
22769 PR middle-end/70199
22770 * function.h (struct function): Add has_forced_label_in_static.
22771 * gimplify.c (force_labels_r): Set it.
22772 * lto-streamer-in.c (input_struct_function_base): Read it.
22773 * lto-streamer-out.c (output_struct_function_base): Write it.
22774 * tree-inline.c (has_label_address_in_static_1): Remove.
22775 (copy_forbidden): Remove fndecl parameter; test
22776 has_forced_label_in_static.
22777 (inline_forbidden_p): Update call to copy_forbidden.
22778 (tree_versionable_function_p): Likewise.
22779 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
22780 (chkp_versioning): Likewise.
22781 * tree-inline.h (copy_forbidden): Update decl.
22783 2016-03-16 Marek Polacek <polacek@redhat.com>
22786 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
22787 function being thunked if the result type doesn't have fixed size.
22788 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
22789 doesn't have fixed size.
22791 2016-03-16 Bin Cheng <bin.cheng@arm.com>
22793 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
22794 reporting malformed loop nest.
22796 2016-03-16 Tom de Vries <tom@codesourcery.com>
22799 * ipa-devirt.c (possible_polymorphic_call_targets): Move
22800 nodes.length () == 1 test to before first nodes[0] access.
22802 2016-03-16 Tom de Vries <tom@codesourcery.com>
22804 PR tree-optimization/68715
22805 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
22806 single_pred_p test.
22808 2016-03-16 Tom de Vries <tom@codesourcery.com>
22810 PR tree-optimization/68809
22811 * graphite-scop-detection.c (same_close_phi_node): Test if result types
22814 2016-03-16 Carlos O'Donell <carlos@redhat.com>
22815 Sandra Loosemore <sandra@codesourcery.com>
22817 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
22818 on leaf attribute. Mention ELF interposition problems.
22820 2016-03-16 Alan Modra <amodra@gmail.com>
22822 PR rtl-optimization/69195
22823 PR rtl-optimization/47992
22824 * ira.c (indirect_jump_optimize): Ignore artificial defs.
22827 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
22830 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
22832 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22834 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
22836 2016-03-15 Jakub Jelinek <jakub@redhat.com>
22838 PR rtl-optimization/70222
22839 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
22840 optimization if mode is different from result_mode, queue up masking
22841 of the result in outer_op. Formatting fix.
22843 PR middle-end/70239
22844 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
22847 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22849 PR rtl-optimization/69032
22850 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
22851 looping backwards over basic block insns.
22853 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22856 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
22857 to non-speculative when propagating trap bits.
22859 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22861 PR rtl-optimization/63384
22862 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
22863 DEBUG_INSN_P insns.
22865 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
22868 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
22869 factored out from ...
22870 (sched_analyze_insn): ... here.
22871 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
22872 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
22873 get_implicit_reg_pending_clobbers in it.
22874 (setup_id_reg_sets): Use setup_id_implicit_regs.
22875 (deps_init_id): Ditto.
22877 2016-03-15 Tom de Vries <tom@codesourcery.com>
22880 * cgraph.c (cgraph_node::get_body): Save, reset and restore
22882 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
22883 execute_function_dump.
22884 (execute_one_pass): Don't dump function if it will be dumped after ipa
22887 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22889 * genrecog.c (match_pattern_2): If pred is NULL don't call
22890 safe_predicate_mode on it.
22892 2016-03-14 Jakub Jelinek <jakub@redhat.com>
22894 PR middle-end/70219
22895 * lra-constraints.c (delete_move_and_clobber): Change assertion
22896 to also allow dregno == 0.
22898 2016-03-14 Richard Henderson <rth@redhat.com>
22901 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
22902 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
22903 (reassociate_bb): Use optimize_vec_cond_expr; avoid
22904 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
22907 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
22910 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
22912 (lra_create_live_ranges_1): initialize hard register biggest_mode to
22914 * lra-constraints.c (split_reg): For hard regs, try to find the
22915 biggest single-register mode used in the function.
22917 2016-03-14 Richard Biener <rguenther@suse.de>
22919 PR tree-optimization/56365
22920 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
22921 constants to compare against.
22923 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
22926 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
22927 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
22928 (define_split for the GPR case): Use int_reg_operand instead of
22929 gpc_reg_operand for the output.
22931 2016-03-14 Tom de Vries <tom@codesourcery.com>
22933 PR tree-optimization/70045
22934 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
22935 create_empty_if_region_on_edge argument.
22937 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
22939 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
22940 (STACK_CHECK_PROTECT): Likewise.
22941 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
22942 (STACK_CHECK_PROTECT): Likewise.
22943 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
22944 (STACK_CHECK_PROTECT): Likewise.
22945 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
22946 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22947 (STACK_CHECK_PROTECT): Likewise.
22949 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
22951 PR rtl-optimization/69307
22952 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
22953 registers in modes that span more than one register.
22955 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
22958 * lra-constraints.c (delete_move_and_clobber): New.
22959 (remove_inheritance_pseudos): Use it.
22961 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
22964 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
22965 the libcall is LCT_THROW.
22966 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
22967 for the checking routine.
22969 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22972 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
22973 optimization if we have direct move.
22974 (roundu32<mode>2_fprs): Likewise.
22976 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
22979 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
22981 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
22982 Arguments swapped. All callers changed. Take reg_renumber into
22983 account, and Calculate and compare register ranges for hard regs.
22985 2016-03-11 Jeff Law <law@redhat.com>
22987 PR tree-optimization/70190
22988 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22989 Handle cases where we can not extract the taken edge, even though we
22990 found a constant value.
22992 PR tree-optimization/64058
22993 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
22994 (num_coalesce_pairs): Move up earlier in file.
22995 (find_coalesce_pair): Initialize the INDEX field for each pair
22997 (compare_pairs): No longer sort on the elements in each pair.
22998 Instead break ties with the index of the coalesce pair.
23000 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23003 * config/aarch64/aarch64-protos.h
23004 (aarch64_save_restore_target_globals): New prototype.
23005 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
23006 Call the above when popping pragma.
23007 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
23009 (aarch64_set_current_function): Rewrite using the above.
23011 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23013 PR tree-optimization/70177
23014 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
23015 (extract_ops_from_tree): ... this. In the 2 argument
23016 overload remove _1 suffix.
23017 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
23018 (extract_ops_from_tree): ... this.
23019 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
23021 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
23022 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
23023 extract_ops_from_tree instead of 2 operand one.
23025 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
23027 PR tree-optimization/70013
23028 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
23029 for constant-pool entries.
23031 2016-03-11 Jakub Jelinek <jakub@redhat.com>
23033 PR rtl-optimization/70174
23034 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
23035 followed by gen_lowpart on force_reg instead of just gen_lowpart.
23037 PR tree-optimization/70169
23038 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
23039 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
23042 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
23043 Jakub Jelinek <jakub@redhat.com>
23046 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
23047 of uninitialized values.
23049 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23051 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
23053 ("*trunctddd2"): New pattern definition.
23054 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
23057 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23059 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
23060 definitions for BFP and DFP rounding modes.
23061 ("fixuns_truncdddi2", "fixuns_trunctddi2")
23062 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
23063 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
23064 ("fix_trunctf<mode>2"): Use the new constants instead of magic
23067 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23069 * config/s390/constraints.md: Adjust comment.
23070 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
23071 s390_decompose_addrstyle_without_index.
23072 * config/s390/predicates.md (shift_count_or_setmem_operand):
23073 Rename to setmem_operand.
23074 * config/s390/s390-protos.h
23075 (s390_decompose_shift_count): Rename to
23076 s390_decompose_addrstyle_without_index.
23077 * config/s390/s390.c (s390_decompose_shift_count)
23078 (s390_mem_constraint, print_shift_count_operand)
23079 (print_operand_address, print_operand): Rename
23080 s390_decompose_shift_count to
23081 s390_decompose_addrstyle_without_index and rename
23082 print_shift_count_operand to print_addrstyle_operand troughout the
23084 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
23085 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
23086 Rename shift_count_or_setmem_operand to setmem_operand.
23087 * config/s390/vx-builtins.md ("vec_insert<mode>")
23088 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
23091 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23094 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23095 Handle overlapping retval and newval.
23097 2016-03-10 Nick Clifton <nickc@redhat.com>
23100 * config/aarch64/aarch64.c
23101 (aarch64_override_options_after_change_1): When forcing
23102 flag_omit_frame_pointer to be true, use a special value that can
23103 be detected if this function is called again, thus preventing
23104 flag_omit_leaf_frame_pointer from being forced to be false.
23106 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23108 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
23109 Set x_flag_omit_leaf_frame_pointer when handling
23110 -momit-leaf-frame-pointer.
23112 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23115 * cgraph.c (cgraph_node::dump): Dump split_part and
23116 indirect_call_target.
23117 * cgraph.h (cgraph_node): Add indirect_call_target flag.
23118 * ipa.c (has_addr_references_p): Cleanup.
23119 (is_indirect_call_target_p): New.
23120 (walk_polymorphic_call_targets): Do not mark virtuals that may be
23121 called indirectly as local.
23122 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
23124 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23127 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23128 on cxa_pure_virtual.
23130 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23133 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
23135 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23138 * tree.c (need_assembler_name_p): Only record main variant type names.
23140 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23143 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
23144 Always define to 0 or 1.
23145 (TARGET_FIX_ERR_A53_843419): New macro.
23146 * config/aarch64/aarch64-elf-raw.h
23147 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
23148 * config/aarch64/aarch64-linux.h: Likewise.
23149 * config/aarch64/aarch64.c
23150 (aarch64_override_options_after_change_1): Do not default
23151 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
23153 (aarch64_attributes): Handle fix-cortex-a53-843419.
23154 (aarch64_can_inline_p): Likewise.
23155 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
23157 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
23158 Jakub Jelinek <jakub@redhat.com>
23160 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
23161 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
23162 DECL_COMMONS if flag_unconstrained_commons is set.
23163 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23164 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
23165 (funconstrained-commons): Document.
23167 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
23169 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
23170 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
23172 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
23174 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
23175 has a proper number of elements.
23177 2016-03-10 Alan Modra <amodra@gmail.com>
23179 PR rtl-optimization/69195
23180 PR rtl-optimization/47992
23181 * ira.c (recorded_label_ref): Delete.
23182 (update_equiv_regs): Return void.
23183 (indirect_jump_optimize): New function.
23184 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
23185 before regstat_compute_ri. Don't rebuild_jump_labels here.
23186 Delete update_regstat.
23188 2016-03-10 Richard Biener <rguenther@suse.de>
23190 PR tree-optimization/70128
23191 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23192 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
23194 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23196 PR tree-optimization/70152
23197 * tree-sra.c (replace_removed_params_ssa_names): Copy over
23198 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
23201 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
23202 instead of gen_sse2_loadlpd.
23203 * config/i386/sse.md (*vec_concatv2df): Rename to...
23204 (vec_concatv2df): ... this.
23206 PR tree-optimization/70127
23207 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
23209 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23213 * diagnostic-show-locus.c (compatible_locations_p): New function.
23214 (layout::layout): Sanitize ranges using compatible_locations_p.
23216 2016-03-09 David Malcolm <dmalcolm@redhat.com>
23220 * diagnostic-show-locus.c (layout_range::layout_range): Replace
23221 location_range param with three const expanded_locations * and a
23223 (layout::layout): Replace call to
23224 rich_location::lazily_expand_location with get_expanded_location.
23225 Extract the range and perform location expansion here, passing
23226 the results to the layout_range ctor.
23227 * diagnostic.c (source_range::debug): Delete.
23228 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
23229 of rich_location::get_expanded_location.
23230 * gcc-rich-location.c (get_range_for_expr): Delete.
23231 (gcc_rich_location::add_expr): Reimplement to avoid the
23232 rich_location::add_range overload that took a location_range,
23233 passing a location_t instead.
23235 2016-03-09 Richard Biener <rguenther@suse.de>
23236 Jakub Jelinek <jakub@redhat.com>
23238 PR tree-optimization/70138
23239 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23240 Also skip vect_double_reduction_def.
23242 2016-03-09 Jakub Jelinek <jakub@redhat.com>
23245 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
23246 if the operand is "m".
23248 2016-03-09 Nathan Sidwell <nathan@acm.org>
23250 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
23252 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23254 * config/i386/i386.c (processor_target_table): Fix cost table
23255 intialization order for znver1.
23257 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23259 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
23260 - becuase -> because.
23261 * ipa-reference.c (ignore_module_statics): Likewise.
23262 * cgraph.c (cgraph_node::get_body): Likewise.
23263 * ipa-inline.c (early_inliner): Likewise.
23264 * ipa-devirt.c (types_same_for_odr): Likewise.
23265 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
23266 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
23268 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23270 * tree-ssa-math-opts.c: Fix typo in comment.
23272 2016-03-08 Jakub Jelinek <jakub@redhat.com>
23275 * config/i386/i386.c (scalar_chain::make_vector_copies,
23276 scalar_chain::convert_reg): Call end_sequence in between
23277 get_insns and emit_conversion_insns rather than after both
23280 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
23283 * config/i386/i386.h (machine_function): Add
23284 pc_thunk_call_expanded flag.
23285 (ix86_pc_thunk_call_expanded): New define.
23286 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
23287 (*set_got): Rename insn pattern from set_got.
23288 (*set_got_labelled): Rename inst pattern from set_got_labelled.
23289 * config/i386/i386.c (ix86_compute_frame_layout): Use
23290 ix86_pc_thunk_call_expanded to prevent red-zone.
23292 2016-03-07 Martin Jambor <mjambor@suse.cz>
23294 * hsa.h (hsa_get_ctor_statements): Declare.
23295 (hsa_get_dtor_statements): Likewise.
23296 (hsa_get_kernel_dispatch_type): Likewise.
23297 * hsa.c (hsa_get_ctor_statements): New function.
23298 (hsa_get_dtor_statements): Likewise.
23299 (hsa_get_kernel_dispatch_type): Likewise.
23300 * hsa-brig.c (hsa_cdtor_statements): Removed.
23301 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
23302 hsa_get_dtor_statements.
23303 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
23304 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
23306 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
23308 * config/arm/arm-cores.def (cortex-r8): New.
23309 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
23310 * config/arm/arm-tune.md: Likewise.
23311 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
23313 2016-03-07 Martin Sebor <msebor@redhat.com>
23315 PR rtl-optimization/19705
23316 * doc/invoke.texi (Options That Control Optimization): Clarify
23317 -fno-branch-count-reg.
23319 2016-02-26 Richard Biener <rguenther@suse.de>
23320 Jeff Law <law@redhat.com>
23322 PR tree-optimization/69740
23323 * cfghooks.c (remove_edge): Request loop fixups if we delete
23324 an edge that might turn an irreducible loop into a natural
23326 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
23327 Move after definition of loops_state_clear.
23329 2016-03-07 Bin Cheng <bin.cheng@arm.com>
23331 PR rtl-optimization/69052
23332 * rtlanal.c (commutative_operand_precedence): Set higher precedence
23335 2016-03-07 Tom de Vries <tom@codesourcery.com>
23337 PR tree-optimization/70116
23338 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
23339 is_tm_ending stmts and ubsan/asan internal functions.
23340 (find_duplicate): Use it. Don't test is_tm_ending here.
23342 2016-03-07 Richard Biener <rguenther@suse.de>
23344 PR tree-optimization/70115
23345 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
23346 (propagate_constants_for_unrolling): Use replace_uses_by.
23348 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
23350 PR middle-end/69916
23351 * omp-low.c (struct oacc_loop): Add ifns.
23352 (new_oacc_loop_raw): Initialize it.
23353 (finish_oacc_loop): Clear mask & flags if no ifns.
23354 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
23355 (oacc_loop_xform_loop): Add ifns arg & adjust.
23356 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
23358 2016-03-07 Richard Henderson <rth@redhat.com>
23361 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
23362 (insert_value_copy_on_edge): Likewise.
23364 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23366 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
23368 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23371 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
23373 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23375 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
23377 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
23379 Fix sseimul type attribute.
23380 * config/i386/znver1.md
23381 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
23382 znver1_sseimul_avx256_load) : Fix the type attribute.
23383 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
23384 pipe usage and latency.
23386 2016-03-05 Jakub Jelinek <jakub@redhat.com>
23389 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
23390 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
23393 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23396 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
23398 PR rtl-optimization/69941
23399 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
23400 the reg share its mode.
23402 2016-03-04 Jeff Law <law@redhat.com>
23404 PR tree-optimization/69196
23405 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23406 If the both SSA_NAMEs are anonymous, then consider them unassociated
23407 and include the PHI in the statement count.
23409 2016-03-05 Tom de Vries <tom@codesourcery.com>
23411 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
23412 construct in oacc routine. Check for oacc region in oacc routine.
23414 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23417 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
23418 2016-02-22 changes, instead don't recurse if RECUR is already true.
23419 Don't change *dynamic_check if RECUR. Adjust recursive caller
23420 to pass true to the new argument.
23421 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
23424 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23425 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
23427 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
23429 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
23431 PR rtl-optimization/57676
23432 * lra-assigns.c (lra_assign): Guard test for maximum iterations
23433 with flag_checking.
23435 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
23437 * tree-vect-patterns.c (search_type_for_mask): Handle
23438 comparison of booleans.
23440 2016-03-04 Jakub Jelinek <jakub@redhat.com>
23442 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
23446 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
23447 all other ops that have dw_val_class_die_ref operands,
23448 and DW_OP_GNU_entry_value.
23450 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23452 PR rtl-optimization/69904
23453 * config/arm/arm.c (arm_cannot_copy_insn_p):
23454 Return true for load-exclusive instructions.
23456 2016-03-03 Jakub Jelinek <jakub@redhat.com>
23459 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
23460 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
23461 the pattern no matter if it is used just by non-pattern, pattern
23463 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
23464 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
23465 oprnd1 def_stmt is in pattern, don't look through it.
23467 2016-03-03 Marek Polacek <polacek@redhat.com>
23469 PR middle-end/70050
23470 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
23472 2016-03-03 Martin Liska <mliska@suse.cz>
23474 PR tree-optimization/70043
23475 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
23476 previous statement if we see a debug statement.
23478 2016-03-03 Richard Biener <rguenther@suse.de>
23480 PR tree-optimization/55936
23481 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
23482 parameter and guard unsafe equivalence use.
23483 (vrp_evaluate_conditional_warnv_with_ops): Always use
23484 safe equivalences but not via the quadratic compare_names
23487 2016-03-03 Michael Collison <michael.collison@linaro.org>
23490 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
23491 for operand 1 to s_register_operand. Change predicate for operand
23492 2 to arm_not_immediate_operand.
23494 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
23496 * doc/tm.texi: Regenerated.
23498 2016-03-02 Richard Henderson <rth@redhat.com>
23501 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
23502 simplification when all args are positive non-fixed registers.
23504 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23506 * target.def (lra_p): Specify that new ports should use LRA.
23508 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23511 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
23512 gimplify_type_sizes the type they refer to.
23513 (omp_notice_variable): Handle reference vars to VLAs.
23514 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
23515 reference to VLA decls in the second pass instead of first pass.
23517 2016-03-02 Tom de Vries <tom@codesourcery.com>
23519 PR tree-optimization/68659
23520 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
23521 new_expr == NULL_TREE.
23522 (get_new_name): Handle ADDR_EXPR.
23524 2016-03-02 Bin Cheng <bin.cheng@arm.com>
23526 PR rtl-optimization/69052
23527 * loop-invariant.c (canonicalize_address): New function.
23528 (inv_can_prop_to_addr_use): Check validity of address expression
23529 which is canonicalized by above function.
23531 2016-03-02 Alan Modra <amodra@gmail.com>
23534 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
23537 2016-03-02 Jakub Jelinek <jakub@redhat.com>
23540 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
23541 (*movhi_internal): Put mask moves from and to memory separately
23542 from moves from/to GPRs.
23544 2016-03-02 Richard Biener <rguenther@suse.de>
23546 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
23547 GENERIC expressions in GIMPLE.
23549 2016-03-02 Richard Biener <rguenther@suse.de>
23551 * config/i386/i386.c (type_natural_mode): Fix typo.
23553 2016-03-02 Nick Clifton <nickc@redhat.com>
23555 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
23557 2016-03-02 Richard Biener <rguenther@suse.de>
23558 Uros Bizjak <ubizjak@gmail.com>
23561 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
23563 2016-03-02 Richard Biener <rguenther@suse.de>
23565 PR middle-end/67278
23566 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
23568 2016-03-02 Marek Polacek <polacek@redhat.com>
23571 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
23572 "is promoted to" warning.
23574 2016-03-01 DJ Delorie <dj@redhat.com>
23576 * config.gcc: Deprecate mep-*.
23578 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
23580 PR middle-end/70025
23581 * lra-constraints.c (regno_val_use_in): New.
23582 (match_reload): Use it instead of regno_use_in.
23584 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23586 PR rtl-optimization/70007
23587 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
23588 references present in REG_EQUAL notes attached to non-SET patterns.
23590 2016-03-01 Jeff Law <law@redhat.com>
23592 PR tree-optimization/69196
23593 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23594 Appropriately clamp the number of statements to copy when the
23595 thread path does not traverse a loop backedge.
23597 PR tree-optimization/69196
23598 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23599 Do count some PHIs in the thread path against the insn count. Decrease
23600 final statement count by one as the control statement in the last
23601 block will get removed. Remove special cased code for handling PHIs
23604 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
23607 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
23608 asm dialect alternatives to explicit GOTPCREL calls.
23610 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
23613 * ira.c (do_reload): Issue warning for generic stack checking here...
23614 * reload1.c (reload): ...instead of here and streamline it.
23616 2016-03-01 Nick Clifton <nickc@redhat.com>
23618 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
23620 2016-03-01 Richard Biener <rguenther@suse.de>
23622 PR tree-optimization/69983
23623 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
23624 types and fall back to operand_equal_p.
23626 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23629 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23631 * config/s390/constraints.md ("jm8"): New constraint.
23632 * config/s390/predicates.md ("const_int_8bitset_operand"): New
23634 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
23636 ("*setmem_long<setmem_and>"): New pattern.
23637 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
23639 ("*setmem_long_31z<setmem_and>"): New pattern.
23640 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
23641 New substitution rules with the required attributes.
23644 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23647 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23649 * gensupport.c (process_substs_on_one_elem): Split loop to
23650 complete mark_operands_used_in_match_dup on all expressions in the
23652 (adjust_operands_numbers): Inline into process_substs_on_one_elem
23653 and remove function.
23655 2016-03-01 Richard Biener <rguenther@suse.de>
23657 PR middle-end/70022
23658 * fold-const.c (fold_indirect_ref_1): Fix range checking for
23659 vector BIT_FIELD_REF extract.
23661 2016-03-01 Richard Biener <rguenther@suse.de>
23663 PR tree-optimization/69994
23664 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
23666 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
23668 PR tree-optimization/69956
23669 * tree-vect-stmts.c (supportable_widening_operation): Support
23670 multi-step conversion of boolean vectors.
23671 (supportable_narrowing_operation): Likewise.
23673 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23675 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
23678 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23680 * config/s390/subst.md (DSI_VI): New mode iterator.
23681 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
23682 * config/s390/vector.md ("vec_set<mode>"): Move expander before
23683 the insn definition.
23684 ("*vec_set<mode>"): Change predicate and add alternative to
23685 support only either register or const_int operands as element
23687 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
23689 ("vec_extract<mode>"): New expander.
23690 ("*vec_extract<mode>"): New insn definition supporting reg and
23691 const_int element selectors.
23692 ("*vec_extract<mode>_plus"): New insn definition supporting
23693 reg+const_int element selectors.
23694 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
23695 following expander+insn definition.
23696 ("<vec_shifts_name><mode>3"): New expander.
23697 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
23699 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23701 * config/s390/s390.md ("*tabort_1"): Change predicate to
23702 nonmemory_operand. Add a second alternative to cover
23703 register as well as const int operands.
23704 ("*tabort_1_plus"): New pattern definition.
23706 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23708 * config/s390/s390.md ("*ashrdi3_cc_31")
23709 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
23710 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
23711 Merge insn definitions into ...
23712 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23713 New pattern definition.
23714 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
23715 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
23716 ("*ashr<mode>3_and"): Merge insn definitions into ...
23717 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23718 New pattern definition.
23719 * config/s390/subst.md ("addr_style_op_cc_subst")
23720 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
23721 substitutions patterns plus attributes.
23722 Add ashiftrt to SUBST iterator.
23724 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23726 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
23727 op2 to nonmemory_operand.
23728 ("*<shift>di3_31", "*<shift>di3_31_and"):
23729 Merge into single pattern definition ...
23730 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
23731 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
23732 pattern definition ...
23733 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
23734 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
23737 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23739 * config/s390/predicates.md (const_int_6bitset_operand): New
23741 * config/s390/s390.md: Include subst.md.
23742 ("rotl<mode>3"): New expander.
23743 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
23745 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
23746 * config/s390/subst.md: New file.
23748 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23750 * config/s390/s390.md ("op_type", "atype", "length" attributes):
23751 Remove RRR type. It doesn't really exist.
23752 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
23754 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
23755 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
23756 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
23757 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
23758 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
23759 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
23760 `enabled' attribute.
23762 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23764 * gensupport.c (process_substs_on_one_elem): Split loop to
23765 complete mark_operands_used_in_match_dup on all expressions in the
23767 (adjust_operands_numbers): Inline into process_substs_on_one_elem
23768 and remove function.
23770 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
23773 * config/sparc/sparc.c (NWORDS_UP): Rename to...
23774 (CEIL_NWORDS): ...this. Use CEIL macro.
23775 (compute_fp_layout): Adjust to above renaming.
23776 (function_arg_union_value): Likewise.
23777 (sparc_arg_partial_bytes): Likewise.
23778 (sparc_function_arg_advance): Likewise.
23780 2016-02-29 Jeff Law <law@redhat.com>
23782 PR tree-optimization/70005
23783 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
23784 where an object with a boolean range is compared against a value
23787 PR tree-optimization/69999
23788 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
23789 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
23792 2016-02-29 Richard Biener <rguenther@suse.de>
23794 PR tree-optimization/69994
23795 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
23796 (get_unary_op): Look through nop conversions.
23797 (ops_equal_values_p): New function, look for equality diregarding
23799 (eliminate_plus_minus_pair): Use ops_equal_values_p
23800 (repropagate_negates): Do not use get_unary_op here.
23802 2016-02-29 Martin Liska <mliska@suse.cz>
23804 * system.h: Poison ENABLE_CHECKING macro.
23806 2016-02-29 Martin Liska <mliska@suse.cz>
23808 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
23809 is presented in dump flags.
23810 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
23811 (hsa_regalloc): Likewise.
23813 2016-02-19 Richard Biener <rguenther@suse.de>
23815 PR tree-optimization/69980
23816 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
23817 permutation of those we need to keep.
23819 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
23822 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
23823 (NWORDS_UP): ...this
23824 (init_cumulative_args): Minor tweaks.
23825 (sparc_promote_function_mode): Likewise.
23826 (scan_record_type): Delete.
23827 (traverse_record_type): New function template.
23828 (classify_data_t): New structure type.
23829 (classify_registers): New inline function.
23830 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
23831 exhausted. Instantiate traverse_record_type on classify_registers and
23832 deal with the case of a structure passed in slot #15 with no FP field
23834 (assign_data_t): New structure type.
23835 (compute_int_layout): New static function.
23836 (compute_fp_layout): Likewise.
23837 (count_registers): New inline function.
23838 (assign_int_registers): New static function.
23839 (assign_fp_registers): Likewise.
23840 (assign_registers): New inline function.
23841 (function_arg_record_value_1): Delete.
23842 (function_arg_record_value_2): Likewise.
23843 (function_arg_record_value_3): Likewise.
23844 (function_arg_record_value): Adjust to above changes. Instantiate
23845 traverse_record_type on count_registers to first count the number of
23846 registers to be used and then on assign_registers to assign them.
23847 (function_arg_union_value): Adjust to above renaming.
23848 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
23849 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
23850 case of a structure passed in slot #15
23851 (sparc_function_arg_advance): Likewise.
23852 (function_arg_padding): Minor tweak.
23854 2016-02-29 Richard Biener <rguenther@suse.de>
23856 PR tree-optimization/69720
23857 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
23858 the adjustment_def path for possibly vectorized defs.
23859 (vect_create_epilog_for_reduction): Handle vectorized initial
23862 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
23864 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
23866 2016-02-27 Jeff Law <law@redhat.com>
23869 2016-02-26 Richard Biener <rguenther@suse.de>
23870 Jeff Law <law@redhat.com>
23872 PR tree-optimization/69740
23873 * cfghooks.c (remove_edge): Request loop fixups if we delete
23874 an edge that might turn an irreducible loop into a natural
23877 2016-02-27 Jakub Jelinek <jakub@redhat.com>
23879 PR rtl-optimization/69896
23880 * tree-vect-generic.c (get_compute_type): Avoid single element
23883 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
23885 Rename the AArch64 tuning option and related functions to enable the
23886 Newton series for the reciprocal square root to reflect its
23887 approximative characteristic.
23889 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
23890 function to "aarch64_emit_approx_rsqrt".
23891 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
23892 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
23893 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
23894 (xgene1_tunings): Likewise.
23895 (use_rsqrt_p): Likewise.
23896 (aarch64_emit_swrsqrt): Use new function name.
23897 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
23898 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
23899 text explaining this option.
23900 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
23902 2016-02-26 Jakub Jelinek <jakub@redhat.com>
23905 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23906 complain about -mallow-movmisalign without -mvsx if
23907 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
23909 2016-02-26 Joel Sherrill <joel@rtems.org>
23911 * config.gcc: Add x86_64-*-rtems*.
23912 * config/i386/rtems-64.h: New file.
23914 2016-02-26 Joel Sherrill <joel@rtems.org>
23916 * config.gcc: Add aarch64-*-rtems*.
23917 * config/aarch64/rtems.h: New file.
23919 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
23922 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
23923 shift amount using %h. Add comment.
23925 2016-02-26 Richard Biener <rguenther@suse.de>
23926 Jeff Law <law@redhat.com>
23928 PR tree-optimization/69740
23929 * cfghooks.c (remove_edge): Request loop fixups if we delete
23930 an edge that might turn an irreducible loop into a natural
23933 2016-02-26 Martin Jambor <mjambor@suse.cz>
23935 PR middle-end/69920
23936 * tree-sra.c (sra_modify_assign): Do not remove loads of
23937 uninitialized aggregates to SSA_NAMEs.
23939 2016-02-26 Richard Henderson <rth@redhat.com>
23942 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
23943 pseudo in case the target rtx matches the source of the left
23946 2016-02-26 Martin Jambor <mjambor@suse.cz>
23949 * hsa.h (hsa_type_packed_p): Declare.
23950 * hsa.c (hsa_type_packed_p): New function.
23951 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
23953 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
23954 * hsa-brig.c (emit_basic_insn): Likewise.
23956 2016-02-26 Martin Jambor <mjambor@suse.cz>
23959 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
23961 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
23963 2016-02-26 Martin Jambor <mjambor@suse.cz>
23965 * hsa.h (is_a_helper): New overload for hsa_op_immed for
23966 hsa_op_with_type operands.
23967 (hsa_unsigned_type_for_type): Declare.
23968 * hsa.c (hsa_unsigned_type_for_type): New function.
23969 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
23970 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
23971 the finalizer. Do not emit extra move.
23973 2016-02-26 Martin Jambor <mjambor@suse.cz>
23975 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
23976 atomic operations in private segment.
23978 2016-02-26 Martin Jambor <mjambor@suse.cz>
23980 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
23981 statements to wi->info. Also disallow omp simd constructs.
23982 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
23983 for not gridifying. Dump special string for omp_for.
23985 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23988 * config/aarch64/aarch64.c (aarch64_set_current_function):
23989 Save/restore target globals when switching to
23990 target_option_default_node.
23992 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23995 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
23996 Return 0 if !SHIFT_COUNT_TRUNCATED.
23998 2016-02-26 Jakub Jelinek <jakub@redhat.com>
23999 Eric Botcazou <ebotcazou@adacore.com>
24001 PR rtl-optimization/69891
24002 * dse.c (scan_insn): If we can't figure out memset arguments
24003 or they are non-constant, call clear_rhs_from_active_local_stores.
24005 2016-02-26 Martin Liska <mliska@suse.cz>
24007 * doc/extend.texi: Mention clog10, clog10f an clog10l
24008 in Builtins section.
24010 2016-02-26 Martin Liska <mliska@suse.cz>
24012 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
24014 (resolve_args_picking_1): Likewise.
24015 * dwarf2out.h (struct GTY): Likewise.
24017 2016-02-26 Martin Liska <mliska@suse.cz>
24019 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
24020 with flag_checking.
24021 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24023 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24024 Martin Liska <mliska@suse.cz>
24026 * doc/install.texi: Mention --enable-valgrind-annotations.
24028 2016-02-26 Richard Biener <rguenther@suse.de>
24030 PR tree-optimization/69551
24031 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
24032 looking through aliases adjust DECL_PT_UID to refer to the
24033 ultimate alias target.
24035 2016-02-25 Martin Liska <mliska@suse.cz>
24037 PR middle-end/69919
24038 * alloc-pool.c (after_memory_report): New variable.
24039 * alloc-pool.h (base_pool_allocator ::release): Do not use
24040 the infrastructure if after_memory_report.
24041 * toplev.c (toplev::main): Mark after memory report.
24043 2016-02-25 Richard Biener <rguenther@suse.de>
24045 PR tree-optimization/48795
24046 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
24048 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
24051 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
24052 offloading is enabled and -fopenacc or -fopenmp is specified.
24053 (CRTOFFLOADEND): Likewise.
24054 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
24055 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
24056 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
24057 (offload_objects_file_name): New static var.
24058 (tool_cleanup): Remove offload_objects_file_name file.
24059 (find_offloadbeginend): Replace with ...
24060 (find_crtoffloadtable): ... this.
24061 (run_gcc): Remove offload_argc and offload_argv.
24062 Get offload_objects_file_name from -foffload-objects=... option.
24063 Read names of object files with offload from this file, pass them to
24064 compile_images_for_offload_targets. Don't call find_offloadbeginend and
24065 don't pass offloadbegin and offloadend to the linker. Don't pass
24066 offload non-LTO files to the linker, because now they're not claimed.
24068 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
24071 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
24072 on builtin_unreachable.
24074 2016-02-25 Jakub Jelinek <jakub@redhat.com>
24076 PR rtl-optimization/69896
24077 * regcprop.c: Include cfgrtl.h.
24078 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
24079 than remembered mode, either delete it (if noop_move_p), or
24080 treat like copy_p but not noop_p instruction.
24082 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24085 * dwarf2out.c (gen_variable_die): Work around buggy LTO
24086 - allow NULL decl for Fortran DW_TAG_common_block variables.
24088 2016-02-24 Jason Merrill <jason@redhat.com>
24090 * common.opt (flifetime-dse): Add -flifetime-dse=1.
24092 2016-02-24 Richard Biener <rguenther@suse.de>
24093 Jakub Jelinek <jakub@redhat.com>
24095 PR middle-end/69760
24096 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
24097 conditionally executed ops to well-defined overflow behavior.
24099 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24101 PR middle-end/69915
24102 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
24105 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24107 PR rtl-optimization/69886
24108 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
24109 argument. Use it when checking validity of set instructions.
24110 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
24111 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
24113 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
24114 * store-motion.c (find_moveable_store): Update
24115 can_assign_to_reg_without_clobbers_p callsite.
24117 2016-02-24 Richard Biener <rguenther@suse.de>
24119 PR middle-end/68963
24120 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
24122 (record_nonwrapping_iv): Do not fall back to the low/high bound
24123 for non-constant IV bases if the stmt is not always executed.
24125 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24127 * config/arm/arm-cores.def (cortex-a32): New entry.
24128 * config/arm/arm-tables.opt: Regenerate.
24129 * config/arm/arm-tune.md: Regenerate.
24130 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
24131 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
24132 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
24133 for -mcpu and -mtune.
24135 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24138 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
24139 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
24140 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
24141 (atomic_loaddi_1): Delete.
24142 (atomic_loaddi): Rewrite expander using the above changes.
24144 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24147 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
24150 2016-02-24 Jakub Jelinek <jakub@redhat.com>
24151 Richard Biener <rguenth@suse.de>
24153 PR middle-end/69909
24154 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
24155 set_mem_attributes if tem is SSA_NAME which got expanded
24158 2016-02-24 Richard Biener <rguenther@suse.de>
24160 PR tree-optimization/69907
24161 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
24162 end of permutations for BB vectorization.
24164 2016-02-24 Christian Bruel <christian.bruel@st.com>
24166 * config/arm/arm-c.c (arm_option_override): Initialize
24167 target_option_current_node.
24168 * config/arm/arm.c (arm_pragma_target_parse): Replace
24169 build_target_option_node call by target_option_current_node.
24170 Set target_option_current_node.
24173 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
24176 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
24177 define_insn_and_split to define_insn.
24178 (zero_extendqi<mode>2_dot2): Same.
24179 (extendqi<mode>2_dot): Same.
24180 (extendqi<mode>2_dot2): Same.
24182 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24184 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
24185 and add bypass for AES{D,E} and AESMC pairs.
24186 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
24189 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
24191 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
24192 series for reciprocal square root in Exynos M1.
24194 2016-02-23 Martin Sebor <msebor@redhat.com>
24197 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
24198 __builtin_alloca_with_align.
24200 2016-02-23 Richard Henderson <rth@redhat.com>
24202 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
24203 (ix86_register_pragmas): Remove __seg_tls.
24204 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
24205 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
24206 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
24207 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
24208 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
24209 * doc/extend.texi (__seg_tls): Remove item.
24211 2016-02-23 Richard Biener <rguenther@suse.de>
24213 * alloc-pool.h (struct allocation_object): Make id member
24214 conditional on CHECKING_P again.
24215 (get_instance): Adjust.
24216 (base_pool_allocator): Likewise.
24218 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
24220 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
24221 (parallelize_loops): In OpenACC kernels mode, set n_threads to
24223 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
24225 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
24227 2016-02-23 Richard Biener <rguenther@suse.de>
24229 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
24230 * bitmap.h (struct bitmap_usage): Likewise.
24231 (bitmap_move): Declare.
24232 * bitmap.c (register_overhead): Take size_t argument.
24233 (bitmap_move): New function.
24234 * df-problems.c (df_rd_transfer_function): Use bitmap_move
24235 to properly account overhead.
24236 * tree.c (free_node): Use tree_size.
24238 2016-02-23 Jakub Jelinek <jakub@redhat.com>
24241 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
24242 when inverting comparison.
24245 * common.opt (Wunreachable-code): Add Warning flag.
24247 2016-02-23 Mark Wielaard <mjw@redhat.com>
24248 Jakub Jelinek <jakub@redhat.com>
24251 * cgraphunit.c (check_global_declaration): Check main_input_filename
24252 and DECL_SOURCE_FILE are not NULL.
24254 2016-02-23 Martin Jambor <mjambor@suse.cz>
24256 PR tree-optimization/69666
24257 * tree-sra.c (sra_modify_assign): Do not attempt to create
24258 default_def replacements for unscalarizable regions.
24260 2016-02-20 Mark Wielaard <mjw@redhat.com>
24263 * cgraphunit.c (check_global_declaration): Check level of
24264 warn_unused_const_variable and main_input_filename.
24265 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
24266 (-Wunused-variable): For C implies -Wunused-const-variable=1.
24267 (-Wunused-const-variable): Explain levels 1 and 2.
24269 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24272 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
24273 identical arguments. Formatting and spelling fixes.
24276 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
24281 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
24282 and m68k-devices.def.
24283 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
24284 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
24286 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
24288 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
24289 and HImode registers.
24291 2016-02-22 Richard Biener <rguenther@suse.de>
24293 PR tree-optimization/69882
24294 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
24295 preserve permutations present because of gaps.
24296 (vect_supported_load_permutation_p): Always continue checking
24297 permutations after vect_attempt_slp_rearrange_stmts.
24299 2016-02-22 Bin Cheng <bin.cheng@arm.com>
24301 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
24302 min_profitable_estimate, rather than min_profitable_iters.
24304 2016-02-22 Jakub Jelinek <jakub@redhat.com>
24307 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
24308 SImode for last match_operand.
24310 2016-02-22 Martin Liska <mliska@suse.cz>
24312 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
24313 return bitsize - 1 as the return value.
24315 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
24319 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
24320 Handle negative shift counts.
24321 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
24322 force_reg on the shift constant.
24323 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
24324 (lshrsi3_d): Handle negative shift counts.
24326 2016-02-22 Richard Biener <rguenther@suse.de>
24327 Tom de Vries <tom@codesourcery.com>
24329 * graph.c: Include dumpfile.h.
24330 (print_graph_cfg): Split into three overloads.
24331 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
24333 2016-02-22 Tom de Vries <tom@codesourcery.com>
24335 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
24338 2016-02-22 Richard Biener <rguenther@suse.de>
24341 * ipa-inline-transform.c (inline_call): When not updating
24342 overall summaries adjust self size by the growth estimate.
24343 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
24344 hash-set, do not update overall summaries here. Renamed from ...
24345 (inline_to_all_callers): ... this which is now wrapping the
24346 above and performing delayed overall summary update.
24347 (early_inline_small_functions): Delay updating of the overall
24350 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
24352 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
24355 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24358 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
24359 :%* in %:gt() argument.
24360 (greater_than_spec_func): Adjust for expecting only numbers,
24361 if there are more than two numbers, compare the last two.
24363 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
24365 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
24366 -Wnarrowing with -std.
24368 2016-02-19 Jakub Jelinek <jakub@redhat.com>
24371 * expr.c (store_field): Don't use bit-field path if exp is
24372 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
24373 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
24374 and the assignment can be performed by bitwise copy. Formatting
24377 PR middle-end/69838
24378 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
24379 call copy_reg_eh_region_note_forward on before and/or after sequences
24380 and remove note from insn if it no longer can throw.
24383 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
24384 if TARGET_AVX512BW.
24386 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24388 * config/s390/vector.md: Add missing commutative operand markers
24389 to the patterns which qualify for one.
24390 * config/s390/vx-builtins.md: Likewise.
24392 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24394 * config/s390/vector.md (VI, VI_QHS): Add single element vector
24395 types to mode iterators.
24396 (vec_double): ... and mode attribute.
24397 * config/s390/vx-builtins.md (non_vec_int): Likewise.
24399 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24401 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
24402 Change the predicate of op2 from nonimmediate to general and let
24403 reload fix it if necessary.
24405 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24407 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
24409 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24411 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
24414 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24416 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
24417 * config/s390/s390.c (s390_expand_vec_movstr): New function.
24418 * config/s390/s390.md ("movstr<P:mode>"): Call
24419 s390_expand_vec_movstr.
24421 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24423 * config/s390/s390.md: Add missing output modifier for operand 1
24424 to print it as address properly.
24426 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24428 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
24429 * config/s390/2964.md: New file.
24430 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
24431 of insn grouping attributes depending on the CPU level.
24432 (s390_get_unit_mask): New function.
24433 (s390_sched_score): Remove the OOO from the scheduling macros.
24434 Add loop to calculate a score for the instruction mix.
24435 (s390_sched_reorder): Likewise plus improve debug output.
24436 (s390_sched_variable_issue): Rename macros as above. Calculate
24437 the unit distances after actually scheduling an insn. Improve
24439 (s390_sched_init): Clear last_scheduled_unit_distance array.
24440 * config/s390/s390.md: Include 2964.md.
24442 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24445 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
24446 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
24447 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
24448 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
24449 *avx512f_<code>v8div16qi2_mask_1): New insns.
24451 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24454 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
24457 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
24458 earlyclobber from target. Use wF constraint for fused memory
24460 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
24462 2016-02-18 Jakub Jelinek <jakub@redhat.com>
24463 Martin Liska <mliska@suse.cz>
24466 * cfgexpand.c (asan_sanitize_stack_p): New function.
24467 (partition_stack_vars): Use the function.
24468 (expand_stack_vars): Likewise.
24469 (defer_stack_allocation): Likewise.
24470 (expand_used_vars): Likewise.
24472 2016-02-18 Richard Biener <rguenther@suse.de>
24474 PR middle-end/69553
24475 * fold-const.c (operand_equal_p): Properly compare offsets for
24476 IMAGPART_EXPR and ARRAY_REF.
24478 2016-02-18 Nick Clifton <nickc@redhat.com>
24482 * config/arm/arm.c (arm_option_override_internal): Disable
24483 interworking if the target does not support thumb instructions.
24484 (arm_reload_in_hi): Handle the case where a register to register
24485 move needs reloading because there is no simple pattern to handle
24487 (arm_reload_out_hi): Likewise.
24489 2016-02-18 Richard Biener <rguenther@suse.de>
24491 PR middle-end/69854
24492 * match.pd: Don't use fold_binary or fold_unary for folding
24495 2016-02-17 Jakub Jelinek <jakub@redhat.com>
24498 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
24499 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
24500 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
24501 warn on gimple_no_warning_p statements.
24503 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
24505 * doc/extend.texi (C++ Attributes): Correct description of
24506 warn_unused type attribute.
24508 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24510 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
24511 correct instruction.
24513 2016-02-17 Richard Biener <rguenther@suse.de>
24515 PR rtl-optimization/69609
24516 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
24517 (find_traces_1_round): When ending a trace update cached priority
24519 (bb_to_key): Use cached priority when available.
24520 (copy_bb): Initialize cached priority.
24521 (reorder_basic_blocks_software_trace_cache): Likewise.
24523 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24526 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
24528 (aarch64_comparison_operator): Break overly long line into two.
24529 (aarch64_comparison_operation): Likewise.
24530 * config/aarch64/aarch64.md (cstorecc4): Use
24531 aarch64_comparison_operator_mode instead of
24532 aarch64_comparison_operator.
24533 (cstore<mode>4): Likewise.
24534 (aarch64_cstore<mode>): Likewise.
24535 (*cstoresi_insn_uxtw): Likewise.
24536 (cstore<mode>_neg): Likewise.
24537 (*cstoresi_neg_uxtw): Likewise.
24539 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24542 * config/arm/predicates.md (arm_comparison_operator_mode):
24544 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
24545 instead of arm_comparison_operator.
24546 (*mov_negscc): Likewise.
24547 (*mov_notscc): Likewise.
24548 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
24549 (*thumb2_mov_negscc): Likewise.
24550 (*thumb2_mov_negscc_strict_it): Likewise.
24551 (*thumb2_mov_notscc): Likewise.
24552 (*thumb2_mov_notscc_strict_it): Likewise.
24554 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
24556 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
24557 Add missing return.
24559 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
24561 * config/visium/visium.c (machine_libfunc_index): New enum.
24562 (machine_libfuncs): New structure.
24563 (visium_libfuncs): New static variable.
24564 (TARGET_INIT_LIBFUNCS): Define to...
24565 (visium_init_libfuncs): ...this. New function.
24566 (expand_block_move_4): Use the appropriate libfunc.
24567 (expand_block_move_2): Likewise.
24568 (expand_block_move_1): Likewise.
24569 (expand_block_set_4): Likewise.
24570 (expand_block_set_2): Likewise.
24571 (expand_block_set_1): Likewise.
24572 (visium_trampoline_init): Likewise.
24574 2016-02-17 Nick Clifton <nickc@redhat.com>
24576 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
24577 TI's devices.csv file as of March 2016.
24579 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
24582 * opts-global.c (handle_common_deferred_options): Introduce and
24583 initialize two global variables to remember command-line options
24584 specifying a stack-limiting register.
24585 * opts.h: Add extern declarations of the two new global variables.
24586 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
24587 variable based on the values of the two new global variables.
24589 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24592 * common.opt (Wnonnull-compare): New warning.
24593 * doc/invoke.texi (-Wnonnull): Remove text about comparison
24594 of arguments against NULL.
24595 (-Wnonnull-compare): Document.
24596 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
24597 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
24598 * passes.def (pass_warn_nonnull_compare): Add.
24599 * gimple-ssa-nonnull-compare.c: New file.
24601 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24603 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
24604 AARCH64_EXTRA_TUNE_RECIP_SQRT.
24606 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24608 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
24609 reciprocal sqrt for -mlow-precision-recip-sqrt.
24611 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24612 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24614 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
24615 always use lane loads to construct non-constant vectors.
24617 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24619 * config/aarch64/aarch64.md
24620 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
24621 constraints for operand 3.
24622 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
24624 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24625 Richard Biener <rguenther@suse.de>
24627 PR tree-optimization/69820
24628 * tree-vect-patterns.c (type_conversion_p): Return false if
24629 *orig_type is unsigned single precision or boolean.
24630 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
24633 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24635 PR rtl-optimization/69764
24636 PR rtl-optimization/69771
24637 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
24638 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
24640 2016-02-16 Richard Biener <rguenther@suse.de>
24642 PR tree-optimization/69776
24643 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
24645 (indirect_refs_may_alias_p): Likewise.
24646 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
24647 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
24648 according to tbaa_p.
24649 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
24650 (optimize_stmt): For redundant store discovery do not allow tbaa.
24652 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
24654 PR tree-optimization/69714
24655 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
24656 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
24658 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
24660 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
24661 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
24662 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
24663 * config/arc/arc.c (arc_init): Check FPU options.
24664 (get_arc_condition_code): Handle new CC_FPU* modes.
24665 (arc_select_cc_mode): Likewise.
24666 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
24667 register pair only. Allow access for ARCv2 accumulator.
24668 (gen_compare_reg): Whenever we have FPU support use FPU compare
24670 (arc_reorg): Don't generate brcc insns when FPU compare
24671 instructions are involved.
24672 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
24673 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
24674 floating point emulation.
24675 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
24676 (REVERSE_CONDITION): Add new CC_FPU* modes.
24677 (TARGET_FP_SP_BASE): Define.
24678 (TARGET_FP_DP_BASE): Likewise.
24679 (TARGET_FP_SP_FUSED): Likewise.
24680 (TARGET_FP_DP_FUSED): Likewise.
24681 (TARGET_FP_SP_CONV): Likewise.
24682 (TARGET_FP_DP_CONV): Likewise.
24683 (TARGET_FP_SP_SQRT): Likewise.
24684 (TARGET_FP_DP_SQRT): Likewise.
24685 (TARGET_FP_DP_AX): Likewise.
24686 * config/arc/arc.md (ARCV2_ACC): New constant.
24687 (type): New fpu type attribute.
24688 (SDF): Conditional iterator.
24689 (cstore<mode>, cbranch<mode>): Change expand condition.
24690 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
24691 handles FPU/FPX cases as well.
24692 * config/arc/arc.opt (mfpu): New option.
24693 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
24695 (adddf3, muldf3, subdf3): Removed.
24696 * config/arc/predicates.md (proper_comparison_operator): Recognize
24698 * config/arc/fpu.md: New file.
24699 * doc/invoke.texi (ARC Options): Document mfpu option.
24701 2016-02-16 Richard Biener <rguenther@suse.de>
24703 PR rtl-optimization/69291
24704 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
24705 noce_operand_ok check.
24707 2016-02-16 Tom de Vries <tom@codesourcery.com>
24710 * omp-low.c (simd_clone_create): Remove call to
24711 symtab->call_cgraph_insertion_hooks.
24713 2016-02-16 Jakub Jelinek <jakub@redhat.com>
24715 PR tree-optimization/69802
24716 * tree-ssa-reassoc.c (update_range_test): If op is
24717 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
24718 op == 1 test of precision 1 integral op, otherwise handle
24719 that case as op itself. Fix up formatting.
24720 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
24723 2016-02-16 Richard Biener <rguenther@suse.de>
24725 PR tree-optimization/69586
24726 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
24727 types for conversion sources.
24729 2016-02-16 Richard Biener <rguenther@suse.de>
24731 PR middle-end/69801
24732 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
24733 mask OEP_ADDRESS_OF.
24735 2016-02-16 Alan Modra <amodra@gmail.com>
24738 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
24739 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
24740 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
24742 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
24743 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
24744 (p8_fmrgow_<mode>): Likewise.
24745 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
24747 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
24748 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
24749 to use movdi_internal64. Remove op0_di.
24750 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
24752 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
24754 Add support for the FCCMP insn types
24756 * config/aarch64/aarch64.md (fccmp): Change insn type.
24757 (fccmpe): Likewise.
24758 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
24759 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
24760 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
24761 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
24762 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
24763 * config/arm/types.md (fccmps): Add new insn type.
24764 (fccmpd): Likewise.
24766 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
24768 * alias.c (get_alias_set): Fix a typo in comment.
24770 2016-02-15 Richard Biener <rguenther@suse.de>
24772 PR tree-optimization/69595
24773 * match.pd: Complete range test simplification to true.
24775 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
24777 PR rtl-optimization/69648
24778 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
24779 pic_offset_table_rtx.
24781 PR rtl-optimization/69752
24782 * ira.c (update_equiv_regs): When looking for more than a single SET,
24783 also take other side effects into account.
24785 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
24787 * config/s390/s390.c (s390_function_profiler): Add a new sequence
24788 for z900+ CPUs in 31-bit mode.
24790 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
24792 * common/config/s390/s390-common.c (s390_supports_split_stack):
24794 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
24795 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
24796 * config/s390/s390.c (struct machine_function): New field
24797 split_stack_varargs_pointer.
24798 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
24799 in s390_emit_prologue.
24800 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
24802 (morestack_ref): New global.
24803 (SPLIT_STACK_AVAILABLE): New macro.
24804 (s390_expand_split_stack_prologue): New function.
24805 (s390_live_on_entry): New function.
24806 (s390_va_start): Use split-stack vararg pointer if appropriate.
24807 (s390_asm_file_end): Emit the split-stack note sections.
24808 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
24809 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
24810 (UNSPECV_SPLIT_STACK_CALL): New unspec.
24811 (UNSPECV_SPLIT_STACK_DATA): New unspec.
24812 (split_stack_prologue): New expand.
24813 (split_stack_space_check): New expand.
24814 (split_stack_data): New insn.
24815 (split_stack_call): New expand.
24816 (split_stack_call_*): New insn.
24817 (split_stack_cond_call): New expand.
24818 (split_stack_cond_call_*): New insn.
24820 2016-02-15 Richard Biener <rguenther@suse.de>
24822 PR tree-optimization/69783
24823 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24824 Add trivially correct cases.
24826 2016-02-15 Tom de Vries <tom@codesourcery.com>
24829 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
24831 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
24833 2016-02-15 Richard Biener <rguenther@suse.de>
24835 PR tree-optimization/69776
24836 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
24837 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
24838 indicate whether we can use TBAA to disambiguate against stores.
24839 Use alias-set zero if not.
24840 (visit_reference_op_store): Do not use TBAA when looking up
24842 * tree-ssa-pre.c (compute_avail): Use TBAA here.
24843 (eliminate_dom_walker::before_dom_children): But not when looking
24844 up redundant stores.
24846 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
24848 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
24850 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24852 * config/i386/znver1.md
24853 (znver1_pop, znver1_pop_mem,
24854 znver1_load_imov_double_store,
24855 znver1_load_imov_direct_store,
24856 znver1_load_imov_direct_load,
24857 znver1_load_imov_double_load): Add new.
24858 (znver1_insn, znver1_insn_load): Add icmov type.
24859 (znver1_sseavx_fma,
24860 znver1_sseavx_fma_load,
24862 znver1_avx256_fma_load): Fix pipe usage.
24864 2016-02-14 Alan Modra <amodra@gmail.com>
24867 * reload.c (find_reloads_address_1): For pre/post-inc/dec
24868 with an invalid hard reg, reload just the reg not the entire
24869 pre/post-inc/dec address expression.
24871 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
24874 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
24875 fixed R1_REG scratch reg.
24876 (sibcall_value_pcrel_fdpic): Likewise.
24878 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
24882 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
24884 2016-02-12 Walter Lee <walt@tilera.com>
24886 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
24887 * config/tilegx/t-tilegx: Likewise.
24889 2016-02-12 David Malcolm <dmalcolm@redhat.com>
24892 * diagnostic-show-locus.c (struct line_span): New struct.
24893 (layout::get_first_line): Delete.
24894 (layout::get_last_line): Delete.
24895 (layout::get_num_line_spans): New member function.
24896 (layout::get_line_span): Likewise.
24897 (layout::print_heading_for_line_span_index_p): Likewise.
24898 (layout::get_expanded_location): Likewise.
24899 (layout::calculate_line_spans): Likewise.
24900 (layout::m_first_line): Delete.
24901 (layout::m_last_line): Delete.
24902 (layout::m_line_spans): New field.
24903 (layout::layout): Update comment. Replace m_first_line and
24904 m_last_line with m_line_spans, replacing their initialization
24905 with a call to calculate_line_spans.
24906 (diagnostic_show_locus): When printing source lines and
24907 annotations, rather than looping over a single span
24908 of lines, instead loop over each line_span within
24909 the layout, with an inner loop over the lines within them.
24910 Call the context's start_span callback when changing line spans.
24911 * diagnostic.c (diagnostic_initialize): Initialize start_span.
24912 (diagnostic_build_prefix): Break out the building of the location
24913 part of the string into...
24914 (diagnostic_get_location_text): ...this new function, rewriting
24915 it from nested ternary expressions to a sequence of "if"
24917 (default_diagnostic_start_span_fn): New function.
24918 * diagnostic.h (diagnostic_start_span_fn): New typedef.
24919 (diagnostic_context::start_span): New field.
24920 (default_diagnostic_start_span_fn): New prototype.
24922 2016-02-12 David Malcolm <dmalcolm@redhat.com>
24925 * gcc.c (driver::finalize): Fix cleanup of "specs".
24927 2016-02-12 David Malcolm <dmalcolm@redhat.com>
24931 * gcc.c (driver::driver): Initialize m_option_suggestions.
24932 (driver::~driver): Clean up m_option_suggestions.
24933 (suggest_option): Convert to...
24934 (driver::suggest_option): ...this, and split out into
24935 driver::build_option_suggestions and find_closest_string.
24936 (driver::build_option_suggestions): New function, from
24937 first half of suggest_option. Special-case
24938 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
24939 the sanitizer_opts array. For options of enum types, add the
24940 various enum values to the candidate strings.
24941 (driver::handle_unrecognized_options): Remove "const".
24942 * gcc.h (driver::handle_unrecognized_options): Likewise.
24943 (driver::build_option_suggestions): New decl.
24944 (driver::suggest_option): New decl.
24945 (driver::m_option_suggestions): New field.
24946 * opts-common.c (add_misspelling_candidates): New function.
24947 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
24948 and make non-static.
24949 * opts.h (sanitizer_opts): New array decl.
24950 (add_misspelling_candidates): New function decl.
24951 * spellcheck.c (find_closest_string): New function.
24952 * spellcheck.h (find_closest_string): New function decl.
24954 2016-02-12 Jakub Jelinek <jakub@redhat.com>
24956 PR rtl-optimization/69764
24957 PR rtl-optimization/69771
24958 * optabs.c (expand_binop_directly): For shift_optab_p, force
24959 convert_modes with VOIDmode if xop1 has VOIDmode.
24961 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
24964 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
24965 to correctly determine instrumentation thunks.
24967 2016-02-12 Jakub Jelinek <jakub@redhat.com>
24970 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
24971 type by reference, force lhs on the call.
24974 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
24975 Compute retval and retbnd early in all cases if split_part_return_p
24976 and return_bb is not EXIT. Remove all clobber stmts and reset
24977 all debug stmts that refer to SSA_NAMEs defined in split part,
24978 except if it is retval, in that case replace the old retval with the
24979 lhs of the call to the split part.
24981 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
24984 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
24986 PR middle-end/66726
24987 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
24988 whose result is used in PHI.
24989 (maybe_optimize_range_tests): Likewise.
24990 (final_range_test_p): Likweise.
24992 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
24994 PR middle-end/66726
24995 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
24996 whose result is used in PHI.
24997 (maybe_optimize_range_tests): Likewise.
24998 (final_range_test_p): Likweise.
25000 2016-02-12 Jakub Jelinek <jakub@redhat.com>
25002 * cgraph.c: Spelling fixes - behaviour -> behavior and
25003 neighbour -> neighbor.
25004 * target.def: Likewise.
25005 * sel-sched.c: Likewise.
25006 * config/mips/mips.c: Likewise.
25007 * config/arc/arc.md: Likewise.
25008 * config/arm/cortex-a57.md: Likewise.
25009 * config/arm/arm.c: Likewise.
25010 * config/arm/neon.md: Likewise.
25011 * config/arm/arm-c.c: Likewise.
25012 * config/vms/vms-c.c: Likewise.
25013 * config/s390/s390.c: Likewise.
25014 * config/i386/znver1.md: Likewise.
25015 * config/i386/i386.c: Likewise.
25016 * config/ia64/hpux-unix2003.h: Likewise.
25017 * config/msp430/msp430.md: Likewise.
25018 * config/rx/rx.c: Likewise.
25019 * config/rx/rx.md: Likewise.
25020 * config/aarch64/aarch64-simd.md: Likewise.
25021 * config/aarch64/aarch64.c: Likewise.
25022 * config/nvptx/nvptx.c: Likewise.
25023 * config/bfin/bfin.c: Likewise.
25024 * config/cris/cris.opt: Likewise.
25025 * config/rs6000/rs6000.c: Likewise.
25026 * target.h: Likewise.
25027 * spellcheck.c: Likewise.
25028 * ira-build.c: Likewise.
25029 * tree-inline.c: Likewise.
25030 * builtins.c: Likewise.
25031 * lra-constraints.c: Likewise.
25032 * explow.c: Likewise.
25033 * hwint.h: Likewise.
25034 * targhooks.c: Likewise.
25035 * tree-vect-data-refs.c: Likewise.
25036 * expr.c: Likewise.
25037 * doc/tm.texi: Likewise.
25038 * doc/extend.texi: Likewise.
25039 * doc/install.texi: Likewise.
25040 * doc/md.texi: Likewise.
25041 * tree-ssa-tail-merge.c: Likewise.
25042 * sched-int.h: Likewise.
25043 * match.pd: Likewise.
25044 * sched-ebb.c: Likewise.
25045 * target.def (omit_struct_return_reg): Likewise.
25046 * gimple-ssa-isolate-paths.c: Likewise.
25047 (find_implicit_erroneous_behaviour): Renamed to...
25048 (find_implicit_erroneous_behavior): ... this.
25049 (find_explicit_erroneous_behaviour): Renamed to...
25050 (find_explicit_erroneous_behavior): ... this.
25051 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
25053 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
25055 PR rtl-optimization/64682
25056 PR rtl-optimization/69567
25057 PR rtl-optimization/69737
25058 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
25059 in I2 as well, just lose it.
25061 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25063 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
25065 (aarch64_last_printed_tune_string): Likewise.
25066 (aarch64_declare_function_name): Only output .arch assembler
25067 directive if it will be different from the previously output
25068 directive. Same for .tune comment but only if -dA is set.
25069 (aarch64_start_file): New function.
25070 (TARGET_ASM_FILE_START): Define.
25072 2016-02-11 David Malcolm <dmalcolm@redhat.com>
25075 * Makefile.in (PLUGIN_HEADERS): Add params.list.
25077 2016-02-11 Jakub Jelinek <jakub@redhat.com>
25080 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
25081 -Wmaybe-uninitialized warning.
25083 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
25086 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
25088 2016-02-11 Richard Biener <rguenther@suse.de>
25090 PR rtl-optimization/69291
25091 * ifcvt.c (noce_try_store_flag_constants): Do not allow
25092 subexpressions affected by changing the result.
25094 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
25097 * lra-constraints.c (curr_insn_transform): Find in/out operands
25098 for secondary memory moves. Update dups.
25100 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
25102 PR tree-optimization/69652
25103 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
25104 to nested loop, did source re-formatting, skip debug statements,
25105 add check on statement with volatile operand, remove dead scalar
25108 2016-02-10 Jakub Jelinek <jakub@redhat.com>
25109 Patrick Palka <ppalka@gcc.gnu.org>
25113 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
25114 calls if the return type is TREE_ADDRESSABLE.
25115 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
25116 * ipa-split.c (split_function): Fix doubled "we" in comment.
25117 Use void return type for the split part even if
25118 !split_point->split_part_set_retval.
25120 2016-02-10 Bin Cheng <bin.cheng@arm.com>
25122 PR tree-optimization/68021
25123 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
25124 when computing the value of biv cand by itself.
25126 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25128 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
25129 (cortexa57_tunings): Likewise.
25130 (cortexa72_tunings): Likewise.
25131 (arch_macro_fusion_pair_p): Add support for AES fusion.
25132 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
25133 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
25134 Allow virtual registers before reload so early scheduling works.
25135 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
25136 correct latency and pipeline.
25137 (cortex_a57_crypto_complex): Likewise.
25138 (cortex_a57_crypto_xor): Likewise.
25139 (define_bypass): Add AES bypass.
25141 2016-02-10 Richard Biener <rguenther@suse.de>
25143 PR tree-optimization/69726
25144 * passes.def: Add DCE pass before late uninit.
25145 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
25146 really fixup if-conversions job.
25148 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
25150 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
25151 (arm_cortex_a57_tune): Likewise.
25152 (aarch_macro_fusion_pair_p): Add support for AES fusion.
25153 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
25155 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
25157 * timevar.def (TV_PHASE_DBGINFO): Delete.
25158 (TV_PHASE_CHECK_DBGINFO): Likewise.
25159 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
25161 2016-02-10 Richard Biener <rguenther@suse.de>
25163 PR tree-optimization/69719
25164 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25165 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
25167 2016-02-09 Andrew Pinski <apinski@cavium.com>
25170 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
25171 get_vcond_mask_icode returns false.
25173 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
25176 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
25177 an ADDIS that adds a pointer to a large constant that sets the
25178 upper16 bits with a load operation.
25180 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25183 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
25185 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
25187 (vzipq_s16): Likewise.
25188 (vzipq_s32): Likewise.
25189 (vzipq_f32): Likewise.
25190 (vzipq_u8): Likewise.
25191 (vzipq_u16): Likewise.
25192 (vzipq_u32): Likewise.
25193 (vzipq_p8): Likewise.
25194 (vzipq_p16): Likewise.
25196 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
25199 * config/arm/arm.c (neon_endian_lane_map): New function.
25200 (neon_vector_pair_endian_lane_map): New function.
25201 (arm_evpc_neon_vuzp): Allow for big endian lane order.
25202 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
25204 (vuzpq_s16): Likewise.
25205 (vuzpq_s32): Likewise.
25206 (vuzpq_f32): Likewise.
25207 (vuzpq_u8): Likewise.
25208 (vuzpq_u16): Likewise.
25209 (vuzpq_u32): Likewise.
25210 (vuzpq_p8): Likewise.
25211 (vuzpq_p16): Likewise.
25213 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
25216 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
25219 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
25221 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
25222 truncate const_int operand 1 to QImode.
25224 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
25226 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
25227 corresponding to an abnormal edge.
25229 2016-02-09 Tom de Vries <tom@codesourcery.com>
25231 PR tree-optimization/69599
25232 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
25234 (find_func_aliases_for_builtin_call, find_func_clobbers)
25235 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
25238 2016-02-09 Richard Biener <rguenther@suse.de>
25240 PR tree-optimization/69715
25241 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
25242 LHS on calls as non-rewritable.
25244 2016-02-09 Tom de Vries <tom@codesourcery.com>
25247 * lto-wrapper.c (append_diag_options): New function.
25248 (compile_offload_image): Call append_diag_options.
25250 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
25253 * doc/extend.texi (Flag Output Operands): Correct sectioning.
25254 Minor copy-edit to fix verb tenses.
25256 2016-02-08 Jakub Jelinek <jakub@redhat.com>
25258 PR tree-optimization/69209
25259 * ipa-split.c (split_function): If split part is not
25260 returning retval, retval has gimple type but is not
25261 gimple value, force it into a SSA_NAME first.
25263 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
25265 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
25268 2016-02-08 Jason Merrill <jason@redhat.com>
25271 * convert.c (convert_to_integer_1): Check dofold on truncation
25273 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
25274 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
25275 Rename from *_nofold.
25276 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
25277 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
25279 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
25282 * tree.c (build_common_tree_nodes): Remove short_double argument.
25283 All callers changed.
25284 * tree.h (build_common_tree_nodes): Adjust declaration.
25285 * doc/invoke.texi (-fshort-double): Remove documentation.
25286 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25287 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
25288 * lto-wrapper.c (merge_and_complain, append_compiler_options)
25289 (append_linker_options): Don't handle OPT_fshort_double.
25291 PR rtl-optimization/68730
25292 * lra-remat.c (insn_to_cand_activation): New static variable.
25293 (lra_remat): Allocate and free it.
25294 (create_cand): New arg activation. Initialize a field in
25295 insn_to_cand_activation if it is nonnull.
25296 (create_cands): Pass the activation insn to create_cand when making
25297 a candidate involving an output reload. Reorganize code a little.
25298 (do_remat): Keep track of active status of candidates in a separate
25301 2016-02-08 Richard Biener <rguenther@suse.de>
25303 PR tree-optimization/69719
25304 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25305 Properly use absolute of the difference of the two offsets to
25306 compare or adjust the segment length.
25308 2016-02-08 Richard Biener <rguenther@suse.de>
25309 Jeff Law <law@redhat.com>
25312 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
25313 types for anonymous SSA names.
25315 2016-02-08 Richard Biener <rguenther@suse.de>
25317 PR rtl-optimization/69274
25318 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
25320 2016-02-08 Jeff Law <law@redhat.com>
25322 PR tree-optimization/65917
25323 * tree-ssa-dom.c (record_temporary_equivalences): Record both
25324 equivalences from if (x == y) style conditionals.
25325 (loop_depth_of_name): Remove.
25326 (record_equality): Remove loop depth check.
25327 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
25328 (const_and_copies::record_const_or_copy_raw): New member function.
25329 * tree-ssa-scopedtables.c
25330 (const_and_copies::record_const_or_copy_raw): New, factored out of
25331 (const_and_copies::record_const_or_copy): Call new member function.
25333 2016-02-05 Jeff Law <law@redhat.com>
25335 PR tree-optimization/68541
25336 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
25337 (count_stmts_in_block): New function.
25338 (poor_ifcvt_candidate_code): Likewise.
25339 (is_feasible_trace): Add some heuristics to determine when path
25340 splitting is profitable.
25341 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
25342 is a diamond with a single exit.
25344 2016-02-05 Martin Sebor <msebor@redhat.com>
25347 * doc/invoke.texi: Update -Wplacement-new to take an optional
25350 2016-02-06 Richard Henderson <rth@redhat.com>
25353 * tree.c (tree_nop_conversion_p): Do not strip casts into or
25354 out of non-standard address spaces.
25356 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25358 PR rtl-optimization/69691
25359 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
25361 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
25363 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
25364 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
25365 (*ieee128_mfvsrd_64bit): Likewise.
25366 (*ieee128_mfvsrd_32bit): Likewise.
25368 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
25372 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25374 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25375 instrumented_version.
25377 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
25379 * doc/invoke.texi (Optimize Options): In table of --param options
25380 rename second occurrence of tracer-min-branch-ratio to
25381 tracer-min-branch-probability, rename
25382 tracer-min-branch-ratio-feedback to
25383 tracer-min-branch-probability-feedback and clarify description,
25384 rename sched-spec-state-edge-prob-cutoff to
25385 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
25386 to selsched-insns-to-rename, rename lto-minpartition to
25387 lto-min-partition, delete reorder-blocks-duplicate and
25388 reorder-blocks-duplicate-feedback.
25390 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25392 * config/s390/s390.c (s390_register_info_set_ranges): Remove
25395 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
25397 * doc/extend.texi: S/390: Correct some typos.
25399 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25401 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
25403 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25406 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
25407 (s390_register_info_gprtofpr): Use new macros above.
25408 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
25410 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
25411 its name. Adjust restore and save gpr ranges.
25412 (s390_register_info_set_ranges): New function.
25413 (s390_register_info): Use new macros above. Call
25414 s390_register_info_set_ranges.
25415 (s390_optimize_register_info): Likewise.
25416 (s390_hard_regno_rename_ok): Use new macros.
25417 (s390_hard_regno_scratch_ok): Likewise.
25418 (s390_emit_epilogue): Likewise.
25419 (s390_can_use_return_insn): Likewise.
25420 (s390_optimize_prologue): Likewise.
25421 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
25423 2016-02-05 Jakub Jelinek <jakub@redhat.com>
25426 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
25428 (ix86_option_override_internal): Disable TARGET_STV even for
25429 -m{incoming,preferred}-stack-boundary=3.
25431 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25433 * config.gcc: Mark deprecated rtems targets as obsolete.
25435 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
25437 PR rtl-optimization/64682
25438 PR rtl-optimization/69567
25439 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
25440 before I2 only if the register is both used and set in I2.
25442 2016-02-04 DJ Delorie <dj@redhat.com>
25444 * config/msp430/msp430.c (msp430_start_function): Add function type.
25446 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25449 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
25451 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
25453 PR rtl-optimization/69577
25455 2015-10-29 Richard Henderson <rth@redhat.com>
25459 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
25460 sse check to the exact conditions of PR 67609.
25462 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25465 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
25466 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
25467 not allowed into the traditional Altivec registers.
25468 (movtd_64bit_nodm): Likewise.
25469 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
25471 2016-02-04 David Malcolm <dmalcolm@redhat.com>
25473 * config/aarch64/cortex-a57-fma-steering.c
25474 (aarch64_register_fma_steering): Remove "static" from arguments
25477 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
25480 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
25481 twice when complex.
25483 2016-02-04 Mike Frysinger <vapier@gentoo.org>
25485 * doc/invoke.texi: Delete -mno-fma4.
25487 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
25489 PR rtl-optimization/69577
25490 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
25491 (find_subregs_of_mode): Update accordingly. Iterate over partial
25494 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
25496 * config/arm/arm-protos.h (neon_reinterpret): Remove.
25497 * config/arm/arm.c (neon_reinterpret): Remove.
25498 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
25499 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
25500 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
25501 vreinterpretti): Remove.
25502 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
25503 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
25504 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
25505 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
25506 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
25507 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
25508 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
25509 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
25510 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
25511 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
25512 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
25513 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
25514 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
25515 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
25516 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
25517 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
25518 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
25519 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
25520 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
25521 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
25522 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
25523 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
25524 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
25525 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
25526 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
25527 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
25528 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
25529 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
25530 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
25531 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
25532 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
25533 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
25534 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
25535 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
25536 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
25537 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
25538 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
25539 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
25540 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
25541 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
25542 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
25543 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
25544 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
25545 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
25546 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
25547 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
25548 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
25549 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
25550 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
25551 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
25552 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
25553 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
25554 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
25555 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
25556 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
25557 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
25558 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
25559 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
25560 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
25561 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
25562 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
25563 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
25564 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
25565 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
25566 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
25567 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
25568 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
25569 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
25570 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
25571 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
25572 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
25573 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
25574 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
25575 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
25576 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
25577 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
25578 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
25579 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
25580 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
25581 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
25582 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
25583 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
25584 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
25585 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
25586 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
25587 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
25588 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
25589 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
25590 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
25591 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
25592 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
25593 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
25594 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
25595 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
25596 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
25597 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
25598 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
25599 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
25600 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
25601 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
25602 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
25603 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
25604 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
25606 2016-02-04 Martin Liska <mliska@suse.cz>
25609 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
25610 that are gimple_store_p.
25611 (maybe_instrument_call): Likewise.
25613 2016-02-04 Bin Cheng <bin.cheng@arm.com>
25615 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
25616 register scaling out of memory reference and comment why.
25618 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25622 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
25623 folding the source of a SET.
25625 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25629 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
25630 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
25632 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
25636 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
25639 2016-02-04 Christian Bruel <christian.bruel@st.com>
25641 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
25642 * config/arm/arm.c (arm_set_current_function): Likewise.
25644 2016-02-04 Jakub Jelinek <jakub@redhat.com>
25645 Ilya Enkovich <enkovich.gnu@gmail.com>
25646 H.J. Lu <hongjiu.lu@intel.com>
25649 * config/i386/i386.c (convert_scalars_to_vector): Remove
25650 stack alignment fixes.
25651 (ix86_option_override_internal): Disable TARGET_STV if stack
25652 might not be aligned enough.
25653 (ix86_minimum_alignment): Assert that TARGET_STV is false.
25655 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
25657 * config/i386/x86-tune.def: Disable default prefetching
25660 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25661 Vladimir Makarov <vmakarov@redhat.com>
25664 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
25665 in validating fused toc addresses.
25667 2016-02-03 Jakub Jelinek <jakub@redhat.com>
25670 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
25671 range->m_caret fields if range->m_show_caret_p is false.
25674 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25675 Force oldval into register if it does not satisfy reg_or_short_operand
25676 predicate. Fix up formatting.
25678 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
25679 Alexandre Oliva <aoliva@redhat.com>
25682 * lra-constraints.c (simplify_operand_subreg): Check additionally
25683 address validity after potential reloading.
25684 (process_address_1): Check insns validity. In case of failure do
25687 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
25690 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
25693 2016-02-02 Jakub Jelinek <jakub@redhat.com>
25695 * wide-int.cc (canonize_uhwi): New function.
25696 (wi::divmod_internal): Use it.
25698 2016-02-02 James Norris <jnorris@codesourcery.com>
25700 * gimplify.c (omp_notice_variable): Add usage check.
25702 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
25704 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
25705 like LE, GE, LT, GT when emitting relational operator.
25707 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25709 * ira-costs.c (find_costs_and_classes): Add extra argument.
25710 * target.def (ira_change_pseudo_allocno_class): Add parameter.
25711 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
25712 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
25713 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
25714 Add best_class parameter, and return it if not ALL_REGS.
25715 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
25717 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
25718 Update target hook.
25720 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
25722 * config/aarch64/aarch64.c
25723 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
25724 (aarch64_ira_change_pseudo_allocno_class): New function.
25726 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
25729 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
25731 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25733 * config/avr/avr.c (avr_option_override): Set
25734 PARAM_ALLOW_STORE_DATA_RACES to 1.
25736 2016-02-02 Richard Biener <rguenther@suse.de>
25738 PR tree-optimization/69595
25739 * match.pd: Add range test simplifications to true/false.
25741 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
25743 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
25744 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
25747 2016-02-02 Richard Biener <rguenther@suse.de>
25749 PR tree-optimization/69606
25750 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
25751 info on the result before moving a stmt.
25753 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
25755 PR middle-end/68542
25756 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
25757 branch with vector comparison.
25758 * config/i386/sse.md (VI48_AVX): New mode iterator.
25759 (define_expand "cbranch<mode>4): Add support for conditional branch
25760 with vector comparison.
25761 * tree-vect-loop.c (optimize_mask_stores): New function.
25762 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
25763 has_mask_store field of vect_info.
25764 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
25765 vectorized loops having masked stores after vec_info destroy.
25766 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
25767 correspondent macros.
25768 (optimize_mask_stores): Add prototype.
25770 2016-02-02 Alan Modra <amodra@gmail.com>
25773 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
25776 2016-02-02 Alan Modra <amodra@gmail.com>
25779 * config/rs6000/rs6000.c (need_toc_init): New var, set it
25780 whenever toc_label_name used.
25781 (rs6000_file_start): Don't set up toc section here,
25782 (rs6000_output_function_epilogue): do so here instead,
25783 (rs6000_xcoff_file_start): and here.
25784 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
25785 (load_toc_aix_di): Likewise.
25787 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25789 PR rtl-optimization/69592
25790 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
25791 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
25792 (num_sign_bit_copies_binary_arith_p): New inline function.
25793 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
25795 2016-02-01 Jeff Law <law@redhat.com>
25797 PR tree-optimization/69580
25798 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
25799 * tree-ssa-threadbackward.c
25800 (fsm_find_control_statement_thread_paths): Do not try to walk
25801 through large PHI nodes.
25803 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25805 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
25806 when count is incremented above limit, don't analyze further
25809 * omp-low.c (oacc_parse_default_dims): Avoid
25810 -Wsign-compare warning, make sure value fits into int
25811 rather than just unsigned int.
25813 2016-02-01 Bin Cheng <bin.cheng@arm.com>
25815 PR tree-optimization/67921
25816 * fold-const.c (split_tree): New parameters. Convert pointer
25817 type variable part to proper type before negating.
25818 (fold_binary_loc): Pass new arguments to split_tree.
25820 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
25822 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
25823 (nvptx_goacc_validate_dims): Extend to handle global defaults.
25824 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
25825 * doc/tm.texti: Rebuilt.
25826 * doc/invoke.texi (fopenacc-dim): Document.
25827 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
25828 (append_compiler_options): Likewise.
25829 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
25830 (oacc_parse_default_dims): New.
25831 (oacc_validate_dims): Add USED arg. Select non-unity default when
25833 (oacc_loop_fixed_partitions): Return mask of used partitions.
25834 (oacc_loop_auto_partitions): Emit dump info.
25835 (oacc_loop_partition): Return mask of used partitions.
25836 (execute_oacc_device_lower): Parse default dimension arg. Adjust
25837 loop partitioning and validation calls.
25839 2016-02-01 Richard Biener <rguenther@suse.de>
25841 PR middle-end/69556
25842 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
25844 2016-02-01 Richard Biener <rguenther@suse.de>
25846 PR tree-optimization/69574
25847 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
25848 of asserting return chrec_dont_know.
25850 2016-02-01 Martin Liska <mliska@suse.cz>
25852 * mem-stats-traits.h: Add copyright header.
25853 * mem-stats.h: Likewise.
25855 2016-02-01 Richard Biener <rguenther@suse.de>
25857 PR tree-optimization/69579
25858 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
25859 Do not propagate through abnormal PHI results.
25861 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
25863 * postreload.c (reload_cse_simplify): Remove dead code.
25865 2016-02-01 Jakub Jelinek <jakub@redhat.com>
25867 PR rtl-optimization/69570
25868 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
25869 if there is more than one set, not if there is a single set.
25871 2016-02-01 Richard Henderson <rth@redhat.com>
25874 * combine.c (make_compound_operation): When looking through a
25875 subreg, make sure to re-extend to the width of the outer mode.
25877 2016-01-30 Jakub Jelinek <jakub@redhat.com>
25879 PR tree-optimization/69546
25880 * wide-int.cc (wi::divmod_internal): For unsigned division
25881 where both operands fit into uhwi, if o1 is 1 and o0 has
25882 msb set, if divident_prec is larger than bits per hwi,
25883 clear another quotient word and return 2 instead of 1.
25884 Similarly for remainder with msb in HWI set, if dividend_prec
25885 is larger than bits per hwi.
25887 2016-01-29 Martin Jambor <mjambor@suse.cz>
25889 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
25890 Use short lowercase names.
25891 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
25892 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
25893 acq_rel one. Protect warning agains segfaults if
25894 get_memory_order_name returns NULL.
25895 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
25896 with release semantics. Do not warn if get_memory_order already did.
25897 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
25898 semantics. Fix check for relaxed or acquire semantics. Do not warn
25899 if get_memory_order already did.
25901 2016-01-29 Sebastian Pop <s.pop@samsung.com>
25903 * doc/install.texi: Document that isl-0.16 is supported.
25905 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
25908 * config/i386/constraints.md (Bm): Describe as special memory
25910 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
25911 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25912 * genpreds.c (struct constraint_data): Add is_special_memory.
25913 (have_special_memory_constraints, special_memory_start): New
25915 (special_memory_end): Ditto.
25916 (add_constraint): Add new arg is_special_memory. Add code to
25917 process its true value. Update have_special_memory_constraints.
25918 (process_define_constraint): Pass the new arg.
25919 (process_define_register_constraint): Ditto.
25920 (choose_enum_order): Process special memory.
25921 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
25922 function insn_extra_special_memory_constraint.
25923 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25924 * gensupport.c (process_rtx): Process
25925 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25926 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
25927 * ira-lives.c (single_reg_class): Use
25928 insn_extra_special_memory_constraint.
25929 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
25930 * lra-constraints.c (process_alt_operands): Ditto.
25931 (curr_insn_transform): Use insn_extra_special_memory_constraint.
25932 * recog.c (asm_operand_ok, preprocess_constraints): Process
25934 * reload.c (find_reloads): Ditto.
25935 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
25936 * stmt.c (parse_input_constraint): Use
25937 insn_extra_special_memory_constraint.
25939 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
25942 * lra-splill.c (lra_final_code_change): Revert r229087 by
25943 removing all sub-registers.
25945 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
25948 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
25950 2016-01-29 Jakub Jelinek <jakub@redhat.com>
25953 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
25954 SSE1, copy target into the temporary reg first before recursing
25957 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
25959 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
25962 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
25964 * ginclude/stdarg.h: Test __cplusplus instead of
25965 __GXX_EXPERIMENTAL_CXX0X__.
25967 2016-01-29 Richard Biener <rguenther@suse.de>
25969 PR tree-optimization/69547
25970 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
25971 Do not mark clobbers necessary.
25972 (mark_all_reaching_defs_necessary_1): Likewise.
25974 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25976 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
25977 declaration name with %qs and print it in both error messages.
25978 Also fix indentation.
25980 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25983 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
25984 trailing blank line from error message.
25986 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
25989 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
25992 2016-01-29 Richard Biener <rguenther@suse.de>
25994 PR middle-end/69537
25995 * match.pd: Allow all integral types when simplifying a
25996 widening or sign-changing conversion.
25998 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26000 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
26001 back to setting codegen_error to fail codegen.
26003 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
26006 * config/i386/constraints.md (C): Only accept constant zero operand.
26007 (BC): New constraint.
26008 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
26009 instead of C constraint.
26010 * doc/md.texi (Machine Constraints): Update description
26013 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
26016 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
26018 2016-01-28 Jakub Jelinek <jakub@redhat.com>
26020 PR middle-end/69542
26021 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
26024 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
26026 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
26027 branches if using guessed profile.
26029 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
26031 * graphite-optimize-isl.c (optimize_isl): Fix dump.
26033 2016-01-28 Richard Henderson <rth@redhat.com>
26036 * config/aarch64/aarch64-modes.def (CC_Cmode): New
26037 * config/aarch64/aarch64-protos.h: Update.
26038 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
26039 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
26040 (aarch64_get_condition_code_1): Handle CC_Cmode.
26041 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
26042 (*add<mode>3_compareC_cconly_imm): New.
26043 (*add<mode>3_compareC_cconly): New.
26044 (*add<mode>3_compareC_imm): New.
26045 (add<mode>3_compareC): New.
26046 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
26047 to be first. Use aarch64_carry_operation.
26048 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
26049 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
26050 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
26051 (subti3): Use subdi3_compare1.
26052 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
26053 (sub<mode>3_compare1): New.
26054 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
26055 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
26056 (*subsi3_carryin_uxtw): Likewise.
26057 (*ngc<mode>, *ngcsi_uxtw): Likewise.
26058 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
26059 * config/aarch64/iterators.md (DWI): New.
26060 * config/aarch64/predicates.md (aarch64_carry_operation): New.
26061 (aarch64_borrow_operation): New.
26063 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26065 * graphite-optimize-isl.c (optimize_isl): Print a different debug
26066 message when isl does not return a valid schedule.
26068 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26070 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
26071 Remove comments from class declarations: they are already in the code
26074 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26076 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
26078 (ternary_op_to_tree): Same.
26079 (unary_op_to_tree): Same.
26080 (nary_op_to_tree): Same.
26081 (gcc_expression_from_isl_expr_op): Same.
26082 (gcc_expression_from_isl_expression): Same.
26083 (graphite_create_new_loop): Same.
26084 (graphite_create_new_loop_guard): Same.
26085 (build_iv_mapping): Same.
26086 (graphite_create_new_guard): Same.
26087 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
26088 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
26090 2016-01-28 Sebastian Pop <s.pop@samsung.com>
26092 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
26093 instead of setting codegen_error to fail codegen.
26095 2016-01-28 Jason Merrill <jason@redhat.com>
26097 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
26099 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26101 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26102 Remove CONST_INT_P check in CCMP cost calculation.
26104 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26106 * config/aarch64/aarch64.c (generic_vector_cost):
26107 Set vec_permute_cost.
26108 (cortexa57_vector_cost): Likewise.
26109 (exynosm1_vector_cost): Likewise.
26110 (xgene1_vector_cost): Likewise.
26111 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
26112 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
26113 Add vec_permute_cost entry.
26115 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
26117 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
26119 (add<mode>3_compare0): Likewise.
26120 (addsi3_compare0_uxtw): Likewise.
26121 (add<mode>3nr_compare0): Likewise.
26122 (compare_neg<mode>): Likewise.
26123 (<optab><mode>3): Likewise.
26125 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
26127 * tree-vect-stmts.c (vectorizable_comparison): Add
26128 NULL check for vectype.
26130 2016-01-28 Richard Biener <rguenther@suse.de>
26132 PR tree-optimization/69466
26133 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
26134 Account for PHIs we couldn't duplicate.
26136 2016-01-28 Martin Liska <mliska@suse.cz>
26139 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
26140 instead of ENABLE_VALGRIND_CHECKING.
26142 2016-01-27 Richard Henderson <rth@redhat.com>
26145 * lra-remat.c (subreg_regs): New.
26146 (dump_candidates_and_remat_bb_data): Dump it.
26147 (operand_to_remat): Reject if operand in subreg_regs.
26148 (set_bb_regs): Collect subreg_regs.
26149 (lra_remat): Init and free subreg_regs. Compute
26150 calculate_local_reg_remat_bb_data before create_cands.
26152 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
26155 * config/i386/i386.c (ix86_update_stack_boundary): Don't
26156 change stack_alignment_needed for __tls_get_addr call.
26158 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
26160 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
26162 2016-01-27 Jeff Law <law@redhat.com>
26164 PR tree-optimization/68398
26165 PR tree-optimization/69196
26166 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
26167 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
26168 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26169 Only count PHIs in the last block in the path. The others will
26170 const/copy propagate away. Add heuristic to allow more irreducible
26171 subloops to be created when it is likely profitable to do so.
26173 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26174 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
26175 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
26177 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26180 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
26181 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
26182 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
26183 * tree-streamer-in.c: Include asan.h.
26184 (streamer_get_builtin_tree): For builtins in sanitizer
26185 range call initialize_sanitizer_builtins and retry.
26187 2016-01-27 Ian Lance Taylor <iant@google.com>
26189 * common.opt (fkeep-gc-roots-live): New undocumented option.
26190 * tree-ssa-loop-ivopts.c (add_candidate_1): If
26191 -fkeep-gc-roots-live, skip pointers.
26192 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
26195 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
26198 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
26199 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
26201 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
26204 * configure.ac: NetBSD provides SSP in its C library.
26205 * configure: Updated.
26207 2016-01-27 Richard Biener <rguenther@suse.de>
26209 PR tree-optimization/69166
26210 * tree-vect-loop.c (vect_is_simple_reduction): Always check
26211 reduction code for commutativity / associativity.
26213 2016-01-27 Martin Jambor <mjambor@suse.cz>
26215 PR tree-optimization/69355
26216 * tree-sra.c (analyze_access_subtree): Correct hole detection when
26217 total_scalarization fails.
26219 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
26221 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
26224 2016-01-27 Christian Bruel <christian.bruel@st.com>
26227 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
26228 Move arm_reset_previous_fndecl and set_target_option_current_node in
26229 the conditional part. Call save_restore_target_globals.
26230 * config/arm/arm.c (arm_set_current_function):
26231 Refactor to better support #pragma target and attribute mix.
26232 Call save_restore_target_globals.
26233 * config/arm/arm-protos.h (save_restore_target_globals): New function.
26235 2016-01-27 Martin Liska <mliska@suse.cz>
26237 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
26238 reference for an HSA kernel and its host function.
26240 2016-01-27 Jakub Jelinek <jakub@redhat.com>
26242 PR tree-optimization/69399
26243 * wide-int.h (wi::lrshift): For larger precisions, only
26244 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
26246 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26248 * config/arc/predicates.md (proper_comparison_operator): Reject
26249 constant-constant comparison.
26251 2016-01-26 Tom de Vries <tom@codesourcery.com>
26253 PR tree-optimization/69110
26254 * tree-data-ref.c (initialize_data_dependence_relation): Handle
26255 DR_NUM_DIMENSIONS == 0.
26257 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
26258 Sebastian Pop <s.pop@samsung.com>
26260 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
26261 isl_ast_op_cond and isl_ast_op_select.
26262 (gcc_expression_from_isl_expr_op): Same.
26264 2016-01-26 Jason Merrill <jason@redhat.com>
26267 * tree.c (recompute_constructor_flags): Split out from
26269 (verify_constructor_flags): New.
26270 * tree.h: Declare them.
26272 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
26274 PR rtl-optimization/69217
26275 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
26276 are no TYPE_FIELDS set for the record type.
26278 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26281 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
26282 toc_label_name unconditionally.
26283 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
26284 SYMBOL_REF string. Use toc_label_name instead of constructing
26286 (rs6000_elf_declare_function_name): Use toc_label_name instead of
26287 constructing LCTOC1.
26289 2016-01-26 Martin Sebor <msebor@redhat.com>
26292 * doc/extend.texi (Common Type Attributes): Move text that talks about
26293 attribute packed from attribute aligned to the section discussing
26294 the former attribute for clarity.
26296 2016-01-26 Richard Henderson <rth@redhat.com>
26298 PR middle-end/60908
26299 * trans-mem.c (tm_region_init): Mark entry block as visited.
26301 2016-01-26 David Malcolm <dmalcolm@redhat.com>
26304 * diagnostic-show-locus.c (layout::print_source_line): Replace
26305 call to pp_newline with call to layout::print_newline.
26306 (layout::print_annotation_line): Likewise.
26307 (layout::move_to_column): Likewise.
26308 (layout::print_any_fixits): After printing any fixits, print a
26309 trailing newline, if necessary.
26310 (layout::print_newline): New method, resetting any colorization
26312 (diagnostic_show_locus): Move the pp_newline to before the
26313 early bailout. Remove dummy block enclosing the layout instance.
26314 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
26315 of pp_newline_and_flush with pp_flush.
26316 (diagnostic_append_note): Delete use of pp_newline.
26317 (diagnostic_append_note_at_rich_loc): Delete.
26318 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
26319 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
26320 when newline characters are added to the buffer.
26322 2016-01-26 Michael Matz <matz@suse.de>
26324 * configure.ac (ac_cv_std_swap_in_utility): New test.
26325 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
26326 * configure: Regenerate.
26327 * config.in: Regenerate.
26329 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
26331 * config/arc/arc.md (cstoresi4): Force operand into register.
26332 (arcset<code>): Fix predicate.
26333 (arcsetltu): Likewise.
26334 (arcsetgeu): Likewise.
26335 (arcsethi): Likewise.
26336 (arcsetls): Likewise.
26338 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26340 PR tree-optimization/69483
26341 * gimple-fold.c (canonicalize_constructor_val): Return NULL
26342 if base has error_mark_node type.
26344 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
26347 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
26348 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
26350 (vget_lane_f16): Handle big-endian.
26351 (vgetq_lane_f16): Likewise.
26352 (vset_lane_f16): Likewise.
26353 (vsetq_lane_f16): Likewise.
26354 * config/arm/iterators.md (VQXMOV): Add V8HF.
26355 (VDQ): Add V4HF and V8HF.
26356 (V_reg): Handle V4HF and V8HF.
26357 (Is_float_mode): Likewise.
26358 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
26359 neon_vdup_nv8hf): New patterns.
26360 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
26361 Use VD_LANE iterator.
26362 (neon_vld1_dup<mode>): Use VQ2 iterator.
26364 2016-01-26 Nathan Sidwell <nathan@acm.org>
26366 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
26367 (set_oacc_fn_attrib): Add IS_KERNEL arg.
26368 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
26369 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
26370 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
26371 (oacc_validate_dims): Add LEVEL arg, don't return level.
26372 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
26373 oacc_validate_dims.
26374 (execute_oacc_device_lower): Adjust, add more dump output.
26375 * tree-ssa-loop.c (gate_oacc_kernels): Use
26376 oacc_fn_attrib_kernels_p.
26377 * tree-parloops.c (create_parallel_loop): Adjust
26378 set_oacc_fn_attrib call.
26380 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26383 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
26384 (append_compiler_options): Handle -fcilkplus.
26385 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
26387 2016-01-26 Nick Clifton <nickc@redhat.com>
26390 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
26391 been marked as DECL_ONE_ONLY but we do not the means to make it
26392 so, then do not allow it to bind locally.
26394 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26397 * opts.h (parse_sanitizer_options): New prototype.
26398 * opts.c (sanitizer_opts): New array.
26399 (parse_sanitizer_options): New function.
26400 (common_handle_option): Use parse_sanitizer_options.
26402 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
26405 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
26406 alignment adjustment to ...
26407 (ix86_update_stack_boundary): Here. Don't over-align stack for
26409 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
26410 if __tls_get_addr is called.
26412 2016-01-26 Christian Bruel <christian.bruel@st.com>
26414 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
26416 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
26418 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
26420 2016-01-26 Richard Biener <rguenther@suse.de>
26422 PR middle-end/69467
26423 * match.pd: Guard X * CST CMP 0 pattern with single_use.
26425 2016-01-26 Richard Biener <rguenther@suse.de>
26427 PR tree-optimization/69452
26428 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
26429 (move_computations_dom_walker::before_dom_children): Rename
26431 (move_computations_worker): This.
26432 (move_computations): Perform an RPO rather than a DOM walk.
26434 2016-01-26 Jakub Jelinek <jakub@redhat.com>
26437 * combine.c (combine_instructions): For REG_EQUAL note with
26438 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
26439 to the underlying register.
26440 * doc/rtl.texi (REG_EQUAL): Document the behavior of
26441 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
26443 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
26446 * config/aarch64/aarch64-builtins.c
26447 (aarch64_init_simd_builtin_types): Do not set structural
26448 equality to __Poly{8,16,64,128}_t types.
26450 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
26452 PR tree-optimization/69400
26453 * wide-int.cc (wi_pack): Take the precision as argument and
26454 perform canonicalization here rather than in the callers.
26455 Use the main loop to handle all full-width HWIs. Add a
26456 zero HWI if in_len isn't a full result.
26457 (wi::divmod_internal): Update accordingly.
26458 (wi::mul_internal): Likewise. Simplify.
26460 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26461 Sebastian Pop <s.pop@samsung.com>
26463 * graphite-poly.c (apply_poly_transforms): Simplify.
26464 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
26465 (print_isl_map): Same.
26466 (print_isl_union_map): Same.
26467 (print_isl_schedule): New.
26468 (debug_isl_schedule): New.
26469 * graphite-dependences.c (scop_get_reads): Do not call
26470 isl_union_map_add_map that is undocumented isl functionality.
26471 (scop_get_must_writes): Same.
26472 (scop_get_may_writes): Same.
26473 (scop_get_original_schedule): Remove.
26474 (scop_get_dependences): Do not call isl_union_map_compute_flow that
26475 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
26476 (compute_deps): Remove.
26477 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
26478 (debug_schedule_ast): New.
26479 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
26480 set_separate_option.
26481 (graphite_regenerate_ast_isl): Add dump.
26482 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
26483 from scop->transformed_schedule.
26484 (graphite_regenerate_ast_isl): Add more dump.
26485 * graphite-optimize-isl.c (optimize_isl): Set
26486 scop->transformed_schedule. Check whether schedules are equal.
26487 (apply_poly_transforms): Move here.
26488 * graphite-poly.c (apply_poly_transforms): ... from here.
26489 (free_poly_bb): Static.
26490 (free_scop): Static.
26491 (pbb_number_of_iterations_at_time): Remove.
26492 (print_isl_ast): New.
26493 (debug_isl_ast): New.
26494 (debug_scop_pbb): New.
26495 * graphite-scop-detection.c (print_edge): Move.
26496 (print_sese): Move.
26497 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
26498 (build_scop_scattering): Remove.
26499 (create_pw_aff_from_tree): Assert instead of bailing out.
26500 (add_condition_to_pbb): Remove unused code, do not fail.
26501 (add_conditions_to_domain): Same.
26502 (add_conditions_to_constraints): Remove.
26503 (build_scop_context): New.
26504 (add_iter_domain_dimension): New.
26505 (build_iteration_domains): Initialize pbb->iterators.
26506 Call add_conditions_to_domain.
26509 (index_outermost_in_loop): New.
26510 (index_pbb_in_loop): New.
26511 (outermost_pbb_in): New.
26512 (add_in_sequence): New.
26513 (add_outer_projection): New.
26514 (outer_projection_mupa): New.
26515 (add_loop_schedule): New.
26516 (build_schedule_pbb): New.
26517 (build_schedule_loop): New.
26518 (embed_in_surrounding_loops): New.
26519 (build_schedule_loop_nest): New.
26520 (build_original_schedule): New.
26521 (build_poly_scop): Call build_original_schedule.
26522 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
26523 (free_poly_dr): Remove.
26524 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
26525 (free_poly_bb): Remove.
26526 (debug_loop_vec): Remove.
26527 (print_isl_ast): Declare.
26528 (debug_isl_ast): Declare.
26529 (scop_do_interchange): Remove.
26530 (scop_do_strip_mine): Remove.
26531 (scop_do_block): Remove.
26532 (flatten_all_loops): Remove.
26533 (optimize_isl): Remove.
26534 (pbb_number_of_iterations_at_time): Remove.
26535 (debug_scop_pbb): Declare.
26536 (print_schedule_ast): Declare.
26537 (debug_schedule_ast): Declare.
26538 (struct scop): Remove schedule. Add original_schedule,
26539 transformed_schedule.
26540 (free_gimple_poly_bb): Remove.
26541 (print_generated_program): Remove.
26542 (debug_generated_program): Remove.
26543 (unify_scattering_dimensions): Remove.
26544 * sese.c (print_edge): ... here.
26545 (print_sese): ... here.
26546 (debug_edge): ... here.
26547 (debug_sese): ... here.
26548 * sese.h (print_edge): Declare.
26549 (print_sese): Declare.
26550 (dump_edge): Declare.
26551 (dump_sese): Declare.
26553 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
26554 Sebastian Pop <s.pop@samsung.com>
26556 * Makefile.in: Set ISLVER in site.exp.
26558 2016-01-25 Jakub Jelinek <jakub@redhat.com>
26560 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
26561 DECL_VALUE_EXPR of new_var even for the non-array case. Look
26562 through DECL_VALUE_EXPR for expansion.
26564 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
26566 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
26567 the frame info after reload completed.
26569 2016-01-25 Jeff Law <law@redhat.com>
26571 PR tree-optimization/69196
26572 PR tree-optimization/68398
26573 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
26574 tree-ssa-threadupdate.c.
26575 (determine_bb_domination_status): Prototype
26576 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
26577 (determine_bb_domination_status): No longer static.
26578 (valid_jump_thread_path): Remove code to detect characteristics
26579 of the jump thread path not associated with correctness.
26580 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
26581 Correct test for thread path length. Count PHIs for real operands as
26582 statements that need to be copied. Do not count ASSERT_EXPRs.
26583 Look at all the blocks in the thread path. Compute and selectively
26584 filter thread paths based on threading through the latch, threading
26585 a multiway branch or crossing a multiway branch.
26587 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26589 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
26590 decl with __attribute__ ((unused)) annotation.
26592 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
26595 * tree-vect-stmts.c (vectorizable_condition): Check vectype
26596 of operands is compatible with a statement vectype.
26598 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
26600 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
26601 improve wording for mixed storage order support.
26603 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
26605 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
26606 (vcvt_u64_f64): Likewise.
26607 (vcvta_s64_f64): Likewise.
26608 (vcvta_u64_f64): Likewise.
26609 (vcvtm_s64_f64): Likewise.
26610 (vcvtm_u64_f64): Likewise.
26611 (vcvtn_s64_f64): Likewise.
26612 (vcvtn_u64_f64): Likewise.
26613 (vcvtp_s64_f64): Likewise.
26614 (vcvtp_u64_f64): Likewise.
26616 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
26618 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
26619 (arc_init): Check validity mll64 option.
26620 (arc_save_restore): Use double load/store instruction.
26621 (arc_expand_movmem): Likewise.
26622 (arc_split_move): Don't split if we have double load/store
26623 instructions. Returns a boolean.
26624 (arc_process_double_reg_moves): Change function to return boolean
26625 instead of a sequence of instructions.
26626 (arc_dwarf_register_span): New function.
26627 * config/arc/arc-protos.h (arc_split_move): Change prototype.
26628 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
26629 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
26630 (*movdf_insn): Likewise.
26631 * config/arc/arc.opt (mll64): New option.
26632 * config/arc/predicates.md (even_register_operand): New predicate.
26633 * doc/invoke.texi (ARC Options): Add mll64 documentation.
26635 2016-01-25 Richard Biener <rguenther@suse.de>
26638 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
26639 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
26641 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
26643 2016-01-25 Richard Biener <rguenther@suse.de>
26645 PR tree-optimization/69376
26646 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
26648 (VN_INFO_ANTI_RANGE_P): New inline.
26649 (VN_INFO_RANGE_TYPE): Likewise.
26650 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
26651 SSA_NAME_ANTI_RANGE_P.
26652 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
26653 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26654 Properly query VN_INFO_RANGE_TYPE.
26656 2016-01-25 Nick Clifton <nickc@redhat.com>
26659 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
26661 2016-01-23 Tom de Vries <tom@codesourcery.com>
26663 PR tree-optimization/69426
26664 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
26667 2016-01-23 Jakub Jelinek <jakub@redhat.com>
26669 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
26670 "the the" with "the" in the comments.
26671 * ipa-devirt.c (build_type_inheritance_graph,
26672 update_type_inheritance_graph): Likewise.
26673 * tree.c (build_function_type_list_1): Likewise.
26674 * cfgloopmanip.c (scale_loop_profile): Likewise.
26675 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
26676 * gimple-ssa-split-paths.c
26677 (find_block_to_duplicate_for_splitting_paths): Likewise.
26678 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
26679 * expr.c (convert_move): Likewise.
26680 * var-tracking.c (vt_stack_adjustments): Likewise.
26681 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
26682 * tree-vrp.c (test_for_singularity): Likewise.
26684 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
26685 directly instead of building a temporary tree.
26688 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
26689 remove <algorithm> include.
26691 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26694 * config/i386/i386.c: Include dojump.h.
26695 (expand_small_movmem_or_setmem,
26696 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
26698 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
26699 if dynamic_check != -1.
26701 2016-01-21 Jeff Law <law@redhat.com>
26703 PR middle-end/69347
26704 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
26705 record_temporary_equivalences. Rewritten to avoid unnecessary calls
26706 into dominated_by_p.
26707 (cprop_into_successor_phis): Avoid unnecessary tests.
26709 2016-01-22 Richard Henderson <rth@redhat.com>
26712 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
26713 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
26715 2016-01-22 Michael Matz <matz@suse.de>
26717 * system.h (string, algorithm): Include only conditionally.
26718 (new): Include always under C++.
26719 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
26720 * final.c (toplevel): Ditto.
26721 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
26722 * genconditions.c (write_header): Make gencondmd.c define
26724 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
26726 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
26727 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
26729 2016-01-22 Christian Bruel <christian.bruel@st.com>
26732 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
26734 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26737 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
26738 define_insn_and_split. Ensure operands[1] and operands[0] do not
26739 get assigned the same register.
26741 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
26743 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
26745 2016-01-22 Christian Bruel <christian.bruel@st.com>
26747 * config/arm/arm-c.c (arm_pragma_target_parse):
26748 Remove warn_builtin_macro_redefined overwrite.
26750 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
26752 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
26753 flag_non_call_exceptions compatibility.
26755 2016-01-22 Jakub Jelinek <jakub@redhat.com>
26758 * dwarf2out.c (add_child_die_after): New function.
26759 (dwarf_qual_info_t): New type.
26760 (dwarf_qual_info): New variable.
26761 (qualified_die_p): New function.
26762 (modified_type_die): For -fdebug-types-section, ensure
26763 canonical order of qualifiers. Put qualified DIEs adjacent
26764 to the corresponding non-qualified type DIE and search there
26765 for existing qualified DIEs.
26767 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
26769 * doc/extend.texi (scalar_storage_order type attribute): Document
26770 restriction on type punning and aliasing, and remove future tense.
26772 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
26775 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
26778 2016-01-21 Jeff Law <law@redhat.com>
26780 PR middle-end/69347
26781 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
26782 useless call to record_temporary_equivalences.
26783 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
26784 allocate 10 slots in the bb_path vector and let it grow as needed.
26785 (fsm_find_control_statement_thread_paths): Similarly for the next_path
26788 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
26790 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
26792 * configure: Regenerate.
26794 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
26796 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
26797 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
26799 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
26801 PR middle-end/66178
26802 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
26803 drop EXPAND_INITIALIZER.
26804 * rtl.h (contains_symbolic_reference_p): Declare.
26805 * rtlanal.c (contains_symbolic_reference_p): New function.
26806 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
26807 a subtraction into a NOT if symbolic constants are involved.
26809 2016-01-21 Anton Blanchard <anton@samba.org>
26810 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26813 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
26815 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
26818 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
26820 * config/microblaze/microblaze.c
26821 (get_branch_target): New.
26822 (insert_wic_for_ilb_runout): New.
26824 (microblaze_machine_dependent_reorg): New.
26825 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
26826 * config/microblaze/microblaze.md
26827 (UNSPEC_IPREFETCH): Define.
26828 (iprefetch): New pattern
26829 * config/microblaze/microblaze.opt
26830 (mxl-prefetch): New flag.
26832 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
26834 * config/microblaze/microblaze.h
26835 (FIXED_REGISTERS): Update in macro.
26836 (CALL_USED_REGISTERS): Update in macro.
26838 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
26840 PR rtl-optimization/68920
26841 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
26844 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
26846 PR rtl-optimization/68990
26847 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
26848 pseudo instead of inheritance ones.
26850 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26851 Nick Clifton <nickc@redhat.com>
26855 * config/mips/mips.c (mips_compute_frame_info): Initialise
26856 args_size and hard_frame_pointer_offset fields of the frame
26857 structure before calling mips_global_pointer.
26859 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
26861 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
26863 * configure: Regenerate.
26865 2016-01-21 Richard Biener <rguenther@suse.de>
26867 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
26869 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
26871 * config/s390/s390.c (s390_asm_declare_function_size): Add code
26872 to actually emit the .size directive.
26874 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
26875 Jakub Jelinek <jakub@redhat.com>
26879 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
26880 args array size by one to avoid buffer overflow.
26882 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
26884 * config/s390/s390.md (pool_section_start): Use switch_to_section
26885 to select proper read-only data section instead of hardcoding
26887 (pool_section_end): Use switch_to_section to match the above.
26889 2016-01-21 Richard Biener <rguenther@suse.de>
26891 PR tree-optimization/69378
26892 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
26893 (set_ssa_val_to): Use it for dominance checks taking into
26894 account not executable edges.
26896 2016-01-21 Jakub Jelinek <jakub@redhat.com>
26899 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
26900 for bitsize instead of GET_MODE_PRECISION (mode).
26902 2016-01-20 Martin Sebor <msebor@redhat.com>
26905 * extend.texi (__sync Builtins): Clarify the semantics of
26906 __sync_fetch_and_OP built-ins on pointers.
26907 (__atomic Builtins): Same.
26909 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26910 Sebastian Pop <s.pop@samsung.com>
26912 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
26913 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
26914 (is_valid_rename): Same.
26915 (translate_isl_ast_to_gimple::get_rename): Same.
26916 (translate_isl_ast_to_gimple::rename_all_uses): Same.
26917 (translate_isl_ast_to_gimple::rename_uses): Same.
26918 (get_new_name): Check for close_phi nodes.
26919 (copy_loop_phi_args): Use phi_node_kind.
26920 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
26921 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
26923 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26924 Sebastian Pop <s.pop@samsung.com>
26926 Revert commit r229783.
26927 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
26928 Remove use of parameter_rename_map.
26929 (copy_def): Remove.
26930 (copy_internal_parameters): Remove.
26931 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
26932 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
26933 (free_sese_info): Do not free parameter_rename_map.
26934 (set_rename): Do not use parameter_rename_map.
26935 (rename_uses): Update call to set_rename.
26936 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
26937 * sese.h (parameter_rename_map_t): Remove.
26938 (struct sese_info_t): Remove field parameter_rename_map.
26940 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26941 Sebastian Pop <s.pop@samsung.com>
26943 * graphite-isl-ast-to-gimple.c: Fix comment.
26944 * graphite-scop-detection.c (defined_in_loop_p): New.
26945 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
26946 names defined in loop.
26948 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26949 Sebastian Pop <s.pop@samsung.com>
26951 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
26952 Discard unstructured if-then-else regions.
26954 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26955 Sebastian Pop <s.pop@samsung.com>
26957 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
26958 (cleanup_loop_iter_dom): Remove.
26959 (build_loop_iteration_domains): Remove.
26960 (build_scop_context): Remove.
26961 (build_scop_iteration_domain): Remove.
26962 (add_loop_constraints): New.
26963 (build_iteration_domains): New.
26964 (build_poly_scop): Call build_iteration_domains.
26966 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26967 Sebastian Pop <s.pop@samsung.com>
26969 * graphite-scop-detection.c
26970 (scop_detection::harmful_loop_in_region): Free dom and loops.
26971 (scop_detection::loop_body_is_valid_scop): Free bbs.
26973 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26974 Sebastian Pop <s.pop@samsung.com>
26976 * graphite-scop-detection.c (record_loop_in_sese): New.
26977 (gather_bbs::before_dom_children): Call record_loop_in_sese.
26978 (build_scops): Remove call to build_sese_loop_nests.
26979 * sese.c (sese_record_loop): Remove.
26980 (build_sese_loop_nests): Remove.
26981 (new_sese_info): Remove region->loops.
26982 (free_sese_info): Same.
26983 * sese.h (sese_contains_loop): Same.
26984 (build_sese_loop_nests): Remove.
26985 (sese_contains_loop): Remove.
26987 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26988 Sebastian Pop <s.pop@samsung.com>
26990 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
26991 loop_is_valid_in_scop.
26992 (scop_detection::harmful_stmt_in_region): Renamed
26993 harmful_loop_in_region.
26994 Call loop_is_valid_in_scop.
26996 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
26997 Sebastian Pop <s.pop@samsung.com>
26999 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
27002 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27003 Sebastian Pop <s.pop@samsung.com>
27005 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
27006 * graphite.h (struct poly_bb): Remove field is_reduction.
27007 (PBB_IS_REDUCTION): Remove.
27009 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
27010 Sebastian Pop <s.pop@samsung.com>
27012 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
27013 (add_pdr_constraints): Same.
27014 (scop_get_reads): Same.
27015 (scop_get_must_writes): Same.
27016 (scop_get_may_writes): Same.
27017 (scop_get_original_schedule): Same.
27018 (extend_schedule): Same.
27019 (apply_schedule_on_deps): Same.
27020 (carries_deps): Same.
27021 (compute_deps): Same.
27022 (scop_get_dependences): Same.
27023 * graphite-isl-ast-to-gimple.c
27024 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
27025 * graphite-optimize-isl.c (get_schedule_for_band): Same.
27026 (get_schedule_for_band_list): Same.
27027 (get_schedule_map): Same.
27028 (apply_schedule_map_to_scop): Same.
27029 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27030 (build_loop_iteration_domains): Same.
27031 (add_condition_to_pbb): Same.
27032 (add_param_constraints): Same.
27033 (pdr_add_memory_accesses): Same.
27034 (pdr_add_data_dimensions): Same.
27036 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27038 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
27041 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
27043 * common.opt (feliminate-dwarf2-dups): Replace references to
27044 "DWARF 2" with just "DWARF".
27045 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
27046 * doc/extend.texi: Likewise.
27047 * doc/cpp.texi: Likewise.
27048 * doc/invoke.texi: Likewise.
27049 (Option Summary): Add -gdwarf to list of Debugging Options.
27050 (Debugging Options): Document -gdwarf.
27051 * doc/contrib.texi: Spell "DWARF" like that.
27053 2016-01-21 Jakub Jelinek <jakub@redhat.com>
27055 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
27056 warning. Fix up formatting.
27058 PR middle-end/67653
27059 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
27060 attempt to mark memory input operand addressable and
27061 call prepare_gimple_addressable in that case. Don't adjust
27062 input_location for diagnostics, use error_at instead.
27064 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
27066 * config/rs6000/ppc-auxv.h: New file.
27067 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
27068 (cpu_is): Likewise.
27069 (cpu_supports): Likewise.
27070 * config/rs6000/rs6000.c: include "ppc-auxv.h".
27071 (cpu_is_info): New variable.
27072 (cpu_supports_info): Likewise.
27073 (tcb_verification_symbol): Likewise.
27074 (cpu_builtin_p): Likewise.
27075 (cpu_expand_builtin): New function.
27076 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
27077 (rs6000_init_builtins): Likewise.
27078 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
27079 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
27080 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
27081 * configure: Regenerate.
27082 * config.in: Likewise.
27083 * doc/extend.texi (PowerPC Built-in Functions): Document
27084 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
27086 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
27089 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
27091 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
27094 2016-01-20 Richard Henderson <rth@redhat.com>
27100 * tree.c (tm_define_builtin): New.
27101 (find_tm_vector_type): New.
27102 (build_tm_vector_builtins): New.
27103 (build_common_builtin_nodes): Call it.
27105 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
27107 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
27108 (arm_fp_ok): Likewise.
27109 (arm_fp): Likewise.
27110 (arm_crypto): Likewise.
27112 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27113 Richard Biener <rguenther@suse.de>
27115 PR tree-optimization/69328
27116 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
27117 vectors have same number of elements.
27118 (vectorizable_condition): Fix masked version recognition.
27120 2016-01-20 Richard Biener <rguenther@suse.de>
27122 PR tree-optimization/69345
27123 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
27124 (VN_INFO_PTR_INFO): Likewise.
27125 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
27126 info when it is equal between non-dominating SSA names.
27127 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27128 Make sure to look at original SSA infos.
27130 2016-01-20 Jeff Law <law@redhat.com>
27133 * config/m68k/predicates.md (pow2_m1_operand): New predicate
27135 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
27136 (pc_or_label_operand): New predicate.
27137 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
27138 tests for small integers that are 2^n - 1.
27140 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
27142 * doc/invoke.texi (Options Summary): Add '.' after @xref.
27144 2016-01-19 Jeff Law <law@redhat.com>
27146 PR middle-end/69347
27147 * tree-ssa-threadbackwards.c
27148 (fsm_find_control_statement_thread_paths): Do not try to lookup
27149 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
27151 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27153 * doc/lto.texi: Remove text that says only Gold has linker plugin
27156 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
27158 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
27159 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
27160 the DIE accordingly.
27161 (modified_type_die): Add REVERSE parameter and pass it recursively,
27162 as well as to base_type_die. Adjust presence check accordingly.
27163 (base_type_for_mode): Adjust call to modified_type_die.
27164 (add_type_attribute): Add REVERSE parameter and pass it to
27166 (generic_parameter_die): Adjust call to add_type_attribute.
27167 (add_scalar_info): Likewise.
27168 (add_subscript_info): Likewise.
27169 (gen_array_type_die): Likewise.
27170 (gen_descr_array_type_die): Likewise.
27171 (gen_entry_point_die): Likewise.
27172 (gen_enumeration_type_die): Likewise.
27173 (gen_formal_parameter_die): Likewise.
27174 (gen_subprogram_die): Likewise.
27175 (gen_variable_die ): Likewise.
27176 (gen_const_die): Likewise.
27177 (gen_field_die): Likewise.
27178 (gen_pointer_type_die): Likewise.
27179 (gen_reference_type_die): Likewise.
27180 (gen_ptr_to_mbr_type_die): Likewise.
27181 (gen_inheritance_die): Likewise.
27182 (gen_subroutine_type_die): Likewise.
27183 (gen_typedef_die): Likewise.
27184 (force_type_die): Adjust call to modified_type_die.
27186 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
27188 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
27189 flow throughout the file. Fix broken link to Objective-C 2.0
27191 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
27194 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27196 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
27198 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27201 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
27202 (maybe_record_node): Record cxa_pure_virtual as the only possible
27203 target if there are not ohter candidates.
27204 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
27206 2016-01-19 Richard Biener <rguenther@suse.de>
27208 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
27209 (get_memory_order): Likewise.
27211 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
27213 * tree-vect-stmts.c (vectorizable_store): Check
27216 2016-01-19 David Malcolm <dmalcolm@redhat.com>
27219 * gcc.c (driver::decode_argv): Add call to
27220 init_opts_obstack before init_options_struct.
27221 * opts.c (init_opts_obstack): Remove idempotency.
27222 (init_options_struct): Replace call to init_opts_obstack
27223 with a gcc_assert to verify that it has already been called.
27224 * toplev.c (toplev::main): Add call to init_opts_obstack before
27225 calls to init_options_struct.
27226 (toplev::finalize): Move cleanup of opts_obstack next to
27227 cleanup of save_decoded_options, clearing the latter, and
27228 save_decoded_options_count.
27230 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27233 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
27234 attribute to unconditional. Remove %? from output template.
27236 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27237 Jiong Wang <jiong.wang@arm.com>
27239 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
27240 generated from different expand order.
27242 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27244 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
27245 Add support for CCMP costing.
27247 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27249 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
27250 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
27251 (fccmpe<mode>): Likewise.
27252 (fcmp): Rename to fcmp and globalize pattern.
27254 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
27255 (aarch64_gen_ccmp_next): Add FP support.
27257 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
27259 * target.def (gen_ccmp_first): Update documentation.
27260 (gen_ccmp_next): Likewise.
27261 * doc/tm.texi (gen_ccmp_first): Update documentation.
27262 (gen_ccmp_next): Likewise.
27263 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
27264 expand_ccmp_expr_1. Improve comments.
27265 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
27266 (ccmp_ior<mode>): Remove pattern.
27267 (cmp<mode>): Remove expand.
27268 (cmp): Globalize pattern.
27269 (cstorecc4): Use cc_register.
27270 (mov<mode>cc): Remove ccmp_cc_register check.
27271 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
27272 Simplify after removal of CC_DNE/* modes.
27273 (aarch64_ccmp_mode_to_code): Remove.
27274 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
27275 In 'k' case use integer as condition.
27276 (aarch64_nzcv_codes): Remove inverted cases.
27277 (aarch64_code_to_ccmode): Remove.
27278 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
27279 comparison with CC register to be used in folowing CCMP/branch/CSEL.
27280 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
27281 pattern. Return the comparison with CC register. Invert conditions
27282 when bitcode is OR.
27283 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
27284 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
27286 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27288 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
27289 instrumented_version.
27291 2016-01-19 Richard Biener <rguenther@suse.de>
27293 PR tree-optimization/69336
27294 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
27295 handled components with get_ref_base_and_extent.
27296 (equal_mem_array_ref_p): Adjust.
27298 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27301 * shrink-wrap.c: Include valtrack.h.
27302 (move_insn_for_shrink_wrap): Add DEBUG argument. If
27303 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
27304 in between insn and where it will be moved to. Call
27305 dead_debug_insert_temp.
27306 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
27307 first and dead_debug_local_finish at the end.
27308 For uses and defs bitmap, handle all regs in between REGNO and
27309 END_REGNO, not just the first one.
27311 2016-01-19 Richard Biener <rguenther@suse.de>
27313 PR tree-optimization/69352
27314 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
27315 (equal_mem_array_ref_p): Constrain size and max size properly.
27316 Compare the reverse flag.
27318 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
27320 * ira.c (ira): Update regstat data if we deleted insns.
27322 2016-01-19 Jakub Jelinek <jakub@redhat.com>
27324 PR rtl-optimization/68955
27325 PR rtl-optimization/64557
27326 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
27327 here. Fix up formatting.
27328 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
27330 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27333 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
27334 assume that the node has body.
27335 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
27338 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27340 * lto-streamer-out.c (lto_output): Do not stream instrumentation
27343 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27345 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
27346 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
27348 2016-01-19 Martin Jambor <mjambor@suse.cz>
27349 Martin Liska <mliska@suse.cz>
27350 Michael Matz <matz@suse.de>
27352 * Makefile.in (OBJS): Add new source files.
27353 (GTFILES): Add hsa.c.
27354 * common.opt (disable_hsa): New variable.
27355 (-Whsa): New warning.
27356 * config.in (ENABLE_HSA): New.
27357 * configure.ac: Treat hsa differently from other accelerators.
27358 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
27359 $enable_offloading.
27360 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
27361 * doc/install.texi (Configuration): Document --with-hsa-runtime,
27362 --with-hsa-runtime-include, --with-hsa-runtime-lib and
27363 --with-hsa-kmt-lib.
27364 * doc/invoke.texi (-Whsa): Document.
27365 (hsa-gen-debug-stores): Likewise.
27366 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
27367 to invoke offload compiler for hsa acclerator.
27368 * opts.c (common_handle_option): Determine whether HSA offloading
27369 should be performed.
27370 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
27371 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
27372 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
27373 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
27374 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
27375 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
27376 GF_OMP_FOR_KIND_GRID_LOOP.
27377 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
27378 (pp_gimple_stmt_1): Likewise.
27379 * gimple-walk.c (walk_gimple_stmt): Likewise.
27380 * gimple.c (gimple_build_omp_grid_body): New function.
27381 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
27382 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
27383 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
27384 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
27385 GF_OMP_TEAMS_GRID_PHONY.
27386 (gimple_statement_omp_single_layout): Updated comments.
27387 (gimple_build_omp_grid_body): New function.
27388 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
27389 (gimple_omp_for_grid_phony): New function.
27390 (gimple_omp_for_set_grid_phony): Likewise.
27391 (gimple_omp_parallel_grid_phony): Likewise.
27392 (gimple_omp_parallel_set_grid_phony): Likewise.
27393 (gimple_omp_teams_grid_phony): Likewise.
27394 (gimple_omp_teams_set_grid_phony): Likewise.
27395 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
27396 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
27397 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
27398 (BUILT_IN_GOMP_TARGET): Updated type.
27399 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
27400 (adjust_for_condition): New function.
27401 (get_omp_for_step_from_incr): Likewise.
27402 (extract_omp_for_data): Moved parts to adjust_for_condition and
27403 get_omp_for_step_from_incr.
27404 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
27405 (fixup_child_record_type): Bail out if receiver_decl is NULL.
27406 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
27407 (scan_omp_parallel): Do not create child functions for phony
27409 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
27410 (scan_omp_1_op): Checking assert we are not remapping to
27411 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
27412 (parallel_needs_hsa_kernel_p): New function.
27413 (expand_parallel_call): Register apprpriate parallel child
27414 functions as HSA kernels.
27415 (grid_launch_attributes_trees): New type.
27416 (grid_attr_trees): New variable.
27417 (grid_create_kernel_launch_attr_types): New function.
27418 (grid_insert_store_range_dim): Likewise.
27419 (grid_get_kernel_launch_attributes): Likewise.
27420 (get_target_argument_identifier_1): Likewise.
27421 (get_target_argument_identifier): Likewise.
27422 (get_target_argument_value): Likewise.
27423 (push_target_argument_according_to_value): Likewise.
27424 (get_target_arguments): Likewise.
27425 (expand_omp_target): Call get_target_arguments instead of looking
27426 up for teams and thread limit.
27427 (grid_expand_omp_for_loop): New function.
27428 (grid_arg_decl_map): New type.
27429 (grid_remap_kernel_arg_accesses): New function.
27430 (grid_expand_target_kernel_body): New function.
27431 (expand_omp): Call it.
27432 (lower_omp_for): Do not emit phony constructs.
27433 (lower_omp_taskreg): Do not emit phony constructs but create for them
27434 a temporary variable receiver_decl.
27435 (lower_omp_taskreg): Do not emit phony constructs.
27436 (lower_omp_teams): Likewise.
27437 (lower_omp_grid_body): New function.
27438 (lower_omp_1): Call it.
27439 (grid_reg_assignment_to_local_var_p): New function.
27440 (grid_seq_only_contains_local_assignments): Likewise.
27441 (grid_find_single_omp_among_assignments_1): Likewise.
27442 (grid_find_single_omp_among_assignments): Likewise.
27443 (grid_find_ungridifiable_statement): Likewise.
27444 (grid_target_follows_gridifiable_pattern): Likewise.
27445 (grid_remap_prebody_decls): Likewise.
27446 (grid_copy_leading_local_assignments): Likewise.
27447 (grid_process_kernel_body_copy): Likewise.
27448 (grid_attempt_target_gridification): Likewise.
27449 (grid_gridify_all_targets_stmt): Likewise.
27450 (grid_gridify_all_targets): Likewise.
27451 (execute_lower_omp): Call grid_gridify_all_targets.
27452 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
27453 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
27454 (tree_omp_clause): Added union field dimension.
27455 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
27456 * tree.c (omp_clause_num_ops): Added number of arguments of
27457 OMP_CLAUSE__GRIDDIM_.
27458 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
27459 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
27460 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
27461 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
27462 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
27463 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
27464 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
27465 * tree-pass.h (make_pass_gen_hsail): Declare.
27466 (make_pass_ipa_hsa): Likewise.
27467 * ipa-hsa.c: New file.
27468 * lto-section-in.c (lto_section_name): Add hsa section name.
27469 * lto-streamer.h (lto_section_type): Add hsa section.
27470 * timevar.def (TV_IPA_HSA): New.
27471 * hsa-brig-format.h: New file.
27472 * hsa-brig.c: New file.
27473 * hsa-dump.c: Likewise.
27474 * hsa-gen.c: Likewise.
27477 * toplev.c (compile_file): Call hsa_output_brig.
27478 * hsa-regalloc.c: New file.
27480 2016-01-18 Jeff Law <law@redhat.com>
27482 PR tree-optimization/69320
27483 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
27484 ranged object, do nothing if the RHS constant is not [0..1].
27485 (optimize_stmt): Comparing a boolean ranged object against a
27486 constant outside [0..1] results in a compile-time constant.
27488 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
27491 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
27493 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27494 (Option Summary): Update to reflect new section and moved options.
27495 (C++ Dialect Options): Move -fstats to new section.
27496 (Debugging Options): Move all dump, statistics, and other GCC
27497 developer options to new section. Rewrite section introduction
27498 and re-order remaining options to put the more basic ones first.
27499 (Optimization Options): Move -fira-verbose and -flto-report* to
27501 (Developer Options): New section incorporating moved options.
27502 * doc/cppopts.texi (-dM): Update cross-reference.
27504 2016-01-18 Richard Henderson <rth@redhat.com>
27507 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
27508 operands to pseudo only if CSE is expected. Split long immediate
27509 operands only after reload, and for the stack pointer.
27510 (*add<GPI>3_pluslong): Remove.
27511 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
27512 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
27513 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
27514 (*add<GPI>3 peepholes): New.
27515 (*add<GPI>3 splitters): New.
27516 * config/aarch64/constraints.md (Upl): New.
27517 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
27519 2016-01-18 Richard Biener <rguenther@suse.de>
27521 PR tree-optimization/69297
27522 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
27524 (vect_bb_vectorization_profitable_p): Clear visited flag again.
27526 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
27528 PR middle-end/68542
27529 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
27530 of mixind vector and scalar types.
27531 (fold_relational_const): Add handling of vector
27532 comparison with boolean result.
27533 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
27534 comparison of vector operands with boolean result for EQ/NE only.
27535 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
27536 (verify_gimple_cond): Likewise.
27537 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
27540 2016-01-18 Joseph Myers <joseph@codesourcery.com>
27542 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
27545 2016-01-18 Richard Biener <rguenther@suse.de>
27547 PR middle-end/69308
27548 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
27550 2016-01-18 Tom de Vries <tom@codesourcery.com>
27552 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
27554 2016-01-18 Tom de Vries <tom@codesourcery.com>
27556 * omp-low.c (set_oacc_fn_attrib): Make extern.
27557 * omp-low.h (set_oacc_fn_attrib): Declare.
27558 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
27559 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
27560 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
27561 Add and handle function parameter oacc_kernels_p.
27562 (find_reduc_addr, get_omp_data_i_param): New function.
27563 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
27564 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
27565 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
27566 Calculate dominance info. Skip loops that are not in a kernels region
27567 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
27568 (pass_parallelize_loops::execute): Call parallelize_loops with
27569 oacc_kernels_p argument.
27570 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
27571 New member function.
27572 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
27573 * passes.def: Add argument to pass_parallelize_loops instantation.
27575 2016-01-18 Tom de Vries <tom@codesourcery.com>
27577 * tree-parloops.c (pass_parallelize_loops::execute): Allow
27578 pass_parallelize_loops to be run outside the loop pipeline.
27580 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27582 * tree-scalar-evolution.c (follow_copies_to_constant): New.
27583 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
27585 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27588 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
27589 using get_ref_base_and_extent.
27590 (equal_mem_array_ref_p): New.
27591 (hashable_expr_equal_p): Add call to previous.
27593 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
27596 * tree-sra.c (disqualified_constants, constant_decl_p): New.
27597 (sra_initialize): Allocate disqualified_constants.
27598 (sra_deinitialize): Free disqualified_constants.
27599 (disqualify_candidate): Update disqualified_constants when appropriate.
27600 (create_access): Scan for constant-pool entries as we go along.
27601 (scalarizable_type_p): Add check against type_contains_placeholder_p.
27602 (maybe_add_sra_candidate): Allow constant-pool entries.
27603 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
27604 (initialize_constant_pool_replacements): New.
27605 (sra_modify_assign): Avoid mangling assignments created by previous,
27606 and don't generate writes into constant pool.
27607 (sra_modify_function_body): Call initialize_constant_pool_replacements.
27609 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27611 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
27612 andnot instruction.
27613 (scalar_chain::convert_op): Likewise.
27614 * config/i386/i386.md (*andndi3_doubleword): New.
27616 2016-01-18 Richard Biener <rguenther@suse.de>
27618 PR tree-optimization/69170
27619 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
27620 building a vector from scalar results of a pattern stmt.
27622 2016-01-18 Jakub Jelinek <jakub@redhat.com>
27624 * haifa-sched.c (autopref_multipass_init): Work around
27625 -Wmaybe-uninitialized warning.
27627 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
27629 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
27630 against the constant 0.
27632 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27634 PR tree-optimization/68799
27635 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
27636 look up phi candidates in the statement-candidate map.
27637 (phi_add_costs): Likewise.
27638 (record_phi_increments): Likewise.
27639 (phi_incr_cost): Likewise.
27640 (ncd_with_phi): Likewise.
27641 (all_phi_incrs_profitable): Likewise.
27643 2016-01-17 Jakub Jelinek <jakub@redhat.com>
27645 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
27646 -Wmaybe-uninitialized warning.
27648 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
27650 * doc/invoke.texi (Invoking GCC): Add new section to menu.
27651 (Option Summary): Update to reflect new section and moved options.
27652 (C++ Dialect Options): Move -fvtable-verify and related options.
27653 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
27654 and profiling-related options.
27655 (Optimization Options): Move profile generation options and
27656 -fstack-protector and related options.
27657 (Instrumentation Options): New section incorporating moved options.
27658 (Code Generation Options): Move -finstrument-functions and
27659 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
27661 2016-01-16 Tom de Vries <tom@codesourcery.com>
27663 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
27665 2016-01-16 Tom de Vries <tom@codesourcery.com>
27667 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
27669 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
27671 * hash-table.h (hash_table::empty): Turn into an inline wrapper
27672 that checks whether the table is already empty. Rename the
27673 original implementation to...
27674 (hash_table::empty_slot): ...this new private function.
27676 2016-01-15 David Malcolm <dmalcolm@redhat.com>
27678 PR diagnostic/68899
27679 * diagnostic-show-locus.c (layout::print_source_line): Move x
27680 offset of line until after call to
27681 get_line_width_without_trailing_whitespace.
27683 2016-01-15 Jeff Law <law@redhat.com>
27685 PR tree-optimization/69270
27686 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
27687 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
27688 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
27689 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
27690 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27691 ssa_name_has_boolean_range and constant_boolean_node.
27693 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
27695 PR rtl-optimization/69030
27696 * lra-spills.c (remove_pseudos): Check nrefs and make the function
27698 (spill_pseudos): Delete debug insn for dead pseudo.
27699 (lra_spill): Initiate spill_hard_reg and slots memory separately.
27701 2016-01-15 Jiong Wang <jiong.wang@arm.com>
27703 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
27705 (TYPES_UNOPUS): Likewise.
27706 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
27707 builtin type, from UNOP to UNOPUS.
27708 (lbtruncuv4sf): Likewise.
27709 (lbtruncuv2df): Likewise.
27710 (lrounduv2sf): Likewise.
27711 (lrounduv4sf): Likewise.
27712 (lrounduv2df): Likewise.
27713 (lroundusf): Likewise.
27714 (lroundusf): Likewise.
27715 (lceiluv2sf): Likewise.
27716 (lceiluv4sf): Likewise.
27717 (lceiluv2df): Likewise.
27718 (lceilusf): Likewise.
27719 (lceiludf): Likewise.
27720 (lflooruv2sf): Likewise.
27721 (lflooruv4sf): Likewise.
27722 (lflooruv2df): Likewise.
27723 (lfloorusf): Likewise.
27724 (lfloorudf): Likewise.
27725 (lfrintnuv2sf): Likewise.
27726 (lfrintnuv4sf): Likewise.
27727 (lfrintnuv2df): Likewise.
27728 (lfrintnusf): Likewise.
27729 (lfrintnudf): Likewise.
27730 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
27732 (vcvtq_u32_f32): Likewise.
27733 (vcvtq_u64_f64): Likewise.
27734 (vcvta_u32_f32): Likewise.
27735 (vcvtaq_u32_f32): Likewise.
27736 (vcvtaq_u64_f64): Likewise.
27737 (vcvtm_u32_f32): Likewise.
27738 (vcvtmq_u32_f32): Likewise.
27739 (vcvtmq_u64_f64): Likewise.
27740 (vcvtn_u32_f32): Likwise.
27741 (vcvtnq_u32_f32): Likewise.
27742 (vcvtnq_u64_f64): Likewise.
27743 (vcvtp_u32_f32): Likewise.
27744 (vcvtpq_u32_f32): Likewise.
27745 (vcvtpq_u64_f64): Likewise.
27746 (vcvtmd_u64_f64): Likewise.
27747 (vcvtms_u32_f32): Likewise.
27748 (vcvtad_u64_f64): Likewise.
27749 (vcvtas_u32_f32): Likewise.
27750 (vcvtnd_u64_f64): Likewise.
27751 (vcvtns_u32_f32): Likewise.
27752 (vcvtpd_u64_f64): Likewise.
27753 (vcvtps_u32_f32): Likewise.
27755 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27757 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
27758 CSEL of zero_extended registers.
27760 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27762 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27763 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
27765 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27767 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
27768 false when argument string is not found in the attributes table
27771 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
27774 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
27775 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
27776 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
27777 precision estimate.
27779 2016-01-15 Richard Biener <rguenther@suse.de>
27781 PR tree-optimization/66856
27782 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
27783 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
27784 (vect_create_new_slp_node): Increment stmt reference count.
27785 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
27786 an SLP tree before swapping operands.
27787 (vect_build_slp_tree): Likewise.
27788 (destroy_bb_vec_info): Free stmt info after SLP instances.
27789 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
27790 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
27791 (STMT_VINFO_NUM_SLP_USES): New macro.
27793 2016-01-15 Richard Biener <rguenther@suse.de>
27796 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
27797 (add_linkage_name): ... here.
27798 (gen_typedef_die): Use add_linkage_name_raw instead of
27799 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
27802 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
27804 * gimplify.c (oacc_default_clause): Decode reference and pointer
27805 types for both kernels and parallel regions.
27807 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
27809 PR middle-end/69246
27810 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
27812 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27814 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
27815 (convert_scalars_to_vector): Likewise.
27817 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
27819 * doc/extend.texi (Type Traits): Fix grammar.
27821 2016-01-15 Martin Jambor <mjambor@suse.cz>
27823 * tree-inline.c (remap_decl): Use existing dclarations if
27824 remapping a type and prevent_decl_creation_for_types.
27825 (replace_locals_stmt): Do an initial remapping of non-VLA typed
27826 decls first. Do real remapping with
27827 prevent_decl_creation_for_types set.
27828 * tree-inline.h (copy_body_data): New field
27829 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
27832 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
27834 * config/s390/s390.opt (mmvcle): More verbose help text.
27836 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
27838 * config/s390/s390.opt: Add period to -mzvector option text.
27840 2016-01-15 Richard Biener <rguenther@suse.de>
27842 PR tree-optimization/68961
27843 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
27844 of invariants in stores again.
27846 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
27848 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
27850 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
27852 * config/i386/i386.c (ix86_expand_branch): Don't split
27853 DI mode xor instruction to SI mode.
27855 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
27858 * ipa-icf.c (sem_function::merge): Virtual functions may become
27859 reachable even if they address is not taken and there are no
27862 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
27864 * lto-streamer-out.c (subtract_estimated_size): New function.
27865 (get_symbol_initial_value): Use it.
27867 2016-01-15 Christian Bruel <christian.bruel@st.com>
27870 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
27871 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
27872 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
27873 use add_builtin_function_ext_scope instead of add_builtin_function.
27874 (neon_set_p, neon_crypto_set_p): Remove.
27875 (arm_init_builtins): Always call arm_init_neon_builtins and
27876 arm_init_crypto_builtins.
27877 (arm_expand_builtin): Check that builtins are allowed for the arch.
27878 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
27879 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
27880 arm_init_neon_builtins call.
27882 2016-01-15 Richard Biener <rguenther@suse.de>
27884 PR tree-optimization/69117
27885 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
27886 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
27887 of the leader conservatively.
27888 (free_scc_vn): Restore original SSA name infos.
27890 2016-01-14 Jeff Law <law@redhat.com>
27892 PR tree-optimization/69270
27893 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
27894 single bit of precision, verify it's also unsigned.
27895 (record_edge_info): Use constant_boolean_node rather than fold_convert
27896 to convert boolean_true/boolean_false to the right type.
27898 2016-01-14 Richard Henderson <rth@redhat.com>
27901 * loop-doloop.c (record_reg_sets): New.
27902 (doloop_optimize): Reject the transform if the sequence
27903 clobbers registers live at the end of the loop block.
27904 (doloop_optimize_loops): Enable df_live if needed.
27906 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27908 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
27909 * config/rs6000/rs6000.c: Likewise.
27910 * config/rs6000/rs6000.h: Likewise.
27911 * config/rs6000/rs6000.md: Likewise.
27912 * doc/extend.texi: Likewsie.
27914 2016-01-14 Jeff Law <law@redhat.com>
27916 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
27919 2016-01-14 Richard Henderson <rth@redhat.com>
27923 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
27924 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
27925 instead of builtin_decl_declared_p to test for declaration.
27927 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
27929 * doc/loop.texi (Loop Analysis and Representation): Document
27930 loop_depth function.
27932 2016-01-14 Tom de Vries <tom@codesourcery.com>
27934 PR tree-optimization/68773
27935 * omp-low.c (expand_omp_target): Don't set force_output.
27936 * varpool.c (varpool_node::get_create): Same.
27937 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
27938 offload_funcs with force_output.
27940 2016-01-14 Jakub Jelinek <jakub@redhat.com>
27943 * lra-eliminations.c (move_plus_up): Don't change anything if either
27944 the outer or inner subreg mode is not MODE_INT.
27945 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
27946 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
27948 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
27950 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
27951 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
27952 reduc_uplus_@var{m}): Remove.
27953 * expr.c (expand_expr_real_2): Remove expansion path for
27954 reduc_[us](min|max|plus) optabs.
27955 * optabs-tree.c (scalar_reduc_to_vector): Remove.
27956 * optabs-tree.h (scalar_reduc_to_vector): Remove.
27957 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
27958 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
27959 * tree-vect-loop.c (vectorizable_reduction): Remove test for
27960 reduc_[us](min|max|plus) optabs.
27962 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
27964 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
27965 (reduc_plus_scal_v2sf): New.
27966 (reduc_smax_v2sf): Rename to...
27967 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
27968 (reduc_smin_v2sf): Rename to...
27969 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
27971 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
27973 * alias.c (compare_base_symbol_refs): New function.
27974 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
27977 2016-01-14 Jakub Jelinek <jakub@redhat.com>
27979 PR middle-end/68146
27980 PR tree-optimization/69155
27981 * tree-complex.c: Include cfganal.h.
27982 (phis_to_revisit): New variable.
27983 (extract_component): Add phiarg_p argument. Assert that returned
27984 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
27985 (update_phi_components): Partly rewrite to use loop over real/imag
27986 components instead of code duplication. If extract_component returns
27987 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
27988 create_tmp_reg into the PHI node instead, and mention the phi triplet
27989 in phis_to_revisit.
27990 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
27991 in phis_to_revisit at the end.
27993 2016-01-14 Richard Biener <rguenther@suse.de>
27995 PR tree-optimization/68060
27996 * tree-vect-loop.c (vect_is_simple_reduction): Check the
27997 outer loop reduction is only used in the inner loop before
27998 detecting a double reduction.
28000 2016-01-14 Jakub Jelinek <jakub@redhat.com>
28003 * combine.c (expand_field_assignment): Punt if compute_mode is
28004 unsupported scalar mode.
28006 2016-01-14 Richard Biener <rguenther@suse.de>
28008 PR tree-optimization/66856
28009 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
28010 SLP node only if it built successfully.
28011 (vect_analyze_slp_instance): Adjust.
28013 2016-01-14 Jeff Law <law@redhat.com>
28015 PR tree-optimization/69270
28016 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
28017 (record_edge_info): Use it. Convert boolean_{true,false}_node
28018 to the type of op0.
28020 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
28023 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
28024 use block_ultimate_origin
28025 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
28027 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28029 * doc/invoke.texi (Submodel Options): Rename section to
28030 "Machine-Dependent Options" to better reflect its content.
28031 Rewrite introductory text to remove archaic CPU names.
28034 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
28036 * doc/invoke.texi (Code Gen Options): Move section up in file,
28037 before target-specific options. Update menu and option summary
28038 to reflect the new section ordering.
28040 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28042 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
28043 (C++ Dialect Options): Add cross-reference to -std option.
28044 * doc/standards.texi (C++ Language): Document C++14 support.
28046 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
28048 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
28049 for pack/unpack functions for __ibm128.
28050 (PACK_IF): Likewise.
28051 (UNPACK_IF): Likewise.
28053 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28054 support for __ibm128 pack/unpack functions.
28055 (rs6000_invalid_builtin): Likewise.
28056 (rs6000_init_builtins): Likewise.
28057 (rs6000_opt_masks): Likewise.
28059 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
28060 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
28062 (RS6000_BTM_COMMON): Likewise.
28064 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
28065 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
28066 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
28067 128-bit floating point. Add support for the double values to be
28068 in Altivec registers for TF/IF packing and unpacking, but restrict
28069 TD packing sub-fields to be FPR registers. Don't allow overlapped
28070 register support for packing. Allow pack inputs to be memory
28071 locations. Don't build generator functions for unpack<mode>_dm
28072 and unpack<mode>_nodm.
28073 (unpack<mode>_dm): Likewise.
28074 (unpack<mode>_nodm): Likewise.
28075 (pack<mode>): Likewise.
28077 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
28078 built-in functions to pack/unpack explicit __ibm128 values.
28079 (__builtin_unpack_ibm128): Likewise.
28081 * doc/extend.texi (PowerPC Built-in Functions): Document
28082 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
28084 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
28087 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
28088 Add new arg loc and pass it down as context.
28089 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
28090 to the location to use for the warning.
28091 (check_function_arguments): New arg loc. All callers changed. Pass
28092 it to check_function_nonnull.
28093 * c-common.h (check_function_arguments): Adjust declaration.
28095 2016-01-13 Jakub Jelinek <jakub@redhat.com>
28097 PR tree-optimization/69156
28098 * gimple.c (validate_type): Removed.
28099 (gimple_builtin_call_types_compatible_p): Use
28100 useless_type_conversion_p instead of validate_type.
28101 * value-prof.c (gimple_stringop_fixed_value): Fold
28102 icall_size to correct type.
28104 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
28106 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
28109 2016-01-13 Richard Henderson <rth@redhat.com>
28112 * target.def (builtin_tm_load, builtin_tm_store): Remove.
28113 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
28114 (ix86_builtin_tm_store): Remove.
28115 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28116 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28117 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28118 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28119 * doc/tm.texi: Rebuild.
28121 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
28122 (BUILT_IN_TM_MEMCPY_RTWN): New.
28123 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
28124 fallback from vector to integer helpers.
28125 (build_tm_load): Handle vector types directly, instead of
28127 (build_tm_store): Likewise.
28128 (expand_assign_tm): Prepare for register types not handled by
28129 the above. Copy them to memory and use memcpy.
28130 * tree.c (tm_define_builtin): New.
28131 (find_tm_vector_type): New.
28132 (build_tm_vector_builtins): New.
28133 (build_common_builtin_nodes): Call it.
28135 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
28137 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
28138 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
28140 2016-01-13 Tom de Vries <tom@codesourcery.com>
28142 PR tree-optimization/69169
28143 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
28144 handled_struct_type param.
28145 (create_variable_info_for, intra_create_variable_infos): Call
28146 create_variable_info_for_1 with extra arg.
28148 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
28150 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
28151 and "armv8.1-a+crc" entries.
28153 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
28156 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
28157 Change first operand predicate from register_or_constm1_operand
28158 to register_operand.
28159 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
28160 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
28161 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
28162 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
28163 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
28164 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
28165 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
28166 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
28167 comparison with constm1_rtx from vec_prefetch_gen part.
28169 2016-01-13 Richard Biener <rguenther@suse.de>
28171 PR tree-optimization/69013
28172 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
28173 Exchange assert for a test.
28175 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28178 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
28180 2016-01-13 Richard Biener <rguenther@suse.de>
28182 PR tree-optimization/69242
28183 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
28184 assert with a check.
28186 2016-01-13 Richard Biener <rguenther@suse.de>
28188 PR tree-optimization/69186
28189 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28190 Properly guard vect_update_misalignment_for_peel call.
28192 2016-01-12 Jeff Law <law@redhat.com>
28194 PR tree-optimization/pr67755
28195 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
28196 "need_profile_correction".
28197 (thread_block_1): Initialize new field to false by default. If we
28198 have multiple thread paths through a common joiner to different
28199 final targets, then set new field to true.
28200 (compute_path_counts): Only do count adjustment when it's really
28203 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28205 * doc/invoke.texi (Spec Files): Move section down in file, past
28206 all command-line option descriptions.
28208 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28210 PR middle-end/54809
28211 * doc/gty.texi: Remove documentation of mark_hook.
28212 * gengtype.c (struct write_types_data): Remove code to support
28213 mark_hook attribute.
28214 (walk_type): Likewise.
28215 (write_func_for_structure): Likewise.
28217 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28219 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
28220 Directory Options, and -specs= to Overall Options.
28221 (Overall Options): Adjust similarly. Reorder to group related
28222 options together. Make -specs= cross-reference the spec file details.
28223 (Directory Options): Adjust similarly.
28225 2016-01-12 Jeff Law <law@redhat.com>
28227 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
28229 2016-01-12 Olivier Hainque <hainque@adacore.com>
28231 * gcc.c (spec_undefvar_allowed): New global.
28232 (process_command): Set to true when running for --version or --help,
28234 (getenv_spec_function): When the variable is not defined, use the
28235 variable name as the variable value if we're allowed not to issue
28238 2016-01-12 Bin Cheng <bin.cheng@arm.com>
28240 PR tree-optimization/68911
28241 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
28242 information computed for expression "init + nit * step".
28244 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
28246 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
28247 about name of GCC executable. Remove deleted node from menu.
28248 (Directory Options) <-B>: Remove cross-reference to deleted node.
28249 (Target Options): Delete section.
28251 2016-01-12 Christian Bruel <christian.bruel@st.com>
28254 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
28255 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
28257 2016-01-12 Jakub Jelinek <jakub@redhat.com>
28260 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
28261 aligned_mem is properly set for AVX512-VL floating point masked
28265 * ifcvt.c (cond_exec_process_if_block): When removing the last
28266 insn from then_bb, remove also any possible barriers that follow it.
28268 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
28272 * config/i386/iamcu.h (SIZE_TYPE): New macro.
28273 (PTRDIFF_TYPE): Likewise.
28274 (WCHAR_TYPE): Likewise.
28275 (WCHAR_TYPE_SIZE): Likewise.
28276 (STDINT_LONG32): Likewise.
28278 2016-01-12 Richard Biener <rguenther@suse.de>
28280 PR tree-optimization/69053
28281 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
28282 convert initial value for cond reductions.
28284 2016-01-12 Richard Biener <rguenther@suse.de>
28286 PR tree-optimization/69007
28287 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
28288 widen_sum after dot_prod and sad.
28290 2016-01-12 Richard Biener <rguenther@suse.de>
28292 PR tree-optimization/69168
28293 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
28294 pattern stmt SLP type.
28295 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
28296 end up unused so cope with that case.
28298 2016-01-12 Richard Biener <rguenther@suse.de>
28300 PR tree-optimization/69157
28301 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
28302 stmts def type only during analyze phase.
28303 (vectorizable_call): Likewise.
28304 (vectorizable_simd_clone_call): Likewise.
28305 (vectorizable_conversion): Likewise.
28306 (vectorizable_assignment): Likewise.
28307 (vectorizable_shift): Likewise.
28308 (vectorizable_operation): Likewise.
28309 (vectorizable_store): Likewise.
28310 (vectorizable_load): Likewise.
28312 2016-01-12 Richard Biener <rguenther@suse.de>
28314 PR tree-optimization/69174
28315 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
28317 (vectorizable_load): Properly compute the number of loads needed
28318 for permuted strided SLP loads and do not spuriously assign
28319 to SLP_TREE_VEC_STMTS.
28321 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
28323 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
28324 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
28325 (MD_EXEC_PREFIX): Remove.
28326 (MD_STARTFILE_PREFIX) Removee.
28327 (FILE_NAME_ABSOLUTE_P): Remove.
28328 (CPP_SPEC): Do not read macros from sys/version.h.
28329 (LINK_COMMAND_SPEC): Remove.
28330 (LOCAL_INCLUDE_DIR): Remove.
28331 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
28332 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
28333 (POST_LINK_SPEC): Define to invoke stubify after linker
28334 (LIBSTDCXX): Remove define
28335 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
28336 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
28337 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
28338 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
28339 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
28340 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
28341 (i386_djgpp_asm_named_section): Add propotype of new procedure
28343 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
28344 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
28345 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
28346 in config/i386/djgpp.h).
28347 (STANDARD_STARTFILE_PREFIX_2): Define identical to
28348 STANDARD_STARTFILE_PREFIX_1.
28349 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
28350 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
28351 installation errors.
28352 (MAX_OFILE_ALIGNMENT): Define to 128.
28353 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
28355 * config/i386/djgpp.c: New file. Add implementation of
28356 i386_djgpp_asm_named_section.
28358 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
28360 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
28361 Add rule for building djgpp.o.
28363 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28365 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
28366 (rtx_is_swappable_p): Reductions are swappable.
28367 (insn_is_swappable_p): V2DF reductions are swappable.
28369 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
28371 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
28372 reloads for other unsupported memory operands.
28374 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28375 Jim Wilson <jim.wilson@linaro.org>
28378 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
28379 copy_to_mode_reg instead of force_reg.
28381 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28384 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
28385 TARGET_80387 is true.
28387 2016-01-11 Jakub Jelinek <jakub@redhat.com>
28390 * lra-eliminations.c (move_plus_up): Only move plus up
28391 if subreg of the constant can be simplified into constant
28392 and use the simplified subreg of the constant instead of
28393 the original constant.
28395 * fold-const.c (fold_convertible_p): Don't return true
28396 for conversion of VECTOR_TYPE to same sized integral type.
28397 (fold_convert_loc): Fix up formatting. Fold conversion of
28398 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
28399 instead of NOP_EXPR.
28401 PR tree-optimization/69214
28402 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
28403 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28406 PR tree-optimization/69207
28407 * tree-vect-slp.c (vect_get_constant_vectors): For
28408 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
28409 fold_convertible_p to vector_type's element type, and always
28410 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
28412 2016-01-11 Richard Biener <rguenther@suse.de>
28414 PR tree-optimization/69173
28415 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
28416 fixup the cycle if all stmts are in a pattern.
28418 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
28420 PR middle-end/68999
28421 * alias.c (base_alias_check): Move check for addresses with
28422 alignment ANDs before the call for compare_base_decls.
28423 (memrefs_conflict_p): Return -1 for different decls
28424 that went through alignment adjustments.
28426 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28428 PR rtl-optimization/68796
28429 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
28430 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
28431 and QImode comparisons against zero with CC_NZmode.
28432 * config/aarch64/iterators.md (short_mask): New mode_attr.
28434 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
28436 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
28437 (<avx512>_store<mode>_mask): Likewise.
28439 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
28440 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28442 PR rtl-optimization/68841
28443 * ifcvt.c (struct noce_if_info): Add orig_x field.
28444 (bbs_ok_for_cmove_arith): Add to_rename parameter.
28445 Don't record conflicts on to_rename if it's present.
28446 Allow memory destinations in sets.
28447 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
28448 blocks, passing orig_x to the checks.
28449 (noce_process_if_block): Set if_info->orig_x appropriately.
28451 2016-01-11 Tom de Vries <tom@codesourcery.com>
28453 PR tree-optimization/69069
28454 * tree-parloops.c (create_parallel_loop): Add missing phi args.
28456 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
28458 PR rtl-optimization/68920
28459 * config/i386/i386.c (ix86_option_override_internal): Restrict number
28460 of conditional moves for RTL if-conversion to 1 for
28461 TARGET_ONE_IF_CONV_INSN.
28462 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
28463 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
28464 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
28465 parameter to restirct number of conditional moves for
28467 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
28468 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
28471 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
28474 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
28475 onepart vars. Fix typo in comment. Fix reversed condition in
28477 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
28480 * var-tracking.c (dump_onepart_variable_differences): New.
28481 (dataflow_set_different): If a detailed dump is requested,
28482 delay early returns and dump differences between onepart
28483 variables present before and after, and added variables.
28485 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28488 * expr.c (expand_expr_real_1): For boolean vector constants
28489 with a scalar mode use const_scalar_mask_from_tree.
28490 (const_scalar_mask_from_tree): New.
28491 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
28492 assigned to a mask type to handle constants.
28494 2016-01-11 Martin Jambor <mjambor@suse.cz>
28497 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
28498 useless parameters if we cannot change function signature.
28500 2016-01-11 Martin Jambor <mjambor@suse.cz>
28503 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
28506 2016-01-11 Tom de Vries <tom@codesourcery.com>
28508 PR tree-optimization/69109
28509 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
28512 2016-01-11 Tom de Vries <tom@codesourcery.com>
28514 PR tree-optimization/69108
28515 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
28516 res is not used in a phi.
28518 2016-01-11 Yury Gribov <y.gribov@samsung.com>
28521 * common.opt (frandom-seed): Fix parameter name.
28522 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
28524 2016-01-11 Tom de Vries <tom@codesourcery.com>
28526 PR tree-optimization/69058
28527 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
28530 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
28532 * config/arc/arc.opt (mdiv-rem): Add period to the end.
28533 (mcode-density): Likewise.
28535 2016-01-10 Tom de Vries <tom@codesourcery.com>
28537 PR tree-optimization/69062
28538 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
28539 (parallelize_loops): Don't paralelize loop that has phi with address
28542 2016-01-10 Tom de Vries <tom@codesourcery.com>
28544 PR tree-optimization/69039
28545 * tree-parloops.c (try_create_reduction_list): Only allow single exit
28548 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
28550 PR middle-end/68743
28551 * match.pd: Require target has function_c99_misc before doing
28552 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
28554 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
28556 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
28558 * configure: Regenerate.
28560 2016-01-09 Jakub Jelinek <jakub@redhat.com>
28562 PR middle-end/50865
28563 PR tree-optimization/69097
28564 * fold-const.h (expr_not_equal_to): New prototype.
28565 * fold-const.c: Include stringpool.h and tree-ssanames.h.
28566 (expr_not_equal_to): New function.
28567 * match.pd (X % -Y is the same as X % Y): Don't optimize
28568 unless X is known not to be equal to minimum or Y is known
28569 not to be equal to -1.
28570 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
28571 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
28572 (simplify_stmt_using_ranges): Adjust caller.
28573 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
28574 substitute_and_fold.
28576 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
28578 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
28581 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28583 PR tree-optimization/69167
28584 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
28585 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
28587 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
28589 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28590 Richard Biener <rguenther@suse.de>
28592 PR tree-optimization/68707
28593 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
28594 instances that can be handled via vect_load_lanes.
28596 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
28598 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
28599 if we can't determine address equivalence.
28600 * alias.c (compare_base_decl): Update for changed return value of
28601 symtab_node::equal_address_to.
28603 2016-01-08 Jason Merrill <jason@redhat.com>
28607 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
28608 * expr.c (store_field): Not here.
28609 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
28610 call with TREE_ADDRESSABLE type.
28611 * tree-cfg.c (verify_gimple_call): Adjust.
28613 2016-01-08 Olivier Hainque <hainque@adacore.com>
28615 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
28618 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
28620 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
28621 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
28622 (reduc_smin_v2sf): Rename to...
28623 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
28624 (reduc_splus_v2sf): Rename to...
28625 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
28627 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28629 PR tree-optimization/69162
28630 * gimplify.c (gimplify_va_arg_expr): Encode original type of
28631 valist argument in another argument.
28632 (gimplify_modify_expr): Adjust for the above change. Cleanup.
28633 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
28634 to determine the va_list type, build a MEM_REF instead of
28635 build_fold_indirect_ref.
28637 PR tree-optimization/69172
28638 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
28641 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
28643 PR tree-optimization/67781
28644 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
28645 and cmpnop in two steps: first the ones not accessed in original
28646 gimple expression in a endian independent way and then the ones not
28647 accessed in the final result in an endian-specific way.
28649 2016-01-08 Jakub Jelinek <jakub@redhat.com>
28651 PR tree-optimization/69083
28652 * tree-vect-slp.c (vect_get_constant_vectors): For
28653 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
28654 element type. If op is fold_convertible_p to vector_type's element
28655 type, use NOP_EXPR instead of VCE.
28657 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
28659 PR rtl-optimization/67778
28660 PR rtl-optimization/68634
28661 PR rtl-optimization/68909
28662 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
28663 block from the stack until done with it. Remove a superfluous
28664 bitmap set. Remove a superfluous bitmap test.
28666 2016-01-07 Martin Sebor <msebor@redhat.com>
28669 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
28670 constraint on the type of arguments.
28672 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
28674 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
28675 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
28676 unaligned_access on the gcc_options set.
28677 * config/arm/arm.c (arm_option_override_internal): Use
28678 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
28680 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28683 * config/i386/i386.c (ix86_frame_pointer_required): Enable
28684 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
28686 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
28689 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28692 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28693 depending on frame_pointer_needed before remaining integer and SSE
28694 registers are saved.
28696 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
28699 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
28701 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
28704 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
28705 Use the "xBm" constraint.
28706 (float<sseintvecmodelower><mode>2<mask_name><round_name):
28708 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
28709 (sse_cvtsi2ssq<round_name>): Likewise.
28710 (sse_cvtss2si<round_name>): Likewise.
28711 (sse_cvtss2siq<round_name>): Likewise.
28712 (sse2_cvtsi2sdq<round_name>): Likewise.
28713 (sse2_cvtsd2si<round_name>): Likewise.
28714 (sse2_cvtsd2siq<round_name>): Likewise.
28715 * config/i386/subst.md (round_nimm_scalar_predicate): New
28718 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
28720 PR middle-end/67639
28721 * varasm.c (make_decl_rtl): Mark invalid register vars as
28724 PR rtl-optimization/66206
28725 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
28726 All callers changed.
28728 2016-01-07 Jakub Jelinek <jakub@redhat.com>
28730 PR tree-optimization/69141
28731 * tree-ssa-pre.c: Include langhooks.h.
28732 (eliminate_dom_walker::before_dom_children): Use
28733 lang_hooks.decl_printable_name instead of
28734 cgraph_node::get ()->name ().
28736 PR middle-end/68960
28737 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
28738 it and DECL_ALIGN too.
28740 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
28742 * config/mips/mips-ftypes.def: Sort to lexicographical order.
28744 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
28747 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28748 depending on frame_pointer_needed before remaining integer and SSE
28749 registers are saved.
28751 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28753 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
28754 mode iterator with VSX_M2.
28755 (*p9_vecstore_<mode>): Likewise.
28756 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
28757 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
28758 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
28759 (define_split for VSX_LE128 stores): Likewise.
28760 (define_peephole2 for TImode LE swaps): Likewise.
28761 (define_split for VSX_LE128 post-reload stores): Likewise.
28763 2016-01-06 Marek Polacek <polacek@redhat.com>
28766 * convert.c (convert_to_integer_1): Adjust call to
28767 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
28768 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
28769 EXPR instead of ARG.
28770 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
28772 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28775 * doc/extend.texi (RL78 Variable Attributes): New section.
28777 2016-01-05 Marek Polacek <polacek@redhat.com>
28780 * builtins.c (get_memmodel): Use expansion point location rather than
28781 the input location. Call warning_at rather than warning.
28782 (expand_builtin_atomic_compare_exchange): Likewise.
28783 (expand_builtin_atomic_load): Likewise.
28784 (expand_builtin_atomic_store): Likewise.
28785 (expand_builtin_atomic_clear): Likewise.
28787 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
28790 * config/i386/i386.c (ix86_expand_vector_logical_operator):
28791 Replace nonimmediate_operand with vector_operand.
28792 * config/i386/predicates.md (vector_operand): New predicate.
28793 (general_vector_operand): Replace nonimmediate_operand with
28795 * config/i386/sse.md: Replace nonimmediate_operand with
28796 vector_operand and m constraint with Bm constraint on SSE
28797 patterns with 16-byte memory operand.
28798 * config/i386/subst.md (round_nimm_predicate): Replace
28799 nonimmediate_operand with vector_operand.
28800 (round_saeonly_nimm_predicate): Likewise.
28801 (round_saeonly_nimm_scalar_predicate): New.
28803 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
28806 * config/i386/constraints.md (Bm): New constraint.
28807 * config/i386/predicates.md (vector_memory_operand): New
28809 * config/i386/sse.md: Replace xm with xBm in plusminus and
28810 any_logic patterns.
28812 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28815 * doc/extend.texi (V850 Function Attributes): New section.
28816 (V850 Variable Attributes): New section.
28818 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
28821 * doc/extend.texi (MicroBlaze Function Attributes): Document
28822 interrupt_handler and fast_interrupt attributes.
28824 2016-01-05 Sergei Trofimovich <siarheit@google.com>
28827 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
28828 for local symbolic operands.
28829 * config/ia64/predicates.md (local_symbolic_operand64): New
28832 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28834 PR rtl-optimization/68651
28835 * combine.c (combine_simplify_rtx): Canonicalize x + x into
28838 2016-01-05 Nathan Sidwell <nathan@acm.org>
28840 * alias.c (compare_base_decls): Use symtab_node::get.
28842 2016-01-05 Nick Clifton <nickc@redhat.com>
28845 * ira-costs.c (copy_cost): Initialise the t_icode field of the
28846 secondary_reload_info structure.
28849 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
28850 decls if weak support is available.
28852 2016-01-04 Martin Sebor <msebor@redhat.com>
28854 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
28856 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28858 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
28859 OPTION_MASK_P9_DFORM.
28861 * config/rs6000/constraints.md (wo constraint): New constraint for
28864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
28866 (rs6000_init_hard_regno_mode_ok): Likewise.
28868 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
28871 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
28872 expanders not to have constraints. Add support for ISA 3.0 xxperm
28873 instruction. Add support for fusing xxlor with xxperm.
28874 (altivec_vperm_<mode>_internal): Likewise.
28875 (altivec_vperm_v8hiv16qi): Likewise.
28876 (altivec_vperm_<mode>v16q): Likewise.
28877 (altivec_vperm_<mode>_uns): Likewise.
28878 (vperm_v8hiv4si): Likewise.
28879 (vperm_v16qiv8hi): Likewise.
28881 * doc/md.texi (RS/6000 constraints): Document wo constraint.
28883 2016-01-04 Jakub Jelinek <jakub@redhat.com>
28885 Update copyright years.
28887 * gcc.c (process_command): Update copyright notice dates.
28888 * gcov-dump.c (print_version): Ditto.
28889 * gcov.c (print_version): Ditto.
28890 * gcov-tool.c (print_version): Ditto.
28891 * gengtype.c (create_file): Ditto.
28892 * doc/cpp.texi: Bump @copying's copyright year.
28893 * doc/cppinternals.texi: Ditto.
28894 * doc/gcc.texi: Ditto.
28895 * doc/gccint.texi: Ditto.
28896 * doc/gcov.texi: Ditto.
28897 * doc/install.texi: Ditto.
28898 * doc/invoke.texi: Ditto.
28900 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28902 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
28903 modes larger than TImode as TImode if NEON is not enabled.
28905 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28908 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
28909 mode for %f0-%f31 only if TARGET_FPU.
28911 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
28914 * config/sparc/sparc.c (scan_record_type): Take into account subfields
28915 to compute the PACKED_P predicate.
28916 (function_arg_record_value): Minor tweaks.
28918 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
28920 * doc/install.texi (--with-multilib-list): Describe the meaning of the
28921 option for arm*-*-* targets.
28923 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
28925 * doc/extend.texi (Common Function Attributes): Move docs for
28926 MSP430-specific attributes to....
28927 (MSP430 Function Attributes): ...here. Delete the redundant
28928 entries and copy-edit the remaining text.
28929 (MSP430 Variable Attributes): Use uniform format for index
28930 entries and add a cross-reference to the corresponding function
28933 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
28935 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
28937 (x86 Options): Likewise.
28939 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
28943 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
28944 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
28945 to corresponding attribute.
28947 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
28949 * doc/extend.texi (Common Function Attributes) <noplt>: Move
28950 to correct alphabetization of table. Copy-edit and correct
28952 <stack_protect>: Likewise.
28953 <target_clones>: Likewise.
28955 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
28956 Correct punctuation.
28957 (Code Gen Options) <-fno-plt>: Copy-edit.
28959 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28962 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
28963 SI values. Explicitly convert SI to DI and vice-versa.
28965 2016-01-01 Jakub Jelinek <jakub@redhat.com>
28967 PR tree-optimization/69070
28968 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
28969 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
28972 * ubsan.c (ubsan_instrument_float_cast): Call
28973 initialize_sanitizer_builtins.
28976 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
28978 Copyright (C) 2016 Free Software Foundation, Inc.
28980 Copying and distribution of this file, with or without modification,
28981 are permitted in any medium without royalty provided the copyright
28982 notice and this notice are preserved.