1 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
3 * config/arc/arc.c (arc_can_eliminate): Test against
4 arc_frame_pointer_needed.
6 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
9 to prevent store reordering.
10 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
11 (type): Add block type.
12 (stack_tie): Define special instruction to be used in
15 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
17 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
18 constraint. It is not valid for the pattern.
19 (noncommutative_binary_comparison): Likewise.
21 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
23 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
26 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
28 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
29 be used by the reg-alloc.
31 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
33 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
34 reg-alloc when having mul64 or mul32x16 instructions.
36 (umulsidi3): Likewise.
37 (mulsi32x16): New pattern.
39 (mulsidi64): Likewise.
40 (umulsidi64): Likewise.
41 (MUL32x16_REG): Define.
42 (mul64_600): Use MUL32x16_REG.
43 (mac64_600): Likewise.
44 (umul64_600): Likewise.
45 (umac64_600): Likewise.
47 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
49 * config/arc/arc.md (mulsi3_700): Make it commutative.
51 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
53 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
55 (*sign_extendsidi2_insn): Likewise for movstosw.
57 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
59 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
60 the type of the input discriminant value. Convert the
61 discriminant value of signedness vary.
63 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
65 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
68 2017-06-01 Richard Biener <rguenther@suse.de>
71 * fold-const.c (fold_plusminus_mult_expr): If the factored
72 factor may be zero use a wrapping type for the inner operation.
73 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
74 and handle moved defs.
75 (process_assignment): Properly guard the unary op case. Return a
76 tri-state indicating that moving the stmt before the call may allow
77 to continue. Pass through to_move.
78 (find_tail_calls): Handle moving unrelated defs before
81 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
84 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
85 splitter result in the canonical way.
87 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
89 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
90 also for 32bit target. Update insn attributes.
91 (zero-extendsidi2 splitter): Allow all registers for operand 1.
93 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
95 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
96 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
97 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
98 (_mm_maskz_min_ss): New intrinsics.
100 2017-05-31 Martin Liska <mliska@suse.cz>
102 * tree-vect-loop.c (vect_create_epilog_for_reduction):
103 Change comment style to one we normally use.
104 (vectorizable_reduction): Likewise.
105 (vectorizable_induction): Likewise.
106 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
107 (vectorizable_call): Likewise.
108 (vectorizable_simd_clone_call): Likewise.
109 (vectorizable_conversion): Likewise.
110 (vectorizable_assignment): Likewise.
111 (vectorizable_shift): Likewise.
112 (vectorizable_operation): Likewise.
113 (vectorizable_store): Likewise.
114 (vectorizable_load): Likewise.
115 * tree-vectorizer.h: Likewise.
117 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
119 * passes.c (emergency_dump_function): New.
120 * tree-pass.h (emergency_dump_function): Declare.
121 * plugin.c (plugins_internal_error_function): Remove.
122 * plugin.h (plugins_internal_error_function): Remove declaration.
123 * toplev.c (internal_error_function): New static function. Use it...
124 (general_init): ...here.
126 2017-05-31 Graham Markall <graham.markall@embecosm.com>
128 * config/arc/arc.c (arc_print_operand): Handle constant operands.
129 (arc_rtx_costs): Add costs for new patterns.
130 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
131 * config/arc/predicates.md: Add _1_2_3_operand predicate.
133 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
135 * tree-ssa-strlen.c (get_next_strinfo): New function.
136 (get_stridx_plus_constant): Use it.
137 (zero_length_string): Likewise.
138 (adjust_related_strinfos): Likewise.
139 (adjust_last_stmt): Likewise.
141 2017-05-31 Richard Biener <rguenther@suse.de>
144 * config/i386/i386.c (ix86_expand_builtin): Remove assert
145 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
147 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
149 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
150 loop_vinfo argument and use of dependence distance vectors.
151 Check instead whether the two references differ only in their
152 initial value and assume that they have the same alignment if the
153 difference is a multiple of the vector alignment.
154 (vect_analyze_data_refs_alignment): Update call accordingly.
156 2017-05-31 Martin Liska <mliska@suse.cz>
159 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
161 2017-05-31 Bin Cheng <bin.cheng@arm.com>
163 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
164 (create_intersect_range_checks): Move from ...
165 * tree-data-ref.c (create_intersect_range_checks_index)
166 (create_intersect_range_checks): ... to here.
167 (create_runtime_alias_checks): New function factored from ...
168 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
169 here. Call above function.
170 * tree-data-ref.h (create_runtime_alias_checks): New function.
172 2017-05-31 Bin Cheng <bin.cheng@arm.com>
174 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
175 segment length for dr_b and compute it in wide_int.
177 2017-05-31 Richard Biener <rguenther@suse.de>
179 PR tree-optimization/80906
180 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
181 and pass through iv_map.
182 (copy_bb_and_scalar_dependences): Adjust.
183 (translate_pending_phi_nodes): Likewise.
184 (copy_loop_close_phi_args): Handle code-generating IVs instead
187 2017-05-30 David Malcolm <dmalcolm@redhat.com>
189 * diagnostic-color.c (color_dict): Add "type-diff".
190 (parse_gcc_colors): Update comment.
191 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
192 -fdiagnostics-show-template-tree and -fno-elide-type.
193 (GCC_COLORS): Add type-diff to example.
195 (-fdiagnostics-show-template-tree): New.
196 (-fno-elide-type): New.
197 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
198 the pp_format_decoder callback. Call any m_format_postprocessor's
200 (pretty_printer::pretty_printer): Initialize
201 m_format_postprocessor.
202 (pretty_printer::~pretty_printer): Delete any
203 m_format_postprocessor.
204 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
205 (class format_postprocessor): New class.
206 (struct pretty_printer::format_decoder): Document the new parameters.
207 (struct pretty_printer::m_format_postprocessor): New field.
208 * tree-diagnostic.c (default_tree_printer): Update for new
209 bool and const char ** params.
210 * tree-diagnostic.h (default_tree_printer): Likewise.
212 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
214 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
215 (lwa_operand): Delete rs6000_gen_cell_microcode test.
216 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
217 rs6000_gen_cell_microcode code.
218 (rs6000_final_prescan_insn): Delete.
219 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
220 "warn-cell-microcode" entries.
221 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
222 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
223 throughout. Change cc_reg_not_micro_cr0_operand to
224 cc_reg_not_cr0_operand throughout.
225 (*extendhi<mode>2_noload): Delete.
226 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
227 (mwarn-cell-microcode): Delete.
228 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
229 -mgen-cell-microcode and -mwarn-cell-microcode.
231 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
234 * config/i386/constraints.md (Yd): New constraint.
236 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
237 and (?Yd, r) alternatives. Update insn attributes.
238 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
239 and (?*Yd, r) alternatives. Update insn attributes.
240 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
242 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
244 * gimplify.c (gimplify_modify_expr): Don't create a
245 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
248 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
250 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
252 2017-05-30 Richard Biener <rguenther@suse.de>
254 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
255 and reduc_def fields.
256 (STMT_VINFO_REDUC_TYPE): New define.
257 (STMT_VINFO_REDUC_DEF): Likewise.
258 (vect_force_simple_reduction): Adjust prototype.
259 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
260 (vect_is_simple_reduction): Remove check_reduction argument.
261 (vect_force_simple_reduction): Adjust and set
262 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
263 (vectorizable_reduction): Do not re-do reduction analysis
264 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
265 * tree-parloops.c (gather_scalar_reductions): Adjust.
267 2017-05-30 Richard Biener <rguenther@suse.de>
270 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
273 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
275 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
276 Introduce unknown_misalignment parameter and remove vf.
277 (vect_peeling_hash_get_lowest_cost):
278 Pass unknown_misalignment parameter.
279 (vect_enhance_data_refs_alignment):
280 Fix unsupportable data ref treatment.
282 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
284 * tree-vect-data-refs.c (vect_get_data_access_cost):
285 Workaround for SLP handling.
286 (vect_enhance_data_refs_alignment):
287 Compute costs for doing no peeling at all, compare to the best
288 peeling costs so far and avoid peeling if cheaper.
290 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
292 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
293 Return peeling info and set costs to zero for unlimited cost
295 (vect_enhance_data_refs_alignment): Also inspect all datarefs
296 with unknown misalignment. Compute and costs for unknown
297 misalignment, compare them to the costs for known misalignment
298 and choose the cheapest for peeling.
300 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
302 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
303 (vect_get_peeling_costs_all_drs): Create function.
304 (vect_peeling_hash_get_lowest_cost):
305 Use vect_get_peeling_costs_all_drs.
306 (vect_peeling_supportable): Create function.
307 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
309 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
311 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
312 DR_HAS_NEGATIVE_STEP.
313 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
314 (vect_enhance_data_refs_alignment): Use.
315 (vect_duplicate_ssa_name_ptr_info): Use.
316 * tree-vectorizer.h (dr_misalignment): Use.
317 (known_alignment_for_access_p): Use.
319 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
322 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
324 (has_section_name): New function.
326 2017-05-30 Martin Liska <mliska@suse.cz>
329 * auto-profile.c (get_function_decl_from_block): Fix
332 2017-05-30 Richard Biener <rguenther@suse.de>
335 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
337 2017-05-30 Martin Liska <mliska@suse.cz>
339 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
340 * dumpfile.h (struct dump_file_info): Remove ctors.
342 2017-05-30 Martin Liska <mliska@suse.cz>
344 * predict.def: Fix GNU coding style.
346 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
348 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
349 Mark 'to' argument with ATTRIBUTE_UNUSED.
351 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
353 * config/xtensa/xtensa.c (xtensa_emit_call): Use
354 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
355 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
358 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
360 * doc/install.texi (Options specification): Restore entry of
361 --enable-sjlj-exceptions.
363 2017-05-27 Michael Eager <eager@eagercon.com>
366 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
368 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
370 * config/microblaze/microblaze.h
371 (FIXED_REGISTERS): Update in macro.
372 (CALL_USED_REGISTERS): Update in macro.
374 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
376 * doc/install.texi: Add links to macOS binary distributions.
378 2017-05-27 Jakub Jelinek <jakub@redhat.com>
382 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
384 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
386 2017-05-26 Martin Liska <mliska@suse.cz>
388 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
390 2017-05-26 Martin Liska <mliska@suse.cz>
392 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
393 always leading ';; '.
394 (dump_bb_info): Likewise.
395 (brief_dump_cfg): Likewise.
396 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
397 * dumpfile.c: Remove usage of TDF_VERBOSE.
398 * dumpfile.h (enum dump_kind): Likewise.
399 (dump_gimple_bb_header): Do not use TDF_COMMENT.
400 * print-tree.c (debug_verbose): Remove.
401 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
402 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
403 * tree-diagnostic.c (default_tree_printer): Replace
404 TDF_DIAGNOSTIC with TDF_SLIM.
406 2017-05-26 Bin Cheng <bin.cheng@arm.com>
408 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
409 in parameter loop, rather than loop_vinfo.
410 (create_intersect_range_checks): Ditto.
411 (vect_create_cond_for_alias_checks): Update call to above functions.
413 2017-05-26 Bin Cheng <bin.cheng@arm.com>
415 PR tree-optimization/80815
416 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
417 for merging runtime alias checks. Handle negative DR_STEPs.
419 2017-05-26 Bin Cheng <bin.cheng@arm.com>
421 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
423 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
424 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
425 out code pruning runtime alias checks.
426 * tree-data-ref.c (prune_runtime_alias_test_list): New function
427 factored out from above.
428 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
430 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
432 (prune_runtime_alias_test_list): New decalaration.
434 2017-05-26 Bin Cheng <bin.cheng@arm.com>
436 * tree-vect-data-refs.c (compare_tree): Rename and move ...
437 * tree-data-ref.c (data_ref_compare_tree): ... to here.
438 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
439 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
440 (operator==, comp_dr_with_seg_len_pair): Ditto.
441 (vect_prune_runtime_alias_test_list): Ditto.
443 2017-05-26 Martin Liska <mliska@suse.cz>
446 * params.def: Bound partial-inlining-entry-probability param.
448 2017-05-26 Marek Polacek <polacek@redhat.com>
451 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
454 2017-05-26 Richard Biener <rguenther@suse.de>
456 PR tree-optimization/80842
457 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
460 2017-05-26 Richard Biener <rguenther@suse.de>
462 PR tree-optimization/80844
463 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
465 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
467 * doc/md.texi (Machine Constraints): Update x86 family
468 machine constraints section to match 'config/i386/constraints.md'.
470 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
472 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
474 2017-05-25 Nathan Sidwell <nathan@acm.org>
476 * doc/invoke.texi (--enable-languages): Update documentation.
478 2017-05-25 Martin Liska <mliska@suse.cz>
480 * dumpfile.c: Add TDF_FOLDING.
481 * dumpfile.h (enum dump_kind): Likewise.
482 * genmatch.c (dt_simplify::gen_1): Use it.
484 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
486 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
488 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
490 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
491 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
493 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
495 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
496 * match.pd (X == C): Rewrite it here.
497 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
498 with_certain_nonzero_bits2): New predicates.
499 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
501 2017-05-24 Nathan Sidwell <nathan@acm.org>
503 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
506 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
509 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
511 * config/powerpcspe: New port. Files are copied from the rs6000
512 port, with "rs6000" in filenames replaced by "powerpcspe".
514 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
516 PR rtl-optimization/80754
517 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
519 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
521 * config/sparc/sparc.md (length): Return the correct value for -mflat
522 sibcalls to match output_sibcall.
524 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
528 * config/rs6000/rs6000.c (struct machine_function): Add new field
530 (rs6000_get_separate_components): Init that field, use it.
531 (rs6000_components_for_bb): Use the field.
533 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
535 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
537 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
540 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
542 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
545 * config/s390/s390.c (s390_check_qrst_address): Check incoming
546 address against address_operand predicate.
547 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
549 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
551 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
552 parameters passed indirectly.
554 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
556 * config/i386/i386.md (*movdi_internal): Remove SSE4
557 alternative 18 (?r, *v). Update insn attributes.
558 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
559 Update insn attributes.
560 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
561 Update insn attributes.
562 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
563 alternative 1 (r, v). Remove isa attribute.
564 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
565 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
566 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
568 2017-05-23 Tom de Vries <tom@codesourcery.com>
570 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
573 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
575 * cgraphunit.c (symbol_table::process_new_functions): Update.
576 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
577 (inline_generate_summary): Rename to ...
578 (ipa_fn_summary_generate): ... this one.
579 (inline_read_summary): Rename to ...
580 (ipa_fn_summary_read): ... this one.
581 (inline_write_summary): Rename to ...
582 (ipa_fn_summary_write): ... this one.
583 (inline_free_summary): Rename to ...
584 (ipa_free_fn_summary): ... this one.
585 (pass_data_local_fn_summary, pass_local_fn_summary,
586 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
587 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
588 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
589 make_pass_ipa_fn_summary): New.
590 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
591 inline_write_summary, inline_free_summary): Remove.
592 (ipa_free_fn_summary) : New.
593 * ipa-inline.c (ipa_inline): Update.
594 (pass_ipa_inline): Do not generate summaries.
595 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
597 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
598 and add pass_ipa_fn_summary.
599 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
601 (make_pass_inline_parameters): Remove.
603 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
605 * omp-low.c (struct omp_context): Remove "default_kind" member.
608 * omp-offload.c (execute_oacc_device_lower): Remove the
609 parallelism dimensions function attributes for unparallelized
610 OpenACC kernels constructs.
612 2017-05-23 Martin Liska <mliska@suse.cz>
614 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
616 (cgraph_edge::make_speculative): Likewise.
617 (cgraph_edge::resolve_speculation): Likewise.
618 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
619 (cgraph_node::dump): Likewise.
620 * cgraph.h: Likewise.
621 * cgraphunit.c (analyze_functions): Likewise.
622 (symbol_table::compile): Likewise.
623 * ipa-cp.c (print_all_lattices): Likewise.
624 (determine_versionability): Likewise.
625 (initialize_node_lattices): Likewise.
626 (ipcp_verify_propagated_values): Likewise.
627 (estimate_local_effects): Likewise.
628 (update_profiling_info): Likewise.
629 (create_specialized_node): Likewise.
630 (perhaps_add_new_callers): Likewise.
631 (decide_about_value): Likewise.
632 (decide_whether_version_node): Likewise.
633 (identify_dead_nodes): Likewise.
634 (ipcp_store_bits_results): Likewise.
635 * ipa-devirt.c (dump_targets): Likewise.
636 (ipa_devirt): Likewise.
637 * ipa-icf.c (sem_item::dump): Likewise.
638 (sem_function::equals): Likewise.
639 (sem_variable::equals): Likewise.
640 (sem_item_optimizer::read_section): Likewise.
641 (sem_item_optimizer::execute): Likewise.
642 (congruence_class::dump): Likewise.
643 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
644 (dump_inline_summary): Likewise.
645 (estimate_node_size_and_time): Likewise.
646 (inline_analyze_function): Likewise.
647 * ipa-inline-transform.c (inline_call): Likewise.
648 * ipa-inline.c (report_inline_failed_reason): Likewise.
649 (want_early_inline_function_p): Likewise.
650 (edge_badness): Likewise.
651 (update_edge_key): Likewise.
652 (inline_small_functions): Likewise.
653 * ipa-profile.c (ipa_profile): Likewise.
654 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
655 (ipa_make_edge_direct_to_target): Likewise.
656 (remove_described_reference): Likewise.
657 (ipa_impossible_devirt_target): Likewise.
658 (propagate_controlled_uses): Likewise.
659 (ipa_print_node_params): Likewise.
660 (ipcp_transform_function): Likewise.
661 * ipa-pure-const.c (pure_const_read_summary): Likewise.
662 (propagate_pure_const): Likewise.
663 * ipa-reference.c (generate_summary): Likewise.
664 (read_write_all_from_decl): Likewise.
665 (propagate): Likewise.
666 (ipa_reference_read_optimization_summary): Likewise.
667 * ipa-utils.c (ipa_merge_profiles): Likewise.
668 * ipa.c (walk_polymorphic_call_targets): Likewise.
669 (symbol_table::remove_unreachable_nodes): Likewise.
670 (ipa_single_use): Likewise.
671 * passes.c (execute_todo): Likewise.
672 * predict.c (drop_profile): Likewise.
673 * symtab.c (symtab_node::get_dump_name): New function.
674 (symtab_node::dump_name): Likewise.
675 (symtab_node::dump_asm_name): Likewise.
676 (symtab_node::dump_references): Likewise.
677 (symtab_node::dump_referring): Likewise.
678 (symtab_node::dump_base): Likewise.
679 (symtab_node::debug_symtab): Likewise.
680 * tree-sra.c (convert_callers_for_node): Likewise.
681 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
682 * value-prof.c (init_node_map): Likewise.
684 2017-05-23 Martin Liska <mliska@suse.cz>
686 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
687 and symtab_node::debug_symtab to symbol_table::debug.
688 * cgraphunit.c (analyze_functions): Use the renamed function.
689 (symbol_table::compile): Likewise.
690 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
691 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
692 * passes.c (execute_todo): Likewise.
693 * symtab.c (symbol_table::dump): New function.
694 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
696 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
698 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
699 that nonconst implies exec.
701 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
703 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
704 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
705 (inline_edge_summary_vec): Turn into ...
706 (ipa_call_summaries): ... this one.
707 (redirect_to_unreachable, edge_set_predicate,
708 evaluate_properties_for_edge, inline_summary_alloc,
709 reset_ipa_call_summary, reset_inline_summary,
710 inline_summary_t::duplicate): Update.
711 (inline_edge_duplication_hook): Turn to ...
712 (ipa_call_summary_t::duplicate): ... this one.
713 (inline_edge_removal_hook): Turn to ...
714 (ipa_call_summary_t::remove): ... this one.
715 (dump_inline_edge_summary): Turn to ...
716 (dump_ipa_call_summary): ... this one.
717 (estimate_function_body_sizes): Update.
718 (inline_update_callee_summaries): Update.
719 (remap_edge_change_prob): Update.
720 (remap_edge_summaries): Update.
721 (inline_merge_summary): Update.
722 (do_estimate_edge_time): Update.
723 (inline_generate_summary): Update.
724 (inline_read_section): Update.
725 (inline_read_summary): Update.
726 (inline_free_summary): Update.
727 * ipa-inline.c (can_inline_edge_p): Update.
728 (compute_inlined_call_time): Update.
729 (want_inline_small_function_p): Update.
730 (edge_badness): Update.
731 (early_inliner): Update.
732 * ipa-inline.h (inline_edge_summary): Turn to ...
733 (ipa_call_summary): ... this one.
734 (ipa_call_summary_t): New class.
735 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
736 (ipa_call_summaries): New.
737 (inline_edge_summary): Remove.
738 (estimate_edge_growth): Update.
739 * ipa-profile.c (ipa_propagate_frequency_1): Update.
740 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
741 * ipa-split.c (execute_split_functions): Update.
742 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
744 2017-05-23 Tom de Vries <tom@codesourcery.com>
746 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
747 attributes): Document rdrand effective target.
749 2017-05-23 Tom de Vries <tom@codesourcery.com>
751 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
752 attributes): Sort alphabetically.
754 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
756 * config/avr/genmultilib.awk: Use gsub instead of gensub.
758 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
761 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
762 V2DF/V2DI splat into two separate patterns, one that handles
763 registers, and the other that only handles memory. Drop support
764 for splatting from a GPR on ISA 2.07 and then splitting the
765 splat into direct move and splat.
766 (vsx_splat_<mode>_reg): Likewise.
767 (vsx_splat_<mode>_mem): Likewise.
769 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
771 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
773 2017-05-22 Jakub Jelinek <jakub@redhat.com>
776 * omp-low.c (finish_taskreg_remap): New function.
777 (finish_taskreg_scan): If unit size of ctx->record_type
778 is non-constant, unshare the size expression and replace
779 decls in it with possible outer var refs.
782 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
783 GOVD_SHARED rather than GOVD_PRIVATE with it.
784 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
785 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
788 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
789 as last argument to build_outer_var_ref for pointer bases of array
792 2017-05-19 Martin Sebor <msebor@redhat.com>
794 * print-tree.c (print_node): Print DECL_READ_P flag.
796 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
798 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
799 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
800 * cgraph.c: Likewise.
801 * cgraphunit.c: Likewise.
802 * gengtype.c: Likewise.
803 * ipa-cp.c: Likewise.
804 * ipa-devirt.c: Likewise.
805 * ipa-icf.c: Likewise.
806 * ipa-predicate.c: Likewise.
807 * ipa-profile.c: Likewise.
808 * ipa-prop.c: Likewise.
809 * ipa-split.c: Likewise.
811 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
812 edge_predicate_pool, dump_inline_hints,
813 inline_summary::account_size_time, redirect_to_unreachable,
814 edge_set_predicate, set_hint_predicate,
815 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
816 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
817 inline_summary_t::remove, remap_hint_predicate_after_duplication,
818 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
819 ipa_call_summary_t::remove, initialize_growth_caches,
820 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
821 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
822 mark_modified, unmodified_parm_1, unmodified_parm,
823 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
824 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
825 compute_bb_predicates, will_be_nonconstant_expr_predicate,
826 will_be_nonconstant_predicate, record_modified_bb_info,
827 get_minimal_bb, record_modified, param_change_prob,
828 phi_result_unknown_predicate, predicate_for_phi_result,
829 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
830 estimate_function_body_sizes, compute_inline_parameters,
831 compute_inline_parameters_for_curren, pass_data_inline_parameters,
832 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
833 inline_update_callee_summaries, remap_edge_change_prob,
834 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
835 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
836 inline_analyze_function, inline_summary_t::insert,
837 inline_generate_summary, read_ipa_call_summary, inline_read_section,
838 inline_read_summary, write_ipa_call_summary, inline_write_summary,
839 inline_free_summary): Move to ipa-fnsummary.h
840 (predicate_t): Remove.
841 * ipa-fnsummary.c: New file.
842 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
843 (enum inline_hints_vals, inline_hints, agg_position_info,
844 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
845 inline_summaries, ipa_call_summary, ipa_call_summary_t,
846 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
847 dump_inline_summary, dump_inline_hints, inline_generate_summary,
848 inline_read_summary, inline_write_summary, inline_free_summary,
849 inline_analyze_function, initialize_inline_failed,
850 inline_merge_summary, inline_update_overall_summary,
851 compute_inline_parameters): Move to ipa-fnsummary.h
852 * ipa-fnsummary.h: New file.
853 * ipa-inline-transform.h: Include ipa-inline.h.
854 * ipa-inline.c: LIkewise.
856 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
858 * ipa-inline.c (edge_badness): Use inlined_time instead of
859 inline_summaries->get.
861 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
863 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
865 2017-05-22 Nathan Sidwell <nathan@acm.org>
867 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
868 (fdump-lang): Document 'raw' option.
869 * dumpfile.h (TDI_tu): Delete.
870 * dumpfile.c (dump_files): Remove translation-unit.
871 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
873 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
875 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
876 command option from $(AWK) call.
877 * config/avr/genmultilib.awk: Simplify and rewrite so that it
878 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
879 [FORMAT]: Remove handling of variable.
880 * config/avr/t-multilib: Regenerate.
882 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
884 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
886 (dump_inline_summary): Do not print self_time.
887 (estimate_function_body_sizes): Do not set self_time.
888 (compute_inline_parameters): Likewise.
889 (inline_read_section, inline_write_summary): Do not stream self_time.
890 * ipa-inline.h (inline_summary): Drop self_time.
892 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
894 * ipa-inline-analysis.c (account_size_time): Rename to ...
895 (inline_summary::account_size_time): ... this one.
896 (reset_ipa_call_summary): Turn to ...
897 (ipa_call_summary::reset): ... this one.
898 (reset_inline_summary): Turn to ...
899 (inline_summary::reset): ... this one.
900 (inline_summary_t::remove): Update.
901 (inline_summary_t::duplicate): Update.
902 (ipa_call_summary_t::remove): Update.
903 (dump_inline_summary): Update.
904 (estimate_function_body_sizes): Update.
905 (compute_inline_parameters): Update.
906 (estimate_node_size_and_time): Update.
907 (inline_merge_summary): Update.
908 (inline_update_overall_summary): Update.
909 (inline_read_section): Update.
910 (inline_write_summary): Update.
911 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
912 add account_size_time and reset member functions.
913 (ipa_call_summary): Add reset function.
914 * ipa-predicate.h (predicate::operator &): Constify.
916 2017-05-22 Richard Biener <rguenther@suse.de>
918 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
920 2017-05-19 Jason Merrill <jason@redhat.com>
922 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
924 2017-05-19 Marek Polacek <polacek@redhat.com>
927 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
928 TYPE_OVERFLOW_WRAPS checks.
930 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
932 * tree-core.h (enum omp_clause_default_kind): Add
933 "OMP_CLAUSE_DEFAULT_PRESENT".
934 * tree-pretty-print.c (dump_omp_clause): Handle it.
935 * gimplify.c (enum gimplify_omp_var_data): Add
936 "GOVD_MAP_FORCE_PRESENT".
937 (gimplify_adjust_omp_clauses_1): Map it to
938 "GOMP_MAP_FORCE_PRESENT".
939 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
941 * gimplify.c (oacc_default_clause): Clarify.
943 2017-05-19 Nathan Sidwell <nathan@acm.org>
945 LANG_HOOK_REGISTER_DUMPS
946 * toplev.c (general_init): Call register dump lang hook.
947 * doc/invoke.texi: Document -fdump-lang option family.
948 * dumpfile.c (dump_files): Remove class dump here.
949 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
950 * dumpfile.h (tree_dump_index): Remove TDI_class.
951 * langhooks-def.h (lhd_register_dumps): Declare.
952 (LANG_HOOKS_REGISTER_DUMPS): Define.
953 (LANG_HOOKS_INITIALIZER): Add it.
954 * langhooks.c (lhd_register_dumps): Define.
955 * langhooks.h (struct lang_hooks): Add register_dumps.
957 2017-05-19 Nathan Sidwell <nathan@acm.org>
959 * context.h (context::set_passes): New.
960 * context.c (context::context): Do not create pass manager.
961 * toplev.c (general_init): Create pass manager here.
963 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
965 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
966 use this splitter if two add or or instructions would also work for
967 the constant we want to generate.
969 2017-05-19 Richard Biener <rguenther@suse.de>
972 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
973 predicate evaluation.
975 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
977 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
979 * ipa-inline.c (want_inline_small_function_p): Do not cast to
982 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
984 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
985 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
986 (inline_edge_summary_vec): Turn into ...
987 (ipa_call_summaries): ... this one.
988 (redirect_to_unreachable, edge_set_predicate,
989 evaluate_properties_for_edge, inline_summary_alloc,
990 reset_ipa_call_summary, reset_inline_summary,
991 inline_summary_t::duplicate): Update.
992 (inline_edge_duplication_hook): Turn to ...
993 (ipa_call_summary_t::duplicate): ... this one.
994 (inline_edge_removal_hook): Turn to ...
995 (ipa_call_summary_t::remove): ... this one.
996 (dump_inline_edge_summary): Turn to ...
997 (dump_ipa_call_summary): ... this one.
998 (estimate_function_body_sizes): Update.
999 (inline_update_callee_summaries): Update.
1000 (remap_edge_change_prob): Update.
1001 (remap_edge_summaries): Update.
1002 (inline_merge_summary): Update.
1003 (do_estimate_edge_time): Update.
1004 (inline_generate_summary): Update.
1005 (inline_read_section): Update.
1006 (inline_read_summary): Update.
1007 (inline_free_summary): Update.
1008 * ipa-inline.c (can_inline_edge_p): Update.
1009 (compute_inlined_call_time): Update.
1010 (want_inline_small_function_p): Update.
1011 (edge_badness): Update.
1012 (early_inliner): Update.
1013 * ipa-inline.h (inline_edge_summary): Turn to ...
1014 (ipa_call_summary): ... this one.
1015 (ipa_call_summary_t): New class.
1016 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
1017 (ipa_call_summaries): New.
1018 (inline_edge_summary): Remove.
1019 (estimate_edge_growth): Update.
1020 * ipa-profile.c (ipa_propagate_frequency_1): Update.
1021 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1022 * ipa-split.c (execute_split_functions): Update.
1023 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
1025 2017-05-19 Richard Biener <rguenther@suse.de>
1028 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
1030 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
1032 * config/rs6000/rs6000.c (struct machine_function): Add field
1033 fpr_is_wrapped_separately.
1034 (rs6000_get_separate_components): Use 64 components. Handle the
1036 (rs6000_components_for_bb): Handle the FPR components.
1037 (rs6000_emit_prologue_components): Handle the FPR components.
1038 (rs6000_emit_epilogue_components): Handle the FPR components.
1039 (rs6000_set_handled_components): Handle the FPR components.
1040 (rs6000_emit_prologue): Don't output prologue code for those FPRs
1041 that are already separately shrink-wrapped.
1042 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
1043 that are already separately shrink-wrapped.
1045 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1048 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
1051 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
1052 (define_peephole2 for Altivec d-form load): Add peepholes to catch
1053 cases where the register allocator uses a move and an offsettable
1054 memory operation to/from a FPR register on ISA 2.06/2.07.
1055 (define_peephole2 for Altivec d-form store): Likewise.
1057 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
1060 * config/i386/mmx.md (*mov<mode>_internal): Enable
1061 alternatives 11, 12, 13 and 14 also for 32bit targets.
1062 Remove alternatives 15, 16, 17 and 18.
1063 * config/i386/sse.md (vec_concatv2di): Change
1064 alternative (!x, *y) to (x, ?!*Yn).
1066 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
1068 * dumpfile.h (enum dump_kind): Remove stray comma.
1070 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
1072 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
1073 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
1074 predicate::num_conditions
1075 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
1076 (CHANGED): turn into predicate::changed.
1077 (agg_position_info): Move to ipa-predicate.h
1078 (add_condition, predicate::add_clause, predicate::operator &=,
1079 predicate::or_with, predicate::evaluate, predicate::probability,
1080 dump_condition, dump_clause, predicate::dump,
1081 predicate::remap_after_duplication, predicate::remap_after_inlining,
1082 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
1083 (evaluate_conditions_for_known_args): Update.
1084 (set_cond_stmt_execution_predicate): Update.
1085 * ipa-inline.h: Include ipa-predicate.h
1086 (condition, inline_param_summary, conditions, agg_position_info,
1087 predicate): Move to ipa-predicate.h
1088 * ipa-predicate.c: New file.
1089 * ipa-predicate.h: New file.
1091 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
1093 * final.c (leaf_function_p): Check we are not in a sequence.
1095 2017-05-18 Martin Liska <mliska@suse.cz>
1097 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
1098 * dumpfile.c (dump_register): Use new enum dump_kind.
1099 (get_dump_file_name): Likewise.
1100 (dump_enable_all): Likewise.
1101 (dump_switch_p_1): Likewise.
1102 (enable_rtl_dump_file): Remove usage of TDF_RTL.
1103 * dumpfile.h (enum dump_kind): New enum type.
1104 (struct dump_file_info): Create constructor and
1105 format fields and comments.
1106 * passes.c (pass_manager::register_one_dump_file):
1108 * statistics.c (statistics_early_init): Likewise.
1109 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
1110 TDF_TREE with TDF_SLIM.
1111 (gather_memory_references_ref): Likewise.
1113 2017-05-18 Martin Liska <mliska@suse.cz>
1115 * vec.h (struct vnull): Use it.
1117 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
1119 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
1120 (true_predicate, false_predicate, true_predicate_p,
1121 false_predicate_p): Remove.
1122 (single_cond_predicate, not_inlined_predicate): Turn to member function
1124 (add_condition): Update.
1125 (add_clause): Turn to...
1126 (predicate::add_clause): ... this one; update; allow passing NULL
1128 (and_predicates): Turn to ...
1129 (predicate::operator &=): ... this one.
1130 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
1131 (or_predicates): Turn to ...
1132 (predicate::or_with): ... this one.
1133 (evaluate_predicate): Turn to ...
1134 (predicate::evaluate): ... this one.
1135 (predicate_probability): Turn to ...
1136 (predicate::probability): ... this one.
1137 (dump_condition): Update.
1138 (dump_predicate): Turn to ...
1139 (predicate::dump): ... this one.
1140 (account_size_time): Update.
1141 (edge_set_predicate): Update.
1142 (set_hint_predicate): UPdate.
1143 (evaluate_conditions_for_known_args): Update.
1144 (evaluate_properties_for_edge): Update.
1145 (remap_predicate_after_duplication): Turn to...
1146 (predicate::remap_after_duplication): ... this one.
1147 (remap_hint_predicate_after_duplication): Update.
1148 (inline_summary_t::duplicate): UPdate.
1149 (dump_inline_edge_summary): Update.
1150 (dump_inline_summary): Update.
1151 (set_cond_stmt_execution_predicate): Update.
1152 (set_switch_stmt_execution_predicate): Update.
1153 (compute_bb_predicates): Update.
1154 (will_be_nonconstant_expr_predicate): Update.
1155 (will_be_nonconstant_predicate): Update.
1156 (phi_result_unknown_predicate): Update.
1157 (predicate_for_phi_result): Update.
1158 (array_index_predicate): Update.
1159 (estimate_function_body_sizes): Update.
1160 (estimate_node_size_and_time): Update.
1161 (estimate_ipcp_clone_size_and_time): Update.
1162 (remap_predicate): Rename to ...
1163 (predicate::remap_after_inlining): ... this one.
1164 (remap_hint_predicate): Update.
1165 (inline_merge_summary): Update.
1166 (inline_update_overall_summary): Update.
1167 (estimate_size_after_inlining): Update.
1168 (read_predicate): Rename to ...
1169 (predicate::stream_in): ... this one.
1170 (read_inline_edge_summary): Update.
1171 (write_predicate): Rename to ...
1172 (predicate::stream_out): ... this one.
1173 (write_inline_edge_summary): Update.
1174 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
1175 (clause_t): Turn to uint32_t
1176 (predicate): Turn to class; implement constructor and operators
1178 (size_time_entry): Update.
1179 (inline_summary): Update.
1180 (inline_edge_summary): Update.
1182 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
1184 * fold-const.c (fold_binary_loc): Move transformation...
1185 * match.pd (C - X CMP X): ... here.
1187 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
1189 * config/sparc/sparc.c (sparc_option_override): Set function
1190 alignment for -mcpu=niagara7 to 64 to match the I$ line.
1191 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
1193 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
1195 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
1197 2017-05-18 Marek Polacek <polacek@redhat.com>
1200 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
1201 (pass_ubsan::execute): Call gimple_assign_single_p instead of
1202 gimple_assign_load_p.
1204 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1207 * real.c (do_compare): Give decimal_do_compare preference over
1208 comparing just the signs.
1210 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
1212 * doc/md.texi (Canonicalization of Instructions): Describe the
1213 canonical form of instructions that inherently set a condition
1216 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
1219 * tree-cfg.c: Move deletion of unreachable case statements to after
1220 the merging of consecutive case labels.
1222 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1224 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
1225 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
1226 restoring of callee-saved registers.
1228 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
1230 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
1231 * config/visium/visium.c (single_set_and_flags): Likewise.
1232 * config/visium/visium.md (Substitutions): Likewise.
1234 2017-05-17 Martin Liska <mliska@suse.cz>
1236 * cfg.c: Introduce dump_flags_t type and
1237 use it instead of int type.
1239 * cfghooks.c: Likewise.
1240 * cfghooks.h (struct cfg_hooks): Likewise.
1241 * cfgrtl.c: Likewise.
1242 * cfgrtl.h: Likewise.
1243 * cgraph.c (cgraph_node::get_body): Likewise.
1244 * coretypes.h: Likewise.
1245 * domwalk.c: Likewise.
1246 * domwalk.h: Likewise.
1247 * dumpfile.c (struct dump_option_value_info): Likewise.
1248 (dump_enable_all): Likewise.
1249 (dump_switch_p_1): Likewise.
1250 (opt_info_switch_p): Likewise.
1251 * dumpfile.h (enum tree_dump_index): Likewise.
1252 (struct dump_file_info): Likewise.
1253 * genemit.c: Likewise.
1254 * generic-match-head.c: Likewise.
1255 * gengtype.c (open_base_files): Likewise.
1256 * gimple-pretty-print.c: Likewise.
1257 * gimple-pretty-print.h: Likewise.
1258 * graph.c (print_graph_cfg): Likewise.
1259 * graphite-scop-detection.c (dot_all_sese): Likewise.
1260 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
1261 * loop-unroll.c (report_unroll): Likewise.
1262 * passes.c (pass_manager::register_one_dump_file): Likewise.
1263 * print-tree.c: Likewise.
1264 * statistics.c: Likewise.
1265 * tree-cfg.c: Likewise.
1266 * tree-cfg.h: Likewise.
1267 * tree-dfa.c: Likewise.
1268 * tree-dfa.h: Likewise.
1269 * tree-dump.c (dump_function): Likewise.
1270 * tree-dump.h (struct dump_info): Likewise.
1271 * tree-pretty-print.c: Likewise.
1272 * tree-pretty-print.h: Likewise.
1273 * tree-ssa-live.c: Likewise.
1274 * tree-ssa-live.h: Likewise.
1275 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1276 * tree-vect-loop.c: Likewise.
1277 * tree-vect-slp.c: Likewise.
1279 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
1280 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1282 PR tree-optimization/80457
1283 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
1284 of all arguments to a statement as scalar_to_vec operations.
1285 (vectorizable_call): Adjust call to vect_model_simple_cost for
1287 (vectorizable_conversion): Likewise.
1288 (vectorizable_assignment): Likewise.
1289 (vectorizable_shift): Likewise.
1290 (vectorizable_operation): Likewise.
1291 (vectorizable_comparison): Likewise.
1292 (vect_is_simple_cond): Record the def types for operands.
1293 (vectorizable_condition): Likewise, call vect_model_simple_cost.
1294 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
1295 for statement argument count.
1297 2017-05-16 Carl Love <cel@us.ibm.com>
1299 * config/rs6000/rs6000-c: Add support for built-in functions
1300 vector unsigned long long vec_bperm (vector unsigned long long,
1301 vector unsigned char)
1302 vector signed long long vec_mule (vector signed int,
1304 vector unsigned long long vec_mule (vector unsigned int,
1305 vector unsigned int)
1306 vector signed long long vec_mulo (vector signed int,
1308 vector unsigned long long vec_mulo (vector unsigned int,
1309 vector unsigned int)
1310 vector signed char vec_sldw (vector signed char,
1313 vector unsigned char vec_sldw (vector unsigned char,
1314 vector unsigned char,
1316 vector signed short vec_sldw (vector signed short,
1317 vector signed short,
1319 vector unsigned short vec_sldw (vector unsigned short,
1320 vector unsigned short,
1322 vector signed int vec_sldw (vector signed int,
1325 vector unsigned int vec_sldw (vector unsigned int,
1326 vector unsigned int,
1328 vector signed long long vec_sldw (vector signed long long,
1329 vector signed long long,
1331 vector unsigned long long vec_sldw (vector unsigned long long,
1332 vector unsigned long long,
1334 * config/rs6000/rs6000-c: Add support for built-in functions
1335 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
1336 * config/rs6000/altivec.h: Add defintion for vec_sldw.
1337 * doc/extend.texi: Update the built-in documentation for the
1338 new built-in functions.
1340 2017-05-16 Marek Polacek <polacek@redhat.com>
1344 * tree.c (save_expr): Don't fold the expression.
1346 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
1348 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
1349 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
1350 and (?*y,m). Update insn attributes.
1352 2017-05-16 Martin Liska <mliska@suse.cz>
1354 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
1355 flags argument of print_gimple_stmt, print_gimple_expr,
1356 print_generic_stmt and print_generic_expr.
1357 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1358 * coretypes.h: Likewise.
1359 * except.c (dump_eh_tree): Likewise.
1360 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1361 * gimple-pretty-print.h: Likewise.
1362 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
1363 (backprop::push_to_worklist): Likewise.
1364 (backprop::pop_from_worklist): Likewise.
1365 (backprop::process_use): Likewise.
1366 (backprop::intersect_uses): Likewise.
1367 (note_replacement): Likewise.
1368 * gimple-ssa-store-merging.c
1369 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
1370 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1371 (pass_store_merging::execute): Likewise.
1372 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
1373 (ssa_base_cand_dump_callback): Likewise.
1374 (dump_incr_vec): Likewise.
1375 (replace_refs): Likewise.
1376 (replace_mult_candidate): Likewise.
1377 (create_add_on_incoming_edge): Likewise.
1378 (create_phi_basis): Likewise.
1379 (insert_initializers): Likewise.
1380 (all_phi_incrs_profitable): Likewise.
1381 (introduce_cast_before_cand): Likewise.
1382 (replace_one_candidate): Likewise.
1383 * gimplify.c (gimplify_expr): Likewise.
1384 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
1385 (set_rename): Likewise.
1386 (rename_uses): Likewise.
1387 (copy_loop_phi_nodes): Likewise.
1388 (add_close_phis_to_merge_points): Likewise.
1389 (copy_loop_close_phi_args): Likewise.
1390 (copy_cond_phi_args): Likewise.
1391 (graphite_copy_stmts_from_block): Likewise.
1392 (translate_pending_phi_nodes): Likewise.
1393 * graphite-poly.c (print_pdr): Likewise.
1394 (dump_gbb_cases): Likewise.
1395 (dump_gbb_conditions): Likewise.
1396 (print_scop_params): Likewise.
1397 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
1398 (build_cross_bb_scalars_use): Likewise.
1399 (gather_bbs::before_dom_children): Likewise.
1400 * hsa-dump.c (dump_hsa_immed): Likewise.
1401 * ipa-cp.c (print_ipcp_constant_value): Likewise.
1402 (get_replacement_map): Likewise.
1403 * ipa-inline-analysis.c (dump_condition): Likewise.
1404 (estimate_function_body_sizes): Likewise.
1405 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
1406 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
1407 * ipa-prop.c (ipa_dump_param): Likewise.
1408 (ipa_print_node_jump_functions_for_edge): Likewise.
1409 (ipa_modify_call_arguments): Likewise.
1410 (ipa_modify_expr): Likewise.
1411 (ipa_dump_param_adjustments): Likewise.
1412 (ipa_dump_agg_replacement_values): Likewise.
1413 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1414 * ipa-pure-const.c (check_stmt): Likewise.
1415 (pass_nothrow::execute): Likewise.
1416 * ipa-split.c (execute_split_functions): Likewise.
1417 * omp-offload.c (dump_oacc_loop_part): Likewise.
1418 (dump_oacc_loop): Likewise.
1419 * trans-mem.c (tm_log_emit): Likewise.
1420 (tm_memopt_accumulate_memops): Likewise.
1421 (dump_tm_memopt_set): Likewise.
1422 (dump_tm_memopt_transform): Likewise.
1423 * tree-cfg.c (gimple_verify_flow_info): Likewise.
1424 (print_loop): Likewise.
1425 * tree-chkp-opt.c (chkp_print_addr): Likewise.
1426 (chkp_gather_checks_info): Likewise.
1427 (chkp_get_check_result): Likewise.
1428 (chkp_remove_check_if_pass): Likewise.
1429 (chkp_use_outer_bounds_if_possible): Likewise.
1430 (chkp_reduce_bounds_lifetime): Likewise.
1431 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
1432 (chkp_mark_completed_bounds): Likewise.
1433 (chkp_register_incomplete_bounds): Likewise.
1434 (chkp_mark_invalid_bounds): Likewise.
1435 (chkp_maybe_copy_and_register_bounds): Likewise.
1436 (chkp_build_returned_bound): Likewise.
1437 (chkp_get_bound_for_parm): Likewise.
1438 (chkp_build_bndldx): Likewise.
1439 (chkp_get_bounds_by_definition): Likewise.
1440 (chkp_generate_extern_var_bounds): Likewise.
1441 (chkp_get_bounds_for_decl_addr): Likewise.
1442 * tree-chrec.c (chrec_apply): Likewise.
1443 * tree-data-ref.c (dump_data_reference): Likewise.
1444 (dump_subscript): Likewise.
1445 (dump_data_dependence_relation): Likewise.
1446 (analyze_overlapping_iterations): Likewise.
1447 * tree-inline.c (expand_call_inline): Likewise.
1448 (tree_function_versioning): Likewise.
1449 * tree-into-ssa.c (dump_defs_stack): Likewise.
1450 (dump_currdefs): Likewise.
1451 (dump_names_replaced_by): Likewise.
1452 (dump_update_ssa): Likewise.
1453 (update_ssa): Likewise.
1454 * tree-object-size.c (pass_object_sizes::execute): Likewise.
1455 * tree-parloops.c (build_new_reduction): Likewise.
1456 (try_create_reduction_list): Likewise.
1457 (ref_conflicts_with_region): Likewise.
1458 (oacc_entry_exit_ok_1): Likewise.
1459 (oacc_entry_exit_single_gang): Likewise.
1460 * tree-pretty-print.h: Likewise.
1461 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
1462 (get_scalar_evolution): Likewise.
1463 (add_to_evolution): Likewise.
1464 (get_loop_exit_condition): Likewise.
1465 (analyze_evolution_in_loop): Likewise.
1466 (analyze_initial_condition): Likewise.
1467 (analyze_scalar_evolution): Likewise.
1468 (instantiate_scev): Likewise.
1469 (number_of_latch_executions): Likewise.
1470 (gather_chrec_stats): Likewise.
1471 (final_value_replacement_loop): Likewise.
1472 (scev_const_prop): Likewise.
1473 * tree-sra.c (dump_access): Likewise.
1474 (disqualify_candidate): Likewise.
1475 (create_access): Likewise.
1477 (maybe_add_sra_candidate): Likewise.
1478 (create_access_replacement): Likewise.
1479 (analyze_access_subtree): Likewise.
1480 (analyze_all_variable_accesses): Likewise.
1481 (sra_modify_assign): Likewise.
1482 (initialize_constant_pool_replacements): Likewise.
1483 (find_param_candidates): Likewise.
1484 (decide_one_param_reduction): Likewise.
1485 (replace_removed_params_ssa_names): Likewise.
1486 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1487 * tree-ssa-copy.c (dump_copy_of): Likewise.
1488 (copy_prop_visit_cond_stmt): Likewise.
1489 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
1490 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
1491 (record_equivalences_from_stmt): Likewise.
1492 * tree-ssa-dse.c (compute_trims): Likewise.
1493 (delete_dead_call): Likewise.
1494 (delete_dead_assignment): Likewise.
1495 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
1496 (forward_propagate_into_cond): Likewise.
1497 (pass_forwprop::execute): Likewise.
1498 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1499 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
1501 (move_computations_worker): Likewise.
1502 (execute_sm): Likewise.
1503 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
1504 (remove_exits_and_undefined_stmts): Likewise.
1505 (remove_redundant_iv_tests): Likewise.
1506 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
1507 (adjust_iv_update_pos): Likewise.
1508 * tree-ssa-math-opts.c (bswap_replace): Likewise.
1509 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
1510 (value_replacement): Likewise.
1511 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1512 * tree-ssa-pre.c (print_pre_expr): Likewise.
1513 (get_representative_for): Likewise.
1514 (create_expression_by_pieces): Likewise.
1515 (insert_into_preds_of_block): Likewise.
1516 (eliminate_insert): Likewise.
1517 (eliminate_dom_walker::before_dom_children): Likewise.
1518 (eliminate): Likewise.
1519 (remove_dead_inserted_code): Likewise.
1520 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1521 * tree-ssa-reassoc.c (get_rank): Likewise.
1522 (eliminate_duplicate_pair): Likewise.
1523 (eliminate_plus_minus_pair): Likewise.
1524 (eliminate_not_pairs): Likewise.
1525 (undistribute_ops_list): Likewise.
1526 (eliminate_redundant_comparison): Likewise.
1527 (update_range_test): Likewise.
1528 (optimize_range_tests_var_bound): Likewise.
1529 (optimize_vec_cond_expr): Likewise.
1530 (rewrite_expr_tree): Likewise.
1531 (rewrite_expr_tree_parallel): Likewise.
1532 (linearize_expr): Likewise.
1533 (break_up_subtract): Likewise.
1534 (linearize_expr_tree): Likewise.
1535 (attempt_builtin_powi): Likewise.
1536 (attempt_builtin_copysign): Likewise.
1537 (transform_stmt_to_copy): Likewise.
1538 (transform_stmt_to_multiply): Likewise.
1539 (dump_ops_vector): Likewise.
1540 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
1541 (print_scc): Likewise.
1542 (set_ssa_val_to): Likewise.
1543 (visit_reference_op_store): Likewise.
1544 (visit_use): Likewise.
1545 (sccvn_dom_walker::before_dom_children): Likewise.
1546 (run_scc_vn): Likewise.
1547 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
1549 (expr_hash_elt::print): Likewise.
1550 (const_and_copies::pop_to_marker): Likewise.
1551 (const_and_copies::record_const_or_copy_raw): Likewise.
1552 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
1553 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
1554 (dump_predicates): Likewise.
1555 (find_uninit_use): Likewise.
1556 (warn_uninitialized_phi): Likewise.
1557 (pass_late_warn_uninitialized::execute): Likewise.
1558 * tree-ssa.c (verify_vssa): Likewise.
1559 (verify_ssa): Likewise.
1560 (maybe_optimize_var): Likewise.
1561 * tree-vrp.c (dump_value_range): Likewise.
1562 (dump_all_value_ranges): Likewise.
1563 (dump_asserts_for): Likewise.
1564 (register_edge_assert_for_2): Likewise.
1565 (vrp_visit_cond_stmt): Likewise.
1566 (vrp_visit_switch_stmt): Likewise.
1567 (vrp_visit_stmt): Likewise.
1568 (vrp_visit_phi_node): Likewise.
1569 (simplify_cond_using_ranges_1): Likewise.
1570 (fold_predicate_in): Likewise.
1571 (evrp_dom_walker::before_dom_children): Likewise.
1572 (evrp_dom_walker::push_value_range): Likewise.
1573 (evrp_dom_walker::pop_value_range): Likewise.
1574 (execute_early_vrp): Likewise.
1576 2017-05-16 Richard Biener <rguenther@suse.de>
1578 * dwarf2out.c (loc_list_from_tree_1): Do not create
1579 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
1581 2017-05-16 Richard Biener <rguenther@suse.de>
1583 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
1585 (note_variable_value_in_expr): If we resolved the decl ref
1586 do not push to the stack.
1588 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
1590 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
1591 operations in fast-math mode.
1592 (vaddq_f16): Likewise.
1593 (vmul_f16): Likewise.
1594 (vmulq_f16): Likewise.
1595 (vsub_f16): Likewise.
1596 (vsubq_f16): Likewise.
1597 * config/arm/neon.md (add<mode>3): New.
1599 (fma:<VH:mode>3): New. Also remove outdated comment.
1602 2017-05-16 Martin Liska <mliska@suse.cz>
1606 * ipa-devirt.c (warn_types_mismatch): Fix typo.
1607 (odr_types_equivalent_p): Likewise.
1609 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
1611 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
1613 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
1616 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
1617 non-interunit SSE move alternatives with '?'.
1618 (zero-extendsidi peephole2): New peephole to skip intermediate
1619 general register in SSE zero-extend sequence.
1621 2017-05-15 Jeff Law <law@redhat.com>
1623 * reorg.c (relax_delay_slots): Create a new variable to hold
1624 the temporary target rather than clobbering TARGET_LABEL.
1626 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
1627 missing argument to extract_bit_field call.
1628 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1630 2017-05-15 Martin Liska <mliska@suse.cz>
1633 * gcc.c (process_command): Do not allow empty argument of -o option.
1635 2017-05-15 Renlin Li <renlin.li@arm.com>
1637 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
1638 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
1639 * config/aarch64/constraints.md (Usf): Add long call check.
1640 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
1641 (call_value): Likewise.
1642 (sibcall): Likewise.
1643 (sibcall_value): Likewise.
1645 (call_value_insn): New.
1646 (sibcall_insn): Update rtx pattern.
1647 (sibcall_value_insn): Likewise.
1648 (call_internal): Remove.
1649 (call_value_internal): Likewise.
1650 (sibcall_internal): Likewise.
1651 (sibcall_value_internal): Likewise.
1652 (call_reg): Likewise.
1653 (call_symbol): Likewise.
1654 (call_value_reg): Likewise.
1655 (call_value_symbol): Likewise.
1657 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
1660 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
1662 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
1664 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
1665 compatible with CCGOCmode and with CCZmode.
1667 2017-05-14 Martin Sebor <msebor@redhat.com>
1670 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
1671 (gimple_fold_builtin_snprintf): Same.
1672 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
1673 (gimple_fold_builtin_snprintf): Same.
1674 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
1676 (is_call_safe): New function.
1677 (try_substitute_return_value): Call it.
1678 (try_simplify_call): New function.
1679 (pass_sprintf_length::handle_gimple_call): Call it.
1681 2017-05-14 Martin Sebor <msebor@redhat.com>
1684 * builtins.c (expand_builtin_stpncpy): Simplify.
1686 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
1688 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
1689 * config/i386/i386.h
1690 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
1691 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
1692 (struct machine_function): Add new members call_ms2sysv,
1693 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
1694 (struct machine_frame_state): New fields sp_realigned and
1695 sp_realigned_offset.
1696 * config/i386/i386.c
1697 (enum xlogue_stub): New enum.
1698 (enum xlogue_stub_sets): New enum.
1699 (class xlogue_layout): New class.
1700 (struct ix86_frame): New fields stack_realign_allocate_offset,
1701 stack_realign_offset and outlined_save_offset. Modify comments to
1702 detail stack layout when using out-of-line stubs.
1703 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
1704 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
1705 -mcall-ms2sysv-xlogues.
1706 (stub_managed_regs): New static variable.
1707 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
1708 registers managed by out-of-line stub.
1709 (disable_call_ms2sysv_xlogues): New function.
1710 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
1711 m->call_ms2sysv when appropriate and compute frame layout for
1713 (sp_valid_at, fp_valid_at): New inline functions.
1714 (choose_basereg): New function.
1715 (choose_baseaddr): Add align parameter, use choose_basereg and modify
1717 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
1718 Use align parameter of choose_baseaddr to generated aligned SSE movs
1720 (pro_epilogue_adjust_stack): Modify to track
1721 machine_frame_state::sp_realigned.
1722 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
1723 (ix86_nsaved_sseregs): Likewise.
1724 (ix86_emit_save_regs): Likewise.
1725 (ix86_emit_save_regs_using_mov): Likewise.
1726 (ix86_emit_save_sse_regs_using_mov): Likewise.
1727 (get_scratch_register_on_entry): Likewise.
1728 (gen_frame_set): New function.
1729 (gen_frame_load): Likewise.
1730 (gen_frame_store): Likewise.
1731 (emit_outlined_ms2sysv_save): Likewise.
1732 (emit_outlined_ms2sysv_restore): Likewise.
1733 (ix86_expand_prologue): Modify stack re-alignment code and call
1734 emit_outlined_ms2sysv_save when appropriate.
1735 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
1736 parameter rtx_insn *insn, which allows the function to be used to only
1738 (ix86_expand_epilogue): Modify validity checks of frame and stack
1739 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
1740 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
1741 * config/i386/predicates.md
1742 (save_multiple): New predicate.
1743 (restore_multiple): Likewise.
1744 * config/i386/sse.md
1745 (save_multiple<mode>): New pattern.
1746 (save_multiple_realign<mode>): Likewise.
1747 (restore_multiple<mode>): Likewise.
1748 (restore_multiple_and_return<mode>): Likewise.
1749 (restore_multiple_leave_return<mode>): Likewise.
1750 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
1752 2017-05-14 Julia Koval <julia.koval@intel.com>
1754 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
1755 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
1756 (__builtin_ia32_xsetbv): New builtins.
1757 * config/i386/i386.c (ix86_expand_special_args_builtin):
1759 (ix86_expand_builtin): Special expand for new intrinsics.
1760 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
1761 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
1762 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
1764 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1766 * cfganal.c (inverted_post_order_compute): Change argument type
1768 * cfganal.h (inverted_post_order_compute): Adjust prototype.
1769 * df-core.c (rest_of_handle_df_initialize): Adjust.
1770 (rest_of_handle_df_finish): Likewise.
1771 (df_analyze_1): Likewise.
1772 (df_analyze): Likewise.
1773 (loop_inverted_post_order_compute): Change argument to be a vec *.
1774 (df_analyze_loop): Adjust.
1775 (df_get_n_blocks): Likewise.
1776 (df_get_postorder): Likewise.
1777 * df.h (struct df_d): Change field to be a vec.
1778 * lcm.c (compute_laterin): Adjust.
1779 (compute_available): Likewise.
1780 * lra-lives.c (lra_create_live_ranges_1): Likewise.
1781 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1782 * tree-ssa-pre.c (compute_antic): Likewise.
1784 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1786 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
1787 (depth_first_search::depth_first_search): Change structure init
1788 function to this constructor.
1789 (depth_first_search::add_bb): Rename function to this member.
1790 (depth_first_search::execute): Likewise.
1791 (flow_dfs_compute_reverse_finish): Adjust.
1793 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1795 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
1796 (longest_simple_path): Likewise.
1797 * shrink-wrap.c (spread_components): Likewise.
1798 (disqualify_problematic_components): Likewise.
1799 (emit_common_heads_for_components): Likewise.
1800 (emit_common_tails_for_components): Likewise.
1801 (insert_prologue_epilogue_for_components): Likewise.
1803 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1805 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
1808 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1810 * df-core.c (df_set_blocks): Start using auto_bitmap.
1811 (df_compact_blocks): Likewise.
1812 * df-problems.c (df_rd_confluence_n): Likewise.
1813 * df-scan.c (df_insn_rescan_all): Likewise.
1814 (df_process_deferred_rescans): Likewise.
1815 (df_update_entry_block_defs): Likewise.
1816 (df_update_exit_block_uses): Likewise.
1817 (df_entry_block_bitmap_verify): Likewise.
1818 (df_exit_block_bitmap_verify): Likewise.
1819 (df_scan_verify): Likewise.
1820 * lra-constraints.c (lra_constraints): Likewise.
1821 (undo_optional_reloads): Likewise.
1822 (lra_undo_inheritance): Likewise.
1823 * lra-remat.c (calculate_gen_cands): Likewise.
1824 (do_remat): Likewise.
1825 * lra-spills.c (assign_spill_hard_regs): Likewise.
1826 (spill_pseudos): Likewise.
1827 * tree-ssa-pre.c (bitmap_set_and): Likewise.
1828 (bitmap_set_subtract_values): Likewise.
1830 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1832 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
1833 management with auto_bitmap.
1834 (fix_inter_tick): Likewise.
1835 (fix_recovery_deps): Likewise.
1836 * ira.c (add_store_equivs): Likewise.
1837 (find_moveable_pseudos): Likewise.
1838 (split_live_ranges_for_shrink_wrap): Likewise.
1839 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
1840 (rtx_reuse_manager::seen_def_p): Likewise.
1841 (rtx_reuse_manager::set_seen_def): Likewise.
1842 * print-rtl.h (class rtx_reuse_manager): Likewise.
1844 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1846 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
1848 (migrate_btr_def): Likewise.
1849 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
1850 * df-core.c (loop_post_order_compute): Likewise.
1851 (loop_inverted_post_order_compute): Likewise.
1852 * hsa-common.h: Likewise.
1853 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
1854 * init-regs.c (initialize_uninitialized_regs): Likewise.
1855 * ipa-inline.c (resolve_noninline_speculation): Likewise.
1856 (inline_small_functions): Likewise.
1857 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
1858 * ira.c (combine_and_move_insns): Likewise.
1859 (build_insn_chain): Likewise.
1860 * loop-invariant.c (find_invariants): Likewise.
1861 * lower-subreg.c (propagate_pseudo_copies): Likewise.
1862 * predict.c (tree_predict_by_opcode): Likewise.
1863 (predict_paths_leading_to): Likewise.
1864 (predict_paths_leading_to_edge): Likewise.
1865 (estimate_loops_at_level): Likewise.
1866 (estimate_loops): Likewise.
1867 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1868 (spread_components): Likewise.
1869 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
1870 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
1871 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1872 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
1873 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
1874 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1875 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1876 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
1877 (mark_threaded_blocks): Likewise.
1878 (thread_through_all_blocks): Likewise.
1879 * tree-ssa.c (verify_ssa): Likewise.
1880 (execute_update_addresses_taken): Likewise.
1881 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
1883 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1885 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
1887 (post_order_compute): Likewise.
1888 (inverted_post_order_compute): Likewise.
1889 (pre_and_rev_post_order_compute_fn): Likewise.
1891 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1893 * genrecog.c (int_set::int_set): Explicitly construct our
1894 auto_vec base class.
1895 * vec.h (auto_vec::auto_vec): New constructor.
1897 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1899 * bitmap.h (class auto_bitmap): New constructor taking
1900 bitmap_obstack * argument.
1902 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1904 * bitmap.h (class auto_bitmap): Change type of m_bits to
1905 bitmap_head, and adjust ctor / dtor and member operators.
1907 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
1909 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
1910 when returned register mode doesn't match original mode.
1912 2017-05-12 Jeff Law <law@redhat.com>
1913 Jakub Jelinek <jakub@redhat.com>
1915 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
1916 we look for cc setter after the compare-elim changes.
1917 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
1918 within the vector to match what compare-elim now expects.
1919 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
1920 (xorsi3_flags, one_cmplsi2_flags): Likewise.
1922 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
1923 after the compare-elim changes.
1924 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
1925 the vector to match what compare-elim now expects.
1926 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
1927 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
1928 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
1929 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
1930 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
1932 * config/visium/visium.c (single_set_and_flags): Fix where
1933 we look for cc setter after the compare-elim changes.
1934 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
1935 with the vector to match what compare-elim now expects.
1936 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
1937 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
1938 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
1939 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
1940 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
1941 (neg<mode>2_insn_set_overflow): Likewise.
1943 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
1946 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
1947 maybe_expand_insn call, set ops[0].target. If still set after call,
1948 set alt_rtl. Add extra arg to recursive calls.
1949 (extract_bit_field): Add alt_rtl argument. Pass to
1951 * expmed.h (extract_bit_field): Fix prototype.
1952 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
1953 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
1954 to extract_bit_field_calls.
1955 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
1956 Pass alt_rtl to extract_bit_field calls.
1957 * calls.c (store_unaligned_arguments_into_psuedos)
1958 load_register_parameters): Pass extra NULL to extract_bit_field calls.
1959 * optabs.c (maybe_legitimize_operand): Clear op->target when call
1961 * optabs.h (struct expand_operand): Add target bitfield.
1963 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
1965 * compare-elim.c (try_eliminate_compare): Canonicalize
1966 operation with embedded compare to
1967 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
1968 (set (reg) (operation)].
1970 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
1972 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
1975 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
1976 cost of adding a carry flag for ADC instruction.
1977 [case MINUS]: Ignore the cost of subtracting a carry flag
1978 for SBB instruction.
1980 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
1982 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
1984 * config/rs6000/bmiintrin.h: New file.
1985 * config/rs6000/bmi2intrin.h: New file.
1986 * config/rs6000/x86intrin.h: New file.
1988 2017-05-12 Jeff Law <law@redhat.com>
1990 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
1993 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
1996 * tree-cfg.c: Remove cfg edges of unreachable case statements.
1998 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2000 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2001 early expansion of vector divide builtins.
2002 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
2003 builtins identified as having unsigned arguments.
2005 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2007 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
2008 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
2009 expansion of vector logical operations (and, andc, or, xor,
2012 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2014 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
2015 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
2017 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2019 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
2020 early GIMPLE expansion of vector multiplies.
2022 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2024 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
2025 TARGET_HAVE_MOVT conditional.
2026 (movt splitter): Likewise.
2028 2017-05-12 Richard Biener <rguenther@suse.de>
2030 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
2031 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2032 Fold all stmts not inplace.
2034 2017-05-12 Richard Biener <rguenther@suse.de>
2036 PR tree-optimization/80713
2037 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
2038 inserted_exprs bit for not removed stmts.
2040 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
2043 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
2044 parallelized" attribute for parallelized OpenACC kernels.
2045 * omp-offload.c (execute_oacc_device_lower): Use it.
2047 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
2048 Set "oacc kernels" attribute.
2049 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
2050 parameter. Adjust all users.
2051 (oacc_fn_attrib_kernels_p): Remove function.
2052 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
2053 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
2054 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2055 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
2056 assert "oacc kernels" attribute is set.
2058 2017-05-11 Carl Love <cel@us.ibm.com>
2060 * config/rs6000/rs6000-c: Add support for built-in functions
2061 vector unsigned char vec_popcnt (vector signed char)
2062 vector unsigned char vec_popcnt (vector unsigned char)
2063 vector unsigned short vec_popcnt (vector signed short)
2064 vector unsigned short vec_popcnt (vector unsigned short)
2065 vector unsigned int vec_popcnt (vector signed int)
2066 vector unsigned int vec_popcnt (vector unsigned int)
2067 vector unsigned long long vec_popcnt (vector signed long long)
2068 vector unsigned long long vec_popcnt (vector unsigned long long)
2069 vector signed long long vec_slo (vector signed long long,
2071 vector signed long long vec_slo (vector signed long long,
2072 vector unsigned char)
2073 vector unsigned long long vec_slo (vector unsigned long long,
2075 vector unsigned long long vec_slo (vector unsigned long long,
2076 vector unsigned char)
2077 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
2078 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
2079 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
2080 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
2081 * doc/extend.texi: Update the built-in documentation file for the
2082 new built-in functions.
2084 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2086 * attribs.h (sorted_attr_string): Move machine independent
2087 functions for target clone support from the i386 port to common
2088 code. Rename ix86_function_versions to common_function_versions.
2089 Rename make_name to make_unique_name.
2090 (common_function_versions): Likewise.
2091 (make_unique_name): Likewise.
2092 (make_dispatcher_decl): Likewise.
2093 (is_function_default_version): Likewise.
2094 * attribs.c (attr_strcmp): Likewise.
2095 (sorted_attr_string): Likewise.
2096 (common_function_versions): Likewise.
2097 (make_unique_name): Likewise.
2098 (make_dispatcher_decl): Likewise.
2099 (is_function_default_version): Likewise.
2100 * config/i386/i386.c (attr_strcmp): Likewise.
2101 (sorted_attr_string): Likewise.
2102 (ix86_function_versions): Likewise.
2103 (make_name): Likewise.
2104 (make_dispatcher_decl): Likewise.
2105 (is_function_default_version): Likewise.
2106 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
2108 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2111 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2112 Account for direct move costs for vec_construct of integer
2115 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
2118 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
2119 (UNSPEC_STX_ATOMIC): Ditto.
2120 (loaddi_via_sse): New insn.
2121 (storedi_via_sse): Ditto.
2122 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
2123 Update corresponding peephole2 patterns.
2124 (atomic_storedi_fpu): Ditto.
2126 2017-05-11 Julia Koval <julia.koval@intel.com>
2128 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
2129 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
2131 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
2132 (__builtin_ia32_rsqrt14ss_mask): New builtins.
2133 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
2135 2017-05-11 Nathan Sidwell <nathan@acm.org>
2137 * graphite-poly.c: Include dumpfile.h.
2139 * dumpfle.h (dump_function): Declare here ...
2140 * tree-dump.h (dump_function): ... not here.
2141 * dumpfile.c: #include tree-cfg.h.
2142 (dump_function): Move here from ...
2143 * tree-dump.c (dump_function): ... here.
2144 * gimplify.c: #include splay-tree.h, not tree-dump.h.
2145 * graphite-poly.c: Don't include tree-dump.h.
2146 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
2147 * print-tree.c: Likewise.
2148 * stor-layout.c: Likewise.
2149 * tree-nested.c: Likewise.
2151 * dumpfile.c (dump_start): Use TDF_FLAGS.
2152 (dump_enable_all): Fix TDF_KIND check thinko.
2154 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
2156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2157 array entries to represent two legal parameterizations of the
2158 overloaded __builtin_cmpb function, as represented by the
2159 P6_OV_BUILTIN_CMPB constant.
2160 (altivec_resolve_overloaded_builtin): Add special case handling
2161 for the __builtin_cmpb function, as represented by the
2162 P6_OV_BUILTIN_CMPB constant.
2163 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
2164 (BU_P6_64BIT_2): New macro.
2165 (BU_P6_OVERLOAD_2): New macro
2166 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
2167 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
2168 (CMPB): Add overload support to represent both 32-bit and 64-bit
2169 compare-bytes function.
2170 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2171 support for TARGET_CMPB.
2172 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
2173 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
2174 documentation of the __builtin_cmpb overloaded built-in function.
2176 2017-05-11 Richard Biener <rguenther@suse.de>
2178 PR tree-optimization/80705
2179 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
2180 bases are not vectorizable.
2182 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2184 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
2185 when counting register pressure.
2187 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2189 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
2190 (iv_ca_more_deps): Renamed to ...
2191 (iv_ca_compare_deps): ... this.
2192 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
2194 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2196 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
2198 (determine_group_iv_costs): ... here.
2199 (find_inv_vars_cb): Record inv var if it's not recorded before.
2201 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2203 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
2204 (get_shiftadd_cost): Ditto.
2206 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2208 * tree-ssa-address.c: Include header file.
2209 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
2211 (add_to_parts): Refactor.
2212 (addr_to_parts): New parameter. Update use of move_hint_to_base.
2213 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
2216 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2218 PR tree-optimization/53090
2219 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
2221 (extract_cond_operands): Detect condition with IV on both sides
2222 and return COMP_IV_EXPR_2.
2223 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
2224 (rewrite_use_compare): Simplify by removing call to function
2225 extract_cond_operands.
2227 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2229 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
2230 (extract_cond_operands): Detect condition comparing against non-
2231 invariant bound and return appropriate enum value.
2232 (find_interesting_uses_cond): Update use of extract_cond_operands.
2233 Handle its return value accordingly.
2234 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
2236 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2238 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
2239 nonlinear iv_use computation in loop invariant sensitive way.
2241 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2243 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
2244 (find_iv_candidates): Call relate_compare_use_with_all_cands.
2246 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2248 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
2249 (dump_cand): Support iv_cand.inv_exprs.
2250 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
2252 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
2255 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2257 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
2259 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
2260 as local function. Include necessary header files.
2261 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
2263 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2265 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
2267 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2269 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
2270 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
2271 RSHIFT_EXPR and BIT_NOT_EXPR.
2273 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2275 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
2276 (adjust_setup_cost): New parameter supporting round up adjustment.
2277 (struct address_cost_data): Delete.
2278 (force_expr_to_var_cost): Don't bound cost with spill_cost.
2279 (split_address_cost, ptr_difference_cost): Delete.
2280 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
2281 (struct ainc_cost_data): New struct.
2282 (get_address_cost_ainc): New function.
2283 (get_address_cost, get_computation_cost): Reimplement.
2284 (determine_group_iv_cost_address): Record inv_expr for all uses of
2286 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
2287 (iv_ca_has_deps): Reimplemented to ...
2288 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
2290 (iv_ca_extend): Call iv_ca_more_deps.
2292 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2294 * tree-ssa-address.c (struct mem_address): Move to header file.
2295 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
2296 * tree-ssa-address.h (struct mem_address): Move from C file.
2297 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
2299 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2301 * tree-affine.h (aff_combination_type): New interface.
2302 (aff_combination_zero_p): Remove static.
2303 (aff_combination_const_p): New interface.
2304 (aff_combination_singleton_var_p): New interfaces.
2306 2017-05-11 Richard Biener <rguenther@suse.de>
2308 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2309 Skip unreachable blocks and destinations.
2310 (eliminate): Move stmt removal and fixup ...
2311 (fini_eliminate): ... here. Skip inserted exprs.
2312 (pass_pre::execute): Move fini_pre after fini_eliminate.
2313 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
2314 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
2315 PRE to get rid of dead code that has invalid SSA form and
2316 split critical edges again.
2318 2017-05-11 Bin Cheng <bin.cheng@arm.com>
2320 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
2322 2017-05-11 Richard Biener <rguenther@suse.de>
2324 * passes.c (execute_function_todo): Verify loops if they are
2325 said to be up-to-date.
2326 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
2327 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
2329 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
2332 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
2333 handle calling assemble_external ourself.
2336 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
2337 modes with zero size. Enhance comment.
2339 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2341 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
2342 built-ins for vec_xl and vec_xst with short and char pointer
2345 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
2347 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
2348 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
2349 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
2350 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
2351 (_mm_maskz_min_round_ss): New intrinsics.
2352 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
2353 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
2354 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
2355 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
2356 (__builtin_ia32_minss_mask_round): New builtins.
2357 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2358 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2359 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
2361 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
2362 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
2364 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
2367 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
2369 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
2370 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
2371 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
2372 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
2373 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
2374 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
2375 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
2376 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2377 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
2378 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
2379 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
2380 (__builtin_ia32_mulss_mask_round): New builtins.
2381 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
2382 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
2383 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
2385 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
2386 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
2388 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
2391 2017-05-10 Julia Koval <julia.koval@intel.com>
2393 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
2394 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
2395 (_mm256_setr_m128i): New intrinsics.
2397 2017-05-10 Julia Koval <julia.koval@intel.com>
2399 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
2400 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
2401 (_mm_maskz_rcp14_ss): New intrinsics.
2402 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
2403 (__builtin_ia32_rcp14ss_mask): New builtins.
2404 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
2406 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
2408 PR tree-optimization/51513
2409 * tree-cfg.c (gimple_seq_unreachable_p): New function.
2410 (assert_unreachable_fallthru_edge_p): Use it.
2411 (group_case_labels_stmt): Likewise.
2412 * tree-cfg.h: Prototype it.
2413 * stmt.c: Include cfghooks.h and tree-cfg.h.
2414 (emit_case_dispatch_table) <gap_label>: New local variable.
2415 Use it to fill dispatch table gaps.
2416 Test for default_label before updating probabilities.
2417 (expand_case) <default_label>: Remove unneeded initialization.
2418 Test for unreachable default case statement and remove its edge.
2419 Set default_label accordingly.
2420 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
2422 2017-05-10 Carl Love <cel@us.ibm.com>
2424 * config/rs6000/rs6000-c: Add support for built-in functions
2425 vector signed char vec_neg (vector signed char)
2426 vector signed short int vec_neg (vector short int)
2427 vector signed int vec_neg (vector signed int)
2428 vector signed long long vec_neg (vector signed long long)
2429 vector float vec_neg (vector float)
2430 vector double vec_neg (vector double)
2431 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
2433 * config/rs6000/altivec.h: Add define for vec_neg
2434 * doc/extend.texi: Update the built-in documentation for the
2435 new built-in functions.
2437 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2439 PR tree-optimization/77644
2440 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
2442 2017-05-10 Nathan Sidwell <nathan@acm.org>
2444 * dumpfile.h (TDI_lang_all): New.
2445 (TDF_KIND): New. Renumber others
2446 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
2448 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
2450 (get_dump_file_name): Adjust suffix generation.
2451 (dump_enable_all): Use TDF_KIND.
2452 * doc/invoke.texi (-fdump-lang-all): Document.
2454 * dumpfile.h: Tabify.
2456 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
2459 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
2460 Move member access before delete.
2462 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
2464 * tree-inline.c (expand_call_inline): Split block at stmt
2467 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2470 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
2471 are now unused after splitting mov{sf,sd}_hardfloat.
2472 (f32_lr2): Likewise.
2474 (f32_lm2): Likewise.
2476 (f32_li2): Likewise.
2479 (f32_sr2): Likewise.
2481 (f32_sm2): Likewise.
2483 (f32_si2): Likewise.
2486 (f32_vsx): Likewise.
2488 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
2489 For movsf, order stores so the VSX stores occur before the GPR
2490 store which encourages the register allocator to use a traditional
2491 FPR instead of a GPR. For movsd, order the stores so that the GPR
2492 store comes before the VSX stores to allow the power6 to work.
2493 This is due to the power6 not having a 32-bit integer store
2494 instruction from a FPR.
2495 (movsf_hardfloat): Likewise.
2496 (movsd_hardfloat): Likewise.
2498 2017-05-09 Martin Sebor <msebor@redhat.com>
2500 PR translation/80280
2501 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
2504 PR translation/80280
2505 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
2506 data member added in r247778.
2507 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
2509 2017-05-09 Nathan Sidwell <nathan@acm.org>
2511 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
2513 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
2516 2017-05-09 Marek Polacek <polacek@redhat.com>
2518 * doc/invoke.texi: Fix typo.
2520 2017-05-09 Richard Biener <rguenther@suse.de>
2522 * tree-vrp.c (vrp_val_is_max): Adjust comment.
2523 (vrp_val_is_min): Likewise.
2524 (set_value_range_to_value): Likewise.
2525 (set_value_range_to_nonnegative): Likewise.
2526 (gimple_assign_nonzero_p): Likewise.
2527 (gimple_stmt_nonzero_p): Likewise.
2528 (vrp_int_const_binop): Likewise. Remove unreachable case.
2529 (adjust_range_with_scev): Adjust comments.
2530 (compare_range_with_value): Likewise.
2531 (extract_range_from_phi_node): Likewise.
2532 (test_for_singularity): Likewise.
2534 2017-05-09 Richard Biener <rguenther@suse.de>
2536 * tree-vrp.c (get_single_symbol): Add assert that we don't
2537 get overflowed constants as invariant part.
2538 (compare_values_warnv): Add comment before the TREE_NO_WARNING
2539 checks. Use wi::cmp instead of recursing for integer constants.
2540 (compare_values): Just ignore whether we assumed undefined
2541 overflow instead of failing the compare.
2542 (extract_range_for_var_from_comparison_expr): Add comment before the
2543 TREE_NO_WARNING sets.
2544 (test_for_singularity): Likewise.
2545 (extract_range_from_comparison): Do not disable optimization
2546 when we assumed undefined overflow.
2547 (extract_range_basic): Remove init of unused var.
2549 2017-05-09 Richard Biener <rguenther@suse.de>
2551 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
2552 (extract_range_from_multiplicative_op_1): Adjust.
2553 (extract_range_from_binary_expr_1): Use int_const_binop.
2555 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
2558 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
2559 rs6000_store_data_bypass_p in seven define_bypass directives and
2560 in several comments.
2561 * config/rs6000/rs6000-protos.h: Add prototype for
2562 rs6000_store_data_bypass_p function.
2563 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
2564 function implements slightly different (rs6000-specific) semantics
2565 than store_data_bypass_p, returning false rather than aborting
2566 with assertion error when arguments do not satisfy the
2567 requirements of store data bypass.
2568 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
2569 rs6000_store_data_bypass_p.
2571 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
2573 * config/xtensa/xtensa-protos.h
2574 (xtensa_initial_elimination_offset): New declaration.
2575 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
2576 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
2577 macro definition, add case for FRAME_POINTER_REGNUM when
2578 FRAME_GROWS_DOWNWARD.
2579 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
2580 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
2581 xtensa_initial_elimination_offset.
2583 2017-05-08 Nathan Sidwell <nathan@acm.org>
2585 * doc/invoke.texi: Alphabetize -fdump options.
2587 2017-05-08 Martin Sebor <msebor@redhat.com>
2589 PR translation/80280
2590 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
2592 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
2594 * target.def (compute_frame_layout): New optional target hook.
2595 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
2596 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
2597 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
2599 * reload1.c (verify_initial_elim_offsets): Likewise.
2600 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
2601 (use_simple_return_p): Call arm_compute_frame_layout if needed.
2602 (arm_get_frame_offsets): Split up into this ...
2603 (arm_compute_frame_layout): ... and this function.
2605 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
2607 * config/aarch64/constraints.md (Usa): New constraint.
2608 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
2610 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2612 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
2613 with_multilib_list after it has been checked.
2615 2017-05-08 Richard Biener <rguenther@suse.de>
2617 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
2618 (bitmap_set_subtract_values): Likewise.
2620 2017-05-08 Richard Biener <rguenther@suse.de>
2622 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
2623 (gimple_assign_nonzero): ... this and remove strict_overflow_p
2625 (gimple_stmt_nonzero_warnv_p): Rename to ...
2626 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
2628 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
2629 (extract_range_basic): Adjust, do not disable propagation on
2630 strict overflow sensitive simplification.
2631 (vrp_visit_cond_stmt): Likewise.
2633 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
2635 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
2636 body size unconditionally.
2638 2017-05-07 Jeff Law <law@redhat.com>
2641 2017-05-06 Jeff Law <law@redhat.com>
2642 PR tree-optimization/78496
2643 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
2646 PR tree-optimization/78496
2647 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
2648 (simplify_stmt_using_ranges): Call it.
2649 (vrp_dom_walker::before_dom_children): Extract equivalences
2650 from an ASSERT_EXPR with an equality comparison against a
2653 2017-05-06 Jeff Law <law@redhat.com>
2655 PR tree-optimization/78496
2656 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
2659 PR tree-optimization/78496
2660 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
2661 (simplify_stmt_using_ranges): Call it.
2662 (vrp_dom_walker::before_dom_children): Extract equivalences
2663 from an ASSERT_EXPR with an equality comparison against a
2666 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
2668 * lra-constraints.c (lra_copy_reg_equiv): New function.
2669 (split_reg): Use it to copy equivalence information from the
2670 original register to the spill register.
2672 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
2674 PR rtl-optimization/75964
2675 * simplify-rtx.c (simplify_const_relational_operation): Remove
2676 invalid handling of comparisons of integer ABS.
2678 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
2680 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
2682 (init_regs): Remove declaration.
2683 (function_arg_advance_32): Initialize error_p as boolean variable.
2685 2017-05-05 Nathan Sidwell <nathan@acm.org>
2687 * store-motion.c (remove_reachable_equiv_notes): Reformat long
2688 lines. Use for (;;).
2690 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2692 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
2693 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
2694 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
2695 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
2696 VF=2 that require versioning.
2698 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2700 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
2703 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2705 * diagnostic.h (diagnostic_override_option_index): Convert from
2706 macro to inline function.
2708 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2710 * diagnostic.c (last_module_changed_p): New function.
2711 (set_last_module): New function.
2712 (diagnostic_report_current_module): Convert macro usage to
2713 the above functions.
2714 * diagnostic.h (diagnostic_context::last_module): Strengthen
2715 from const line_map * to const line_map_ordinary *.
2716 (diagnostic_last_module_changed): Delete macro.
2717 (diagnostic_set_last_module): Delete macro.
2719 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2721 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
2722 with diagnostic_report_diagnostic.
2723 (diagnostic_n_impl_richloc): Likewise.
2724 * diagnostic.h (report_diagnostic): Delete macro.
2725 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
2726 with diagnostic_report_diagnostic.
2727 * substring-locations.c (format_warning_va): Likewise.
2729 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2731 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
2732 save/restor of format_spec. Move option-printing code to...
2733 (print_option_information): ...this new function, and
2734 reimplement by simply printing to the pretty_printer,
2735 rather than appending to the format string.
2737 2017-05-05 David Malcolm <dmalcolm@redhat.com>
2739 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
2740 handling logic into...
2741 (update_effective_level_from_pragmas): ...this new function.
2743 2017-05-04 Andrew Waterman <andrew@sifive.com>
2745 * config/riscv/riscv.opt (mstrict-align): New option.
2746 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
2747 (SLOW_UNALIGNED_ACCESS): Define.
2748 (riscv_slow_unaligned_access): Declare.
2749 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
2751 (riscv_slow_unaligned_access): New variable.
2752 (rocket_tune_info): Set slow_unaligned_access to true.
2753 (optimize_size_tune_info): Set slow_unaligned_access to false.
2754 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
2755 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
2756 (riscv_option_override): Set riscv_slow_unaligned_access.
2757 * doc/invoke.texi: Add -mstrict-align to RISC-V.
2759 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
2761 * config/riscv/riscv.md: Unify indentation.
2763 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2768 * config/rs6000/rs6000.md (u code attribute): Add FIX and
2770 (extendsi<mode>2): Add support for doing sign extension via
2771 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
2772 don't have ISA 3.0 instructions.
2773 (extendsi<mode>2 splitter): Likewise.
2774 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
2775 generate the normal insns since SImode can now go in vector
2776 registers. Disallow the special UNSPECs needed for previous
2777 machines to hide SImode being used. Add new insns
2778 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
2779 (fix_trunc<mode>si2_stfiwx): Likewise.
2780 (fix_trunc<mode>si2_internal): Likewise.
2781 (fixuns_trunc<mode>si2): Likewise.
2782 (fixuns_trunc<mode>si2_stfiwx): Likewise.
2783 (fctiw<u>z_<mode>_smallint): Likewise.
2784 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
2785 of floating point to 32-bit integer from doing a direct move to
2786 the GPR registers to do a store.
2787 (fctiwz_<mode>): Break long line.
2789 2017-05-05 Bin Cheng <bin.cheng@arm.com>
2791 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
2792 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
2793 (addr_list, addr_offset_valid_p): New.
2794 (split_address_groups): Check offset validity with above function.
2795 (gt-tree-ssa-loop-ivopts.h): Include header file.
2797 2017-05-05 Nathan Sidwell <nathan@acm.org>
2799 * config.gcc (arm*-*-*): Add missing 'fi'.
2801 2017-05-05 Steve Ellcey <sellcey@cavium.com>
2803 * doc/invoke.texi (-fopt-info): Explicitly say order of options
2804 included in -fopt-info does not matter.
2805 * doc/optinfo.texi (-fopt-info): Fix description of default
2806 behavour. Explicitly say order of options included in -fopt-info
2809 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
2811 * config.gcc: Allow combinations of aprofile and rmprofile values for
2812 --with-multilib-list.
2813 * config/arm/t-multilib: New file.
2814 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
2815 variables. Remove setting of ISA and floating-point ABI in
2816 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
2817 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
2818 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
2819 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
2821 * config/arm/t-rmprofile: Likewise except for the matches changes.
2822 * doc/install.texi (--with-multilib-list): Document the combination of
2823 aprofile and rmprofile values and warn about pitfalls in doing that.
2825 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
2827 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
2828 (movdi_aarch64): Likewise.
2830 2017-05-05 Jakub Jelinek <jakub@redhat.com>
2832 PR tree-optimization/80632
2833 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
2835 (build_arrays): Initialize it for virtual phis.
2836 (fix_phi_nodes): Use it for virtual phis.
2838 PR tree-optimization/80558
2839 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
2840 [x, y] op z into [x op, y op z] for op & or | if conditions
2843 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
2844 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2847 * config/arm/arm.md (use_literal_pool): Remove.
2848 (64-bit immediate split): No longer takes cost into consideration
2849 if arm_disable_literal_pool is enabled.
2850 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
2851 used when arm_disable_literal_pool is enabled.
2852 (arm_max_const_double_inline_cost): Remove use of
2853 arm_disable_literal_pool.
2854 (push_minipool_fix): Add assert.
2855 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
2856 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
2857 (no_literal_pool_sf_immediate): New.
2859 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2861 PR tree-optimization/80613
2862 * tree-ssa-dce.c (propagate_necessity): Remove cases for
2863 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2865 2017-05-05 Richard Biener <rguenther@suse.de>
2867 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
2869 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
2871 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
2872 of this flag from insn conditions due to removal from r247495.
2874 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
2876 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
2878 (arm_early_store_addr_dep_ptr): Likewise.
2879 * config/arm/aarch-common-protos.h
2880 (arm_early_load_addr_dep_ptr): Add prototype.
2881 (arm_early_store_addr_dep_ptr): Likewise.
2882 * config/arm/cortex-a53.md: Add new bypasses.
2884 2017-05-05 Jakub Jelinek <jakub@redhat.com>
2886 * tree.c (next_type_uid): Change type to unsigned.
2887 (type_hash_canon): Decrement back next_type_uid if
2888 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
2889 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
2892 2017-05-04 Martin Sebor <msebor@redhat.com>
2894 * builtins.c: Fix a trivial typo in a comment.
2897 * builtins.c (check_sizes): Adjust to handle reading past the end.
2898 Avoid printing excessive upper bound of ranges. Use %E to print
2899 tree nodes instead of converting them to %wu.
2900 (expand_builtin_memchr): New function.
2901 (compute_dest_size): Rename...
2902 (compute_objsize): ...to this.
2903 (expand_builtin_memcpy): Adjust.
2904 (expand_builtin_mempcpy): Adjust.
2905 (expand_builtin_strcat): Adjust.
2906 (expand_builtin_strcpy): Adjust.
2907 (check_strncat_sizes): Adjust.
2908 (expand_builtin_strncat): Adjust.
2909 (expand_builtin_strncpy): Adjust and simplify.
2910 (expand_builtin_memset): Adjust.
2911 (expand_builtin_bzero): Adjust.
2912 (expand_builtin_memcmp): Adjust.
2913 (expand_builtin): Handle memcmp.
2914 (maybe_emit_chk_warning): Check strncat just once.
2916 2017-05-04 Martin Sebor <msebor@redhat.com>
2918 PR preprocessor/79214
2921 * builtins.c (check_sizes): Add inlining context and issue
2922 warnings even when -Wno-system-headers is set.
2923 (check_strncat_sizes): Same.
2924 (expand_builtin_strncat): Same.
2925 (expand_builtin_memmove): New function.
2926 (expand_builtin_stpncpy): Same.
2927 (expand_builtin): Handle memmove and stpncpy.
2929 2017-05-04 Bin Cheng <bin.cheng@arm.com>
2931 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
2932 which is not used any more.
2934 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2936 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
2938 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2940 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
2941 (cortexa53_tunings): Likewise.
2942 (cortexa57_tunings): Likewise.
2943 (cortexa72_tunings): Likewise.
2944 (cortexa73_tunings): Likewise.
2946 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2948 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
2949 Set loop alignment to 8.
2951 2017-05-04 Martin Sebor <msebor@redhat.com>
2953 PR translation/80280
2954 * builtins.c (expand_builtin_object_size): Add missing quoting to
2955 %D and like directives.
2956 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
2957 (hsa_type_for_tree_type): Same.
2958 (verify_function_arguments): Same.
2959 * symtab.c (symbol_table::change_decl_assembler_name): Same.
2960 * varasm.c (get_section): Same.
2963 2017-05-04 Martin Sebor <msebor@redhat.com>
2965 PR translation/80280
2966 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
2968 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2970 * config/aarch64/aarch64.c (generic_addrcost_table):
2971 Change HI/TI mode setting.
2973 2017-05-04 Martin Jambor <mjambor@suse.cz>
2975 PR tree-optimization/80622
2976 * tree-sra.c (comes_initialized_p): New function.
2977 (build_accesses_from_assign): Only set write lazily when
2978 comes_initialized_p is false.
2979 (analyze_access_subtree): Use comes_initialized_p.
2980 (propagate_subaccesses_across_link): Assert !comes_initialized_p
2981 instead of testing for PARM_DECL.
2983 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2985 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
2986 constraint on operand 0 to allow more general addressing modes.
2987 Adjust output template.
2988 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
2990 * config/aarch64/aarch64-protos.h
2991 (aarch64_address_valid_for_prefetch_p): Declare prototype.
2992 * config/aarch64/constraints.md (Dp): New address constraint.
2993 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
2996 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
2998 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
2999 update use of estimate_ipcp_clone_size_and_time.
3000 (estimate_local_effects): Update use of
3001 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
3002 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
3003 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
3004 Return nonspecialized time.
3006 2017-05-04 Richard Biener <rguenther@suse.de>
3008 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
3009 for the last VUSE which def dominates the PHI. Directly call
3011 (get_continuation_for_phi_1): Remove.
3013 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3015 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
3016 to explain the use of truncating division. Cap the number of
3017 iterations to the maximum given by nb_iterations_upper_bound,
3020 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3022 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
3023 * configure: Regenerate.
3024 * config.in: Regenerate.
3025 * config/i386/driver-mingw32.c: new file.
3026 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
3027 * config.host: Link driver-mingw32.o on MinGW host.
3028 * doc/install.texi: Document new --enable-mingw-wildcard configure
3031 2017-05-04 Marek Polacek <polacek@redhat.com>
3033 PR tree-optimization/80612
3034 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
3036 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
3037 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
3039 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
3040 (movt splitter): Likewise.
3041 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
3042 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
3043 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
3044 block for Thumb-1 with MOVT.
3045 (thumb2_legitimate_address_p): Move code block ...
3046 (can_avoid_literal_pool_for_label_p): ... into this new function.
3047 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
3049 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
3050 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
3051 "M-profile targets with the MOVT instruction".
3053 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
3055 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
3056 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
3057 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
3059 2017-05-04 Martin Liska <mliska@suse.cz>
3061 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
3064 2017-05-04 Richard Biener <rguenther@suse.de>
3066 * tree.c (array_at_struct_end_p): Handle arrays at struct
3067 end with flexarrays more conservatively. Refactor and treat
3068 arrays of arrays or aggregates more strict. Fix
3069 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
3070 * tree.c (array_at_struct_end_p): Adjust prototype.
3071 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
3072 * gimple-fold.c (get_range_strlen): Likewise.
3073 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
3075 2017-05-04 Richard Biener <rguenther@suse.de>
3077 PR tree-optimization/31130
3078 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
3080 (supports_overflow_infinity): Likewise.
3081 (is_negative_overflow_infinity): Likewise.
3082 (is_positive_overflow_infinity): Likewise.
3083 (is_overflow_infinity): Likewise.
3084 (stmt_overflow_infinity): Likewise.
3085 (overflow_infinity_range_p): Likewise.
3086 (usable_range_p): Remove as always returning true.
3087 (make_overflow_infinity): Remove.
3088 (negative_overflow_infinity): Likewise.
3089 (positive_overflow_infinity): Likewise.
3090 (avoid_overflow_infinity): Likewise.
3091 (set_value_range): Adjust accordingly.
3092 (set_value_range_to_nonnegative): Likewise, remove now unused
3093 overflow_infinity arg.
3094 (vrp_operand_equal_p): Adjust.
3095 (update_value_range): Likewise.
3096 (range_int_cst_singleton_p): Likewise.
3097 (operand_less_p): Likewise.
3098 (compare_values_warnv): Likewise.
3099 (extract_range_for_var_from_comparison_expr): Likewise.
3100 (vrp_int_const_binop): Likewise.
3101 (zero_nonzero_bits_from_vr): Likewise.
3102 (extract_range_from_multiplicative_op_1): Likewise.
3103 (extract_range_from_binary_expr_1): Likewise.
3104 (extract_range_from_unary_expr): Likewise.
3105 (extract_range_from_comparison): Likewise.
3106 (extract_range_basic): Likewise.
3107 (adjust_range_with_scev): Likewise.
3108 (compare_ranges): Likewise.
3109 (compare_range_with_value): Likewise.
3110 (dump_value_range): Likewise.
3111 (test_for_singularity): Likewise, remove strict_overflow_p parameter
3113 (simplify_cond_using_ranges): Adjust.
3115 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
3117 * brig-builtins.def: Added a builtin for class_f64.
3118 * builtin-types.def: Added a builtin type needed by class_f64.
3120 2017-05-03 Jason Merrill <jason@redhat.com>
3122 * timevar.def: Add TV_CONSTEXPR.
3124 2017-05-03 David Malcolm <dmalcolm@redhat.com>
3126 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
3128 2017-05-03 Martin Jambor <mjambor@suse.cz>
3130 * ipa-prop.c (ipa_update_after_lto_read): Removed.
3131 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
3132 * ipa-cp.c (ipcp_propagate_stage): Do not call
3133 ipa_update_after_lto_read.
3134 * ipa-inline.c (ipa_inline): Likewise.
3136 2017-05-03 Martin Jambor <mjambor@suse.cz>
3138 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
3139 tag. Added a default constructor and a destructor.
3140 (ipa_edge_args_sum_t): New class;
3141 (ipa_edge_args_sum): Declare.
3142 (ipa_edge_args_vector): Remove declaration.
3143 (IPA_EDGE_REF): Use ipa_edge_args_sum.
3144 (ipa_free_edge_args_substructures): Remove declaration.
3145 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
3146 (ipa_edge_args_info_available_for_edge_p): Likewise.
3147 * ipa-prop.c (ipa_edge_args_vector): Removed.
3148 (edge_removal_hook_holder): Likewise.
3149 (edge_duplication_hook_holder): Likewise.
3150 (ipa_edge_args_sum): New variable.
3151 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
3152 ipa_edge_args_vector.
3153 (ipa_free_edge_args_substructures): Likewise.
3154 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
3155 ipa_edge_args_vector.
3156 (ipa_edge_removal_hook): Turned into method
3157 ipa_edge_args_sum_t::remove.
3158 (ipa_edge_duplication_hook): Turned into method
3159 ipa_edge_args_sum_t::duplicate.
3160 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
3161 registering edge hooks.
3162 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
3163 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
3164 ipa_edge_args_sum instead of ipa_edge_args_vector.
3165 * ipa-profile.c (ipa_profile): Likewise.
3167 2017-05-03 Martin Jambor <mjambor@suse.cz>
3169 * symbol-summary.h (function_summary): New method exists.
3170 (function_summary::symtab_removal): Deallocate through release.
3171 (call_summary): New class.
3172 (gt_ggc_mx): New overload.
3173 (gt_pch_nx): Likewise.
3174 (gt_pch_nx): Likewise.
3176 2017-05-03 Jeff Law <law@redhat.com>
3178 PR tree-optimization/78496
3179 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
3180 from simplify_cond_using_ranges. Split off code to walk
3181 backwards through casts into ...
3182 (simplify_cond_using_ranges_2): New function.
3183 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
3184 (execute_vrp): After identifying jump threads, call
3185 simplify_cond_using_ranges_2.
3187 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
3190 * ipa-inline.h (inline_summary): Add ctor.
3191 (create_ggc): Do not use ggc_cleared_alloc.
3193 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
3194 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3196 * gcc.c (handle_braces): Support escaping in switch matching
3198 * doc/invoke.texi (Spec Files): Document it.
3199 Remove superfluous @code markup in items.
3201 2017-05-03 David Malcolm <dmalcolm@redhat.com>
3203 * diagnostic-show-locus.c (struct column_range): New struct.
3204 (get_affected_columns): New function.
3205 (get_printed_columns): New function.
3206 (struct correction): New struct.
3207 (correction::ensure_capacity): New function.
3208 (correction::ensure_terminated): New function.
3209 (struct line_corrections): New struct.
3210 (line_corrections::~line_corrections): New dtor.
3211 (line_corrections::add_hint): New function.
3212 (layout::print_trailing_fixits): Reimplement in terms of the new
3214 (selftest::test_overlapped_fixit_printing): New function.
3215 (selftest::diagnostic_show_locus_c_tests): Call it.
3217 2017-05-03 Nathan Sidwell <nathan@acm.org>
3219 Canonicalize canonical type hashing
3220 * tree.h (type_hash_canon_hash): Declare.
3221 * tree.c (type_hash_list, attribute_hash_list): Move into
3222 type_hash_canon_hash.
3223 (build_type_attribute_qual_variant): Break out hash code calc into
3224 type_hash_canon_hash.
3225 (type_hash_canon_hash): New. Generic type hash computation.
3226 (build_range_type_1, build_array_type_1, build_function_type,
3227 build_method_type_directly, build_offset_type, build_complex_type,
3228 make_vector_type): Call it.
3230 2017-05-03 Richard Biener <rguenther@suse.de>
3232 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3233 When all DRs have unknown misaligned do not always peel
3234 when there is a store but apply the same costing model as if
3235 there were only loads.
3237 2017-05-03 Richard Biener <rguenther@suse.de>
3240 PR tree-optimization/80492
3241 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
3242 compare_base_decls returning dont-know properly.
3244 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
3246 * config/arm/iterators.md (CCSI): New mode iterator.
3247 (arch): New mode attribute.
3248 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
3249 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
3250 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
3251 code iterator for success result mode.
3252 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
3253 the corresponding new insn generators.
3255 2017-05-03 Bin Cheng <bin.cheng@arm.com>
3258 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3259 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3261 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3263 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
3264 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
3265 (DDR_A): Wrap DDR argument in brackets.
3266 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
3267 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
3268 (DDR_REVERSED_P): Likewise.
3270 2017-05-03 Jakub Jelinek <jakub@redhat.com>
3272 PR tree-optimization/79472
3273 * tree-switch-conversion.c (struct switch_conv_info): Add
3274 contiguous_range and default_case_nonstandard fields.
3275 (collect_switch_conv_info): Compute contiguous_range and
3276 default_case_nonstandard fields, don't clear final_bb if
3277 contiguous_range and only the default case doesn't have the required
3279 (check_all_empty_except_final): Set default_case_nonstandard instead
3280 of failing if contiguous_range and the default case doesn't have empty
3282 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
3283 and only the default case doesn't have the required constants. Skip
3285 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
3286 if default_case_nonstandard.
3287 (build_constructors): Build constant 1 just once. Assert that default
3288 values aren't inserted in between cases if contiguous_range. Skip
3290 (build_arrays): Skip virtual phis.
3291 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
3292 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
3293 Handle virtual phis.
3294 (gen_inbound_check): Handle default_case_nonstandard case.
3295 (process_switch): Adjust check_final_bb caller. Call
3296 gather_default_values with the first non-default case instead of
3297 default case if default_case_nonstandard.
3299 2017-05-02 Nathan Sidwell <nathan@acm.org>
3301 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
3302 check. Fix formatting.
3304 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
3306 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
3307 errors when comparing specialized and unspecialized times.
3309 2017-05-02 David Malcolm <dmalcolm@redhat.com>
3311 * diagnostic-show-locus.c
3312 (layout::should_print_annotation_line_p): Make private.
3313 (layout::print_annotation_line): Make private.
3314 (layout::annotation_line_showed_range_p): Make private.
3315 (layout::show_ruler): Make private.
3316 (layout::print_source_line): Make private. Pass in line and
3317 line_width, rather than calling location_get_source_line. Drop
3319 (layout::print_leading_fixits): New method.
3320 (layout::print_any_fixits): Rename to...
3321 (layout::print_trailing_fixits): ...this, and make private.
3322 Don't print newline fixits.
3323 (diagnostic_show_locus): Move logic for printing one row into...
3324 (layout::print_line): ...this new function. Move the
3325 location_get_source_line call and error-handling from
3326 print_source_line to here. Call print_leading_fixits, and rename
3327 print_any_fixits to print_trailing_fixits.
3328 (selftest::test_fixit_insert_containing_newline): Update now that
3329 newlines are partially supported.
3330 (selftest::test_fixit_insert_containing_newline_2): New test.
3331 (selftest::test_fixit_replace_containing_newline): Update comments.
3332 (selftest::diagnostic_show_locus_c_tests): Call the new test.
3333 * edit-context.c (class added_line): New class.
3334 (class edited_line): Describe newline handling in comment.
3335 (edited_line::actually_edited_p): New method.
3336 (edited_line::print_content): Delete redundant decl.
3337 (edited_line::m_predecessors): New field.
3338 (edited_file::print_content): Call edited_line::print_content.
3339 (edited_file::print_diff): Update to support newlines.
3340 (edited_file::print_diff_hunk): Likewise.
3341 (edited_file::print_run_of_changed_lines): New function.
3342 (edited_file::print_diff_line): Convert to...
3343 (print_diff_line): ...this.
3344 (edited_file::get_effective_line_count): New function.
3345 (edited_line::edited_line): Initialize new field m_predecessors.
3346 (edited_line::~edited_line): Clean up m_predecessors.
3347 (edited_line::apply_fixit): Handle newlines.
3348 (edited_line::get_effective_line_count): New function.
3349 (edited_line::print_content): New function.
3350 (edited_line::print_diff_lines): New function.
3351 (selftest::test_applying_fixits_insert_containing_newline): New
3353 (selftest::test_applying_fixits_replace_containing_newline): New
3355 (selftest::insert_line): New function.
3356 (selftest::test_applying_fixits_multiple_lines): Add example of
3358 (selftest::edit_context_c_tests): Call the new tests.
3360 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3362 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
3363 parameter cand. Update dump information.
3364 (get_computation_cost): Update uses.
3366 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3368 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
3369 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
3370 (get_computation_at, rewrite_use_address): Update use of
3371 get_computation_aff.
3373 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3375 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
3376 (get_computation): Delete.
3377 (get_computation_cost): Implement like get_computation_cost_at.
3378 Use get_computation_at.
3379 (get_computation_cost_at): Delete.
3380 (rewrite_use_nonlinear_expr): Use get_computation_at.
3381 (rewrite_use_compare, remove_unused_ivs): Ditto.
3383 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3385 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
3387 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3389 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
3390 (ivopts_global_cost_for_size): Rename parameter and update uses.
3391 (iv_ca_recount_cost): Update uses.
3392 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
3393 candidates seperately in n_invs and n_cands.
3394 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
3396 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3398 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
3399 (find_inv_vars_cb): New.
3400 (find_depends): Renamed to ...
3401 (find_inv_vars): ... this.
3402 (add_candidate_1, force_var_cost): Call find_inv_vars.
3403 (split_address_cost, determine_group_iv_cost_cond): Ditto.
3405 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3407 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
3408 inv_vars. Add inv_exprs.
3409 (struct iv_cand): Rename depends_on to inv_vars.
3410 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
3411 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
3412 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
3413 (dump_cand): Dump inv_vars.
3414 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
3415 (record_invariant, find_depends, add_candidate_1): Ditto.
3416 (set_group_iv_cost, force_var_cost): Ditto.
3417 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
3418 (get_computation_cost_at, get_computation_cost): Ditto.
3419 (determine_group_iv_cost_generic): Ditto.
3420 (determine_group_iv_cost_address): Ditto.
3421 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
3422 (determine_group_iv_costs): Ditto.
3423 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
3424 (iv_ca_set_remove_invariants): Renamed to ...
3425 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
3426 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
3427 (iv_ca_set_add_invariants): Renamed to ...
3428 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
3429 (iv_ca_set_cp): Use iv_ca_set_add_invs.
3430 (iv_ca_has_deps): Support inv_vars and inv_exprs.
3431 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
3432 (create_new_ivs): Remove useless dump.
3434 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3436 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
3438 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
3439 (iv_ca_set_no_cp, create_new_iv): Ditto.
3441 2017-05-02 Bin Cheng <bin.cheng@arm.com>
3443 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3445 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3447 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
3448 function tree_check2.
3450 2017-05-02 Martin Liska <mliska@suse.cz>
3452 * doc/gcov.texi: Add missing preposition.
3453 * gcov.c (function_info::function_info): Properly fill up
3454 all member variables.
3456 2017-05-02 Tamar Christina <tamar.christina@arm.com>
3458 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
3460 2017-05-02 Tamar Christina <tamar.christina@arm.com>
3462 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
3464 2017-05-02 Martin Liska <mliska@suse.cz>
3467 * lto-streamer-in.c (lto_read_tree_1): Remove
3469 * lto-streamer.c (struct tree_hash_entry): Likewise.
3470 (struct tree_entry_hasher): Likewise.
3471 (tree_entry_hasher::hash): Likewise.
3472 (tree_entry_hasher::equal): Likewise.
3473 (lto_streamer_init): Likewise.
3474 (lto_orig_address_map): Likewise.
3475 (lto_orig_address_get): Likewise.
3476 (lto_orig_address_remove): Likewise.
3477 * lto-streamer.h: Likewise.
3478 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3479 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
3481 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
3483 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
3484 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
3485 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
3486 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
3487 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
3488 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
3489 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
3490 (mm_maskz_sub_ss): New intrinsics.
3491 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3492 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
3493 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
3494 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
3495 (__builtin_ia32_subss_mask_round): New builtins.
3496 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3497 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3498 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
3500 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
3501 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
3503 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
3506 2017-05-02 Martin Jambor <mjambor@suse.cz>
3508 PR tree-optimization/78687
3509 * tree-sra.c (access): New field parent.
3510 (process_subtree_disqualification): New function.
3511 (disqualify_candidate): Call it.
3512 (build_accesses_from_assign): Reset write flag if creating an
3514 (build_access_subtree): Fill in parent field and also prpagate
3515 down grp_write flag.
3516 (create_artificial_child_access): New parameter set_grp_write, set
3517 grp_write to its value.
3518 (propagate_subaccesses_across_link): Also propagate grp_write flag
3520 (propagate_all_subaccesses): Push the closest parent back to work
3521 queue if add_access_to_work_queue returned true.
3523 2017-05-02 Richard Biener <rguenther@suse.de>
3525 * common.opt (fstrict-overflow): Alias negative to fwrapv.
3526 * doc/invoke.texi (fstrict-overflow): Remove all traces of
3527 -fstrict-overflow documentation.
3528 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
3529 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
3530 flag_strict_overflow.
3531 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
3532 * lto-opts.c (lto_write_options): Do not stream it.
3533 * lto-wrapper.c (merge_and_complain): Do not handle it.
3534 * opts.c (default_options_table): Do not set -fstrict-overflow.
3535 (finish_options): Likewise do not clear it when sanitizing.
3536 * simplify-rtx.c (simplify_const_relational_operation): Do not
3537 test flag_strict_overflow.
3539 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
3541 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
3542 using enabled attribute.
3543 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
3544 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
3545 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
3546 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
3547 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
3548 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
3549 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
3550 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
3551 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
3552 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
3554 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
3556 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
3558 2017-05-02 Richard Biener <rguenther@suse.de>
3560 PR tree-optimization/80591
3562 2017-04-10 Richard Biener <rguenther@suse.de>
3564 * tree-ssa-structalias.c (find_func_aliases): Properly handle
3567 2017-05-02 Richard Biener <rguenther@suse.de>
3569 PR tree-optimization/80549
3570 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
3571 (cleanup_tree_cfg_noloop): Create forwarders to known loop
3572 headers if they do not have a preheader.
3574 2017-05-02 Martin Liska <mliska@suse.cz>
3577 * common.opt: Fix typo.
3578 * doc/invoke.texi: Likewise.
3580 2017-05-01 Jan Beulich <jbeulich@suse.com>
3582 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
3583 swapping, add (x,x,m,x,n) alternative.
3585 2017-05-01 Nathan Sidwell <nathan@acm.org>
3587 * calls.c (combine_pending_stack_adjustment_and_call): Remove
3588 unnecessary unadjusted_alignment check.
3590 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3593 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
3595 * gimplify.c (gimplify_cilk_detach): New function.
3596 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
3597 * tree-core.h: Document EXPR_CILK_SPAWN.
3598 * tree.h (EXPR_CILK_SPAWN): Define.
3600 2017-05-01 David Malcolm <dmalcolm@redhat.com>
3602 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
3603 to use new fixit_hint representation, using the "replace" logic.
3604 (get_line_span_for_fixit_hint): Likewise.
3605 (layout::print_any_fixits): Likewise.
3606 (selftest::test_one_liner_many_fixits): Rename to...
3607 (selftest::test_one_liner_many_fixits_1): ...this, and update
3608 comment and expected output to reflect that the multiple fix-it
3609 hints are now consolidated into one insertion.
3610 (selftest::test_one_liner_many_fixits_2): New test.
3611 (selftest::test_diagnostic_show_locus_one_liner): Update for
3613 (selftest::test_fixit_consolidation): Update for fix-it API
3615 * diagnostic.c (print_parseable_fixits): Likewise.
3616 * edit-context.c (edited_line::m_line_events): Convert from
3617 auto_vec <line_event *> to auto_vec <line_event>.
3618 (class line_event): Convert from abstract base class to a concrete
3619 class, taking over the role of replace_event.
3620 (class insert_event): Delete.
3621 (class replace_event): Rename to class line_event. Convert to
3623 (edit_context::add_fixits): Reimplement.
3624 (edit_context::apply_insert): Delete.
3625 (edit_context::apply_replace): Rename to...
3626 (edit_context::apply_fixit): ...this. Convert to half-open range.
3627 (edited_file::apply_insert): Delete.
3628 (edited_file::apply_replace): Rename to...
3629 (edited_file::apply_fixit): ...this.
3630 (edited_line::~edited_line): Drop deletion of events.
3631 (edited_line::apply_insert): Delete.
3632 (edited_line::apply_replace): Rename to...
3633 (edited_line::apply_fixit): ...this. Convert to half-open range.
3634 Update for change to type of m_line_events.
3635 * edit-context.h (edit_context::apply_insert): Delete.
3636 (edit_context::apply_replace): Rename to...
3637 (edit_context::apply_fixit): ...this.
3639 2017-05-01 Martin Sebor <msebor@redhat.com>
3641 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
3644 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
3647 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
3648 __get_cpuid_max returns 0.
3649 (__get_cpuid_count): Ditto.
3651 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
3653 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
3654 replacement expression is another instance of one of its arguments.
3656 2017-05-01 Jakub Jelinek <jakub@redhat.com>
3659 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
3660 check for stack push/pop autoinc.
3661 * config/i386/i386.c (ix86_agi_dependent): Return false
3662 if the only reason why modified_in_p returned true is that
3663 addr is SP based and set_insn is a push or pop.
3665 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
3667 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
3670 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
3673 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
3674 (account_size_time): Use two predicates - exec_pred and
3676 (evaluate_conditions_for_known_args): Compute both clause and
3678 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
3679 (inline_summary_t::duplicate): Update.
3680 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
3682 (compute_inline_parameters): Likewise.
3683 (estimate_edge_size_and_time): Update caluclation of time.
3684 (estimate_node_size_and_time): Compute both time and nonspecialized
3686 (estimate_ipcp_clone_size_and_time): Update.
3687 (inline_merge_summary): Update.
3688 (do_estimate_edge_time): Update.
3689 (do_estimate_edge_size): Update.
3690 (do_estimate_edge_hints): Update.
3691 (inline_read_section, inline_write_summary): Stream both new predicates.
3692 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
3694 (compute_inlined_call_time): Cleanup.
3695 (big_speedup_p): Update.
3696 (edge_badness): Update.
3697 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
3698 (size_time_entry): Replace predicate by exec_predicate and
3700 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
3701 (estimate_edge_time): Return also nonspec_time.
3702 (reset_edge_growth_cache): Update.
3704 2017-04-29 Jakub Jelinek <jakub@redhat.com>
3706 PR rtl-optimization/80491
3707 * ifcvt.c (noce_process_if_block): When looking for x setter
3708 with missing else_bb, don't check only the insn right before
3709 cond_earliest, but look for the last insn that x is modified in
3712 PR rtl-optimization/80491
3713 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
3715 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
3717 PR tree-optimization/80487
3718 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
3720 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3722 PR tree-optimization/79697
3723 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
3724 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
3725 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
3727 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
3728 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
3730 2017-04-28 Martin Sebor <msebor@redhat.com>
3732 PR tree-optimization/80523
3733 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
3734 (init_target_to_host_charmap, target_to_host, target_strtol10): New
3736 (maybe_warn, format_directive, parse_directive): Use new functions.
3737 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
3739 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
3741 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
3743 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3745 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
3746 target_header_dir): Set correctly.
3747 * configure: Regenerated.
3748 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3749 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3750 instead of SYSTEM_HEADER_DIR.
3752 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
3754 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
3755 (estimate_local_effects): Likewise.
3756 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
3757 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
3758 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
3759 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
3760 do_estimate_edge_time, estimate_edge_time): Likewise.
3761 * ipa-inline-analysis.c (estimate_node_size_and_time,
3762 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
3763 (estimate_time_after_inlining): Remove.
3765 2017-04-28 Martin Liska <mliska@suse.cz>
3767 * doc/gcov.texi: Enhance documentation of gcov.
3769 2017-04-28 Martin Liska <mliska@suse.cz>
3771 * doc/gcov.texi: Sort options in alphabetic order.
3772 * doc/gcov-dump.texi: Likewise.
3773 * doc/gcov-tool.texi: Likewise.
3774 * gcov.c (print_usage): Likewise.
3775 * gcov-dump.c (print_usage): Likewise.
3776 * gcov-tool.c (print_merge_usage_message): Likewise.
3777 (print_rewrite_usage_message): Likewise.
3778 (print_overlap_usage_message): Likewise.
3780 2017-04-28 Martin Liska <mliska@suse.cz>
3782 PR gcov-profile/53915
3783 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
3785 2017-04-28 Martin Liska <mliska@suse.cz>
3787 PR gcov-profile/79891
3788 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
3789 is marked by compiler as living on a line.
3790 (get_cycles_count): Remove usage of the union.
3791 (output_intermediate_file): Likewise.
3792 (find_source): Fix GNU coding style.
3793 (accumulate_line_counts): Remove old non-all block mode.
3794 (output_lines): Remove usage of the union.
3795 * profile.c (output_location): Include all BBs, even if
3796 belonging to a same line (and file) as a previous BB.
3798 2017-04-28 Martin Liska <mliska@suse.cz>
3800 * gcov.c (process_args): Handle new argument 'w'.
3801 (read_graph_file): Assign ID to BBs.
3802 (output_branch_count): Display BB # if verbose flag is set.
3803 (output_lines): Likewise for arcs.
3804 (print_usage): Add '--verbose' option help.
3805 * doc/gcov.texi: Document --verbose (-w) option.
3807 2017-04-28 Martin Liska <mliska@suse.cz>
3809 * gcov.c (struct block_location_info): New struct.
3810 (process_file): Fill up the new structure.
3811 (read_graph_file): Replace usage of encoding by the newly added
3813 (add_line_counts): Likewise.
3814 (accumulate_line_counts): Remove usage of the union.
3815 (function_info::function_info): New function.
3816 (function_info::~function_info): Likewise.
3817 (process_file): Call delete instead of release_function.
3818 (release_function): Release the function.
3819 (release_structures): Call delete instead of release_function.
3820 (solve_flow_graph): Replace usage of num_blocks.
3821 (find_exception_blocks): Likewise.
3822 (output_lines): Fix GNU coding style.
3824 2017-04-28 Martin Liska <mliska@suse.cz>
3827 * coverage.c (coverage_remove_note_file): New function.
3828 * coverage.h: Declare the function.
3829 * toplev.c (finalize): Clean if an error has been seen.
3831 2017-04-28 Martin Liska <mliska@suse.cz>
3833 PR gcov-profile/80031
3834 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
3835 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
3836 * gcov.c (read_graph_file): Read just number of blocks.
3837 * profile.c (branch_prob): Do not stream 0 flags per a basic
3840 2017-04-28 Martin Liska <mliska@suse.cz>
3842 * gcov-dump.c (tag_*): Add new argument to declarations.
3843 (dump_gcov_file): Likewise.
3844 (tag_blocks): Add and use new argument depth.
3845 (tag_arcs): Likewise.
3846 (tag_lines): Likewise.
3847 (tag_counters): Likewise.
3848 (tag_summary): Likewise.
3849 (dump_working_sets): Use depth to do a proper indentation.
3851 2017-04-28 Jakub Jelinek <jakub@redhat.com>
3854 * cgraph.h (symtab_node::debug_symtab): No longer inline.
3855 * symtab.c (symtab_node::debug_symtab): Move definition here.
3857 2017-04-28 Richard Biener <rguenther@suse.de>
3859 * lto-streamer.h (LTO_major_version): Bump to 7.
3861 2017-04-28 Richard Biener <rguenther@suse.de>
3863 * tree-vrp.c (assert_info): New struct.
3864 (add_assert_info): New helper.
3865 (register_edge_assert_for_2): Refactor to add asserts to a vector
3867 (register_edge_assert_for_1): Likewise.
3868 (register_edge_assert_for): Likewise.
3869 (finish_register_edge_assert_for): New helper actually registering
3870 asserts where live on edge.
3871 (find_conditional_asserts): Adjust.
3872 (find_switch_asserts): Likewise.
3873 (evrp_dom_walker::try_find_new_range): Generalize.
3874 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
3876 2017-04-27 Marek Polacek <polacek@redhat.com>
3879 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
3880 arg10 and arg11 to itype.
3882 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
3884 * doc/extend.texi (Object Size Checking): Improve grammar.
3886 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
3889 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
3890 that the logic for permitting reciprocal estimates matches that
3893 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3896 * tree.c (type_cache_hasher::equal): Only compare
3897 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
3898 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
3899 non-aggregate element types.
3900 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
3901 about the flag on ARRAY_TYPEs in the comment, formatting fix.
3903 2017-04-27 Richard Biener <rguenther@suse.de>
3906 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
3907 stripping ARRAY_REFs from MEM_EXPR make sure we're not
3908 keeping a reference to a trailing array.
3910 2017-04-27 Richard Biener <rguenther@suse.de>
3913 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
3914 being in loop-closed SSA form conservatively.
3915 (chrec_fold_multiply_poly_poly): Likewise.
3917 2017-04-27 Tamar Christina <tamar.christina@arm.com>
3920 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
3921 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
3923 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3926 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
3927 (aarch64_function_arg_alignment): Return unsigned int again, but still
3928 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
3929 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
3930 Don't emit -Wpsabi note.
3931 (aarch64_function_arg_boundary): Likewise.
3932 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
3935 2017-04-26 Nathan Sidwell <nathan@acm.org>
3937 * tree.h (crc32_unsigned_n): Declare.
3938 (crc32_unsigned, crc32_unsigned): Make inline.
3939 * tree.c (crc32_unsigned_bits): Replace with ...
3940 (crc32_unsigned_n): ... this.
3941 (crc32_unsigned, crc32_byte): Remove.
3942 (crc32_string): Remove unnecessary braces.
3944 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
3946 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
3947 * ipa-inline-analysis.c (MAX_TIME): Remove.
3948 (account_size_time): Use sreal for time.
3949 (dump_inline_summary): Update.
3950 (estimate_function_body_sizes): Update.
3951 (estimate_edge_size_and_time): Update.
3952 (estimate_calls_size_and_time): Update.
3953 (estimate_node_size_and_time): Update.
3954 (inline_merge_summary): Update.
3955 (inline_update_overall_summary): Update.
3956 (estimate_time_after_inlining): Update.
3957 (inline_read_section): Update.
3958 (inline_write_summary): Update.
3959 * ipa-inline.c (compute_uninlined_call_time): Update.
3960 (compute_inlined_call_time): Update.
3961 (recursive_inlining): Update.
3962 (inline_small_functions): Update.
3963 (dump_overall_stats): Update.
3964 * ipa-inline.h: Include sreal.h.
3965 (size_time_entry): Turn time to sreal.
3966 (inline_summary): Turn self_time nad time to sreal.
3968 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
3970 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
3972 (sreal::stream_out, sreal::stream_in): New.
3973 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
3975 2017-04-25 Jakub Jelinek <jakub@redhat.com>
3977 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
3980 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
3983 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3985 (dimode_scalar_chain::compute_convert_gain): Ditto.
3986 (dimode_scalar_chain::make_vector_copies): Ditto.
3987 (dimode_scalar_chain::convert_reg): Ditto.
3988 (dimode_scalar_chain::convert_insn): Ditto.
3989 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
3990 (VI248_AVX512BW_1): New mode iterator.
3991 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
3992 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
3995 2017-04-25 Martin Sebor <msebor@redhat.com>
3997 PR tree-optimization/80497
3998 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
3999 constants are representable in HOST_WIDE_INT.
4000 (parse_directive): Ditto.
4002 2017-04-25 Martin Sebor <msebor@redhat.com>
4005 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
4006 (new_zero_array): Adjust signature.
4007 (dom_info::dom_init): Used unsigned rather that size_t.
4008 (dom_info::dom_info): Same.
4010 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4011 Jakub Jelinek <jakub@redhat.com>
4014 * config/arm/arm.c: Include gimple.h.
4015 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4016 returns negative, increment ncrn only if it returned positive.
4017 (arm_needs_doubleword_align): Return int instead of bool,
4018 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
4019 members, but if there is any such non-FIELD_DECL
4020 > PARM_BOUNDARY aligned decl, return -1 instead of false.
4021 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
4022 returns negative, increment nregs only if it returned positive.
4023 (arm_setup_incoming_varargs): Likewise.
4024 (arm_function_arg_boundary): Emit -Wpsabi note if
4025 arm_needs_doubleword_align returns negative, return
4026 DOUBLEWORD_ALIGNMENT only if it returned positive.
4028 2017-04-25 Marek Polacek <polacek@redhat.com>
4031 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
4032 first argument to type.
4034 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
4037 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
4038 type checks to test for compatibility instead of equality.
4040 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4041 Jakub Jelinek <jakub@redhat.com>
4044 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
4046 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
4047 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
4048 the alignment computation, but return their maximum in warn_alignment.
4049 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
4050 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
4052 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
4053 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
4056 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4058 * config/arc/simdext.md (dmpyh): Fix typo.
4060 2017-04-25 Richard Biener <rguenther@suse.de>
4062 PR tree-optimization/80492
4063 * alias.c (compare_base_decls): Handle registers with asm
4064 specification conservatively.
4065 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4066 compare_base_decls returning dont-know properly.
4068 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4070 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
4071 (legitimate_offset_address_p): New function.
4072 (arc_legitimate_address_p): Use above function.
4074 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4076 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
4078 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4080 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
4081 ACCH registers whenever they are available.
4083 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4085 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
4086 double regs fix when not used.
4088 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4090 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
4092 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
4093 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
4095 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4097 * config/arc/arc.c (arc_output_addsi): Check for h-register class
4098 when emitting short ADD instructions.
4100 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
4102 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
4104 (cmpsi_cc_c_insn): Likewise.
4105 (cbranchsi4_scratch): Compute proper instruction length using
4106 compact_hreg_operand.
4107 * config/arc/predicates.md (compact_hreg_operand): New predicate.
4109 2017-04-25 Richard Biener <rguenther@suse.de>
4112 * passes.c (pass_manager::pass_manager): Initialize
4115 2017-04-25 Richard Biener <rguenther@suse.de>
4117 PR tree-optimization/79201
4118 * tree-ssa-sink.c (statement_sink_location): Handle calls.
4120 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4123 * config/s390/vector.md: Split MEM->GPR vector moves for
4124 non-s_operand addresses.
4126 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4129 * config/s390/predicates.md (reload_const_wide_int_operand): New
4131 * config/s390/s390.md ("movti"): Remove d/P alternative.
4132 ("movti_bigconst"): New pattern definition.
4134 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4137 * s390-protos.h (s390_expand_cs_hqi): Removed.
4138 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
4139 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
4140 modes as well as CCZ1mode and CCZmode.
4141 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
4142 signature of s390_emit_compare_and_swap.
4143 (s390_expand_cs_hqi): Likewise, make static.
4144 (s390_expand_cs_tdsi): Generate an explicit compare before trying
4145 compare-and-swap, in some cases.
4146 (s390_expand_cs): Wrapper function.
4147 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
4149 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
4150 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
4151 patterns for small and large integers. Forbid symref memory operands.
4152 Move expander to s390.c. Require cc register.
4153 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
4154 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
4155 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
4156 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
4157 symref memory operands. Remove CC mode and call s390_match_ccmode
4159 ("atomic_exchange<mode>"): Allow and implement all integer modes.
4161 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4163 * config/s390/s390.md (define_peephole2): New peephole to help
4164 combining the load-and-test pattern with volatile memory.
4166 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4168 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
4169 with CCZmode for TARGET_Z196.
4171 2017-04-25 Jakub Jelinek <jakub@redhat.com>
4173 PR rtl-optimization/80501
4174 * combine.c (make_compound_operation_int): Set subreg_code to SET
4175 even for AND with mask of the sign bit of mode.
4177 PR rtl-optimization/80500
4178 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
4179 sum's initial value.
4181 2017-04-25 Julian Brown <julian@codesourcery.com>
4182 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4184 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
4186 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
4188 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
4190 2017-04-25 Julian Brown <julian@codesourcery.com>
4191 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4193 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
4194 (thunderx2t99_sha): New Reservation.
4196 2017-04-25 Julian Brown <julian@codesourcery.com>
4197 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4199 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
4200 type for 1-element load.
4202 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
4204 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
4206 2017-04-24 Martin Jambor <mjambor@suse.cz>
4208 PR tree-optimization/80293
4209 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
4210 char arrays not totally scalarizable if it is false.
4211 (analyze_all_variable_accesses): Pass correct value in the new
4212 parameter. Add a statistics counter.
4214 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
4217 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
4219 2017-04-24 Richard Biener <rguenther@suse.de>
4221 PR tree-optimization/80494
4222 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
4223 out for complex types.
4225 2017-04-24 Richard Biener <rguenther@suse.de>
4227 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
4228 * tree-ssa-sccvn.c (print_scc): Print SCC size.
4229 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
4230 (DFS): Adjust and never fail.
4231 (sccvn_dom_walker::fail): Remove.
4232 (sccvn_dom_walker::before_dom_children): Adjust.
4233 (run_scc_vn): Likewise and never fail.
4234 * tree-ssa-pre.c (pass_pre::execute): Adjust.
4235 (pass_fre::execute): Likewise.
4237 2017-04-24 Richard Biener <rguenther@suse.de>
4239 PR tree-optimization/79725
4240 * tree-ssa-sink.c (statement_sink_location): Return whether
4241 failure reason was zero uses. Move that check later.
4242 (sink_code_in_bb): Deal with zero uses by removing the stmt
4245 2017-04-24 Richard Biener <rguenther@suse.de>
4248 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
4249 pointer-based references.
4251 2017-04-24 Richard Biener <rguenther@suse.de>
4254 * pass_manager.h (pass_manager::operator new): Remove.
4255 (pass_manager::operator delete): Likewise.
4256 * passes.c (pass_manager::operator new): Remove.
4257 (pass_manager::operator delete): Likewise.
4258 (pass_manager::pass_manager): Zero individual pass members.
4260 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
4263 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
4264 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
4265 Check "XEXP (src, 1)" operand here.
4266 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
4267 Check "XEXP (src, 1)" operand here.
4268 (dimode_scalar_chain::make_vector_copies): Detect count register
4269 of a shift instruction. Zero extend count register from QImode
4270 to DImode to satisfy vector shift pattern count operand predicate.
4271 Substitute vector shift count operand with a DImode copy.
4272 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
4275 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
4277 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
4278 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
4279 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
4280 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
4281 (UNSPEC_NOREX_MEM): Remove definition.
4283 2017-04-21 Richard Biener <rguenther@suse.de>
4285 PR tree-optimization/79547
4286 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4287 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
4288 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
4289 without any constraints.
4291 2017-04-21 Richard Biener <rguenther@suse.de>
4293 PR tree-optimization/78847
4294 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
4296 2017-04-21 Richard Biener <rguenther@suse.de>
4298 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
4299 (build_distinct_type_copy): Likewise.
4300 (build_variant_type_copy): Likewise.
4301 * tree.c (build_qualified_type): Pass down mem-stat info.
4302 (build_distinct_type_copy): Likewise.
4303 (build_variant_type_copy): Likewise.
4305 2017-04-21 Richard Biener <rguenther@suse.de>
4307 PR tree-optimization/80237
4308 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
4310 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
4311 for a simplified result.
4313 2016-04-21 Richard Biener <rguenther@suse.de>
4315 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
4316 sth as strict as a simple_iv but a chrec without symbols and an
4317 operand defined in the loop we are peeling (and not some subloop).
4318 (propagate_constants_for_unrolling): Propagate all constants.
4320 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
4323 * config/i386/i386.c (print_reg): Remove assert for disalowed
4324 regno values, call output_operand_lossage instead.
4326 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
4329 * config/i386/constraints.md (Yc): New register constraint.
4330 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
4331 Use Yc constraint for alternative 2 of operand 0. Remove
4332 preferred_for_speed attribute.
4334 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4336 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
4337 lastprivate clauses in SIMT case.
4339 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
4341 * doc/invoke.texi (-Wextra-semi): Document new warning option.
4343 2017-04-20 Richard Biener <rguenther@suse.de>
4345 PR tree-optimization/57796
4346 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
4348 (vect_model_load_cost): Cost gathers as N scalar loads.
4350 2017-04-20 Richard Biener <rguenther@suse.de>
4352 * ggc-page.c (ggc_allocated_p): Rename to ...
4353 (safe_lookup_page_table_entry): ... this and return the lookup
4355 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
4357 2017-04-20 Richard Biener <rguenther@suse.de>
4359 PR tree-optimization/80453
4360 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
4361 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
4362 from the conditions.
4363 (vn_phi_eq): Pass them down.
4364 (vn_phi_lookup): Record them.
4365 (vn_phi_insert): Likewise.
4367 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
4369 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
4370 uninitialized variable warning to avoid buffer overrun.
4372 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4375 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
4376 is suppressed for '{ 0 }' in C.
4378 2017-04-20 Jakub Jelinek <jakub@redhat.com>
4380 * BASE-VER: Set to 8.0.0.
4382 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
4384 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
4385 priority .init_array and .fini_array section with SECTION_NOTYPE
4388 2017-04-20 Jakub Jelinek <jakub@redhat.com>
4391 * tree.h (build_array_type): Add typeless_storage default argument.
4392 * tree.c (type_cache_hasher::equal): Also compare
4393 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
4394 (build_array_type): Add typeless_storage argument, set
4395 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
4397 (build_nonshared_array_type): Adjust build_array_type_1 caller.
4398 (build_array_type): Likewise. Add typeless_storage argument.
4400 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
4401 Jakub Jelinek <jakub@redhat.com>
4403 PR tree-optimization/80426
4404 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
4405 operation on symbolic operands, also compute the overflow for the
4406 invariant part when the operation degenerates into a negation.
4408 2017-04-19 Jakub Jelinek <jakub@redhat.com>
4411 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
4412 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
4415 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
4417 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
4420 * config/avr/avr.c (tree.h): Include it.
4421 (cgraph.h): Include it.
4422 (avr_encode_section_info): Don't warn for uninitialized progmem
4423 variable if it's just an alias.
4425 2017-04-19 Richard Biener <rguenther@suse.de>
4428 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
4429 when needed by AutoPGO.
4431 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
4434 * doc/lto.texi: Remove an extra 'that'.
4436 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
4438 PR rtl-optimization/80429
4439 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
4440 are only used in debug insns.
4442 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
4443 Vladimir Makarov <vmakarov@redhat.com>
4445 * config/sparc/predicates.md (input_operand): Add comment. Return
4446 true for any memory operand when LRA is in progress.
4447 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
4449 2017-04-18 Jeff Law <law@redhat.com>
4452 * mips.md ({return,simple_return}_internal): Do not overwrite
4455 2017-04-18 Jakub Jelinek <jakub@redhat.com>
4457 PR tree-optimization/80443
4458 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
4459 instead of adding 1, subtract -1 and similarly instead of subtracting
4462 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
4464 PR rtl-optimization/80357
4465 * haifa-sched.c (tmp_bitmap): New variable.
4466 (model_recompute): Handle duplicate use records.
4467 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
4468 (free_global_sched_pressure_data): Free it.
4470 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4473 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4474 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
4475 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
4476 instead of SYSTEM_HEADER_DIR.
4478 2017-04-18 Jeff Law <law@redhat.com>
4481 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
4482 predecessors after walking up the insn chain.
4484 2017-04-18 Jakub Jelinek <jakub@redhat.com>
4487 * dwarf2out.c (modified_type_die): Try harder not to emit internal
4488 sizetype type into debug info.
4490 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4493 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
4494 unneeded test for TARGET_UPPER_REGS_SF.
4495 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
4497 2017-04-18 Jakub Jelinek <jakub@redhat.com>
4500 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
4501 instead of gsi_after_labels.
4503 2017-04-18 Jeff Law <law@redhat.com>
4505 * regcprop.c (maybe_mode_change): Avoid creating copies of the
4509 2017-04-13 Jeff Law <law@redhat.com>
4510 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
4511 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
4513 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
4516 * config/avr/avr.c (intl.h): Include it.
4517 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
4519 2017-04-18 Martin Liska <mliska@suse.cz>
4521 PR gcov-profile/78783
4522 * gcov-tool.c (gcov_output_files): Validate that destination
4523 file is either removed by the tool or by a user.
4525 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
4526 Guy Benyei <guybe@mellanox.com>
4528 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
4529 block, and do not negate it, the stored id is already negative.
4531 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
4533 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
4535 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4538 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
4539 masks of options that should be turned off if the VSX vector
4540 options are turned off.
4541 (OTHER_P8_VECTOR_MASKS): Likewise.
4542 (OTHER_VSX_VECTOR_MASKS): Likewise.
4543 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
4544 rs6000_disable_incompatible_switches to validate no type switches
4546 (rs6000_incompatible_switch): New function to disallow turning on
4547 other vector options if -mno-vsx, -mno-power8-vector, or
4548 -mno-power9-vector are specified.
4550 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
4552 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
4554 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
4556 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
4557 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
4558 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
4559 (ARG_POINTER_CFA_OFFSET): Likewise.
4561 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
4563 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
4564 conditions to take advantage of various optimizations.
4566 2017-04-13 Jeff Law <law@redhat.com>
4568 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
4569 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
4570 (zero_extendsidi2_dext): Likewise.
4572 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4575 * fold-const.c (fold_ternary_loc): Revert
4576 use op0 instead of fold_convert_loc (loc, type, arg0) part of
4579 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
4581 PR rtl-optimization/80343
4582 * lra-remat.c (update_scratch_ops): Assign original hard reg to
4585 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
4588 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
4589 to ubsan_encode_value.
4591 2017-04-13 Jeff Law <law@redhat.com>
4593 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
4594 appearing in DEBUG_INSNs.
4596 2017-04-13 Martin Liska <mliska@suse.cz>
4598 PR gcov-profile/80413
4599 * gcov-io.c (gcov_write_string): Copy to buffer just when
4600 allocated size is greater than zero.
4602 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4605 * dwarf2out.c (decls_for_scope): Ignore declarations of
4606 current_function_decl in BLOCK_NONLOCALIZED_VARS.
4608 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
4611 * ipa-visibility.c (non_local_p): Fix typos.
4612 (localize_node): When localizing symbol in same comdat group,
4613 dissolve the group only when we know external symbols are going
4615 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
4617 2017-04-12 Jakub Jelinek <jakub@redhat.com>
4619 PR tree-optimization/79390
4620 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
4621 order does not result in usable sequence, retry with reversed operand
4627 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
4628 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
4629 op0 instead of fold_convert_loc (loc, type, arg0).
4631 2017-04-12 Jeff Law <law@redhat.com>
4633 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
4634 has a delay slot in the generated code.
4636 * config/cris/cris.md (cris_preferred_reload_class): Return
4637 GENNONACR_REGS rather than GENERAL_REGS.
4639 2017-04-12 Jakub Jelinek <jakub@redhat.com>
4642 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
4643 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
4644 signedness of the result type.
4646 2017-04-12 Richard Biener <rguenther@suse.de>
4647 Jeff Law <law@redhat.com>
4649 PR tree-optimization/80359
4650 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
4651 trim stores to TARGET_MEM_REFs.
4653 2017-04-12 Richard Biener <rguenther@suse.de>
4655 PR tree-optimization/79390
4656 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
4657 threading case even more.
4659 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
4662 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
4663 for quad_address_p for TImode, instead of just not indexed_address.
4665 2017-04-12 Richard Biener <rguenther@suse.de>
4666 Bernd Edlinger <bernd.edlinger@hotmail.de>
4669 * alias.c (component_uses_parent_alias_set_from): Handle
4670 TYPE_TYPELESS_STORAGE.
4671 (get_alias_set): Likewise.
4672 * tree-core.h (tree_type_common): Add typeless_storage flag.
4673 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
4674 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
4675 for types containing members with TYPE_TYPELESS_STORAGE.
4676 (place_field): Likewise.
4677 (layout_type): Likewise for ARRAY_TYPE.
4678 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
4679 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
4680 TYPE_TYPELESS_STORAGE.
4681 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4683 2017-04-12 Jakub Jelinek <jakub@redhat.com>
4686 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
4687 first argument to type.
4689 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4693 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4694 CONST0_RTX (mode) rather than const0_rtx where appropriate.
4695 (rs6000_expand_binop_builtin): Likewise.
4696 (rs6000_expand_ternop_builtin): Likewise; also add missing
4697 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
4698 vshasigma built-ins.
4699 * doc/extend.texi: Document that vec_xxpermdi's third argument
4702 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
4704 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
4705 Use shift_const cost parameter when calculating gain of STV shifts.
4707 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
4709 PR rtl-optimization/70478
4710 * lra-constraints.c (process_alt_operands): Check memory for
4711 disfavoring memory insn operand.
4713 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4716 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
4717 left shift in unsigned HOST_WIDE_INT type.
4719 PR rtl-optimization/80385
4720 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
4721 (not (neg X)) into (plus X -1) for complex or non-integral modes.
4724 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
4725 if they have any depend clauses.
4727 2017-04-11 Martin Liska <mliska@suse.cz>
4730 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
4731 * ipa-split.c (split_function): Create a local comdat symbol
4732 if caller is in a comdat group.
4734 2017-04-11 Martin Liska <mliska@suse.cz>
4737 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
4740 2017-04-11 Martin Sebor <msebor@redhat.com>
4743 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
4744 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
4746 (directive::set_width, directive::set_precision, format_character):
4748 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
4751 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
4754 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
4755 conflict, set target->arch_name instead of target->cpu_name.
4757 2017-04-11 Richard Biener <rguenther@suse.de>
4759 PR tree-optimization/80374
4760 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
4761 build_zero_cst, remove fold_convertible_p check again.
4763 2017-04-11 Martin Liska <mliska@suse.cz>
4766 * ubsan.c (instrument_object_size): Do not instrument register
4769 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4772 * config/i386/i386-builtin-types.def
4773 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
4774 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
4775 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
4776 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
4777 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
4778 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
4779 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
4780 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
4781 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
4782 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
4783 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
4784 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
4785 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
4786 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
4787 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
4788 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
4789 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
4790 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
4791 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
4792 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
4793 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
4794 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
4795 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
4796 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
4797 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
4798 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
4799 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
4800 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
4801 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
4802 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
4803 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
4804 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
4805 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
4806 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
4807 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
4808 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
4809 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
4810 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
4811 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
4812 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
4813 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
4814 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
4815 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
4816 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
4817 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
4818 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
4820 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
4821 flag to second_arg_count, handle 4 argument function type _COUNT
4822 aliases, handle second_arg_count on second argument rather than last.
4824 2017-04-10 Jeff Law <law@redhat.com>
4826 PR tree-optimization/80374
4827 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
4828 record anything if we can not convert integer_zero_node to the
4831 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
4834 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4835 Enhance special handling given to the TARGET_P9_MINMAX option in
4836 relation to certain other options.
4838 2017-04-10 Bin Cheng <bin.cheng@arm.com>
4840 PR tree-optimization/80153
4841 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
4842 remove POINTER_PLUS_EXPR's base part directly, rather than through
4845 2017-04-10 Richard Biener <rguenther@suse.de>
4846 Bin Cheng <bin.cheng@arm.com>
4848 PR tree-optimization/80153
4849 * tree-affine.c (aff_combination_to_tree): Get base pointer from
4850 the first element of pointer type aff_tree. Build result expr in
4852 (add_elt_to_tree): Convert to type unconditionally. Remove other
4854 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
4855 (rewrite_use_nonlinear_expr): Check invariant using iv information.
4857 2017-04-10 Richard Biener <rguenther@suse.de>
4859 * tree-ssa-structalias.c (find_func_aliases): Properly handle
4862 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
4864 PR rtl-optimization/70478
4865 * lra-constraints.c (curr_small_class_check): New.
4866 (update_and_check_small_class_inputs): New.
4867 (process_alt_operands): Update curr_small_class_check. Disfavor
4868 alternative insn memory operands. Check available regs for small
4871 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
4874 * config/mips/mips.opt (-mvirt): Update description.
4875 * doc/invoke.texi (-mvirt): Likewise.
4877 2017-04-10 Richard Biener <rguenther@suse.de>
4880 * fold-const.c (fold_binary_loc): Look at unstripped ops when
4881 looking for NEGATE_EXPR in -A / -B to A / B folding.
4883 2017-04-10 Martin Liska <mliska@suse.cz>
4885 PR gcov-profile/80224
4886 * gcov.c (print_usage): Fix usage string.
4887 (get_gcov_intermediate_filename): Remove.
4888 (output_gcov_file): Use both for normal and intermediate format.
4889 (generate_results): Do not initialize special file for
4890 intermediate format.
4892 2017-04-10 Richard Biener <rguenther@suse.de>
4894 PR tree-optimization/80304
4895 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
4898 2017-04-10 Nathan Sidwell <nathan@acm.org>
4901 * config/rs6000/rs6000.c (rs6000_vector_type): New.
4902 (rs6000_init_builtins): Use it.
4904 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4906 * config/arm/arm.md (<mrc>): Add mode to SET source.
4909 2017-04-10 Richard Biener <rguenther@suse.de>
4912 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
4914 2017-04-10 Jakub Jelinek <jakub@redhat.com>
4917 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
4918 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
4919 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
4920 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
4921 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
4922 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
4923 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
4924 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
4925 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
4926 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
4927 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
4928 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
4929 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
4930 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
4931 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
4932 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
4933 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
4934 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
4935 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
4936 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
4937 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
4938 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
4939 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
4941 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
4943 PR rtl-optimization/70478
4944 * lra-constraints.c: Reverse the last patch.
4946 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
4948 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
4949 Add comment for WCHAR_T.
4951 2017-04-08 Martin Liska <mliska@suse.cz>
4954 2017-04-07 Martin Liska <mliska@suse.cz>
4957 * ipa-split.c (split_function): Add function part to a same comdat
4960 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4963 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
4965 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
4967 * rs6000/rs6000.c (vec_load_pendulum): Rename...
4968 (vec_pairing): ...to this.
4969 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
4970 (rs6000_sched_init): Adjust for name change.
4971 (struct rs6000_sched_context): Likewise.
4972 (rs6000_init_sched_context): Likewise.
4973 (rs6000_set_sched_context): Likewise.
4975 2017-04-07 Jakub Jelinek <jakub@redhat.com>
4981 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
4983 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
4984 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
4985 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
4987 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
4989 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
4991 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
4993 PR rtl-optimization/70703
4994 * ira-color.c (update_conflict_hard_regno_costs): Use
4995 int64_t instead of HOST_WIDE_INT.
4997 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
4999 PR rtl-optimization/70478
5000 * lra-constraints.c (process_alt_operands): Disfavor alternative
5001 insn memory operands.
5003 2017-04-07 Jeff Law <law@redhat.com>
5005 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
5006 CALL and NOTE_INSN_CALL_ARG_LOCATION.
5008 2017-04-07 Martin Liska <mliska@suse.cz>
5011 * config/aarch64/aarch64.c (aarch64_process_target_attr):
5012 Show error message instead of an ICE.
5014 2017-04-07 Martin Liska <mliska@suse.cz>
5017 * ipa-split.c (split_function): Add function part to a same comdat
5020 2017-04-07 Richard Biener <rguenther@suse.de>
5023 * tree.c (get_unwidened): Also handle ! for_type case for
5025 * convert.c (do_narrow): Split out from ...
5026 (convert_to_integer_1): ... here. Do not pass final truncation
5027 type to get_unwidened for TRUNC_DIV_EXPR.
5029 2017-04-07 Richard Biener <rguenther@suse.de>
5031 * tree-affine.c (wide_int_ext_for_comb): Take type rather
5033 (aff_combination_const): Adjust.
5034 (aff_combination_scale): Likewise.
5035 (aff_combination_add_elt): Likewise.
5036 (aff_combination_add_cst): Likewise.
5037 (aff_combination_convert): Likewise.
5038 (add_elt_to_tree): Likewise. Remove unused argument.
5039 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
5041 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
5043 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
5045 * config/arm/arm.c (arm_default_short_enums): Use
5046 ARM_DEFAULT_SHORT_ENUMS.
5047 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
5049 2017-04-06 Jakub Jelinek <jakub@redhat.com>
5052 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
5053 members with redundant out-of-class redeclaration.
5055 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
5058 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
5059 * config/i386/i386.md (*zero_extendsidi2):
5060 Add (?*x,*x) and (?*v,*v) alternatives.
5062 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
5065 * config/i386/i386.c (ix86_expand_builtin)
5066 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
5067 mode from insn data. Convert operands to insn operand mode.
5068 Copy operands that don't satisfy insn predicate to a register.
5070 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
5072 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
5075 2017-04-06 Richard Biener <rguenther@suse.de>
5077 PR tree-optimization/80334
5078 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
5079 preserve alignment of accesses.
5081 2017-04-06 Richard Biener <rguenther@suse.de>
5083 PR tree-optimization/80262
5084 * tree-sra.c (build_ref_for_offset): Preserve address-space
5086 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5087 Drop useless address-space information on MEM_REF offsets.
5089 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
5091 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
5093 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
5095 PR rtl-optimization/70703
5096 * ira-color.c (update_conflict_hard_regno_costs): Use
5097 HOST_WIDE_INT instead of long.
5099 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
5102 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
5103 not defined for x86_64 target. Add -mmmx target option when __SSE2__
5105 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
5106 for x86_64 target. Handle -m3dnowa option.
5108 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
5110 PR rtl-optimization/70703
5111 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
5112 (update_conflict_hard_regno_costs): Use long instead of unsigned
5113 arithmetic for cost calculation.
5115 2017-04-05 Jakub Jelinek <jakub@redhat.com>
5116 Bernd Edlinger <bernd.edlinger@hotmail.de>
5119 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
5122 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
5125 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
5126 ptr_mode with Pmode throughout.
5127 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
5128 into probe_stack_range and use DImode.
5130 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5133 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
5134 call_eh_return is true.
5136 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5138 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
5139 Initialize last_match_fntype_index.
5141 2017-04-05 Jakub Jelinek <jakub@redhat.com>
5144 * tree-nvr.c: Include internal-fn.h.
5145 (pass_return_slot::execute): Ignore internal calls without
5148 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5149 Richard Biener <rguenther@suse.de>
5152 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
5153 captures used multiple times, except for the last use.
5154 * generic-match-head.c: Include gimplify.h.
5156 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5158 PR tree-optimization/79390
5159 * target.h (struct noce_if_info): Declare.
5160 * targhooks.h (default_noce_conversion_profitable_p): Declare.
5161 * target.def (noce_conversion_profitable_p): New target hook.
5162 * ifcvt.h (struct noce_if_info): New type, moved from ...
5163 * ifcvt.c (struct noce_if_info): ... here.
5164 (noce_conversion_profitable_p): Renamed to ...
5165 (default_noce_conversion_profitable_p): ... this. No longer
5167 (noce_try_store_flag_constants, noce_try_addcc,
5168 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
5169 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
5170 instead of noce_conversion_profitable_p.
5171 * config/i386/i386.c: Include ifcvt.h.
5172 (ix86_option_override_internal): Don't override
5173 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
5174 (ix86_noce_conversion_profitable_p): New function.
5175 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
5176 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
5177 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
5178 * doc/tm.texi: Regenerated.
5180 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5182 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
5185 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5188 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
5189 instructions for small multiply cores.
5191 2017-04-04 Jeff Law <law@redhat.com>
5193 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
5195 (mips_expand_vec_perm_const): Initialize elements in orig_perm
5196 that are not set by the loop over the elements.
5198 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5201 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
5202 int mode, convert_modes it to mode as unsigned, otherwise use
5203 lowpart_subreg to mode rather than SImode.
5204 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
5205 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
5206 Use DImode instead of SImode for the shift count operand.
5207 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
5210 2017-04-04 Richard Biener <rguenther@suse.de>
5213 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
5214 arithmetic done for the negate or the plus. Simplify.
5215 (A - (-B) -> A + B): Likewise.
5216 * fold-const.c (split_tree): Make sure to not negate pointers.
5218 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
5220 PR rtl-optimization/60818
5221 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
5222 a compare of comparisons with the thing compared if this results
5223 in a different machine mode.
5225 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
5227 * alias.c (base_alias_check): Fix typo in comment.
5228 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
5229 * cgraphunit.c (symbol_table::compile): Likewise.
5230 * collect2.c (maybe_run_lto_and_relink): Likewise.
5231 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
5232 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
5233 * config/avr/avr.c (avr_map_op_t): Likewise.
5234 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
5235 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
5236 * config/epiphany/epiphany.md (movcc): Likewise.
5237 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
5238 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
5240 * config/mips/mips.c (mips_save_restore_reg): Likewise.
5241 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
5242 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
5243 * config/sh/sh.c (sh_rtx_costs): Likewise.
5244 * fold-const.c (fold_truth_andor): Likewise.
5245 * genautomata.c (collapse_flag): Likewise.
5246 * gengtype.h (struct type::u::s): Likewise.
5247 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
5248 * input.c (FORMAT_AMOUNT): Likewise.
5249 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
5250 (known_aggs_to_agg_replacement_list): Likewise.
5251 * ipa-inline-analysis.c: Likewise.
5252 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
5253 * ipa-polymorphic-call.c
5254 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
5255 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
5256 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
5258 * modulo-sched.c (apply_reg_moves): Likewise.
5259 * omp-expand.c (build_omp_regions_1): Likewise.
5260 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
5261 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
5262 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
5263 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5264 * value-prof.c: Likewise.
5265 * var-tracking.c (val_reset): Likewise.
5267 2017-04-03 Richard Biener <rguenther@suse.de>
5269 PR tree-optimization/80275
5270 * fold-const.c (split_address_to_core_and_offset): Handle
5273 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
5275 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
5276 descriptors is at least equal to that of functions.
5278 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
5280 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
5282 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
5285 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
5286 (mov<IMOD4:mode>): New expander.
5287 (*mov<IMOD4:mode>_internal): New insn and split pattern.
5289 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
5291 PR rtl-optimization/79405
5292 * fwprop.c (propagations_left): New variable.
5293 (forward_propagate_into): Decrement it.
5294 (fwprop_init): Initialize it.
5295 (fw_prop): If the variable has reached zero, stop propagating.
5296 (fwprop_addr): Ditto.
5298 2017-03-31 Jakub Jelinek <jakub@redhat.com>
5301 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
5302 a FUNCTION_DECL, pass it as decl instead of origin to
5305 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
5307 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
5310 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
5313 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
5314 TARGET_VSX_SMALL_INTEGER.
5316 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5318 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
5319 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
5321 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
5323 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
5324 extraction from odd-numbered MSA register.
5326 2017-03-31 Jakub Jelinek <jakub@redhat.com>
5329 * expmed.c (store_bit_field_1): Don't attempt to create
5330 a word subreg out of hard registers wider than word if they
5331 have HARD_REGNO_NREGS of 1 for their mode.
5334 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
5335 conversions to integer types wider than word and pointer.
5338 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
5339 (rtx_equal_for_cselib_p): Pass 0 to it.
5340 * cselib.c (cselib_hasher::equal): Likewise.
5341 (rtx_equal_for_cselib_1): Add depth argument. If depth
5342 is 128, don't look up VALUE locs and punt. Increment
5343 depth in recursive calls when walking VALUE locs.
5345 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
5347 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
5348 (make_gcov_file_name): Use the canonical path name for generating
5350 (read_line): Fix handling of files with ascii null bytes.
5352 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
5354 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
5355 to initialise a vector register instead
5356 of using a const_int.
5358 2017-03-30 Jakub Jelinek <jakub@redhat.com>
5360 PR translation/80189
5361 * gimplify.c (omp_default_clause): Use %qs instead of %s in
5362 diagnostic messages.
5364 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
5367 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
5368 (dfp_diex_<mode>): Update mode of operand 1.
5369 * doc/extend.texi (dxex, dxexq): Document change to return type.
5370 (diex, diexq): Document change to argument type.
5372 2017-03-30 Martin Jambor <mjambor@suse.cz>
5375 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
5376 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
5377 it reflects the signature changes performed at the callee side.
5378 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
5379 to cgraph_build_function_type_skip_args.
5380 (build_function_decl_skip_args): Adjust call to the above function.
5382 2017-03-30 Jakub Jelinek <jakub@redhat.com>
5385 * config/i386/sse.md
5386 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
5387 register as dest whenever it is a MEM not rtx_equal_p to the
5388 corresponding dup operand, and when forcing into reg move the
5389 reg into the memory afterwards.
5390 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
5391 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
5392 for the force_reg mode.
5393 (avx512vl_vextractf128<mode>): Use register as dest either
5394 always when a MEM, or when it is a MEM not rtx_equal_p to the
5395 corresponding dup operand, or even not when it is a CONST_VECTOR
5396 depending on the mode and lo vs. hi.
5397 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
5399 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
5400 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
5401 Likewise. Require that operands[2] is even.
5402 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
5403 Remove extraneous parens. Require that operands[2] is a multiple
5405 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
5406 operands[0] is a MEM if <mask_applied>, the predicates/constraints
5407 disallow memory then.
5409 2017-03-30 Richard Biener <rguenther@suse.de>
5411 PR tree-optimization/77498
5412 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
5413 to non-constants over backedges.
5415 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
5417 PR rtl-optimization/80233
5418 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
5419 as last_combined_insn. Do not test for BARRIER_P separately.
5421 2017-03-29 Andreas Schwab <schwab@suse.de>
5424 * calls.c (prepare_call_address): Convert funexp to Pmode before
5425 copying to temp reg.
5427 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5429 PR tree-optimization/80158
5430 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
5431 Handle possible future case of more than one alternate
5433 (replace_rhs_if_not_dup): Likewise.
5434 (replace_one_candidate): Likewise.
5436 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
5438 PR rtl-optimization/80193
5439 * ira.c (ira): Do not check allocation for LRA.
5441 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
5443 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
5444 (nvptx_output_simt_exit): Declare.
5445 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
5446 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
5447 (init_softstack_frame): Move initialization of crtl->is_leaf to...
5448 (nvptx_declare_function_name): ...here. Emit declaration of local
5449 memory space buffer for omp_simt_enter insn.
5450 (nvptx_output_unisimt_switch): New.
5451 (nvptx_output_softstack_switch): New.
5452 (nvptx_output_simt_enter): New.
5453 (nvptx_output_simt_exit): New.
5454 * config/nvptx/nvptx.h (struct machine_function): New fields
5455 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
5456 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
5457 (UNSPECV_SIMT_EXIT): Ditto.
5458 (omp_simt_enter_insn): New insn.
5459 (omp_simt_enter): New expansion.
5460 (omp_simt_exit): New insn.
5461 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
5463 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
5464 (expand_GOMP_SIMT_ENTER_ALLOC): New.
5465 (expand_GOMP_SIMT_EXIT): New.
5466 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
5467 (GOMP_SIMT_ENTER_ALLOC): Ditto.
5468 (GOMP_SIMT_EXIT): Ditto.
5469 * target-insns.def (omp_simt_enter): New insn.
5470 (omp_simt_exit): Ditto.
5471 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
5473 (lower_rec_simd_input_clauses): Implement SIMT privatization.
5474 (lower_rec_input_clauses): Likewise.
5475 (lower_lastprivate_clauses): Handle SIMT privatization.
5477 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
5478 (ompdevlow_adjust_simt_enter): New.
5479 (find_simtpriv_var_op): New.
5480 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
5481 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
5483 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
5484 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
5485 (copy_decl_for_dup_finish): Ditto.
5487 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
5489 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
5492 * config/i386/i386.c (ix86_option_override_internal): Always
5493 allow -mpreferred-stack-boundary=3 for 64-bit targets.
5495 2017-03-28 Bin Cheng <bin.cheng@arm.com>
5497 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
5499 2017-03-28 Bin Cheng <bin.cheng@arm.com>
5501 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
5502 mark new edge's irreducible flag accordign to it.
5503 (vect_do_peeling): Check loop preheader edge's irreducible flag
5504 and pass it to function slpeel_add_loop_guard.
5506 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
5508 PR tree-optimization/80218
5509 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5510 Update block frequencies and counts.
5512 2017-03-28 Richard Biener <rguenther@suse.de>
5514 PR tree-optimization/78644
5515 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
5516 of a simplification result we may not use it at all.
5518 2017-03-28 Richard Biener <rguenther@suse.de>
5521 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
5522 without arguments, generate default definition of a SSA name.
5524 2017-03-28 Richard Biener <rguenther@suse.de>
5527 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
5528 TYPE_REF_CAN_ALIAS_ALL references.
5529 * fold-const.c (fold_indirect_ref_1): Likewise.
5531 2017-03-28 Martin Liska <mliska@suse.cz>
5534 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
5535 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
5537 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
5538 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5540 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
5541 (EXTRA_SPECS): Define.
5542 (SUBTARGET_EXTRA_SPECS): Likewise.
5543 (SUBTARGET_CPP_SPEC): Likewise.
5544 * config/arc/elf.h (EXTRA_SPECS): Renamed to
5545 SUBTARGET_EXTRA_SPECS.
5546 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
5548 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
5550 * config/arc/simdext.md (vst64_insn): Update pattern.
5551 (vld32wh_insn): Likewise.
5552 (vld32wl_insn): Likewise.
5553 (vld64_insn): Likewise.
5554 (vld32_insn): Likewise.
5556 2017-03-28 Marek Polacek <polacek@redhat.com>
5559 * fold-const.c (fold_comparison): Use protected_set_expr_location
5560 instead of SET_EXPR_LOCATION.
5562 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
5564 * tree.c (add_expr): Avoid name lookup warning.
5566 2017-03-27 Jeff Law <law@redhat.com>
5568 PR tree-optimization/80216
5569 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
5570 function name. Limit recursion depth.
5571 (record_temporary_equivalences): Corresponding changes.
5573 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
5575 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
5578 2017-03-27 Jakub Jelinek <jakub@redhat.com>
5581 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
5583 * cfgcleanup.c (reg_note_cfa_p): New array.
5584 (insns_have_identical_cfa_notes): New function.
5585 (old_insns_match_p): Don't cross-jump in between /f
5586 and non-/f instructions. If both i1 and i2 are frame related,
5587 verify all CFA notes, their order and content.
5589 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
5592 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
5593 HImode and SImode with zero extend to DImode to one insn.
5594 (bswap<mode>2_extenddi): Likewise.
5595 (bswapsi2_extenddi): Likewise.
5596 (bswaphi2_extendsi): Likewise.
5597 (bswaphi2): Combine bswap HImode and SImode into one insn.
5598 Separate memory insns from swapping register.
5599 (bswapsi2): Likewise.
5600 (bswap<mode>2): Likewise.
5601 (bswaphi2_internal): Delete, no longer used.
5602 (bswapsi2_internal): Likewise.
5603 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
5604 store, and gpr<-gpr swap insns.
5605 (bswap<mode>2_store): Likewise.
5606 (bswaphi2_reg): Register only splitter, combine with the splitter.
5607 (bswaphi2 splitter): Likewise.
5608 (bswapsi2_reg): Likewise.
5609 (bswapsi2 splitter): Likewise.
5610 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
5611 the insns into load, store, and register/register insns.
5612 (bswapdi2_ldbrx): Likewise.
5613 (bswapdi2_load): Likewise.
5614 (bswapdi2_store): Likewise.
5615 (bswapdi2_reg): Likewise.
5617 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
5619 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
5620 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
5622 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
5625 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
5627 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5628 special handling for target option conflicts between dform
5629 options (-mpower9-dform, -mpower9-dform-vector,
5630 -mpower9-dform-scalar) and -mno-direct-move.
5632 2017-03-27 Richard Biener <rguenther@suse.de>
5634 PR tree-optimization/80181
5635 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
5637 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
5639 * config/arc/predicates.md (move_double_src_operand): Replace the
5640 call to move_double_src_operand with a call to address_operand.
5642 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
5644 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
5645 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
5646 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
5648 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
5650 * config/arc/predicates.md (long_immediate_loadstore_operand):
5651 Consider scaled addresses cases.
5653 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
5655 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
5656 restored when in interrupt.
5657 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
5658 doesn't have delay slot.
5660 2017-03-27 Richard Biener <rguenther@suse.de>
5663 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
5664 inlined thunk clones.
5666 2017-03-27 Jakub Jelinek <jakub@redhat.com>
5669 * asan.c (instrument_derefs): Copy over last operand from
5670 original COMPONENT_REF to the new COMPONENT_REF with
5671 DECL_BIT_FIELD_REPRESENTATIVE.
5672 * ubsan.c (instrument_object_size): Likewise.
5674 2017-03-27 Richard Biener <rguenther@suse.de>
5676 PR tree-optimization/80170
5677 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
5678 sure DR/SCEV didnt fold in constants we do not see when looking
5679 at the reference base alignment.
5681 2017-03-27 Richard Biener <rguenther@suse.de>
5684 * gimple-fold.c (fold_ctor_reference): Properly guard against
5685 NULL return value from canonicalize_constructor_val.
5687 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
5690 * config/i386/i386.c (ix86_expand_builtin)
5691 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
5692 flags reg setting and flags reg using instructions.
5693 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
5694 clobbering instructions to zero extend op2.
5696 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
5698 * doc/install.texi (Configuration) <--with-aix-soname>:
5699 Update link to AIX ld.
5701 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
5703 PR rtl-optimization/80160
5704 PR rtl-optimization/80159
5705 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
5706 reg_alternate_class into account.
5708 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
5711 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
5712 to consider in curr_insn_transform.
5714 2017-03-24 Jakub Jelinek <jakub@redhat.com>
5716 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
5717 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
5718 and emit_mode_inner.
5720 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5722 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
5723 argument to the overloaded builtin variants. Use the new flag to
5724 deprecate certain builtin variants.
5725 * config/s390/s390-builtin-types.def: Add new builtin types.
5726 * config/s390/s390-builtins.h: Support new flags field for
5727 overloaded builtins.
5728 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
5729 (s390_macro_to_expand): Enable vector float data type.
5730 (s390_cpu_cpp_builtins_internal): Indicate support of the new
5731 builtins by incrementing the __VEC__ version number.
5732 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
5734 (s390_resolve_overloaded_builtin): Emit error messages depending
5735 on the builtin flags.
5736 * config/s390/s390.c (s390_expand_builtin): Support additional
5737 flags argument. Change error message to match the messages
5738 emitted in s390-c.c.
5739 * config/s390/s390.md: New UNSPEC_* constants.
5740 (op_type): Add new instruction types.
5741 * config/s390/vecintrin.h: Add new builtins and test data class
5743 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
5744 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
5745 (VEC_INEXACT, VEC_NOINEXACT): New constants.
5746 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
5747 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
5748 ("vec_mergel<mode>"): V_HW -> VEC_HW.
5750 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
5751 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
5752 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
5753 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
5755 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
5756 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
5757 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
5758 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
5760 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
5761 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
5762 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
5763 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
5764 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
5765 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
5766 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
5768 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
5769 ("vec_scatter_element<V_HW_4:mode>_DI")
5770 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
5771 ("vec_fpint<mode>", "vflls")
5772 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
5773 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
5774 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
5775 ("*vec_cmphe<mode>_cc"): ... these.
5777 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
5778 mode constant instead of magic value.
5780 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5782 * config/s390/s390.c (s390_expand_vec_compare): Support other
5783 vector floating point modes than just V2DF.
5784 (s390_expand_vcond): Likewise.
5785 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
5786 (s390_cannot_change_mode_class): Prevent mode changes between TF
5787 and V1TF in vector registers.
5788 * config/s390/s390.md (DF, SF): New mode attributes.
5789 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
5790 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
5791 SFmode support for VRs.
5792 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
5794 (VFT, VF_HW): New mode iterators.
5795 (vw, sdx): New mode attributes.
5796 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
5797 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
5798 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
5799 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
5800 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
5801 also the new vector floating point modes. Renaming to ...
5803 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
5804 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
5805 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
5806 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
5807 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
5808 ("vec_unordered<mode>"): ... these.
5810 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
5811 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
5812 ("*vec_extendv2df"): New insn definitions.
5814 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5816 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
5817 ("mulditi3_2", "*muldi3_sign"): New patterns.
5818 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
5819 rename the pattern definition.
5821 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5823 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
5825 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
5827 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5829 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
5830 instruction if possible.
5831 * config/s390/vector.md (vec_halfnumelts): New mode
5833 ("*vec_vllezlf<mode>"): New pattern.
5835 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5837 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
5838 ("popcountv4si2", "popcountv2di2"): Rename to ...
5839 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
5840 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
5842 ("popcount<mode>2_vxe"): New pattern.
5844 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5846 * common/config/s390/s390-common.c (processor_flags_table): Add
5848 * config.gcc: Add arch12.
5849 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5850 Default to arch12 for unknown CPU model numbers.
5851 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
5852 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
5853 PROCESSOR_max sanity check.
5854 * config/s390/s390-opts.h (enum processor_type): Add
5856 * config/s390/s390.c (processor_table): Add arch12.
5857 (s390_expand_builtin): Add check for B_VXE flag.
5858 (s390_issue_rate): Add PROCESSOR_ARCH12.
5859 (s390_get_sched_attrmask): Likewise.
5860 (s390_get_unit_mask): Likewise.
5861 (s390_sched_score): Enable z13 scheduling for arch12.
5862 (s390_sched_reorder): Likewise.
5863 (s390_sched_variable_issue): Likewise.
5864 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
5866 (s390_tune_attr): Use z13 scheduling also for arch12.
5867 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
5868 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
5869 (TARGET_VXE_P): New macros.
5870 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
5871 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
5872 * config/s390/s390.opt: Add arch12 as processor_type.
5874 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5876 * config/s390/s390.md
5877 ("fixuns_truncdddi2", "fixuns_trunctddi2")
5878 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
5879 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
5881 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
5882 Rename expanders to ...
5884 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
5885 ("fixuns_truncdddi2_emu"): ... these.
5887 ("fixuns_trunc<mode>si2_emu"): New expander.
5889 ("*fixuns_truncdfdi2_z13"): Rename to ...
5890 ("*fixuns_truncdfdi2_vx"): ... this.
5892 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5894 * config/s390/2964.md: Remove the single element vector compare
5895 instructions which are no longer used.
5896 * config/s390/s390.c (s390_select_ccmode): Remove handling of
5898 (s390_canonicalize_comparison): Remove handling of DFmode
5900 (s390_expand_vec_compare_scalar): Remove function.
5901 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
5902 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
5904 ("*cmp<mode>_ccs"): Add wfcdb instruction.
5906 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5908 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
5910 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
5911 will anyway by matched by mov<mode>_64dfp.
5913 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5915 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
5916 vlef/vstef. Add missing operand to vleif.
5918 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5920 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
5921 pair for all vector types with 64 bit elements.
5922 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
5923 * config/s390/vector.md (V_HW_64): ... here.
5924 (V_128_NOSINGLE): New mode iterator.
5925 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
5926 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
5927 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
5928 ("*vec_load_pairv2di"): Change to ...
5929 ("*vec_load_pair<mode>"): ... this one.
5931 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5933 * config/s390/constraints.md: Add comments.
5934 (jKK): Reject element sizes > 8 bytes.
5935 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
5937 * config/s390/s390.md: Add the s_operand checks formerly in
5938 s390_split_ok_p to various splitters where they are still
5940 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
5941 for 128 bit vectors. Plus two splitters.
5943 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5945 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
5948 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5951 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
5952 error if the boundary argument is not constant.
5954 2017-03-24 Jakub Jelinek <jakub@redhat.com>
5956 PR rtl-optimization/80112
5957 * loop-doloop.c (doloop_condition_get): Don't check condition
5958 if cmp isn't SET with IF_THEN_ELSE src.
5960 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5962 PR tree-optimization/80158
5963 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
5964 replacing a candidate statement, also replace it for the
5965 candidate's alternate interpretation.
5966 (replace_rhs_if_not_dup): Likewise.
5967 (replace_one_candidate): Likewise.
5969 2017-03-24 Richard Biener <rguenther@suse.de>
5971 PR tree-optimization/80167
5972 * graphite-isl-ast-to-gimple.c
5973 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
5975 (translate_isl_ast_to_gimple::get_rename): Likewise.
5977 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5979 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5980 handling of certain combinations of target options, including the
5981 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
5982 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
5984 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5987 * config/arm/arm.md (*load_multiple): Add reload_completed to
5990 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5991 Richard Biener <rguenth@suse.de>
5993 PR tree-optimization/79908
5994 PR tree-optimization/80136
5995 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
5996 been cast away, gimplify_and_add suffices.
5998 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
6000 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
6002 2017-03-23 Richard Biener <rguenther@suse.de>
6004 PR tree-optimization/80032
6005 * gimplify.c (gimple_push_cleanup): Forced unconditional
6006 cleanups still have to go to the conditional_cleanups
6009 2017-03-22 Jakub Jelinek <jakub@redhat.com>
6011 PR tree-optimization/80072
6012 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
6014 (next_operand_entry_id): Change type to unsigned int.
6015 (sort_by_operand_rank): Make sure to return the right return value
6016 even if unsigned fields are bigger than INT_MAX.
6017 (struct oecount): Change cnt and id type to unsigned int.
6018 (oecount_hasher::equal): Formatting fix.
6019 (oecount_cmp): Make sure to return the right return value
6020 even if unsigned fields are bigger than INT_MAX.
6021 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
6024 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
6025 TREE_READONLY on result if writing it more than once.
6028 * doc/invoke.texi (-fsanitize=thread): Document that with
6029 -fnon-call-exceptions atomics are not able to throw
6033 * tsan.c: Include tree-eh.h.
6034 (instrument_builtin_call): Call maybe_clean_eh_stmt or
6035 maybe_clean_or_replace_eh_stmt where needed.
6036 (instrument_memory_accesses): Add cfg_changed argument.
6037 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
6038 if it returned true.
6039 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
6041 PR rtl-optimization/63191
6042 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
6043 wrapper function, moved the whole old content into ...
6044 (ix86_delegitimize_address_1): ... this. New inline function.
6045 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
6046 true as last argument instead of ix86_delegitimize_address.
6048 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
6050 * config/aarch64/aarch64.c (generic_branch_cost): Copy
6051 cortexa57_branch_cost.
6053 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
6055 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
6057 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6060 * doc/md.texi (Constraints): Document wA constraint.
6061 * config/rs6000/constraints.md (wA): New.
6062 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
6063 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
6064 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
6065 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
6067 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
6070 * gimplify.c (is_oacc_declared): New function.
6071 (oacc_default_clause): Use it to set default flags for acc declared
6072 variables inside parallel regions.
6073 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
6075 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
6076 declare attribute to any decl as necessary.
6078 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
6081 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
6082 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
6083 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
6084 (arm_arch_lpae): This.
6085 * config/arm/arm.c (arm_arch7ve): Rename into ...
6086 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
6087 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
6090 2017-03-22 Martin Liska <mliska@suse.cz>
6093 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
6094 error message instead of an ICE.
6096 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6098 * doc/extend.texi (6.11 Additional Floating Types): Revise.
6100 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
6102 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
6104 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6107 2017-03-21 Martin Sebor <msebor@redhat.com>
6109 * doc/extend.texi: Use "cannot" instead of "can't."
6110 * doc/hostconfig.texi: Same.
6111 * doc/install.texi: Same.
6112 * doc/invoke.texi: Same.
6113 * doc/loop.texi: Same.
6114 * doc/md.texi: Same.
6115 * doc/objc.texi: Same.
6116 * doc/rtl.texi: Same.
6117 * doc/tm.texi: Same.
6118 * doc/tm.texi.in: Same.
6119 * doc/trouble.texi: Same.
6121 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
6124 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
6125 (collect_checksum_attributes): Set it.
6126 (die_checksum_ordered): Use it.
6128 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6130 PR tree-optimization/79908
6131 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
6132 change: For a VA_ARG whose LHS has been cast away, use
6133 force_gimple_operand to construct the side effects.
6135 2017-03-21 David Malcolm <dmalcolm@redhat.com>
6137 PR translation/80001
6138 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
6139 more amenable to translation.
6140 (oacc_loop_auto_partitions): Likewise.
6142 2017-03-21 Marek Polacek <polacek@redhat.com>
6143 Martin Sebor <msebor@redhat.com>
6145 PR tree-optimization/80109
6146 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
6149 2017-03-21 Jakub Jelinek <jakub@redhat.com>
6150 Segher Boessenkool <segher@kernel.crashing.org>
6153 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
6154 check reg_used_between_p between insn and one of succ or succ2
6155 depending on if succ is artificial insn not inserted into insn
6158 2017-03-21 Martin Liska <mliska@suse.cz>
6160 PR gcov-profile/80081
6161 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
6162 * doc/gcc.texi: Include gcov-dump stuff.
6163 * doc/gcov-dump.texi: New file.
6165 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
6167 PR rtl-optimization/79150
6168 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
6169 conditional jump, if the jump is the last insn of the loop.
6171 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6172 Richard Biener <rguenth@suse.de>
6174 PR tree-optimization/79908
6175 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
6176 been cast away, use force_gimple_operand to construct the side
6179 2017-03-21 Martin Liska <mliska@suse.cz>
6182 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
6185 2017-03-21 Brad Spengler <spender@grsecurity.net>
6188 * plugin.c (htab_hash_plugin): New function.
6189 (add_new_plugin): Use it and adjust.
6190 (parse_plugin_arg_opt): Adjust.
6191 (init_one_plugin): Likewise.
6193 2017-03-21 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/80032
6196 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
6197 if set force the cleanup to happen unconditionally.
6198 (gimplify_target_expr): Push inserted clobbers with force_uncond
6199 to avoid them being removed by control-dependent DCE.
6201 2017-03-21 Richard Biener <rguenther@suse.de>
6203 PR tree-optimization/80122
6204 * tree-inline.c (copy_bb): Do not expans va-arg packs or
6205 va_arg_pack_len when the inlined call stmt requires pack
6207 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
6209 2017-03-21 Jakub Jelinek <jakub@redhat.com>
6212 * tsan.c (instrument_builtin_call): If the memory model argument
6213 is not a constant, assume it is valid.
6216 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
6219 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
6221 PR rtl-optimization/79910
6222 * combine.c (can_combine_p): Do not allow combining an I0 or I1
6223 if its dest is used by an insn before I2 (other than the combined
6224 insns themselves, which are properly handled already).
6226 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
6229 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
6231 * combine.c (record_used_regs): New static function.
6232 (try_combine): Handle situations where there is an additional
6233 instruction between I2 and I3 which needs to have a LOG_LINK
6237 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
6239 * combine.c (try_combine): Delete redundant i1 test. Call
6240 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6242 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6245 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
6248 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6250 PR tree-optimization/80054
6251 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
6252 the optimization if a PHI or any of its arguments is not dominated
6253 by the candidate's basis. Use gphi* rather than gimple* as
6255 (replace_profitable_candidates): Clean up a gimple* variable that
6256 should be a gphi* variable.
6258 2017-03-20 Martin Sebor <msebor@redhat.com>
6261 * doc/extend.texi (attribute constructor): Document present limitation.
6263 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
6266 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
6267 __POWER9_VECTOR__ #ifdef control, change template definition to
6268 use Power9-specific built-in function.
6269 (vec_any_eq): Likewise.
6270 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
6271 to control outcomes from this test.
6272 (vector_ae_<mode>p): For VEC_F modes, likewise.
6274 2017-03-20 Ian Lance Taylor <iant@google.com>
6276 * config/i386/i386.c (ix86_function_regparm): Save an extra
6277 register for -fsplit-stack with DECL_STATIC_CHAIN.
6279 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
6282 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
6283 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
6285 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
6287 * config/riscv/riscv.c (riscv_print_operand): Use "fence
6289 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
6292 2017-03-20 Marek Polacek <polacek@redhat.com>
6295 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
6297 2017-03-20 Richard Biener <rguenther@suse.de>
6299 PR tree-optimization/80113
6300 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
6301 allocate extra SSA name for PHI def.
6302 (add_close_phis_to_outer_loops): Likewise.
6303 (add_close_phis_to_merge_points): Likewise.
6304 (copy_loop_close_phi_args): Likewise.
6305 (copy_cond_phi_nodes): Likewise.
6307 2017-03-20 Martin Liska <mliska@suse.cz>
6310 * tree-chkp.c (chkp_build_returned_bound): Do not build
6311 returned bounds for a LHS that's not a BOUNDED_P type.
6313 2017-03-20 Martin Liska <mliska@suse.cz>
6317 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
6318 COMPLEX_CST and VECTOR_CST.
6320 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6323 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
6324 target operand. A new splitter adds the clobber statement in case
6325 the target operand is dead anyway.
6327 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
6329 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
6330 to age-old versions of binutils and glibc.
6332 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
6334 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
6336 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
6338 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
6340 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
6342 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
6343 requirement for binutils 2.13.
6345 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
6347 * combine.c (try_combine): Delete redundant i1 test. Call
6348 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6350 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
6352 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
6353 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
6355 <riscv64-*-elf>: Re-arrange section
6356 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
6357 <riscv32-*-linux>: Likewise.
6358 <riscv64-*-elf>: Likewise
6359 <riscv64-*-linux>: Likewise.
6361 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
6364 * aarch64.opt(verbose-cost-dump): Fix typo.
6366 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
6369 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
6370 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
6372 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
6374 * reload.c (find_reloads): When reloading a nonoffsettable address,
6375 use RELOAD_OTHER for it and its address reloads.
6377 PR rtl-optimization/79910
6378 * combine.c (record_used_regs): New static function.
6379 (try_combine): Handle situations where there is an additional
6380 instruction between I2 and I3 which needs to have a LOG_LINK
6383 2017-03-17 Jeff Law <law@redhat.com>
6385 PR tree-optimization/71437
6386 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
6387 conditional in the hash table first.
6388 (vrp_dom_walker::before_dom_children): Extract condition from
6389 ASSERT_EXPR. Record condition, its inverion and any implied
6392 2017-03-17 Marek Polacek <polacek@redhat.com>
6393 Markus Trippelsdorf <markus@trippelsdorf.de>
6395 PR tree-optimization/80079
6396 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
6399 2017-03-17 Richard Biener <rguenther@suse.de>
6402 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
6403 Properly verify the LHS before the RHS possibly claims to be
6405 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
6408 2017-03-17 Martin Jambor <mjambor@suse.cz>
6410 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
6411 (List of -O2 options): Likewise.
6412 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
6415 2017-03-17 Tom de Vries <tom@codesourcery.com>
6417 * gcov-dump.c (print_usage): Print bug_report_url.
6419 2017-03-17 Richard Biener <rguenther@suse.de>
6422 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
6423 (parser::peek): Likewise.
6425 2017-03-17 Richard Biener <rguenther@suse.de>
6427 PR tree-optimization/80048
6428 * sese.c (free_sese_info): Properly release rename_map and
6429 copied_bb_map elements.
6431 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
6433 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
6434 Add linked-list forward and backlinks. Insert on
6435 construction, remove on destruction.
6436 (class pass_store_merging): Add m_stores_head field.
6437 (pass_store_merging::terminate_and_process_all_chains):
6438 Iterate over m_stores_head list.
6439 (pass_store_merging::terminate_all_aliasing_chains):
6441 (pass_store_merging::execute): Check for debug stmts first.
6442 Push new chains onto the m_stores_head stack.
6444 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
6447 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
6448 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
6449 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
6451 2017-03-16 Jeff Law <law@redhat.com>
6453 PR tree-optimization/71437
6454 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
6455 member function. Implementation moved into after_dom_children
6456 member function and into the threader's thread_outgoing_edges
6458 (dom_opt_dom_walker::after_dom_children): Simplify by moving
6459 some code into new thread_outgoing_edges.
6460 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
6461 definition. Simplify marker handling (do it here). Assume we always
6462 have the available expression and the const/copies tables.
6463 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
6465 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
6466 * tree-vrp.c (equiv_stack): No longer file scoped.
6467 (vrp_dom_walker): New class.
6468 (vrp_dom_walker::before_dom_children): New member function.
6469 (vrp_dom_walker::after_dom_children): Likewise.
6470 (identify_jump_threads): Setup domwalker. Use it rather than
6471 walking edges in a random order by hand. Simplify setup/finalization.
6472 (finalize_jump_threads): Remove.
6473 (vrp_finalize): Do not call identify_jump_threads here.
6474 (execute_vrp): Do it here instead and call thread_through_all_blocks
6477 PR tree-optimization/71437
6478 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
6480 (simplify_stmt_for_jump_threading): Add basic_block argument. All
6482 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
6483 (dom_opt_dom_walker::thread_across_edge): Remove
6484 handle_dominating_asserts argument. All callers changed.
6485 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
6486 changes. Remove calls to lhs_of_dominating_assert. Other
6487 uses of handle_dominating_asserts turn into unconditional code
6488 (simplify_control_stmt_condition_1): Likewise.
6489 (simplify_control_stmt_condition): Likewise.
6490 (thread_through_normal_block, thread_across_edge): Likewise.
6491 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
6492 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
6493 object if it is not an SSA_NAME.
6494 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
6495 before calling into the VRP specific simplifiers.
6496 (identify_jump_threads): Remove handle_dominating_asserts
6499 2017-03-16 Jakub Jelinek <jakub@redhat.com>
6502 * tree-diagnostic.c (default_tree_printer): No longer static.
6503 * tree-diagnostic.h (default_tree_printer): New prototype.
6505 2017-03-16 Tamar Christina <tamar.christina@arm.com>
6507 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
6508 Change ins into fmov.
6510 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6512 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
6513 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
6514 Use h_con constraint for operand 1.
6515 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6516 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
6518 2017-03-15 Jeff Law <law@redhat.com>
6520 PR tree-optimization/71437
6521 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
6522 (record_temporary_equivalences): Use it.
6524 PR tree-optimization/71437
6525 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
6526 tree-ssa-scopedtables.
6527 (lookup_avail_expr, build_and_record_new_cond): Likewise.
6528 (record_conditions, record_cond, vuse_eq): Likewise.
6529 (record_edge_info): Adjust to API tweak of record_conditions.
6530 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
6531 (record_temporary_equivalences, optimize_stmt): Likewise.
6532 (eliminate_redundant_computations): Likewise.
6533 (record_equivalences_from_stmt): Likewise.
6534 * tree-ssa-scopedtables.c: Include options.h and params.h.
6535 (vuse_eq): New function, moved from tree-ssa-dom.c
6536 (build_and_record_new_cond): Likewise.
6537 (record_conditions): Likewise. Accept vector of conditions rather
6538 than edge_equivalence structure for first argument.
6539 for the first argument.
6540 (avail_exprs_stack::lookup_avail_expr): New member function, moved
6541 from tree-ssa-dom.c.
6542 (avail_exprs_stack::record_cond): Likewise.
6543 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
6544 from tree-ssa-dom.c.
6545 (avail_exprs_stack): Add new member functions lookup_avail_expr
6547 (record_conditions): Declare.
6549 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
6552 * lra-constraints.c (process_alt_operands): Increase reject for
6553 reloading an input/output operand.
6555 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6558 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
6559 insns to convert from signed/unsigned char/short to IEEE 128-bit
6561 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
6563 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
6566 * config/i386/i386.c (ix86_vector_duplicate_value): Create
6567 subreg of inner mode for values already in registers.
6569 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
6571 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
6572 iteration reg is used after the loop.
6574 2017-03-14 Martin Sebor <msebor@redhat.com>
6576 PR tree-optimization/79800
6577 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
6578 precision in negative-positive range.
6579 (format_floating): Call non-const overload with adjusted precision.
6581 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6584 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
6587 2017-03-14 Martin Sebor <msebor@redhat.com>
6590 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
6591 * builtins.def (aligned_alloc): Use it.
6594 * Makefile.in (GTFILES): Add calls.c.
6595 * calls.c: Include "gt-calls.h".
6597 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
6599 PR rtl-optimization/79728
6600 * regs.h (struct target_regs): New field
6601 x_contains_allocatable_regs_of_mode.
6602 (contains_allocatable_regs_of_mode): New macro.
6603 * reginfo.c (init_reg_sets_1): Initialize it, and change
6604 contains_reg_of_mode so it includes global regs as well.
6605 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
6606 rather than contains_regs_of_mode.
6608 2017-03-14 Martin Liska <mliska@suse.cz>
6610 * doc/invoke.texi: Document options that can't be combined with
6611 -fcheck-pointer-bounds.
6613 2017-03-14 Martin Liska <mliska@suse.cz>
6616 * doc/invoke.texi (-Wchkp): Document the option.
6618 2017-03-14 Martin Liska <mliska@suse.cz>
6620 * Makefile.in: Install gcov-dump.
6622 2017-03-14 Martin Liska <mliska@suse.cz>
6624 * multiple_target.c (expand_target_clones): Bail out for
6625 an invalid attribute.
6627 2017-03-14 Richard Biener <rguenther@suse.de>
6629 * alias.c (struct alias_set_entry): Pack properly.
6630 * cfgloop.h (struct loop): Likewise.
6631 * cse.c (struct set): Likewise.
6632 * ipa-utils.c (struct searchc_env): Likewise.
6633 * loop-invariant.c (struct invariant): Likewise.
6634 * lra-remat.c (struct cand): Likewise.
6635 * recog.c (struct change_t): Likewise.
6636 * rtl.h (struct address_info): Likewise.
6637 * symbol-summary.h (function_summary): Likewise.
6638 * tree-loop-distribution.c (struct partition): Likewise.
6639 * tree-object-size.c (struct object_size_info): Likewise.
6640 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
6641 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
6642 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
6643 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
6644 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
6645 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
6646 (struct _stmt_vec_info): Likewise.
6648 2017-03-14 Martin Liska <mliska@suse.cz>
6651 * multiple_target.c (create_dispatcher_calls): Check that
6652 a target can create a function dispatcher.
6654 2017-03-14 Martin Liska <mliska@suse.cz>
6657 * multiple_target.c (expand_target_clones): Drop local.local
6658 flag for default implementation.
6660 2017-03-14 Richard Biener <rguenther@suse.de>
6662 PR tree-optimization/80030
6663 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
6665 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
6667 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
6668 gcc_fallthrough() instead of __attribute__((fallthrough));
6670 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
6672 * doc/gcc.texi: Remove "up" link to (DIR).
6673 * doc/gccint.texi: Ditto.
6675 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
6677 * doc/install.texi (Specific) <avr>: Remove reference to
6680 2017-03-13 Jeff Law <law@redhat.com>
6682 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
6683 attribute rather than comments.
6685 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
6686 match_scratch operand is highest.
6688 2017-03-13 Martin Liska <mliska@suse.cz>
6691 * ipa-pure-const.c (warn_function_noreturn): If the declarations
6692 is a CHKP clone, use original declaration.
6694 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
6696 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
6697 (arc_conditional_register_usage): Use a different allocation order
6698 when optimizing for size.
6699 * common/config/arc/arc-common.c (arc_option_optimization_table):
6700 Section anchors default on when optimizing for size.
6702 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
6704 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
6706 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
6708 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
6709 * config/arc/arc.md (cpu_facility): Add cd variant.
6710 (*movqi_insn): Add code density variant.
6711 (*movhi_insn): Likewise.
6712 (*movqi_insn): Likewise.
6713 (*addsi3_mixed): Likewise.
6714 (subsi3_insn): Likewise.
6716 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
6718 * config/arc/arc.md (movsi_cond_exec): Update constraint.
6720 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
6722 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
6723 expressions with MINUS and UNARY ops.
6725 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6728 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
6730 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
6731 between vec_select and vector argument.
6732 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
6733 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
6734 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
6735 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
6736 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
6737 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
6739 2017-03-13 Richard Biener <rguenther@suse.de>
6742 * params.def (vect-max-peeling-for-alignment): Fix typo.
6744 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
6746 * doc/install.texi (Specific) <mips-*-*>: Remove description of
6747 issue that only occurred with binutils below 2.18.
6749 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
6751 * doc/install.texi (Specific) <cris-axis-elf>: No longer
6752 refer to binutils 2.11/2.12 minimum.
6754 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
6756 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
6757 ftp.kernel.org and simplify binutils requirement.
6759 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
6761 * doc/invoke.texi (Warning Options): Fix spelling of link-time
6763 (Optimize Options): Ditto. Also remove redundancy.
6765 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6767 PR translation/79848
6768 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
6770 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
6771 to G_ to avoid double translation.
6773 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6775 PR translation/79923
6776 * auto-profile.c (get_combined_location): Convert leading
6777 character of diagnostics to lower case and remove trailing period.
6778 (read_profile): Likewise for various diagnostics.
6779 * config/arm/arm.c (arm_option_override): Remove trailing period
6780 from various diagnostics.
6781 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
6782 (msp430_expand_delay_cycles): Likewise.
6784 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6787 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
6788 full command-line argument, rather than just "str".
6789 (aarch64_validate_march): Likewise.
6790 (aarch64_validate_mtune): Likewise.
6792 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
6794 PR rtl-optimization/78911
6795 * lra-assigns.c (must_not_spill_p): New function.
6796 (spill_for): Use it.
6798 2017-03-10 Jakub Jelinek <jakub@redhat.com>
6800 PR tree-optimization/79981
6801 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
6802 ATOMIC_COMPARE_EXCHANGE ifn result.
6803 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
6804 IFN_ATOMIC_COMPARE_EXCHANGE.
6806 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6809 * opts.c (parse_sanitizer_options): Add missing question mark to
6810 "did you mean" message.
6812 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6814 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
6816 (VMULEUH_UNS): Likewise.
6817 (VMULOUB_UNS): Likewise.
6818 (VMULOUH_UNS): Likewise.
6819 * config/rs6000/rs6000.c (builtin_function_type): Remove
6820 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
6822 2017-03-10 David Malcolm <dmalcolm@redhat.com>
6825 * read-rtl-function.c (function_reader::read_rtx_operand): Update
6826 x with result of extra_parsing_for_operand_code_0.
6827 (function_reader::extra_parsing_for_operand_code_0): Convert
6828 return type from void to rtx, returning x. When reading
6829 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
6830 larger size containing struct block_symbol.
6832 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
6834 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
6835 -mfloat128-hardware without -m64.
6837 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
6840 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
6841 entries to the case statement that marks unsigned arguments to
6842 overloaded functions.
6844 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6846 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
6847 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
6849 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
6852 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
6853 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
6855 2017-03-10 Martin Liska <mliska@suse.cz>
6859 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
6860 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
6863 2017-03-10 Olivier Hainque <hainque@adacore.com>
6865 * tree-switch-conversion (array_value_type): Start by resetting
6866 candidate type to it's main variant.
6868 2017-03-10 Jakub Jelinek <jakub@redhat.com>
6870 PR rtl-optimization/79909
6871 * combine.c (try_combine): Use simplify_replace_rtx on individual
6872 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
6873 of the whole CALL_INSN_FUNCTION_USAGE.
6875 PR tree-optimization/79972
6876 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
6877 get_range_info on SSA_NAMEs. Formatting fixes.
6879 2017-03-10 Richard Biener <rguenther@suse.de>
6880 Jakub Jelinek <jakub@redhat.com>
6882 PR tree-optimization/77975
6883 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
6884 edge to be constant.
6885 (get_val_for): For constant x return it. Formatting fix.
6886 (loop_niter_by_eval): Avoid pointless looping if the next iteration
6887 would use the same bases as the current one.
6889 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6891 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
6892 instead of vec_select for V1TImode.
6893 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
6895 (VSX_LE_128): Add V1TI to this mode iterator.
6896 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
6897 (*vsx_le_perm_store_<mode>): Likewise.
6898 (pre-reload splitter for VSX stores): Likewise.
6899 (post-reload splitter for VSX stores): Likewise.
6900 (*vsx_xxpermdi2_le_<mode>): Likewise.
6901 (*vsx_lxvd2x2_le_<mode>): Likewise.
6902 (*vsx_stxvd2x2_le_<mode>): Likewise.
6904 2017-03-09 Michael Eager <eager@eagercon.com>
6906 Correct failures with --enable-checking=yes,rtl.
6908 * config/microblaze/microblaze.c (microblaze_expand_shift):
6909 Replace GET_CODE test with CONST_INT_P and INTVAL test with
6910 test for const0_rtx.
6911 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
6912 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
6914 2017-03-09 Richard Biener <rguenther@suse.de>
6916 PR tree-optimization/79977
6917 * graphite-scop-detection.c (scop_detection::merge_sese):
6918 Handle the case of extra exits to blocks dominating the entry.
6920 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
6922 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
6925 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
6927 PR rtl-optimization/79949
6928 * lra-constraints.c (process_alt_operands): Check memory when
6929 trying to predict a cycle. Print about the overall increase.
6931 2017-03-09 Richard Biener <rguenther@suse.de>
6934 * gimple-expr.c (useless_type_conversion_p): Preserve
6935 TYPE_SATURATING for fixed-point types.
6937 2017-03-09 Richard Biener <rguenther@suse.de>
6940 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
6941 alignment of BLKmode params.
6943 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6946 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
6947 (VALL_NO_V2Q): Likewise.
6949 * config/aarch64/aarch64-simd.md
6950 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
6952 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
6953 VALL_NO_V2Q mode iterator.
6954 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
6956 2017-03-09 Martin Liska <mliska@suse.cz>
6958 PR tree-optimization/79631
6959 * tree-chkp-opt.c (chkp_is_constant_addr): Call
6960 tree_int_cst_sign_bit just for INTEGER constants.
6962 2017-03-09 Martin Liska <mliska@suse.cz>
6966 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
6969 2017-03-09 Marek Polacek <polacek@redhat.com>
6972 * tree.c (inchash::add_expr): Handle TREE_VEC.
6974 2017-03-09 Martin Liska <mliska@suse.cz>
6977 (chkp_narrow_size_and_offset): New function.
6978 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
6979 (void chkp_parse_bit_field_ref): New function.
6980 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
6981 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
6983 2017-03-09 Martin Liska <mliska@suse.cz>
6986 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
6987 (chkp_find_bounds_1): Remove gcc_unreachable.
6989 2017-03-09 Jakub Jelinek <jakub@redhat.com>
6992 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
6993 BUILT_IN_SYNC*, determine the access type from the size suffix and
6994 always build a MEM_REF with that type. Handle forgotten
6995 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
6998 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
6999 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
7000 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
7001 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
7002 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
7003 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
7004 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
7005 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
7006 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
7007 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
7008 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
7009 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
7010 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
7011 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
7012 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
7013 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
7014 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
7015 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
7016 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
7017 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
7018 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
7019 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
7020 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
7021 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
7022 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
7023 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
7024 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
7025 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
7026 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
7027 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
7028 definitions outside of __OPTIMIZE__ guarded section.
7031 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
7032 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
7033 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
7034 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
7037 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7039 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
7040 ("vfenez<mode>"): Add missing constraints.
7042 2017-03-08 Martin Sebor <msebor@redhat.com>
7045 * config/nds32/nds32.c (nds32_option_override):
7046 Fix misspelled diagnostic.
7048 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7051 * gimplify.c (gimplify_omp_for): Replace index var in outer
7052 taskloop statement with an artificial variable and add
7053 OMP_CLAUSE_PRIVATE clause for it.
7055 2017-03-08 Richard Biener <rguenther@suse.de>
7057 PR tree-optimization/79955
7058 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
7059 for accesses that are completely outside of the variable.
7061 2017-03-08 Andrew Haley <aph@redhat.com>
7063 PR tree-optimization/79943
7064 * tree-ssa-loop-split.c (compute_new_first_bound): When
7065 calculating the new upper bound, (END-BEG) should be added, not
7068 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7070 * config/avr/avr.md (setmemhi): Make sure match_dup
7071 operand number comes before match_scratch.
7073 2017-03-08 Richard Biener <rguenther@suse.de>
7075 PR tree-optimization/79920
7076 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
7077 with ncopies == 1 to ...
7078 (vect_transform_slp_perm_load): ... here. Properly compute
7079 all element loads by iterating VF times over the group. Do
7080 not handle ncopies (computed in a broken way) in
7081 vect_create_mask_and_perm.
7083 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7086 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
7087 is a uniform vector, use uniform_vector_p return value instead of
7088 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
7090 2017-03-07 Marek Polacek <polacek@redhat.com>
7093 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
7094 (alloca_call_type): Likewise.
7096 2017-03-07 Martin Liska <mliska@suse.cz>
7098 * gcov.c (process_args): Put comment to correct location.
7100 2017-03-07 Martin Liska <mliska@suse.cz>
7103 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
7104 Use array_at_struct_end_p instead of DECL_CHAIN (field).
7105 (chkp_narrow_bounds_for_field): Likewise.
7106 (chkp_parse_array_and_component_ref): Pass one more argument to
7109 2017-03-07 Richard Biener <rguenther@suse.de>
7111 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
7114 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
7116 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
7117 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
7119 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7122 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
7123 to end of description.
7124 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7126 2017-03-07 Jakub Jelinek <jakub@redhat.com>
7128 PR rtl-optimization/79901
7129 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
7131 (*avx512f_<code><mode>3<mask_name>): ... this.
7132 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
7133 iterator instead of VI8_AVX2_AVX512BW.
7135 PR rtl-optimization/79901
7136 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
7137 min/max expander, expand it using expand_vec_cond_expr.
7140 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
7143 2017-03-06 Jakub Jelinek <jakub@redhat.com>
7146 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
7147 to void * for PCH reasons.
7148 * dwarf2out.c (output_loc_operands, output_die): Cast
7149 v.val_vec.array to unsigned char *.
7151 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
7154 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
7157 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
7159 PR rtl-optimization/79571
7160 * lra-constraints.c (process_alt_operands): Calculate static
7161 reject and subtract it from overall when only addresses will be
7164 2017-03-06 Julia Koval <julia.koval@intel.com>
7167 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
7168 incoming stack boundary to 128 for 64-bit targets.
7170 2017-03-06 Richard Biener <rguenther@suse.de>
7172 PR tree-optimization/79894
7173 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
7174 to NULL after folding it.
7176 2017-03-06 Richard Biener <rguenther@suse.de>
7178 PR tree-optimization/79824
7179 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
7180 check disabling peeling for gaps.
7182 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
7184 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7185 attributes): Document gettimeofday.
7187 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
7189 * config/s390/s390.c (s390_option_override_internal): Set
7190 PARAM_MIN_VECT_LOOP_BOUND
7192 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
7194 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
7195 * config/s390/s390.md: Likewise.
7197 2017-03-06 Jakub Jelinek <jakub@redhat.com>
7200 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
7201 (<avx2_avx512>_perm<mode>): Rename to ...
7202 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
7204 (<avx512>_perm<mode>_mask): Rename to ...
7205 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
7207 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
7208 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
7209 instead of VI8F_256_512.
7210 (avx512f_perm<mode>): New define_expand.
7211 (avx512f_perm<mode>_mask): Likewise.
7212 (avx512f_perm<mode>_1<mask_name>): New define_insn.
7213 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
7215 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
7217 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
7218 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
7220 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
7222 2017-03-06 Martin Liska <mliska@suse.cz>
7225 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
7226 when having a SSA NAME w/o VAR_DECL assigned to it.
7228 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
7230 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
7231 msa_dpsub_<su>_d): Fix MODE for vec_select.
7233 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
7235 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
7237 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
7239 2017-03-06 Richard Biener <rguenther@suse.de>
7241 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
7242 * plugin.c (register_plugin_info): Likewise.
7243 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
7245 2017-03-05 Jakub Jelinek <jakub@redhat.com>
7247 * config/i386/sse.md (sse_storehps, sse_storelps,
7248 avx_<castmode><avxsizesuffix>_<castmode>,
7249 avx512f_<castmode><avxsizesuffix>_<castmode>,
7250 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
7251 in condition that at least one operand is not a MEM.
7253 2017-03-03 Jakub Jelinek <jakub@redhat.com>
7256 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
7257 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
7259 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
7260 gimple_call_nothrow_p flag based on whether original builtin can throw.
7261 If it can, emit following stmts on the fallthrough edge.
7262 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
7263 don't create new bb if inserting just debug stmts on the edge, try to
7264 insert them on the fallthru bb or just reset debug stmts.
7266 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
7269 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
7270 restore recog_data (including the operand rtxes inside it) around
7271 the call to get_insn_template.
7273 2017-03-03 Martin Sebor <msebor@redhat.com>
7275 PR tree-optimization/79699
7276 * context.c (context::~context): Free MPFR caches to avoid
7277 a memory leak on program exit.
7279 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7281 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
7282 Use wide_int::ulow () instead of .elt (0).
7284 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
7286 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
7287 (*pushxf): Limit oF constraint to 32bit targets and add oC
7288 constraint for 64bit targets.
7289 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
7290 (*pushdf): Change rmF constraint to rmC.
7292 2017-03-03 Martin Liska <mliska@suse.cz>
7294 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
7295 Remove unused variable.
7297 2017-03-03 Jakub Jelinek <jakub@redhat.com>
7300 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
7301 is a memory operand, increase num_memory.
7302 (ix86_expand_args_builtin): Likewise.
7304 2017-03-03 Jan Hubicka <jh@suse.cz>
7307 * ipa-devirt.c (maybe_record_node): Properly handle
7308 __cxa_pure_virtual visibility.
7310 2017-03-03 Martin Liska <mliska@suse.cz>
7312 PR tree-optimization/79803
7313 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
7315 (pass_loop_prefetch::execute): Disabled optimization if an
7316 assumption about L1 cache size is not met.
7318 2017-03-03 Martin Liska <mliska@suse.cz>
7320 PR rtl-optimization/79574
7321 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
7322 (hash_scan_set): Likewise.
7323 (dump_hash_table): Likewise.
7324 (hoist_code): Likewise.
7326 2017-03-03 Richard Biener <rguenther@suse.de>
7328 * fixed-value.c (fixed_from_string): Restore use of elt (1)
7329 in place of uhigh ().
7330 (fixed_convert_from_real): Likewise.
7332 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
7335 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
7337 2017-03-03 Richard Biener <rguenther@suse.de>
7340 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
7341 TYPE_OVERFLOW_UNDEFINED check.
7343 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7345 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
7347 (vector_ae_<mode>_p): Likewise.
7348 (vector_nez_<mode>_p): Likewise.
7349 (vector_ne_v2di_p): Likewise.
7350 (vector_ae_v2di_p): Likewise.
7351 (vector_ne_<mode>_p): Likewise.
7352 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
7354 (vsx_tsqrt<mode>2_fe): Likewise.
7356 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
7359 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
7361 2017-03-02 Jakub Jelinek <jakub@redhat.com>
7363 PR rtl-optimization/79780
7364 * cprop.c (one_cprop_pass): When second and further conditional trap
7365 in a single basic block is turned into an unconditional trap, turn it
7366 into a deleted note to avoid RTL verification failures.
7368 2017-03-02 Richard Biener <rguenther@suse.de>
7370 * fold-const.c (const_binop): Use ulow () instead of elt (0).
7372 2017-03-02 Richard Biener <rguenther@suse.de>
7374 PR tree-optimization/79345
7376 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
7377 param and abort the walk, returning -1 if it is hit.
7378 (walk_aliased_vdefs): Take a limit param and pass it on.
7379 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
7380 defaulting to 0 and return a signed int.
7381 * tree-ssa-uninit.c (struct check_defs_data): New struct.
7382 (check_defs): New helper.
7383 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
7384 about uninitialized memory.
7385 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
7386 bogus uninitialized warning.
7387 (fixed_convert_from_real): Likewise.
7389 2017-03-02 Bin Cheng <bin.cheng@arm.com>
7391 PR tree-optimization/66768
7392 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
7393 iv_use if base object can't be determined.
7395 2017-03-02 Jakub Jelinek <jakub@redhat.com>
7397 PR tree-optimization/79345
7398 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
7399 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
7400 (get_pattern_stats): Initialize it.
7401 * genemit.c (gen_expand): Verify match_scratch numbers come after
7402 match_operand/match_dup numbers.
7403 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
7404 match_scratch numbers.
7405 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
7407 * config/s390/s390.md (trunctdsd2): Likewise.
7409 2017-03-02 Richard Biener <rguenther@suse.de>
7411 * wide-int.h (wide_int_storage::operator=): Implement in terms
7414 2017-03-02 Richard Biener <rguenther@suse.de>
7416 PR tree-optimization/79777
7417 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
7418 the to insert expression to sth existing.
7420 2017-03-01 Martin Sebor <msebor@redhat.com>
7423 * gimple-ssa-sprintf.c
7424 (directive::known_width_and_precision): New function.
7425 (format_integer): Use it.
7426 (get_mpfr_format_length): Consider the full range of precision
7427 when computing %g output with the # flag. Set the likely byte
7428 count to 3 rather than 1 when precision is indeterminate.
7429 (format_floating): Correct the lower bound of precision.
7431 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7433 * doc/invoke.texi: Document default code model for 64-bit Linux.
7435 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7438 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
7439 udiv rather than div since input pattern is unsigned.
7441 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
7443 * config/i386/i386.c (print_reg): Warn for values of
7444 unsupported size in integer register.
7446 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7449 * config/rs6000/predicates.md (current_file_function_operand): Do
7450 not allow self calls to be local if the function is replaceable.
7452 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
7455 * config/rs6000/altivec.h (vec_ctz and others): Change the
7456 preprocessor macro that controls conditional compilation from
7457 _ARCH_PWR9 to __POWER9_VECTOR__.
7458 (vec_all_ne): Change parameterization of __altivec_scalar_pred
7459 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
7460 control (instead of _ARCH_PWR9 control) so that template
7461 definition uses power9-specific function.
7462 (vec_any_eq): Likewise.
7463 (vec_all_ne): Change macro definition to use a power9-specific
7464 expansion under #ifdef __POWER9_VECTOR__ control (instead of
7465 _ARCH_PWR9 control).
7466 (vec_any_eq) Likewise.
7467 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
7468 expansion for CMPNEF to remove support for xvcmpnesp instruction.
7469 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
7470 support for xvcmpnedp instruction.
7471 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
7472 macro expansion so that Power9 implementation of vec_all_ne does
7473 not use the AltiVec predicate framework.
7474 (VCMPNEH_P): Likewise.
7475 (VCMPNEW_P): Likewise.
7476 (VCMPNED_P): Likewise.
7477 (VCMPNEFP_P): Likewise.
7478 (VCMPNEDP_P): Likewise.
7479 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
7480 implementation of vec_any_eq to not use AltiVec predicate
7482 (VCMPAEH_P): Likewise.
7483 (VCMPAEW_P): Likewise.
7484 (VCMPAED_P): Likewise.
7485 (VCMPAEFP_P): Likewise.
7486 (VCMPAEDP_P): Likewise.
7487 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
7488 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
7489 not use the AltiVec predicate framework.
7490 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
7491 of vec_any_eq to not use AltiVec predicate framework.
7492 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
7493 support for predefined __POWER9_VECTOR__ macro to indicate that
7494 Power9 instruction selection is enabled.
7495 (altivec_overloaded_builtins): Remove extraneous
7496 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
7497 function argument types RS6000_BTI_bool_V16QI and
7498 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
7499 entry for overloaded function argument types RS6000_BTI_bool_V4SI
7500 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
7501 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
7502 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
7503 Power9 for implementations of vec_cmpne. Change the signature for
7504 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
7505 (representing vec_all_ne) to remove the previously described first
7506 argument of type RS6000_BTI_INTSI, as this was an artifact of
7507 reliance on the AltiVec predicate framework, which is no longer
7508 used in the implementation of these functions. Add
7509 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
7510 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
7511 since, unlike the AltiVec predicate framework implementation, we
7512 do not share function descriptors between vec_alle and vec_anyeq.
7513 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
7514 set of modes that receive special treatment even when
7515 TARGET_P9_VECTOR is true. The special treatment emits code that
7516 does not depend on Power9 instructions.
7517 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
7518 define_expand to not rely on AltiVec predicate framework.
7519 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
7521 (vector_ne_v2di_p): Change this define_expand to not rely on
7522 AltiVec predicate framework.
7523 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
7525 (vector_ne_<mode>_p): Change this define_expand to not rely on
7526 AltiVec predicate framework.
7527 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
7529 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
7530 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
7531 define_insn pattern.
7532 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
7533 define_insn pattern because the xvcmpne<VSs>. instruction is not
7535 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
7536 instruction is not supported.
7538 2017-03-01 Jakub Jelinek <jakub@redhat.com>
7540 * config/nvptx/nvptx.c: Include intl.h.
7542 2017-03-01 Martin Jambor <mjambor@suse.cz>
7545 * ipa-prop.h (ipa_bits): Removed field known.
7546 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
7547 to pointers. Adjusted their comments to warn about their sharing.
7548 (ipcp_transformation_summary): Change bits to a vector of pointers.
7549 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
7550 (ipa_get_ipa_bits_for_value): Declare.
7551 * tree-vrp.h (value_range): Mark as GTY((for_user)).
7552 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
7553 (ipa_bits_hash_table): Likewise.
7554 (ipa_vr_ggc_hash_traits): Likewise.
7555 (ipa_vr_hash_table): Likewise.
7556 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
7557 being pointers and vr_known being removed.
7558 (ipa_set_jf_unknown): Likewise.
7559 (ipa_get_ipa_bits_for_value): New function.
7560 (ipa_set_jfunc_bits): Likewise.
7561 (ipa_get_value_range): New overloaded functions.
7562 (ipa_set_jfunc_vr): Likewise.
7563 (ipa_compute_jump_functions_for_edge): Use the above functions to
7564 construct bits and vr parts of jump functions.
7565 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
7566 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
7568 (ipcp_grow_transformations_if_necessary): Also allocate
7569 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
7571 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
7572 them. Fix too long lines.
7573 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
7574 vr_known being removed.
7575 (ipa_read_jump_function): Use new setter functions to construct bits
7576 and vr parts of jump functions or set them to NULL.
7577 (write_ipcp_transformation_info): Adjust for bits being pointers.
7578 (read_ipcp_transformation_info): Likewise.
7579 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
7581 Include gt-ipa-prop.h.
7582 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
7584 (ipcp_store_bits_results): Likewise.
7585 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
7586 Do not write to existing jump functions but use a temporary instead.
7588 2017-03-01 Jakub Jelinek <jakub@redhat.com>
7591 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
7592 attempt to use its first operand as BIT_FIELD_REF base.
7594 2017-03-01 Richard Biener <rguenther@suse.de>
7597 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
7598 interpolating formula in wrapping arithmetic.
7599 (chrec_apply): Convert chrec_evaluate return value to wanted type.
7601 2017-03-01 Jakub Jelinek <jakub@redhat.com>
7603 PR tree-optimization/79734
7604 * tree-vect-generic.c (expand_vector_condition): Optimize
7605 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
7606 Handle VEC_COND_EXPR where comparison has different inner width from
7609 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
7611 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
7612 markup, and similar issues. Remove @opindex entries for things
7613 that aren't options. Add missing -mmpy-option entries.
7615 2017-02-28 Jakub Jelinek <jakub@redhat.com>
7617 PR tree-optimization/79737
7618 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
7619 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
7620 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
7621 instead of byte_size. Formatting fix.
7622 (shift_bytes_in_array_right): Formatting fix.
7624 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
7627 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
7628 condition on optimize for the leaf function test.
7630 2017-02-28 Martin Liska <mliska@suse.cz>
7633 * read-rtl-function.c (function_reader::handle_unknown_directive):
7634 Bail out when one uses -flto.
7636 2017-02-28 Martin Liska <mliska@suse.cz>
7638 * common.opt: Replace space with tabular for options of <number>
7640 * config/i386/i386.opt: Show <number> value for
7641 -mlarge-data-threshold.
7642 * opts.c (print_filtered_help): Do not display number in hexadecimal
7645 2017-02-28 Martin Liska <mliska@suse.cz>
7647 * common.opt: Fix --help=option -Q for options which are of
7650 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
7652 * config/i386/i386.c (print_reg): Error out for values
7653 of 8-bit size in invalid integer register.
7655 2017-02-28 Martin Sebor <msebor@redhat.com>
7657 PR tree-optimization/79691
7658 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
7660 2017-02-28 Jakub Jelinek <jakub@redhat.com>
7663 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
7664 gcc_unreachable with output_operand_lossage.
7666 2017-02-28 Richard Biener <rguenther@suse.de>
7668 PR tree-optimization/79740
7669 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
7671 (visit_nary_op): Insert the nary into the hashtable if we
7672 pattern-matched sth.
7673 * tree-ssa-pre.c (eliminate_insert): Robustify.
7675 2017-02-28 Richard Biener <rguenther@suse.de>
7678 * fold-const.c (decode_field_reference): Reject out-of-bound
7681 2017-02-28 Jakub Jelinek <jakub@redhat.com>
7683 * config/i386/i386.c: Include intl.h.
7684 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
7685 instead of just cond ? "..." : "...".
7686 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
7687 * coverage.c (read_counts_file): Likewise.
7688 * omp-offload.c: Include intl.h.
7689 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
7690 of just cond ? "..." : "...".
7691 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
7692 of just cond ? "..." : "...".
7694 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
7697 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
7699 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
7700 'tune for' CPU name.
7701 * config/arm/arm-cpu-data.h: Regenerated.
7703 2017-02-28 Richard Biener <rguenther@suse.de>
7705 PR tree-optimization/79732
7706 * tree-inline.c (expand_call_inline): Do not shadow var.
7708 2017-02-28 Richard Biener <rguenther@suse.de>
7710 PR tree-optimization/79723
7711 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
7712 address-space properly.
7714 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
7716 * doc/optinfo.texi (Optimization groups): Fix option used for
7718 * doc/invoke.texi (-fopt-info): Document "omp".
7719 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
7720 (OPTGROUP_ALL): Add OPTGROUP_OMP.
7721 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
7722 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
7723 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
7725 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
7727 * dumpfile.c (optgroup_options): Instead of "openmp", associate
7728 OPTGROUP_OMP with "omp".
7730 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
7733 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
7734 for arithmetic shift of unsigned V2DI.
7736 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
7738 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
7739 arc/linux.h headers.
7740 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
7741 (LINK_SPEC): Likewise.
7742 (ARC_TLS_EXTRA_START_SPEC): Likewise.
7743 (EXTRA_SPECS): Likewise.
7744 (STARTFILE_SPEC): Likewise.
7745 (ENDFILE_SPEC): Likewise.
7746 (LIB_SPEC): Likewise.
7747 (TARGET_SDATA_DEFAULT): Likewise.
7748 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
7749 (MULTILIB_DEFAULTS): Likewise.
7750 (DWARF2_UNWIND_INFO): Likewise.
7751 * config/arc/big.h: New file.
7752 * config/arc/elf.h: Likewise.
7753 * config/arc/linux.h: Likewise.
7754 * config/arc/t-uClibc: Remove.
7756 2017-02-27 Bin Cheng <bin.cheng@arm.com>
7758 PR tree-optimization/77536
7759 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
7760 (tree_transform_and_unroll_loop): Use above function to compute the
7761 estimated niter of unrolled loop and use it when scaling profile.
7762 Also use count info rather than frequency if it's non-zero.
7763 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
7764 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
7765 (vect_transform_loop): Call above function.
7767 2017-02-27 Richard Biener <rguenther@suse.de>
7769 PR tree-optimization/45397
7770 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
7771 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
7772 (visit_nary_op): Add pattern matching for CSEing sign-changed
7773 or truncated operations with wider ones.
7775 2017-02-27 Richard Biener <rguenther@suse.de>
7777 PR tree-optimization/79690
7778 * tree-vect-stmts.c (vectorizable_store): Use vector type
7779 built from the DR with address-space.
7781 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7783 * doc/invoke.texi (Optimize Options): Refine the description
7784 of asan-use-after-return.
7786 2017-02-25 Alan Modra <amodra@gmail.com>
7788 PR rtl-optimization/79584
7789 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
7790 base, not ad->base_term, the reg within base. Remove assertion
7791 that ad->base == ad->base_term. Replace gen_int_mode using
7792 bogus mode with const0_rtx.
7794 2017-02-25 Jakub Jelinek <jakub@redhat.com>
7797 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
7798 FMA_EXPR like tcc_binary or tcc_unary.
7800 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
7803 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
7805 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
7806 (output_loc_operands): Handle DW_OP_call_ref and
7807 DW_OP_GNU_variable_value.
7808 (struct variable_value_struct): New type.
7809 (struct variable_value_hasher): Likewise.
7810 (variable_value_hash): New variable.
7811 (string_types): Remove.
7812 (copy_loc_descr): New function.
7813 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
7814 (prepend_loc_descr_to_each): New function.
7815 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
7816 instead of add_loc_descr_to_each if the first argument is single
7817 location list and the second has multiple.
7818 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
7819 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
7820 when looking for variable value which doesn't have other location info.
7821 (loc_list_from_tree): Formatting fix.
7822 (gen_array_type_die): Simplify DW_AT_string_length handling.
7823 (adjust_string_types): Remove.
7824 (gen_subprogram_die): Don't call adjust_string_types nor test/set
7825 string_types. Call resolve_variable_values.
7826 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
7827 (resolve_addr_in_expr): Likewise. Add A argument.
7828 (copy_deref_exprloc): Remove deref argument. Adjust for the
7829 original expression being DW_OP_GNU_variable_value with optionally
7830 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
7831 optionally after it.
7832 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
7833 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
7834 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
7835 (variable_value_hasher::hash, variable_value_hasher::equal): New
7837 (resolve_variable_value_in_expr, resolve_variable_value,
7838 resolve_variable_values, note_variable_value_in_expr,
7839 note_variable_value): New functions.
7840 (dwarf2out_early_finish): Call note_variable_value on all toplevel
7843 2017-02-24 Jakub Jelinek <jakub@redhat.com>
7846 * opts.h (handle_generated_option): Add GENERATED_P argument.
7847 * opts-common.c (handle_option): Adjust function comment.
7848 (handle_generated_option): Add GENERATED_P argument, pass it to
7850 (control_warning_option): Pass false to handle_generated_option
7852 * opts.c (maybe_default_option): Pass true to handle_generated_option
7854 * optc-gen.awk: Likewise.
7856 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7858 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
7859 a REG, look at the REG it is a SUBREG of.
7860 (splitter for cmpeqsi_t): Ditto.
7862 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7864 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
7865 the special USEs with the pattern of the insn, not the insn itself.
7867 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
7870 * doc/invoke.texi: Document -mload-store-pairs.
7872 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7873 Sandra Loosemore <sandra@codesourcery.com>
7875 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
7876 argument isn't a CONST_INT.
7877 (nios2_alternate_compare_const): Assert op is a CONST_INT.
7878 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
7879 (nios2_validate_compare): Bypass alternate compare logic if *op2
7881 (ldstwm_operation_p): Return false if first_base is not a REG or
7882 if first_offset is not a CONST_INT.
7884 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7886 * config/cris/cris.md: Use correct operand in a define_peephole2.
7888 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7890 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
7892 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
7894 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
7895 this_insn if it is an INSN or JUMP_INSN.
7896 (force_offsettable): Look at base, not at addr.
7897 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
7898 on things that aren't necessarily CONST_INTs.
7900 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
7902 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
7903 -mfpmath=sse is the default also for x86-32 targets with SSE2
7904 instruction set when @option{-ffast-math} is enabled
7906 2017-02-24 Jeff Law <law@redhat.com>
7908 PR rtl-optimizatoin/79286
7909 * ira.c (update_equiv_regs): Drop may_trap_p exception to
7912 2017-02-24 Richard Biener <rguenther@suse.de>
7914 PR tree-optimization/79389
7915 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
7918 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
7920 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
7921 function comment to reflect reality.
7922 (loop_exits_before_overflow): Fix typo in function description.
7924 2017-02-24 Richard Biener <rguenther@suse.de>
7926 PR tree-optimization/79389
7927 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
7928 properly that a threading opportunity exists. Detect conditional
7929 copy/constant propagation opportunities.
7931 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
7933 * config/visium/visium.md (type): Add trap.
7934 (b): New mode attribute.
7935 (*btst): Rename into...
7936 (*btst<mode>): ...this and adjust.
7937 (*cbranchsi4_btst_insn): Rename into...
7938 (*cbranch<mode>4_btst_insn): ...this and adjust.
7939 (trap): New define_insn.
7941 2017-02-23 Jakub Jelinek <jakub@redhat.com>
7943 PR tree-optimization/79389
7944 * ifcvt.c (struct noce_if_info): Add rev_cond field.
7945 (noce_reversed_cond_code): New function.
7946 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
7947 reversed_comparison_code. Formatting fix.
7948 (noce_try_store_flag): Test rev_cond != NULL in addition to
7949 reversed_comparison_code.
7950 (noce_try_store_flag_constants): Likewise.
7951 (noce_try_store_flag_mask): Likewise.
7952 (noce_try_addcc): Use rev_cond if non-NULL instead of
7953 reversed_comparison_code.
7954 (noce_try_cmove_arith): Likewise. Formatting fixes.
7955 (noce_try_minmax, noce_try_abs): Clear rev_cond.
7956 (noce_find_if_block): Initialize rev_cond.
7957 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
7958 instead of false as last argument never attempt to reverse it
7961 2017-02-23 Bin Cheng <bin.cheng@arm.com>
7963 PR tree-optimization/79663
7964 * tree-predcom.c (combine_chains): Process refs in reverse order
7965 only for ZERO length chains, and add explaining comment.
7967 2017-02-23 Jeff Law <law@redhat.com>
7969 PR tree-optimization/79578
7970 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
7971 in call to operand_equal_p.
7973 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
7976 * config/i386/cpuid.h: Fix another undefined behavior.
7978 2017-02-23 Richard Biener <rguenther@suse.de>
7980 PR tree-optimization/79683
7981 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
7982 vector types for data-refs.
7984 2017-02-23 Martin Liska <mliska@suse.cz>
7986 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
7988 2017-02-23 Jakub Jelinek <jakub@redhat.com>
7991 * internal-fn.c (get_range_pos_neg): Moved to ...
7992 * tree.c (get_range_pos_neg): ... here. No longer static.
7993 * tree.h (get_range_pos_neg): New prototype.
7994 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
7995 are known to be in between 0 and signed maximum inclusive, try to
7996 expand both unsigned and signed divmod and use the cheaper one from
7999 2017-02-22 Jeff Law <law@redhat.com>
8001 PR tree-optimization/79578
8002 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
8003 to compare base operands.
8005 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
8008 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
8009 gpc_reg_operand instead of fpr_reg_operand.
8011 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
8013 * config/mips/mips.c (mips_return_in_memory): Force FP
8014 vector types to be returned in memory for o32 ABI.
8016 2017-02-22 Jakub Jelinek <jakub@redhat.com>
8018 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
8019 instead of DW_TAG_member for static data member declarations and don't
8020 set no_linkage_name for static inline data members.
8021 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
8024 2017-02-22 Martin Liska <mliska@suse.cz>
8026 * doc/invoke.texi: Replace inequality signs with square brackets
8029 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8031 PR tree-optimization/68644
8032 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
8034 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
8037 * lra-constraints.c (simplify_operand_subreg): Handle
8038 WORD_REGISTER_OPERATIONS targets.
8040 2017-02-22 Jakub Jelinek <jakub@redhat.com>
8043 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
8044 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
8045 elimination by swapping fld*.
8047 2017-02-22 Richard Biener <rguenther@suse.de>
8049 PR tree-optimization/79673
8050 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
8051 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
8052 irrelevant address-space qualifiers and avoiding a
8053 ADDR_SPACE_CONVERT_EXPR from fold_convert.
8055 2017-02-22 Richard Biener <rguenther@suse.de>
8057 PR tree-optimization/79666
8058 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
8059 to not symbolically negate if that may introduce undefined
8062 2017-02-22 Martin Liska <mliska@suse.cz>
8065 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
8066 * data-streamer-out.c (streamer_write_gcov_count_stream):
8068 * value-prof.c (stream_out_histogram_value): Make assert more
8069 precise based on type of counter.
8071 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
8074 * config/i386/i386.md (standard_x87sse_constant_load splitter):
8075 Use nonimmediate_operand instead of memory_operand for operand 1.
8076 (float-extend standard_x87sse_constant_load splitter): Ditto.
8078 2017-02-21 Jeff Law <law@redhat.com>
8080 PR tree-optimization/79621
8081 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
8082 blocks with edges to themselves.
8084 2017-02-21 Jakub Jelinek <jakub@redhat.com>
8087 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
8088 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
8089 Use gimple_call_builtin_p.
8092 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
8093 on temporarily removed DEBUG_INSNs.
8095 PR tree-optimization/79649
8096 * tree-loop-distribution.c (classify_partition): Give up on
8097 non-generic address space loads/stores.
8099 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
8101 * doc/loop.texi (Loop manipulation): Remove nonexistent
8102 tree_ssa_loop_version from the documentation.
8103 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
8105 2017-02-21 Jakub Jelinek <jakub@redhat.com>
8108 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
8109 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
8110 * config/rs6000/rs6000.c: Include except.h.
8111 (rs6000_expand_split_stack_prologue): Call
8112 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
8114 2017-02-21 Martin Jambor <mjambor@suse.cz>
8117 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
8120 2017-02-21 Martin Jambor <mjambor@suse.cz>
8122 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
8123 for backward compatibility only.
8124 * doc/invoke.texi (Option Summary): Remove all references to
8127 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
8131 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
8133 * lra-constraints.c (curr_insn_transform): Handle
8134 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8136 2017-02-21 Martin Liska <mliska@suse.cz>
8138 * config/i386/i386.opt: Replace -masm-dialect with -masm.
8140 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
8142 PR translation/79638
8143 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
8145 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
8148 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8149 (arm_function_ok_for_sibcall): Return false for an indirect call by
8150 descriptor if all the argument registers are used.
8151 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
8152 alignment of the function.
8154 2017-02-21 Jakub Jelinek <jakub@redhat.com>
8156 PR tree-optimization/61441
8157 * simplify-rtx.c (simplify_const_unary_operation): For
8158 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
8159 the sNaN unmodified.
8161 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8163 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8164 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8165 instead of SYSTEM_HEADER_DIR.
8167 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
8168 Martin Liška <mliska@suse.cz>
8170 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
8171 Fix typos and grammar, use active voice, and clarify.
8173 2017-02-20 Marek Polacek <polacek@redhat.com>
8176 * gimplify.c (gimplify_expr): Handle unused *&&L;.
8179 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
8181 2017-02-20 Jakub Jelinek <jakub@redhat.com>
8184 * config/i386/i386.c (ix86_expand_builtin): Handle
8185 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
8186 ix86_builtins_isa[fcode].isa as a requirement of those
8187 flags and any other flag in the bitmask.
8188 (ix86_init_mmx_sse_builtins): Use 0 instead of
8189 ~OPTION_MASK_ISA_64BIT as mask.
8190 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
8191 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
8192 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
8193 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
8195 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
8198 * lra-constraints.c (split_reg): Check requested split mode
8199 is supported by the register.
8201 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
8203 * lra-constraints.c (simplify_operand_subreg): Remove early
8206 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
8209 * lra-constraints.c (curr_insn_transform): Tighten condition
8210 for converting SUBREG reloads from OP_OUT to OP_INOUT.
8212 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
8215 * lra-constraints.c (curr_insn_transform): Handle
8216 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
8218 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
8221 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
8223 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8225 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
8228 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
8231 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8233 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
8236 2017-02-18 Jakub Jelinek <jakub@redhat.com>
8238 * final.c (last_columnnum, override_columnnum): New variables.
8239 (final_start_function): Set last_columnnum, pass it to begin_prologue
8240 hook and pass 0 to dwarf2out_begin_prologue.
8241 (final_scan_insn): Update override_columnnum. Pass last_columnnum
8242 to source_line debug hook.
8243 (notice_source_line): Compute last_columnnum and for debug_column_info
8244 return true on column changes.
8245 * debug.h (struct gcc_debug_hooks): Add column argument to
8246 source_line and begin_prologue hooks.
8247 (debug_nothing_int_charstar_int_bool): Remove prototype.
8248 (debug_nothing_int_int_charstar,
8249 debug_nothing_int_int_charstar_int_bool): New prototypes.
8250 (dwarf2out_begin_prologue): Add column argument.
8251 * debug.c (do_nothing_debug_hooks): Adjust source_line and
8252 begin_prologue hooks.
8253 (debug_nothing_int_charstar_int_bool): Remove.
8254 (debug_nothing_int_int_charstar,
8255 debug_nothing_int_int_charstar_int_bool): New functions.
8256 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
8257 through to dwarf2out_source_line.
8258 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
8259 (dwarf2out_source_line): Add column argument, emit it if requested.
8260 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
8262 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8263 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
8264 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
8265 through to dwarf2out_begin_prologue.
8266 (vmsdbgout_source_line): Add column argument, pass it through to
8267 dwarf2out_source_line.
8268 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
8269 dbxout_source_line caller.
8270 (dbxout_source_line): Add column argument.
8272 * common.opt (gno-column-info, gcolumn-info): New options.
8273 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
8274 (check_die): Also test for multiple DW_AT_decl_column attributes.
8275 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
8276 DW_AT_decl_column if requested.
8277 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
8279 (gen_variable_die): Likewise.
8280 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
8281 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
8284 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
8285 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
8286 (ix86_handle_option): Handle OPT_m3dnowa.
8287 * doc/invoke.texi (-m3dnowa): Document.
8288 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
8289 -m3dnowa instead of -m3dnow -march=athlon.
8292 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
8293 instead of gcc_assert for K, r and R code checks. Formatting fixes.
8295 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8298 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
8299 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
8300 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
8301 generator for vsx_xxpermdi_<mode>_be.
8302 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
8303 force big-endian semantics.
8304 (vsx_xxpermdi_<mode>_be): New define_expand with same
8305 implementation as previous version of vsx_xxpermdi_<mode>.
8307 2017-02-17 Jakub Jelinek <jakub@redhat.com>
8309 PR tree-optimization/79327
8310 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
8311 variable, its initialization and use.
8313 2017-02-17 Julia Koval <julia.koval@intel.com>
8315 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
8316 (OPTION_MASK_ISA_PKU_UNSET): New.
8317 (ix86_handle_option): Handle -mrdpid.
8318 * config/i386/cpuid.h (bit_RDPID): New.
8319 * config/i386/driver-i386.c (host_detect_local_cpu):
8320 Detect RDPID feature.
8321 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
8322 * config/i386/i386-c.c (ix86_target_macros_internal):
8324 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
8325 (ix86_valid_target_attribute_inner_p): Add "rdpid".
8326 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
8327 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
8328 * config/i386/i386.md (define_insn "rdpid"): New.
8329 * config/i386/i386.opt Add -mrdpid.
8330 * config/i386/immintrin.h (_rdpid_u32): New.
8332 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
8334 PR rtl-optimization/79541
8335 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
8336 instead of transforming it into USE.
8338 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
8340 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
8341 If HONOR_SNANS (SFmode) force the input to a register.
8342 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
8343 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
8344 an frsp or similar insn.
8346 2017-02-17 Martin Liska <mliska@suse.cz>
8348 PR rtl-optimization/79577
8349 * params.def (selsched-max-sched-times): Increase minimum to 1.
8351 2017-02-17 Martin Liska <mliska@suse.cz>
8353 PR rtl-optimization/79574
8354 * gcse.c (want_to_gcse_p): Prevent integer overflow.
8356 2017-02-17 Martin Liska <mliska@suse.cz>
8358 PR tree-optimization/79529
8359 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
8360 ssa_defined_default_def_p to handle cases which are implicitly
8362 * tree-ssa.c (ssa_defined_default_def_p): New function.
8363 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
8364 which are implicitly defined.
8365 * tree-ssa.h (ssa_defined_default_def_p): Declare.
8367 2017-02-17 Richard Biener <rguenther@suse.de>
8370 * params.def (max-ssa-name-query-depth): Limit to 10.
8372 2017-02-17 Richard Biener <rguenther@suse.de>
8374 PR tree-optimization/79552
8375 * tree-ssa-structalias.c (visit_loadstore): Properly verify
8378 2017-02-17 Richard Biener <rguenther@suse.de>
8381 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
8383 2017-02-17 Marek Polacek <polacek@redhat.com>
8386 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
8387 (fold_negate_expr): New wrapper.
8389 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
8391 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
8392 Correct terminology and de-emphasize pre-standard behavior.
8394 2017-02-16 Alan Modra <amodra@gmail.com>
8396 PR rtl-optimization/79286
8397 * ira.c (def_dominates_uses): New function.
8398 (update_equiv_regs): Don't create an equivalence for insns that
8399 may trap where the register def does not dominate the use.
8401 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
8403 PR rtl-optimization/78127
8404 * lra.c (lra): Call lra_eliminate before finish the loop after
8407 2017-02-16 Richard Biener <rguenther@suse.de>
8409 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
8411 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
8412 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
8413 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
8414 (isl_val_int_from_wi): New function.
8415 (extract_affine_gmp): Rename to ...
8416 (extract_affine_wi): ... this, take a widest_int.
8417 (extract_affine_int): Just wrap extract_affine_wi.
8418 (add_param_constraints): Use isl_val_int_from_wi.
8419 (add_loop_constraints): Likewise, and extract_affine_wi.
8421 2017-02-15 Jeff Law <law@redhat.com>
8424 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
8425 ira_init_register_move_cost_if_necessary.
8427 2017-02-15 Martin Sebor <msebor@redhat.com>
8430 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
8431 removed in a prior commit.
8433 2017-02-15 Bin Cheng <bin.cheng@arm.com>
8435 PR tree-optimization/79347
8436 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
8437 counters during peeling.
8439 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
8441 * Makefile.in (site.exp): Remove "set ISLVER".
8443 2017-02-15 Jakub Jelinek <jakub@redhat.com>
8446 * real.c (real_from_integer): Call real_convert even for decimal.
8448 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8451 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8453 2017-02-14 Andrew Pinski <apinski@cavium.com>
8455 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
8456 cores and change the partno/implementer to be correct.
8457 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
8458 the 'B" as the implementer.
8459 * config/aarch64/aarch64-tune.md: Regenerate.
8461 2017-02-14 Carl Love <cel@us.ibm.com>
8463 * config/rs6000/rs6000.c: Add case statement entry to make the
8464 xvcvuxdsp built-in argument unsigned.
8465 * config/rs6000/vsx.md: Fix the source and return operand types so they
8466 match the instruction definitions from the ISA document. Fix typo
8467 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
8470 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
8473 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
8474 member early_clobber_alts.
8475 * lra-lives.c (reg_early_clobber_p): New.
8476 (process_bb_lives): Use it.
8477 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
8478 (debug_operand_data): Initialize early_clobber_alts.
8479 (setup_operand_alternative): Set up early_clobber_alts.
8480 (collect_non_operand_hard_regs): Ditto. Pass early clobber
8481 alternatives to new_insn_reg.
8482 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
8484 (lra_update_insn_regno_info): Pass the new arg.
8486 2017-02-14 Jakub Jelinek <jakub@redhat.com>
8489 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
8490 (new_oacc_loop_raw): Don't clear already cleared fields.
8493 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
8494 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
8495 _mm512_prefetch_i64gather_ps): New inline functions and macros.
8497 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
8500 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
8502 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
8505 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
8506 the extra instruction to the right place to store 128-bit constant
8509 2017-02-14 Martin Sebor <msebor@redhat.com>
8512 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
8513 warning for strings of unknown length.
8515 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
8517 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
8519 2017-02-14 Jeff Law <law@redhat.com>
8522 * ira-costs.c (scan_one_insn): Initialize register move costs
8523 for pseudos seen in USE/CLOBBER insns.
8525 PR tree-optimization/79095
8526 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
8527 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
8528 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
8529 if the operands are known to be not equal, then the resulting range
8531 (intersect_ranges): If the new range is ~[0,0] and the old range is
8532 wide, then prefer ~[0,0].
8533 * tree-vrp.c (overflow_comparison_p_1): New function.
8534 (overflow_comparison_p): New function.
8535 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
8536 if NAME is used in an overflow test.
8537 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
8538 overflow check that can be expressed as an equality test, then adjust
8539 ops to be that equality test.
8541 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8543 * config/s390/s390-builtin-types.def: Remove flags argument.
8544 * config/s390/s390.c (s390_init_builtins): Likewise.
8546 2017-02-14 Martin Liska <mliska@suse.cz>
8548 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
8549 vector. Fix trailing white spaces.
8551 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
8553 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
8556 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8558 PR rtl-optimization/68664
8559 * config/arm/arm.c (arm_sched_can_speculate_insn):
8560 New function. Declare prototype.
8561 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
8563 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8565 PR rtl-optimization/68664
8566 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
8568 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
8570 2017-02-14 Amit Pawar <amit.pawar@amd.com>
8572 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
8573 max skip bytes for function, loop and jump.
8575 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8577 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
8578 ABS_EXPR for gimple dump.
8580 2017-02-14 Jakub Jelinek <jakub@redhat.com>
8583 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
8585 PR tree-optimization/79408
8586 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
8587 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
8588 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
8589 also if rhs1 is INTEGER_CST.
8591 2017-02-14 Richard Biener <rguenther@suse.de>
8594 * tree-into-ssa.c (insert_phi_nodes): When the function can
8595 have abnormal edges rewrite SSA names with broken use-def
8596 dominance out of SSA and register them for PHI insertion.
8598 2017-02-13 Martin Sebor <msebor@redhat.com>
8601 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
8602 clearing info.nowrite flag when snprintf size argument is a range.
8604 2017-02-13 Jakub Jelinek <jakub@redhat.com>
8606 * cprop.c (cprop_jump): Add missing space in string literal.
8607 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8608 (get_constraint_for_component_ref): Likewise.
8609 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8610 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
8611 * lra-constraints.c (process_alt_operands): Likewise.
8612 * ipa-inline.c (inline_small_functions): Likewise.
8613 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
8614 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8615 * trans-mem.c (diagnose_tm_1_op): Likewise.
8616 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
8617 (grid_parallel_clauses_gridifiable): Likewise.
8619 * config/nvptx/mkoffload.c (process): Add space in between
8622 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
8623 "MOD4_SSE_REGS" and "ALL_REGS".
8625 * spellcheck.c (test_data): Add , in between "foo" and "food".
8627 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8630 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
8631 boundary crossing check and subsequent code generation agree.
8633 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8635 * config/aarch64/aarch64.c (has_memory_op): Delete.
8636 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
8639 2017-02-13 Jakub Jelinek <jakub@redhat.com>
8641 PR rtl-optimization/79388
8642 PR rtl-optimization/79450
8643 * combine.c (distribute_notes): When removing TEM_INSN for which
8644 corresponding dest has last value recorded, invalidate that last
8647 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8649 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
8650 of explicit '@'. Add missing assembly comment marker on branch costs
8653 2017-02-13 Nathan Sidwell <nathan@acm.org>
8655 * gengtype-lex.l (<in_struct>): Add '/'.
8657 2017-02-13 Martin Liska <mliska@suse.cz>
8660 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
8662 2017-02-13 Richard Biener <rguenther@suse.de>
8664 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
8666 * configure: Re-generate.
8667 * config.in: Likewise.
8668 * graphite-dependences.c: Simplify as if
8669 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
8670 * graphite-isl-ast-to-gimple.c: Likewise.
8671 * graphite-optimize-isl.c: Likewise.
8672 * graphite-poly.c: Likewise.
8673 * graphite-sese-to-poly.c: Likewise.
8674 * graphite.h: Likewise.
8675 * toplev.c: Include isl/version.h and use isl_version () for
8676 printing the ISL version.
8677 * doc/install.texi: Update ISL requirement.
8679 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
8681 * doc/standards.texi (Standards): Update reference to
8684 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
8686 * doc/extend.texi (Named Address Spaces): sourceware.org now
8688 * doc/install.texi (Binaries): Ditto.
8691 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
8693 * doc/cpp.texi: Replace "stringify"/"stringification" with C
8694 standard terminology "stringize"/"stringizing" throughout.
8695 * doc/cppinternals.texi: Likewise.
8697 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
8699 * doc/extend.texi: Fix some spelling mistakes and typos.
8700 * doc/invoke.texi: Likewise.
8702 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
8705 * params.def (inline-min-speedup) Change from 10 to 8.
8707 2017-02-11 Jakub Jelinek <jakub@redhat.com>
8709 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
8712 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
8715 * ipa-inline-analysis.c (get_minimal_bb): New function.
8716 (record_modified): Use it.
8717 (remap_edge_change_prob): Handle also ancestor functions.
8719 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
8721 * doc/contrib.texi (Contributors): Remove broken link into
8722 the Mauve CVS repository.
8724 2017-02-11 Jakub Jelinek <jakub@redhat.com>
8727 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
8728 result computation whenever lhs doesn't have vector mode, not
8729 just when it has BLKmode.
8731 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
8733 * doc/makefile.texi (profiledbootstrap): Refer to the
8734 installation instructions only in textual form.
8736 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8739 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
8741 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
8743 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
8744 (Specific): Update mingw-w64 reference.
8746 (Specific): Remove broken link to Renesas RX processor.
8748 2017-02-10 Richard Biener <rguenther@suse.de>
8750 * toplev.c (process_options): Do not mention obsolete graphite
8751 options when printing sorry message about missing graphite support.
8752 Mention -floop-nest-optimize.
8754 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
8756 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
8757 (vtst_p16): Likewise.
8758 (vtstq_p8): Likewise.
8759 (vtstq_p16): Likewise.
8761 (vtstq_p64): Likewise.
8762 * config/arm/arm_neon.h (vgetq_lane_p64): New.
8763 (vset_lane_p64): New.
8764 (vsetq_lane_p64): New.
8766 2017-02-10 Jakub Jelinek <jakub@redhat.com>
8768 PR tree-optimization/79411
8769 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
8770 stmt operands are SSA_NAMEs used in abnormal phis.
8771 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
8774 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
8777 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
8780 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
8782 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
8784 2017-02-09 Jakub Jelinek <jakub@redhat.com>
8786 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
8790 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
8791 not arbitrary TREE_CONSTANT.
8794 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
8795 "omp declare target link" attribute unless is_global_var.
8796 * omp-offload.c (find_link_var_op): Likewise.
8798 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
8799 Chung-Lin Tang <cltang@codesourcery.com>
8801 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
8803 (gimplify_adjust_omp_clauses): Don't delete TILE.
8804 (gimplify_omp_for): Deal with TILE.
8805 * internal-fn.c (expand_GOACC_TILE): New function.
8806 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
8808 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
8809 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
8811 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
8812 avoid DIV for outermost collapse var.
8813 (expand_oacc_for): Insert tile element loop as needed. Adjust.
8814 Remove out of date comments, fix whitespace.
8815 * omp-general.c (omp_extract_for_data): Deal with tiling.
8816 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
8817 adjust OLF_DIM_BASE value.
8818 (struct omp_for_data): Add tiling field.
8819 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
8820 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
8821 for auto loops. Remove default auto determining, moved to
8822 oacc_loop_fixed_partitions.
8823 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
8824 stmts, add e_mask field.
8825 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
8826 (oacc_thread_numbers): Use oacc_dim_call.
8827 (oacc_xform_tile): New.
8828 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
8829 (finish_oacc_loop): Adjust for ifns vector.
8830 (oacc_loop_discover_walk): Append loop abstraction sites to list,
8831 add case for GOACC_TILE fns.
8832 (oacc_loop_xform_loop): Delete.
8833 (oacc_loop_process): Iterate over call list directly, and add
8834 handling for GOACC_TILE fns.
8835 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
8837 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
8838 vector partitioning to outer loops. Assign 2 partitions to loops
8839 when available. Add TILE handling.
8840 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
8841 (execite_oacc_device_lower): Process GOACC_TILE fns,
8842 ignore unknown specs.
8843 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
8844 * tree.c (omp_clause_num_ops): Adjust TILE ops.
8845 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
8847 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
8849 * configure.ac (ACX_BUGURL): Update.
8850 * configure: Regenerate.
8852 2017-02-09 Richard Biener <rguenther@suse.de>
8854 PR tree-optimization/69823
8855 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8856 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
8858 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
8860 * config/arc/arc-c.def: Add __NPS400__ definition.
8861 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
8862 (TARGET_NPS400): Define.
8864 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
8866 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
8868 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
8870 (arc_cpu_types): Fill the arch_info field with a pointer into the
8871 arc_arch_types table.
8872 (arc_selected_cpu): Declare.
8873 * config/arc/arc.c (arc_selected_cpu): Make global.
8874 (arc_selected_arch): Delete.
8875 (arc_base_cpu): Delete.
8876 (arc_override_options): Remove references to deleted variables,
8877 update access to arch information.
8878 (ARC_OPT): Update access to arch information.
8879 (ARC_OPTX): Likewise.
8880 * config/arc/arc.h (arc_base_cpu): Remove declaration.
8881 (TARGET_ARC600): Update access to arch information.
8882 (TARGET_ARC601): Likewise.
8883 (TARGET_ARC700): Likewise.
8884 (TARGET_EM): Likewise.
8885 (TARGET_HS): Likewise.
8886 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
8889 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
8892 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
8893 condition/operands for integer GE/LE/GEU/LEU operations.
8895 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
8897 PR translation/79397
8898 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
8901 2017-02-08 Martin Jambor <mjambor@suse.cz>
8904 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
8905 whether allocation happened.
8906 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
8907 nothing was allocated.
8909 2017-02-08 Jakub Jelinek <jakub@redhat.com>
8911 PR tree-optimization/79408
8912 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
8913 constant, but SSA_NAME with a known integer range, use the minimum
8914 of that range instead of op1 to determine if modulo can be replaced
8915 with its first operand.
8917 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8919 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
8921 2017-02-08 Richard Biener <rguenther@suse.de>
8923 PR tree-optimization/71824
8924 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
8925 Check all loops contained in the merged region.
8927 2017-02-07 Andrew Pinski <apinski@cavium.com>
8929 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
8931 2017-02-07 Andrew Pinski <apinski@cavium.com>
8933 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
8934 (thunderxt88): Likewise.
8935 (thunderxt81): Disable LSE and change v8.1 to v8.
8936 (thunderxt83): Likewise.
8938 2017-02-07 Jakub Jelinek <jakub@redhat.com>
8939 Richard Biener <rguenther@suse.de>
8942 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
8943 type from int to size_t.
8944 * ira-costs.c (struct_costs_size): Change type from int to size_t.
8946 2017-02-07 Jakub Jelinek <jakub@redhat.com>
8948 PR rtl-optimization/79386
8949 * cprop.c (bypass_conditional_jumps): Initialize
8950 bypass_last_basic_block already before splitting bbs after
8951 unconditional traps...
8952 (bypass_conditional_jumps): ... rather than here.
8955 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
8956 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
8957 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
8958 fix -masm=intel patterns.
8960 2017-02-07 Richard Biener <rguenther@suse.de>
8962 PR tree-optimization/79256
8964 * builtins.c (get_object_alignment_2): Use min_align_of_type
8965 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
8966 and ADJUST_FIELD_ALIGN.
8968 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
8970 * doc/tm.texi: Regenerate.
8971 * stor-layout.c (layout_decl): Adjust.
8972 (update_alignment_for_field): Likewise.
8973 (place_field): Likewise.
8974 (min_align_of_type): Likewise.
8975 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
8976 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
8977 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
8978 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
8979 * config/frv/frv.c (frv_adjust_field_align): Likewise.
8980 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
8981 * config/i386/i386.c (x86_field_alignment): Likewise.
8982 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8983 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
8984 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8985 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8986 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
8987 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8991 2017-01-30 Richard Biener <rguenther@suse.de>
8993 PR tree-optimization/79256
8994 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
8995 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
8998 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
9000 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
9001 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
9002 builtins to SImode and emit a zero-extend, if necessary.
9004 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
9006 * docs/invoke.texi (RISC-V Options): Alphabetize.
9008 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
9010 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
9013 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
9015 * config/riscv/riscv.c: New file.
9016 * gcc/common/config/riscv/riscv-common.c: Likewise.
9017 * config.gcc: Likewise.
9018 * config/riscv/constraints.md: Likewise.
9019 * config/riscv/elf.h: Likewise.
9020 * config/riscv/generic.md: Likewise.
9021 * config/riscv/linux.h: Likewise.
9022 * config/riscv/multilib-generator: Likewise.
9023 * config/riscv/peephole.md: Likewise.
9024 * config/riscv/pic.md: Likewise.
9025 * config/riscv/predicates.md: Likewise.
9026 * config/riscv/riscv-builtins.c: Likewise.
9027 * config/riscv/riscv-c.c: Likewise.
9028 * config/riscv/riscv-ftypes.def: Likewise.
9029 * config/riscv/riscv-modes.def: Likewise.
9030 * config/riscv/riscv-opts.h: Likewise.
9031 * config/riscv/riscv-protos.h: Likewise.
9032 * config/riscv/riscv.h: Likewise.
9033 * config/riscv/riscv.md: Likewise.
9034 * config/riscv/riscv.opt: Likewise.
9035 * config/riscv/sync.md: Likewise.
9036 * config/riscv/t-elf-multilib: Likewise.
9037 * config/riscv/t-linux: Likewise.
9038 * config/riscv/t-linux-multilib: Likewise.
9039 * config/riscv/t-riscv: Likewise.
9040 * configure.ac: Likewise.
9041 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
9042 Waterman as RISC-V maintainers.
9043 * doc/install.texi: Add RISC-V entries.
9044 * doc/invoke.texi: Add RISC-V options section.
9045 * doc/md.texi: Add RISC-V constraints section.
9046 * configure: Regenerated.
9048 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9051 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
9052 false values to be constant vectors with all 0 or all 1 bits set.
9053 (vcondu<mode><mode>): Likewise.
9054 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
9056 (fpmask_comparison_operator): Update comment.
9057 (vecint_comparison_operator): New predicate.
9058 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
9059 vector conditionals when the true and false values are constant
9060 vectors with all 0 bits or all 1 bits set.
9062 2017-02-06 Martin Sebor <msebor@redhat.com>
9064 PR tree-optimization/79376
9065 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
9067 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
9069 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
9070 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
9071 to simplify split condition.
9073 2017-02-06 Jakub Jelinek <jakub@redhat.com>
9075 * omp-expand.c (oxpand_omp_atomic_fetch_op,
9076 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
9079 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
9081 PR rtl-optimization/68664
9082 * target.def (can_speculate_insn): New hook.
9083 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
9084 * doc/tm.texi: Regenerate.
9085 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
9086 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
9087 (rs6000_sched_can_speculate_insn): New function.
9089 2017-02-06 Jakub Jelinek <jakub@redhat.com>
9091 PR tree-optimization/79284
9092 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
9093 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
9094 vectorizable_mask_load_store, vectorizable_operation,
9095 vect_is_simple_cond, get_same_sized_vectype): Use it instead
9096 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
9097 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
9098 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
9099 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9100 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9101 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
9102 is_gimple_assign (stmt). Replace another such test with
9103 is_gimple_assign (stmt).
9105 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
9108 * config/avr/avr.c (rtl-iter.h): Include it.
9109 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
9110 (avr_legitimate_combined_insn): ...and implementation.
9112 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
9114 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
9115 * config/s390/s390.c (s390_const_operand_ok)
9116 (s390_canonicalize_comparison, s390_extract_part)
9117 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
9118 (s390_contiguous_bitmask_p, s390_rtx_costs)
9119 (legitimize_pic_address): Likewise.
9120 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
9121 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
9122 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
9123 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
9124 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
9126 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
9128 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
9129 REGNO($0) == REGNO($1).
9131 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9133 * config/s390/linux.h(SIZE_TYPE): Add comment.
9135 2017-02-06 Julian Brown <julian@codesourcery.com>
9136 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9137 Virendra Pathak <virendra.pathak@broadcom.com>
9139 * config/aarch64/aarch64-cores.def: Change the scheduler
9141 * config/aarch64/aarch64.md: Include thunderx2t99.md.
9142 * config/aarch64/thunderx2t99.md: New file.
9144 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
9146 * doc/standards.texi (Go Language): Update link to language
9149 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
9151 * tree-eh.c (lower_resx): Sanitize profile.
9152 (cleanup_empty_eh_move_lp): Likewise.
9154 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
9157 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
9159 * cfgloopmanip.h (loop_version): Update prototype.
9160 * modulo-sched.c (sms_schedule): Update call of loop_version.
9161 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
9162 * tree-parloops.c (gen_parallel_loop): Likewise.
9163 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
9164 * tree-ssa-loop-split.c (split_loop): Likewise.
9165 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
9166 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
9168 2017-02-05 Martin Liska <mliska@suse.cz>
9171 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
9173 (print_operand_address): Initialize a struct to zero.
9175 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
9177 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
9178 garbage collector only in textual form.
9180 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
9182 * doc/extend.texi (x86 specific memory model extensions for
9183 transactional memory): Simplify a phrase.
9185 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
9188 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
9189 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
9190 (atomic_storedi_1): Likewise.
9192 2017-02-04 Jakub Jelinek <jakub@redhat.com>
9194 PR tree-optimization/79338
9195 * tree-parloops.c (gather_scalar_reductions): Don't call
9196 vect_analyze_loop_form for loop->inner before destroying loop's
9199 2017-02-03 Martin Sebor <msebor@redhat.com>
9201 PR tree-optimization/79327
9202 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
9203 when precision has resulted in leading zeros.
9204 (format_integer): Adjust the likely counter to assume an unknown
9205 argument that may be zero is non-zero.
9207 2017-02-03 Jason Merrill <jason@redhat.com>
9210 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
9211 avoid copying non-taken branch.
9213 2017-02-03 Jakub Jelinek <jakub@redhat.com>
9215 PR tree-optimization/79340
9216 * tree-vect-loop.c (vectorizable_reduction): Release
9217 vec_defs elements after safe_splicing them into other vectors.
9220 PR tree-optimization/79327
9221 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
9222 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
9224 (format_integer): Use wide_int_to_tree instead of build_int_cst
9225 + to_?hwi. If argmin is NULL, just set argmin and argmax to
9226 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
9227 of shortest and longest sequence.
9229 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
9231 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
9232 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
9234 2017-02-03 Walter Lee <walt@tilera.com>
9237 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
9238 after initial stackframe link reg save.
9239 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
9241 2017-02-03 Jakub Jelinek <jakub@redhat.com>
9244 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
9245 wu for stxssp alternative.
9247 2017-02-03 Martin Sebor <msebor@redhat.com>
9249 PR tree-optimization/79352
9250 * gimple-fold.c (get_range_strlen): Add argument.
9251 (get_range_strlen): Change return type to bool.
9252 (get_maxval_strlen): Pass in a dummy argument.
9253 * gimple-fold.h (get_range_strlen): Change return type to bool.
9254 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
9255 * tree.h (array_at_struct_end_p): Add argument.
9256 * tree.c (array_at_struct_end_p): Handle it.
9258 2017-02-03 Martin Liska <mliska@suse.cz>
9261 * multiple_target.c (create_dispatcher_calls): Redirect edge
9262 from a caller of a dispatcher.
9263 (expand_target_clones): Make the clones local.
9264 (ipa_target_clone): Do both target clones and resolvers.
9265 (ipa_dispatcher_calls): Remove the pass.
9266 (pass_dispatcher_calls::gate): Likewise.
9267 (make_pass_dispatcher_calls): Likewise.
9268 * passes.def (pass_target_clone): Put as very first IPA early
9271 2017-02-03 Martin Liska <mliska@suse.cz>
9273 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
9274 in case of a function with ifunc attribute.
9276 2017-02-03 Martin Liska <mliska@suse.cz>
9278 * cgraph.c (cgraph_node::dump): Dump function version info.
9279 * symtab.c (symtab_node::dump_base): Add missing new line.
9281 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
9283 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
9284 (ifcombine_ifandif): Use it.
9286 2017-02-03 Martin Liska <mliska@suse.cz>
9288 * doc/invoke.texi: Document default value for
9289 use-after-scope-direct-emission-threshold.
9291 2017-02-03 Martin Liska <mliska@suse.cz>
9293 PR tree-optimization/79339
9294 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
9295 (format_floating): Likewise.
9297 2017-02-03 Martin Liska <mliska@suse.cz>
9300 * ipa-prop.c (ipa_node_params_t::insert): Remove current
9302 (ipa_node_params_t::remove): Likewise.
9303 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
9304 initialization from removed ipa_node_params_t::insert.
9305 (ipa_node_params::~ipa_node_params): Move from removed
9306 ipa_node_params_t::release.
9307 * symbol-summary.h (symbol_summary::m_released): New member.
9308 Do not release a summary twice. Do not allow to call finalizer
9309 for types of a summary that live in GGC memory.
9311 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9313 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
9316 2017-02-02 Martin Sebor <msebor@redhat.com>
9319 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
9320 (format_string): Tighten up the range of output for non-constant
9321 strings and correct the expected range for wide non-constant strings.
9323 2017-02-02 Martin Sebor <msebor@redhat.com>
9325 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
9328 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
9330 (-fdump-tree-@var): Add to index and document how to come up
9331 with pass-specific option and dump file names.
9332 (-fdump-passes): Clarify where to look for output.
9334 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
9337 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
9338 statistics of the analyzed path; allow threading for speed when
9339 any of BBs along the path are optimized for speed.
9341 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
9344 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
9345 settings of the virtual registers.
9348 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9350 * explow.c (get_dynamic_stack_size): Take known alignment of stack
9351 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9354 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9356 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
9357 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
9359 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9361 * config/s390/s390.md: Add missing comments with the expanded
9363 * config/s390/vector.md: Likewise.
9364 * config/s390/vx-builtins.md: Likewise.
9366 2017-02-02 Jakub Jelinek <jakub@redhat.com>
9369 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
9370 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
9371 conditions on a single line.
9373 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9375 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9376 __S390_VX__ to __VX__.
9378 2017-02-01 Andrew Pinski <apinski@cavium.com>
9380 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
9381 stmt_info to record_stmt_cost.
9382 (vect_get_known_peeling_cost): Pass stmt_info if known to
9384 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
9385 cpu_vector_cost field into
9386 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
9387 field into vec_int_stmt_cost and vec_fp_stmt_cost.
9388 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
9389 splitting of scalar_stmt_cost and vec_stmt_cost.
9390 (thunderx_vector_cost): Likewise.
9391 (cortexa57_vector_cost): LIkewise.
9392 (exynosm1_vector_cost): Likewise.
9393 (xgene1_vector_cost): Likewise.
9394 (thunderx2t99_vector_cost): Improve after the splitting of the two
9396 (aarch64_builtin_vectorization_cost): Update for the splitting of
9397 scalar_stmt_cost and vec_stmt_cost.
9399 2017-02-01 Torvald Riegel <triegel@redhat.com>
9400 Richard Henderson <rth@redhat.com>
9402 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
9403 conditional on existance of a fast atomic load.
9404 * optabs-query.c (can_atomic_load_p): New function.
9405 * optabs-query.h (can_atomic_load_p): Declare it.
9406 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
9407 no fast atomic load is available for the particular size of access.
9408 (expand_atomic_compare_and_swap): Likewise.
9409 (expand_atomic_load): Likewise.
9410 (expand_atomic_store): Likewise.
9411 (expand_atomic_fetch_op): Likewise.
9412 * testsuite/lib/target-supports.exp
9413 (check_effective_target_sync_int_128): Remove x86 because it provides
9414 no fast atomic load.
9415 (check_effective_target_sync_int_128_runtime): Likewise.
9417 2017-02-01 Richard Biener <rguenther@suse.de>
9419 * graphite.c: Include tree-vectorizer.h for find_loop_location.
9420 (graphite_transform_loops): Provide opt-info for optimized nests.
9421 * tree-parloop.c (parallelize_loops): Provide opt-info for
9424 2017-02-01 Richard Biener <rguenther@suse.de>
9427 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
9430 2017-02-01 Richard Biener <rguenther@suse.de>
9432 PR tree-optimization/71824
9433 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
9434 Verify the loops are valid in the merged SESE region.
9435 (scop_detection::can_represent_loop_1): Check analyzing the
9436 evolution of the number of iterations in the region succeeds.
9438 2017-01-31 Ian Lance Taylor <iant@golang.org>
9440 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
9441 REG_ARGS_SIZE note to 32-bit push insns and call insn.
9443 2017-01-31 David Malcolm <dmalcolm@redhat.com>
9445 PR preprocessor/79210
9446 * input.c (get_substring_ranges_for_loc): Replace line_width
9447 assertion with error-handling.
9449 2017-01-31 Richard Biener <rguenther@suse.de>
9451 PR tree-optimization/77318
9452 * graphite-sese-to-poly.c (extract_affine): Fix assert.
9453 (create_pw_aff_from_tree): Take loop parameter.
9454 (add_condition_to_pbb): Pass loop of the condition to
9455 create_pw_aff_from_tree.
9457 2017-01-31 Jakub Jelinek <jakub@redhat.com>
9459 * config/s390/s390.c (s390_asan_shadow_offset): New function.
9460 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
9462 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
9466 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
9468 (convert_int_to_float128): Likewise.
9469 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
9470 (convert_int_to_float128): Likewise.
9471 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
9472 (UNSPEC_IEEE128_CONVERT): Likewise.
9473 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
9474 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
9475 Use local variables for IBM extended format.
9476 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
9477 (fix_trunc<mode>si2_fprs): Likewise.
9478 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9479 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
9480 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
9481 to know that we can now have integers of all sizes in vector
9483 (fix<uns>_<mode>di2_hw): Likewise.
9484 (float<uns>_<mode>si2_hw): Likewise.
9485 (fix_<mode>si2_hw): Likewise.
9486 (fixuns_<mode>si2_hw): Likewise.
9487 (float<uns>_<mode>di2_hw): Likewise.
9488 (float_<mode>di2_hw): Likewise.
9489 (float_<mode>si2_hw): Likewise.
9490 (floatuns_<mode>di2_hw): Likewise.
9491 (floatuns_<mode>si2_hw): Likewise.
9492 (xscvqp<su>wz_<mode>): Delete, no longer used.
9493 (xscvqp<su>dz_<mode>): Likewise.
9494 (xscv<su>dqp_<mode>): Likewise.
9495 (ieee128_mfvsrd_64bit): Likewise.
9496 (ieee128_mfvsrd_32bit): Likewise.
9497 (ieee128_mfvsrwz): Likewise.
9498 (ieee128_mtvsrw): Likewise.
9499 (ieee128_mtvsrd_64bit): Likewise.
9500 (ieee128_mtvsrd_32bit): Likewise.
9502 2017-01-31 Martin Liska <mliska@suse.cz>
9505 * ipa-prop.c (ipa_free_all_node_params): Call release method
9506 instead of ~sumbol_summary to not to trigger double times
9509 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
9511 PR tree-optimization/71691
9512 * bitmap.h (class auto_bitmap): New.
9513 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
9514 is_maybe_undefined instead of ssa_undefined_value_p.
9516 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9518 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
9519 __S390_ARCH_LEVEL__ to __ARCH__.
9521 2017-01-31 Jakub Jelinek <jakub@redhat.com>
9523 PR tree-optimization/79267
9524 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
9525 if should_remove_lhs_p is true.
9527 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
9530 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
9531 (add_alignment_attribute): New.
9532 (base_type_die): Add alignment attribute.
9533 (subrange_type_die): Likewise.
9534 (modified_type_die): Likewise.
9535 (gen_array_type_die): Likewise.
9536 (gen_descr_array_type_die: Likewise.
9537 (gen_enumeration_type_die): Likewise.
9538 (gen_subprogram_die): Likewise.
9539 (gen_variable_die): Likewise.
9540 (gen_field_die): Likewise.
9541 (gen_ptr_to_mbr_type_die): Likewise.
9542 (gen_struct_or_union_type_die): Likewise.
9543 (gen_subroutine_type_die): Likewise.
9544 (gen_typedef_die): Likewise.
9545 (base_type_cmp): Compare alignment attribute.
9547 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9550 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
9551 (setb_unsigned) New pattern for setb with CCUNS.
9552 * config/rs6000/rs6000.c (expand_block_compare): Use a different
9553 subfc./subfe sequence to avoid overflow problems. Generate a
9554 shorter sequence with cmpld/setb for power9.
9555 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
9556 for generating subfc. instruction.
9557 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
9558 now uses this instruction.
9560 2017-01-30 Ian Lance Taylor <iant@google.com>
9563 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
9564 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
9566 2017-01-30 Martin Sebor <msebor@redhat.com>
9568 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
9569 Move constant to the right of a relational operator.
9570 (get_mpfr_format_length, format_character, format_string): Ditto.
9571 (should_warn_p, maybe_warn): Same.
9573 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
9575 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
9578 * asan.c (get_translation_unit_decl): Remove function.
9579 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
9581 2017-01-30 Martin Liska <mliska@suse.cz>
9583 PR gcov-profile/79259
9584 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
9587 2017-01-30 Martin Liska <mliska@suse.cz>
9590 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
9591 Initialize variables with NULL value.
9593 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
9596 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
9598 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
9600 2017-01-30 Richard Biener <rguenther@suse.de>
9602 PR tree-optimization/79276
9603 * tree-vrp.c (process_assert_insertions): Properly adjust common
9604 when removing a duplicate.
9606 * gcc.dg/torture/pr79276.c: New testcase.
9608 2017-01-30 Richard Biener <rguenther@suse.de>
9610 PR tree-optimization/79256
9611 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
9612 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
9614 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
9616 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
9619 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
9620 ("*r<noxa>sbg_<mode>_sll_bitmask")
9621 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
9622 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
9623 Use contiguous_bitmask_nowrap_operand.
9625 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9628 * config/rs6000/altivec.h (vec_xl): Revise #define.
9629 (vec_xst): Likewise.
9631 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
9633 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
9635 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
9637 PR rtl-optimization/79194
9638 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
9639 traps before call to bypass_conditional_jumps.
9641 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
9643 PR tree-optimization/71374
9644 * lra-constraints.c (check_conflict_input_operands): New.
9645 (match_reload): Use it.
9647 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
9650 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
9651 account to calculate conflict_set.
9653 2017-01-27 Bin Cheng <bin.cheng@arm.com>
9655 PR rtl-optimization/78559
9656 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
9657 other_insn in combine.
9659 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
9661 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
9662 uint16_type_node for BT_UINT16.
9664 2017-01-27 David Malcolm <dmalcolm@redhat.com>
9666 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
9667 "RTL Tests" to menu.
9668 (GIMPLE Tests): New node.
9669 (RTL Tests): New node.
9671 2017-01-27 Richard Biener <rguenther@suse.de>
9673 PR tree-optimization/79245
9674 * tree-loop-distribution.c (distribute_loop): Apply cost
9675 modeling also to detected patterns.
9677 2017-01-27 Richard Biener <rguenther@suse.de>
9679 PR tree-optimization/71433
9680 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
9681 (compare_assert_loc): New function.
9682 (process_assert_insertions): Sort and optimize assert locations
9683 to remove duplicates and push down identical assertions on
9684 edges to their destination block.
9686 2017-01-27 Richard Biener <rguenther@suse.de>
9688 PR tree-optimization/79244
9689 * tree-vrp.c (remove_range_assertions): Forcefully propagate
9690 out SSA names even if abnormal.
9692 2017-01-27 Jakub Jelinek <jakub@redhat.com>
9694 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
9695 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
9696 instead of MPFR_RNDN.
9698 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
9701 * arm.c (arm_option_override): Don't call build_target_option_node
9702 until after doing all option overrides.
9703 (arm_valid_target_attribute_tree): Likewise.
9705 2017-01-27 Martin Liska <mliska@suse.cz>
9707 * doc/invoke.texi (-fprofile-arcs): Document profiling support
9708 for {cd}tors and C++ {cd}tors.
9710 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9712 * config/s390/s390.md ("*setmem_long_and")
9713 ("*setmem_long_and_31z"): Use zero_extend instead of and.
9715 2017-01-26 Martin Sebor <msebor@redhat.com>
9717 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
9720 2017-01-26 Martin Sebor <msebor@redhat.com>
9722 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
9723 HAVE_DFmode before using XFmode or DFmode.
9724 (parse_directive): Avoid using the z length modifier to avoid
9725 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
9728 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
9729 to accept adjustment as an array.
9730 (get_int_range): New function.
9731 (struct directive): Make width and prec arrays.
9732 (directive::set_width, directive::set_precision): Call get_int_range.
9733 (format_integer, format_floating): Handle width and precision ranges.
9734 (format_string, parse_directive): Same.
9736 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9739 * dwarf2out.c (generate_skeleton_bottom_up): For children with
9740 comdat_type_p set, just clone them, but keep the children in the
9744 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
9745 which have direct callers with -fvar-tracking-assignments enabled
9747 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
9748 inside of type units.
9750 2017-01-26 Martin Sebor <msebor@redhat.com>
9753 * gimple-ssa-sprintf.c (struct result_range): Add likely and
9755 (struct format_result): Replace number_chars, number_chars_min,
9756 and number_chars_max with a single member of struct result_range.
9758 (format_result::operator+=): Adjust.
9759 (struct fmtresult): Remove bounded. Handle likely and unlikely
9761 (fmtresult::adjust_for_width_or_precision): New function.
9762 (fmtresult:type_max_digits): New function.
9763 (bytes_remaining): Handle likely and unlikely counters.
9764 (min_bytes_remaining): Remove.
9765 (format_percent): Simplify.
9766 (format_integer, format_floating): Set likely and unlikely counters.
9767 (get_string_length, format_character, format_string): Same.
9768 (format_plain, should_warn_p): New function.
9769 (maybe_warn): Call should_warn_p. Update diagnostic messages
9770 and handle those for all directives, including plain strings.
9771 (format_directive): Handle likely and unlikely counters.
9772 Remove unnecessary quoting from diagnostics. Add an informational
9774 (add_bytes): Remove.
9775 (pass_sprintf_length::compute_format_length): Simplify.
9776 (try_substitute_return_value): Handle likely and unlikely counters.
9778 2017-01-26 Carl Love <cel@us.ibm.com>
9780 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
9781 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
9783 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
9786 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
9787 endianess for subregs into account.
9788 * lra-constraints.c (lra_constraints): Do risky transformations
9789 always on the first iteration.
9790 * lra-lives.c (check_pseudos_live_through_calls): Add arg
9791 last_call_used_reg_set.
9792 (process_bb_lives): Define and use last_call_used_reg_set.
9793 * lra.c (lra): Always continue after lra_constraints on the first
9796 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
9798 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
9800 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
9802 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9804 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
9805 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
9806 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
9807 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
9808 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
9809 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
9810 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
9811 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
9812 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
9814 2017-01-26 Marek Polacek <polacek@redhat.com>
9817 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
9818 for the third operand.
9820 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9823 * omp-low.c (struct omp_context): Add simt_stmt field.
9824 (scan_omp_for): Return omp_context *.
9825 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
9826 context to the _simt_ SIMD stmt.
9827 (lower_omp_for): For combined SIMD with sibling _simt_
9828 SIMD, make sure to use the same decls in _looptemp_
9829 clauses as in the sibling.
9831 2017-01-26 David Sherwood <david.sherwood@arm.com>
9834 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
9837 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9840 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
9841 emit fld b; fld a; if possible.
9843 * brig-builtins.def: Update copyright years.
9844 * config/arm/arm_acle_builtins.def: Update copyright years.
9846 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9849 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
9850 constraint instead of o for the stxsd instruction.
9852 2017-01-25 Carl Love <cel@us.ibm.com>
9854 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
9855 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
9857 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
9859 * doc/invoke.texi (C++ Dialect Options): Fix typo.
9861 2017-01-25 Richard Biener <rguenther@suse.de>
9863 PR tree-optimization/69264
9864 * target.def (vector_alignment_reachable): Improve documentation.
9865 * doc/tm.texi: Regenerate.
9866 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
9868 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
9869 earlier changes with respect to TYPE_USER_ALIGN.
9870 (vector_alignment_reachable_p): Likewise. Improve dumping.
9872 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9875 * config/arm/arm.md (xordi3): Force constant operand into a register
9878 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9880 * doc/invoke.texi (-fstore-merging): Correct default optimization
9881 levels at which it is enabled.
9882 (-O): Move -fstore-merging from list to...
9885 2017-01-25 Richard Biener <rguenther@suse.de>
9888 * omp-expand.c: Include debug.h.
9889 (expand_omp_taskreg): Make sure to generate early debug before
9890 outlining anything from a function.
9891 (expand_omp_target): Likewise.
9892 (grid_expand_target_grid_body): Likewise.
9894 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
9897 * asan.c (get_translation_unit_decl): New function.
9898 (asan_add_global): Extract modules file name from globals
9899 TRANSLATION_UNIT_DECL name.
9901 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
9904 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
9905 for long calls with APCS frame and VFP.
9907 2017-01-24 David Malcolm <dmalcolm@redhat.com>
9909 * cfg.c (original_copy_tables_initialized_p): New function.
9910 * cfg.h (original_copy_tables_initialized_p): New decl.
9911 * cfgrtl.c (relink_block_chain): Guard the call to
9912 free_original_copy_tables with a call to
9913 original_copy_tables_initialized_p.
9914 * cgraph.h (symtab_node::native_rtl_p): New decl.
9915 * cgraphunit.c (symtab_node::native_rtl_p): New function.
9916 (symtab_node::needed_p): Don't assert for early assembly output
9917 for __RTL functions.
9918 (cgraph_node::finalize_function): Set "force_output" for __RTL
9920 (cgraph_node::analyze): Bail out early for __RTL functions.
9921 (analyze_functions): Update assertion to support __RTL functions.
9922 (cgraph_node::expand): Bail out early for __RTL functions.
9923 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
9925 * function.h (struct function): Update comment for field
9927 * gimple-expr.c: Include "tree-pass.h".
9928 (gimple_has_body_p): Return false for __RTL functions.
9929 * Makefile.in (OBJS): Add run-rtl-passes.o.
9930 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
9932 (gcc::pass_manager::get_clean_slate): New accessor.
9933 * passes.c: Include "insn-addr.h".
9934 (should_skip_pass_p): Add logging. Update logic for running
9935 "expand" to be compatible with both __GIMPLE and __RTL. Guard
9936 property-provider override so it is only done for gimple passes.
9938 (skip_pass): New function.
9939 (execute_one_pass): Call skip_pass when skipping passes.
9940 * read-md.c (md_reader::read_char): Support filtering
9941 the input to a subset of line numbers.
9942 (md_reader::md_reader): Initialize fields
9943 m_first_line and m_last_line.
9944 (md_reader::read_file_fragment): New function.
9945 * read-md.h (md_reader::read_file_fragment): New decl.
9946 (md_reader::m_first_line): New field.
9947 (md_reader::m_last_line): New field.
9948 * read-rtl-function.c (function_reader::create_function): Only
9949 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
9950 curr_properties. Set DECL_INITIAL to a dummy block.
9951 (read_rtl_function_body_from_file_range): New function.
9952 * read-rtl-function.h (read_rtl_function_body_from_file_range):
9954 * run-rtl-passes.c: New file.
9955 * run-rtl-passes.h: New file.
9957 2017-01-24 Jeff Law <law@redhat.com>
9959 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
9962 2017-01-24 Bin Cheng <bin.cheng@arm.com>
9964 PR tree-optimization/79159
9965 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
9966 (record_nonwrapping_iv): Improve boundary using above function if no
9967 value range information.
9969 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9970 Martin Jambor <mjambor@suse.cz>
9972 * brig-builtins.def: New file.
9973 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
9974 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9975 (DEF_HSAIL_SAT_BUILTIN): Likewise.
9976 (DEF_HSAIL_INTR_BUILTIN): Likewise.
9977 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9978 * builtin-types.def (BT_INT8): New.
9979 (BT_INT16): Likewise.
9980 (BT_UINT8): Likewise.
9981 (BT_UINT16): Likewise.
9982 (BT_FN_ULONG): Likewise.
9983 (BT_FN_UINT_INT): Likewise.
9984 (BT_FN_UINT_ULONG): Likewise.
9985 (BT_FN_UINT_LONG): Likewise.
9986 (BT_FN_UINT_PTR): Likewise.
9987 (BT_FN_ULONG_PTR): Likewise.
9988 (BT_FN_INT8_FLOAT): Likewise.
9989 (BT_FN_INT16_FLOAT): Likewise.
9990 (BT_FN_UINT32_FLOAT): Likewise.
9991 (BT_FN_UINT16_FLOAT): Likewise.
9992 (BT_FN_UINT8_FLOAT): Likewise.
9993 (BT_FN_UINT64_FLOAT): Likewise.
9994 (BT_FN_UINT16_UINT32): Likewise.
9995 (BT_FN_UINT32_UINT16): Likewise.
9996 (BT_FN_UINT16_UINT16_UINT16): Likewise.
9997 (BT_FN_INT_PTR_INT): Likewise.
9998 (BT_FN_UINT_PTR_UINT): Likewise.
9999 (BT_FN_LONG_PTR_LONG): Likewise.
10000 (BT_FN_ULONG_PTR_ULONG): Likewise.
10001 (BT_FN_VOID_UINT64_UINT64): Likewise.
10002 (BT_FN_UINT8_UINT8_UINT8): Likewise.
10003 (BT_FN_INT8_INT8_INT8): Likewise.
10004 (BT_FN_INT16_INT16_INT16): Likewise.
10005 (BT_FN_INT_INT_INT): Likewise.
10006 (BT_FN_UINT_FLOAT_UINT): Likewise.
10007 (BT_FN_FLOAT_UINT_UINT): Likewise.
10008 (BT_FN_ULONG_UINT_UINT): Likewise.
10009 (BT_FN_ULONG_UINT_PTR): Likewise.
10010 (BT_FN_ULONG_ULONG_ULONG): Likewise.
10011 (BT_FN_UINT_UINT_UINT): Likewise.
10012 (BT_FN_VOID_UINT_PTR): Likewise.
10013 (BT_FN_UINT_UINT_PTR: Likewise.
10014 (BT_FN_UINT32_UINT64_PTR): Likewise.
10015 (BT_FN_INT_INT_UINT_UINT): Likewise.
10016 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
10017 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
10018 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
10019 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
10020 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
10021 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
10022 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
10023 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
10024 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
10025 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
10026 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
10027 * doc/frontends.texi: List BRIG FE.
10028 * doc/install.texi (Testing): Add BRIG tesring requirements.
10029 * doc/invoke.texi (Overall Options): Mention BRIG.
10030 * doc/standards.texi (Standards): Doucment BRIG HSA version.
10032 2017-01-24 Richard Biener <rguenther@suse.de>
10034 PR translation/79208
10035 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
10037 2017-01-24 Martin Jambor <mjambor@suse.cz>
10040 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
10041 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
10042 and known_contexts.
10044 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
10046 PR middle-end/79123
10047 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
10048 casts from signed to unsigned really don't have a range.
10050 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10052 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
10053 GMP_RNDx for compatiblity.
10055 2017-01-24 Martin Liska <mliska@suse.cz>
10058 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
10059 that would prevent us to call alloca with -1 as argument.
10061 2017-01-24 Jakub Jelinek <jakub@redhat.com>
10063 * dwarf2out.c (output_compilation_unit_header, output_file_names):
10064 Avoid -Wformat-security warning.
10066 2017-01-23 Andrew Pinski <apinski@cavium.com>
10068 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
10071 2017-01-23 Martin Sebor <msebor@redhat.com>
10073 PR middle-end/78703
10074 * gimple-ssa-sprintf.c (warn_level): New global.
10075 (format_integer): Use it here and throughout the rest of the file.
10076 Use the same switch to compute sign as base.
10077 (maybe_warn): New function.
10078 (format_directive): Factor out warnings into maybe_warn.
10079 Add debugging output. Use warn_level.
10080 (add_bytes): Use warn_level.
10081 (pass_sprintf_length::compute_format_length): Add debugging output.
10082 (try_substitute_return_value): Same.
10083 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
10085 PR middle-end/78703
10086 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
10087 (struct fmtresult, format_integer, format_floating): Adjust.
10088 (fmtresult::fmtresult): Set max correctly in two argument ctor.
10089 (get_string_length, format_string,format_directive): Same.
10090 (pass_sprintf_length::compute_format_length): Same.
10091 (try_substitute_return_value): Simplify slightly.
10093 PR middle-end/78703
10094 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
10095 (fmtresult::operator+=): Outlined.
10096 (struct fmtresult): Add ctors.
10097 (struct conversion_spec): Rename...
10098 (struct directive): ...to this. Add and remove data members.
10099 (directive::set_width, directive::set_precision): New functions.
10100 (format_percent): Use fmtresult ctor.
10101 (get_width_and_precision): Remove.
10102 (format_integer): Make naming changes. Avoid computing width and
10104 (format_floating): Same. Adjust indentation.
10105 (format_character, format_none): New functions.
10106 (format_string): Moved character handling to format_character.
10107 (format_directive): Remove arguments, change return type.
10108 (parse_directive): New function.
10109 (pass_sprintf_length::compute_format_length): Move directive
10110 parsing to parse_directive.
10112 2017-01-23 Jakub Jelinek <jakub@redhat.com>
10114 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
10115 (assign_assembler_name_if_needed): ... this.
10116 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
10117 (assign_assembler_name_if_needed): ... this.
10118 (free_lang_data_in_cgraph): Adjust callers.
10119 * cgraphunit.c (cgraph_node::analyze): Likewise.
10120 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
10123 2017-01-23 Richard Biener <rguenther@suse.de>
10125 PR tree-optimization/79088
10126 PR tree-optimization/79188
10127 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
10128 resetting loop bounds after last path deletion. Reset loop
10129 bounds of the target loop, make code match the comments.
10130 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
10131 Make sure loops need no fixups.
10133 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
10135 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
10136 exponent support with double type for first argument.
10137 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
10138 type returned by __builtin_vec_extract_sig,
10139 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
10140 functions from "vector int" to "vector unsigned int" or from
10141 "vector long long int" to "vector unsigned long long int".
10142 Changed type returned by __builtin_vec_extract_exp,
10143 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
10144 functions from "vector int" to "vector unsigned int" or from
10145 "vector long long int" to "vector unsigned long long int".
10146 Changed return type of __builtin_vec_test_data_class,
10147 __builtin_vec_test_data_class_sp, and
10148 __builtin_vec_test_data_class_dp from "vector int" to
10149 "vector bool int" or from "vector long long int" to "vector bool
10150 long long int" and changed second argument type from "unsigned
10151 int" to "int". Added new overloaded function forms "vector float
10152 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
10153 "vector float __builtin_vec_insert_exp_sp (vector float, vector
10154 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
10155 double, vector unsigned long long int)" and "vector double
10156 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
10157 long int)". Changed return type of
10158 __builtin_scalar_test_data_class and
10159 __builtin_scalar_test_data_class_sp and
10160 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
10161 int" and changed second argument from "unsigned int" to "int".
10162 Changed type returned by __builtin_scalar_test_neg,
10163 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
10164 from "int" to "bool int". Added new overloaded function form
10165 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
10166 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
10167 exponent double-precision with floating point first argument.
10168 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
10169 documentation of scalar_test_data_class, scalar_test_neg,
10170 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
10171 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
10172 vec_test_data_class built-in functions to reflect refinements in
10173 their type signatures.
10175 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
10177 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
10179 (aarch64_elf_asm_destructor): Likewise.
10181 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
10183 PR rtl-optimization/78634
10184 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
10185 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
10186 * ifcvt.c (noce_try_cmove): Add missing cost check.
10188 PR rtl-optimization/71724
10189 * combine.c (if_then_else_cond): Look for situations where it is
10190 beneficial to undo the work of one of the recursive calls.
10192 2017-01-23 Bin Cheng <bin.cheng@arm.com>
10194 PR tree-optimization/70754
10195 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
10196 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
10197 combined stmt before it if not NULL.
10198 (combine_chains): Process refs reversely and compute dominance point
10201 2017-01-23 Martin Liska <mliska@suse.cz>
10203 PR tree-optimization/79196
10204 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
10205 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
10207 (strlen_optimize_stmt): Call the renamed function.
10209 2017-01-23 Michael Matz <matz@suse.de>
10211 PR tree-optimization/78384
10212 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
10214 2017-01-23 Richard Biener <rguenther@suse.de>
10216 PR tree-optimization/79186
10217 * tree-vrp.c (register_new_assert_for): Make sure we've seen
10218 both incoming edges before moving an assert.
10220 2017-01-23 Martin Jambor <mjambor@suse.cz>
10222 * ipa-prop.c (load_from_param_1): Removed.
10223 (load_from_unmodified_param): Bits from load_from_param_1 put back
10225 (load_from_param): Removed.
10226 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
10227 with stmt. Reverted back to use of load_from_unmodified_param.
10229 2017-01-23 Martin Jambor <mjambor@suse.cz>
10232 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
10233 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
10234 field a pointer to garbage collected vector, mark lattices and
10235 ipcp_orig_node with GTY((skip)).
10236 (ipa_get_param_count): Adjust to descriptors being a pointer.
10237 (ipa_get_param): Likewise.
10238 (ipa_get_type): Likewise.
10239 (ipa_get_param_move_cost): Likewise.
10240 (ipa_set_param_used): Likewise.
10241 (ipa_get_controlled_uses): Likewise.
10242 (ipa_set_controlled_uses): Likewise.
10243 (ipa_is_param_used): Likewise.
10244 (ipa_node_params_t): Move into garbage collector. New methods insert
10246 (ipa_node_params_sum): Annotate wth GTY(()).
10247 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
10249 (ipa_load_from_parm_agg): Adjust declaration.
10250 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
10251 * ipa-profile.c (ipa_profile): Likewise.
10252 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
10253 (ipa_populate_param_decls): Make descriptors parameter garbage
10255 (ipa_dump_param): Adjust to descriptors being a pointer.
10256 (ipa_alloc_node_params): Likewise.
10257 (ipa_initialize_node_params): Likewise.
10258 (load_from_param_1): Make descriptors parameter garbage collected.
10259 (load_from_unmodified_param): Likewise.
10260 (load_from_param): Likewise.
10261 (ipa_load_from_parm_agg): Likewise.
10262 (ipa_node_params::~ipa_node_params): Removed.
10263 (ipa_free_all_node_params): Remove call to delete operator.
10264 (ipa_node_params_t::insert): New.
10265 (ipa_node_params_t::remove): Likewise.
10266 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
10267 copy known_csts and known_contexts vectors.
10268 (ipa_read_node_info): Adjust to descriptors being a pointer.
10269 (ipcp_modif_dom_walker): Make m_descriptors field garbage
10271 (ipcp_transform_function): Make descriptors variable garbage
10274 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
10276 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
10277 * config/i386/avx512dqintrin.h: Ditto.
10278 * config/i386/avx512fintrin.h: Ditto.
10279 * gcc/config/i386/i386.c: Handle new builtins.
10280 * config/i386/i386-builtin.def: Add new builtins.
10281 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
10282 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
10284 2017-01-23 Jakub Jelinek <jakub@redhat.com>
10285 Martin Liska <mliska@suse.cz>
10287 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
10288 * asan.c (asan_expand_poison_ifn): Support stores and use
10289 appropriate ASAN report function.
10290 * internal-fn.c (expand_ASAN_POISON_USE): New function.
10291 * internal-fn.def (ASAN_POISON_USE): Declare.
10292 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
10293 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
10294 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
10295 ASAN_POISON calls w/o LHS.
10296 * tree-ssa.c (execute_update_addresses_taken): Create clobber
10297 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
10298 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
10299 * gimplify.c (asan_poison_variables): Add attribute
10300 use_after_scope_memory to variables that really needs to live
10302 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
10303 having the attribute.
10305 2017-01-23 Martin Liska <mliska@suse.cz>
10307 * asan.c (create_asan_shadow_var): New function.
10308 (asan_expand_poison_ifn): Likewise.
10309 * asan.h (asan_expand_poison_ifn): New declaration.
10310 * internal-fn.c (expand_ASAN_POISON): Likewise.
10311 * internal-fn.def (ASAN_POISON): New builtin.
10312 * sanopt.c (pass_sanopt::execute): Expand
10313 asan_expand_poison_ifn.
10314 * tree-inline.c (copy_decl_for_dup_finish): Make function
10316 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
10317 * tree-ssa.c (is_asan_mark_p): New function.
10318 (execute_update_addresses_taken): Rewrite local variables
10319 (identified just by use-after-scope as addressable) into SSA.
10321 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
10323 * doc/install.texi (Specific): opensource.apple.com uses https
10324 now. Remove trailing slash.
10326 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
10328 * README.Portability: Remove note on an Irix compatibility issue.
10330 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
10332 * gcov.c (INCLUDE_ALGORITHM): Define.
10333 (INCLUDE_VECTOR): Define.
10334 No longer include <vector> and <algorithm> directly.
10336 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
10338 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
10340 * doc/invoke.texi (Code Gen Options): Ditto.
10342 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
10345 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
10347 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
10349 rtl-optimization/79125
10350 * cprop.c (local_cprop_pass): Handle cases where we make an
10351 unconditional trap.
10353 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
10357 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
10358 read from, for big endian.
10360 2017-01-20 Jiong Wang <jiong.wang@arm.com>
10362 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
10363 register pauth builtins for LP64 only.
10365 2017-01-20 Marek Polacek <polacek@redhat.com>
10368 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
10371 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
10373 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
10375 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
10376 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
10377 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
10379 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10382 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
10383 in big-endian mode when they are not a single duplicated value.
10385 2017-01-20 Richard Biener <rguenther@suse.de>
10387 * BASE-VER: Bump to 7.0.1.
10389 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
10391 * omp-low.c (omplow_simd_context): New struct. Use it...
10392 (lower_rec_simd_input_clauses): ...here and...
10393 (lower_rec_input_clauses): ...here to hold common data. Adjust all
10394 references to idx, lane, max_vf, is_simt.
10396 2017-01-20 Graham Markall <graham.markall@embecosm.com>
10398 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
10401 2017-01-20 Martin Jambor <mjambor@suse.cz>
10403 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
10404 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
10406 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
10407 (GTFILES): Rename hsa.c to hsa-common.c.
10408 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
10409 * hsa-dump.c: Likewise.
10410 * hsa-gen.c: Likewise.
10411 * hsa-regalloc.c: Likewise.
10412 * ipa-hsa.c: Likewise.
10413 * omp-expand.c: Likewise.
10414 * omp-low.c: Likewise.
10415 * toplev.c: Likewise.
10417 2017-01-20 Marek Polacek <polacek@redhat.com>
10420 * doc/invoke.texi: Document -Wduplicated-branches.
10421 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
10422 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
10423 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
10424 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
10425 return 0 only when not OEP_LEXICOGRAPHIC.
10426 (fold_build_cleanup_point_expr): Use the expression
10427 location when building CLEANUP_POINT_EXPR.
10428 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
10429 * tree.c (add_expr): Handle error_mark_node.
10431 2017-01-20 Martin Liska <mliska@suse.cz>
10434 * tree-profile.c (init_ic_make_global_vars): Do not call
10436 (gimple_init_gcov_profiler): Likewise.
10438 2017-01-20 Martin Liska <mliska@suse.cz>
10441 * cgraph.h (maybe_create_reference): Remove argument and
10443 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
10445 * ipa-cp.c (create_specialized_node): Likewise.
10446 * symtab.c (symtab_node::maybe_create_reference): Handle
10447 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
10449 2017-01-20 Martin Liska <mliska@suse.cz>
10451 * read-rtl-function.c (function_reader::create_function): Use
10452 build_decl instread of build_decl_stat.
10454 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
10456 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
10457 * config/i386/avx512dqintrin.h: Ditto.
10458 * config/i386/avx512fintrin.h: Ditto.
10459 * config/i386/i386-builtin-types.def: Add new types.
10460 * gcc/config/i386/i386.c: Handle new types.
10461 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
10462 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
10463 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
10464 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
10465 (__builtin_ia32_kshiftridi): New.
10466 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
10468 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
10472 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
10473 define to rs6000_init_stack_protect_guard.
10474 (rs6000_init_stack_protect_guard): New function.
10476 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
10477 Yunqiang Su <yunqiang.su@imgtec.com>
10479 * config.gcc (supported_defaults): Add madd4.
10480 (with_madd4): Add validation.
10481 (all_defaults): Add madd4.
10482 * config/mips/mips.opt (mmadd4): New option.
10483 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10485 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
10487 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
10488 (ISA_HAS_FUSED_MADD4): Likewise.
10489 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
10490 * gcc/doc/install.texi (--with-madd4): Document the new option.
10492 2017-01-19 Jiong Wang <jiong.wang@arm.com>
10494 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
10495 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
10496 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
10497 (aarch64_init_pauth_hint_builtins): New.
10498 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
10499 (aarch64_expand_builtin): Expand new builtins.
10501 2017-01-19 Jiong Wang <jiong.wang@arm.com>
10503 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
10504 * combine-stack-adj.c (no_unhandled_cfa): Handle
10505 REG_CFA_TOGGLE_RA_MANGLE.
10506 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
10507 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
10508 info for return address signing.
10509 (aarch64_expand_epilogue): Likewise.
10511 2017-01-19 Jiong Wang <jiong.wang@arm.com>
10513 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
10514 * config/aarch64/aarch64-protos.h
10515 (aarch64_return_address_signing_enabled): New declaration.
10516 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
10518 (aarch64_expand_prologue): Sign return address before it's pushed onto
10520 (aarch64_expand_epilogue): Authenticate return address fetched from
10522 (aarch64_override_options): Sanity check for ILP32 and ISA level.
10523 (aarch64_attributes): New function attributes for "sign-return-address".
10524 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
10525 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
10526 ("*do_return"): Generate combined instructions according to key index.
10527 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
10528 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
10530 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
10531 * config/aarch64/aarch64.opt (msign-return-address=): New.
10532 * doc/extend.texi (AArch64 Function Attributes): Documents
10533 "sign-return-address=".
10534 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
10536 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
10538 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
10539 overall option summary.
10541 2017-01-19 Jiong Wang <jiong.wang@arm.com>
10543 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
10544 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
10545 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
10546 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
10548 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
10550 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
10551 -mpower9-minmax by default for -mcpu=power9.
10552 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
10553 128-bit floating point.
10555 2017-01-20 Alan Modra <amodra@gmail.com>
10557 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
10558 optimizing for size.
10560 2017-01-20 Alan Modra <amodra@gmail.com>
10563 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
10564 for strcmp and strncmp from corresponding builtin decl.
10566 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
10568 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
10569 instead of i386/rtems-64.h.
10570 * config/i386/rtems-64.h: Remove.
10572 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
10576 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10578 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
10580 2017-01-19 Tamar Christina <tamar.christina@arm.com>
10582 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
10583 Change int to HOST_WIDE_INT.
10584 * config/aarch64/aarch64-protos.h
10585 (aarch64_simd_gen_const_vector_dup): Likewise.
10586 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
10588 2017-01-19 David Malcolm <dmalcolm@redhat.com>
10590 * langhooks-def.h (lhd_type_for_size): New decl.
10591 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
10592 * langhooks.c (lhd_type_for_size): New function, taken from
10595 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
10597 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
10598 define_bypass for CR latency.
10599 (power9-cracked-alu): Update bypass latency and remove power9-branch.
10600 (power9-alu2): Add define_bypass for CR latency.
10602 (power9-mul): Update insn latency.
10603 (power9-mul-compare): Update insn latency, bypass latency and remove
10606 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10608 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10610 * config/aarch64/aarch64.md
10611 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
10612 aarch64_nopcrelative_literal_loads.
10613 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10615 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
10617 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
10618 TARGET_LOONGSON_3A.
10619 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
10621 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
10624 * config.gcc (supported_defaults): Add lxc1-sxc1.
10625 (with_lxc1_sxc1): Add validation.
10626 (all_defaults): Add lxc1-sxc1.
10627 * config/mips/mips.opt (mlxc1-sxc1): New option.
10628 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10630 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
10631 __mips_no_lxc1_sxc1.
10632 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
10633 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
10634 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
10636 2017-01-19 Richard Biener <rguenther@suse.de>
10638 PR tree-optimization/72488
10639 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
10640 sure to restore SSA info.
10641 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
10643 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
10645 PR rtl-optimization/79121
10646 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
10647 of the inner type when shifting an extended value.
10649 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
10652 * symtab.c (symtab_node::equal_address_to): Fix comparing of
10653 interposable aliases.
10655 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
10658 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
10659 Use the evmergelohi instruction.
10660 (mov_si<mode>_e500_subreg4_2_le): Likewise.
10661 (mov_sitf_e500_subreg8_2_be): Likewise.
10662 (mov_sitf_e500_subreg12_2_le): Likewise.
10663 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
10664 (mov_si<mode>_e500_subreg4_2_be): Likewise.
10665 (mov_sitf_e500_subreg8_2_le): Likewise.
10666 (mov_sitf_e500_subreg12_2_be): Likewise.
10668 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10670 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
10671 attribute from vecsimple to vecperm.
10672 (altivec_vbpermq2): Likewise.
10674 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10677 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
10679 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10680 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
10681 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
10682 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
10683 case where N arg is SIZE_MAX.
10684 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
10685 (cmpstrsi): Add pattern.
10687 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10689 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10690 __builtin_vec_revb builtins.
10691 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
10692 built-in functions to support generation of the ISA 3.0 XXBR<x>
10693 vector byte reverse instructions.
10694 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
10695 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
10696 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
10697 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
10698 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
10699 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
10700 (P9V_BUILTIN_VEC_REVB): Likewise.
10701 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
10702 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
10703 (p9_xxbrq_v16qi): Likewise.
10704 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
10705 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
10706 (p9_xxbrh_v8hi): Likewise.
10707 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
10708 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
10709 vec_revb built-in functions.
10711 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
10713 PR rtl-optimization/78952
10714 * config/i386/i386.md (any_extract): New code iterator.
10715 (*insvqi_2): Use any_extract for source operand.
10716 (*insvqi_3): Use any_shiftrt for source operand.
10718 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
10720 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
10722 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
10724 2017-01-18 Matthias Klose <doko@ubuntu.com>
10726 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
10728 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10730 * config/rs6000/altivec.h (vec_bperm): Change #define.
10731 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
10732 (altivec_vbpermq2): New define_insn.
10733 (altivec_vbpermd): Likewise.
10734 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
10735 function interface.
10736 (VBPERMD): Likewise.
10737 (VBPERM): New polymorphic function interface.
10738 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
10739 Add entries for P9V_BUILTIN_VEC_VBPERM.
10740 * doc/extend.texi: Add interfaces for vec_bperm.
10742 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10744 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
10745 first letter of error messages.
10746 (s390_resolve_overloaded_builtin): Likewise.
10747 * config/s390/s390.c (s390_expand_builtin): Likewise.
10748 (s390_invalid_arg_for_unprototyped_fn): Likewise.
10749 (s390_valid_target_attribute_inner_p): Likewise.
10750 * config/s390/s390.md ("tabort"): Likewise.
10752 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
10754 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
10755 (ISA_AVOID_DIV_HILO): New macro.
10756 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
10757 (ISA_HAS_DDIV): Likewise.
10759 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
10761 * doc/invoke.texi (fabi-version): Correct number of occurrences.
10763 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
10765 * doc/invoke.texi (fabi-version): Spelling fix.
10767 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
10770 * doc/invoke.texi (fabi-version): Mention mangling fix for
10773 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
10776 * doc/invoke.texi (fabi-version): Document discriminator mangling.
10778 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10781 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
10782 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
10784 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
10786 (stack_protect_test): Ditto.
10787 * config/rs6000/rs6000.opt (mstack-protector-guard=,
10788 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
10790 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
10791 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
10792 -mstack-protector-guard-offset=.
10793 (RS/6000 and PowerPC Options): Ditto.
10795 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
10797 * config/i386/i386.h (MASK_CLASS_P): New define.
10798 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
10799 there are no registers from different register sets also when
10800 mask registers are used. Update function comment.
10801 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
10802 to (*k/*r) and (*k/*km) alternatives.
10804 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
10806 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
10807 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
10808 (EH_RETURN_HANDLER_RTX): New define.
10809 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
10810 Force frame pointer in EH return functions.
10811 (aarch64_expand_epilogue): Add barrier for eh_return.
10812 (aarch64_final_eh_return_addr): Remove.
10813 (aarch64_eh_return_handler_rtx): New function.
10814 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
10816 (aarch64_eh_return_handler_rtx): New prototype.
10818 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10820 * config/rs6000/altivec.h (vec_rlmi): New #define.
10821 (vec_vrlnm): Likewise.
10822 (vec_rlnm): Likewise.
10823 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
10824 (UNSPEC_VRLNM): Likewise.
10825 (VIlong): New mode iterator.
10826 (altivec_vrl<VI_char>mi): New define_insn.
10827 (altivec_vrl<VI_char>nm): Likewise.
10828 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
10830 (VRLDNM): Likewise.
10831 (RLNM): New polymorphic function entry.
10832 (VRLWMI): New monomorphic function entry.
10833 (VRLDMI): Likewise.
10834 (RLMI): New polymorphic function entry.
10835 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
10836 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
10837 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
10840 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10843 * dwarf2out.c (field_byte_offset): Restore the
10844 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
10845 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
10846 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
10849 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
10852 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
10854 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10857 * dwarf2out.c (add_data_member_location_attribute): For constant
10858 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
10859 instead of DW_AT_data_member_location, DW_AT_bit_offset and
10860 DW_AT_byte_size attributes.
10862 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
10864 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
10865 after forcing to constant memory when the code model is medium.
10867 2017-01-17 Julia Koval <julia.koval@intel.com>
10870 * config/i386/avx512fintrin.h
10871 (_mm512_i32gather_ps): Change __addr type to void const*.
10872 (_mm512_mask_i32gather_ps): Ditto.
10873 (_mm512_i32gather_pd): Ditto.
10874 (_mm512_mask_i32gather_pd): Ditto.
10875 (_mm512_i64gather_ps): Ditto.
10876 (_mm512_mask_i64gather_ps): Ditto.
10877 (_mm512_i64gather_pd): Ditto.
10878 (_mm512_mask_i64gather_pd): Ditto.
10879 (_mm512_i32gather_epi32): Ditto.
10880 (_mm512_mask_i32gather_epi32): Ditto.
10881 (_mm512_i32gather_epi64): Ditto.
10882 (_mm512_mask_i32gather_epi64): Ditto.
10883 (_mm512_i64gather_epi32): Ditto.
10884 (_mm512_mask_i64gather_epi32): Ditto.
10885 (_mm512_i64gather_epi64): Ditto.
10886 (_mm512_mask_i64gather_epi64): Ditto.
10887 (_mm512_i32scatter_ps): Change __addr type to void*.
10888 (_mm512_mask_i32scatter_ps): Ditto.
10889 (_mm512_i32scatter_pd): Ditto.
10890 (_mm512_mask_i32scatter_pd): Ditto.
10891 (_mm512_i64scatter_ps): Ditto.
10892 (_mm512_mask_i64scatter_ps): Ditto.
10893 (_mm512_i64scatter_pd): Ditto.
10894 (_mm512_mask_i64scatter_pd): Ditto.
10895 (_mm512_i32scatter_epi32): Ditto.
10896 (_mm512_mask_i32scatter_epi32): Ditto.
10897 (_mm512_i32scatter_epi64): Ditto.
10898 (_mm512_mask_i32scatter_epi64): Ditto.
10899 (_mm512_i64scatter_epi32): Ditto.
10900 (_mm512_mask_i64scatter_epi32): Ditto.
10901 (_mm512_i64scatter_epi64): Ditto.
10902 (_mm512_mask_i64scatter_epi64): Ditto.
10903 * config/i386/avx512pfintrin.h
10904 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
10905 (_mm512_mask_prefetch_i32gather_ps): Ditto.
10906 (_mm512_mask_prefetch_i64gather_pd): Ditto.
10907 (_mm512_mask_prefetch_i64gather_ps): Ditto.
10908 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
10909 (_mm512_prefetch_i32scatter_ps): Ditto.
10910 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
10911 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
10912 (_mm512_prefetch_i64scatter_pd): Ditto.
10913 (_mm512_prefetch_i64scatter_ps): Ditto.
10914 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
10915 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
10916 * config/i386/avx512vlintrin.h
10917 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
10918 (_mm_mmask_i32gather_ps): Ditto.
10919 (_mm256_mmask_i32gather_pd): Ditto.
10920 (_mm_mmask_i32gather_pd): Ditto.
10921 (_mm256_mmask_i64gather_ps): Ditto.
10922 (_mm_mmask_i64gather_ps): Ditto.
10923 (_mm256_mmask_i64gather_pd): Ditto.
10924 (_mm_mmask_i64gather_pd): Ditto.
10925 (_mm256_mmask_i32gather_epi32): Ditto.
10926 (_mm_mmask_i32gather_epi32): Ditto.
10927 (_mm256_mmask_i32gather_epi64): Ditto.
10928 (_mm_mmask_i32gather_epi64): Ditto.
10929 (_mm256_mmask_i64gather_epi32): Ditto.
10930 (_mm_mmask_i64gather_epi32): Ditto.
10931 (_mm256_mmask_i64gather_epi64): Ditto.
10932 (_mm_mmask_i64gather_epi64): Ditto.
10933 (_mm256_i32scatter_ps): Change __addr type to void*.
10934 (_mm256_mask_i32scatter_ps): Ditto.
10935 (_mm_i32scatter_ps): Ditto.
10936 (_mm_mask_i32scatter_ps): Ditto.
10937 (_mm256_i32scatter_pd): Ditto.
10938 (_mm256_mask_i32scatter_pd): Ditto.
10939 (_mm_i32scatter_pd): Ditto.
10940 (_mm_mask_i32scatter_pd): Ditto.
10941 (_mm256_i64scatter_ps): Ditto.
10942 (_mm256_mask_i64scatter_ps): Ditto.
10943 (_mm_i64scatter_ps): Ditto.
10944 (_mm_mask_i64scatter_ps): Ditto.
10945 (_mm256_i64scatter_pd): Ditto.
10946 (_mm256_mask_i64scatter_pd): Ditto.
10947 (_mm_i64scatter_pd): Ditto.
10948 (_mm_mask_i64scatter_pd): Ditto.
10949 (_mm256_i32scatter_epi32): Ditto.
10950 (_mm256_mask_i32scatter_epi32): Ditto.
10951 (_mm_i32scatter_epi32): Ditto.
10952 (_mm_mask_i32scatter_epi32): Ditto.
10953 (_mm256_i32scatter_epi64): Ditto.
10954 (_mm256_mask_i32scatter_epi64): Ditto.
10955 (_mm_i32scatter_epi64): Ditto.
10956 (_mm_mask_i32scatter_epi64): Ditto.
10957 (_mm256_i64scatter_epi32): Ditto.
10958 (_mm256_mask_i64scatter_epi32): Ditto.
10959 (_mm_i64scatter_epi32): Ditto.
10960 (_mm_mask_i64scatter_epi32): Ditto.
10961 (_mm256_i64scatter_epi64): Ditto.
10962 (_mm256_mask_i64scatter_epi64): Ditto.
10963 (_mm_i64scatter_epi64): Ditto.
10964 (_mm_mask_i64scatter_epi64): Ditto.
10965 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
10966 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
10967 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
10968 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
10969 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
10970 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
10971 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
10972 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
10973 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
10974 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
10975 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
10976 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
10977 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
10978 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
10979 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
10980 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
10981 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
10982 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
10983 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
10984 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
10985 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
10986 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
10987 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
10988 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
10989 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
10990 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
10991 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
10992 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
10993 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
10994 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
10995 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
10996 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
10997 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
10998 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
10999 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
11000 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
11001 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
11002 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
11003 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
11004 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
11005 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
11006 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
11007 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
11008 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
11009 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
11010 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
11011 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
11012 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
11013 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
11014 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
11015 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
11016 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
11017 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
11018 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
11019 definitions accordingly.
11021 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
11022 Kuan-Lin Chen <kuanlinchentw@gmail.com>
11025 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
11028 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
11031 * ira-conflicts.c (ira_build_conflicts): Update total conflict
11032 hard regs for inner regno.
11034 2017-01-17 Martin Liska <mliska@suse.cz>
11037 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
11038 assumption and add comment.
11040 2017-01-17 Nathan Sidwell <nathan@acm.org>
11042 * ipa-visibility.c (localize_node): New function, broken out of ...
11043 (function_and_variable_visibility): ... here. Call it.
11045 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
11047 PR middle-end/77445
11048 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
11049 correctly set frequency of oudgoing edge.
11050 (duplicate_thread_path): Fix profile updating.
11052 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11055 * configure.ac: Add GCC_BASE_VER.
11056 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
11057 version from BASE-VER file.
11058 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
11059 (gcc.o): Depend on $(BASEVER).
11060 * common.opt (dumpfullversion): New option.
11061 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
11062 * doc/invoke.texi: Document -dumpfullversion.
11063 * doc/install.texi: Document --with-gcc-major-version-only.
11064 * configure: Regenerated.
11066 2017-01-17 Richard Biener <rguenther@suse.de>
11068 PR tree-optimization/71433
11069 * tree-vrp.c (register_new_assert_for): Merge same asserts
11070 on all incoming edges.
11071 (process_assert_insertions_for): Handle insertions at the
11074 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
11076 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
11077 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
11079 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
11082 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
11085 2017-01-17 Alan Modra <amodra@gmail.com>
11088 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
11089 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
11090 symbolic stack limit when pic.
11092 2017-01-16 Martin Sebor <msebor@redhat.com>
11094 PR tree-optimization/78608
11095 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
11097 2017-01-16 Jeff Law <law@redhat.com>
11100 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
11101 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
11102 for several include directories that may be relative to sysroot.
11103 * config/i386/x-mingw32 (gplus_includedir): Define.
11104 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
11105 (native_system_includedir): Likewise.
11106 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
11107 override if TARGET_SYSTEM_ROOT is defined.
11108 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
11110 PR tree-optimization/79090
11111 PR tree-optimization/33562
11112 PR tree-optimization/61912
11113 PR tree-optimization/77485
11114 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
11115 and computed trims into the dump file.
11117 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
11119 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
11121 2017-01-16 Jakub Jelinek <jakub@redhat.com>
11124 * gimplify.c (gimplify_init_constructor): If want_value and
11125 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
11129 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
11130 sequence. Formatting fixes.
11131 (doloop_optimize): Formatting fixes.
11134 * gcc.c (debug_level_greater_than_spec_func): New function.
11135 (static_spec_functions): Add debug-level-gt spec function.
11136 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
11138 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11139 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
11140 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
11141 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
11142 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
11143 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
11145 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
11147 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
11148 QImode fixups to general and mask registers only.
11150 2017-01-16 Carl Love <cel@us.ibm.com>
11152 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
11153 for built-in functions
11154 vector signed char vec_nabs (vector signed char)
11155 vector signed short vec_nabs (vector signed short)
11156 vector signed int vec_nabs (vector signed int)
11157 vector signed long long vec_nabs (vector signed long long)
11158 vector float vec_nabs (vector float)
11159 vector double vec_nabs (vector double)
11160 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
11162 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
11163 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
11164 * doc/extend.texi: Update the documentation file for the new built-in
11167 2017-01-16 Martin Sebor <msebor@redhat.com>
11169 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
11172 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11174 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
11175 UNSPEC_VSX__XXSPLTD to require special splat handling.
11177 2017-01-16 David Malcolm <dmalcolm@redhat.com>
11180 * system.h: Poison strndup.
11182 2017-01-16 Alan Modra <amodra@gmail.com>
11185 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
11188 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
11190 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
11192 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
11194 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
11195 call recog here. Assert that INSN_CODE (insn) is non-negative.
11197 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
11200 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
11202 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
11203 in the currently scheduled RTL fragment.
11205 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
11207 PR rtl-optimization/78751
11208 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
11211 2017-01-14 Jeff Law <law@redhat.com>
11213 PR tree-optimization/79090
11214 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
11215 variable length stores.
11216 (compute_trims): Delete dead assignment to *trim_tail.
11217 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
11220 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
11222 PR rtl-optimization/78626
11223 PR rtl-optimization/78727
11224 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
11225 of a block, and split such blocks after everything else is finished.
11227 2017-01-14 Alan Modra <amodra@gmail.com>
11230 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
11231 target legitimate_combined_insn.
11232 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
11233 (rs6000_legitimate_combined_insn): New function.
11234 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
11236 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
11237 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
11238 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
11240 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
11242 * doc/frontends.texi (G++ and GCC): Remove references to Java.
11244 2017-01-13 Jeff Law <law@redhat.com>
11246 PR tree-optimization/33562
11247 PR tree-optimization/61912
11248 PR tree-optimization/77485
11249 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
11251 (delete_dead_assignment): Likewise.
11252 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
11253 statement to delete_dead_call and delete_dead_assignment.
11255 2017-01-13 David Malcolm <dmalcolm@redhat.com>
11258 * substring-locations.c (format_warning_va): Strengthen case 1 so
11259 that both endpoints of the substring must be within the format
11260 range for just the substring to be printed.
11262 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
11264 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
11265 * config/i386/i386.c (ix86_target_string): Add missing options
11266 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
11267 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
11268 flags_other and ix86_target_other to flags2_other. Display unknown
11270 (ix86_valid_target_attribute_inner_p): Add missing options and
11271 reorder options by implied ISAs, as in ix86_target_string.
11273 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
11275 * hash-table.h (hash_table::too_empty_p): New function.
11276 (hash_table::expand): Use it.
11277 (hash_table::traverse): Likewise.
11278 (hash_table::empty_slot): Use sizeof (value_type) instead of
11279 sizeof (PTR) to convert bytes to elements. Shrink the table
11280 if the current size is excessive for the current number of
11283 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
11285 * ira-costs.c (record_reg_classes): Break from the inner loop
11286 early once alt_fail is known to be true. Update outer loop
11287 handling accordingly.
11289 2017-01-13 Jeff Law <law@redhat.com>
11291 * tree-ssa-dse.c (decrement_count): New function.
11292 (increment_start_addr, maybe_trim_memstar_call): Likewise.
11293 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
11294 when we know the partially dead statement is a mem* function.
11296 PR tree-optimization/61912
11297 PR tree-optimization/77485
11298 * tree-ssa-dse.c: Include expr.h.
11299 (maybe_trim_constructor_store): New function.
11300 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
11302 PR tree-optimization/33562
11303 PR tree-optimization/61912
11304 PR tree-optimization/77485
11305 * doc/invoke.texi: Document new dse-max-object-size param.
11306 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
11307 * tree-ssa-dse.c: Include params.h.
11308 (dse_store_status): New enum.
11309 (initialize_ao_ref_for_dse): New, partially extracted from
11311 (valid_ao_ref_for_dse, normalize_ref): New.
11312 (setup_live_bytes_from_ref, compute_trims): Likewise.
11313 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
11314 (maybe_trim_partially_dead_store): Likewise.
11315 (maybe_trim_complex_store): Likewise.
11316 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
11317 Track what bytes live from the original store. Return tri-state
11318 for dead, partially dead or live.
11319 (dse_dom_walker): Add constructor, destructor and new private members.
11320 (delete_dead_call, delete_dead_assignment): New extracted from
11322 (dse_optimize_stmt): Make a member of dse_dom_walker.
11323 Use initialize_ao_ref_for_dse.
11325 PR tree-optimization/33562
11326 PR tree-optimization/61912
11327 PR tree-optimization/77485
11328 * sbitmap.h (bitmap_count_bits): Prototype.
11329 (bitmap_clear_range, bitmap_set_range): Likewise.
11330 * sbitmap.c (bitmap_clear_range): New function.
11331 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
11333 2017-01-13 Martin Liska <mliska@suse.cz>
11336 * function.c (set_cfun): Add new argument force.
11337 * function.h (set_cfun): Likewise.
11338 * ipa-inline-transform.c (inline_call): Use the function when
11339 strict alising from is dropped for function we inline to.
11341 2017-01-13 Richard Biener <rguenther@suse.de>
11343 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
11344 for dumping GIMPLE INTEGER_CSTs.
11346 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11348 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
11349 to 201112L since C++17.
11351 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
11354 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
11355 if -fsanitize=kernel-address is present.
11357 2017-01-13 Richard Biener <rguenther@suse.de>
11359 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
11360 as _Literal ( type ) number in case usual suffixes do not
11361 preserve all information.
11363 2017-01-13 Richard Biener <rguenther@suse.de>
11365 PR tree-optimization/77283
11366 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
11367 and ssa-iterators.h.
11368 (is_feasible_trace): Implement a cost model based on joiner
11371 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11374 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
11375 char or short to __float128/_Float128 directly.
11377 2017-01-12 Martin Sebor <msebor@redhat.com>
11379 to -Wformat-overflow.
11380 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
11381 (min_bytes_remaining): Same.
11382 (get_string_length): Same.
11383 (format_string): Same.
11384 (format_directive): Same.
11386 (pass_sprintf_length::handle_gimple_call): Same.
11388 2017-01-12 Jakub Jelinek <jakub@redhat.com>
11390 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
11391 info.nowrite calls with no lhs that can't throw. Return bool
11392 whether gsi_remove has been called or not.
11393 (pass_sprintf_length::handle_gimple_call): Return bool whether
11394 try_substitute_return_value called gsi_remove. Formatting fix.
11395 (pass_sprintf_length::execute): Don't use gsi_remove if
11396 handle_gimple_call returned true.
11399 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
11400 be removed due to side-effects, don't remove following barrier nor
11401 turn the successor edge into fallthru edge.
11403 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11406 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
11407 element-reversing loads and stores as not swappable.
11409 2017-01-12 Nathan Sidwell <nathan@acm.org>
11410 Nicolai Stange <nicstange@gmail.com>
11412 * combine.c (try_combine): Don't ignore result of overlap checking
11413 loop. Combine overlap & asm check into single loop.
11415 2017-01-12 Richard Biener <rguenther@suse.de>
11417 * tree-pretty-print.c (dump_generic_node): Provide -gimple
11418 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
11420 2017-01-12 Richard Biener <rguenther@suse.de>
11422 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
11423 and TS_TARGET_OPTION directly derive from TS_BASE.
11424 * tree-core.h (tree_optimization_option): Derive from tree_base.
11425 (tree_target_option): Likewise.
11427 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
11429 * config/i386/i386.c (memory_address_length): Increase len
11430 only when rip_relative_addr_p returns false.
11432 2017-01-11 Julia Koval <julia.koval@intel.com>
11434 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
11435 (OPTION_MASK_ISA_SGX_SET): New.
11436 (ix86_handle_option): Handle OPT_msgx.
11437 * config.gcc: Added sgxintrin.h.
11438 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
11439 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
11440 * config/i386/i386.c (ix86_target_string): Add -msgx.
11442 (ix86_option_override_internal): Handle new options.
11443 (ix86_valid_target_attribute_inner_p): Add sgx.
11444 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
11445 * config/i386/i386.opt: Add msgx.
11446 * config/i386/sgxintrin.h: New file.
11447 * config/i386/x86intrin.h: Add sgxintrin.h.
11449 2017-01-11 Jakub Jelinek <jakub@redhat.com>
11452 * fold-const.c (maybe_nonzero_address): Return 1 for function
11454 (tree_single_nonzero_warnv_p): Don't handle function local objects
11458 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
11461 2017-01-11 David Malcolm <dmalcolm@redhat.com>
11464 * opts.c: Include "spellcheck.h"
11465 (struct string_fragment): New struct.
11466 (struct edit_distance_traits<const string_fragment &>): New
11468 (get_closest_sanitizer_option): New function.
11469 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
11471 2017-01-11 Jakub Jelinek <jakub@redhat.com>
11473 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
11475 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
11476 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
11477 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
11478 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
11479 for initial die_offset if dwarf_split_debug_info.
11480 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
11481 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
11483 (output_skeleton_debug_sections): Formatting fix. Use
11484 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
11485 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
11487 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
11489 * config/arm/cortex-a53.md: Add bypasses for
11490 cortex_a53_r2f_cvt.
11491 (cortex_a53_r2f): Only use for transfers.
11492 (cortex_a53_f2r): Likewise.
11493 (cortex_a53_r2f_cvt): Add reservation for conversions.
11494 (cortex_a53_f2r_cvt): Likewise.
11496 2017-01-11 Tamar Christina <tamar.christina@arm.com>
11498 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
11499 to all inlined functions, change static to extern.
11501 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
11504 * config/arm/arm.c (legitimize_pic_address): Handle reference to
11506 (arm_assemble_integer): Likewise.
11508 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
11510 * config.gcc: Use new awk script to check CPU, FPU and architecture
11511 parameters for --with-... options.
11512 * config/arm/parsecpu.awk: New file
11513 * config/arm/arm-cpus.in: New file.
11514 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
11516 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
11518 * config/arm/t-arm: Update dependency rules.
11519 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
11520 of processing .def files.
11521 * config/arm/genopt.sh: Deleted.
11522 * config/arm/gentune.sh: Deleted.
11523 * config/arm/arm-cores.def: Deleted.
11524 * config/arm/arm-arches.def: Deleted.
11525 * config/arm/arm-fpus.def: Deleted.
11526 * config/arm/arm-tune.md: Regenerated.
11527 * config/arm/arm-tables.opt: Regenerated.
11528 * config/arm/arm-cpu.h: New generated file.
11529 * config/arm/arm-cpu-data.h: New generated file.
11530 * config/arm/arm-cpu-cdata.h: New generated file.
11532 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
11535 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
11537 (input_varpool_node): Unpack dynamically_initialized bit.
11539 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
11541 PR rtl-optimization/79032
11542 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
11543 the alignment of the adjusted memory reference against that of MODE,
11544 instead of the alignment of the original memory reference.
11546 2017-01-11 Martin Jambor <mjambor@suse.cz>
11548 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
11550 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
11551 decorated functions.
11553 2017-01-11 Richard Biener <rguenther@suse.de>
11555 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
11556 set range/nonnull info for PHI results. Do not set it on
11557 stmts marked for removal.
11559 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
11561 * expr.c (store_field): In the bitfield case, fetch the return value
11562 from the registers before applying a single big-endian adjustment.
11563 Always do a final load for a BLKmode value not larger than a word.
11565 2017-01-10 David Malcolm <dmalcolm@redhat.com>
11568 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11569 that we correctly handle column numbers greater than
11570 LINE_MAP_MAX_COLUMN_NUMBER.
11572 2017-01-10 Martin Sebor <msebor@redhat.com>
11574 PR middle-end/78245
11575 * gimple-ssa-sprintf.c (get_destination_size): Call
11576 {init,fini}object_sizes.
11577 * tree-object-size.c (addr_object_size): Adjust.
11578 (pass_through_call): Adjust.
11579 (pass_object_sizes::execute): Adjust.
11580 * tree-object-size.h (fini_object_sizes): Declare.
11582 2017-01-10 Martin Sebor <msebor@redhat.com>
11584 PR tree-optimization/78775
11585 * builtins.c (get_size_range): Move...
11586 * calls.c: ...to here.
11587 (alloc_max_size): Accept zero argument.
11588 (operand_signed_p): Remove.
11589 (maybe_warn_alloc_args_overflow): Call get_size_range.
11590 * calls.h (get_size_range): Declare.
11592 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
11594 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
11595 from TI's devices.csv file as of September 2016.
11596 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
11598 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
11600 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
11601 * doc/invoke.texi: Likewise.
11602 * doc/md.texi: Likewise.
11603 * doc/objc.texi: Likewise.
11605 2017-01-10 Joshua Conner <joshconner@google.com>
11607 * config/arm/fuchsia-elf.h: New file.
11608 * config/fuchsia.h: New file.
11609 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
11610 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
11612 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
11614 2016-01-10 Richard Biener <rguenther@suse.de>
11616 PR tree-optimization/79034
11617 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
11618 Propagate out degenerate PHIs in the joiner.
11620 2017-01-10 Martin Liska <mliska@suse.cz>
11622 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
11623 (sort_congruence_classes_by_decl_uid): Likewise.
11624 (sort_congruence_class_groups_by_decl_uid): Likewise.
11625 (sem_item_optimizer::merge_classes): Sort class, groups in these
11626 classes and members in the groups by DECL_UID of declarations.
11627 This would make merge operations stable.
11629 2017-01-10 Martin Liska <mliska@suse.cz>
11631 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
11632 usage of m_classes_vec.
11633 (sem_item_optimizer::~sem_item_optimizer): Likewise.
11634 (sem_item_optimizer::get_group_by_hash): Likewise.
11635 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
11636 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
11637 (sem_item_optimizer::verify_classes): Likewise.
11638 (sem_item_optimizer::process_cong_reduction): Likewise.
11639 (sem_item_optimizer::dump_cong_classes): Likewise.
11640 (sem_item_optimizer::merge_classes): Likewise.
11641 * ipa-icf.h (congruence_class_hash): Rename from
11642 congruence_class_group_hash. Remove declaration of m_classes_vec.
11644 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
11646 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
11647 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
11648 * config.gcc: Add avx512vpopcntdqintrin.h.
11649 * config/i386/avx512vpopcntdqintrin.h: New.
11650 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
11651 * config/i386/i386-builtin-types.def: Add new types.
11652 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
11653 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
11654 __builtin_ia32_vpopcountq_v8di_mask): New.
11655 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11656 __AVX512VPOPCNTDQ__.
11657 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
11658 (PTA_AVX512VPOPCNTDQ): Define.
11659 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
11660 TARGET_AVX512VPOPCNTDQ_P): Define.
11661 * config/i386/i386.opt: Add mavx512vpopcntdq.
11662 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
11663 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
11665 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11667 PR middle-end/77484
11668 * predict.def (PRED_CALL): Set to 67.
11670 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
11672 * expr.c (store_field): In the bitfield case, if the value comes from
11673 a function call and is of an aggregate type returned in registers, do
11674 not modify the field mode; extract the value in all cases if the mode
11675 is BLKmode and the size is not larger than a word.
11677 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
11680 * config/i386/cpuid.h: Fix undefined behavior.
11682 2017-01-04 Jeff Law <law@redhat.com>
11684 PR tree-optimization/79007
11685 PR tree-optimization/67955
11686 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
11687 conservative for pt.null when flag_non_call_exceptions is on.
11689 2017-01-09 Jakub Jelinek <jakub@redhat.com>
11691 PR translation/79019
11692 PR translation/79020
11693 * params.def (PARAM_INLINE_MIN_SPEEDUP,
11694 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
11695 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
11697 * config/avr/avr.opt (maccumulate-args): Likewise.
11698 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
11699 * common.opt (freport-bug): Likewise.
11700 * cif-code.def (CIF_FINAL_ERROR): Likewise.
11701 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
11702 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
11703 translatable string.
11704 * config/i386/i386.c (function_value_32): Likewise.
11705 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
11706 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
11708 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
11709 * common/config/msp430/msp430-common.c (msp430_handle_option):
11711 * symtab.c (symtab_node::verify_base): Likewise.
11712 * opts.c (set_debug_level): Likewise.
11713 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
11714 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11715 missing whitespace to translatable strings.
11716 * config/avr/avr.md (bswapsi2): Fix typo in comment.
11717 * config/sh/superh.h: Likewise.
11718 * config/i386/xopintrin.h: Likewise.
11719 * config/i386/znver1.md: Likewise.
11720 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
11721 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
11722 * double-int.h (struct double_int): Likewise.
11723 * double-int.c (div_and_round_double): Likewise.
11724 * wide-int.cc: Likewise.
11725 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
11726 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
11727 * cfgcleanup.c (crossjumps_occured): Renamed to ...
11728 (crossjumps_occurred): ... this.
11729 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
11732 PR tree-optimization/78899
11733 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
11734 returning bool return struct loop *, NULL for failure and the new
11736 (versionable_outer_loop_p): Don't version outer loop if it has
11737 dont_vectorized bit set.
11738 (tree_if_conversion): When versioning outer loop, ensure
11739 tree_if_conversion is performed also on the inner loop of the
11740 non-vectorizable outer loop copy.
11741 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
11742 LOOP_VECTORIZED in inner loop of the scalar outer loop and
11743 prevent vectorization of it.
11744 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
11745 the outer loop vectorization of the non-scalar version is attempted
11746 before vectorization of the inner loop in scalar version. If
11747 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
11748 vectorization of its inner loop.
11749 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
11750 has 2 inner loops, rename also on edges from bb whose single pred
11751 is outer_loop->header. Fix typo in function comment.
11753 2017-01-09 Martin Sebor <msebor@redhat.com>
11756 * asan.c (asan_emit_stack_protection): Increase local buffer size
11757 to avoid snprintf truncation warning.
11759 2017-01-09 Andrew Pinski <apinski@cavium.com>
11761 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
11762 to reference thunderx2t99 for the tuning structure
11763 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
11765 (thunderx2t99_extra_costs): This.
11766 * config/aarch64/aarch64-tune.md: Regenerate.
11767 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
11768 (vulcan_addrcost_table): This.
11769 (vulcan_regmove_cost): Rename to ...
11770 (thunderx2t99_regmove_cost): This.
11771 (vulcan_vector_cost): Rename to ...
11772 (thunderx2t99_vector_cost): this.
11773 (vulcan_branch_cost): Rename to ...
11774 (thunderx2t99_branch_cost): This.
11775 (vulcan_tunings): Rename to ...
11776 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
11777 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
11779 2017-01-09 Martin Jambor <mjambor@suse.cz>
11783 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
11784 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
11785 (propagate_vr_accross_jump_function): Use the above function for all
11786 value range computations for pass-through jump functions and type
11787 converasion from explicit value range values.
11788 (ipcp_propagate_stage): Do not attempt to deduce types of formal
11789 parameters from TYPE_ARG_TYPES.
11790 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
11791 (ipa_write_node_info): Stream type of the actual argument.
11792 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
11794 2017-01-09 Martin Liska <mliska@suse.cz>
11797 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
11798 (lookup_compiler): Do not show error message with have_E.
11800 2017-01-09 Jakub Jelinek <jakub@redhat.com>
11802 PR tree-optimization/78938
11803 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
11804 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
11805 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
11806 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
11809 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11811 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
11814 2017-01-09 Richard Biener <rguenther@suse.de>
11816 PR tree-optimization/78997
11817 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
11818 name condition properly.
11820 2017-01-09 Richard Biener <rguenther@suse.de>
11823 * dwarf2out.c (is_cxx): New overload with context.
11824 (is_naming_typedef_decl): Use it.
11826 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11828 * invoke.texi (Option Summary): Correct spacing in option lists
11829 and add line breaks to fix over-long lines.
11831 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11833 PR middle-end/17660
11835 * extend.texi (Common Variable Attributes): Add xref to GCC
11836 Internals manual to explain mode attribute keywords.
11838 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
11841 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
11842 and Preprocessor Options.
11843 (Options for Linking): Document -pthread here....
11844 (RS/6000 and PowerPC Options): ...not here.
11845 (Solaris 2 Options): ...or here.
11846 * doc/cppopts.texi: Document -pthread.
11848 2017-01-08 Martin Sebor <msebor@redhat.com>
11850 PR middle-end/77708
11851 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
11852 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
11853 New member functions.
11854 (format_directive): Used them.
11856 (pass_sprintf_length::handle_gimple_call): Same.
11857 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
11858 to avoid truncation for any argument.
11859 (extract_affine_mul): Same.
11860 * tree.c (get_file_function_name): Same.
11862 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
11864 PR middle-end/77484
11865 * predict.def (PRED_INDIR_CALL): Set to 86.
11867 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11869 PR preprocessor/54124
11870 * doc/cppopts.texi: Reformat -d subtable to list the full name
11871 of the options. Add cross-reference to the docs for the general
11872 compiler -d options.
11873 * doc/invoke.texi (Developer Options): Add cross-reference to the
11874 preprocessor-specific -d option documentation.
11876 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11878 PR preprocessor/13498
11879 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
11880 redudant material, and reflect new command-line options.
11881 (System Headers): Likewise.
11883 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
11885 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
11886 -isystem, and -idirafter. Copy-edit.
11887 * doc/cppopts.texi: Copy-edit. Remove contradiction about
11888 default for -ftrack-macro-expansion. Delete obsolete and
11889 badly-formatted implementation details about -fdebug-cpp output.
11890 * doc/cppwarnopts.texi: Copy-edit.
11892 2017-01-07 David Malcolm <dmalcolm@redhat.com>
11895 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
11896 that the transition from a max line width >= 1<<10 to narrower
11897 lines works correctly.
11899 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
11901 * doc/options.texi (PerFunction): New.
11902 * opt-functions.awk (switch_flags): Map both Optimization and
11903 PerFunction to CL_OPTIMIZATION.
11904 * opth-gen.awk: Test for PerFunction flag along with
11906 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
11907 it only when the latter is present. Skip those that don't in
11908 the hash function generator.
11909 * common.opt (fvar-tracking): Mark as PerFunction instead of
11911 (fvar-tracking-assignments): Likewise.
11912 (fvar-tracking-assignments-toggle): Likewise.
11913 (fvar-tracking-uninit): Likewise.
11915 2017-01-07 Jakub Jelinek <jakub@redhat.com>
11917 PR translation/79018
11918 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
11921 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
11924 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
11925 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
11926 TARGET_LONG_JUMP_TABLE_OFFSETS.
11927 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11928 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11929 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
11930 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
11931 * config/m68k/m68k.md (tablejump expander): Likewise.
11932 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
11933 TARGET_LONG_JUMP_TABLE_OFFSETS.
11934 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
11935 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
11937 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11938 David Holsgrove <david.holsgrove@xilinx.com>
11940 * common/config/microblaze/microblaze-common.c
11941 (TARGET_EXCEPT_UNWIND_INFO): Remove.
11942 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
11944 * config/microblaze/microblaze.c (microblaze_must_save_register)
11945 (microblaze_expand_epilogue, microblaze_return_addr): Handle
11947 (microblaze_eh_return): New function.
11948 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
11949 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
11950 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
11951 * config/microblaze/microblaze.md (eh_return): New pattern.
11953 2017-01-06 Jakub Jelinek <jakub@redhat.com>
11955 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
11956 GCC_DIAGNOSTIC_STRINGIFY): Define.
11958 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
11960 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11962 * config/arm/arm.md (<mcrr>): New.
11964 * config/arm/arm.c (arm_arch5te): New.
11965 (arm_option_override): Set arm_arch5te.
11966 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
11968 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
11969 (arm_mcrr_qualifiers): ... this. New.
11970 (MRRC_QUALIFIERS): Define to...
11971 (arm_mrrc_qualifiers): ... this. New.
11972 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
11974 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
11975 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
11976 (MRRCI, mrrc, MRRC): New.
11977 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
11978 VUNSPEC_MRRC2): New.
11980 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
11982 * config/arm/arm.md (<mcr>): New.
11984 * config/arm/arm.c (arm_coproc_builtin_available): Add
11985 support for mcr, mrc, mcr2 and mrc2.
11986 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
11987 (arm_mcr_qualifiers): ... this. New.
11988 (MRC_QUALIFIERS): Define to ...
11989 (arm_mrc_qualifiers): ... this. New.
11990 (MCR_QUALIFIERS): Define to ...
11991 (arm_mcr_qualifiers): ... this. New.
11992 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
11994 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
11995 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
11996 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
11997 VUNSPEC_MRC2): New.
11999 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
12001 * config/arm/arm.md (*ldc): New.
12005 * config/arm/arm.c (arm_coproc_builtin_available): Add
12006 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
12007 (arm_coproc_ldc_stc_legitimate_address): New.
12008 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
12009 'qualifier_const_pointer'.
12010 (LDC_QUALIFIERS): Define to...
12011 (arm_ldc_qualifiers): ... this. New.
12012 (STC_QUALIFIERS): Define to...
12013 (arm_stc_qualifiers): ... this. New.
12014 * config/arm/arm-protos.h
12015 (arm_coproc_ldc_stc_legitimate_address): New.
12016 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
12017 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
12018 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
12019 stc2, stcl, stc2l): New.
12020 * config/arm/constraints.md (Uz): New.
12021 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
12022 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
12023 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
12024 VUNSPEC_STC2L): New.
12026 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
12028 * config/arm/arm.md (<cdp>): New.
12029 * config/arm/arm.c (neon_const_bounds): Rename this ...
12030 (arm_const_bounds): ... this.
12031 (arm_coproc_builtin_available): New.
12032 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
12033 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
12034 (CDP_QUALIFIERS): Define to...
12035 (arm_cdp_qualifiers): ... this. New.
12037 (arm_expand_builtin_args): Add case for 6 arguments.
12038 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
12039 (arm_const_bounds): ... this.
12040 (arm_coproc_builtin_available): New.
12041 * config/arm/arm_acle.h (__arm_cdp): New.
12043 * config/arm/arm_acle_builtins.def (cdp): New.
12045 * config/arm/iterators.md (CDPI,CDP,cdp): New.
12046 * config/arm/neon.md: Rename all 'neon_const_bounds' to
12047 'arm_const_bounds'.
12048 * config/arm/types.md (coproc): New.
12049 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
12050 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
12051 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
12052 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
12054 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
12056 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
12057 (UBINOP_QUALIFIERS): New.
12059 (acle_builtin_data): New. Change comment.
12060 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
12061 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
12062 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
12063 arm_acle_builtins.def.
12064 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
12065 (arm_init_acle_builtins): New.
12066 (CRC32_BUILTIN): Remove.
12067 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
12068 crc32cb, crc32ch and crc32cw.
12069 (arm_init_crc32_builtins): Remove.
12070 (arm_init_builtins): Use arm_init_acle_builtins rather
12071 than arm_init_crc32_builtins.
12072 (arm_expand_acle_builtin): New.
12073 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
12074 * config/arm/arm_acle_builtins.def: New.
12076 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
12078 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
12079 (arm_builtin_datum): ... this.
12080 (arm_init_neon_builtin): Rename to ...
12081 (arm_init_builtin): ... this. Add a new parameters PREFIX
12082 and USE_SIG_IN_NAME.
12083 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
12084 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
12085 'arm_builtin_datum'.
12086 (arm_init_vfp_builtins): Likewise.
12087 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
12088 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
12089 (arm_expand_neon_args): Rename to ...
12090 (arm_expand_builtin_args): ... this. Rename builtin_arg
12091 enum values and differentiate between ARG_BUILTIN_MEMORY
12092 and ARG_BUILTIN_NEON_MEMORY.
12093 (arm_expand_neon_builtin_1): Rename to ...
12094 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
12095 values, arm_expand_builtin_args and add bool parameter NEON.
12096 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
12097 (arm_expand_vfp_builtin): Likewise.
12098 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
12100 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
12102 PR middle-end/77484
12103 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
12104 * predict.c (tree_estimate_probability_bb): Reverse direction of
12105 polymorphic call predictor.
12107 2017-01-06 David Malcolm <dmalcolm@redhat.com>
12109 * passes.c (execute_one_pass): Split out pass-skipping logic into...
12110 (determine_pass_name_match): ...this new function and...
12111 (should_skip_pass_p): ...this new function.
12113 2017-01-06 Nathan Sidwell <nathan@acm.org>
12115 * ipa-visibility.c (function_and_variable_visibility): Reformat
12116 comments and long lines. Remove extrneous if.
12117 * symtab.c (symtab_node::make_decl_local): Fix code format.
12118 (symtab_node::set_section_for_node): Fix comment typo.
12120 2017-01-06 Martin Liska <mliska@suse.cz>
12123 * lra-constraints.c: Rename invariant to lra_invariant.
12124 * predict.c (set_even_probabilities): Initialize e to NULL.
12126 2017-01-05 Martin Sebor <msebor@redhat.com>
12128 PR tree-optimization/78910
12129 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
12130 (format_integer): Correct off-by-one error in the handling
12131 of precision with negative numbers in signed conversions..
12133 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
12135 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
12137 2017-01-05 Jakub Jelinek <jakub@redhat.com>
12139 PR tree-optimization/71016
12140 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
12141 factor_out_conditional_conversion. Formatting fix.
12142 (factor_out_conditional_conversion): Add cond_stmt argument.
12143 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
12144 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
12147 2017-01-05 David Malcolm <dmalcolm@redhat.com>
12149 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
12150 read-rtl-function.o, and selftest-rtl.o.
12151 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
12152 (selftest::aarch64_test_loading_full_dump): New function.
12153 (selftest::aarch64_run_selftests): New function.
12154 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
12155 selftest::aarch64_run_selftests.
12156 * config/i386/i386.c
12157 (selftest::ix86_test_loading_dump_fragment_1): New function.
12158 (selftest::ix86_test_loading_call_insn): New function.
12159 (selftest::ix86_test_loading_full_dump): New function.
12160 (selftest::ix86_test_loading_unspec): New function.
12161 (selftest::ix86_run_selftests): Call the new functions.
12162 * emit-rtl.c (maybe_set_max_label_num): New function.
12163 * emit-rtl.h (maybe_set_max_label_num): New decl.
12164 * function.c (instantiate_decls): Guard call to
12165 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
12166 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
12168 * gensupport.c (gen_reader::gen_reader): Pass "false"
12169 for new "compact" param of rtx_reader.
12170 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
12171 rather than an empty string for NULL strings.
12172 * read-md.c: Potentially include config.h rather than bconfig.h.
12173 Wrap include of errors.h with #ifdef GENERATOR_FILE.
12174 (have_error): New global, copied from errors.c.
12175 (md_reader::read_name): Rename to...
12176 (md_reader::read_name_1): ...this, adding "out_loc" param,
12177 and converting "missing name or number" to returning false, rather
12179 (md_reader::read_name): Reimplement in terms of read_name_1.
12180 (md_reader::read_name_or_nil): New function.
12181 (md_reader::read_string): Handle "(nil)" by returning NULL.
12182 (md_reader::md_reader): Add new param "compact".
12183 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
12184 (md_reader::read_file): New method.
12185 * read-md.h (md_reader::md_reader): Add new param "compact".
12186 (md_reader::read_file): New method.
12187 (md_reader::is_compact): New accessor.
12188 (md_reader::read_name): Convert return type from void to file_location.
12189 (md_reader::read_name_or_nil): New decl.
12190 (md_reader::read_name_1): New decl.
12191 (md_reader::m_compact): New field.
12192 (noop_reader::noop_reader): Pass "false" for new "compact" param
12194 (rtx_reader::rtx_reader): Add new "compact" param.
12195 (rtx_reader::read_rtx_operand): Make virtual and convert return
12196 type from void to rtx.
12197 (rtx_reader::read_until): New decl.
12198 (rtx_reader::handle_any_trailing_information): New virtual function.
12199 (rtx_reader::postprocess): New virtual function.
12200 (rtx_reader::finalize_string): New virtual function.
12201 (rtx_reader::m_in_call_function_usage): New field.
12202 (rtx_reader::m_reuse_rtx_by_id): New field.
12203 * read-rtl-function.c: New file.
12204 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
12205 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
12206 (selftest::verify_three_block_rtl_cfg): New decl.
12207 * read-rtl-function.h: New file.
12208 * read-rtl.c: Potentially include config.h rather than bconfig.h.
12209 For host, include function.h, memmodel.h, and emit-rtl.h.
12210 (one_time_initialization): New function.
12211 (struct compact_insn_name): New struct.
12212 (compact_insn_names): New array.
12213 (find_code): Handle insn codes in compact dumps.
12214 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
12215 (bind_subst_iter_and_attr): Likewise.
12216 (add_condition_to_string): Likewise.
12217 (add_condition_to_rtx): Likewise.
12218 (apply_attribute_uses): Likewise.
12219 (add_current_iterators): Likewise.
12220 (apply_iterators): Likewise.
12221 (initialize_iterators): Guard usage of apply_subst_iterator with
12222 #ifdef GENERATOR_FILE.
12223 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
12224 (md_reader::read_mapping): Likewise.
12225 (add_define_attr_for_define_subst): Likewise.
12226 (add_define_subst_attr): Likewise.
12227 (read_subst_mapping): Likewise.
12228 (check_code_iterator): Likewise.
12229 (rtx_reader::read_rtx): Likewise. Move one-time initialization
12231 (one_time_initialization): New function.
12232 (rtx_reader::read_until): New method.
12233 (read_flags): New function.
12234 (parse_reg_note_name): New function.
12235 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
12236 Handle reuse_rtx ids.
12237 Wrap iterator lookup within #ifdef GENERATOR_FILE.
12238 Add parsing support for RTL dumps, mirroring the special-cases in
12239 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
12240 values, and calling handle_any_trailing_information.
12241 (rtx_reader::read_rtx_operand): Convert return type from void
12242 to rtx, returning return_rtx. Handle case 'e'. Call
12243 finalize_string on XSTR and XTMPL fields.
12244 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
12245 "(nil)" values were omitted. Call the postprocess vfunc on the
12247 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
12248 class ctor. Initialize m_in_call_function_usage. Call
12249 one_time_initialization.
12250 * rtl-tests.c (selftest::test_uncond_jump): Call
12251 set_new_first_and_last_insn.
12252 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
12253 * selftest-rtl.c: New file.
12254 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
12255 (selftest::get_insn_by_uid): New decl.
12256 * selftest-run-tests.c (selftest::run_tests): Call
12257 read_rtl_function_c_tests.
12258 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
12259 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
12262 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
12264 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
12265 operands in a special way. Assert that pos+len <= mode precision.
12267 2017-01-05 Jakub Jelinek <jakub@redhat.com>
12269 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
12270 3 argument Alias with unlimited for the negative form.
12271 (fno-vect-cost-model): Removed.
12273 2017-01-05 Martin Liska <mliska@suse.cz>
12275 * hsa-gen.c (gen_hsa_divmod): New function.
12276 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
12278 2017-01-05 Martin Liska <mliska@suse.cz>
12281 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
12284 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12286 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
12287 small constant length operands.
12289 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12291 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
12292 between loop iterations.
12294 2017-01-05 Martin Liska <mliska@suse.cz>
12297 * gimplify.c (gimplify_decl_expr): Compare to
12298 asan_poisoned_variables instread of checking flags.
12299 (gimplify_target_expr): Likewise.
12300 (gimplify_expr): Likewise.
12301 (gimplify_function_tree): Conditionally initialize
12302 asan_poisoned_variables.
12304 2017-01-04 Jeff Law <law@redhat.com>
12306 PR tree-optimizatin/78812
12307 * rtl.h (contains_mem_rtx_p): Prototype.
12308 * ifcvt.c (containts_mem_rtx_p): Move from here to...
12309 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
12310 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
12311 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
12312 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
12314 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
12316 * input.c (assert_char_at_range): Default-initialize actual_range.
12318 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
12320 * df-scan.c (df_ref_create_structure): Make regno unsigned,
12321 to match the caller.
12323 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
12325 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
12326 insns after final jump in test to emit dummy move.
12328 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
12330 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
12331 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
12333 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
12335 * multiple_target.c (create_dispatcher_calls): Init e_next.
12336 * tree-ssa-loop-split.c (split_loop): Init border.
12337 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
12340 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
12345 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
12346 (altivec_register_operand): Do not return true if the operand
12347 contains a SUBREG mixing SImode and SFmode.
12348 (vsx_register_operand): Likewise.
12349 (vsx_reg_sfsubreg_ok): New predicate.
12350 (vfloat_operand): Do not return true if the operand contains a
12351 SUBREG mixing SImode and SFmode.
12352 (vint_operand): Likewise.
12353 (vlogical_operand): Likewise.
12354 (gpc_reg_operand): Likewise.
12355 (int_reg_operand): Likewise.
12356 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
12357 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
12358 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
12360 (rs6000_emit_move_si_sf_subreg): New helper function.
12361 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
12362 fixup SUBREGs involving SImode and SFmode.
12363 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
12364 numbers for the new peephole2 optimization.
12365 (peephole2 for SFmode unions): New peephole2 to optimize cases in
12366 the GLIBC math library that do AND/IOR/XOR operations on single
12367 precision floating point.
12368 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
12369 target macros to say whether we need to avoid SUBREGs mixing
12371 (TARGET_ALLOW_SF_SUBREG): Likewise.
12372 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
12373 (UNSPEC_SI_FROM_SF): Likewise.
12374 (iorxor): Change spacing.
12375 (and_ior_xor): New iterator for AND, IOR, and XOR.
12376 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
12377 (movdi_from_sf_zero_ext): Likewise.
12378 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
12379 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
12380 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
12381 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
12382 (fms<mode>4): Likewise.
12383 (fnma<mode>4): Likewise.
12384 (fnms<mode>4): Likewise.
12385 (nfma<mode>4): Likewise.
12386 (nfms<mode>4): Likewise.
12388 2017-01-04 Marek Polacek <polacek@redhat.com>
12391 * doc/invoke.texi: Document -Wpointer-compare.
12393 2017-01-04 Jakub Jelinek <jakub@redhat.com>
12395 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
12398 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
12399 descriptions for -gdwarf-5 and emit them as uleb128 instead of
12402 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
12405 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
12406 documentation of the powerpc_popcntb_ok attribute.
12407 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12408 code to issue warning messages if a requested CPU configuration is
12409 not supported by the binary (assembler and loader) toolchain.
12410 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
12411 made to define a built-in function that has been disabled.
12412 (paired_init_builtins): Add assertion to prevent ICE if attempt is
12413 made to define a built-in function that has been disabled.
12414 (altivec_init_builtins): Add comment explaining why definition
12415 of the DST built-in functions is not preceded by an assertion
12416 check. Add assertions to prevent ICE if attempts are made to
12417 define an altivec predicate or an abs* built-in function that has
12419 (htm_init_builtins): Add comment explaining why definition of the
12420 htm built-in functions is not preceded by an assertion check.
12422 2017-01-04 Jeff Law <law@redhat.com>
12424 PR tree-optimizatin/67955
12425 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
12426 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
12427 the points-to solution does not include pt_null. Use DECL_PT_UID
12430 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
12432 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
12433 Use gen_int_mode instead of gen_lopwart for const_int operands.
12435 2017-01-04 Jakub Jelinek <jakub@redhat.com>
12437 PR tree-optimization/71563
12438 * match.pd: Simplify X << Y into X if Y is known to be 0 or
12439 out of range value - has low bits known to be zero.
12441 2017-01-04 Alan Modra <amodra@gmail.com>
12443 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
12444 * configure: Regenerate.
12445 * config.in: Regenerate.
12447 2017-01-04 Jakub Jelinek <jakub@redhat.com>
12450 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
12451 a substring of the message, but strcmp with the whole message. Ifdef
12452 ENABLE_NLS, translate the message first using dgettext.
12454 2017-01-03 Jeff Law <law@redhat.com>
12456 PR tree-optimizatin/78856
12457 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
12458 (mark_threaded_blocks): Remove code to truncate thread paths that
12459 cross multiple loop headers. Instead invalidate the cached loop
12460 iteration information and handle case of a thread path walking
12461 into an irreducible region.
12463 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12466 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
12467 assertions. Add support for doing the signbit if the IEEE 128-bit
12468 floating point value is in a GPR.
12469 * config/rs6000/rs6000.md (Fsignbit): Delete.
12470 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
12471 Update the length attribute if the value is in a GPR.
12472 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
12473 the sign or zero extension instruction, since the value is always 0/1.
12474 (signbit<mode>2_dm2): Delete using <Fsignbit>.
12477 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
12478 extracting SImode to a GPR register so that we can generate a
12479 store, limit the vector to be in a traditional Altivec register
12480 for the vextuwrx instruction.
12482 2017-01-03 Ian Lance Taylor <iant@google.com>
12484 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
12486 2017-01-03 Martin Sebor <msebor@redhat.com>
12488 PR tree-optimization/78696
12489 * gimple-ssa-sprintf.c (format_floating): Correct handling of
12490 precision. Use MPFR for %f for greater fidelity. Correct handling
12492 (pass_sprintf_length::compute_format_length): Set width and precision
12493 specified by asrerisk to void_node for vararg functions.
12494 (try_substitute_return_value): Adjust dump output.
12496 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
12498 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
12500 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
12502 * doc/invoke.texi (SPARC options): Document -mlra as the default.
12503 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
12504 -mlra/-mno-lra was passed to the compiler.
12506 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
12508 PR rtl-optimization/65618
12509 * emit-rtl.c (try_split): Move initialization of "before" and
12510 "after" to just before the call to emit_insn_after_setloc.
12512 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12514 * doc/md.texi (Standard Names): Remove reference to Java frontend.
12516 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
12518 * dwarf2out.c (gen_enumeration_type_die): When
12519 -gno-strict-dwarf, add a DW_AT_encoding attribute.
12521 2017-01-03 Jakub Jelinek <jakub@redhat.com>
12523 PR tree-optimization/78965
12524 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12525 Change first argument from const call_info & to call_info &. For %n
12526 set info.nowrite to false.
12528 PR middle-end/78901
12529 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
12530 possibly throwing calls.
12532 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
12533 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
12534 and fns handling, rather than in a separate case SSA_NAME.
12536 2017-01-02 Jeff Law <law@redhat.com>
12538 * config/darwin-driver.c (darwin_driver_init): Const-correctness
12539 fixes for first_period and second_period variables.
12541 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
12544 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
12545 (*insvqi_1): New insn pattern.
12546 (*insvqi_1_mem_rex64): Ditto.
12547 (*insvqi_2): Ditto.
12548 (*insvqi_3): Rename from *insvqi.
12550 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
12552 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12554 * doc/cfg.texi (Edges): Remove reference to Java.
12555 (Maintaining the CFG): Ditto.
12557 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
12559 PR middle-end/77674
12560 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
12561 transparent aliases.
12563 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
12565 PR middle-end/77484
12566 * predict.def (PRED_CALL): Update hitrate.
12567 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
12568 * predict.c (tree_estimate_probability_bb): Split CALL predictor
12569 into direct/indirect/polymorphic variants.
12571 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12573 Update copyright years.
12575 * gcc.c (process_command): Update copyright notice dates.
12576 * gcov-dump.c (print_version): Ditto.
12577 * gcov.c (print_version): Ditto.
12578 * gcov-tool.c (print_version): Ditto.
12579 * gengtype.c (create_file): Ditto.
12580 * doc/cpp.texi: Bump @copying's copyright year.
12581 * doc/cppinternals.texi: Ditto.
12582 * doc/gcc.texi: Ditto.
12583 * doc/gccint.texi: Ditto.
12584 * doc/gcov.texi: Ditto.
12585 * doc/install.texi: Ditto.
12586 * doc/invoke.texi: Ditto.
12588 Copyright (C) 2017 Free Software Foundation, Inc.
12590 Copying and distribution of this file, with or without modification,
12591 are permitted in any medium without royalty provided the copyright
12592 notice and this notice are preserved.