]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
c95d59302580023e8855f950c1bc4df651352dd8
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-07-28 Martin Liska <mliska@suse.cz>
2
3 PR ipa/89330
4 * cgraph.c (symbol_table::create_edge): Always allocate
5 a cgraph_edge.
6 (symbol_table::free_edge): Store summary_id to
7 edge_released_summary_ids if != -1;
8 * cgraph.h (NEXT_FREE_NODE): Remove.
9 (SET_NEXT_FREE_NODE): Likewise.
10 (NEXT_FREE_EDGE): Likewise.
11 (symbol_table::release_symbol): Store summary_id to
12 cgraph_released_summary_ids if != -1;
13 (symbol_table::allocate_cgraph_symbol): Always allocate
14 a cgraph_node.
15
16 2019-07-28 Alan Modra <amodra@gmail.com>
17
18 * gcc/config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19 gen_sibcall.
20
21 2019-07-28 Alan Modra <amodra@gmail.com>
22
23 PR target/91135
24 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
25 define.
26 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
27 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
28 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
29
30 2019-07-28 Alan Modra <amodra@gmail.com>
31
32 PR target/91050
33 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
34 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
35 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
36 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
37 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
38 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
39 in asm_default spec.
40 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
41 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
42
43 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
44
45 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
46
47 2019-07-26 Tamar Christina <tamar.christina@arm.com>
48
49 PR target/89517
50 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
51 * config/aarch64/aarch64-option-extensions.def: Add new comments
52 and restore easier to read options.
53
54 2019-07-26 Tamar Christina <tamar.christina@arm.com>
55
56 * convert.c (convert_to_real_1): Move part of conversion code...
57 * match.pd: ...To here.
58
59 2019-07-26 Martin Jambor <mjambor@suse.cz>
60
61 PR ipa/89330
62 * ipa-inline-transform.c (check_speculations_1): New function.
63 (push_all_edges_in_set_to_vec): Likewise.
64 (check_speculations): Use check_speculations_1, new parameter
65 new_edges.
66 (inline_call): Pass new_edges to check_speculations.
67 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
68 NULL.
69 (speculation_useful_p): Early return true if edge is inlined, remove
70 later checks for inline_failed.
71
72 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
73
74 PR rtl-optimization/91223
75 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
76 matching with INOUT operand.
77
78 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
79
80 * stmt.c (expand_case): Try to narrow the index type if it's larger
81 than a word. Tidy up.
82
83 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
84
85 * cif-code.def (NEVER_CALL): New code.
86 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
87 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
88
89 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
90
91 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
92 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
93
94 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
95
96 * ipa-devirt.c (add_type_duplicate): Fix return value.
97
98 2019-07-25 Richard Biener <rguenther@suse.de>
99
100 * tree-vrp.c (extract_range_from_multiplicative_op): Add
101 type parameter and use it instead of guessing expression
102 type from the first operand.
103 (extract_range_from_binary_expr): Pass expr_type down.
104
105 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
106
107 * config/arm/arm.md (SATrev): Change to code attribute.
108 (*satsi_<SAT:code>): Adjust for the above.
109 (*satsi_<SAT:code>_shift): Likewise.
110
111 2019-07-25 Richard Biener <rguenther@suse.de>
112
113 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
114 Make value_range * temporary const.
115 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
116 Likewise.
117 (evrp_range_analyzer::record_ranges_from_): Likewise.
118 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
119 deal with having recorded a const one.
120 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
121 Return a const value_range *.
122 (evrp_range_analyzer::pop_value_range): Likewise.
123 (evrp_range_analyzer::stack): Record const value_range *s.
124 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
125 Adjust.
126 * gimple-ssa-sprintf.c (get_int_range): Likewise.
127 (format_integer): Likewise.
128 (sprintf_dom_walker::handle_gimple_call): Likewise.
129 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
130 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
131 (vrp_prop::get_value_range): Adjust.
132 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
133 modifying the lattice in-place.
134 (vrp_prop::visit_stmt): Likewise.
135 * vr-values.c (vr_values::get_lattice_entry): New private method.
136 (vr_values::get_value_range): Wrap it and return a const
137 value_range *.
138 (vr_values::set_def_to_varying): New.
139 (vr_values::set_defs_to_varying): Use it.
140 (vr_values::update_value_range): Likewise.
141 (vr_values::vrp_stmt_computes_nonzero): Adjust.
142 (values::op_with_constant_singleton_va): Likewise.
143 (vr_values::extract_range_for_var_from_co): Likewise.
144 (vr_values::extract_range_from_ssa_name): Likewise.
145 (vr_values::extract_range_from_cond_expr): Likewise.
146 (vr_values::extract_range_basic): Likewise.
147 (compare_ranges): Take const value_range *, adjust.
148 (compare_range_with_value): Likewise.
149 (vrp_valueize): Adjust.
150 (vrp_valueize_1): Likewise.
151 (vr_values::get_vr_for_comparison): Return a const value_range *.
152 (vr_values::compare_name_with_value): Adjust.
153 (vr_values::compare_names): Likewise.
154 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
155 Likewise.
156 (vr_values::vrp_evaluate_conditional): Likewise.
157 (find_case_label_ranges): Take a const value_range *.
158 (vr_values::vrp_visit_switch_stmt): Adjust.
159 (vr_values::extract_range_from_phi_node): Likewise.
160 (vr_values::simplify_div_or_mod_using_ran): Likewise.
161 (vr_values::simplify_abs_using_ranges): Likewise.
162 (test_for_singularity): Take a const value_range *.
163 (range_fits_type_p): Likewise.
164 (vr_values::simplify_cond_using_ranges_1): Adjust.
165 (vr_values::simplify_cond_using_ranges_2): Likewise.
166 (vr_values::simplify_switch_using_ranges): Likewise.
167 (vr_values::simplify_float_conversion_usi): Likewise.
168 (vr_values::two_valued_val_range_p): Likewise.
169 * vr-values.h (vr_values::get_value_range): Return a const
170 value_range *.
171 (vr_values::set_def_to_varying): New.
172 (vr_values::get_lattice_entry): New private method.
173 (vr_values::get_vr_for_comparison): Return a const value_range *.
174
175 2019-07-25 Martin Liska <mliska@suse.cz>
176 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
177
178 PR c++/23383
179 * common.opt: Add -fallocation-dce
180 * gimple.c (gimple_call_operator_delete_p): New.
181 * gimple.h (gimple_call_operator_delete_p): Likewise.
182 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
183 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
184 DECL_IS_OPERATOR_DELETE_P.
185 (mark_all_reaching_defs_necessary_1): Likewise.
186 (propagate_necessity): Likewise.
187 (eliminate_unnecessary_stmts): Handle
188 gimple_call_operator_delete_p.
189 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
190 Add packing of OPERATOR_DELETE.
191 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
192 Similarly here.
193 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
194 (DECL_SET_IS_OPERATOR_DELETE): New.
195 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
196
197 2019-07-25 Martin Liska <mliska@suse.cz>
198
199 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
200 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
201 * coverage.c (coverage_begin_function): Likewise.
202 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
203 * gimple.c (gimple_call_nonnull_result_p): Likewise.
204 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
205 (sem_item::hash_referenced_symbol_properties): Likewise.
206 * lto-streamer-out.c (hash_tree): Likewise.
207 * predict.c (expr_expected_value_1): Likewise.
208 * tree-inline.c (expand_call_inline): Likewise.
209 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
210 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
211 * tree-core.h (enum function_decl_type): New enum.
212 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
213 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
214 (set_function_decl_type): Likewise.
215 (DECL_IS_OPERATOR_NEW_P): New.
216 (DECL_SET_IS_OPERATOR_NEW): Likewise.
217 (DECL_LAMBDA_FUNCTION): Likewise.
218 (DECL_LAMBDA_FUNCTION_P): Likewise.
219 (DECL_IS_OPERATOR_NEW): Remove.
220 (DECL_SET_LAMBDA_FUNCTION): Likewise.
221
222 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
223
224 * ipa-profile.c (get_most_common_single_value): Use
225 get_nth_most_common_value.
226 * profile.c (sort_hist_value): New function.
227 (compute_value_histograms): Call sort_hist_value to sort the
228 values after loading from disk.
229 * value-prof.c (get_most_common_single_value): Rename to ...
230 get_nth_most_common_value. Add input params n, return
231 the n_th value and count.
232 (gimple_divmod_fixed_value_transform): Use
233 get_nth_most_common_value.
234 (gimple_ic_transform): Likewise.
235 (gimple_stringops_transform): Likewise.
236 * value-prof.h (get_most_common_single_value): Add input params
237 n, default to 0.
238
239 2019-07-25 Richard Biener <rguenther@suse.de>
240
241 PR tree-optimization/91236
242 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
243 size of CONSTRUCTOR write. Fix buffer size we pass to
244 native_encode_expr.
245
246 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
247
248 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
249 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
250 r273773.
251
252 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
253
254 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
255 explicitly disabled with --disable-initfini-array.
256
257 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
258
259 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
260 if-exists.
261
262 2019-07-24 Martin Sebor <msebor@redhat.com>
263
264 PR tree-optimization/91183
265 PR tree-optimization/86688
266 * builtins.c (compute_objsize): Handle MEM_REF.
267 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
268 (get_min_string_length): Remove.
269 (count_nonzero_bytes): New function.
270 (handle_char_store): Rename...
271 (handle_store): to this. Handle multibyte stores via integer types.
272 (strlen_check_and_optimize_stmt): Adjust conditional and the called
273 function name.
274
275 2019-07-24 Martin Sebor <msebor@redhat.com>
276
277 PR driver/80545
278 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
279 (diagnostic_report_diagnostic): Same.
280 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
281 (diagnostic_context::lang_mask): New data member.
282 * ipa-pure-const.c (suggest_attribute): Use
283 lang_hooks.option_lang_mask ().
284 * opts-common.c (option_enabled): Handle new argument.
285 (get_option_state): Pass an additional argument.
286 * opts.c (print_filtered_help): Print supported languages for
287 unsupported options. Adjust printing of current state.
288 * opts.h (option_enabled): Add argument.
289 * toplev.c (print_switch_values): Use lang_mask.
290 (general_init): Set global_dc->lang_mask.
291
292 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
293
294 PR bootstrap/87030
295 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
296
297 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
298
299 * cgraphunit.c (symbol_table::compile): Start and stop
300 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
301 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
302
303 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
304
305 * gimplify.c (flag_instrument_functions_exclude_p): Include
306 namespace/class information in the printable name.
307 * opts.c (add_comma_separated_to_vector): Add NUL terminator
308 to tokens entered into the vector.
309
310 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
311
312 * tree-nested.c (build_simple_mem_ref_notrap): New function.
313 (get_static_chain): Call it instead of build_simple_mem_ref.
314 (get_frame_field): Likewise.
315 (get_nonlocal_debug_decl): Likewise.
316 (convert_nonlocal_reference_op): Likewise.
317
318 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
319
320 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
321 declaration.
322 (arc_compute_frame_size): Millicode is disabled when compiling
323 ISR.
324 (arc_return_address_register): Likewise.
325 (arc_compute_function_type): Likewise.
326 (arc_compute_frame_size): Likewise.
327 (secondary_reload_info): Likewise.
328 (arc_get_unalign): Likewise.
329 (arc_can_use_return_insn): Declare.
330 * config/arc/arc.c (AUX_LP_START): Define
331 (AUX_LP_END): Likewise.
332 (arc_frame_info): Update gmask member to 64-bit datum.
333 (GMASK_LEN): Update.
334 (arc_compute_function_type): Make it static, move it forward.
335 (arc_must_save_register): Update, consider the extra regs.
336 (arc_compute_millicode_save_restore_regs): Update to use the 64
337 bit gmask.
338 (arc_compute_frame_size): Likewise.
339 (arc_enter_leave_p): Likewise.
340 (arc_save_callee_saves): Likewise.
341 (arc_restore_callee_saves): Likewise.
342 (arc_save_callee_enter): Likewise.
343 (arc_restore_callee_leave): Likewise.
344 (arc_save_callee_milli): Likewise.
345 (arc_restore_callee_milli): Likewise.
346 (arc_expand_prologue): Add new interrupt handling.
347 (arc_return_address_register): Make it static, move it forward.
348 (arc_expand_epilogue): Add new interrupt handling.
349 (arc_get_unalign): Delete.
350 (arc_epilogue_uses): Make sure we do not remove the extra
351 saved/restored registers when interrupt.
352 (arc_can_use_return_insn): New function.
353 (push_reg): Likewise.
354 (pop_reg): Likewise.
355 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
356 procedures.
357 (arc_restore_callee_saves): Likewise, but restoring.
358 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
359 (R33_REG): Likewise.
360 (R34_REG): Likewise.
361 (R35_REG): Likewise.
362 (R36_REG): Likewise.
363 (R37_REG): Likewise.
364 (R38_REG): Likewise.
365 (R39_REG): Likewise.
366 (R45_REG): Likewise.
367 (R46_REG): Likewise.
368 (R47_REG): Likewise.
369 (R48_REG): Likewise.
370 (R49_REG): Likewise.
371 (R50_REG): Likewise.
372 (R51_REG): Likewise.
373 (R52_REG): Likewise.
374 (R53_REG): Likewise.
375 (R54_REG): Likewise.
376 (R55_REG): Likewise.
377 (R56_REG): Likewise.
378 (R58_REG): Likewise.
379 (type): Add rtie attribute.
380 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
381 (movsi_insn): Accept moves to lp_count.
382 (rtie): Update pattern.
383 (simple_return): Simplify it, don't use this pattern as a return
384 from an interrupt.
385 (arc600_rtie): New pattern.
386 (p_return_i): Clean up.
387 (return): Likewise.
388 * config/arc/builtins.def (rtie): Only available for non ARC6xx
389 family CPUs.
390 * config/arc/predicates.md (move_src_operand): Consider lp_count
391 as a register.
392
393 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
394
395 * config/s390/predicates.md (addv_const_operand): New predicate.
396 * config/s390/s390-modes.def (CCO): New condition code mode.
397 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
398 (s390_branch_condition_mask): Likewise.
399 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
400 ("mulv<mode>4"): New expanders.
401 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
402 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
403 pattern definitions.
404
405 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
406
407 PR middle-end/91166
408 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
409 (define_predicates): Add entry for uniform_vector_p.
410 (vec_same_elem_p): New match pattern.
411
412 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
413
414 PR bootstrap/87030
415 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
416 * config/i386/darwin32-biarch.h .. to here.
417 * config/i386/darwin64-biarch.h: Adjust comments.
418 * config/rs6000/darwin32-biarch.h: Likewise.
419 * config/rs6000/darwin64-biarch.h: Likewise.
420 * config.gcc: Missed commit from r273746
421 (*-*-darwin*): Don't include CPU t-darwin here.
422 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
423 an error message if i686-darwin configuration is attempted for
424 Darwin >= 18.
425
426 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
427
428 PR bootstrap/87030
429 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
430 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
431 an error message if i686-darwin configuration is attempted for
432 Darwin >= 18.
433 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
434 (powerpc-*-darwin*): Use biarch files where needed.
435 (powerpc64-*-darwin*): Likewise.
436 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
437 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
438 arch case.
439 * config/i386/darwin32-biarch.h: New.
440 * config/i386/darwin64.h: Rename.
441 * gcc/config/i386/darwin64-biarch.h: To this.
442 * config/i386/t-darwin: Rename.
443 * gcc/config/i386/t-darwin32-biarch: To this.
444 * config/i386/t-darwin64: Rename.
445 * gcc/config/i386/t-darwin64-biarch: To this.
446 * config/rs6000/darwin32-biarch.h: New.
447 * config/rs6000/darwin64.h: Rename.
448 * config/rs6000/darwin64-biarch.h: To this.
449 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
450 arch case.
451 * config/rs6000/t-darwin8: Rename.
452 * config/rs6000/t-darwin32-biarch: To this.
453 * config/rs6000/t-darwin64 Rename.
454 * config/rs6000/t-darwin64-biarch: To this.
455
456 2019-07-23 Martin Sebor <msebor@redhat.com>
457
458 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
459
460 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
461
462 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
463 (rh): New alias for it.
464
465 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
466
467 * gdbhooks.py: Pass replace=True to
468 gdb.printing.register_pretty_printer.
469
470 2019-07-23 Richard Biener <rguenther@suse.de>
471
472 PR debug/91231
473 * lto-streamer-in.c (input_function): Drop inline-entry markers
474 that ended up with an unknown location block.
475
476 2019-07-23 Richard Biener <rguenther@suse.de>
477
478 PR tree-optimization/83518
479 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
480 init from a constant even when partial defs are already recorded.
481
482 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
483
484 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
485 * config/i386/znver1.md: Enable patterns for znver2 and add store
486 variants which use extra AGU unit.
487
488 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
489
490 * config/i386/i386-options.c (ix86_option_override_internal): Default
491 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
492 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
493 for ZNVER2.
494
495 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
496
497 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
498 (znver2_costs): Update 256 bit SSE costs and multiplication.
499
500 2019-07-23 Jan Beulich <jbeulich@suse.com>
501
502 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
503 Require only AVX512F.
504 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
505 alternative expanding to vpternlog.
506
507 2019-07-23 Martin Liska <mliska@suse.cz>
508
509 * dwarf2out.c (gen_producer_string): Canonize -flto=N
510 to -flto in dwarf producer string.
511
512 2019-07-23 Richard Biener <rguenther@suse.de>
513
514 * tree-cfg.c (label_for_bb): Remove global var.
515 (main_block_label): Take label_for_bb as argument.
516 (cleanup_dead_labels_eh): Likewise, adjust.
517 (cleanup_dead_labels): Adjust.
518
519 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
520
521 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
522 Configurations): Add documentation for __builtin_mtfsf.
523
524 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
525
526 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
527 * config/riscv/riscv.c (riscv_constant_alignment): Use
528 riscv_align_data_type.
529 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
530 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
531 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
532 * config/riscv/riscv.opt (malign-data): New.
533 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
534
535 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
536
537 * cgraph.c (dump_graphviz): New function.
538 * cgraph.h (dump_graphviz): New function.
539 * symtab.c (dump_graphviz): New function.
540
541 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
542
543 * config/aarch64/aarch64-simd.md
544 (*aarch64_simd_sra<mode>): New.
545 * config/aarch64/iterators.md
546 (SHIFTRT): New iterator.
547 (sra_op): New attribute.
548
549 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
550
551 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
552 callee-saved regs R4->R10 in an interrupt function that calls another
553 function.
554
555 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
556
557 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
558 (_mm_blendv_epi8): New.
559
560 2019-07-22 Richard Biener <rguenther@suse.de>
561
562 PR tree-optimization/91221
563 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
564 restrict partial-def handling of empty constructors and
565 memset to refs with known offset.
566
567 2019-07-22 Jan Beulich <jbeulich@suse.com>
568
569 * config/i386/sse.md (ternlogsuffix): New.
570 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
571 AVX512F is in use.
572 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
573
574 2019-07-22 Martin Liska <mliska@suse.cz>
575
576 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
577 comment.
578 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
579
580 2019-07-22 Martin Liska <mliska@suse.cz>
581
582 * lto-section-in.c (lto_get_section_data):
583 Use new function get_compression.
584 * lto-streamer-out.c (produce_lto_section): Use
585 set_compression to encode compression algorithm.
586 * lto-streamer.h (struct lto_section): Do not
587 use bitfields in the format.
588
589 2019-07-22 Martin Liska <mliska@suse.cz>
590
591 PR driver/91172
592 * opts-common.c (decode_cmdline_option): Decode
593 argument of -Werror and check it for a wrong language.
594 * opts-global.c (complain_wrong_lang): Remove such case.
595
596 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
597
598 * config/arc/arc.c (prepare_move_operands): Always use an
599 intermediate register when storing a TLS symbols.
600
601 2019-07-22 Stafford Horne <shorne@gmail.com>
602
603 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
604 force_reg.
605
606 2019-07-22 Stafford Horne <shorne@gmail.com>
607
608 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
609 and munordered-float validations.
610 * config/or1k/constraints.md (d): New register constraint.
611 * config/or1k/predicates.md (fp_comparison_operator): New.
612 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
613 operands.
614 (or1k_expand_compare): Normalize unordered comparisons.
615 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
616 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
617 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
618 * config/or1k/or1k.md (type): Add fpu.
619 (fpu): New instruction reservation.
620 (F, f, fr, fi, FI, FOP, fop): New.
621 (<fop><F:mode>3): New ALU instruction definition.
622 (float<fi><F:mode>2): New conversion instruction definition.
623 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
624 (fpcmpcc): New code iterator.
625 (*sf_fp_insn): New instruction definition.
626 (cstore<F:mode>4): New expand definition.
627 (cbranch<F:mode>4): New expand definition.
628 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
629 munordered-float): New options.
630 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
631 munordered-float.
632
633 2019-07-22 Stafford Horne <shorne@gmail.com>
634
635 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
636 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
637 documenation to be more clear.
638 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
639 more clear.
640 * config/or1k/or1k.opt (mrori): New option.
641 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
642 msfimm, mshftimm): Rewrite documentation to be more clear.
643 * config/or1k/or1k.md (insn_support): Add ror and rori.
644 (enabled): Add conditions for ror and rori.
645 (rotrsi3): Replace condition for shftimm with ror and rori.
646
647 2019-07-22 Stafford Horne <shorne@gmail.com>
648
649 PR target/90363
650 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
651 (extend<mode>si2): Update predicate.
652 * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
653 (reg_or_mem_operand): New.
654
655 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
656
657 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
658 * config/rs6000/rs6000-call.c: ... to here.
659
660 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
661
662 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
663 memory.
664
665 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
666
667 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
668
669 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
670
671 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
672
673 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
674
675 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
676 (any_memory_operand): New predicate.
677 (reg_or_mem_operand): Use it.
678
679 2019-07-20 Jakub Jelinek <jakub@redhat.com>
680
681 PR target/91204
682 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
683
684 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
685
686 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
687 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
688
689 2019-07-20 Jakub Jelinek <jakub@redhat.com>
690
691 * tree.def (OMP_LOOP): New tree code.
692 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
693 (enum omp_clause_bind_kind): New enum.
694 (struct tree_omp_clause): Add subcode.bind_kind.
695 * tree.h (OMP_LOOP_CHECK): Rename to ...
696 (OMP_LOOPING_CHECK): ... this.
697 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
698 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
699 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
700 (OMP_CLAUSE_BIND_KIND): Define.
701 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
702 bind clause entries.
703 (walk_tree_1): Handle OMP_CLAUSE_BIND.
704 * tree-pretty-print.c (dump_omp_clause): Likewise.
705 (dump_generic_node): Handle OMP_LOOP.
706 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
707 (in_omp_construct): New variable.
708 (is_gimple_stmt): Handle OMP_LOOP.
709 (gimplify_scan_omp_clauses): For lastprivate don't set
710 check_non_private if code == OMP_LOOP. For reduction clause
711 on OMP_LOOP combined with parallel or teams propagate as shared
712 on the combined construct. Handle OMP_CLAUSE_BIND.
713 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
714 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
715 for constructs from a loop construct to gimplify_scan_omp_clauses.
716 Don't predetermine iterator linear on OMP_SIMD from loop construct.
717 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
718 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
719 to match the implicit ORT_TARGET construct around whole body.
720 Temporarily clear in_omp_construct when processing body.
721 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
722 etc. temporarily set in_omp_construct when processing body.
723 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
724 * omp-low.c (struct omp_context): Add loop_p.
725 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
726 in that the original var might be private.
727 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
728 (check_omp_nesting_restrictions): Adjust nesting restrictions for
729 addition of loop construct.
730 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
731
732 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
733 lastprivate non-addressable iterator of a collapse(1) simd.
734
735 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
736
737 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
738 as in rs6000.c.
739
740 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
741
742 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
743 refer to default conditions. Warn for the 'y' spec which is ignored
744 by current linkers.
745
746 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
747
748 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
749 cpu_supports_info, builtin_hash_struct, builtin_hasher,
750 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
751 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
752 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
753 init_cumulative_args, rs6000_promote_function_mode,
754 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
755 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
756 rs6000_function_arg_boundary, rs6000_parm_offset,
757 rs6000_parm_start, rs6000_arg_size,
758 rs6000_darwin64_record_arg_advance_flush,
759 rs6000_darwin64_record_arg_advance_recurse,
760 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
761 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
762 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
763 rs6000_mixed_function_arg, rs6000_psave_function_arg,
764 rs6000_finish_function_arg, rs6000_function_arg,
765 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
766 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
767 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
768 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
769 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
770 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
771 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
772 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
773 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
774 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
775 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
776 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
777 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
778 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
779 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
780 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
781 get_element_number, altivec_expand_vec_set_builtin,
782 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
783 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
784 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
785 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
786 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
787 rs6000_expand_builtin, rs6000_vector_type,
788 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
789 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
790 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
791 to rs6000-call.c.
792 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
793 cpu_supports_info, builtin_hash_struct, builtin_hasher,
794 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
795 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
796 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
797 init_cumulative_args, rs6000_promote_function_mode,
798 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
799 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
800 rs6000_function_arg_boundary, rs6000_parm_offset,
801 rs6000_parm_start, rs6000_arg_size,
802 rs6000_darwin64_record_arg_advance_flush,
803 rs6000_darwin64_record_arg_advance_recurse,
804 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
805 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
806 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
807 rs6000_mixed_function_arg, rs6000_psave_function_arg,
808 rs6000_finish_function_arg, rs6000_function_arg,
809 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
810 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
811 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
812 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
813 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
814 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
815 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
816 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
817 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
818 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
819 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
820 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
821 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
822 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
823 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
824 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
825 get_element_number, altivec_expand_vec_set_builtin,
826 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
827 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
828 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
829 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
830 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
831 rs6000_expand_builtin, rs6000_vector_type,
832 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
833 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
834 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
835 to here from rs6000.c.
836 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
837 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
838 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
839 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
840 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
841 rs6000_return_in_memory, rs6000_return_in_msb,
842 rs6000_pass_by_reference, setup_incoming_varargs,
843 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
844 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
845 rs6000_function_arg_padding, rs6000_function_arg,
846 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
847 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
848 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
849 rs6000_passes_long_double, rs6000_passes_vector,
850 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
851 altivec_builtin_mask_for_load) Add declarations.
852 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
853 * config/config.gcc: Add new source file rs6000-call.c to garbage
854 collector and extra_objs.
855
856 2019-07-19 Jeff Law <law@redhat.com>
857
858 PR tree-optimization/86061
859 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
860 strncpy. Drop some trivial dead code.
861 (maybe_trim_memstar_call): Handle strncpy.
862
863 2019-07-19 Richard Biener <rguenther@suse.de>
864
865 PR tree-optimization/91211
866 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
867 memset encoding size.
868
869 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
870
871 PR target/91204
872 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
873
874 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
875
876 PR ipa/91194
877 * ipa-inline.c (recursive_inlining): Fix limits check.
878
879 2019-07-19 Richard Biener <rguenther@suse.de>
880
881 PR tree-optimization/91200
882 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
883 no PHI nodes in middle-bb.
884
885 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
886
887 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
888 to +sve-bitperm.
889 * config/aarch64/aarch64-option-extensions.def: Likewise.
890
891 2019-07-19 Jakub Jelinek <jakub@redhat.com>
892
893 PR middle-end/91190
894 * function.c (insert_temp_slot_address): Store into the hash table
895 a copy of address to avoid RTL sharing issues.
896
897 2019-07-19 Richard Biener <rguenther@suse.de>
898
899 PR tree-optimization/91207
900 Revert
901 2019-07-17 Richard Biener <rguenther@suse.de>
902
903 PR tree-optimization/91178
904 * tree-vect-stmts.c (get_group_load_store_type): For SLP
905 loads with a gap larger than the vector size always use
906 VMAT_STRIDED_SLP.
907 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
908 avoid loading vectors that are only contained in the gap
909 and thus are not needed.
910
911 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
912
913 * config/i386/i386.md (*addqi_2_slp): Remove.
914 (*<code>qi_2_slp): Ditto.
915
916 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
917
918 * config/rs6000/predicates.md (prefixed_mem_operand): Call
919 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
920 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
921 Rename function from rs6000_prefixed_address.
922 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
923 TARGET_HAS_TOC.
924 (TARGET_TOC): Likewise.
925 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
926 rs6000.h.
927 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
928 TARGET_HAS_TOC.
929 (TARGET_TOC): Likewise.
930 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
931 rs6000.h.
932 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
933 TARGET_HAS_TOC.
934 (TARGET_TOC): Likewise.
935 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
936 check to require -mcmodel=medium for pc-relative addressing.
937 (create_TOC_reference): Add assertion for TARGET_TOC.
938 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
939 TARGET_NO_TOC.
940 (rs6000_emit_move): Likewise.
941 (TOC_alias_set): Rename TOC alias set static variable from 'set'
942 to 'TOC_alias_set'.
943 (get_TOC_alias_set): Likewise.
944 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
945 TARGET_NO_TOC.
946 (rs6000_can_eliminate): Likewise.
947 (rs6000_prefixed_address_mode_p): Rename function from
948 rs6000_prefixed_address.
949 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
950 TARGET_HAS_TOC and not pc-relative.
951 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
952 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
953 TARGET_HAS_TOC.
954 (TARGET_TOC): Likewise.
955 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
956 rs6000.h.
957
958 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
959
960 PR target/91188
961 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
962 for operand 0. Do not use (match_dup) to match operand 1 with
963 operand 0. Add check in insn constraint that either input operand
964 matches operand 0. Use SWI12 mode iterator to also handle
965 HImode operands.
966 (*and<mode>_1_slp): Ditto.
967 (*<code>qi_1_slp): Ditto.
968 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
969 Do not use (match_dup) to match operand 1 with operand 0. Add
970 check in insn constraint that operand 1 matches operand 0.
971 Use SWI12 mode iterator to also handle HImode operands.
972 (*ashl<mode>3_1_slp): Ditto.
973 (*<shift_insn><mode>3_1_slp): Ditto.
974 (*<rotate_insn><mode>3_1_slp): Ditto.
975
976 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
977
978 * config/arm/arm-builtins.c
979 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
980 (arm_expand_unop_builtin): Likewise.
981 * config/arm/crypto.md
982 (crypto_sha1h): Convert from define_insn to define_expand.
983 (crypto_<crypto_pattern>): Likewise.
984 (crypto_sha1h_lb): New define_insn.
985 (crypto_<crypto_pattern>_lb): Likewise.
986
987 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
988
989 PR target/90317
990 * config/arm/arm_neon.h
991 (vsha1h_u32): Refactor.
992 (vsha1cq_u32): Likewise.
993 (vsha1pq_u32): Likewise.
994 (vsha1mq_u32): Likewise.
995 * config/arm/crypto.md:
996 (crypto_sha1h): Remove zero extend, correct vec select.
997 (crypto_sha1c): Correct vec select.
998 (crypto_sha1m): Likewise.
999 (crypto_sha1p): Likewise.
1000
1001 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
1002
1003 * config/arm/predicates.md (arm_borrow_operation): New predicate.
1004 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
1005 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
1006 (subdi_zesidi_zesidi): Likewise.
1007 (negdi2_compare, negdi2_insn): Likewise.
1008 (negdi_extensidi): Likewise.
1009 (negdi_zero_extendsidi): Likewise.
1010 (arm_cmpdi_insn): Likewise.
1011 (subsi3_carryin): Use arm_borrow_operation.
1012 (subsi3_carryin_const): Likewise.
1013 (subsi3_carryin_const0): Likewise.
1014 (subsi3_carryin_compare): Likewise.
1015 (subsi3_carryin_compare_const): Likewise.
1016 (subsi3_carryin_compare_const0): Likewise.
1017 (subsi3_carryin_shift): Likewise.
1018 (rsbsi3_carryin_shift): Likewise.
1019 (negsi2_carryin_compare): Likewise.
1020
1021 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
1022
1023 PR tree-optimization/91137
1024 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
1025 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
1026 Init, use and fini the above new field.
1027 (determine_base_object_1): New function.
1028 (determine_base_object): Reimplement using walk_tree.
1029
1030 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
1031
1032 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
1033 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
1034 CLEANUP_FORCE_FAST_DCE is set.
1035 * ifcvt.c (rest_of_handle_if_conversion): Pass
1036 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
1037 if-conversion succeeded.
1038
1039 2019-07-18 Richard Biener <rguenther@suse.de>
1040
1041 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
1042 branches to make code less indented.
1043
1044 2019-07-17 Alexandre Oliva <oliva@adacore.com>
1045
1046 PR middle-end/81824
1047 * attribs.c (decls_mismatched_attributes): Simplify the logic
1048 that avoids duplicates and false positives.
1049
1050 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
1051
1052 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
1053 data into data section when generating PIC code.
1054 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
1055 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
1056 generating code for SOM targets earlier than HP-UX 11. Otherwise,
1057 return 2 for SOM and 0 for other targets.
1058
1059 2019-07-17 Jeff Law <law@redhat.com>
1060
1061 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
1062 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
1063 avoid unexpected switch statement fallthru.
1064
1065 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1066
1067 * config/i386/i386.md (*add<dwi>3_doubleword):
1068 Remove redundant constraints.
1069 (*add<mode>_1): Ditto.
1070 (*addhi_1): Ditto.
1071 (*addqi_1): Ditto.
1072 (*addqi_1_slp): Ditto.
1073 (*add<mode>_2): Ditto.
1074 (*addv<mode>4): Ditto.
1075 (*sub<dwi>3_doubleword): Ditto.
1076 (*sub<mode>_1): Ditto.
1077 (*subqi_1_slp): Ditto.
1078 (*sub<mode>_2): Ditto.
1079 (*subv<mode>4): Ditto.
1080 (*sub<mode>_3): Ditto.
1081 (@add<mode>3_carry): Ditto.
1082 (@sub<mode>3_carry): Ditto.
1083 (*add<mode>3_cc_overflow_1): Ditto.
1084 (*add<mode>3_zext_cc_overflow_2): Ditto.
1085 (*anddi_1): Ditto.
1086 (*and<mode>_1): Ditto.
1087 (*andqi_1): Ditto.
1088 (*andqi_1_slp): Ditto.
1089 (*anddi_2): Ditto.
1090 (*andqi_2_maybe_si): Ditto.
1091 (*and<mode>_2): Ditto.
1092 (*andqi_2_slp): Ditto.
1093 (*<code><mode>_1): Ditto.
1094 (*<code>qi_1): Ditto.
1095 (*<code>qi_1_slp): Ditto.
1096 (*<code><mode>_2): Ditto.
1097 (*<code>qi_2_slp): Ditto.
1098
1099 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
1100
1101 * alias.c (record_component_aliases): Do not simplify pointed-to
1102 types of ODR types.
1103
1104 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1105
1106 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
1107 partial reg stall on alternative 2.
1108
1109 2019-07-17 Richard Biener <rguenther@suse.de>
1110
1111 PR tree-optimization/91178
1112 * tree-ssa.c (release_defs_bitset): Iterate from higher to
1113 lower SSA names to avoid quadratic behavior in the common case.
1114 * tree-data-ref.c (split_constant_offset): Add limit argument
1115 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1116 (split_constant_offset_1): Add limit argument and use it to
1117 limit SSA def walking. Optimize the common plus/minus case.
1118
1119 2019-07-17 Richard Biener <rguenther@suse.de>
1120
1121 PR tree-optimization/91178
1122 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1123 loads with a gap larger than the vector size always use
1124 VMAT_STRIDED_SLP.
1125 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1126 avoid loading vectors that are only contained in the gap
1127 and thus are not needed.
1128
1129 2019-07-17 Richard Biener <rguenther@suse.de>
1130
1131 PR tree-optimization/91180
1132 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
1133 computation for memset partial defs.
1134
1135 2019-07-17 Jakub Jelinek <jakub@redhat.com>
1136
1137 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
1138 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
1139 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
1140 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
1141 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
1142 * omp-grid.c (grid_process_grid_body,
1143 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
1144 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
1145 == GF_OMP_FOR_KIND_SIMD.
1146 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
1147 check_omp_nesting_restrictions, scan_omp_1_stmt,
1148 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
1149 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
1150 omp_find_scan): Likewise.
1151 * omp-expand.c (expand_omp_for): Likewise.
1152 * omp-general.c (omp_extract_for_data): Likewise.
1153
1154 PR tree-optimization/91157
1155 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
1156 a vector boolean with scalar mode.
1157 (expand_vector_condition): Handle first operand being a vector boolean
1158 with scalar mode.
1159 (expand_vector_operations_1): For comparisons, don't bail out early
1160 if the return type is vector boolean with scalar mode, but comparison
1161 operand type is not.
1162
1163 2019-07-17 Richard Biener <rguenther@suse.de>
1164
1165 PR tree-optimization/91181
1166 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
1167 IFN_LOADs as calls.
1168
1169 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
1170
1171 * config/i386/i386.md (*testdi_1): Match CCZmode for
1172 constants that might have the SImode sign bit set.
1173 (*testqi_1_maybe_si): Remove "!" constraint modifier.
1174 Use correct constraints for pentium pairing.
1175 (*test<mode>_1): Ditto.
1176
1177 2019-07-16 Jeff Law <law@redhat.com>
1178
1179 PR rtl-optimization/91173
1180 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
1181 SSA_NAME with a constant value, fold its value into the offset
1182 and clear the base before calling gen_addr_rtx.
1183
1184 2019-07-16 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR rtl-optimization/91164
1187 * dse.c (rest_of_handle_dse): If dead edges have been purged,
1188 invalidate dominance info.
1189
1190 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1191
1192 * read-md.h (md_reader::record_potential_iterator_use): Add a
1193 file_location parameter.
1194 * read-rtl.c (attribute_use::loc): New field.
1195 (map_attr_string): Take a file_location parameter. Report cases
1196 in which attributes map to multiple distinct values.
1197 (apply_attribute_uses): Update call accordingly.
1198 (md_reader::handle_overloaded_name): Likewise.
1199 (md_reader::apply_iterator_to_string): Likewise. Skip empty
1200 nonnull strings.
1201 (record_attribute_use): Take a file_location parameter.
1202 Initialize attribute_use::loc.
1203 (md_reader::record_potential_iterator_use): Take a file_location
1204 parameter. Update call to record_attribute_use.
1205 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
1206 (rtx_reader::read_rtx_code): Likewise.
1207 (rtx_reader::read_rtx_operand): Likewise. Record a location
1208 for implicitly-expanded empty strings.
1209
1210 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1211
1212 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
1213 Use file_location instead of separate fields.
1214 (md_reader::set_md_ptr_loc): Take a file_location instead of a
1215 separate filename and line number.
1216 * read-md.c (ptr_loc): As above.
1217 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
1218 (md_reader::fprint_md_ptr_loc): Likewise.
1219 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
1220 instead of a separate filename and line number.
1221 (md_reader::read_string): Update call accordingly.
1222
1223 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1224
1225 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1226 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1227 leaving the choice between SFDF and P implicit.
1228 (*mov<mode>_update2): Likewise.
1229 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1230 rather than leaving the choice betweem IBM128 and GPR implicit.
1231 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1232 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1233 QHSI implicit.
1234 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1235 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1236 * config/rs6000/vsx.md
1237 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1238 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1239 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1240 and VSX_EXTRACT_I implicit.
1241
1242 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1243
1244 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1245 Explicitly use <MOVEP1:MODE> for the mode attribute.
1246
1247 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
1248
1249 PR bootstrap/91176
1250 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1251
1252 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
1253
1254 PR target/91050
1255 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1256 .machine directive.
1257
1258 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
1259
1260 * config/i386/i386.md (@test<mode>_ccno_1):
1261 Rename from test<mode>_ccno_1.
1262 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
1263 (*testqi_1_maybe_si): Remove modrm attribute.
1264 (*test<mode>_1): Ditto.
1265 * config/i386/i386-expand.c (ix86_split_idivmod): Use
1266 gen_test_ccno_1 and gen_extend_insn.
1267
1268 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
1269
1270 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1271 to 0.
1272
1273 2019-07-15 Richard Biener <rguenther@suse.de>
1274
1275 PR middle-end/91162
1276 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1277 node make sure to replace all uses with something valid.
1278
1279 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
1280
1281 PR tree-optimization/88497
1282 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1283 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1284 function undistribute_bitref_for_vector.
1285 (undistribute_bitref_for_vector): New function.
1286 (cleanup_vinfo_map): Likewise.
1287 (sort_by_mach_mode): Likewise.
1288
1289 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
1290
1291 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1292 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1293 and testdi_ccno_1 using SWI48 mode attribute.
1294 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1295 x86_64_szext_general_operand.
1296 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1297 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1298 instead of genera_operand mode attribute.
1299
1300 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
1301
1302 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1303 fopen and fclose to their respective types.
1304 (DotFn.invoke): Ditto.
1305
1306 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
1307
1308 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1309 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1310 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1311 (array_index_predicate): Remove.
1312 (analyze_function_body): Account cost for variable ofsetted array
1313 indexing.
1314 (estimate_node_size_and_time): Do not compute array index hint.
1315 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1316 (inline_read_section): Do not read array index hint.
1317 (ipa_fn_summary_write): Do not write array index hint.
1318 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1319 * ipa-cp.c (hint_time_bonus): Remove.
1320 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1321 (ipa_fnsummary): Remove array_index.
1322 * ipa-inline.c (want_inline_small_function_p): Do not use
1323 array_index.
1324 (edge_badness): Likewise.
1325 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1326
1327 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
1328
1329 PR target/91148
1330 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1331 superfluous "builtin function" phrasing.
1332
1333 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
1334
1335 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1336 Break out from ...
1337 (aliasing_component_refs_walk): Break out from ...
1338 (aliasing_component_refs_p): ... here.
1339
1340 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
1341
1342 PR target/91148
1343 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1344 "builtin function" phrasing.
1345
1346 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1347
1348 PR target/90723
1349 * recog.h (temporary_volatile_ok): New class.
1350 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1351 volatile_ok temporarily to true using temporary_volatile_ok.
1352 * expr.c (emit_block_move_via_cpymem): Likewise.
1353 * optabs.c (maybe_legitimize_operand): Likewise.
1354
1355 2019-07-13 Jakub Jelinek <jakub@redhat.com>
1356
1357 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1358 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1359 uses inside of order(concurrent) constructs.
1360 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1361 OMP_CLAUSE_ORDER is seen.
1362 * omp-low.c (struct omp_context): Add order_concurrent member.
1363 (scan_sharing_clauses): Set ctx->order_concurrent if
1364 OMP_CLAUSE_ORDER is seen.
1365 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1366 of simd order(concurrent). Diagnose constructs not allowed inside of
1367 for order(concurrent).
1368 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1369 complaining about static double setjmp (double); or class static
1370 methods or non-global namespace setjmps.
1371 (omp_runtime_api_call): New function.
1372 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1373 order(concurrent) loops.
1374
1375 2019-07-12 Martin Sebor <msebor@redhat.com>
1376
1377 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1378 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1379 * tree-vrp.c (vrp_prop::check_mem_ref): Use
1380 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1381
1382 2019-07-12 Jan Hubicka <jh@suse.cz>
1383
1384 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1385 (indirect_refs_may_alias_p): ... here.
1386 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1387 mem refs in the access paths.
1388
1389 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
1390
1391 PR tree-optimization/89430
1392 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1393 store elimination for local variable without address escape.
1394
1395 2019-07-12 Jeff Law <law@redhat.com>
1396
1397 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1398 for the ".far" section.
1399
1400 2019-07-12 Richard Biener <rguenther@suse.de>
1401
1402 PR tree-optimization/91145
1403 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1404 chain check.
1405
1406 2019-07-12 Alexandre Oliva <oliva@adacore.com>
1407
1408 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1409 rather than this_state as the lowering context for the ELSE
1410 seq in a GIMPLE_EH_ELSE.
1411
1412 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1413
1414 * vector-builder.h (vector_builder::elt): Allow already-supplied
1415 elements to be read back before building is complete.
1416
1417 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1418
1419 PR rtl-optimization/91136
1420 * df-core.c (ACCESSING REFS): Fix typos in comment.
1421 * resource.c (mark_target_live_reg): Add artificial defs that occur at
1422 the beginning of the block to the initial set of live registers.
1423
1424 2019-07-12 Richard Biener <rguenther@suse.de>
1425
1426 * fold-const.h (get_array_ctor_element_at_index): Adjust.
1427 * fold-const.c (get_array_ctor_element_at_index): Add
1428 ctor_idx output parameter informing the caller where in
1429 the constructor the element was (not) found. Add early exit
1430 for when the ctor is sorted.
1431 * gimple-fold.c (fold_array_ctor_reference): Support constant
1432 folding across multiple array elements.
1433
1434 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1435
1436 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
1437 doesn't have location, set the current location to the function's end.
1438
1439 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1440
1441 * config/aarch64/aarch64.md (*compare_condjump<mode>)
1442 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
1443 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
1444 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
1445 * config/aarch64/aarch64-simd.md
1446 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1447 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
1448 * config/aarch64/aarch64-sve.md
1449 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
1450 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
1451
1452 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1453
1454 * doc/md.texi: Document that @ patterns can have different
1455 numbers of operands.
1456 * genemit.c (handle_overloaded_gen): Handle this case.
1457 * genopinit.c (handle_overloaded_gen): Likewise.
1458 * gensupport.c (replace_operands_with_dups): Iterate over
1459 the new rtx's format rather than the old one's.
1460
1461 2019-07-12 Jakub Jelinek <jakub@redhat.com>
1462
1463 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
1464 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1465 order clause entries.
1466 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
1467 * tree-pretty-print.c (dump_omp_clause): Likewise.
1468 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1469 Likewise.
1470 * omp-low.c (scan_sharing_clauses): Likewise.
1471 * tree-nested.c (convert_nonlocal_omp_clauses,
1472 convert_local_omp_clauses): Likewise.
1473
1474 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
1475
1476 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
1477 fallthrough target of current basic block isn't the placed
1478 right next.
1479
1480 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
1481
1482 PR target/90980
1483 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
1484 (_mm512_storeu_epi64): Likewise.
1485 (_mm512_loadu_epi32): Likewise.
1486 (_mm512_storeu_epi32): Likewise.
1487 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
1488 (_mm_storeu_epi64): Likewise.
1489 (_mm256_storeu_epi32): Likewise.
1490 (_mm_storeu_epi32): Likewise.
1491
1492 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1493
1494 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
1495
1496 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1497
1498 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
1499 Handle Modula-2.
1500
1501 2019-07-11 Jakub Jelinek <jakub@redhat.com>
1502
1503 PR target/91124
1504 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
1505 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1506 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
1507 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
1508 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
1509 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
1510 define_insns.
1511 (ufix_truncv2dfv2si2<mask_name>): Change into ...
1512 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
1513 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
1514 define_insns.
1515 (sse2_cvttpd2dq<mask_name>): Change into ...
1516 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
1517 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
1518 (*sse2_cvtpd2dq<mask_name>): Change into ...
1519 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1520 Add "C" constraint to const0_operand.
1521 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
1522 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
1523 changes.
1524
1525 PR target/91124
1526 * config/i386/i386-builtin-types.def
1527 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
1528 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
1529 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1530 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1531 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
1532 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
1533 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
1534 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
1535 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
1536 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
1537 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
1538 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
1539 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
1540 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
1541 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
1542 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
1543 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
1544 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
1545 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
1546 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
1547 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
1548 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
1549 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
1550 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
1551 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
1552 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
1553 __builtin_ia32_vpdpbusd_v4si_maskz,
1554 __builtin_ia32_vpdpbusds_v16si_mask,
1555 __builtin_ia32_vpdpbusds_v16si_maskz,
1556 __builtin_ia32_vpdpbusds_v8si_mask,
1557 __builtin_ia32_vpdpbusds_v8si_maskz,
1558 __builtin_ia32_vpdpbusds_v4si_mask,
1559 __builtin_ia32_vpdpbusds_v4si_maskz,
1560 __builtin_ia32_vpdpwssd_v16si_mask,
1561 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
1562 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
1563 __builtin_ia32_vpdpwssd_v4si_maskz,
1564 __builtin_ia32_vpdpwssds_v16si_mask,
1565 __builtin_ia32_vpdpwssds_v16si_maskz,
1566 __builtin_ia32_vpdpwssds_v8si_mask,
1567 __builtin_ia32_vpdpwssds_v8si_maskz,
1568 __builtin_ia32_vpdpwssds_v4si_mask,
1569 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
1570 suffixed types rather than *_INT.
1571 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
1572 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
1573 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
1574 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
1575 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
1576 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
1577
1578 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
1579
1580 * tree-vrp.c (intersect_ranges): If we know the intersection is
1581 empty, there is no need to conservatively add anything else to
1582 the set.
1583
1584 2019-07-11 Richard Biener <rguenther@suse.de>
1585
1586 PR middle-end/91131
1587 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
1588 when the object is volatile and we have not cleared it even though
1589 there are no nonzero elements.
1590
1591 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
1592
1593 * config/rs6000/predicates.md (cint34_operand): Update
1594 SIGNED_34BIT_OFFSET_P call.
1595 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
1596 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
1597 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
1598 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
1599 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
1600 argument.
1601 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
1602 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
1603 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
1604 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
1605 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
1606
1607 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
1608
1609 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
1610 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
1611 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
1612 (DEF_MIN_OSX_VERSION): New.
1613
1614 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1615
1616 * fold-const.c (fold_relational_const): Fix folding of
1617 vector-to-scalar NE_EXPRs.
1618 (test_vector_folding): Add more tests.
1619
1620 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1621
1622 PR target/91060
1623 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
1624 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
1625 (vec_setv2di_internal): Reexpress as...
1626 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
1627 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
1628 rather than gen_neon_vset_lane<mode>.
1629
1630 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
1631
1632 PR target/91102
1633 * lra-constraints.c (process_alt_operands): Don't match user
1634 defined regs only if they are early clobbers.
1635
1636 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
1637
1638 * wide-int.h (wi::lshift): Reject negative values for the fast path.
1639
1640 2019-07-10 Richard Biener <rguenther@suse.de>
1641
1642 PR tree-optimization/91126
1643 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
1644 native encoding offset for BYTES_BIG_ENDIAN.
1645 (vn_reference_lookup_3): Likewise.
1646
1647 2019-07-10 Richard Biener <rguenther@suse.de>
1648
1649 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
1650 LHS whenever possible.
1651
1652 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
1653
1654 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
1655 from ...; work also on duplicated types.
1656 (nonoverlapping_component_refs_since_match): ... here
1657 (ncr_type_uid): Break out from ...
1658 (ncr_compar): ... here; look for TYPE_UID of canonical type if
1659 available.
1660 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
1661 the types and nonoverlapping_component_refs_p_1 to disambiguate.
1662
1663 2019-07-09 Martin Sebor <msebor@redhat.com>
1664
1665 PR tree-optimization/90989
1666 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
1667 optimization to just single character stores.
1668
1669 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
1670
1671 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
1672 Swap operands only once.
1673
1674 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1675
1676 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
1677 for both call instructions.
1678
1679 2019-07-09 John Darrington <john@darrington.wattle.id.au>
1680
1681 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
1682 rather than GET_MODE_BITSIZE to better handle partial integer modes.
1683
1684 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
1685
1686 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
1687 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
1688 function from rs6000-logue.c back to rs6000.c.
1689 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
1690
1691 2019-07-09 Martin Sebor <msebor@redhat.com>
1692
1693 PR c++/61339
1694 * auto-profile.c: Change class-key of PODs to struct and others
1695 to class.
1696 * basic-block.h: Same.
1697 * bitmap.c (bitmap_alloc): Same.
1698 * bitmap.h: Same.
1699 * builtins.c (expand_builtin_prefetch): Same.
1700 (expand_builtin_interclass_mathfn): Same.
1701 (expand_builtin_strlen): Same.
1702 (expand_builtin_mempcpy_args): Same.
1703 (expand_cmpstr): Same.
1704 (expand_builtin___clear_cache): Same.
1705 (expand_ifn_atomic_bit_test_and): Same.
1706 (expand_builtin_thread_pointer): Same.
1707 (expand_builtin_set_thread_pointer): Same.
1708 * caller-save.c (setup_save_areas): Same.
1709 (replace_reg_with_saved_mem): Same.
1710 (insert_restore): Same.
1711 (insert_save): Same.
1712 (add_used_regs): Same.
1713 * cfg.c (get_bb_copy): Same.
1714 (set_loop_copy): Same.
1715 * cfg.h: Same.
1716 * cfganal.h: Same.
1717 * cfgexpand.c (alloc_stack_frame_space): Same.
1718 (add_stack_var): Same.
1719 (add_stack_var_conflict): Same.
1720 (add_scope_conflicts_1): Same.
1721 (update_alias_info_with_stack_vars): Same.
1722 (expand_used_vars): Same.
1723 * cfghooks.c (redirect_edge_and_branch_force): Same.
1724 (delete_basic_block): Same.
1725 (split_edge): Same.
1726 (make_forwarder_block): Same.
1727 (force_nonfallthru): Same.
1728 (duplicate_block): Same.
1729 (lv_flush_pending_stmts): Same.
1730 * cfghooks.h: Same.
1731 * cfgloop.c (flow_loops_cfg_dump): Same.
1732 (flow_loop_nested_p): Same.
1733 (superloop_at_depth): Same.
1734 (get_loop_latch_edges): Same.
1735 (flow_loop_dump): Same.
1736 (flow_loops_dump): Same.
1737 (flow_loops_free): Same.
1738 (flow_loop_nodes_find): Same.
1739 (establish_preds): Same.
1740 (flow_loop_tree_node_add): Same.
1741 (flow_loop_tree_node_remove): Same.
1742 (flow_loops_find): Same.
1743 (find_subloop_latch_edge_by_profile): Same.
1744 (find_subloop_latch_edge_by_ivs): Same.
1745 (mfb_redirect_edges_in_set): Same.
1746 (form_subloop): Same.
1747 (merge_latch_edges): Same.
1748 (disambiguate_multiple_latches): Same.
1749 (disambiguate_loops_with_multiple_latches): Same.
1750 (flow_bb_inside_loop_p): Same.
1751 (glb_enum_p): Same.
1752 (get_loop_body_with_size): Same.
1753 (get_loop_body): Same.
1754 (fill_sons_in_loop): Same.
1755 (get_loop_body_in_dom_order): Same.
1756 (get_loop_body_in_custom_order): Same.
1757 (release_recorded_exits): Same.
1758 (get_loop_exit_edges): Same.
1759 (num_loop_branches): Same.
1760 (remove_bb_from_loops): Same.
1761 (find_common_loop): Same.
1762 (delete_loop): Same.
1763 (cancel_loop): Same.
1764 (verify_loop_structure): Same.
1765 (loop_preheader_edge): Same.
1766 (loop_exit_edge_p): Same.
1767 (single_exit): Same.
1768 (loop_exits_to_bb_p): Same.
1769 (loop_exits_from_bb_p): Same.
1770 (get_loop_location): Same.
1771 (record_niter_bound): Same.
1772 (get_estimated_loop_iterations_int): Same.
1773 (max_stmt_executions_int): Same.
1774 (likely_max_stmt_executions_int): Same.
1775 (get_estimated_loop_iterations): Same.
1776 (get_max_loop_iterations): Same.
1777 (get_max_loop_iterations_int): Same.
1778 (get_likely_max_loop_iterations): Same.
1779 * cfgloop.h (simple_loop_desc): Same.
1780 (get_loop): Same.
1781 (loop_depth): Same.
1782 (loop_outer): Same.
1783 (loop_iterator::next): Same.
1784 (loop_outermost): Same.
1785 * cfgloopanal.c (mark_irreducible_loops): Same.
1786 (num_loop_insns): Same.
1787 (average_num_loop_insns): Same.
1788 (expected_loop_iterations_unbounded): Same.
1789 (expected_loop_iterations): Same.
1790 (mark_loop_exit_edges): Same.
1791 (single_likely_exit): Same.
1792 * cfgloopmanip.c (fix_bb_placement): Same.
1793 (fix_bb_placements): Same.
1794 (remove_path): Same.
1795 (place_new_loop): Same.
1796 (add_loop): Same.
1797 (scale_loop_frequencies): Same.
1798 (scale_loop_profile): Same.
1799 (create_empty_if_region_on_edge): Same.
1800 (create_empty_loop_on_edge): Same.
1801 (loopify): Same.
1802 (unloop): Same.
1803 (fix_loop_placements): Same.
1804 (copy_loop_info): Same.
1805 (duplicate_loop): Same.
1806 (duplicate_subloops): Same.
1807 (loop_redirect_edge): Same.
1808 (can_duplicate_loop_p): Same.
1809 (duplicate_loop_to_header_edge): Same.
1810 (mfb_keep_just): Same.
1811 (has_preds_from_loop): Same.
1812 (create_preheader): Same.
1813 (create_preheaders): Same.
1814 (lv_adjust_loop_entry_edge): Same.
1815 (loop_version): Same.
1816 * cfgloopmanip.h: Same.
1817 * cgraph.h: Same.
1818 * cgraphbuild.c: Same.
1819 * combine.c (make_extraction): Same.
1820 * config/i386/i386-features.c: Same.
1821 * config/i386/i386-features.h: Same.
1822 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
1823 (ix86_emit_outlined_ms2sysv_restore): Same.
1824 (ix86_noce_conversion_profitable_p): Same.
1825 (ix86_init_cost): Same.
1826 (ix86_simd_clone_usable): Same.
1827 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
1828 Wstruct-not-pod.
1829 * coretypes.h: Same.
1830 * data-streamer-in.c (string_for_index): Change class-key of PODs
1831 to struct and others to class.
1832 (streamer_read_indexed_string): Same.
1833 (streamer_read_string): Same.
1834 (bp_unpack_indexed_string): Same.
1835 (bp_unpack_string): Same.
1836 (streamer_read_uhwi): Same.
1837 (streamer_read_hwi): Same.
1838 (streamer_read_gcov_count): Same.
1839 (streamer_read_wide_int): Same.
1840 * data-streamer.h (streamer_write_bitpack): Same.
1841 (bp_unpack_value): Same.
1842 (streamer_write_char_stream): Same.
1843 (streamer_write_hwi_in_range): Same.
1844 (streamer_write_record_start): Same.
1845 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
1846 (add_cross_iteration_register_deps): Same.
1847 (build_intra_loop_deps): Same.
1848 * df-core.c (df_analyze): Same.
1849 (loop_post_order_compute): Same.
1850 (loop_inverted_post_order_compute): Same.
1851 * df-problems.c (df_rd_alloc): Same.
1852 (df_rd_simulate_one_insn): Same.
1853 (df_rd_local_compute): Same.
1854 (df_rd_init_solution): Same.
1855 (df_rd_confluence_n): Same.
1856 (df_rd_transfer_function): Same.
1857 (df_rd_free): Same.
1858 (df_rd_dump_defs_set): Same.
1859 (df_rd_top_dump): Same.
1860 (df_lr_alloc): Same.
1861 (df_lr_reset): Same.
1862 (df_lr_local_compute): Same.
1863 (df_lr_init): Same.
1864 (df_lr_confluence_n): Same.
1865 (df_lr_free): Same.
1866 (df_lr_top_dump): Same.
1867 (df_lr_verify_transfer_functions): Same.
1868 (df_live_alloc): Same.
1869 (df_live_reset): Same.
1870 (df_live_init): Same.
1871 (df_live_confluence_n): Same.
1872 (df_live_finalize): Same.
1873 (df_live_free): Same.
1874 (df_live_top_dump): Same.
1875 (df_live_verify_transfer_functions): Same.
1876 (df_mir_alloc): Same.
1877 (df_mir_reset): Same.
1878 (df_mir_init): Same.
1879 (df_mir_confluence_n): Same.
1880 (df_mir_free): Same.
1881 (df_mir_top_dump): Same.
1882 (df_word_lr_alloc): Same.
1883 (df_word_lr_reset): Same.
1884 (df_word_lr_init): Same.
1885 (df_word_lr_confluence_n): Same.
1886 (df_word_lr_free): Same.
1887 (df_word_lr_top_dump): Same.
1888 (df_md_alloc): Same.
1889 (df_md_simulate_one_insn): Same.
1890 (df_md_reset): Same.
1891 (df_md_init): Same.
1892 (df_md_free): Same.
1893 (df_md_top_dump): Same.
1894 * df-scan.c (df_insn_delete): Same.
1895 (df_insn_rescan): Same.
1896 (df_notes_rescan): Same.
1897 (df_sort_and_compress_mws): Same.
1898 (df_install_mws): Same.
1899 (df_refs_add_to_chains): Same.
1900 (df_ref_create_structure): Same.
1901 (df_ref_record): Same.
1902 (df_def_record_1): Same.
1903 (df_find_hard_reg_defs): Same.
1904 (df_uses_record): Same.
1905 (df_get_conditional_uses): Same.
1906 (df_get_call_refs): Same.
1907 (df_recompute_luids): Same.
1908 (df_get_entry_block_def_set): Same.
1909 (df_entry_block_defs_collect): Same.
1910 (df_get_exit_block_use_set): Same.
1911 (df_exit_block_uses_collect): Same.
1912 (df_mws_verify): Same.
1913 (df_bb_verify): Same.
1914 * df.h (df_scan_get_bb_info): Same.
1915 * doc/tm.texi: Same.
1916 * dse.c (record_store): Same.
1917 * dumpfile.h: Same.
1918 * emit-rtl.c (const_fixed_hasher::equal): Same.
1919 (set_mem_attributes_minus_bitpos): Same.
1920 (change_address): Same.
1921 (adjust_address_1): Same.
1922 (offset_address): Same.
1923 * emit-rtl.h: Same.
1924 * except.c (dw2_build_landing_pads): Same.
1925 (sjlj_emit_dispatch_table): Same.
1926 * explow.c (allocate_dynamic_stack_space): Same.
1927 (emit_stack_probe): Same.
1928 (probe_stack_range): Same.
1929 * expmed.c (store_bit_field_using_insv): Same.
1930 (store_bit_field_1): Same.
1931 (store_integral_bit_field): Same.
1932 (extract_bit_field_using_extv): Same.
1933 (extract_bit_field_1): Same.
1934 (emit_cstore): Same.
1935 * expr.c (emit_block_move_via_cpymem): Same.
1936 (expand_cmpstrn_or_cmpmem): Same.
1937 (set_storage_via_setmem): Same.
1938 (emit_single_push_insn_1): Same.
1939 (expand_assignment): Same.
1940 (store_constructor): Same.
1941 (expand_expr_real_2): Same.
1942 (expand_expr_real_1): Same.
1943 (try_casesi): Same.
1944 * flags.h: Same.
1945 * function.c (try_fit_stack_local): Same.
1946 (assign_stack_local_1): Same.
1947 (assign_stack_local): Same.
1948 (cut_slot_from_list): Same.
1949 (insert_slot_to_list): Same.
1950 (max_slot_level): Same.
1951 (move_slot_to_level): Same.
1952 (temp_address_hasher::equal): Same.
1953 (remove_unused_temp_slot_addresses): Same.
1954 (assign_temp): Same.
1955 (combine_temp_slots): Same.
1956 (update_temp_slot_address): Same.
1957 (preserve_temp_slots): Same.
1958 * function.h: Same.
1959 * fwprop.c: Same.
1960 * gcc-rich-location.h: Same.
1961 * gcov.c: Same.
1962 * genattrtab.c (check_attr_test): Same.
1963 (check_attr_value): Same.
1964 (convert_set_attr_alternative): Same.
1965 (convert_set_attr): Same.
1966 (check_defs): Same.
1967 (copy_boolean): Same.
1968 (get_attr_value): Same.
1969 (expand_delays): Same.
1970 (make_length_attrs): Same.
1971 (min_fn): Same.
1972 (make_alternative_compare): Same.
1973 (simplify_test_exp): Same.
1974 (tests_attr_p): Same.
1975 (get_attr_order): Same.
1976 (clear_struct_flag): Same.
1977 (gen_attr): Same.
1978 (compares_alternatives_p): Same.
1979 (gen_insn): Same.
1980 (gen_delay): Same.
1981 (find_attrs_to_cache): Same.
1982 (write_test_expr): Same.
1983 (walk_attr_value): Same.
1984 (write_attr_get): Same.
1985 (eliminate_known_true): Same.
1986 (write_insn_cases): Same.
1987 (write_attr_case): Same.
1988 (write_attr_valueq): Same.
1989 (write_attr_value): Same.
1990 (write_dummy_eligible_delay): Same.
1991 (next_comma_elt): Same.
1992 (find_attr): Same.
1993 (make_internal_attr): Same.
1994 (copy_rtx_unchanging): Same.
1995 (gen_insn_reserv): Same.
1996 (check_tune_attr): Same.
1997 (make_automaton_attrs): Same.
1998 (handle_arg): Same.
1999 * genextract.c (gen_insn): Same.
2000 (VEC_char_to_string): Same.
2001 * genmatch.c (print_operand): Same.
2002 (lower): Same.
2003 (parser::parse_operation): Same.
2004 (parser::parse_capture): Same.
2005 (parser::parse_c_expr): Same.
2006 (parser::parse_simplify): Same.
2007 (main): Same.
2008 * genoutput.c (output_operand_data): Same.
2009 (output_get_insn_name): Same.
2010 (compare_operands): Same.
2011 (place_operands): Same.
2012 (process_template): Same.
2013 (validate_insn_alternatives): Same.
2014 (validate_insn_operands): Same.
2015 (gen_expand): Same.
2016 (note_constraint): Same.
2017 * genpreds.c (write_one_predicate_function): Same.
2018 (add_constraint): Same.
2019 (process_define_register_constraint): Same.
2020 (write_lookup_constraint_1): Same.
2021 (write_lookup_constraint_array): Same.
2022 (write_insn_constraint_len): Same.
2023 (write_reg_class_for_constraint_1): Same.
2024 (write_constraint_satisfied_p_array): Same.
2025 * genrecog.c (optimize_subroutine_group): Same.
2026 * gensupport.c (process_define_predicate): Same.
2027 (queue_pattern): Same.
2028 (remove_from_queue): Same.
2029 (process_rtx): Same.
2030 (is_predicable): Same.
2031 (change_subst_attribute): Same.
2032 (subst_pattern_match): Same.
2033 (alter_constraints): Same.
2034 (alter_attrs_for_insn): Same.
2035 (shift_output_template): Same.
2036 (alter_output_for_subst_insn): Same.
2037 (process_one_cond_exec): Same.
2038 (subst_dup): Same.
2039 (process_define_cond_exec): Same.
2040 (mnemonic_htab_callback): Same.
2041 (gen_mnemonic_attr): Same.
2042 (read_md_rtx): Same.
2043 * ggc-page.c: Same.
2044 * gimple-loop-interchange.cc (dump_reduction): Same.
2045 (dump_induction): Same.
2046 (loop_cand::~loop_cand): Same.
2047 (free_data_refs_with_aux): Same.
2048 (tree_loop_interchange::interchange_loops): Same.
2049 (tree_loop_interchange::map_inductions_to_loop): Same.
2050 (tree_loop_interchange::move_code_to_inner_loop): Same.
2051 (compute_access_stride): Same.
2052 (compute_access_strides): Same.
2053 (proper_loop_form_for_interchange): Same.
2054 (tree_loop_interchange_compute_ddrs): Same.
2055 (prune_datarefs_not_in_loop): Same.
2056 (prepare_data_references): Same.
2057 (pass_linterchange::execute): Same.
2058 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
2059 (unroll_jam_possible_p): Same.
2060 (fuse_loops): Same.
2061 (adjust_unroll_factor): Same.
2062 (tree_loop_unroll_and_jam): Same.
2063 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
2064 (loop_versioning::expensive_stmt_p): Same.
2065 (loop_versioning::version_for_unity): Same.
2066 (loop_versioning::dump_inner_likelihood): Same.
2067 (loop_versioning::find_per_loop_multiplication): Same.
2068 (loop_versioning::analyze_term_using_scevs): Same.
2069 (loop_versioning::record_address_fragment): Same.
2070 (loop_versioning::analyze_expr): Same.
2071 (loop_versioning::analyze_blocks): Same.
2072 (loop_versioning::prune_conditions): Same.
2073 (loop_versioning::merge_loop_info): Same.
2074 (loop_versioning::add_loop_to_queue): Same.
2075 (loop_versioning::decide_whether_loop_is_versionable): Same.
2076 (loop_versioning::make_versioning_decisions): Same.
2077 (loop_versioning::implement_versioning_decisions): Same.
2078 * gimple-ssa-evrp-analyze.c
2079 (evrp_range_analyzer::record_ranges_from_phis): Same.
2080 * gimple-ssa-store-merging.c (split_store::split_store): Same.
2081 (count_multiple_uses): Same.
2082 (split_group): Same.
2083 (imm_store_chain_info::output_merged_store): Same.
2084 (pass_store_merging::process_store): Same.
2085 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
2086 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
2087 (is_max): Same.
2088 (alloca_call_type): Same.
2089 (pass_walloca::execute): Same.
2090 * gimple-streamer-in.c (input_phi): Same.
2091 (input_gimple_stmt): Same.
2092 * gimple-streamer.h: Same.
2093 * godump.c (go_force_record_alignment): Same.
2094 (go_format_type): Same.
2095 (go_output_type): Same.
2096 (go_output_fndecl): Same.
2097 (go_output_typedef): Same.
2098 (keyword_hash_init): Same.
2099 (find_dummy_types): Same.
2100 * graph.c (draw_cfg_nodes_no_loops): Same.
2101 (draw_cfg_nodes_for_loop): Same.
2102 * hard-reg-set.h (hard_reg_set_iter_next): Same.
2103 * hsa-brig.c: Same.
2104 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
2105 * hsa-dump.c (dump_hsa_cfun): Same.
2106 * hsa-gen.c (gen_function_def_parameters): Same.
2107 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
2108 * input.c (dump_line_table_statistics): Same.
2109 (test_lexer): Same.
2110 * input.h: Same.
2111 * internal-fn.c (get_multi_vector_move): Same.
2112 (expand_load_lanes_optab_fn): Same.
2113 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
2114 (expand_GOMP_SIMT_EXIT): Same.
2115 (expand_GOMP_SIMT_LAST_LANE): Same.
2116 (expand_GOMP_SIMT_ORDERED_PRED): Same.
2117 (expand_GOMP_SIMT_VOTE_ANY): Same.
2118 (expand_GOMP_SIMT_XCHG_BFLY): Same.
2119 (expand_GOMP_SIMT_XCHG_IDX): Same.
2120 (expand_addsub_overflow): Same.
2121 (expand_neg_overflow): Same.
2122 (expand_mul_overflow): Same.
2123 (expand_call_mem_ref): Same.
2124 (expand_mask_load_optab_fn): Same.
2125 (expand_scatter_store_optab_fn): Same.
2126 (expand_gather_load_optab_fn): Same.
2127 * ipa-cp.c (ipa_get_parm_lattices): Same.
2128 (print_all_lattices): Same.
2129 (ignore_edge_p): Same.
2130 (build_toporder_info): Same.
2131 (free_toporder_info): Same.
2132 (push_node_to_stack): Same.
2133 (ipcp_lattice<valtype>::set_contains_variable): Same.
2134 (set_agg_lats_to_bottom): Same.
2135 (ipcp_bits_lattice::meet_with): Same.
2136 (set_single_call_flag): Same.
2137 (initialize_node_lattices): Same.
2138 (ipa_get_jf_ancestor_result): Same.
2139 (ipcp_verify_propagated_values): Same.
2140 (propagate_scalar_across_jump_function): Same.
2141 (propagate_context_across_jump_function): Same.
2142 (propagate_bits_across_jump_function): Same.
2143 (ipa_vr_operation_and_type_effects): Same.
2144 (propagate_vr_across_jump_function): Same.
2145 (set_check_aggs_by_ref): Same.
2146 (set_chain_of_aglats_contains_variable): Same.
2147 (merge_aggregate_lattices): Same.
2148 (agg_pass_through_permissible_p): Same.
2149 (propagate_aggs_across_jump_function): Same.
2150 (call_passes_through_thunk_p): Same.
2151 (propagate_constants_across_call): Same.
2152 (devirtualization_time_bonus): Same.
2153 (good_cloning_opportunity_p): Same.
2154 (context_independent_aggregate_values): Same.
2155 (gather_context_independent_values): Same.
2156 (perform_estimation_of_a_value): Same.
2157 (estimate_local_effects): Same.
2158 (value_topo_info<valtype>::add_val): Same.
2159 (add_all_node_vals_to_toposort): Same.
2160 (value_topo_info<valtype>::propagate_effects): Same.
2161 (ipcp_propagate_stage): Same.
2162 (ipcp_discover_new_direct_edges): Same.
2163 (same_node_or_its_all_contexts_clone_p): Same.
2164 (cgraph_edge_brings_value_p): Same.
2165 (gather_edges_for_value): Same.
2166 (create_specialized_node): Same.
2167 (find_more_scalar_values_for_callers_subset): Same.
2168 (find_more_contexts_for_caller_subset): Same.
2169 (copy_plats_to_inter): Same.
2170 (intersect_aggregates_with_edge): Same.
2171 (find_aggregate_values_for_callers_subset): Same.
2172 (cgraph_edge_brings_all_agg_vals_for_node): Same.
2173 (decide_about_value): Same.
2174 (decide_whether_version_node): Same.
2175 (spread_undeadness): Same.
2176 (identify_dead_nodes): Same.
2177 (ipcp_store_vr_results): Same.
2178 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
2179 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
2180 (redirect_to_unreachable): Same.
2181 (edge_set_predicate): Same.
2182 (evaluate_conditions_for_known_args): Same.
2183 (evaluate_properties_for_edge): Same.
2184 (ipa_fn_summary_t::duplicate): Same.
2185 (ipa_call_summary_t::duplicate): Same.
2186 (dump_ipa_call_summary): Same.
2187 (ipa_dump_fn_summary): Same.
2188 (eliminated_by_inlining_prob): Same.
2189 (set_cond_stmt_execution_predicate): Same.
2190 (set_switch_stmt_execution_predicate): Same.
2191 (compute_bb_predicates): Same.
2192 (will_be_nonconstant_expr_predicate): Same.
2193 (phi_result_unknown_predicate): Same.
2194 (analyze_function_body): Same.
2195 (compute_fn_summary): Same.
2196 (estimate_edge_devirt_benefit): Same.
2197 (estimate_edge_size_and_time): Same.
2198 (estimate_calls_size_and_time): Same.
2199 (estimate_node_size_and_time): Same.
2200 (remap_edge_change_prob): Same.
2201 (remap_edge_summaries): Same.
2202 (ipa_merge_fn_summary_after_inlining): Same.
2203 (ipa_fn_summary_generate): Same.
2204 (inline_read_section): Same.
2205 (ipa_fn_summary_read): Same.
2206 (ipa_fn_summary_write): Same.
2207 * ipa-fnsummary.h: Same.
2208 * ipa-hsa.c (ipa_hsa_read_section): Same.
2209 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
2210 * ipa-icf.c (sem_function::param_used_p): Same.
2211 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
2212 * ipa-inline.c (edge_badness): Same.
2213 (inline_small_functions): Same.
2214 * ipa-polymorphic-call.c
2215 (ipa_polymorphic_call_context::stream_out): Same.
2216 * ipa-predicate.c (predicate::remap_after_duplication): Same.
2217 (predicate::remap_after_inlining): Same.
2218 (predicate::stream_out): Same.
2219 * ipa-predicate.h: Same.
2220 * ipa-profile.c (ipa_profile_read_summary): Same.
2221 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2222 (count_formal_params): Same.
2223 (ipa_dump_param): Same.
2224 (ipa_alloc_node_params): Same.
2225 (ipa_print_node_jump_functions_for_edge): Same.
2226 (ipa_print_node_jump_functions): Same.
2227 (ipa_load_from_parm_agg): Same.
2228 (get_ancestor_addr_info): Same.
2229 (ipa_compute_jump_functions_for_edge): Same.
2230 (ipa_analyze_virtual_call_uses): Same.
2231 (ipa_analyze_stmt_uses): Same.
2232 (ipa_analyze_params_uses_in_bb): Same.
2233 (update_jump_functions_after_inlining): Same.
2234 (try_decrement_rdesc_refcount): Same.
2235 (ipa_impossible_devirt_target): Same.
2236 (update_indirect_edges_after_inlining): Same.
2237 (combine_controlled_uses_counters): Same.
2238 (ipa_edge_args_sum_t::duplicate): Same.
2239 (ipa_write_jump_function): Same.
2240 (ipa_write_indirect_edge_info): Same.
2241 (ipa_write_node_info): Same.
2242 (ipa_read_edge_info): Same.
2243 (ipa_prop_read_section): Same.
2244 (read_replacements_section): Same.
2245 * ipa-prop.h (ipa_get_param_count): Same.
2246 (ipa_get_param): Same.
2247 (ipa_get_type): Same.
2248 (ipa_get_param_move_cost): Same.
2249 (ipa_set_param_used): Same.
2250 (ipa_get_controlled_uses): Same.
2251 (ipa_set_controlled_uses): Same.
2252 (ipa_get_cs_argument_count): Same.
2253 * ipa-pure-const.c (analyze_function): Same.
2254 (pure_const_read_summary): Same.
2255 * ipa-ref.h: Same.
2256 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2257 * ipa-split.c (test_nonssa_use): Same.
2258 (dump_split_point): Same.
2259 (dominated_by_forbidden): Same.
2260 (split_part_set_ssa_name_p): Same.
2261 (find_split_points): Same.
2262 * ira-build.c (finish_loop_tree_nodes): Same.
2263 (low_pressure_loop_node_p): Same.
2264 * ira-color.c (ira_reuse_stack_slot): Same.
2265 * ira-int.h: Same.
2266 * ira.c (setup_reg_equiv): Same.
2267 (print_insn_chain): Same.
2268 (ira): Same.
2269 * loop-doloop.c (doloop_condition_get): Same.
2270 (add_test): Same.
2271 (record_reg_sets): Same.
2272 (doloop_optimize): Same.
2273 * loop-init.c (loop_optimizer_init): Same.
2274 (fix_loop_structure): Same.
2275 * loop-invariant.c (merge_identical_invariants): Same.
2276 (compute_always_reached): Same.
2277 (find_exits): Same.
2278 (may_assign_reg_p): Same.
2279 (find_invariants_bb): Same.
2280 (find_invariants_body): Same.
2281 (replace_uses): Same.
2282 (can_move_invariant_reg): Same.
2283 (free_inv_motion_data): Same.
2284 (move_single_loop_invariants): Same.
2285 (change_pressure): Same.
2286 (mark_ref_regs): Same.
2287 (calculate_loop_reg_pressure): Same.
2288 * loop-iv.c (biv_entry_hasher::equal): Same.
2289 (iv_extend_to_rtx_code): Same.
2290 (check_iv_ref_table_size): Same.
2291 (clear_iv_info): Same.
2292 (latch_dominating_def): Same.
2293 (iv_get_reaching_def): Same.
2294 (iv_constant): Same.
2295 (iv_subreg): Same.
2296 (iv_extend): Same.
2297 (iv_neg): Same.
2298 (iv_add): Same.
2299 (iv_mult): Same.
2300 (get_biv_step): Same.
2301 (record_iv): Same.
2302 (analyzed_for_bivness_p): Same.
2303 (record_biv): Same.
2304 (iv_analyze_biv): Same.
2305 (iv_analyze_expr): Same.
2306 (iv_analyze_def): Same.
2307 (iv_analyze_op): Same.
2308 (iv_analyze): Same.
2309 (iv_analyze_result): Same.
2310 (biv_p): Same.
2311 (eliminate_implied_conditions): Same.
2312 (simplify_using_initial_values): Same.
2313 (shorten_into_mode): Same.
2314 (canonicalize_iv_subregs): Same.
2315 (determine_max_iter): Same.
2316 (check_simple_exit): Same.
2317 (find_simple_exit): Same.
2318 (get_simple_loop_desc): Same.
2319 * loop-unroll.c (report_unroll): Same.
2320 (decide_unrolling): Same.
2321 (unroll_loops): Same.
2322 (loop_exit_at_end_p): Same.
2323 (decide_unroll_constant_iterations): Same.
2324 (unroll_loop_constant_iterations): Same.
2325 (compare_and_jump_seq): Same.
2326 (unroll_loop_runtime_iterations): Same.
2327 (decide_unroll_stupid): Same.
2328 (unroll_loop_stupid): Same.
2329 (referenced_in_one_insn_in_loop_p): Same.
2330 (reset_debug_uses_in_loop): Same.
2331 (analyze_iv_to_split_insn): Same.
2332 * lra-eliminations.c (lra_debug_elim_table): Same.
2333 (setup_can_eliminate): Same.
2334 (form_sum): Same.
2335 (lra_get_elimination_hard_regno): Same.
2336 (lra_eliminate_regs_1): Same.
2337 (eliminate_regs_in_insn): Same.
2338 (update_reg_eliminate): Same.
2339 (init_elimination): Same.
2340 (lra_eliminate): Same.
2341 * lra-int.h: Same.
2342 * lra-lives.c (initiate_live_solver): Same.
2343 * lra-remat.c (create_remat_bb_data): Same.
2344 * lra-spills.c (lra_spill): Same.
2345 * lra.c (lra_set_insn_recog_data): Same.
2346 (lra_set_used_insn_alternative_by_uid): Same.
2347 (init_reg_info): Same.
2348 (expand_reg_info): Same.
2349 * lto-cgraph.c (output_symtab): Same.
2350 (read_identifier): Same.
2351 (get_alias_symbol): Same.
2352 (input_node): Same.
2353 (input_varpool_node): Same.
2354 (input_ref): Same.
2355 (input_edge): Same.
2356 (input_cgraph_1): Same.
2357 (input_refs): Same.
2358 (input_symtab): Same.
2359 (input_offload_tables): Same.
2360 (output_cgraph_opt_summary): Same.
2361 (input_edge_opt_summary): Same.
2362 (input_cgraph_opt_section): Same.
2363 * lto-section-in.c (lto_free_raw_section_data): Same.
2364 (lto_create_simple_input_block): Same.
2365 (lto_free_function_in_decl_state_for_node): Same.
2366 * lto-streamer-in.c (lto_tag_check_set): Same.
2367 (lto_location_cache::revert_location_cache): Same.
2368 (lto_location_cache::input_location): Same.
2369 (lto_input_location): Same.
2370 (stream_input_location_now): Same.
2371 (lto_input_tree_ref): Same.
2372 (lto_input_eh_catch_list): Same.
2373 (input_eh_region): Same.
2374 (lto_init_eh): Same.
2375 (make_new_block): Same.
2376 (input_cfg): Same.
2377 (fixup_call_stmt_edges): Same.
2378 (input_struct_function_base): Same.
2379 (input_function): Same.
2380 (lto_read_body_or_constructor): Same.
2381 (lto_read_tree_1): Same.
2382 (lto_read_tree): Same.
2383 (lto_input_scc): Same.
2384 (lto_input_tree_1): Same.
2385 (lto_input_toplevel_asms): Same.
2386 (lto_input_mode_table): Same.
2387 (lto_reader_init): Same.
2388 (lto_data_in_create): Same.
2389 * lto-streamer-out.c (output_cfg): Same.
2390 * lto-streamer.h: Same.
2391 * modulo-sched.c (duplicate_insns_of_cycles): Same.
2392 (generate_prolog_epilog): Same.
2393 (mark_loop_unsched): Same.
2394 (dump_insn_location): Same.
2395 (loop_canon_p): Same.
2396 (sms_schedule): Same.
2397 * omp-expand.c (expand_omp_for_ordered_loops): Same.
2398 (expand_omp_for_generic): Same.
2399 (expand_omp_for_static_nochunk): Same.
2400 (expand_omp_for_static_chunk): Same.
2401 (expand_omp_simd): Same.
2402 (expand_omp_taskloop_for_inner): Same.
2403 (expand_oacc_for): Same.
2404 (expand_omp_atomic_pipeline): Same.
2405 (mark_loops_in_oacc_kernels_region): Same.
2406 * omp-offload.c (oacc_xform_loop): Same.
2407 * omp-simd-clone.c (simd_clone_adjust): Same.
2408 * optabs-query.c (get_traditional_extraction_insn): Same.
2409 * optabs.c (expand_vector_broadcast): Same.
2410 (expand_binop_directly): Same.
2411 (expand_twoval_unop): Same.
2412 (expand_twoval_binop): Same.
2413 (expand_unop_direct): Same.
2414 (emit_indirect_jump): Same.
2415 (emit_conditional_move): Same.
2416 (emit_conditional_neg_or_complement): Same.
2417 (emit_conditional_add): Same.
2418 (vector_compare_rtx): Same.
2419 (expand_vec_perm_1): Same.
2420 (expand_vec_perm_const): Same.
2421 (expand_vec_cond_expr): Same.
2422 (expand_vec_series_expr): Same.
2423 (maybe_emit_atomic_exchange): Same.
2424 (maybe_emit_sync_lock_test_and_set): Same.
2425 (expand_atomic_compare_and_swap): Same.
2426 (expand_atomic_load): Same.
2427 (expand_atomic_store): Same.
2428 (maybe_emit_op): Same.
2429 (valid_multiword_target_p): Same.
2430 (create_integer_operand): Same.
2431 (maybe_legitimize_operand_same_code): Same.
2432 (maybe_legitimize_operand): Same.
2433 (create_convert_operand_from_type): Same.
2434 (can_reuse_operands_p): Same.
2435 (maybe_legitimize_operands): Same.
2436 (maybe_gen_insn): Same.
2437 (maybe_expand_insn): Same.
2438 (maybe_expand_jump_insn): Same.
2439 (expand_insn): Same.
2440 * optabs.h (create_expand_operand): Same.
2441 (create_fixed_operand): Same.
2442 (create_output_operand): Same.
2443 (create_input_operand): Same.
2444 (create_convert_operand_to): Same.
2445 (create_convert_operand_from): Same.
2446 * optinfo.h: Same.
2447 * poly-int.h: Same.
2448 * predict.c (optimize_insn_for_speed_p): Same.
2449 (optimize_loop_for_size_p): Same.
2450 (optimize_loop_for_speed_p): Same.
2451 (optimize_loop_nest_for_speed_p): Same.
2452 (get_base_value): Same.
2453 (predicted_by_loop_heuristics_p): Same.
2454 (predict_extra_loop_exits): Same.
2455 (predict_loops): Same.
2456 (predict_paths_for_bb): Same.
2457 (predict_paths_leading_to): Same.
2458 (propagate_freq): Same.
2459 (pass_profile::execute): Same.
2460 * predict.h: Same.
2461 * profile-count.c (profile_count::differs_from_p): Same.
2462 (profile_probability::differs_lot_from_p): Same.
2463 * profile-count.h: Same.
2464 * profile.c (branch_prob): Same.
2465 * regrename.c (free_chain_data): Same.
2466 (mark_conflict): Same.
2467 (create_new_chain): Same.
2468 (merge_overlapping_regs): Same.
2469 (init_rename_info): Same.
2470 (merge_chains): Same.
2471 (regrename_analyze): Same.
2472 (regrename_do_replace): Same.
2473 (scan_rtx_reg): Same.
2474 (record_out_operands): Same.
2475 (build_def_use): Same.
2476 * regrename.h: Same.
2477 * reload.h: Same.
2478 * reload1.c (init_reload): Same.
2479 (maybe_fix_stack_asms): Same.
2480 (copy_reloads): Same.
2481 (count_pseudo): Same.
2482 (count_spilled_pseudo): Same.
2483 (find_reg): Same.
2484 (find_reload_regs): Same.
2485 (select_reload_regs): Same.
2486 (spill_hard_reg): Same.
2487 (fixup_eh_region_note): Same.
2488 (set_reload_reg): Same.
2489 (allocate_reload_reg): Same.
2490 (compute_reload_subreg_offset): Same.
2491 (reload_adjust_reg_for_icode): Same.
2492 (emit_input_reload_insns): Same.
2493 (emit_output_reload_insns): Same.
2494 (do_input_reload): Same.
2495 (inherit_piecemeal_p): Same.
2496 * rtl.h: Same.
2497 * sanopt.c (maybe_get_dominating_check): Same.
2498 (maybe_optimize_ubsan_ptr_ifn): Same.
2499 (can_remove_asan_check): Same.
2500 (maybe_optimize_asan_check_ifn): Same.
2501 (sanopt_optimize_walker): Same.
2502 * sched-deps.c (add_dependence_list): Same.
2503 (chain_to_prev_insn): Same.
2504 (add_insn_mem_dependence): Same.
2505 (create_insn_reg_set): Same.
2506 (maybe_extend_reg_info_p): Same.
2507 (sched_analyze_reg): Same.
2508 (sched_analyze_1): Same.
2509 (get_implicit_reg_pending_clobbers): Same.
2510 (chain_to_prev_insn_p): Same.
2511 (deps_analyze_insn): Same.
2512 (deps_start_bb): Same.
2513 (sched_free_deps): Same.
2514 (init_deps): Same.
2515 (init_deps_reg_last): Same.
2516 (free_deps): Same.
2517 * sched-ebb.c: Same.
2518 * sched-int.h: Same.
2519 * sched-rgn.c (add_branch_dependences): Same.
2520 (concat_insn_mem_list): Same.
2521 (deps_join): Same.
2522 (sched_rgn_compute_dependencies): Same.
2523 * sel-sched-ir.c (reset_target_context): Same.
2524 (copy_deps_context): Same.
2525 (init_id_from_df): Same.
2526 (has_dependence_p): Same.
2527 (change_loops_latches): Same.
2528 (bb_top_order_comparator): Same.
2529 (make_region_from_loop_preheader): Same.
2530 (sel_init_pipelining): Same.
2531 (get_loop_nest_for_rgn): Same.
2532 (make_regions_from_the_rest): Same.
2533 (sel_is_loop_preheader_p): Same.
2534 * sel-sched-ir.h (inner_loop_header_p): Same.
2535 (get_all_loop_exits): Same.
2536 * selftest.h: Same.
2537 * sese.c (sese_build_liveouts): Same.
2538 (sese_insert_phis_for_liveouts): Same.
2539 * sese.h (defined_in_sese_p): Same.
2540 * sreal.c (sreal::stream_out): Same.
2541 * sreal.h: Same.
2542 * streamer-hooks.h: Same.
2543 * target-globals.c (save_target_globals): Same.
2544 * target-globals.h: Same.
2545 * target.def: Same.
2546 * target.h: Same.
2547 * targhooks.c (default_has_ifunc_p): Same.
2548 (default_empty_mask_is_expensive): Same.
2549 (default_init_cost): Same.
2550 * targhooks.h: Same.
2551 * toplev.c: Same.
2552 * tree-affine.c (aff_combination_mult): Same.
2553 (aff_combination_expand): Same.
2554 (aff_combination_constant_multiple_p): Same.
2555 * tree-affine.h: Same.
2556 * tree-cfg.c (build_gimple_cfg): Same.
2557 (replace_loop_annotate_in_block): Same.
2558 (replace_uses_by): Same.
2559 (remove_bb): Same.
2560 (dump_cfg_stats): Same.
2561 (gimple_duplicate_sese_region): Same.
2562 (gimple_duplicate_sese_tail): Same.
2563 (move_block_to_fn): Same.
2564 (replace_block_vars_by_duplicates): Same.
2565 (move_sese_region_to_fn): Same.
2566 (print_loops_bb): Same.
2567 (print_loop): Same.
2568 (print_loops): Same.
2569 (debug): Same.
2570 (debug_loops): Same.
2571 * tree-cfg.h: Same.
2572 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
2573 (chrec_fold_multiply_poly_poly): Same.
2574 (chrec_evaluate): Same.
2575 (chrec_component_in_loop_num): Same.
2576 (reset_evolution_in_loop): Same.
2577 (is_multivariate_chrec): Same.
2578 (chrec_contains_symbols): Same.
2579 (nb_vars_in_chrec): Same.
2580 (chrec_convert_1): Same.
2581 (chrec_convert_aggressive): Same.
2582 * tree-chrec.h: Same.
2583 * tree-core.h: Same.
2584 * tree-data-ref.c (dump_data_dependence_relation): Same.
2585 (canonicalize_base_object_address): Same.
2586 (data_ref_compare_tree): Same.
2587 (prune_runtime_alias_test_list): Same.
2588 (get_segment_min_max): Same.
2589 (create_intersect_range_checks): Same.
2590 (conflict_fn_no_dependence): Same.
2591 (object_address_invariant_in_loop_p): Same.
2592 (analyze_ziv_subscript): Same.
2593 (analyze_siv_subscript_cst_affine): Same.
2594 (analyze_miv_subscript): Same.
2595 (analyze_overlapping_iterations): Same.
2596 (build_classic_dist_vector_1): Same.
2597 (add_other_self_distances): Same.
2598 (same_access_functions): Same.
2599 (build_classic_dir_vector): Same.
2600 (subscript_dependence_tester_1): Same.
2601 (subscript_dependence_tester): Same.
2602 (access_functions_are_affine_or_constant_p): Same.
2603 (get_references_in_stmt): Same.
2604 (loop_nest_has_data_refs): Same.
2605 (graphite_find_data_references_in_stmt): Same.
2606 (find_data_references_in_bb): Same.
2607 (get_base_for_alignment): Same.
2608 (find_loop_nest_1): Same.
2609 (find_loop_nest): Same.
2610 * tree-data-ref.h (dr_alignment): Same.
2611 (ddr_dependence_level): Same.
2612 * tree-if-conv.c (fold_build_cond_expr): Same.
2613 (add_to_predicate_list): Same.
2614 (add_to_dst_predicate_list): Same.
2615 (phi_convertible_by_degenerating_args): Same.
2616 (idx_within_array_bound): Same.
2617 (all_preds_critical_p): Same.
2618 (pred_blocks_visited_p): Same.
2619 (predicate_bbs): Same.
2620 (build_region): Same.
2621 (if_convertible_loop_p_1): Same.
2622 (is_cond_scalar_reduction): Same.
2623 (predicate_scalar_phi): Same.
2624 (remove_conditions_and_labels): Same.
2625 (combine_blocks): Same.
2626 (version_loop_for_if_conversion): Same.
2627 (versionable_outer_loop_p): Same.
2628 (ifcvt_local_dce): Same.
2629 (tree_if_conversion): Same.
2630 (pass_if_conversion::gate): Same.
2631 * tree-if-conv.h: Same.
2632 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
2633 * tree-loop-distribution.c (bb_top_order_cmp): Same.
2634 (free_rdg): Same.
2635 (stmt_has_scalar_dependences_outside_loop): Same.
2636 (copy_loop_before): Same.
2637 (create_bb_after_loop): Same.
2638 (const_with_all_bytes_same): Same.
2639 (generate_memset_builtin): Same.
2640 (generate_memcpy_builtin): Same.
2641 (destroy_loop): Same.
2642 (build_rdg_partition_for_vertex): Same.
2643 (compute_access_range): Same.
2644 (data_ref_segment_size): Same.
2645 (latch_dominated_by_data_ref): Same.
2646 (compute_alias_check_pairs): Same.
2647 (fuse_memset_builtins): Same.
2648 (finalize_partitions): Same.
2649 (find_seed_stmts_for_distribution): Same.
2650 (prepare_perfect_loop_nest): Same.
2651 * tree-parloops.c (lambda_transform_legal_p): Same.
2652 (loop_parallel_p): Same.
2653 (reduc_stmt_res): Same.
2654 (add_field_for_name): Same.
2655 (create_call_for_reduction_1): Same.
2656 (replace_uses_in_bb_by): Same.
2657 (transform_to_exit_first_loop_alt): Same.
2658 (try_transform_to_exit_first_loop_alt): Same.
2659 (transform_to_exit_first_loop): Same.
2660 (num_phis): Same.
2661 (gen_parallel_loop): Same.
2662 (gather_scalar_reductions): Same.
2663 (get_omp_data_i_param): Same.
2664 (try_create_reduction_list): Same.
2665 (oacc_entry_exit_single_gang): Same.
2666 (parallelize_loops): Same.
2667 * tree-pass.h: Same.
2668 * tree-predcom.c (determine_offset): Same.
2669 (last_always_executed_block): Same.
2670 (split_data_refs_to_components): Same.
2671 (suitable_component_p): Same.
2672 (valid_initializer_p): Same.
2673 (find_looparound_phi): Same.
2674 (insert_looparound_copy): Same.
2675 (add_looparound_copies): Same.
2676 (determine_roots_comp): Same.
2677 (predcom_tmp_var): Same.
2678 (initialize_root_vars): Same.
2679 (initialize_root_vars_store_elim_1): Same.
2680 (initialize_root_vars_store_elim_2): Same.
2681 (finalize_eliminated_stores): Same.
2682 (initialize_root_vars_lm): Same.
2683 (remove_stmt): Same.
2684 (determine_unroll_factor): Same.
2685 (execute_pred_commoning_cbck): Same.
2686 (base_names_in_chain_on): Same.
2687 (combine_chains): Same.
2688 (pcom_stmt_dominates_stmt_p): Same.
2689 (try_combine_chains): Same.
2690 (prepare_initializers_chain_store_elim): Same.
2691 (prepare_initializers_chain): Same.
2692 (prepare_initializers): Same.
2693 (prepare_finalizers_chain): Same.
2694 (prepare_finalizers): Same.
2695 (insert_init_seqs): Same.
2696 * tree-scalar-evolution.c (loop_phi_node_p): Same.
2697 (compute_overall_effect_of_inner_loop): Same.
2698 (add_to_evolution_1): Same.
2699 (add_to_evolution): Same.
2700 (follow_ssa_edge_binary): Same.
2701 (follow_ssa_edge_expr): Same.
2702 (backedge_phi_arg_p): Same.
2703 (follow_ssa_edge_in_condition_phi_branch): Same.
2704 (follow_ssa_edge_in_condition_phi): Same.
2705 (follow_ssa_edge_inner_loop_phi): Same.
2706 (follow_ssa_edge): Same.
2707 (analyze_evolution_in_loop): Same.
2708 (analyze_initial_condition): Same.
2709 (interpret_loop_phi): Same.
2710 (interpret_condition_phi): Same.
2711 (interpret_rhs_expr): Same.
2712 (interpret_expr): Same.
2713 (interpret_gimple_assign): Same.
2714 (analyze_scalar_evolution_1): Same.
2715 (analyze_scalar_evolution): Same.
2716 (analyze_scalar_evolution_for_address_of): Same.
2717 (get_instantiated_value_entry): Same.
2718 (loop_closed_phi_def): Same.
2719 (instantiate_scev_name): Same.
2720 (instantiate_scev_poly): Same.
2721 (instantiate_scev_binary): Same.
2722 (instantiate_scev_convert): Same.
2723 (instantiate_scev_not): Same.
2724 (instantiate_scev_r): Same.
2725 (instantiate_scev): Same.
2726 (resolve_mixers): Same.
2727 (initialize_scalar_evolutions_analyzer): Same.
2728 (scev_reset_htab): Same.
2729 (scev_reset): Same.
2730 (derive_simple_iv_with_niters): Same.
2731 (simple_iv_with_niters): Same.
2732 (expression_expensive_p): Same.
2733 (final_value_replacement_loop): Same.
2734 * tree-scalar-evolution.h (block_before_loop): Same.
2735 * tree-ssa-address.h: Same.
2736 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
2737 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
2738 (record_edge_info): Same.
2739 * tree-ssa-live.c (var_map_base_fini): Same.
2740 (remove_unused_locals): Same.
2741 * tree-ssa-live.h: Same.
2742 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
2743 (pass_ch_vect::execute): Same.
2744 (pass_ch::process_loop_p): Same.
2745 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
2746 (movement_possibility): Same.
2747 (outermost_invariant_loop): Same.
2748 (stmt_cost): Same.
2749 (determine_max_movement): Same.
2750 (invariantness_dom_walker::before_dom_children): Same.
2751 (move_computations): Same.
2752 (may_move_till): Same.
2753 (force_move_till_op): Same.
2754 (force_move_till): Same.
2755 (memref_free): Same.
2756 (record_mem_ref_loc): Same.
2757 (set_ref_stored_in_loop): Same.
2758 (mark_ref_stored): Same.
2759 (sort_bbs_in_loop_postorder_cmp): Same.
2760 (sort_locs_in_loop_postorder_cmp): Same.
2761 (analyze_memory_references): Same.
2762 (mem_refs_may_alias_p): Same.
2763 (find_ref_loc_in_loop_cmp): Same.
2764 (rewrite_mem_ref_loc::operator): Same.
2765 (first_mem_ref_loc_1::operator): Same.
2766 (sm_set_flag_if_changed::operator): Same.
2767 (execute_sm_if_changed_flag_set): Same.
2768 (execute_sm): Same.
2769 (hoist_memory_references): Same.
2770 (ref_always_accessed::operator): Same.
2771 (refs_independent_p): Same.
2772 (record_dep_loop): Same.
2773 (ref_indep_loop_p_1): Same.
2774 (ref_indep_loop_p): Same.
2775 (can_sm_ref_p): Same.
2776 (find_refs_for_sm): Same.
2777 (loop_suitable_for_sm): Same.
2778 (store_motion_loop): Same.
2779 (store_motion): Same.
2780 (fill_always_executed_in): Same.
2781 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
2782 (estimated_unrolled_size): Same.
2783 (loop_edge_to_cancel): Same.
2784 (remove_exits_and_undefined_stmts): Same.
2785 (remove_redundant_iv_tests): Same.
2786 (unloop_loops): Same.
2787 (estimated_peeled_sequence_size): Same.
2788 (try_peel_loop): Same.
2789 (canonicalize_loop_induction_variables): Same.
2790 (canonicalize_induction_variables): Same.
2791 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
2792 (name_info): Same.
2793 (stmt_after_inc_pos): Same.
2794 (contains_abnormal_ssa_name_p): Same.
2795 (niter_for_exit): Same.
2796 (find_bivs): Same.
2797 (mark_bivs): Same.
2798 (find_givs_in_bb): Same.
2799 (find_induction_variables): Same.
2800 (find_interesting_uses_cond): Same.
2801 (outermost_invariant_loop_for_expr): Same.
2802 (idx_find_step): Same.
2803 (add_candidate_1): Same.
2804 (add_iv_candidate_derived_from_uses): Same.
2805 (alloc_use_cost_map): Same.
2806 (prepare_decl_rtl): Same.
2807 (generic_predict_doloop_p): Same.
2808 (computation_cost): Same.
2809 (determine_common_wider_type): Same.
2810 (get_computation_aff_1): Same.
2811 (get_use_type): Same.
2812 (determine_group_iv_cost_address): Same.
2813 (iv_period): Same.
2814 (difference_cannot_overflow_p): Same.
2815 (may_eliminate_iv): Same.
2816 (determine_set_costs): Same.
2817 (cheaper_cost_pair): Same.
2818 (compare_cost_pair): Same.
2819 (iv_ca_cand_for_group): Same.
2820 (iv_ca_recount_cost): Same.
2821 (iv_ca_set_remove_invs): Same.
2822 (iv_ca_set_no_cp): Same.
2823 (iv_ca_set_add_invs): Same.
2824 (iv_ca_set_cp): Same.
2825 (iv_ca_add_group): Same.
2826 (iv_ca_cost): Same.
2827 (iv_ca_compare_deps): Same.
2828 (iv_ca_delta_reverse): Same.
2829 (iv_ca_delta_commit): Same.
2830 (iv_ca_cand_used_p): Same.
2831 (iv_ca_delta_free): Same.
2832 (iv_ca_new): Same.
2833 (iv_ca_free): Same.
2834 (iv_ca_dump): Same.
2835 (iv_ca_extend): Same.
2836 (iv_ca_narrow): Same.
2837 (iv_ca_prune): Same.
2838 (cheaper_cost_with_cand): Same.
2839 (iv_ca_replace): Same.
2840 (try_add_cand_for): Same.
2841 (get_initial_solution): Same.
2842 (try_improve_iv_set): Same.
2843 (find_optimal_iv_set_1): Same.
2844 (create_new_iv): Same.
2845 (rewrite_use_compare): Same.
2846 (remove_unused_ivs): Same.
2847 (determine_scaling_factor): Same.
2848 * tree-ssa-loop-ivopts.h: Same.
2849 * tree-ssa-loop-manip.c (create_iv): Same.
2850 (compute_live_loop_exits): Same.
2851 (add_exit_phi): Same.
2852 (add_exit_phis): Same.
2853 (find_uses_to_rename_use): Same.
2854 (find_uses_to_rename_def): Same.
2855 (find_uses_to_rename_in_loop): Same.
2856 (rewrite_into_loop_closed_ssa): Same.
2857 (check_loop_closed_ssa_bb): Same.
2858 (split_loop_exit_edge): Same.
2859 (ip_end_pos): Same.
2860 (ip_normal_pos): Same.
2861 (copy_phi_node_args): Same.
2862 (gimple_duplicate_loop_to_header_edge): Same.
2863 (can_unroll_loop_p): Same.
2864 (determine_exit_conditions): Same.
2865 (scale_dominated_blocks_in_loop): Same.
2866 (niter_for_unrolled_loop): Same.
2867 (tree_transform_and_unroll_loop): Same.
2868 (rewrite_all_phi_nodes_with_iv): Same.
2869 * tree-ssa-loop-manip.h: Same.
2870 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
2871 (number_of_iterations_ne): Same.
2872 (assert_no_overflow_lt): Same.
2873 (assert_loop_rolls_lt): Same.
2874 (number_of_iterations_lt): Same.
2875 (adjust_cond_for_loop_until_wrap): Same.
2876 (tree_simplify_using_condition): Same.
2877 (simplify_using_initial_conditions): Same.
2878 (simplify_using_outer_evolutions): Same.
2879 (loop_only_exit_p): Same.
2880 (ssa_defined_by_minus_one_stmt_p): Same.
2881 (number_of_iterations_popcount): Same.
2882 (number_of_iterations_exit): Same.
2883 (find_loop_niter): Same.
2884 (finite_loop_p): Same.
2885 (chain_of_csts_start): Same.
2886 (get_val_for): Same.
2887 (loop_niter_by_eval): Same.
2888 (derive_constant_upper_bound_ops): Same.
2889 (do_warn_aggressive_loop_optimizations): Same.
2890 (record_estimate): Same.
2891 (get_cst_init_from_scev): Same.
2892 (record_nonwrapping_iv): Same.
2893 (idx_infer_loop_bounds): Same.
2894 (infer_loop_bounds_from_ref): Same.
2895 (infer_loop_bounds_from_array): Same.
2896 (infer_loop_bounds_from_pointer_arith): Same.
2897 (infer_loop_bounds_from_signedness): Same.
2898 (bound_index): Same.
2899 (discover_iteration_bound_by_body_walk): Same.
2900 (maybe_lower_iteration_bound): Same.
2901 (estimate_numbers_of_iterations): Same.
2902 (estimated_loop_iterations): Same.
2903 (estimated_loop_iterations_int): Same.
2904 (max_loop_iterations): Same.
2905 (max_loop_iterations_int): Same.
2906 (likely_max_loop_iterations): Same.
2907 (likely_max_loop_iterations_int): Same.
2908 (estimated_stmt_executions_int): Same.
2909 (max_stmt_executions): Same.
2910 (likely_max_stmt_executions): Same.
2911 (estimated_stmt_executions): Same.
2912 (stmt_dominates_stmt_p): Same.
2913 (nowrap_type_p): Same.
2914 (loop_exits_before_overflow): Same.
2915 (scev_var_range_cant_overflow): Same.
2916 (scev_probably_wraps_p): Same.
2917 (free_numbers_of_iterations_estimates): Same.
2918 * tree-ssa-loop-niter.h: Same.
2919 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
2920 (idx_analyze_ref): Same.
2921 (analyze_ref): Same.
2922 (gather_memory_references_ref): Same.
2923 (mark_nontemporal_store): Same.
2924 (emit_mfence_after_loop): Same.
2925 (may_use_storent_in_loop_p): Same.
2926 (mark_nontemporal_stores): Same.
2927 (should_unroll_loop_p): Same.
2928 (volume_of_dist_vector): Same.
2929 (add_subscript_strides): Same.
2930 (self_reuse_distance): Same.
2931 (insn_to_prefetch_ratio_too_small_p): Same.
2932 * tree-ssa-loop-split.c (split_at_bb_p): Same.
2933 (patch_loop_exit): Same.
2934 (find_or_create_guard_phi): Same.
2935 (easy_exit_values): Same.
2936 (connect_loop_phis): Same.
2937 (connect_loops): Same.
2938 (compute_new_first_bound): Same.
2939 (split_loop): Same.
2940 (tree_ssa_split_loops): Same.
2941 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
2942 (is_maybe_undefined): Same.
2943 (tree_may_unswitch_on): Same.
2944 (simplify_using_entry_checks): Same.
2945 (tree_unswitch_single_loop): Same.
2946 (tree_unswitch_loop): Same.
2947 (tree_unswitch_outer_loop): Same.
2948 (empty_bb_without_guard_p): Same.
2949 (used_outside_loop_p): Same.
2950 (get_vop_from_header): Same.
2951 (hoist_guard): Same.
2952 * tree-ssa-loop.c (gate_oacc_kernels): Same.
2953 (get_lsm_tmp_name): Same.
2954 * tree-ssa-loop.h: Same.
2955 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
2956 (build_and_add_sum): Same.
2957 (no_side_effect_bb): Same.
2958 (get_ops): Same.
2959 (linearize_expr): Same.
2960 (should_break_up_subtract): Same.
2961 (linearize_expr_tree): Same.
2962 * tree-ssa-scopedtables.c: Same.
2963 * tree-ssa-scopedtables.h: Same.
2964 * tree-ssa-structalias.c (condense_visit): Same.
2965 (label_visit): Same.
2966 (dump_pred_graph): Same.
2967 (perform_var_substitution): Same.
2968 (move_complex_constraints): Same.
2969 (remove_preds_and_fake_succs): Same.
2970 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
2971 (determine_bb_domination_status): Same.
2972 (duplicate_thread_path): Same.
2973 (thread_through_all_blocks): Same.
2974 * tree-ssa-threadupdate.h: Same.
2975 * tree-streamer-in.c (streamer_read_string_cst): Same.
2976 (input_identifier): Same.
2977 (unpack_ts_type_common_value_fields): Same.
2978 (unpack_ts_block_value_fields): Same.
2979 (unpack_ts_translation_unit_decl_value_fields): Same.
2980 (unpack_ts_omp_clause_value_fields): Same.
2981 (streamer_read_tree_bitfields): Same.
2982 (streamer_alloc_tree): Same.
2983 (lto_input_ts_common_tree_pointers): Same.
2984 (lto_input_ts_vector_tree_pointers): Same.
2985 (lto_input_ts_poly_tree_pointers): Same.
2986 (lto_input_ts_complex_tree_pointers): Same.
2987 (lto_input_ts_decl_minimal_tree_pointers): Same.
2988 (lto_input_ts_decl_common_tree_pointers): Same.
2989 (lto_input_ts_decl_non_common_tree_pointers): Same.
2990 (lto_input_ts_decl_with_vis_tree_pointers): Same.
2991 (lto_input_ts_field_decl_tree_pointers): Same.
2992 (lto_input_ts_function_decl_tree_pointers): Same.
2993 (lto_input_ts_type_common_tree_pointers): Same.
2994 (lto_input_ts_type_non_common_tree_pointers): Same.
2995 (lto_input_ts_list_tree_pointers): Same.
2996 (lto_input_ts_vec_tree_pointers): Same.
2997 (lto_input_ts_exp_tree_pointers): Same.
2998 (lto_input_ts_block_tree_pointers): Same.
2999 (lto_input_ts_binfo_tree_pointers): Same.
3000 (lto_input_ts_constructor_tree_pointers): Same.
3001 (lto_input_ts_omp_clause_tree_pointers): Same.
3002 (streamer_read_tree_body): Same.
3003 * tree-streamer.h: Same.
3004 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
3005 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
3006 (vect_analyze_possibly_independent_ddr): Same.
3007 (vect_analyze_data_ref_dependence): Same.
3008 (vect_compute_data_ref_alignment): Same.
3009 (vect_enhance_data_refs_alignment): Same.
3010 (vect_analyze_data_ref_access): Same.
3011 (vect_check_gather_scatter): Same.
3012 (vect_find_stmt_data_reference): Same.
3013 (vect_create_addr_base_for_vector_ref): Same.
3014 (vect_setup_realignment): Same.
3015 (vect_supportable_dr_alignment): Same.
3016 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
3017 (adjust_phi_and_debug_stmts): Same.
3018 (vect_set_loop_mask): Same.
3019 (add_preheader_seq): Same.
3020 (vect_maybe_permute_loop_masks): Same.
3021 (vect_set_loop_masks_directly): Same.
3022 (vect_set_loop_condition_masked): Same.
3023 (vect_set_loop_condition_unmasked): Same.
3024 (slpeel_duplicate_current_defs_from_edges): Same.
3025 (slpeel_add_loop_guard): Same.
3026 (slpeel_can_duplicate_loop_p): Same.
3027 (create_lcssa_for_virtual_phi): Same.
3028 (iv_phi_p): Same.
3029 (vect_update_ivs_after_vectorizer): Same.
3030 (vect_gen_vector_loop_niters_mult_vf): Same.
3031 (slpeel_update_phi_nodes_for_loops): Same.
3032 (slpeel_update_phi_nodes_for_guard1): Same.
3033 (find_guard_arg): Same.
3034 (slpeel_update_phi_nodes_for_guard2): Same.
3035 (slpeel_update_phi_nodes_for_lcssa): Same.
3036 (vect_do_peeling): Same.
3037 (vect_create_cond_for_alias_checks): Same.
3038 (vect_loop_versioning): Same.
3039 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
3040 (vect_inner_phi_in_double_reduction_p): Same.
3041 (vect_analyze_scalar_cycles_1): Same.
3042 (vect_fixup_scalar_cycles_with_patterns): Same.
3043 (vect_get_loop_niters): Same.
3044 (bb_in_loop_p): Same.
3045 (vect_get_max_nscalars_per_iter): Same.
3046 (vect_verify_full_masking): Same.
3047 (vect_compute_single_scalar_iteration_cost): Same.
3048 (vect_analyze_loop_form_1): Same.
3049 (vect_analyze_loop_form): Same.
3050 (vect_active_double_reduction_p): Same.
3051 (vect_analyze_loop_operations): Same.
3052 (neutral_op_for_slp_reduction): Same.
3053 (vect_is_simple_reduction): Same.
3054 (vect_model_reduction_cost): Same.
3055 (get_initial_def_for_reduction): Same.
3056 (get_initial_defs_for_reduction): Same.
3057 (vect_create_epilog_for_reduction): Same.
3058 (vectorize_fold_left_reduction): Same.
3059 (vectorizable_reduction): Same.
3060 (vectorizable_induction): Same.
3061 (vectorizable_live_operation): Same.
3062 (loop_niters_no_overflow): Same.
3063 (vect_get_loop_mask): Same.
3064 (vect_transform_loop_stmt): Same.
3065 (vect_transform_loop): Same.
3066 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
3067 (vect_determine_precisions): Same.
3068 (vect_pattern_recog_1): Same.
3069 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3070 * tree-vect-stmts.c (stmt_vectype): Same.
3071 (process_use): Same.
3072 (vect_init_vector_1): Same.
3073 (vect_truncate_gather_scatter_offset): Same.
3074 (get_group_load_store_type): Same.
3075 (vect_build_gather_load_calls): Same.
3076 (vect_get_strided_load_store_ops): Same.
3077 (vectorizable_simd_clone_call): Same.
3078 (vectorizable_store): Same.
3079 (permute_vec_elements): Same.
3080 (vectorizable_load): Same.
3081 (vect_transform_stmt): Same.
3082 (supportable_widening_operation): Same.
3083 * tree-vectorizer.c (vec_info::replace_stmt): Same.
3084 (vec_info::free_stmt_vec_info): Same.
3085 (vect_free_loop_info_assumptions): Same.
3086 (vect_loop_vectorized_call): Same.
3087 (set_uid_loop_bbs): Same.
3088 (vectorize_loops): Same.
3089 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
3090 * tree.c (add_tree_to_fld_list): Same.
3091 (fld_type_variant_equal_p): Same.
3092 (fld_decl_context): Same.
3093 (fld_incomplete_type_of): Same.
3094 (free_lang_data_in_binfo): Same.
3095 (need_assembler_name_p): Same.
3096 (find_decls_types_r): Same.
3097 (get_eh_types_for_runtime): Same.
3098 (find_decls_types_in_eh_region): Same.
3099 (find_decls_types_in_node): Same.
3100 (assign_assembler_name_if_needed): Same.
3101 * value-prof.c (stream_out_histogram_value): Same.
3102 * value-prof.h: Same.
3103 * var-tracking.c (use_narrower_mode): Same.
3104 (prepare_call_arguments): Same.
3105 (vt_expand_loc_callback): Same.
3106 (resolve_expansions_pending_recursion): Same.
3107 (vt_expand_loc): Same.
3108 * varasm.c (const_hash_1): Same.
3109 (compare_constant): Same.
3110 (tree_output_constant_def): Same.
3111 (simplify_subtraction): Same.
3112 (get_pool_constant): Same.
3113 (output_constant_pool_2): Same.
3114 (output_constant_pool_1): Same.
3115 (mark_constants_in_pattern): Same.
3116 (mark_constant_pool): Same.
3117 (get_section_anchor): Same.
3118 * vr-values.c (compare_range_with_value): Same.
3119 (vr_values::extract_range_from_phi_node): Same.
3120 * vr-values.h: Same.
3121 * web.c (unionfind_union): Same.
3122 * wide-int.h: Same.
3123
3124 2019-07-09 Martin Sebor <msebor@redhat.com>
3125
3126 PR c++/61339
3127 * align.h: Change class-key from class to struct and vice versa
3128 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
3129 * alloc-pool.h: Same.
3130 * asan.c (shadow_mem_size): Same.
3131 * auto-profile.c: Same.
3132 * basic-block.h: Same.
3133 * bitmap.h: Same.
3134 * cfgexpand.c (set_rtl): Same.
3135 (expand_one_stack_var_at): Same.
3136 * cfghooks.h: Same.
3137 * cfgloop.h: Same.
3138 * cgraph.h: Same.
3139 * config/i386/i386.h: Same.
3140 * df-problems.c (df_print_bb_index): Same.
3141 * df-scan.c: Same.
3142 * df.h (df_single_use): Same.
3143 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
3144 (layout::annotation_line_showed_range_p): Same.
3145 (get_printed_columns): Same.
3146 (correction::ensure_terminated): Same.
3147 (line_corrections::~line_corrections): Same.
3148 * dojump.h: Same.
3149 * dse.c: Same.
3150 * dump-context.h: Same.
3151 * dumpfile.h: Same.
3152 * dwarf2out.c: Same.
3153 * edit-context.c: Same.
3154 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
3155 * flags.h: Same.
3156 * function.c (assign_stack_local): Same.
3157 * function.h: Same.
3158 * gcc.c: Same.
3159 * gcov.c (block_info::block_info): Same.
3160 * genattrtab.c: Same.
3161 * genextract.c: Same.
3162 * genmatch.c (comparison_code_p): Same.
3163 (id_base::id_base): Same.
3164 (decision_tree::print): Same.
3165 * genoutput.c: Same.
3166 * genpreds.c (write_one_predicate_function): Same.
3167 * genrecog.c (validate_pattern): Same.
3168 (find_operand_positions): Same.
3169 (optimize_subroutine_group): Same.
3170 (merge_pattern_transition::merge_pattern_transition): Same.
3171 (merge_pattern_info::merge_pattern_info): Same.
3172 (merge_state_result::merge_state_result): Same.
3173 (merge_into_state): Same.
3174 * gensupport.c: Same.
3175 * gensupport.h: Same.
3176 * ggc-common.c (init_ggc_heuristics): Same.
3177 * ggc-tests.c (test_union): Same.
3178 * gimple-loop-interchange.cc (dump_induction): Same.
3179 * gimple-loop-versioning.cc: Same.
3180 * gimple-match.h (gimple_match_cond::any_else): Same.
3181 * gimple-ssa-backprop.c: Same.
3182 * gimple-ssa-sprintf.c: Same.
3183 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
3184 Same.
3185 (store_immediate_info::store_immediate_info): Same.
3186 (merged_store_group::apply_stores): Same.
3187 (get_location_for_stmts): Same.
3188 * gimple-ssa-strength-reduction.c: Same.
3189 * gimple-ssa-warn-alloca.c: Same.
3190 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
3191 * godump.c (go_type_decl): Same.
3192 * hash-map-tests.c (test_map_of_strings_to_int): Same.
3193 * hash-map.h: Same.
3194 * hash-set-tests.c (test_set_of_strings): Same.
3195 * hsa-brig.c: Same.
3196 * hsa-common.h: Same.
3197 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
3198 * input.c (assert_loceq): Same.
3199 * input.h: Same.
3200 * ipa-cp.c: Same.
3201 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
3202 * ipa-fnsummary.h: Same.
3203 * ipa-inline.h: Same.
3204 * ipa-prop.h: Same.
3205 * ipa-split.c (visit_bb): Same.
3206 * ira-int.h (minmax_set_iter_next): Same.
3207 * loop-invariant.c: Same.
3208 * loop-iv.c: Same.
3209 * lra-eliminations.c: Same.
3210 * lra-int.h: Same.
3211 * lra-lives.c (mark_regno_dead): Same.
3212 * lra-remat.c: Same.
3213 * lra-spills.c: Same.
3214 * lto-streamer.h: Same.
3215 * mem-stats.h: Same.
3216 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
3217 * omp-low.c (omp_clause_aligned_alignment): Same.
3218 * optabs-query.h (get_vcond_eq_icode): Same.
3219 * optabs.h: Same.
3220 * opts.c (wrap_help): Same.
3221 * poly-int.h: Same.
3222 * predict.c (predict_paths_leading_to_edge): Same.
3223 * pretty-print.h: Same.
3224 * profile-count.h: Same.
3225 * read-md.h: Same.
3226 * read-rtl-function.c: Same.
3227 * ree.c: Same.
3228 * reginfo.c: Same.
3229 * regrename.c: Same.
3230 * regrename.h: Same.
3231 * reload.h: Same.
3232 * rtl-iter.h: Same.
3233 * rtl.h (costs_add_n_insns): Same.
3234 * sanopt.c: Same.
3235 * sched-int.h: Same.
3236 * sel-sched-ir.h: Same.
3237 * selftest.h: Same.
3238 * sese.h (vec_find): Same.
3239 * stmt.c: Same.
3240 * target-globals.h: Same.
3241 * tree-affine.c (aff_combination_find_elt): Same.
3242 * tree-affine.h: Same.
3243 * tree-data-ref.h: Same.
3244 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3245 * tree-predcom.c: Same.
3246 * tree-scalar-evolution.c (find_var_scev_info): Same.
3247 * tree-ssa-alias.h: Same.
3248 * tree-ssa-ccp.c: Same.
3249 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3250 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3251 (rewrite_mem_refs): Same.
3252 (execute_sm_if_changed): Same.
3253 (hoist_memory_references): Same.
3254 * tree-ssa-loop-ivopts.c (operator<=): Same.
3255 * tree-ssa-loop.h: Same.
3256 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3257 * tree-ssa-structalias.c: Same.
3258 * tree-switch-conversion.h (cluster::cluster): Same.
3259 (simple_cluster::simple_cluster): Same.
3260 * tree-vect-patterns.c (type_conversion_p): Same.
3261 * tree-vectorizer.c (dump_stmt_cost): Same.
3262 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3263 * tree.c (protected_set_expr_location): Same.
3264 * tree.h (desired_pro_or_demotion_p): Same.
3265 (fndecl_built_in_p): Same.
3266 * unique-ptr-tests.cc: Same.
3267 * var-tracking.c (delete_variable_part): Same.
3268 * varasm.c (assemble_real): Same.
3269 (tree_output_constant_def): Same.
3270 * vec.c: Same.
3271 * wide-int-bitmask.h: Same.
3272 * wide-int.h (decompose): Same.
3273
3274 2019-07-09 Richard Biener <rguenther@suse.de>
3275
3276 PR tree-optimization/91114
3277 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3278 find a vector type isn't fatal.
3279
3280 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3281
3282 * config/aarch64/aarch64-simd.md
3283 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3284 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3285 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3286 (*aarch64_crypto_aese_fused,
3287 *aarch64_crypto_aesd_fused): Update to new definition.
3288 * config/aarch64/aarch64.c
3289 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3290
3291 2019-07-09 Richard Biener <rguenther@suse.de>
3292
3293 * gimple-match.h (gimple_match_op::resimplify): New.
3294 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3295 gimple_resimplify4, gimple_resimplify5): Remove.
3296 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3297 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3298 Make static.
3299 (gimple_match_op::resimplify): New.
3300 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3301 according to availability. Use gimple_match_op::resimplify.
3302
3303 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
3304
3305 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3306
3307 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3308
3309 * config/arm/crypto.md:
3310 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3311 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3312 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3313 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3314 * config/arm/arm.c
3315 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3316 * config/arm/aarch-common-protos.h
3317 (aarch_crypto_can_dual_issue): Remove.
3318 * config/arm/aarch-common.c
3319 (aarch_crypto_can_dual_issue): Likewise.
3320 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3321 * config/arm/cortex-a53.md: Likewise.
3322 * config/arm/cortex-a57.md: Likewise.
3323 * config/arm/iterators.md:
3324 (CRYPTO_BINARY): Redefine.
3325 (CRYPTO_UNARY): Removed.
3326 (CRYPTO_AES, CRYPTO_AESMC): New.
3327
3328 2019-07-09 Richard Biener <rguenther@suse.de>
3329
3330 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3331 (vn_reference_lookup_3): If the main ref has no access path recorded
3332 but orig_ref has use it to do access-path based disambiguation.
3333 (vn_reference_lookup_pieces): Adjust.
3334 (vn_reference_lookup): Pass down original ref if we valueized.
3335
3336 2019-07-09 Martin Liska <mliska@suse.cz>
3337
3338 * doc/extend.texi: Document influence on loop
3339 optimizers.
3340
3341 2019-07-09 Martin Liska <mliska@suse.cz>
3342
3343 * lto-compress.c (lto_normalized_zstd_level): Do not use
3344 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3345 of libzstd. One can use 0 as a default compression level.
3346
3347 2019-07-09 Martin Liska <mliska@suse.cz>
3348
3349 * doc/invoke.texi: Add link from -fprofile-dir option.
3350 Use better wording for 'gcno filename'.
3351
3352 2019-07-08 Martin Sebor <msebor@redhat.com>
3353
3354 PR middle-end/71924
3355 PR middle-end/90549
3356 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
3357 comment.
3358 (args_loc_t): New type.
3359 (args_loc_t, locmap_t): same.
3360 (diag_returned_locals): New function.
3361 (is_addr_local): Same.
3362 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3363 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3364 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3365
3366 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3367
3368 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3369 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
3370 and casts in offset when different, both through gimple stmts
3371 and through trees. Rewritten using loops to minimize code duplication
3372 for each operand.
3373
3374 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
3375
3376 * emit-rtl.c (set_insn_locations): New function moved from...
3377 * function.c (set_insn_locations): ...here.
3378 * ira-emit.c (emit_moves): Propagate location of the first instruction
3379 to the inserted move instructions.
3380 * reg-stack.c (compensate_edge): Set the location if the sequence is
3381 inserted on the edge.
3382 * rtl.h (set_insn_locations): Declare.
3383
3384 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3385
3386 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3387 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3388 .machine string.
3389
3390 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3391
3392 PR rtl-optimization/88233
3393 * common.opt (fsplit-wide-types-early): New option.
3394 * common/config/rs6000/rs6000-common.c
3395 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3396 OPT_LEVELS_ALL.
3397 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3398 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3399 flag_split_wide_types_early.
3400 (pass_data_lower_subreg3): New.
3401 (pass_lower_subreg3): New.
3402 (make_pass_lower_subreg3): New.
3403 * passes.def (pass_lower_subreg2): Move after the loop passes.
3404 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3405 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3406 the pass pipeline; its previous place is taken by ...
3407 (make_pass_lower_subreg3): ... this.
3408
3409 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3410
3411 * config/s390/s390.c (s390_shift_truncation_mask): Define.
3412 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3413
3414 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3415
3416 * config/s390/constraints.md: Add new jsc constraint.
3417 * config/s390/predicates.md: New predicates.
3418 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
3419 * config/s390/s390.c (s390_valid_shift_count): New function.
3420 (print_shift_count_operand): Use s390_valid_shift_count.
3421 (print_operand): Likewise.
3422 * config/s390/s390.md: Use new predicate.
3423 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
3424 * config/s390/vector.md: Use new predicate.
3425
3426 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
3427
3428 Avoid clash with system header declaration.
3429 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
3430 Remove unused declaration.
3431
3432 2019-07-08 Andrew Waterman <andrew@sifive.com>
3433 Jim Wilson <jimw@sifive.com>
3434
3435 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
3436 bitsize instead of BITS_PER_WORD.
3437 gcc/testsuite/
3438
3439 2019-07-08 Martin Liska <mliska@suse.cz>
3440
3441 * collect2.c (defined): Revert to before r254460.
3442 (scan_prog_file): Revert to before r254460.
3443
3444 2019-07-08 Richard Biener <rguenther@suse.de>
3445
3446 PR tree-optimization/83518
3447 * tree-ssa-sccvn.c: Include splay-tree.h.
3448 (struct pd_range, struct pd_data): New.
3449 (struct vn_walk_cb_data): Add data to track partial definitions.
3450 (vn_walk_cb_data::~vn_walk_cb_data): New.
3451 (vn_walk_cb_data::push_partial_def): New.
3452 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
3453 (vn_reference_lookup_2): When partial defs are registered give up.
3454 (vn_reference_lookup_3): Track partial defs for memset and
3455 constructor zeroing and for defs from constants.
3456
3457 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3458
3459 * doc/install.texi (bootstrap-Og): Document.
3460
3461 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3462
3463 * config/riscv/pic.md (*local_pic_load_s<mode>)
3464 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
3465 referenced by <mode>, giving...
3466 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
3467 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
3468 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
3469 use <X:MODE> for the mode attribute.
3470
3471 2019-07-07 Jeff Law <law@redhat.com>
3472
3473 PR tree-optimization/91090
3474 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
3475 in handling of ranges to simplify switch statements.
3476
3477 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3478
3479 * config/darwin.c (darwin_override_options): Make a final check on PIC
3480 options.
3481
3482 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3483
3484 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
3485 on for kernel code.
3486
3487 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3488
3489 PR target/91068
3490 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
3491 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
3492 instead of matching them to "l" output operands.
3493
3494 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3495
3496 * config/mips/mips.c (mips_split_move): Zero-initialize addr
3497 and check whether addr.reg is nonnull before using it.
3498
3499 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3500
3501 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
3502 ctx->for_simd_scan_phase simd copy the outer var to the privatized
3503 variable(s). For conditional lastprivate look through outer
3504 GIMPLE_OMP_SCAN context.
3505 (lower_omp_1): For conditional lastprivate look through outer
3506 GIMPLE_OMP_SCAN context.
3507
3508 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
3509 member to combined_into_simd_safelen1.
3510 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
3511 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
3512 clauses if ctx->combined_into_simd_safelen1 put statements after the
3513 predicate conditionalized block rather than into it.
3514
3515 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3516
3517 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
3518 operand 1.
3519 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
3520 Make the choice of <mode> explicit, giving...
3521 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
3522
3523 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3524
3525 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
3526 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
3527 of .md attributes.
3528 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
3529 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
3530 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
3531 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
3532 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
3533 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
3534 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
3535 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
3536 (*avx512f_scatterdi<mode>): Likewise.
3537 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
3538
3539 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3540
3541 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
3542 specify the mode iterator referenced by <mode>, giving...
3543 (*push1_h8300hs_<QHI:mode>): ...this.
3544
3545 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3546
3547 * config/gcn/gcn-valu.md
3548 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
3549 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
3550 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
3551 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
3552 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
3553 but using the _exec comparison patterns.
3554 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
3555 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
3556 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
3557 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
3558 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
3559 but using the _exec comparison patterns.
3560
3561 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3562
3563 * config/arm/sync.md
3564 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
3565 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
3566 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
3567 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
3568 <SIDI:cas_cmp_str>.
3569
3570 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3571
3572 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
3573 (maybe_lookup_ctx): Add forward declaration.
3574 (omp_find_scan): Likewise. Walk into body of simd if composited
3575 with worksharing loop.
3576 (scan_omp_simd_scan): New function.
3577 (scan_omp_1_stmt): Call it.
3578 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
3579 ctx->for_simd_scan_phase.
3580 (lower_rec_input_clauses): Do much less work for inscan reductions
3581 in ctx->for_simd_scan_phase is_simd regions.
3582 (lower_omp_scan): Set is_simd also on simd constructs composited
3583 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
3584 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
3585 emit their body after in simd constructs composited with worksharing
3586 loop.
3587 (lower_omp_for_scan): Handle worksharing loop composited with simd.
3588
3589 * omp-low.c (omp_find_scan): Make static.
3590 (lower_omp_for_scan): Fix order of merge arguments in input phase of
3591 the second loop, var2 represents the first partial sum and so needs
3592 to go before rprivb[ivar].
3593
3594 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
3595
3596 * config/rs6000/rs6000-logue.c: Remove unused code.
3597
3598 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3599
3600 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
3601
3602 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
3603
3604 PR target/90712
3605 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
3606 check with a frame laid out check.
3607
3608 2019-07-05 Richard Biener <rguenther@suse.de>
3609
3610 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
3611 when comparing against a store with possibly the same value.
3612
3613 2019-07-05 Richard Biener <rguenther@suse.de>
3614
3615 PR tree-optimization/91091
3616 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
3617 (walk_non_aliased_vuses): Likewise.
3618 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
3619 (get_continuation_for_phi): New tbaa_p parameter and pass
3620 it down.
3621 (walk_non_aliased_vuses): Likewise.
3622 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
3623 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3624 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
3625 Likewise.
3626 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
3627 (adjust_offsets_for_equal_base_address): New function.
3628 (vn_reference_lookup_3): Use it to catch more base equivalences.
3629 Handle and pass down tbaa_p flag.
3630 (vn_reference_lookup_pieces): Adjust.
3631 (vn_reference_lookup): Remove alias-set altering, instead pass
3632 down false as tbaa_p.
3633
3634 2019-07-05 Richard Biener <rguenther@suse.de>
3635
3636 PR tree-optimization/91091
3637 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
3638 accesses can happen with -fno-strict-aliasing.
3639
3640 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
3641
3642 * tree-ssa-alias.c (alias_stats): Add
3643 nonoverlapping_component_refs_since_match_p_must_overlap.
3644 (dump_alias_stats): Print it.
3645 (nonoverlapping_component_refs_since_match_p): Add early exit.
3646 (nonoverlapping_component_refs_p): Do not account early exit.
3647
3648 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3649
3650 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
3651 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
3652 (emit_eh_dispatch): Delete.
3653 (lower_catch): Emit the eh_dispatch manually and set the location of
3654 the first catch statement onto it.
3655 (lower_eh_filter): Emit the eh_dispatch manually and set location.
3656 (lower_eh_dispatch): Propagate location.
3657 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
3658 (eliminate_build): Likewise.
3659
3660 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3661
3662 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
3663 phi nodes if possible.
3664 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
3665 location info on the newly created statement.
3666 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
3667 newly created increment if needed.
3668
3669 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3670
3671 PR middle-end/78884
3672 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
3673 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
3674 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
3675 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
3676 ctx->add_safelen1 is set.
3677
3678 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
3679 GOMP_loop_start at the start of second worksharing loop in a scan.
3680 For nowait, don't emit GOMP_loop_end_nowait at the end of first
3681 worksharing loop in a scan even if there are conditional lastprivates,
3682 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
3683
3684 2019-07-04 Jan Hubicka <jh@suse.cz>
3685
3686 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
3687 Fix check for match in the ref walk.
3688
3689 2019-07-04 Martin Liska <mliska@suse.cz>
3690
3691 * tree-ssa-loop-niter.c
3692 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
3693 (estimate_numbers_of_iterations):
3694 Support __builtin_expect_with_probability for analysis
3695 of # of loop iterations.
3696
3697 2019-07-04 Alexandre Oliva <oliva@adacore.com>
3698
3699 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
3700 * except.c: Likewise.
3701 * expr.c (expand_expr_real_1): Reject it.
3702 * gimplify.c (gimplify_expr): Gimplify it, within
3703 TRY_FINALLY_EXPR.
3704 * tree-dump.c (dequeue_and_dump): Dump it.
3705 * tree-pretty-print.c (dump_generic_node): Likewise.
3706 * tree.c (block_may_fallthru): Handle it.
3707 * tree.def (EH_ELSE_EXPR): Introduce it.
3708 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
3709 with GIMPLE_EH_ELSE as try/finally/else.
3710
3711 2019-07-04 Richard Biener <rguenther@suse.de>
3712
3713 PR ipa/91062
3714 * tree-pass.h (execute_all_ipa_transforms): Add a flag
3715 parameter whether to disable GC collection.
3716 * passes.c (execute_one_ipa_transform_pass): Likewise, and
3717 honor it.
3718 (execute_all_ipa_transforms): Likewise and pass it down.
3719 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
3720 collection from applying IPA transforms.
3721 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
3722 from applying IPA transforms.
3723
3724 2019-07-04 Richard Biener <rguenther@suse.de>
3725
3726 PR tree-optimization/90911
3727 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
3728 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
3729 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3730 scalar_loop_scaling.
3731 (vect_transform_loop): Scale scalar loop profile if needed.
3732 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
3733 the loop copy from if-conversion adjust edge probabilities
3734 and scale the vectorized loop body profile, queue the scalar
3735 profile for updating after peeling.
3736
3737 2019-07-04 Jan Hubicka <jh@suse.cz>
3738
3739 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
3740 parameters; return early for must-alias.
3741 (indirect_ref_may_alias_decl_p): Likewise; when establishing
3742 outer types match, try nonoverlapping_component_refs
3743 if must-alias is not obvious.
3744 (indirect_refs_may_alias_p): Likewise.
3745 (refs_may_alias_p_2): Likewise.
3746
3747 2019-07-04 Richard Biener <rguenther@suse.de>
3748
3749 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
3750 argument.
3751 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
3752 globals into...
3753 (struct vn_walk_cb_data): New callback data struct.
3754 (vn_reference_lookup_2): Adjust.
3755 (vn_reference_lookup_3): Likewise.
3756 (vn_reference_lookup_pieces): Likewise.
3757 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
3758 (visit_reference_op_load): Adjust.
3759
3760 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3761
3762 PR tree-optimization/91063
3763 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
3764 stmt from stmts sequence before calling vect_init_vector_1.
3765 Formatting fix.
3766
3767 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3768
3769 PR target/88833
3770 * fwprop.c (reg_single_def_p): New function.
3771 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
3772 (forward_propagate_into): New parameter reg_prop_only
3773 with default value false.
3774 Propagate def's src into loop only if SET_SRC and SET_DEST
3775 of def_set have single definitions.
3776 Likewise if reg_prop_only is set to true.
3777 (fwprop): New param fwprop_addr_p.
3778 Integrate fwprop_addr into fwprop.
3779 (fwprop_addr): Remove.
3780 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
3781 to true.
3782 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
3783 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
3784 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
3785
3786 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3787
3788 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
3789 in worksharing loop scans.
3790
3791 PR tree-optimization/91074
3792 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
3793 temporary.
3794
3795 PR rtl-optimization/90756
3796 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
3797 for VECTOR_TYPE_P.
3798
3799 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
3800
3801 * config/aarch64/aarch64.md: Remove redundant constraints from
3802 define_expand but keep some patterns untouched if they are
3803 specially selected by TARGET_SECONDARY_RELOAD hook.
3804 * config/aarch64/aarch64-sve.md: Likewise.
3805 * config/aarch64/atomics.md: Remove redundant constraints from
3806 define_expand.
3807 * config/aarch64/aarch64-simd.md: Likewise.
3808
3809 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3810
3811 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
3812 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
3813 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
3814 clauses.
3815 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
3816 DARWIN_NOPIE_SPEC.
3817
3818 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3819
3820 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
3821 (STARTFILE_SPEC): Split crt3 into a separate spec.
3822 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
3823 (DARWIN_CRT2_SPEC): New.
3824 (DARWIN_CRT3_SPEC): New.
3825 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
3826 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
3827 (DARWIN_CRT3_SPEC): New.
3828
3829 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
3830
3831 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
3832 Change the RTL attribute "length" from "4" to "*" to allow the
3833 length attribute to be adjusted automatically for prefixed load,
3834 store, and add immediate instructions.
3835 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
3836 Likewise.
3837 (extendsi<mode>2, EXTSI iterator): Likewise.
3838 (movsi_internal1): Likewise.
3839 (movsi_from_sf): Likewise.
3840 (movdi_from_sf_zero_ext): Likewise.
3841 (mov<mode>_internal): Likewise.
3842 (movcc_internal1, QHI iterator): Likewise.
3843 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
3844 (movsf_from_si): Likewise.
3845 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
3846 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
3847 (mov<mode>, FMOVE128 iterator): Likewise.
3848 (movdi_internal64): Likewise.
3849 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
3850 Likewise.
3851 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
3852 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
3853 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
3854 (vsx_splat_v4sf): Likewise.
3855
3856 2019-07-03 Mark Wielaard <mark@klomp.org>
3857
3858 PR debug/90981
3859 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
3860 DW_AT_addr_base if there is actually a .debug_addr section with
3861 addresses.
3862 (output_addr_table): Add DWARF5 table header generation here after
3863 checking there are actually any addresses from...
3864 (dwarf2out_finish): ...here.
3865 * testsuite/g++.dg/pr90981.C: New test.
3866
3867 2019-07-03 Richard Biener <rguenther@suse.de>
3868
3869 PR middle-end/91069
3870 * match.pd (vec_perm -> bit_insert): Fix element read from
3871 first vector.
3872
3873 2019-07-03 Martin Liska <mliska@suse.cz>
3874
3875 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
3876 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
3877 condition.
3878 * generic-match-head.c: Include dbgcnt.h.
3879 * gimple-match-head.c: Likewise.
3880
3881 2019-07-03 Martin Liska <mliska@suse.cz>
3882
3883 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
3884 (GCOV_COUNTER_V_TOPN): New.
3885 (GCOV_COUNTER_V_INDIR): Use _topn.
3886 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
3887 (GCOV_TOPN_VALUES): New.
3888 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
3889 (GCOV_TOPN_VALUES_COUNTERS): New.
3890 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
3891 * tree-profile.c:
3892 (gimple_init_gcov_profiler): Rename variables from one_value
3893 to topn_values.
3894 (gimple_gen_one_value_profiler): Remove.
3895 (gimple_gen_topn_values_profiler): New function.
3896 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
3897 names instead of SINGLE_VALUE.
3898 (stream_out_histogram_value): Likewise.
3899 (stream_in_histogram_value): Likewise.
3900 (get_most_common_single_value): Likewise.
3901 (gimple_divmod_fixed_value_transform): Likewise.
3902 (gimple_stringops_transform): Likewise.
3903 (gimple_divmod_values_to_profile): Likewise.
3904 (gimple_stringops_values_to_profile): Likewise.
3905 (gimple_find_values_to_profile): Likewise.
3906 * value-prof.h (enum hist_type): Rename to TOPN.
3907 (gimple_gen_one_value_profiler): Remove.
3908 (gimple_gen_topn_values_profiler): New.
3909
3910 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3911
3912 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
3913 if it has the DW_AT_data_member_location attribute.
3914
3915 2019-07-03 Richard Biener <rguenther@suse.de>
3916
3917 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
3918 dumping.
3919
3920 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
3921
3922 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
3923 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
3924 (tlsdesc_small_sve_<mode>): Likewise.
3925
3926 2019-07-03 Martin Liska <mliska@suse.cz>
3927
3928 * Makefile.in: Define ZSTD_LIB.
3929 * common.opt: Adjust compression level
3930 to support also zstd levels.
3931 * config.in: Regenerate.
3932 * configure: Likewise.
3933 * configure.ac: Add --with-zstd and --with-zstd-include options
3934 and detect ZSTD.
3935 * doc/install.texi: Mention zstd dependency.
3936 * gcc.c: Print supported LTO compression algorithms.
3937 * lto-compress.c (lto_normalized_zstd_level): Likewise.
3938 (lto_compression_zstd): Likewise.
3939 (lto_uncompression_zstd): Likewise.
3940 (lto_end_compression): Dispatch in between zlib and zstd.
3941 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
3942 (lto_uncompression_zlib): Make it static.
3943 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
3944 * lto-section-in.c (lto_get_section_data): Pass info
3945 about used compression.
3946 * lto-streamer-out.c: By default use zstd when possible.
3947 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
3948 (TV_IPA_LTO_COMPRESS): Likewise for compression.
3949
3950 2019-07-03 Martin Liska <mliska@suse.cz>
3951
3952 * lto-section-in.c (lto_get_section_data): Add "lto" section.
3953 * lto-section-out.c (lto_destroy_simple_output_block): Never
3954 compress LTO_section_lto section.
3955 * lto-streamer-out.c (produce_asm): Do not set major_version
3956 and minor_version.
3957 (lto_output_toplevel_asms): Likewise.
3958 (produce_lto_section): New function.
3959 (lto_output): Call produce_lto_section.
3960 (lto_write_mode_table): Do not set major_version and
3961 minor_version.
3962 (produce_asm_for_decls): Likewise.
3963 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
3964 type.
3965 (struct lto_header): Remove.
3966 (struct lto_section): New struct.
3967 (struct lto_simple_header): Do not inherit from lto_header.
3968 (struct lto_file_decl_data): Add lto_section_header field.
3969
3970 2019-07-03 Martin Liska <mliska@suse.cz>
3971
3972 * lra-eliminations.c (eliminate_regs_in_insn): Remove
3973 dead assignemts.
3974 * reg-stack.c (check_asm_stack_operands): Likewise.
3975 * tree-ssa-structalias.c (create_function_info_for): Likewise.
3976 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3977 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
3978 force_expand_binop.
3979
3980 2019-07-03 Martin Liska <mliska@suse.cz>
3981
3982 PR tree-optimization/90892
3983 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
3984 in string constants.
3985
3986 2019-07-03 Martin Liska <mliska@suse.cz>
3987
3988 PR middle-end/90899
3989 * multiple_target.c (create_dispatcher_calls): Add to comdat
3990 group only if set for ifunc.
3991
3992 2019-07-03 Martin Liska <mliska@suse.cz>
3993
3994 PR target/88056
3995 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3996 Define local_object_name in outer scope in order to handle
3997 use-after-scope issue.
3998
3999 2019-07-03 Martin Liska <mliska@suse.cz>
4000
4001 * common.opt: Add fprofile-note.
4002 * coverage.c (coverage_init): Append the option
4003 to bbg_file_name.
4004 * doc/invoke.texi: Document -fprofile-note.
4005
4006 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR tree-optimization/91033
4009 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
4010 vect_analyze_data_refs): Add bool * arguments.
4011 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
4012 if failure is due to scatter/gather, set *fatal to false if non-NULL.
4013 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4014 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
4015 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
4016 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
4017 vect_analyze_data_refs caller.
4018
4019 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
4020 clause.
4021 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
4022 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
4023 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
4024 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4025 OMP_CLAUSE__SCANTEMP_ entry.
4026 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
4027 * tree-pretty-print.c (dump_omp_clause): Likewise.
4028 * tree-nested.c (convert_nonlocal_omp_clauses,
4029 convert_local_omp_clauses): Likewise.
4030 * omp-general.h (struct omp_for_data): Add have_scantemp and
4031 have_nonctrl_scantemp members.
4032 * omp-general.c (omp_extract_for_data): Initialize them.
4033 * omp-low.c (struct omp_context): Add scan_exclusive member.
4034 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
4035 result again with GF_OMP_FOR_KIND_MASK. Initialize also
4036 ctx->scan_exclusive.
4037 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
4038 of !ctx->scan_inclusive.
4039 (lower_rec_input_clauses): Simplify gimplification of dtors using
4040 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
4041 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
4042 loops. Don't add barrier for reduction_omp_orig_ref if
4043 ctx->scan_??xclusive.
4044 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
4045 (lower_omp_scan): Use ctx->scan_exclusive instead
4046 of !ctx->scan_inclusive. Handle worksharing loops with inscan
4047 reductions. Use new_vard != new_var instead of repeated
4048 omp_is_reference calls.
4049 (omp_find_scan, lower_omp_for_scan): New functions.
4050 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
4051 inscan reductions.
4052 * omp-expand.c (expand_omp_scantemp_alloc): New function.
4053 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
4054 and fd->have_scantemp.
4055
4056 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
4057 on worksharing loop propagate it as shared clause to containing
4058 combined parallel.
4059
4060 * omp-expand.c (expand_omp_for_static_nochunk,
4061 expand_omp_for_static_chunk): For nowait worksharing loop with
4062 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
4063 at the end.
4064
4065 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
4066
4067 PR testsuite/91065
4068 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
4069 to reference fake_var.
4070
4071 2019-07-02 qing zhao <qing.zhao@oracle.com>
4072
4073 PR preprocessor/90581
4074 * doc/cppopts.texi: Add document for -fmax-include-depth.
4075 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
4076
4077 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
4078
4079 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
4080 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
4081 (mmx_packssdw): Ditto.
4082 (mmx_punpckhbw): Ditto.
4083 (mmx_punpcklbw): Ditto.
4084 (mmx_punpckhwd): Ditto.
4085 (mmx_punpcklwd): Ditto.
4086 (mmx_punpckhdq): Ditto.
4087 (mmx_punpckldq): Ditto.
4088 (*vec_dupv4hi): Ditto.
4089 (*vec_dupv2si): Ditto.
4090 (mmx_pmovmskb): Ditto.
4091 * config/i386/sse.md (sse_cvtpi2ps): Use
4092 TARGET_SSE2 && SSE_REG_P in split condition.
4093 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
4094 TARGET_SSSE3 && SSE_REGNO_P in split condition.
4095 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
4096 (ssse3_pshufbv8qi3): Ditto.
4097 (ssse3_palignrdi): Ditto.
4098
4099 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
4100
4101 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
4102 with inlined save and restore.
4103
4104 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
4105
4106 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
4107 to be inserted on single successor edge of the entry block. Then call
4108 commit_edge_insertions instead of inserting the instructions manually.
4109 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
4110 RTL expansion and rebuild jump labels chain.
4111
4112 2019-07-02 Richard Biener <rguenther@suse.de>
4113
4114 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
4115 TI_CHREC_KNOWN.
4116 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4117 Define here.
4118 * tree.c (build_common_tree_nodes): Initialize them.
4119 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4120 Make declarations comments.
4121 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
4122 chrec_known): Remove definitions.
4123 (initialize_scalar_evolutions_analyzer): Remove.
4124 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
4125 * tree-streamer.c (preload_common_nodes): Do not preload
4126 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
4127
4128 2019-07-02 Jan Hubicka <jh@suse.cz>
4129
4130 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
4131 sanity check.
4132
4133 2019-07-02 Jan Hubicka <jh@suse.cz>
4134
4135 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
4136 to ..
4137 (nonoverlapping_component_refs_since_match_p): ... this one;
4138 handle also non-decl bases; return -1 if search gave up.
4139 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
4140 nonoverlapping_component_refs_of_decl_p_no_alias to
4141 nonoverlapping_component_refs_since_match_p_may_alias,
4142 nonoverlapping_component_refs_since_match_p_no_alias.
4143 (dump_alias_stats): Update dumping.
4144 (aliasing_matching_component_refs_p): Break out from ...;
4145 dispatch to nonoverlapping_component_refs_for_decl_p
4146 and nonoverlapping_component_refs_since_match_p.
4147 (aliasing_component_refs_p): ... here; call
4148 nonoverlapping_component_refs_p in scenarios where we can not
4149 precisely determine base match.
4150 (decl_refs_may_alias_p): Use
4151 nonoverlapping_component_refs_since_match_p.
4152 (indirect_ref_may_alias_decl_p): Do not call
4153 nonoverlapping_component_refs_p.
4154 (indirect_refs_may_alias_p): Likewise.
4155
4156 2019-07-02 Jan Hubicka <jh@suse.cz>
4157
4158 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
4159 to clobber of return value.
4160
4161 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4162
4163 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
4164 for is_neon_type instructions that have not already been categorized.
4165
4166 2019-07-02 Richard Biener <rguenther@suse.de>
4167
4168 PR tree-optimization/58483
4169 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
4170 for MEM_REF base hashing.
4171 (equal_mem_array_ref_p): Likewise for base comparison.
4172
4173 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4174
4175 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
4176 parameterized name.
4177 (signbit<mode>2): Use that name. Simplify.
4178
4179 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
4180
4181 PR middle-end/66726
4182 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
4183 Tune heuristic from PR71016 to allow MIN / MAX.
4184 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
4185
4186 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4187
4188 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
4189 parameterized name.
4190 (abs<mode>2): Use that name. Simplify.
4191
4192 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4193
4194 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
4195 parameterized name.
4196 (neg<mode>2): Use that name. Simplify.
4197
4198 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4199
4200 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
4201 name.
4202 (abs<mode>2): Use that name. Simplify.
4203
4204 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4205
4206 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
4207 name.
4208 (neg<mode>2): Use that name. Simplify.
4209
4210 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
4211
4212 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
4213 ("enabled" attribute): Handle sse_noavx isa attribute.
4214 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
4215 Use TARGET_SSE && SSE_REGNO_P in split condition.
4216 (*vec_dupv2sf): Ditto.
4217
4218 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4219
4220 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4221 name.
4222 (floatsi<mode>2): Use that name. Simplify.
4223
4224 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4225
4226 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4227 parameterized name.
4228 (extenddf<mode>2_vsx): Make this a parameterized name.
4229 (extenddf<mode>2): Use those names. Simplify.
4230
4231 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4232
4233 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4234 name.
4235 (eh_return): Use that name. Simplify.
4236
4237 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4238
4239 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4240 (doloop_end): Use that name. Simplify.
4241
4242 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4243
4244 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4245 parameterized name.
4246 (indirect_jump): Use that name. Simplify.
4247
4248 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4249
4250 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4251 parameterized name.
4252 (abs<mode>2): Use that name. Simplify.
4253
4254 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4255
4256 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4257 parameterized name.
4258 (fix_trunc<mode>si2): Use that name. Simplify.
4259
4260 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4261
4262 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4263 (allocate_stack): Use that name. Simplify.
4264
4265 2019-07-01 Martin Sebor <msebor@redhat.com>
4266
4267 PR middle-end/90923
4268 * hash-map.h (hash_map::put): On insertion invoke element ctor.
4269 (hash_map::get_or_insert): Same. Reformat comment.
4270 * hash-set.h (hash_set::add): On insertion invoke element ctor.
4271 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4272 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4273 * hash-table.h (hash_table::operator=): Prevent copy assignment.
4274 (hash_table::hash_table (const hash_table&)): Use copy ctor
4275 instead of assignment to copy elements.
4276
4277 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
4278 John David Anglin <danglin@gcc.gnu.org>
4279
4280 PR target/90963
4281 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4282 using saved frame pointer.
4283
4284 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
4285
4286 PR middle-end/64242
4287 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4288 Add frame clobber and schedule blockage.
4289
4290 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
4291
4292 * doc/invoke.texi (Link Options): Further editorial changes to
4293 -flinker-output docs.
4294
4295 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4296
4297 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4298 Load both operands of a PLUS into registers separately.
4299
4300 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
4301
4302 * config/s390/vector.md: Fix shift count operand printing.
4303
4304 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4305
4306 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4307
4308 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4309
4310 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4311 Use recog_data to test for an output operand.
4312
4313 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4314
4315 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4316 exclude any others that are disparaged or that are bound to need
4317 a reload or spill.
4318 (ira_get_dup_out_num): Expand comment.
4319
4320 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4321
4322 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4323 constraint string for each operand/alternative combo. Only handle
4324 '%' at the start of constraint strings, and look for it outside
4325 the main loop.
4326
4327 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4328
4329 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4330 alternative_mask instead of HARD_REG_SET to represent a
4331 bitmask of alternatives.
4332 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4333 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4334
4335 2019-07-01 Martin Liska <mliska@suse.cz>
4336
4337 * edit-context.c (test_applying_fixits_unreadable_file): Do not
4338 use () for a constructor call.
4339 (test_applying_fixits_line_out_of_range): Likewise.
4340 * ggc-page.c (alloc_page): Use (void *) for %p printf format
4341 argument.
4342 (free_page): Likewise.
4343
4344 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
4345
4346 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4347 parameter names to match usage (no functional change).
4348 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4349
4350 2019-07-01 Richard Biener <rguenther@suse.de>
4351
4352 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4353 pass parameter.
4354 (pass_fre::execute): Honor it.
4355 * passes.def: Adjust pass_fre invocations to allow iterating,
4356 add non-iterating pass_fre before late threading/dom.
4357
4358 2019-07-01 Richard Biener <rguenther@suse.de>
4359
4360 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4361 TARGET_MEM_REF handling to also handle address-taken ones.
4362
4363 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
4364
4365 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4366 hardware attributes): Document avx512vp2intersect.
4367
4368 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4369
4370 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4371 (abs<mode>2): New expander.
4372 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4373 Use CODE_FOR_ssse3_absv8qi2.
4374 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4375 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4376
4377 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4378
4379 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4380 to sse, sse_noavx and avx. Update all uses.
4381
4382 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4383
4384 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4385 (*mmx_<plusminus_insn><mode>3): Ditto.
4386 (*mmx_mulv4hi3"): Ditto.
4387 (*mmx_smulv4hi3_highpart): Ditto.
4388 (*mmx_umulv4hi3_highpart): Ditto.
4389 (*mmx_pmaddwd): Ditto.
4390 (*sse2_umulv1siv1di3): Ditto.
4391 (*mmx_<code>v4hi3): Ditto.
4392 (*mmx_<code>v8qi3): Ditto.
4393 (mmx_ashr<mode>3): Ditto.
4394 ("mmx_<shift_insn><mode>3): Ditto.
4395 (*mmx_eq<mode>3): Ditto.
4396 (mmx_gt<mode>3): Ditto.
4397 (mmx_andnot<mode>3): Ditto.
4398 (*mmx_<code><mode>3): Ditto.
4399 (*mmx_pinsrw): Ditto.
4400 (*mmx_pextrw): Ditto.
4401 (mmx_pshufw_1): Ditto.
4402 (*mmx_uavgv8qi3): Ditto.
4403 (*mmx_uavgv4hi3): Ditto.
4404 ("mmx_psadbw): Ditto.
4405 * config/i386/sse.md (sse_cvtps2pi): Ditto.
4406 (sse_cvttps2pi): Ditto.
4407 (ssse3_pmaddubsw): Ditto.
4408 (*ssse3_pmulhrswv4hi3): Ditto.
4409 (ssse3_psign<mode>3): Ditto.
4410
4411 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
4412
4413 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
4414 adjustment for bit-fields to all aggregate types.
4415
4416 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
4417
4418 * config/rs6000/predicates.md (pcrel_address): Use
4419 SYMBOL_REF_LOCAL_P to determine if a label is local.
4420 (pcrel_external_address): New predicate.
4421 (non_prefixed_mem_operand): Delete, predicate not used.
4422 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
4423 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
4424 addressing.
4425 (SYMBOL_REF_PCREL_P): Likewise.
4426
4427 PR target/91009
4428 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
4429 alternative.
4430 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
4431 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
4432 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
4433
4434 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4435
4436 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
4437 override on extra_headers.
4438
4439 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4440
4441 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
4442 * config/darwin-driver.c (darwin_default_min_version): Remove newline
4443 from warning.
4444 (darwin_driver_init): Likewise.
4445
4446 2019-06-28 Jan Beulich <jbeulich@suse.com>
4447
4448 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4449 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
4450 Eliminate redundant alternative.
4451
4452 2019-06-28 Jan Beulich <jbeulich@suse.com>
4453
4454 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4455 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
4456 Use vector_operand.
4457
4458 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
4459
4460 * config/arc/arc.c (arc_rtx_costs): All short instructions are
4461 having a lower cost regardless of the speed option.
4462
4463 2019-06-28 Jan Beulich <jbeulich@suse.com>
4464
4465 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
4466 vector_operand plus, on both alternatives, "Bm" constraint.
4467
4468 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
4469
4470 * config/arm/arm.md: Remove redundant constraints from
4471 define_expand but leave reload_inm and reload_outm patterns
4472 untouched since they need special constraints to work.
4473 * config/arm/arm-fixed.md: Remove redundant constraints from
4474 define_expand.
4475 * config/arm/iwmmxt.md: Likewise.
4476 * config/arm/neon.md: Likewise.
4477 * config/arm/sync.md: Likewise.
4478 * config/arm/thumb1.md: Likewise.
4479 * config/arm/vec-common.md: Likewise.
4480
4481 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
4482
4483 * doc/install.texi: Document --disable-tm-clone-registry.
4484
4485 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4486
4487 PR c++/91024
4488 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
4489 statements.
4490
4491 PR tree-optimization/91010
4492 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
4493 return true. Otherwise, don't call operand_equal_p if offset1 or
4494 offset2 is NULL and just return false.
4495
4496 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4497
4498 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
4499 user-specified float mode choice for kernel mode code.
4500
4501 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4502
4503 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
4504 spec.
4505
4506 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4507
4508 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
4509 use longcall for 64b code.
4510
4511 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
4512
4513 * builtins.c (get_memory_rtx): Fix comment.
4514 * optabs.def (movmem_optab): Change to cpymem_optab.
4515 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
4516 (emit_block_move_hints): Change movmem to cpymem.
4517 * defaults.h: Change movmem to cpymem.
4518 * targhooks.c (get_move_ratio): Change movmem to cpymem.
4519 (default_use_by_pieces_infrastructure_p): Ditto.
4520 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
4521 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
4522 to cpymem.
4523 * config/aarch64/aarch64.h: Change movmem to cpymem.
4524 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
4525 * config/alpha/alpha.h: Change movmem to cpymem in comment.
4526 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
4527 movmem to cpymem.
4528 * config/arc/arc-protos.h: Change movmem to cpymem.
4529 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
4530 * config/arc/arc.h: Change movmem to cpymem in comment.
4531 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
4532 * config/arm/arm-protos.h: Change movmem to cpymem in names.
4533 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
4534 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
4535 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
4536 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
4537 * config/avr/avr-protos.h: Change movmem to cpymem.
4538 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
4539 avr_out_movmem): Change movmem to cpymem.
4540 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
4541 Change movmem to cpymem.
4542 * config/bfin/bfin-protos.h: Change movmem to cpymem.
4543 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
4544 Change movmem to cpymem.
4545 * config/bfin/bfin.h: Change movmem to cpymem in comment.
4546 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
4547 * config/c6x/c6x-protos.h: Change movmem to cpymem.
4548 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
4549 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
4550 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
4551 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
4552 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
4553 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
4554 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
4555 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
4556 expand_small_cpymem_or_setmem,
4557 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
4558 expand_set_or_cpymem_constant_prologue,
4559 ix86_expand_set_or_cpymem): Change movmem to cpymem.
4560 * config/i386/i386-protos.h: Change movmem to cpymem.
4561 * config/i386/i386.h: Change movmem to cpymem in comment.
4562 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
4563 (setmem<mode>): Change expansion function name.
4564 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
4565 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
4566 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
4567 * config/m32c/m32c-protos.h: Change movmem to cpymem.
4568 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
4569 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
4570 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
4571 to cpymem.
4572 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
4573 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
4574 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
4575 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
4576 Change movmem to cpymem.
4577 * config/mips/mips.h: Change movmem to cpymem.
4578 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
4579 * config/nds32/nds32-memory-manipulation.c
4580 (nds32_expand_movmemsi_loop_unknown_size,
4581 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
4582 nds32_expand_movmemsi_unroll,
4583 nds32_expand_movmemsi): Change movmem to cpymem.
4584 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
4585 * config/nds32/nds32-protos.h: Change movmem to cpymem.
4586 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
4587 (pa_adjust_insn_length): Change call to compute_movmem_length.
4588 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
4589 movmemdi, movmemdi_prereload,
4590 movmemdi_postreload): Change movmem to cpymem.
4591 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
4592 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
4593 * config/riscv/riscv.c: Change movmem to cpymem in comment.
4594 * config/riscv/riscv.h: Change movmem to cpymem.
4595 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
4596 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
4597 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
4598 movmem to cpymem.
4599 * config/s390/s390-protos.h: Change movmem to cpymem.
4600 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
4601 s390_expand_insv): Change movmem to cpymem.
4602 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
4603 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
4604 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
4605 * config/sparc/sparc.h: Change movmem to cpymem in comment.
4606 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
4607 for nonexistent function.
4608 * config/vax/vax.h: Change movmem to cpymem in comment.
4609 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
4610 * config/visium/visium.h: Change movmem to cpymem in comment.
4611 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
4612 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
4613 * doc/md.texi: Change movmem to cpymem and update description to match.
4614 * doc/rtl.texi: Change movmem to cpymem.
4615 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
4616 * doc/tm.texi: Regenerate.
4617
4618 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
4619
4620 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
4621 -fvariable-expansion-in-unroller by default.
4622 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
4623 default for Power.
4624
4625 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
4626
4627 Revert
4628 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4629 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4630
4631 * config.gcc(rs6000-*-*): Define target_gtfiles.
4632
4633 2019-06-27 Jan Hubicka <jh@suse.cz>
4634
4635 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
4636 (add_type_duplicate): When odr hash is not allocated, to nothing.
4637 (odr_based_tbaa_p): New function.
4638 (set_type_canonical_for_odr_type): New function.
4639 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
4640 set_type_canonical_for_odr_type): New.
4641 * tree.c (gimple_canonical_types_compatible_p): ODR types with
4642 ODR based TBAA are not equivalent to non-ODR types.
4643
4644 2019-06-27 Martin Liska <mliska@suse.cz>
4645
4646 PR tree-optimization/90974
4647 PR rtl-optimization/90975
4648 PR rtl-optimization/90976
4649 PR target/91016
4650 PR tree-optimization/91017
4651 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
4652 unused tmp.
4653 * lra.c (lra_set_insn_recog_data): Remove a leftover from
4654 initial commit of IRA.
4655 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
4656 of op0 and op1.
4657 * tree-vect-loop.c (vect_create_epilog_for_reduction):
4658 Remove unused mode1.
4659 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
4660 to new_stmt_info.
4661
4662 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4663
4664 PR target/90991
4665 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
4666 instead of register_operand for operands[1], add m to its constraints
4667 if operands[2] uses "C" constraint. Ensure in condition that if
4668 operands[2] is not 0, then operands[1] is not a MEM. For last two
4669 alternatives, use unaligned loads instead of aligned if operands[1] is
4670 misaligned_operand.
4671
4672 2019-06-27 Martin Liska <mliska@suse.cz>
4673
4674 * asan.c (asan_emit_allocas_unpoison): Remove obviously
4675 dead assignments.
4676 * bt-load.c (move_btr_def): Likewise.
4677 * builtins.c (expand_builtin_apply_args_1): Likewise.
4678 (expand_builtin_apply): Likewise.
4679 * cfgexpand.c (expand_asm_stmt): Likewise.
4680 (construct_init_block): Likewise.
4681 * cfghooks.c (verify_flow_info): Likewise.
4682 * cfgloopmanip.c (remove_path): Likewise.
4683 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
4684 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
4685 * combine.c (simplify_if_then_else): Likewise.
4686 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
4687 (choose_basereg): Likewise.
4688 (ix86_expand_prologue): Likewise.
4689 (ix86_preferred_output_reload_class): Likewise.
4690 * cselib.c (cselib_record_sets): Likewise.
4691 * df-scan.c (df_scan_alloc): Likewise.
4692 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
4693 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
4694 * emit-rtl.c (try_split): Likewise.
4695 * graphite-scop-detection.c (assign_parameter_index_in_region):
4696 Likewise.
4697 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4698 * ira-color.c (setup_profitable_hard_regs): Likewise.
4699 * ira.c (rtx_moveable_p): Likewise.
4700 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4701 * read-rtl.c (read_subst_mapping): Likewise.
4702 * regrename.c (scan_rtx): Likewise.
4703 * reorg.c (fill_slots_from_thread): Likewise.
4704 * tree-inline.c (tree_function_versioning): Likewise.
4705 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
4706 * tree-ssa-sink.c (statement_sink_location): Likewise.
4707 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4708 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
4709 (vect_create_epilog_for_reduction): Likewise.
4710 * tree.c (build_nonstandard_integer_type): Likewise.
4711
4712 2019-06-27 Richard Biener <rguenther@suse.de>
4713
4714 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
4715
4716 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
4717
4718 PR tree-optimization/89772
4719 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
4720 out-of-bound accesses checking.
4721
4722 2019-06-27 Martin Liska <mliska@suse.cz>
4723
4724 PR tree-optimization/91014
4725 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
4726 when LHS is NULL_TREE.
4727
4728 2019-06-27 Martin Liska <mliska@suse.cz>
4729
4730 * symbol-summary.h (traverse): Pass
4731 argument a to the call of callback.
4732 (gt_ggc_mx): Mark arguments as unused.
4733 (gt_pch_nx): Likewise.
4734
4735 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
4736
4737 PR target/62147
4738 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
4739 finiteness.
4740
4741 2019-06-26 Jeff Law <law@redhat.com>
4742
4743 PR tree-optimization/90883
4744 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
4745 (delete_dead_or_redundant_assignment): Likewise.
4746
4747 PR tree-optimization/90883
4748 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
4749 * tree-ssa-dse.c: Update various comments to distinguish between
4750 dead and redundant stores.
4751 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
4752 (dse_optimize_redundant_stores): New function.
4753 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
4754 Distinguish between dead and redundant calls in dump output. All
4755 callers updated.
4756 (delete_dead_or_redundant_assignment): Similarly for assignments.
4757 (dse_optimize_stmt): Handle _CHK variants. For statements which
4758 store 0 into multiple memory locations, try to prove a subsequent
4759 store is redundant.
4760
4761 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
4762
4763 PR target/89021
4764 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
4765 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
4766
4767 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4768
4769 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
4770 (branch_islands): New extern.
4771 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
4772 * config/rs6000/rs6000.c: .. here.
4773
4774 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4775
4776 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
4777 (powerpc*-*-*) ... to here.
4778
4779 2019-06-26 Jeff Law <law@redhat.com>
4780
4781 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
4782 memcpy, memmove and memset builtins.
4783 (maybe_trim_memstar_call): Likewise.
4784
4785 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4786
4787 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
4788
4789 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4790
4791 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4792
4793 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4794
4795 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
4796 declaration.
4797 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
4798 "static".
4799 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
4800 declaration.
4801
4802 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4803
4804 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
4805
4806 2019-06-26 Richard Biener <rguenther@suse.de>
4807
4808 PR ipa/90982
4809 * tree-inline.c (remap_ssa_name): Copy SSA range info.
4810
4811 2019-06-26 Richard Biener <rguenther@suse.de>
4812
4813 * lto-streamer.h (lto_bitmap_alloc): Remove.
4814 (lto_bitmap_free): Likewise.
4815 * lto-streamer.c (lto_bitmap_alloc): Remove.
4816 (lto_bitmap_free): Likewise.
4817 (lto_obstack): Likewise.
4818 (lto_obstack_initialized): Likewise.
4819 * lto-streamer-out.c (lto_output): Use own obstack for local
4820 bitmap, free it consistently.
4821
4822 2019-06-26 Jakub Jelinek <jakub@redhat.com>
4823
4824 PR target/90991
4825 * config/i386/sse.md
4826 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
4827 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
4828 insns if operands[2] is misaligned_operand.
4829
4830 2019-06-26 Li Jia He <helijia@linux.ibm.com>
4831
4832 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
4833 TARGET_POWERPC64.
4834 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
4835 to GPR.
4836
4837 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4838
4839 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
4840
4841 2019-06-26 Martin Liska <mliska@suse.cz>
4842
4843 PR tree-optimization/90973
4844 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
4845 epilogue_cost_vec instead of prologue_cost_vec for
4846 a epilogue cost.
4847
4848 2019-06-26 Martin Liska <mliska@suse.cz>
4849
4850 * bb-reorder.c (connect_better_edge_p): Add missing else
4851 statement in the middle of if-else statements.
4852
4853 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
4854 H.J. Lu <hongjiu.lu@intel.com>
4855 Olga Makhotina <olga.makhotina@intel.com>
4856
4857 * common/config/i386/i386-common.c
4858 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
4859 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
4860 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
4861 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
4862 (ix86_handle_option): Handle -mavx512vp2intersect.
4863 * config/i386/avx512vp2intersectintrin.h: New.
4864 * config/i386/avx512vp2intersectvlintrin.h: New.
4865 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
4866 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4867 AVX512VP2INTERSECT.
4868 * config/i386/i386-builtin-types.def: Add new types.
4869 * config/i386/i386-builtin.def: Add new builtins.
4870 * config/i386/i386-builtins.c: (enum processor_features): Add
4871 F_AVX512VP2INTERSECT.
4872 (static const _isa_names_table isa_names_table): Ditto.
4873 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4874 __AVX512VP2INTERSECT__.
4875 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
4876 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
4877 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
4878 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
4879 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
4880 * config/i386/i386-options.c (ix86_target_string): Add
4881 -mavx512vp2intersect.
4882 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
4883 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
4884 P2HImode and P2QImode.
4885 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
4886 number for P2QImode and P2HImode.
4887 (ix86_regmode_natural_size): New function.
4888 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
4889 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
4890 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
4891 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
4892 * config/i386/i386.opt: Add -mavx512vp2intersect.
4893 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
4894 avx512vp2intersectvlintrin.h.
4895 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
4896 (define_mode_iterator VI48_AVX512VP2VL): New.
4897 (avx512vp2intersect_2intersect<mode>,
4898 avx512vp2intersect_2intersectv16si): New define_insn patterns.
4899 * config.gcc: Add avx512vp2intersectvlintrin.h and
4900 avx512vp2intersectintrin.h to extra_headers.
4901 * doc/invoke.texi: Document -mavx512vp2intersect.
4902
4903 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
4904
4905 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
4906
4907 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
4908
4909 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
4910 savres_routine_syms, savres_routine_name, morestack_ref,
4911 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4912 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4913 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4914 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4915 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4916 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4917 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4918 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4919 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4920 get_stack_clash_protection_probe_interval,
4921 get_stack_clash_protection_guard_size,
4922 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4923 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4924 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4925 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4926 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4927 gen_frame_mem_offset, rs6000_savres_routine_name,
4928 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4929 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4930 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4931 rs6000_global_entry_point_prologue_needed_p,
4932 rs6000_get_separate_components, rs6000_components_for_bb,
4933 rs6000_disqualify_components, rs6000_emit_prologue_components,
4934 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4935 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4936 rs6000_output_savres_externs, rs6000_output_function_prologue,
4937 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4938 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4939 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4940 rs6000_output_function_epilogue, gen_add3_const,
4941 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4942 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4943 to rs6000-logue.c.
4944 (machine_function): Moved to rs6000.h.
4945 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
4946 rs6000-internal.h.
4947 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
4948 savres_routine_syms, savres_routine_name, morestack_ref,
4949 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4950 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4951 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4952 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4953 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4954 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4955 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4956 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4957 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4958 get_stack_clash_protection_probe_interval,
4959 get_stack_clash_protection_guard_size,
4960 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4961 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4962 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4963 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4964 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4965 gen_frame_mem_offset, rs6000_savres_routine_name,
4966 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4967 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4968 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4969 rs6000_global_entry_point_prologue_needed_p,
4970 rs6000_get_separate_components, rs6000_components_for_bb,
4971 rs6000_disqualify_components, rs6000_emit_prologue_components,
4972 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4973 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4974 rs6000_output_savres_externs, rs6000_output_function_prologue,
4975 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4976 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4977 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4978 rs6000_output_function_epilogue, gen_add3_const,
4979 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4980 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4981 to here from rs6000.c.
4982 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
4983 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
4984 quad_address_offset_p) Moved to here from rs6000.c.
4985 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
4986 * config/config.gcc: Add new source file rs6000-logue.c to garbage
4987 collector.
4988
4989 2019-06-25 Martin Liska <mliska@suse.cz>
4990
4991 * hash-table.c (hashtab_chk_error): Move here from ...
4992 * hash-table.h (hashtab_chk_error): ... here.
4993
4994 2019-06-25 Martin Liska <mliska@suse.cz>
4995
4996 PR tree-optimization/90978
4997 * df-scan.c (df_update_entry_block_defs): Remove dead else
4998 branch.
4999 (df_update_exit_block_uses): Likewise.
5000
5001 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5002 Andrew Stubbs <ams@codesourcery.com>
5003
5004 * config.gcc (thread_file): Set to gcn for AMD GCN.
5005 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
5006 (TARGET_EMUTLS_VAR_INIT): New hook.
5007
5008 2019-06-25 Martin Jambor <mjambor@suse.cz>
5009
5010 PR ipa/90939
5011 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
5012
5013 2019-06-25 Richard Biener <rguenther@suse.de>
5014
5015 PR tree-optimization/90930
5016 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
5017 into parallel form in the last pass instance.
5018
5019 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
5020
5021 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
5022 (arc_legitimize_pic_address): Simplify and cleanup the function.
5023 (SYMBOLIC_CONST): Remove.
5024 (prepare_pic_move): Likewise.
5025 (prepare_move_operands): Handle complex mov cases here.
5026 (arc_legitimize_address_0): Remove call to
5027 arc_legitimize_pic_address.
5028 (arc_legitimize_address): Remove call to
5029 arc_legitimize_tls_address.
5030 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
5031 (movhi_insn): Likewise.
5032
5033 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5034
5035 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
5036 alternate "__intN__" name for "__intN" types.
5037 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
5038 * gcc/cp/lex.c (init_reswords): Likewise.
5039 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
5040 PTRDIFF_TYPE.
5041 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
5042 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
5043 C incompatibility if alternate "__intN__" form is used.
5044 * gcc/cp/decl.c (grokdeclarator): Likewise.
5045 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
5046 decl_specs->int_n_alt if "__intN__" form is used.
5047 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
5048 format of "__intN" types for UINTMAX_TYPE.
5049 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
5050 format of "__intN" types for SIZE_TYPE.
5051 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
5052 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
5053 format of "__intN" types for SIZETYPE.
5054 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
5055 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
5056 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
5057 warnings.
5058
5059 2019-06-25 Jan Hubicka <jh@suse.cz>
5060
5061 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
5062 base2_alias_set is non-zero before doing TBAA based disambiguation.
5063
5064 2019-06-25 Martin Liska <mliska@suse.cz>
5065
5066 PR tree-optimization/90973
5067 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
5068 of prologue and epilogue.
5069
5070 2019-06-24 Jan Hubicka <jh@suse.cz>
5071
5072 * ipa-utils.h (type_with_linkage_p): Verify that type is
5073 CXX_ODR_P.
5074 (odr_type_p): Remove extra return.
5075 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
5076 hash STRING_FLAG only for arrays and integers.
5077 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
5078 Update analogously.
5079 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5080 Likewise.
5081 * print-tree.c (print_node): Print cxx-odr-p
5082 and string-flag.
5083 * tree.c (need_assembler_name_p): Also check that type
5084 is CXX_ODR_TYPE_P
5085 (verify_type_variant): Update verification of SRING_FLAG;
5086 also check CXX_ODR_P.
5087 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
5088 (TYPE_STRING_FLAG): Use it.
5089 (TYPE_CXX_ODR_P): New macro.
5090 * dwarf2out.c (gen_array_type_die): First check that type
5091 is an array and then test string flag.
5092
5093 2019-06-24 Richard Biener <rguenther@suse.de>
5094
5095 PR tree-optimization/90972
5096 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
5097 in common code, dealing with STRING_CST properly.
5098
5099 2019-06-24 Richard Biener <rguenther@suse.de>
5100
5101 PR tree-optimization/90930
5102 PR tree-optimization/90316
5103 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
5104 decrement of limit.
5105
5106 2019-06-24 Martin Sebor <msebor@redhat.com>
5107
5108 * tree-pretty-print.h: Remove unnecessary punctuation characters
5109 from a diagnostic.
5110 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
5111
5112 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
5113
5114 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
5115 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
5116 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
5117
5118 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5119
5120 * config/rs6000/darwin.h: Handle GCC target pragma.
5121
5122 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5123
5124 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
5125
5126 2019-06-22 Jeff Law <law@redhat.com>
5127
5128 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5129
5130 2019-06-22 Jan Hubicka <jh@suse.cz>
5131
5132 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
5133 give up on bitfields; continue searching for different refs
5134 appearing later.
5135
5136 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5137
5138 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5139 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
5140 containing the offset as possible simd lane access. Look through
5141 widening conversion. Move the
5142 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
5143
5144 2019-06-21 Richard Biener <rguenther@suse.de>
5145
5146 PR tree-optimization/90930
5147 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
5148 flag on new stmts to avoid re-processing them.
5149
5150 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
5151
5152 PR c++/90875 - added -Wswitch-outside-range option
5153 * doc/invoke.texi (Wswitch-outside-range): Document.
5154
5155 2019-06-21 Jeff Law <law@redhat.com>
5156
5157 PR tree-optimization/90949
5158 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
5159 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
5160
5161 2019-06-21 Richard Biener <rguenther@suse.de>
5162
5163 PR debug/90914
5164 * dwarf2out.c (prune_unused_types_walk): Always consider
5165 function-local extern declarations as used.
5166
5167 2019-06-21 Richard Biener <rguenther@suse.de>
5168
5169 PR tree-optimization/90913
5170 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
5171 the scalar variant of if-conversion versioning.
5172
5173 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5174
5175 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
5176 create another "omp scan inscan exclusive" array if
5177 !ctx->scan_inclusive.
5178 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
5179 (lower_omp_scan): Likewise.
5180 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
5181 2-bit bitfield for simd_lane_access_p member.
5182 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
5183 aux == (void *)-4 as simd lane access.
5184 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
5185 comment with permutations to show the canonical permutation order.
5186 (vectorizable_scan_store): Handle exclusive scan.
5187 (vectorizable_store): Call vectorizable_scan_store even for
5188 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
5189
5190 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5191 "omp simd array" arrays with one byte elements.
5192
5193 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
5194
5195 * config/alpha/alpha.md (@unaligned_store<mode>):
5196 Rename from unaligned_store<mode>.
5197 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
5198 * config/alpha/sync.md (@load_locked_<mode>): Rename
5199 from load_locked_<mode>.
5200 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
5201 (@atomic_compare_and_swap<mode>_1): Rename
5202 from atomic_compare_and_swap<mode>_1.
5203 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
5204 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
5205 Use gen_reload_in_aligned and gen_unaligned_store.
5206 (emit_load_locked): Remove.
5207 (emit_store_conditional): Ditto.
5208 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
5209 (alpha_split_compare_and_swap): Ditto.
5210 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
5211 (alpha_split_compare_and_swap_12): Use gen_load_locked
5212 and gen_store_conditional.
5213 (alpha_split_atomic_exchange): Ditto.
5214 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
5215 (alpha_split_atomic_exchange_12): Use gen_load_locked
5216 and gen_store_conditional.
5217
5218 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
5219
5220 * config/aarch64/aarch64-errata.h: New file.
5221 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5222 (CA53_ERR_843419_SPEC): Delete.
5223 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5224 * config/aarch64/aarch64-linux.h: Likewise.
5225 * config/aarch64/aarch64-netbsd.h: Likewise.
5226 * config/aarch64/aarch64-freebsd.h: Likewise.
5227
5228 2019-06-20 Marek Polacek <polacek@redhat.com>
5229
5230 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5231
5232 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
5233
5234 * config/rs6000/rs6000.md (isa attribute): Add support for
5235 for a future processor.
5236
5237 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
5238
5239 PR target/54855
5240 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5241 standard scalar operation pattern for V2DF.
5242 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5243 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5244 (*ieee_<ieee_maxmin><mode>3): Likewise.
5245 (vec_setv2df_0): Likewise.
5246
5247 2019-06-20 Jan Hubicka <jh@suse.cz>
5248
5249 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5250 parameter; it has no use in gimple memory model.
5251 (indirect_ref_may_alias_decl_p): Update.
5252
5253 2019-06-20 Martin Liska <mliska@suse.cz>
5254
5255 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5256 to 10.
5257
5258 2019-06-20 Jakub Jelinek <jakub@redhat.com>
5259
5260 * tree-vect-stmts.c (enum scan_store_kind): New type.
5261 (scan_store_can_perm_p): Change last argument from int * to
5262 vec<enum scan_store_kind> *, record precisely which permutations
5263 need whole vector left shift or that plus VEC_COND_EXPR.
5264 (vectorizable_scan_store): Adjust caller, use whole vector left shift
5265 and additional VEC_COND_EXPR only for those iterations that need it.
5266
5267 2019-06-20 Alexandre Oliva <oliva@adacore.com>
5268
5269 * config.gcc: Fix ARM --with-fpu checking and error message.
5270
5271 2019-06-19 Marek Polacek <polacek@redhat.com>
5272
5273 PR c++/60364 - noreturn after first decl not diagnosed.
5274 * attribs.c (get_attribute_namespace): No longer static.
5275 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
5276 attributes.
5277 (attr_noreturn_exclusions): Make it extern.
5278 * attribs.h (get_attribute_namespace): Declare.
5279 * tree-inline.c (function_attribute_inlinable_p): Use
5280 get_attribute_name.
5281
5282 2019-06-19 Martin Sebor <msebor@redhat.com>
5283
5284 PR tree-optimization/90626
5285 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5286
5287 PR tree-optimization/90626
5288 * tree-ssa-strlen.c (strxcmp_unequal): New function.
5289 (handle_builtin_string_cmp): Call it.
5290
5291 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5292
5293 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5294 and DARWIN_NOPIE_SPEC.
5295 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5296 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5297 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5298 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5299 (DARWIN_EXPORT_DYNAMIC): Delete.
5300 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5301 and pie options processing to darwin.h.
5302 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5303
5304 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5305
5306 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5307 in computing the number of options to be moved.
5308
5309 2019-06-19 Maya Rashish <coypu@sdf.org>
5310
5311 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5312 (CLEAR_INSN_CACHE) Use it.
5313
5314 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
5315
5316 * config/i386/i386.md (cmpstrnsi): Remove dead code.
5317
5318 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
5319
5320 PR middle-end/84521
5321 * builtins.c (expand_builtin_setjmp_setup): Save
5322 hard_frame_pointer_rtx.
5323 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5324 restore fp.
5325 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5326 non-local goto.
5327 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5328 elimination code.
5329 (remove_reg_equal_offset_note): Remove unused function.
5330 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5331 code.
5332 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5333 (arc_builtin_setjmp_frame_value): Remove function.
5334 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5335 (avr_builtin_setjmp_frame_value): Remove function.
5336 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5337 (ix86_builtin_setjmp_frame_value): Remove function.
5338 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5339 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5340 (sparc_builtin_setjmp_frame_value): Remove function.
5341 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5342 (vax_builtin_setjmp_frame_value): Remove function.
5343 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5344 pointer if has_nonlocal_label.
5345
5346 2019-06-19 Jakub Jelinek <jakub@redhat.com>
5347
5348 * doc/md.texi: Document vec_shl_<mode> pattern.
5349 * optabs.def (vec_shl_optab): New optab.
5350 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5351 argument, if == vec_shl_optab, check for left whole vector shift
5352 pattern rather than right shift.
5353 (expand_vec_perm_const): Add vec_shl_optab support.
5354 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5355 in the comment.
5356 * tree-vect-generic.c (lower_vec_perm): Support permutations which
5357 can be handled by vec_shl_optab.
5358 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5359 (check_scan_store): Use it.
5360 (vectorizable_scan_store): If target can't do normal permutations,
5361 try to use whole vector left shifts and if needed a VEC_COND_EXPR
5362 after it.
5363 * config/i386/sse.md (vec_shl_<mode>): New expander.
5364
5365 * omp-low.c (lower_rec_input_clauses): Handle references properly
5366 in inscan clauses.
5367 (lower_omp_scan): Likewise.
5368
5369 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5370
5371 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5372 mem_mode is BLKmode.
5373
5374 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
5375
5376 PR target/90922
5377 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5378 pointer adjustment for the case of no callee-saved registers and
5379 stack frame bigger than 128 bytes.
5380
5381 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5382
5383 PR middle-end/90862
5384 * omp-low.c (check_omp_nesting_restrictions): Handle
5385 GF_OMP_TARGET_KIND_OACC_DECLARE.
5386
5387 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
5388
5389 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5390 (@add<mode>3_carry): Rename from add<mode>3_carry.
5391 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5392 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5393 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5394 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5395 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5396 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5397 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5398 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5399 (cmpstrnsi): Use gen_cmp_1.
5400 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5401 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5402 (@umonitor_<mode>): Rename from umonitor_<mode>.
5403 * config/i386/i386-expand.c (ix86_expand_copysign):
5404 Use gen_copysign3_const and gen_copysign3_var.
5405 (ix86_expand_xorsign): Use gen_xorsign3_1.
5406 (ix86_expand_branch): Use gen_sub3_carry_ccc,
5407 gen_sub3_carry_ccgz and gen_cmp1.
5408 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5409 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5410 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5411 (ix86_split_lshr): Ditto.
5412 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
5413
5414 2019-06-18 Jason Merrill <jason@redhat.com>
5415
5416 * tree.c (build_constructor): Add MEM_STAT_DECL.
5417
5418 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5419
5420 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
5421 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
5422 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
5423 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
5424 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
5425 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
5426 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
5427 Use CC_NZC instead of CC.
5428 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
5429 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
5430 (aarch64_print_operand): Handle E_CC_NZCmode.
5431 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
5432 of gen_set_clobber_cc.
5433
5434 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5435
5436 * config/aarch64/aarch64-sve.md: Tabify file.
5437
5438 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5439
5440 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
5441 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
5442 * config/aarch64/aarch64-sve.md: Use it.
5443
5444 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5445
5446 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
5447 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
5448 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
5449 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
5450 (aarch64_expand_sve_vec_cmp_int): Use it.
5451 (aarch64_expand_sve_vec_cmp_float): Likewise.
5452 * config/aarch64/aarch64-sve.md: Likewise throughout.
5453
5454 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5455 Kugan Vivekanandarajah <kuganv@linaro.org>
5456
5457 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
5458 (*cond_<optab><mode>_z): Fold into...
5459 (*cond_<optab><mode>_any): ...here. Also handle cases in which
5460 operand 4 can be tied to operand 0 (either inherently or via RA).
5461
5462 2019-06-18 Richard Biener <rguenther@suse.de>
5463
5464 PR debug/90900
5465 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
5466 as if optimized away.
5467
5468 2019-06-18 Tom de Vries <tdevries@suse.de>
5469
5470 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
5471 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
5472 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
5473 Rename to ...
5474 (define_insn "@set_softstack_<mode>"): ... this.
5475 (define_insn "omp_simt_enter_<mode>"): Rename to ...
5476 (define_insn "@omp_simt_enter_<mode>"): ... this.
5477 (define_insn "omp_simt_exit_<mode>"): Rename to ...
5478 (define_insn "@omp_simt_exit_<mode>"): ... this.
5479
5480 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5481
5482 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
5483 vf parameter. Restore the previous iv step of nscalars_step,
5484 but give it iv_type rather than compare_type. Tweak code order
5485 to match the comments.
5486 (vect_set_loop_condition_masked): Update accordingly.
5487 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
5488 for iv_precision. Tweak comment formatting.
5489
5490 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5491
5492 * config/darwin.c: Strip trailing whitespace.
5493
5494 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5495
5496 * config/darwin.c (darwin_emit_unwind_label): New default to false.
5497 (darwin_override_options): Set darwin_emit_unwind_label as needed.
5498
5499 2019-06-18 Martin Jambor <mjambor@suse.cz>
5500
5501 PR ipa/90889
5502 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
5503 caller does not have flag_ipa_cp set.
5504
5505 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5506
5507 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
5508 from "*fold_left_plus_<mode>", updated operands order.
5509 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
5510 * internal-fn.c (mask_fold_left_direct): New define.
5511 (expand_mask_fold_left_optab_fn): Likewise.
5512 (direct_mask_fold_left_optab_supported_p): Likewise.
5513 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
5514 * optabs.def (mask_fold_left_plus_optab): New optab.
5515 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
5516 masked internal_fn for a reduction ifn.
5517 (vectorize_fold_left_reduction): Add support for masking reductions.
5518
5519 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
5520
5521 PR middle-end/80791
5522 * target.def (predict_doloop_p): New hook.
5523 * targhooks.h (default_predict_doloop_p): New declaration.
5524 * targhooks.c (default_predict_doloop_p): New function.
5525 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
5526 * doc/tm.texi: Regenerate.
5527 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
5528 (TARGET_PREDICT_DOLOOP_P): New macro.
5529 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
5530
5531 2019-06-17 Jakub Jelinek <jakub@redhat.com>
5532
5533 * omp-low.c (struct omp_context): Add scan_inclusive field.
5534 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
5535 if inclusive scan.
5536 (struct omplow_simd_context): Add lastlane member.
5537 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
5538 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
5539 1 or 2 argument.
5540 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
5541 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
5542 (lower_omp_scan): New function.
5543 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
5544 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
5545 check 3rd argument if present rather than 2nd.
5546 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
5547 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
5548 2-bit bitfield.
5549 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5550 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
5551 than 2nd.
5552 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
5553 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
5554 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
5555 init.
5556 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
5557 IFN_GOMP_SIMD_LANE argument.
5558 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
5559 encoded ->aux value.
5560 * tree-vect-stmts.c: Include attribs.h.
5561 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
5562 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
5563 functions.
5564 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
5565 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
5566
5567 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
5568
5569 PR target/62055
5570 * config/i386/i386.md (*nabstf2_1): New insn pattern.
5571 (*nabs<mode>2_1): Ditto.
5572 (nabs sse-reg splitter): New splitter.
5573 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
5574
5575 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5576
5577 PR bootstrap/90873.
5578 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5579 TMR index check.
5580
5581 2019-06-17 Tom de Vries <tdevries@suse.de>
5582
5583 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
5584 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
5585 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
5586 ...
5587 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
5588 match_operand 0.
5589 (define_insn "omp_simt_enter_insn"): Rename to ...
5590 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
5591 match_operand 0, 1 and 2, as well as the unspec_volatile result.
5592 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
5593 gen_omp_simt_enter_si.
5594 (define_expand "omp_simt_exit"): New.
5595 (define_insn "omp_simt_exit"): Rename to ...
5596 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
5597 match_operand 0.
5598
5599 2019-06-17 Matthew Green <mrg@eterna.com.au>
5600 Maya Rashish <coypu@sdf.org>
5601
5602 * config.gcc (aarch64*-*-netbsd*): New target.
5603 * config/aarch64/aarch64-netbsd.h: New file.
5604 * config/aarch64/t-aarch64-netbsd: Likewise.
5605
5606 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5607
5608 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
5609 the access path from base to first VIEW_CONVERT_EXPR or
5610 BIT_FIELD_REF.
5611
5612 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5613
5614 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
5615 access path on BIT_FIELD_REFs.
5616
5617 2019-06-17 Martin Liska <mliska@suse.cz>
5618
5619 PR ipa/90874
5620 * ipa-utils.h (odr_type_p): Remove dead code.
5621
5622 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5623
5624 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
5625 alternative Solaris 11.4 format.
5626 * configure: Regenerate.
5627
5628 2019-06-17 Tom de Vries <tdevries@suse.de>
5629
5630 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
5631 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
5632 match_operand 0.
5633 (define_insn "call_value_insn"): Rename to ...
5634 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
5635 match_operand 0.
5636 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
5637 DI.
5638
5639 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
5640
5641 PR middle-end/64242
5642 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
5643 frame clobbers and schedule block.
5644 (builtin_longjmp): Likewise.
5645
5646 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5647
5648 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
5649 describe how to perform MSPABI compliant 64-bit shift.
5650 * config/msp430/msp430.md (ashldi3): New define_expand.
5651 (ashrdi3): New define_expand.
5652 (lshrdi3): New define_expand.
5653
5654 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5655
5656 * doc/sourcebuild.texi: Document new effective target keyword
5657 longlong64.
5658
5659 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5660
5661 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
5662 indirect_refs_may_alias_p): Revert accidental commits.
5663
5664 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
5665 at the end of structures.
5666
5667 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5668
5669 * config/darwin.c (machopic_indirect_call_target): Use renamed
5670 darwin_picsymbol_stubs to decide on output.
5671 (darwin_override_options): Handle darwin_picsymbol_stubs.
5672 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
5673 (LD64_VERSION): Revise default.
5674 * config/darwin.opt: (mpic-symbol-stubs): New option.
5675 (darwin_picsymbol_stubs): New variable.
5676 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
5677 rename to TARGET_MACHO_PICSYM_STUBS.
5678 * config/i386/i386.c (output_pic_addr_const): Likewise.
5679 * config/i386/i386.h Likewise.
5680 * config/rs6000/darwin.h: Likewise.
5681 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
5682 darwin_picsymbol_stubs.
5683
5684 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5685
5686 * config/darwin.opt (prebind, noprebind, seglinkedit,
5687 noseglinkedit): Add RejectNegative.
5688
5689 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5690
5691 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
5692 in my previous patch.
5693
5694 2019-06-16 Tom de Vries <tdevries@suse.de>
5695
5696 PR tree-optimization/89376
5697 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
5698
5699 2019-06-15 Maya Rashish <coypu@sdf.org>
5700
5701 * doc/invoke.texi (Spec Files): Update location of the
5702 Fortran spec file.
5703
5704 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
5705
5706 * doc/extend.texi (Common Function Attributes): Clarify
5707 no_sanitize. Fix grammar.
5708
5709 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
5710
5711 * tree-ssa-alias.c (alias_stats): Add
5712 nonoverlapping_component_refs_p_may_alias,
5713 nonoverlapping_component_refs_p_no_alias,
5714 nonoverlapping_component_refs_of_decl_p_may_alias,
5715 nonoverlapping_component_refs_of_decl_p_no_alias.
5716 (dump_alias_stats): Dump them.
5717 (nonoverlapping_component_refs_of_decl_p): Add stats.
5718 (nonoverlapping_component_refs_p): Add stats; do not stop on first
5719 ARRAY_REF.
5720
5721 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
5722
5723 * config/i386/i386.md (and<mode>3): Generate zero-extends for
5724 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
5725 only.
5726 (*anddi3_doubleword): Split before reload. Merge with
5727 anddi->zext pre-reload splitter.
5728 (*andndi3_doubleword): Split before reload.
5729 (*<code>di3_doubleword): Ditto.
5730 (*one_cmpldi2_doubleword): Ditto.
5731
5732 2019-06-15 Jakub Jelinek <jakub@redhat.com>
5733
5734 PR middle-end/90779
5735 * gimplify.c: Include omp-offload.h and context.h.
5736 (gimplify_bind_expr): Add "omp declare target" attributes
5737 to static block scope variables inside of target region or target
5738 functions.
5739
5740 2019-06-15 Tom de Vries <tdevries@suse.de>
5741
5742 PR tree-optimization/90009
5743 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
5744 Return NULL if bb contains IFN_UNIQUE.
5745
5746 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
5747
5748 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
5749 (un): New define_mode_attr.
5750 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
5751 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
5752 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
5753 merge into ...
5754 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
5755
5756 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
5757
5758 * config/darwin.opt: Add RejectNegative where needed, reorder
5759 and add minimal functional descriptions.
5760
5761 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5762
5763 PR rtl-optimization/90765
5764 * calls.c (update_stack_alignment_for_call): New function.
5765 (expand_call): Call update_stack_alignment_for_call when
5766 outgoing parameter is passed in the stack.
5767 (emit_library_call_value_1): Likewise.
5768 * function.c (locate_and_pad_parm): Don't update
5769 stack_alignment_needed and preferred_stack_boundary.
5770
5771 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5772
5773 PR target/90877
5774 * config/i386/i386-features.c
5775 (dimode_scalar_chain::compute_convert_gain): Replace
5776 mmxsse_to_integer with sse_to_integer.
5777 * config/i386/i386.c (ix86_register_move_cost): Verify that
5778 moves between MMX and non-MMX units require secondary memory.
5779 Correct costs of moves between SSE and integer units.
5780 * config/i386/i386.h (processor_costs): Rename cost of moving
5781 SSE register to integer to sse_to_integer. Rename cost of
5782
5783 2019-06-14 Matt Thomas <matt@3am-software.com>
5784 Matthew Green <mrg@eterna.com.au>
5785 Nick Hudson <skrll@netbsd.org>
5786 Maya Rashish <coypu@sdf.org>
5787 Richard Earnshaw <rearnsha@arm.com>
5788
5789 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
5790 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
5791 * config/arm/netbsd-eabi.h: New file.
5792 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
5793 redefining.
5794 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
5795 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
5796 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
5797 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
5798
5799 2019-06-14 Richard Biener <rguenther@suse.de>
5800
5801 * tree-loop-distribution.c (classify_partition): Return
5802 whether a reduction appeared in all partitions and do not
5803 stop builtin detection because of this.
5804 (distribute_loop): Sort a non-builtin partition last if
5805 there's a reduction in all partitions and make sure the
5806 partition prevailing as last is not a builtin.
5807
5808 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
5809
5810 PR ipa/90401
5811 * ipa-prop.c (add_to_agg_contents_list): New function.
5812 (clobber_by_agg_contents_list_p): Likewise.
5813 (extract_mem_content): Likewise.
5814 (get_place_in_agg_contents_list): Delete.
5815 (determine_known_aggregate_parts): Renamed from
5816 determine_locally_known_aggregate_parts. New parameter
5817 aa_walk_budget_p.
5818
5819 2019-06-13 Martin Sebor <msebor@redhat.com>
5820
5821 PR tree-optimization/90662
5822 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
5823 to the same type.
5824
5825 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5826
5827 PR bootstrap/90873
5828 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
5829 dbase is not TARGET_MEM_REF.
5830
5831 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5832
5833 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
5834 Update all uses.
5835 (and<mode>3): Use gen_extend_insn instead of indirect functions.
5836 Do not generate DImode extends for 32bit targets.
5837 (and->zext post-reload splitter): Use gen_extend_insn
5838 instead of indirect functions.
5839 (anddi->zext pre-reload splitter): New.
5840 (*zext<mode>_doubleword_and): Remove.
5841 (*zext<mode>_doubleword): Ditto.
5842 (*zextsi_doubleword): Dittto.
5843
5844 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5845
5846 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
5847 Use gen_sub3_insn instead of indirect function.
5848 (ix86_expand_ashl_const): Use gen_add2_insn instead of
5849 indirect function.
5850 (ix86_adjust_counter): Ditto.
5851
5852 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
5853 Lijia He <helijia@linux.ibm.com>
5854
5855 PR tree-optimization/77820
5856 * tree-ssa-threadedge.c
5857 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
5858 function.
5859 (thread_across_edge): Add call to
5860 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
5861
5862 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
5863
5864 * config/darwin-driver.c (validate_macosx_version_min): New.
5865 (darwin_default_min_version): Cleanup and validate supplied version.
5866 (darwin_driver_init): Likewise and push cleaned version into opts.
5867
5868 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5869
5870 PR tree-optimization/90869
5871 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
5872 converts in MEM_REF referencing decl rather than view converts
5873 from decl type to MEM_REF type.
5874
5875 2019-06-13 Richard Biener <rguenther@suse.de>
5876
5877 PR tree-optimization/90856
5878 * tree-sra.c (build_ref_for_model): Only use
5879 build_reconstructed_reference when address-spaces are the same.
5880
5881 2019-06-13 Jakub Jelinek <jakub@redhat.com>
5882
5883 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
5884 wrap ei variable name in the declaration in ()s.
5885 (nvptx_single): Actually use mode_label variable. Formatting fix.
5886
5887 2019-06-13 Richard Biener <rguenther@suse.de>
5888
5889 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
5890 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
5891 also return the condition stmt.
5892 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
5893 loop we can version and version that, reusing the loop version
5894 created by if-conversion instead of versioning again.
5895
5896 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
5897
5898 * gimple-loop-versioning.cc (prune_loop_conditions): Use
5899 may_contain_p.
5900 * tree-vrp (value_range_base::may_contain_p): Call into
5901 value_inside_range.
5902 (value_inside_range): Make private inside value_range_base class.
5903 Take min/max from *this.
5904 (range_includes_p): Remove.
5905 * tree-vrp.h (value_range_base): Add value_inside_range.
5906 (range_includes_p): Remove.
5907 (range_includes_zero_p): Call may_contain_p.
5908 * vr-values.c (compare_range_with_value): Same.
5909
5910 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
5911
5912 * doc/extend.texi (ARC Function Attributes): Update info.
5913
5914 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
5915
5916 PR tree-optimization/89713
5917 * doc/invoke.texi (-ffinite-loops): Document new option.
5918 * common.opt (-ffinite-loops): New option.
5919 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
5920 IFN_GOACC_LOOP calls as necessary.
5921 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
5922 is finite.
5923 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
5924 IFN_GOACC_LOOP call is not used.
5925 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
5926
5927 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5928
5929 PR target/88838
5930 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
5931 compare_type is not with Pmode size, we will create an IV with
5932 Pmode size with truncated use (i.e. converted to the correct type).
5933 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
5934 (vect_iv_limit_for_full_masking): New. Factored out of
5935 vect_set_loop_condition_masked.
5936 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
5937 (vect_iv_limit_for_full_masking): Declare.
5938
5939 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5940
5941 PR target/88834
5942 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
5943 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
5944 (get_alias_ptr_type_for_ptr_address): Likewise.
5945 (add_iv_candidate_for_use): Add scaled index candidate if useful.
5946 * tree-ssa-address.c (preferred_mem_scale_factor): New.
5947 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
5948 allow_reg_index_p.
5949
5950 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5951
5952 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
5953
5954 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
5955
5956 * common/config/pru/pru-common.c: New file.
5957 * config.gcc: Add PRU target.
5958 * config/pru/alu-zext.md: New file.
5959 * config/pru/constraints.md: New file.
5960 * config/pru/predicates.md: New file.
5961 * config/pru/pru-opts.h: New file.
5962 * config/pru/pru-passes.c: New file.
5963 * config/pru/pru-pragma.c: New file.
5964 * config/pru/pru-protos.h: New file.
5965 * config/pru/pru.c: New file.
5966 * config/pru/pru.h: New file.
5967 * config/pru/pru.md: New file.
5968 * config/pru/pru.opt: New file.
5969 * config/pru/t-pru: New file.
5970 * doc/extend.texi: Document PRU pragmas.
5971 * doc/invoke.texi: Document PRU-specific options.
5972 * doc/md.texi: Document PRU asm constraints.
5973
5974 2019-06-12 Martin Sebor <msebor@redhat.com>
5975
5976 PR middle-end/90676
5977 * tree-pretty-print.c (dump_mem_ref): New function. Include
5978 MEM_REF type in output when different size than operand.
5979 (dump_generic_node): Move code to dump_mem_ref and call it.
5980
5981 2019-06-12 Martin Sebor <msebor@redhat.com>
5982
5983 PR tree-optimization/90662
5984 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
5985 to arrays.
5986
5987 2019-06-12 Tom de Vries <tdevries@suse.de>
5988
5989 PR tree-optimization/90009
5990 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
5991
5992 2019-06-12 Martin Liska <mliska@suse.cz>
5993
5994 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
5995 the created map.
5996 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
5997 * mem-stats.h (mem_alloc_description::mem_alloc_description):
5998 Do not sanitize created maps.
5999
6000 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
6001
6002 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
6003 value_range::singleton_p.
6004 * tree-vrp.c (value_range_constant_singleton): Remove.
6005 * tree-vrp.h (value_range_constant_singleton): Remove.
6006 * vr-values.c (vr_values::singleton): Use
6007 value_range::singleton_p.
6008
6009 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6010
6011 PR target/90811
6012 * cfgexpand.c (align_local_variable): Add really_expand argument,
6013 don't SET_DECL_ALIGN if it is false.
6014 (add_stack_var): Add really_expand argument, pass it through to
6015 align_local_variable.
6016 (expand_one_stack_var_1): Pass true as really_expand to
6017 align_local_variable.
6018 (expand_one_ssa_partition): Pass true as really_expand to
6019 add_stack_var.
6020 (expand_one_var): Pass really_expand through to add_stack_var.
6021
6022 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6023
6024 * config/arm/iterators.md (VABAL): New int iterator.
6025 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
6026 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
6027 UNSPEC_VABAL_U values.
6028
6029 2019-06-12 Martin Liska <mliska@suse.cz>
6030
6031 * value-prof.c (stream_out_histogram_value): Only first value
6032 can't be negative.
6033
6034 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6035
6036 PR c/90760
6037 * symtab.c (symtab_node::set_section): Allow being called on aliases
6038 as long as they aren't analyzed yet.
6039
6040 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
6041
6042 * config/mips/mips.c (mips_final_postscan_insn): Modify call
6043 to `mips_set_text_contents_type' to indicate whether a
6044 non-debug insn follows.
6045
6046 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
6047
6048 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
6049 enabling -mpcrel by default.
6050 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
6051 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
6052 that the test against -mcpu=future is done first. Then test if
6053 -mprefixed-addr is on for -mpcrel.
6054 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
6055
6056 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6057
6058 PR target/90811
6059 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
6060 instead of and.u%d.
6061
6062 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6063
6064 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
6065
6066 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
6067
6068 PR c++/90449 - add -Winaccessible-base option.
6069 * doc/invoke.texi (Winaccessible-base): Document.
6070
6071 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6072
6073 PR tree-optimization/62041
6074 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
6075
6076 2019-06-11 Jason Merrill <jason@redhat.com>
6077
6078 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
6079 * tree.c (get_tree_code_name): Likewise.
6080 * print-tree.c (print_node): Only briefly print a node with an
6081 invalid code.
6082
6083 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6084
6085 PR bootstrap/90819
6086 * trans-mem.c (tm_memopt_compute_available): Add assertion
6087 that blocks is not empty. Formatting fix.
6088
6089 2019-06-11 Martin Liska <mliska@suse.cz>
6090
6091 PR c++/87847
6092 * hash-table.h: Extend create_gcc, add one parameter
6093 that is passed into hash_table::hash_table.
6094
6095 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
6096
6097 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
6098 New prototype.
6099 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6100 Emit clobber also for non-sse operations.
6101 (ix86_split_fp_absneg_operator): New function.
6102 * config/i386/i386.md (SSEMODEF): New mode iterator.
6103 (ssevecmodef): New mode attribute.
6104 (<code>tf2): Use absneg code iterator.
6105 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
6106 Add three-operand AVX alternatives.
6107 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
6108 Use absneg code iterator and X87MODEF mode iterator.
6109 (absneg fp_reg non-sse splitter): Call absneg code iterator
6110 and X87MODEF mode iterator.
6111 (absneg general_reg non-sse splitter): Use absneg code iterator
6112 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
6113 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
6114 code iterator. Add three-operand AVX alternative.
6115 (absneg sse_reg splitter): Use absneg code iterator
6116 and SSEMODEF mode iterator. Handle AVX operands.
6117 (absneg fp_reg splitter): Use absneg code iterator
6118 and MODEF mode iterator.
6119 (absneg general_reg splitter): Merge splitters using MODEF mode
6120 iterator. Use absneg code iterator. Call
6121 ix86_split_fp_absneg_operator.
6122 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
6123 Do not enable for non-sse modes before reload.
6124 (CSGNMODE): Remove.
6125 (CSGNVMODE): Ditto.
6126 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
6127 ssevecmodef mode attribute instaed of CSGNVMODE.
6128 (copysign<mode>3_const): Ditto.
6129 (copysign<mode>3_var): Ditto.
6130 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
6131 Use absneg code iterator. Simplify code using std::swap.
6132 * config/i386/predicates.md (absneg_operator): Remove.
6133
6134 2019-06-10 Martin Sebor <msebor@redhat.com>
6135
6136 * gimple-fold.c (get_range_strlen): Update comment that didn't
6137 make it into r267503 or related commits.
6138
6139 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
6140
6141 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
6142 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
6143
6144 2019-06-10 Jakub Jelinek <jakub@redhat.com>
6145
6146 * tree.def (OMP_SCAN): New tree code.
6147 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
6148 OMP_CLAUSE_EXCLUSIVE.
6149 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
6150 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
6151 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
6152 OMP_CLAUSE_{IN,EX}CLUSIVE.
6153 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6154 * tree-nested.c (convert_nonlocal_reference_stmt,
6155 convert_local_reference_stmt, convert_gimple_call): Handle
6156 GIMPLE_OMP_SCAN.
6157 * tree-pretty-print.c (dump_omp_clause): Handle
6158 OMP_CLAUSE_{IN,EX}CLUSIVE.
6159 (dump_generic_node): Handle OMP_SCAN.
6160 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
6161 * gimple.h (gomp_scan): New type.
6162 (is_a_helper <gomp_scan *>::test,
6163 is_a_helper <const gomp_scan *>::test): New templates.
6164 (gimple_build_omp_scan): Declare.
6165 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
6166 gimple_omp_scan_set_clauses): New inline functions.
6167 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
6168 * gimple.c (gimple_build_omp_scan): New function.
6169 (gimple_copy): Handle GIMPLE_OMP_SCAN.
6170 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
6171 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
6172 GIMPLE_OMP_TASKGROUP.
6173 (dump_gimple_omp_scan): New function.
6174 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
6175 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
6176 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
6177 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
6178 (is_gimple_stmt): Handle OMP_SCAN.
6179 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
6180 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6181 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
6182 mentioned in nested #pragma omp scan. Handle
6183 OMP_CLAUSE_{IN,EX}CLUSIVE.
6184 (gimplify_expr): Handle OMP_SCAN.
6185 * omp-low.c (check_omp_nesting_restrictions): For parent context,
6186 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
6187 simd constructs.
6188 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
6189 GIMPLE_OMP_SCAN.
6190
6191 2019-06-10 Martin Liska <mliska@suse.cz>
6192
6193 * ipa-cp.c (ignore_edge_p): New function.
6194 (build_toporder_info): Use it.
6195 * ipa-inline.c (ignore_edge_p): New function.
6196 (inline_small_functions): Use it.
6197 * ipa-pure-const.c (ignore_edge_for_nothrow):
6198 Verify opt_for_fn for caller and callee.
6199 (ignore_edge_for_pure_const): Likewise.
6200 * ipa-reference.c (ignore_edge_p): Extend to check
6201 for opt_for_fn.
6202 * ipa-utils.c (searchc): Refactor.
6203 * ipa-utils.h: Fix coding style.
6204
6205 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6206
6207 * config/arc/arc.c (arc_rtx_costs): Update costs.
6208
6209 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6210
6211 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
6212 (arc_split_ior): Likewise.
6213 (arc_check_mov_const): Likewise.
6214 (arc_split_mov_const): Likewise.
6215 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
6216 (arc_rtx_costs): Replace check Crr with Cax constraint.
6217 (prepare_move_operands): Cleanup, remove unused code.
6218 (arc_split_ior): New function.
6219 (arc_check_ior_const): Likewise.
6220 (arc_split_mov_const): Likewise.
6221 (arc_check_mov_const): Likewise.
6222 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6223 in define_insn_and_split pattern.
6224 (iorsi3): Likewise.
6225 (mulsi3_v2): Add new matching variant.
6226 (andsi3_i): Cleanup pattern.
6227 (rotrsi3_cnt1): Update pattern.
6228 (rotrsi3_cnt8): New pattern.
6229 (ashlsi2_cnt8): Likewise.
6230 (ashlsi2_cnt16): Likewise.
6231 * config/arc/constraints.md (C0p): Update constraint.
6232 (Crr): Remove it.
6233 (C0x): New pattern.
6234 (Cax): New pattern.
6235
6236 2019-06-10 Martin Liska <mliska@suse.cz>
6237
6238 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6239 Update coding style.
6240 (sem_item_optimizer::dump_cong_classes):
6241 Print how many items are in a non-singular class. Improve
6242 coding style.
6243
6244 2019-06-10 Martin Liska <mliska@suse.cz>
6245
6246 * value-prof.c (dump_histogram_value): Change dump format.
6247 (gimple_mod_subtract_transform): Remove legacy comment.
6248
6249 2019-06-10 Martin Liska <mliska@suse.cz>
6250
6251 * value-prof.c (dump_histogram_value): Print histogram values
6252 only if present.
6253
6254 2019-06-10 Martin Liska <mliska@suse.cz>
6255
6256 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6257 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6258 * ipa-profile.c (ipa_profile_generate_summary):
6259 Use get_most_common_single_value.
6260 * tree-profile.c (gimple_init_gcov_profiler):
6261 Instrument with __gcov_one_value_profiler_v2
6262 and __gcov_indirect_call_profiler_v4.
6263 * value-prof.c (dump_histogram_value):
6264 Print all values for HIST_TYPE_SINGLE_VALUE.
6265 (stream_out_histogram_value): Update assert for
6266 N values.
6267 (stream_in_histogram_value): Set number of
6268 counters for HIST_TYPE_SINGLE_VALUE.
6269 (get_most_common_single_value): New.
6270 (gimple_divmod_fixed_value_transform):
6271 Use get_most_common_single_value.
6272 (gimple_ic_transform): Likewise.
6273 (gimple_stringops_transform): Likewise.
6274 (gimple_find_values_to_profile): Set number
6275 of counters for HIST_TYPE_SINGLE_VALUE.
6276 * value-prof.h (get_most_common_single_value): New.
6277
6278 2019-06-10 Martin Liska <mliska@suse.cz>
6279
6280 * hash-map.h: Pass default value to hash_table ctor.
6281 * hash-table.h: Add default value to call of a ctor.
6282
6283 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
6284
6285 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6286 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6287
6288 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
6289
6290 PR target/90751
6291 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6292 Call pa_output_function_label.
6293 (TARGET_ASM_FUNCTION_PROLOGUE): define.
6294 * config/pa/pa-protos.h (pa_output_function_label): Declare.
6295 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6296 to declaration.
6297 (pa_linux_output_function_prologue): Declare.
6298 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6299 (pa_output_function_label): New.
6300 (pa_output_function_prologue): Revise to use pa_output_function_label.
6301 (pa_linux_output_function_prologue): New.
6302 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6303
6304 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
6305
6306 * tree-vrp.h (value_range_base::intersect): New.
6307 (value_range::intersect_helper): Move from here...
6308 (value_range_base::intersect_helper): ...to here.
6309 * tree-vrp.c (value_range::intersect_helper): Rename to...
6310 (value_range_base::intersect_helper): ...this, and rewrite to
6311 return a value instead of modifying THIS in place.
6312 Also, move equivalence handling...
6313 (value_range::intersect): ...here, while calling intersect_helper.
6314 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6315 calling intersect.
6316 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6317 Same.
6318 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6319
6320 2019-06-07 Jakub Jelinek <jakub@redhat.com>
6321
6322 * Makefile.in (genprogerr): Add condmd.
6323 (genprog): Remove it here.
6324
6325 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
6326
6327 * doc/invoke.texi (AMD GCN Options): Add gfx906.
6328
6329 2019-06-07 Richard Biener <rguenther@suse.de>
6330
6331 PR debug/90574
6332 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6333 that appear after user labels.
6334
6335 2019-06-07 Martin Liska <mliska@suse.cz>
6336
6337 * cselib.c (cselib_init): Disable hash table
6338 sanitization.
6339 * hash-set.h: Pass new default argument to m_table.
6340 * hash-table.c: Add global variable with hash table
6341 sanitization limit.
6342 * hash-table.h (Allocator>::hash_table): Add new argument
6343 to ctor.
6344 (hashtab_chk_error): New.
6345 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6346 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6347 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6348
6349 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6350
6351 * common.opt (flto-odr-type-merging): Ignore.
6352 * invoke.texi (-flto-odr-type-merging): Remove.
6353 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6354 (can_be_vtable_hashed_p): Remove.
6355 (hash_odr_vtable): Remove.
6356 (odr_vtable_hasher::hash): Remove.
6357 (types_same_for_odr): Remove.
6358 (types_odr_comparable): Remove.
6359 (odr_vtable_hasher::equal): Remove.
6360 (odr_vtable_hash_type, odr_vtable_hash): Remove.
6361 (add_type_duplicate): Do not synchronize vtable and name hashtables.
6362 (get_odr_type): Do not use vtable hash.
6363 (dump_odr_type): Remove commented out code.
6364 (build_type_inheritance_graph): Do not allocate vtable hash.
6365 (rebuild_type_inheritance_graph): Do not delete vtable hash.
6366 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6367 (odr_type_p): Likewise.
6368 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6369 test.
6370
6371 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6372
6373 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6374 immediately after same_types_for_tbaa_p returns -1 and continue
6375 looking for possible exact match; if matching types are arrays
6376 watch for partial overlaps.
6377 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6378 (indirect_refs_may_alias_p): Do type based disambiguation first;
6379 update comment.
6380
6381 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
6382
6383 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6384
6385 2019-06-07 Martin Liska <mliska@suse.cz>
6386
6387 * doc/invoke.texi: Remove param.
6388 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6389 Remove.
6390 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6391 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6392 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6393 * profile.c (instrument_values): Remove
6394 HIST_TYPE_INDIR_CALL_TOPN.
6395 * tree-profile.c (init_ic_make_global_vars):
6396 Always build __gcov_indirect_call only.
6397 (gimple_init_gcov_profiler): Remove usage
6398 of PARAM_INDIR_CALL_TOPN_PROFILE.
6399 (gimple_gen_ic_profiler): Likewise.
6400 * value-prof.c (dump_histogram_value): Likewise.
6401 (stream_in_histogram_value): Likewise.
6402 (gimple_indirect_call_to_profile): Likewise.
6403 (gimple_find_values_to_profile): Likewise.
6404 * value-prof.h (enum hist_type): Likewise.
6405
6406 2019-06-07 Martin Liska <mliska@suse.cz>
6407
6408 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6409 function.
6410
6411 2019-06-07 Martin Liska <mliska@suse.cz>
6412
6413 PR tree-optimization/78902
6414 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
6415 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
6416 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6417 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6418 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
6419 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6420 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
6421 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
6422 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6423 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6424 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6425 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
6426 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
6427 New.
6428 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
6429 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
6430 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
6431 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6432 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6433 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
6434 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6435 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6436 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
6437 warn_unused_result attribute.
6438 (BUILT_IN_STRDUP): Likewise.
6439 (BUILT_IN_STRNDUP): Likewise.
6440 (BUILT_IN_ALLOCA): Likewise.
6441 (BUILT_IN_CALLOC): Likewise.
6442 (BUILT_IN_MALLOC): Likewise.
6443 (BUILT_IN_REALLOC): Likewise.
6444
6445 2019-06-06 Jim Wilson <jimw@sifive.com>
6446
6447 PR target/89955
6448 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
6449 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6450 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
6451
6452 2019-06-06 Martin Sebor <msebor@redhat.com>
6453
6454 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
6455 (handle_builtin_malloc): Remove trailing spaces.
6456 (handle_builtin_memset): Same.
6457 (handle_builtin_memcmp): Same.
6458 (compute_string_length): Same.
6459 (determine_min_objsize): Same.
6460 (handle_builtin_string_cmp): Same.
6461 (handle_char_store): Same. Break up excessively long line.
6462
6463 2019-06-06 Martin Jambor <mjambor@suse.cz>
6464
6465 * tree-sra.c (build_reconstructed_reference): Drop the alignment
6466 check.
6467
6468 2019-06-06 Martin Jambor <mjambor@suse.cz>
6469
6470 * tree-sra.c (struct access): New field grp_same_access_path.
6471 (dump_access): Dump it.
6472 (build_reconstructed_reference): New function.
6473 (build_ref_for_model): Use it if possible.
6474 (path_comparable_for_same_access): New function.
6475 (same_access_path_p): Likewise.
6476 (sort_and_splice_var_accesses): Set the new flag.
6477 (analyze_access_subtree): Likewise.
6478 (propagate_subaccesses_across_link): Propagate zero value of the new
6479 flag down the access tree.
6480
6481 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
6482
6483 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
6484 * config/gcn/gcn.opt (gpu_type): Add gfx906.
6485 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
6486 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
6487 Add gfx906.
6488
6489 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6490
6491 PR tree-optimization/90332
6492 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
6493 Handle VALS containing two vectors.
6494 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
6495 to...
6496 (@aarch64_combinez<mode>): ... This.
6497 (*aarch64_combinez_be<mode>): Rename to...
6498 (@aarch64_combinez_be<mode>): ... This.
6499 (vec_init<mode><Vhalf>): New define_expand.
6500 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
6501
6502 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6503
6504 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
6505 library functions only when not optimizing for size.
6506 (ashlsi3): Likewise.
6507 (ashrhi3): Likewise.
6508 (ashrsi3): Likewise.
6509 (lshrhi3): Likewise.
6510 (lshrsi3): Likewise.
6511
6512 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
6513
6514 PR rtl-optimization/88751
6515 * ira.c (ira): Use the number of the actually referenced registers
6516 when calculating the threshold.
6517
6518 2019-06-06 Jakub Jelinek <jakub@redhat.com>
6519
6520 * configure: Regenerate.
6521
6522 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6523
6524 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
6525 register if it is in memory, so the shift can be emulated with a rotate
6526 instruction.
6527 (ashrhi3): Likewise.
6528 (lshrhi3): Likewise.
6529
6530 2019-06-06 Martin Liska <mliska@suse.cz>
6531
6532 PR tree-optimization/87954
6533 * match.pd: Simplify mult where both arguments are 0 or 1.
6534
6535 2019-06-06 Richard Biener <rguenther@suse.de>
6536
6537 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
6538 put equivalences on UNDEFINED ranges.
6539 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
6540 Make sure to drop defs of stmts added during simplification
6541 to VARYING.
6542
6543 2019-06-06 Richard Biener <rguenther@suse.de>
6544
6545 * tree-ssa-structalias.c: Include tree-cfg.h.
6546 (make_heapvar): Do not make heap vars artificial.
6547 (find_func_aliases_for_builtin_call): Handle stack allocation
6548 functions.
6549 (find_func_aliases): Delay processing of simple enough returns
6550 in non-IPA mode.
6551 (set_uids_in_ptset): Adjust.
6552 (find_what_var_points_to): Likewise.
6553 (solve_constraints): Do not dump points-to sets here.
6554 (compute_points_to_sets): Post-process return statements,
6555 amending the escaped solution. Dump points-to sets afterwards.
6556 (ipa_pta_execute): Dump points-to sets.
6557
6558 2019-06-06 Martin Liska <mliska@suse.cz>
6559
6560 PR web/87933
6561 * doc/install.texi: Fix HTML headers and
6562 titles for 'Installing GCC' pages.
6563
6564 2019-06-06 Martin Liska <mliska@suse.cz>
6565
6566 * ipa-icf-gimple.h (dump_message_1): Remove.
6567 (dump_message): Likewise.
6568 (return_false_with_message_1): Print also file.
6569 (return_false_with_msg): Likewise.
6570 (return_with_result): Likewise.
6571 (return_with_debug): Likewise.
6572 * ipa-icf.c (sem_function::equals_private): Remove call
6573 to dump_message.
6574
6575 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6576
6577 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
6578 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
6579 memory operand for it.
6580 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
6581
6582 2019-06-05 Martin Sebor <msebor@redhat.com>
6583
6584 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
6585 Adjust quoting and hyphenation.
6586 * convert.c (convert_to_real_1): Same.
6587 * gcc.c (driver_wrong_lang_callback): Same.
6588 (driver::handle_unrecognized_options): Same.
6589 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6590 * opts-common.c (cmdline_handle_error): Same.
6591 (read_cmdline_option): Same.
6592 * opts-global.c (complain_wrong_lang): Same.
6593 (print_ignored_options): Same.
6594 (handle_common_deferred_options): Same.
6595 * pretty-print.h: Same.
6596 * print-rtl.c (debug_bb_n_slim): Same.
6597 * sched-rgn.c (make_pass_sched_fusion): Same.
6598 * tree-cfg.c (verify_gimple_assign_unary): Same.
6599 (verify_gimple_label): Same.
6600 * tree-ssa-operands.c (verify_ssa_operands): Same.
6601 * varasm.c (do_assemble_alias): Same.
6602 (assemble_alias): Same.
6603
6604 2019-06-05 Richard Henderson <rth@twiddle.net>
6605
6606 * config/alpha/alpha.c (direct_return): Move down after
6607 struct machine_function definition; use saved frame_size;
6608 return bool.
6609 (struct machine_function): Add sa_mask, sa_size, frame_size.
6610 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
6611 (alpha_compute_frame_layout): ... new function.
6612 (TARGET_COMPUTE_FRAME_LAYOUT): New.
6613 (alpha_initial_elimination_offset): Use saved sa_size.
6614 (alpha_vms_initial_elimination_offset): Likewise.
6615 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
6616 (alpha_expand_prologue): Use saved frame data. Merge integer
6617 and fp register save loops.
6618 (alpha_expand_epilogue): Likewise.
6619 (alpha_start_function): Use saved frame data.
6620 * config/alpha/alpha-protos.h (direct_return): Update.
6621 (alpha_sa_size): Remove.
6622
6623 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
6624
6625 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
6626 multiplication by a power-of-two value.
6627 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
6628 and turn the modulo operation into a masking operation.
6629
6630 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6631
6632 PR debug/90733
6633 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
6634 with VOIDmode inner operands.
6635
6636 2019-06-05 Richard Biener <rguenther@suse.de>
6637
6638 PR middle-end/90726
6639 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6640 turn an expression graph into a tree.
6641
6642 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6643
6644 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
6645 member.
6646 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
6647 treat it like explicit monotonic schedule modifier.
6648 (expand_omp_for): Initialize has_lastprivate_conditional.
6649 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
6650 schedule modifier.
6651
6652 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
6653 references, lookup in in hash map MEM_REF operand instead of the
6654 MEM_REF itself.
6655 (lower_omp_1): When looking for lastprivate conditional assignments,
6656 handle MEM_REFs with REFERENCE_TYPE operands.
6657
6658 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
6659 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
6660 and references a VLA. Handle references to non-VLAs if is_simd
6661 all privatization clauses like reductions.
6662 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
6663 If omp_is_reference, use always omp simd arrays and set
6664 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
6665 fails, emit reference initialization.
6666
6667 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6668
6669 PR target/89803
6670 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
6671 _mm_mask_fpclass_sd_mask): New intrinsics.
6672 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
6673 * config/i386/i386-builtin.def
6674 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
6675 New builtins.
6676 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
6677 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
6678 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
6679 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
6680 case QI_FTYPE_V2SF_INT): Ditto.
6681 * config/i386/sse.md
6682 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
6683 Extended to insnstructions with mask operands.
6684
6685 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6686
6687 * config/rs6000/constraints.md (define_register_constraint "wp"):
6688 Delete.
6689 (define_register_constraint "wq"): Delete.
6690 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6691 (rs6000_init_hard_regno_mode_ok): Adjust.
6692 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6693 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
6694 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
6695 (define_mode_attr VSa): Delete.
6696 (define_mode_attr VSisa): New.
6697 (rest of file): Adjust.
6698 * doc/md.texi (Machine Constraints): Adjust.
6699
6700 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6701
6702 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
6703 (define_attr "enabled"): Handle those new isa values.
6704
6705 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6706
6707 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
6708 (define_mode_attr VSr5): Delete.
6709 (define_mode_attr VStype_sqrt): Delete.
6710 (define_mode_iterator VSX_SPDP): Delete.
6711 (define_mode_attr VS_spdp_res): Delete.
6712 (define_mode_attr VS_spdp_insn): Delete.
6713 (define_mode_attr VS_spdp_type): Delete.
6714 (*vsx_sqrt<mode>2): Adjust.
6715 (vsx_<VS_spdp_insn>): Delete, split to...
6716 (vsx_xscvdpsp): ... this. New. And...
6717 (vsx_xvcvspdp): ... this. New. And...
6718 (vsx_xvcvdpsp): ... this. New.
6719
6720 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6721
6722 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
6723 and V2DF.
6724 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
6725 (rest of file): Adjust.
6726
6727 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6728
6729 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
6730 (vsx_extract_<mode>_var): Ditto.
6731
6732 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6733
6734 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
6735 with just "wa".
6736
6737 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6738
6739 * config/rs6000/constraints.md (define_register_constraint "ww"):
6740 Delete.
6741 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6742 (rs6000_init_hard_regno_mode_ok): Adjust.
6743 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6744 RS6000_CONSTRAINT_ww.
6745 * config/rs6000/rs6000.md: Adjust.
6746 * config/rs6000/vsx.md: Adjust.
6747 * doc/md.texi (Machine Constraints): Adjust.
6748
6749 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6750
6751 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
6752 (define_mode_attr sd): New.
6753 (define_mode_attr s): New.
6754 (define_mode_attr Ftrad): Delete.
6755 (define_mode_attr Fvsx): Delete.
6756 (define_mode_attr Fs): Delete.
6757 (rest of file): Use the new mode attributes.
6758 * config.rs6000/vsx.md: Use the new mode attributes.
6759
6760 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6761
6762 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
6763 with just "wa".
6764
6765 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6766
6767 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
6768 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
6769 used with VSX_B, VSX_D, or VSX_F, with just "wa".
6770
6771 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
6772
6773 PR target/78263
6774 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
6775 C++ with strict ANSI requirements.
6776
6777 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
6778
6779 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
6780 computations when step is 1.
6781
6782 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6783
6784 * config/rs6000/constraints.md (define_register_constraint "wf"):
6785 Delete.
6786 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6787 (rs6000_init_hard_regno_mode_ok): Adjust.
6788 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6789 RS6000_CONSTRAINT_wf.
6790 * config/rs6000/rs6000.md: Adjust.
6791 * config/rs6000/vsx.md: Adjust.
6792 * doc/md.texi (Machine Constraints): Adjust.
6793
6794 2019-06-04 Andrew Pinski <apinski@marvell.com>
6795
6796 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
6797 Fix ILP32 value.
6798
6799 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6800
6801 * config/rs6000/constraints.md (define_register_constraint "wd"):
6802 Delete.
6803 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6804 (rs6000_init_hard_regno_mode_ok): Adjust.
6805 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6806 RS6000_CONSTRAINT_wd.
6807 * config/rs6000/rs6000.md: Adjust.
6808 * config/rs6000/vsx.md: Adjust.
6809 * doc/md.texi (Machine Constraints): Adjust.
6810
6811 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6812
6813 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
6814 (rest of file): Adjust.
6815
6816 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6817
6818 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
6819 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
6820 (vsx_splat_<mode>_reg): Adjust.
6821
6822 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6823
6824 * config/rs6000/constraints.md (define_register_constraint "ws"):
6825 Delete.
6826 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6827 (rs6000_init_hard_regno_mode_ok): Adjust.
6828 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6829 RS6000_CONSTRAINT_ws.
6830 * config/rs6000/rs6000.md: Adjust.
6831 * config/rs6000/vsx.md: Adjust.
6832 * doc/md.texi (Machine Constraints): Adjust.
6833
6834 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6835
6836 * config/rs6000/constraints.md (define_register_constraint "wv"):
6837 Delete.
6838 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6839 (rs6000_init_hard_regno_mode_ok): Adjust.
6840 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6841 RS6000_CONSTRAINT_wv.
6842 * config/rs6000/rs6000.md: Adjust.
6843 * config/rs6000/vsx.md: Adjust.
6844 * doc/md.texi (Machine Constraints): Adjust.
6845
6846 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6847
6848 * config/rs6000/constraints.md (define_register_constraint "wi"):
6849 Delete.
6850 (define_register_constraint "wt"): Delete.
6851 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6852 (rs6000_init_hard_regno_mode_ok): Adjust.
6853 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6854 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
6855 * config/rs6000/rs6000.md: Adjust.
6856 * config/rs6000/vsx.md: Adjust.
6857 * doc/md.texi (Machine Constraints): Adjust.
6858
6859 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6860
6861 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
6862 const.
6863 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
6864 default_elf_asm_output_external.
6865
6866 2019-06-04 Martin Liska <mliska@suse.cz>
6867
6868 * ipa-icf.c (INCLUDE_LIST): Remove.
6869 (sem_item_optimizer::execute): Remove call to init_wpa.
6870 * ipa-icf.h (init_wpa): Remove.
6871
6872 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6873
6874 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
6875 conditional on combined for simd.
6876 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
6877 member.
6878 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
6879 constructs, don't remove lastprivate_conditional_map, but instead set
6880 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
6881 to parent construct temporaries.
6882 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
6883 like !ctx->lastprivate_conditional_map.
6884 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
6885 use up->outer context instead of up.
6886 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
6887 gimple_omp_for_combined_p.
6888 (expand_omp_for_static_nochunk): Likewise.
6889 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
6890 probably moved over into expand_omp_for_generic rather than being copied
6891 there.
6892
6893 2019-06-04 Martin Liska <mliska@suse.cz>
6894
6895 * value-prof.c (dump_histogram_value): Fix typo.
6896 (gimple_mod_subtract_transform): Likewise.
6897
6898 2019-06-04 Richard Biener <rguenther@suse.de>
6899
6900 PR middle-end/90726
6901 * tree-chrec.c (chrec_contains_symbols): Add to visited.
6902 (tree_contains_chrecs): Likewise.
6903 (chrec_contains_symbols_defined_in_loop): Move here and avoid
6904 exponential behaivor from ...
6905 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6906 ... here.
6907 (expression_expensive_p): Avoid exponential behavior and compute
6908 expanded size, rejecting any expansion.
6909 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
6910 (idx_contains_abnormal_ssa_name_p): Likewise.
6911 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
6912 (contains_abnormal_ssa_name_p): Simplify and use
6913 walk_tree_without_duplicates.
6914
6915 2019-06-04 Richard Biener <rguenther@suse.de>
6916
6917 PR tree-optimization/90738
6918 Revert
6919 2019-06-03 Richard Biener <rguenther@suse.de>
6920
6921 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6922 full reference tree and record in ref->ref.
6923 (vn_reference_lookup_3): Pass in original ref to
6924 ao_ref_init_from_vn_reference.
6925 (vn_reference_lookup): Likewise.
6926 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6927 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6928 Handle non-decl bases in the original reference.
6929
6930 2019-06-04 Martin Liska <mliska@suse.cz>
6931
6932 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
6933 number of references.
6934 (sem_item_optimizer::do_congruence_step):
6935 (sem_item_optimizer::worklist_push): Dump how references
6936 a class has.
6937 (sem_item_optimizer::worklist_pop): Use heap.
6938 (sem_item_optimizer::process_cong_reduction): Likewise.
6939 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
6940
6941 2019-06-04 Martin Liska <mliska@suse.cz>
6942
6943 * ipa-icf.h (struct sem_usage_pair_hash): New.
6944 (sem_usage_pair_hash::hash): Likewise.
6945 (sem_usage_pair_hash::equal): Likewise.
6946 (struct sem_usage_hash): Likewise.
6947 * ipa-icf.c (sem_item::sem_item): Initialize
6948 referenced_by_count.
6949 (sem_item::add_reference): Register a reference
6950 in ref_map and not in target->usages.
6951 (sem_item::setup): Remove initialization of
6952 dead vectors.
6953 (sem_item::~sem_item): Remove usage of dead vectors.
6954 (sem_item::dump): Remove dump of references.
6955 (sem_item_optimizer::sem_item_optimizer): Initialize
6956 m_references.
6957 (sem_item_optimizer::read_section): Remove useless
6958 dump.
6959 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
6960 (sem_item_optimizer::build_graph): Pass m_references
6961 to ::add_reference.
6962 (sem_item_optimizer::verify_classes): Remove usage of dead
6963 vectors.
6964 (sem_item_optimizer::traverse_congruence_split): Return true
6965 when a class is split.
6966 (sem_item_optimizer::do_congruence_step_for_index): Use
6967 hash_map for look up of (sem_item *, index). That brings
6968 significant speed up.
6969 (sem_item_optimizer::do_congruence_step): Return true
6970 when a split is done.
6971 (congruence_class::is_class_used): Use referenced_by_count.
6972
6973 2019-06-04 Alan Modra <amodra@gmail.com>
6974
6975 PR target/90689
6976 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
6977 error.
6978
6979 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6980
6981 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
6982 * config/rs6000/rs6000.c (direct_move_p): Adjust.
6983 (rs6000_secondary_reload_simple_move): Adjust.
6984 (rs6000_opt_masks): Neuter the "mfpgpr" option.
6985 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
6986 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
6987 comment.
6988 (power6x): Adjust.
6989 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
6990 (floatunssi<mode>2_lfiwzx): Adjust.
6991 (fix_trunc<mode>si2_stfiwx): Adjust.
6992 (fixuns_trunc<mode>si2_stfiwx): Adjust.
6993 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
6994 (mfpgpr): Mark as deprecated.
6995 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
6996 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
6997 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
6998
6999 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7000
7001 * config/rs6000/constraints.md (define_register_constraint "wg"):
7002 Delete.
7003 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7004 RS6000_CONSTRAINT_wg.
7005 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7006 (rs6000_init_hard_regno_mode_ok): Adjust.
7007 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
7008 Delete "wg" alternatives.
7009 * doc/md.texi (Machine Constraints): Adjust.
7010
7011 2019-06-03 Alan Modra <amodra@gmail.com>
7012
7013 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
7014 (get_uncond_jump_length): Assert length less than INT_MAX and
7015 non-negative.
7016
7017 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7018
7019 PR middle-end/64242
7020 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
7021 block.
7022 (expand_builtin_nonlocal_goto): Likewise.
7023
7024 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7025
7026 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
7027 (aarch64_asm_output_external): Declare.
7028 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
7029 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
7030 (aarch64_asm_output_alias): New.
7031 (aarch64_asm_output_external): New.
7032 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7033 (ASM_OUTPUT_EXTERNAL): Define.
7034
7035 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
7036 * tree-vrp.h (value_range_base::nonzero_p): New.
7037 (value_range_base::set_nonnull): Rename to...
7038 (value_range_base::set_nonzero): ...this.
7039 (value_range_base::set_null): Rename to...
7040 (value_range_base::set_zero): ...this.
7041 (value_range::set_nonnull): Remove.
7042 (value_range::set_null): Remove.
7043 * tree-vrp.c (range_is_null): Remove.
7044 (range_is_nonnull): Remove.
7045 (extract_range_from_binary_expr): Use value_range_base::*zero_p
7046 instead of range_is_*null.
7047 (extract_range_from_unary_expr): Same.
7048 (value_range_base::set_nonnull): Rename to...
7049 (value_range_base::set_nonzero): ...this.
7050 (value_range::set_nonnull): Remove.
7051 (value_range_base::set_null): Rename to...
7052 (value_range_base::set_zero): ...this.
7053 (value_range::set_null): Remove.
7054 (extract_range_from_binary_expr): Rename set_*null uses to
7055 set_*zero.
7056 (extract_range_from_unary_expr): Same.
7057 (union_helper): Same.
7058 * vr-values.c (get_value_range): Use set_*zero instead of
7059 set_*null.
7060 (vr_values::extract_range_from_binary_expr): Same.
7061 (vr_values::extract_range_basic): Same.
7062
7063 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7064
7065 PR driver/90684
7066 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
7067
7068 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7069
7070 * config/aarch64/iterators.md (MAX_OPP): New code attr.
7071 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
7072 Rename to...
7073 (aarch64_<su>abd<mode>_3): ... This.
7074 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
7075
7076 2019-06-03 Richard Biener <rguenther@suse.de>
7077
7078 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7079 full reference tree and record in ref->ref.
7080 (vn_reference_lookup_3): Pass in original ref to
7081 ao_ref_init_from_vn_reference.
7082 (vn_reference_lookup): Likewise.
7083 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7084 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7085 Handle non-decl bases in the original reference.
7086
7087 2019-06-03 Martin Liska <mliska@suse.cz>
7088
7089 * doc/generic.texi: Remove Java Trees.
7090
7091 2019-06-03 Martin Liska <mliska@suse.cz>
7092
7093 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
7094 returns 0 when operands are equal.
7095
7096 2019-06-03 Richard Biener <rguenther@suse.de>
7097
7098 PR tree-optimization/90716
7099 * tree-loop-distribution.c (destroy_loop): Process blocks in
7100 correct order.
7101
7102 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7103
7104 PR target/88837
7105 * vector-builder.h (vector_builder::count_dups): New method.
7106 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
7107 Declare prototype.
7108 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
7109 (vec_init<mode><Vel>): New pattern.
7110 * config/aarch64/aarch64.c (emit_insr): New function.
7111 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
7112 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
7113 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
7114 (aarch64_sve_expand_vector_init): Define two overloaded functions.
7115
7116 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7117
7118 PR tree-optimization/90681
7119 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
7120 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
7121 special case for SLP, but fail on non-groupped loads.
7122
7123 2019-06-03 Martin Liska <mliska@suse.cz>
7124
7125 * cfg.c (debug): Use TDF_DETAILS for debug and
7126 print edge info only once.
7127
7128 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
7129
7130 PR fortran/90539
7131 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
7132
7133 2019-06-01 Martin Sebor <msebor@redhat.com>
7134
7135 PR middle-end/90694
7136 * tree-pretty-print.c (dump_generic_node): Add parentheses.
7137
7138 2019-05-31 Jan Hubicka <jh@suse.cz>
7139
7140 * alias.c: Include ipa-utils.h.
7141 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
7142 * ipa-devirt.c (prevailing_odr_type): New.
7143 * ipa-utils.h (previaling_odr_type): Declare.
7144
7145 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
7146 Hongtao Liu <hongtao.liu@intel.com>
7147
7148 PR target/89355
7149 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
7150 NOTE_INSN_DELETED_LABEL check.
7151
7152 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
7153 Robert Suchanek <robert.suchanek@mips.com>
7154
7155 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
7156 and 3rd operands of the fmadd/fmsub/maddv builtin.
7157
7158 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7159
7160 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
7161 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7162 on OMP_SIMD if not nested inside of worksharing loop that also has
7163 lastprivate conditional clause for the same decl.
7164 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
7165 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
7166 on simd.
7167 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
7168 on simd construct.
7169 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
7170 on simd construct.
7171 (lower_lastprivate_clauses): Likewise.
7172 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
7173 calling lower_rec_input_clauses.
7174 (lower_omp_for): Likewise.
7175 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
7176 clause on simd construct.
7177 * omp-expand.c (expand_omp_simd): Initialize cond_var if
7178 OMP_CLAUSE__CONDTEMP_ clause is present.
7179
7180 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
7181 ivar and lvar.
7182
7183 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
7184
7185 PR c/43673
7186 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
7187 TEX_D32, TEX_D64 or TEX_D128.
7188
7189 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7190
7191 * match.pd (~(vec?cst1:cst2)): New transformation.
7192
7193 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7194
7195 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
7196 ((size_t)(A /[ex] B) CMP C): New transformation.
7197
7198 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
7199
7200 * doc/md.texi: Document define_insn_and_rewrite.
7201 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
7202 * gensupport.c (queue_elem): Update comment.
7203 (replace_operands_with_dups): New function.
7204 (gen_rewrite_sequence): Likewise.
7205 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
7206 * read-rtl.c (apply_subst_iterator): Likewise.
7207 (add_condition_to_rtx, named_rtx_p): Likewise.
7208 (rtx_reader::read_rtx_operand): Likewise.
7209 * config/aarch64/aarch64-sve.md
7210 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
7211 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
7212 define_insn_and_rewrite.
7213 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
7214 Remove separate define_split.
7215
7216 2019-05-31 Jan Hubicka <jh@suse.cz>
7217
7218 * tree-ssa-alias.c (type_has_components_p): New function.
7219 (aliasing_component_refs_p): Use it.
7220
7221 2019-05-31 Martin Liska <mliska@suse.cz>
7222
7223 * gdbhooks.py: Add const_tree to TreePrinter.
7224
7225 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
7226
7227 PR debug/86964
7228 * common.opt (feliminate-unused-debug-symbols): Enable by default.
7229 * doc/invoke.texi (Debugging Options): Document new default of
7230 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7231
7232 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7233
7234 PR tree-optimization/90671
7235 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7236 template_block used to be empty on the first call, don't use
7237 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7238 seq with bb_seq and set it with set_bb_seq.
7239
7240 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
7241
7242 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7243
7244 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7245 Michael Meissner <meissner@linux.ibm.com>
7246
7247 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7248 (prefixed_mem_operand): Likewise.
7249 (non_prefixed_mem_operand): Likewise.
7250 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7251 prototype.
7252 * config/rs6000/rs6000.c (print_operand_address): Handle
7253 PC-relative addresses.
7254 (mode_supports_prefixed_address_p): New function.
7255 (rs6000_prefixed_address): New function.
7256 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7257 (SYMBOL_REF_PCREL_P): Likewise.
7258
7259 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7260
7261 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7262 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7263 (gimplify_omp_for): If worksharing loop with lastprivate conditional
7264 is nested inside of parallel region, add _condtemp_ clause to both.
7265 * tree-nested.c (convert_nonlocal_omp_clauses,
7266 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7267 assertion failure.
7268 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7269 member.
7270 * omp-general.c (omp_extract_for_data): Compute it.
7271 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7272 (lower_rec_input_clauses): Likewise.
7273 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7274 clause is already present, just add one further one after it.
7275 (lower_lastprivate_clauses): Handle cond_ptr with array type.
7276 (lower_send_shared_vars): Clear _condtemp_ vars.
7277 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7278 or section or taskgroup.
7279 * omp-expand.c (determine_parallel_type): Disallow combining only if
7280 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
7281 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7282 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7283 expand_omp_for_static_chunk, expand_omp_for): Use
7284 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7285 determine if a special set of API routines are needed and if condtemp
7286 needs to be initialized, while always initialize cond_var if
7287 fd->lastprivate_conditional is non-zero.
7288
7289 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7290 Michael Meissner <meissner@linux.ibm.com>
7291
7292 * config/rs6000/constraints.md (eI): New constraint.
7293 * config/rs6000/predicates.md (cint34_operand): New predicate.
7294 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7295 (SIGNED_34BIT_OFFSET_P): Likewise.
7296 * doc/md.texi (eI): Document constraint.
7297
7298 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
7299
7300 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7301
7302 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7303 Michael Meissner <meissner@linux.ibm.com>
7304
7305 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7306 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7307 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7308 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7309 (OTHER_FUTURE_MASKS): Likewise.
7310 (POWERPC_MASKS): Likewise.
7311 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7312 specified without -mprefixed-addr or -mcpu=future. Error if
7313 -mprefixed-addr is specified without -mcpu=future.
7314 (rs6000_opt_masks): Add entry for prefixed-addr.
7315 * rs6000.opt (mprefixed-addr): New option.
7316
7317 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
7318
7319 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7320 cfun->is_thunk check.
7321
7322 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7323
7324 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7325 to length.
7326
7327 2019-05-30 Martin Liska <mliska@suse.cz>
7328
7329 * gdbinit.in: Fix 'ptc' command. Add trt
7330 that prints TREE_TYPE($).
7331
7332 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
7333 Alan Modra <amodra@gmail.com>
7334
7335 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7336 calls here...
7337 (rs6000_indirect_call_template_1): ...and here.
7338 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
7339 plt16_ha, plt16_lo, mtctr indirect calls. Use
7340 rs6000_pltseq_enum.
7341 (rs6000_decl_ok_for_sibcall): New function.
7342 (rs6000_function_ok_for_sibcall): Refactor.
7343 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7344 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7345 when pcrel. Reorganize.
7346 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7347 * rs6000.h (rs6000_pltseq_enum): New enum.
7348 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7349 (*pltseq_tocsave): Use rs6000_pltseq_enum.
7350 (*pltseq_plt16_ha): Likewise.
7351 (*pltseq_plt16_lo): Likewise.
7352 (*pltseq_mtctr): Likewise.
7353 (*pltseq_plt_pcrel): New insn.
7354 (*call_local_aix): Handle @notoc calls.
7355 (*call_value_local_aix): Likewise.
7356 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7357 (*call_value_nonlocal_aix): Likewise.
7358 (*call_indirect_pcrel): New insn.
7359 (*call_value_indirect_pcrel): Likewise.
7360
7361 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
7362
7363 * config/i386/sse.md (*save_multiple<mode>): Rename from
7364 save_multiple<mode>.
7365 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7366 (*restore_multiple_and_return<mode>): Rename from
7367 restore_multiple_and_return<mode>.
7368 (*restore_multiple_leave_return<mode>): Rename from
7369 restore_multiple_leave_return<mode>.
7370
7371 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
7372
7373 * config.gcc (rx-*-linux*): New target.
7374 * config/rx/elf.opt: New file.
7375 * config/rx/linux.h: Likewise.
7376 * config/rx/t-linux: Likewise.
7377 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7378 make it zero.
7379 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7380 (ASM_APP_OFF): Likewise.
7381 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7382 moved elsewhere.
7383
7384 2019-05-29 Jan Hubicka <jh@suse.cz>
7385
7386 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7387 variants are pointer equivalent.
7388
7389 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7390
7391 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7392 * config/aarch64/aarch64-sve2.md: New file.
7393 (<u>avg<mode>3_floor): New pattern.
7394 (<u>avg<mode>3_ceil): Likewise.
7395 (*<sur>h<addsub><mode>): Likewise.
7396 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7397 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7398
7399 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7400
7401 PR bootstrap/90543
7402 * optc-save-gen.awk: In cl_optimization_print, use correct condition
7403 for var_opt_string printing. In cl_optimization_print_diff, print
7404 (null) instead of invoking undefined behavior if one of the
7405 var_opt_string pointers is NULL and use && instead of first || in the
7406 guarding condition. For var_target_other options, handle const char *
7407 target variables similarly to const char * optimize node variables.
7408
7409 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
7410
7411 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7412 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
7413 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
7414 Add autib1716 and pacib1716 initialisation.
7415 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
7416 for autib1716 and pacib1716.
7417 * config/aarch64/aarch64-protos.h (aarch64_key_type,
7418 aarch64_post_cfi_startproc): Define.
7419 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
7420 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
7421 aarch64_handle_pac_ret_protection): Set default sign key to A.
7422 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
7423 aarch64_expand_prologue): Add check for b-key.
7424 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
7425 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
7426 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
7427 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
7428 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
7429 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
7430 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7431 * config/aarch64/aarch64.md (do_return): Add check for b-key.
7432 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
7433 pauth_hint_num_a with pauth_hint_num.
7434 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
7435 pauth_hint_num_a with pauth_hint_num.
7436 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
7437 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
7438 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7439 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
7440 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
7441 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
7442 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
7443 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7444 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
7445 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
7446 UNSPEC_AUTIA1716 respectively.
7447 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
7448 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
7449 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
7450 * doc/invoke.texi (-mbranch-protection): Add b-key type.
7451 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
7452 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
7453
7454 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7455
7456 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
7457 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
7458 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
7459 explicit clause on combined parallel into implicit shared clause.
7460 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
7461 and firstprivate if the decl has one too from combined parallel to
7462 the worksharing construct.
7463
7464 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
7465 Michael Meissner <meissner@linux.ibm.com>
7466
7467 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
7468
7469 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
7470
7471 * rtl.h (LABEL_REF_P): New #define.
7472
7473 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
7474
7475 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
7476
7477 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7478
7479 * internal-fn.c: Marked mask_load_direct as vectorizable.
7480 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
7481 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
7482 combined even if masks different with allow_slp_p param.
7483 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
7484 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
7485 dissolve SLP-only vectorizable groups when SLP has been discarded.
7486 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
7487 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
7488 masks.
7489 (vect_build_slp_tree_1): Fixed comment typo.
7490 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
7491 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
7492 loads for SLP only.
7493 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
7494 vectorizable.
7495 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
7496
7497 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7498
7499 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
7500 Remove obsolete use_thunk reference.
7501 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7502 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7503 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7504 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7505 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7506 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7507 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7508 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7509 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7510
7511 2019-05-28 Nathan Sidwell <nathan@acm.org>
7512
7513 * tree.h (IDENTIFIER_ANON_P): New.
7514 (anon_aggrname_format, anon_aggname_p): Don't declare.
7515 (make_anon_name): Declare.
7516 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
7517 (hash_tree): Likewise.
7518 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
7519 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
7520 (anon_cnt, make_anon_name): New.
7521
7522 2019-05-28 Martin Liska <mliska@suse.cz>
7523
7524 PR other/90315
7525 * opts-global.c (decode_options): Print help for all
7526 help_option_arguments.
7527 * opts.c (print_help): Add new argument.
7528 (common_handle_option): Remember all values into
7529 help_option_arguments.
7530 * opts.h (print_help): Add new argument.
7531
7532 2019-05-28 Martin Liska <mliska@suse.cz>
7533
7534 PR ipa/90555
7535 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
7536 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
7537 (func_checker::compare_bb): Call compare_loops.
7538
7539 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7540
7541 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7542 on sections construct.
7543 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
7544 construct.
7545 (lower_omp_sections): Handle lastprivate conditional.
7546 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
7547 lastprivate_conditional_map.
7548 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
7549
7550 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
7551 critical, taskgroup and section regions when looking for a region
7552 with non-NULL lastprivate_conditional_map.
7553
7554 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7555
7556 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
7557 (*ix86_gen_sub3): Ditto.
7558 (*ix86_gen_sub3_carry): Ditto.
7559 (*ix86_gen_one_cmpl2): Ditto.
7560 (*ix86_gen_andsp): Ditto.
7561 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
7562 (gen_and2_insn): New static function.
7563 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
7564 Use gen_add3_insn instead of ix86_gen_add3.
7565 (ix86_expand_split_stack_prologue): Use gen_add2_insn
7566 instead of ix86_gen_add3.
7567 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
7568 Use gen_sub3_insn instead of ix86_gen_sub3.
7569 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
7570 instead of ix86_gen_add3.
7571 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
7572 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
7573 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
7574 * config/i386/i386-options.c (ix86_option_override_internal):
7575 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7576 ix86_gen_one_cmpl2 and ix86_gen_andsp.
7577
7578 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
7579
7580 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
7581 and DW_OP_GNU_const_index opcodes.
7582
7583 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7584
7585 * config/i386/i386.h (STACK_SIZE_MODE): Define.
7586
7587 2019-05-27 Richard Biener <rguenther@suse.de>
7588
7589 PR tree-optimization/90637
7590 * tree-ssa-sink.c (statement_sink_location): Honor the
7591 computed sink location for single-uses.
7592
7593 2019-05-27 Richard Biener <rguenther@suse.de>
7594
7595 PR middle-end/90610
7596 * match.pd (vec_perm): Avoid clobbering op0 when not generating
7597 a bit-insert.
7598
7599 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7600
7601 * config/i386/i386.md (@sub<mode>3_carry): Rename
7602 from sub<mode>3_carry.
7603 (@leave_<mode>): New expander.
7604 (*leave): Rename from leave.
7605 (*leave_rex64): Rename from leave_rex64.
7606 (@monitorx_<mode>): Rename from monitorx_<mode>.
7607 (@clzero_<mode>): Rename from clzero_<mode>.
7608 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
7609 from sse3_monitor_<mode>.
7610 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
7611 (*ix86_gen_leave): Ditto.
7612 (*ix86_gen_monitor): Ditto.
7613 (*ix86_gen_monitorx): Ditto.
7614 (*ix86_gen_clzero): Ditto.
7615 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
7616 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
7617 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
7618 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
7619 Use gen_sse3_monitor instead of ix86_gen_monitor.
7620 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
7621 instead of ix86_gen_monitorx.
7622 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
7623 instead of ix86_gen_clzero.
7624 * config/i386/i386-options.c (ix86_option_override_internal):
7625 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
7626 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
7627
7628 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7629
7630 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
7631 Rename from tls_global_dynamic_64_<mode>.
7632 (@tls_local_dynamic_base_64_<mode>): Rename from
7633 tls_local_dynamic_base_64_<mode>.
7634 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
7635 Remove indirect function.
7636 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
7637 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
7638 instead of ix86_gen_tls_global_dynamic_64.
7639 Use gen_tls_local_dynamic_base_64 instead of
7640 ix86_gen_tls_local_dynamic_base_64.
7641 * config/i386/i386-options.c (ix86_option_override_internal):
7642 Do not initialize ix86_gen_tls_global_dynamic_64 and
7643 ix86_gen_tls_local_dynamic_base_64.
7644
7645 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7646
7647 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
7648 Rename from pro_epilogue_adjust_stack_<mode>_add.
7649 (@pro_epilogue_adjust_stack_sub_<mode>)
7650 Rename from pro_epilogue_adjust_stack_<mode>_sub.
7651 (@allocate_stack_worker_probe_<mode>):
7652 Rename from allocate_stack_worker_probe_<mode>.
7653 (allocate_stack): Use gen_allocate_stack_worker_probe.
7654 (probe_stack): Use gen_probe_stack_1.
7655 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
7656 (@adjust_stack_and_probe_<mode>): Rename from
7657 adjust_stack_and_probe<mode>.
7658 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
7659 (stack_protect_set): Use gen_stack_protect_set_1.
7660 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
7661 (stack_protect_test): Use gen_stack_protect_test_1.
7662 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
7663 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
7664 Remove indirect function.
7665 (*ix86_gen_adjust_stack_and_probe): Ditto.
7666 (*ix86_gen_probe_stack_range): Ditto.
7667 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
7668 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
7669 (ix86_adjust_stack_and_probe_stack_clash): Use
7670 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
7671 (ix86_adjust_stack_and_probe): Ditto.
7672 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
7673 of ix86_gen_probe_stack_range.
7674 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
7675 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
7676 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
7677 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
7678 CODE_FOR_stack_protect_test_{si,di}.
7679 * config/i386/i386-options.c (ix86_option_override_internal):
7680 Do not initialize ix86_gen_allocate_stack_worker,
7681 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
7682
7683 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
7684
7685 * doc/invoke.texi (Link Options): Many editorial changes around
7686 -flinker-output.
7687
7688 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7689
7690 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
7691 pre-Solaris 11 referene and most Studio compiler details.
7692
7693 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
7694
7695 PR target/90530
7696 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
7697 DImode to SImode in floating-point registers on 64-bit target.
7698 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
7699 register_operand in xmpyu patterns.
7700
7701 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7702
7703 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
7704 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
7705 OMP_CLAUSE__REDUCTEMP_.
7706 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7707 OMP_CLAUSE__CONDTEMP_.
7708 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
7709 * tree-pretty-print.c (dump_omp_clause): Likewise.
7710 * tree-nested.c (convert_nonlocal_omp_clauses,
7711 convert_local_omp_clauses): Likewise.
7712 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
7713 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
7714 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
7715 on OMP_FOR.
7716 (gimplify_omp_for): Warn and disable conditional modifier from
7717 lastprivate on loop iterators.
7718 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
7719 member.
7720 * omp-general.c (omp_extract_for_data): Initialize it.
7721 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
7722 member.
7723 (delete_omp_context): Delete it.
7724 (lower_lastprivate_conditional_clauses): New function.
7725 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
7726 handle lastprivate conditional clauses.
7727 (lower_reduction_clauses): Add CLIST argument, emit it into
7728 the critical section if any.
7729 (lower_omp_sections): Adjust lower_lastprivate_clauses and
7730 lower_reduction_clauses callers.
7731 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
7732 to lower_lastprivate_clauses.
7733 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
7734 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
7735 clist into a critical section if not emitted there already by
7736 lower_reduction_clauses.
7737 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
7738 callers.
7739 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
7740 conditional variables.
7741 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
7742 clause is present.
7743 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7744 expand_omp_for_static_chunk): Handle lastprivate conditional.
7745 (expand_omp_for): Handle fd.lastprivate_conditional like
7746 fd.have_reductemp.
7747
7748 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7749
7750 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
7751 kernel does not exit cleanly.
7752 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
7753
7754 2019-05-24 Jason Merrill <jason@redhat.com>
7755
7756 Revert:
7757 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7758
7759 2019-05-24 Richard Biener <rguenther@suse.de>
7760
7761 PR testsuite/90607
7762 * tree-loop-distribution.c (struct partition): Add location
7763 member.
7764 (partition_alloc): Initialize all fields.
7765 (generate_memset_builtin): Use the location recorded in the
7766 partition for the generated call.
7767 (generate_memcpy_builtin): Likewise.
7768 (classify_partition): Record the location of a single store
7769 as location for the partition.
7770
7771 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7772
7773 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
7774 for lo-part.
7775
7776 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
7777
7778 PR target/90588
7779 * common/config/aarch64/aarch64-common.c
7780 (aarch64_rewrite_selected_cpu): Change local temporary variable
7781 type from unsigned long to uint64_t.
7782 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
7783 aarch64_get_extension_string_for_isa_flags): Change declaration to
7784 match new definition by replacing unsigned long with uint64_t.
7785
7786 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR target/90568
7789 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
7790 gen_attr_type just once instead of 4-7 times. Formatting fixes.
7791 Handle stack_protect_test_<mode> codegen similarly to corresponding
7792 sub instruction.
7793
7794 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
7795
7796 * config/i386/darwin.h: Reject -mfentry*.
7797 * doc/sourcebuild.texi: Document mfentry target support.
7798
7799 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7800
7801 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
7802 Rename to rs6000_global_entry_point_prologue_needed_p. Return
7803 false for PC-relative functions.
7804 (rs6000_output_function_prologue): Change called function name to
7805 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
7806 name,1" for PC-relative functions.
7807 (rs6000_elf_declare_function_name): Change called function name to
7808 rs6000_global_entry_point_prologue_needed_p.
7809
7810 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
7811
7812 PR target/90552
7813 * config/i386/i386.c (gen_rtx_cost):
7814 Use ix86_tune_cost instead of ix86_cost.
7815
7816 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7817 Michael Meissner <meissner@linux.ibm.com>
7818 Segher Boessenkool <segher@kernel.crashing.org>
7819
7820 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
7821 OPTION_MASK_PCREL.
7822 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
7823 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
7824 (rs6000_fndecl_pcrel_p): Likewise.
7825 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
7826 error if -mpcrel is requested without -mcpu=future.
7827 (rs6000_opt_masks): Add entry for pcrel.
7828 (rs6000_fndecl_pcrel_p): New function.
7829 (rs6000_pcrel_p): Likewise.
7830 * config/rs6000/rs6000.opt (mpcrel): New option.
7831 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
7832
7833 2019-05-23 Jan Hubicka <jh@suse.cz>
7834 Martin Liska <mliska@suse.cz>
7835
7836 PR tree-optimization/90576
7837 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
7838 poly_int_tree_p.
7839 (aliasing_component_refs_p): Fix three way size compare conditional;
7840 give up earlier in case we can not decide on equivalence.
7841
7842 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7843 Michael Meissner <meissner@linux.ibm.com>
7844 Segher Boessenkool <segher@kernel.crashing.org>
7845
7846 * config.gcc: Add future cpu.
7847 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
7848 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
7849 #define.
7850 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
7851 (RS6000_CPU): New instantiation for future cpu.
7852 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7853 PROCESSOR_FUTURE.
7854 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
7855 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
7856 * config/rs6000/rs6000-tables.opt: Regenerate.
7857 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
7858 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
7859 (rs6000_machine_from_flags): Handle future cpu.
7860 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
7861 PROCESSOR_POWER9 for now.
7862 (rs6000_adjust_cost): Likewise.
7863 (rs6000_issue_rate): Likewise.
7864 (rs6000_register_move_cost): Likewise.
7865 (rs6000_opt_masks): Add entry for future.
7866 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
7867 (MASK_FUTURE): New #define.
7868 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
7869 * config/rs6000/rs6000.opt (mfuture): New target option.
7870 * doc/invoke.texi (mcpu): Add future cpu.
7871
7872 2019-05-23 Martin Liska <mliska@suse.cz>
7873
7874 PR c++/90587
7875 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
7876 operation points to a temporary (pointed via tree_to_wide_ref)
7877 that is out of scope after the &.
7878
7879 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
7880
7881 PR c++/90592
7882 * doc/extend.texi (Function Names): Add missing word.
7883
7884 2019-05-23 Richard Biener <rguenther@suse.de>
7885
7886 PR tree-optimization/88440
7887 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
7888 at -O[2s]+.
7889 * tree-loop-distribution.c (generate_memset_builtin): Fold the
7890 generated call.
7891 (generate_memcpy_builtin): Likewise.
7892 (distribute_loop): Pass in whether to only distribute patterns.
7893 (prepare_perfect_loop_nest): Also allow size optimization.
7894 (pass_loop_distribution::execute): When optimizing a loop
7895 nest for size allow pattern replacement.
7896
7897 2019-05-23 Jakub Jelinek <jakub@redhat.com>
7898
7899 PR target/90568
7900 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
7901 of xor.
7902
7903 2019-05-23 Martin Liska <mliska@suse.cz>
7904
7905 PR sanitizer/90570
7906 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
7907 expression similarly to gimplify_decl_expr.
7908
7909 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7910
7911 * cse.c (cse_dump_path): s/dump_file/f.
7912
7913 2019-05-22 David Malcolm <dmalcolm@redhat.com>
7914
7915 PR c++/90462
7916 * diagnostic-format-json.cc: Include "selftest.h".
7917 (json_from_expanded_location): Only add "file" key for non-NULL
7918 file strings.
7919 (json_from_location_range): Don't add "start" and "finish"
7920 children if they are UNKNOWN_LOCATION.
7921 (selftest::test_unknown_location): New selftest.
7922 (selftest::test_bad_endpoints): New selftest.
7923 (selftest::diagnostic_format_json_cc_tests): New function.
7924 * json.cc (json::object::get): New function.
7925 (selftest::test_object_get): New selftest.
7926 (selftest::json_cc_tests): Call it.
7927 * json.h (json::object::get): New decl.
7928 * selftest-run-tests.c (selftest::run_tests): Call
7929 selftest::diagnostic_format_json_cc_tests.
7930 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
7931 decl.
7932
7933 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
7934 Andrew Stubbs <amd@codesourcery.com>
7935
7936 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
7937 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
7938 (kernel): Rename to...
7939 (main_kernel): ... this.
7940 (load_image): Load _init_array and _fini_array kernels.
7941 (run): Add argument for kernel to run.
7942 (main): Run init_array_kernel before main_kernel, and
7943 fini_array_kernel after.
7944 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
7945 amdgpu_hsa_kernel attribute on functions.
7946 (gcn_disable_constructors): Delete.
7947 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
7948 * config/gcn/crt0.c (size_t): Define.
7949 (_init_array, _fini_array): New.
7950 (__preinit_array_start, __preinit_array_end,
7951 __init_array_start, __init_array_end,
7952 __fini_array_start, __fini_array_end): Declare weak references.
7953
7954 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
7955
7956 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
7957
7958 2019-05-22 Jason Merrill <jason@redhat.com>
7959
7960 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7961
7962 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
7963
7964 PR target/88483
7965 * config/i386/i386-options.c (ix86_init_machine_status): Set
7966 stack_frame_required to true.
7967 * config/i386/i386.c (ix86_get_frame_size): New function.
7968 (ix86_frame_pointer_required): Replace get_frame_size with
7969 ix86_get_frame_size.
7970 (ix86_compute_frame_layout): Likewise.
7971 (ix86_find_max_used_stack_alignment): Changed to void. Set
7972 stack_frame_required.
7973 (ix86_finalize_stack_frame_flags): Always call
7974 ix86_find_max_used_stack_alignment. Replace get_frame_size with
7975 ix86_get_frame_size.
7976 * config/i386/i386.h (machine_function): Add stack_frame_required.
7977
7978 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
7979
7980 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
7981
7982 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
7983
7984 * common/config/aarch64/aarch64-common.c
7985 (struct aarch64_option_extension, struct processor_name_to_arch,
7986 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
7987 aarch64_contains_opt,
7988 aarch64_get_extension_string_for_isa_flags): Change type of
7989 variables storing flags to uint64_t.
7990 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
7991 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
7992 * config/aarch64/aarch64.c (struct processor,
7993 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
7994 aarch64_validate_march, aarch64_override_options,
7995 aarch64_option_print, aarch64_handle_attr_isa_flags,
7996 aarch64_declare_function_name, aarch64_start_file): Make flag
7997 variables uint64_t.
7998 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
7999 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
8000 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
8001 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
8002 * config/aarch64/driver-aarch64.c
8003 (struct aarch64_arch_extension, struct aarch64_core_data,
8004 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
8005 flag variables uint64_t.
8006 * doc/invoke.texi: Add documentation for new arguments.
8007
8008 2019-05-22 Richard Biener <rguenther@suse.de>
8009
8010 * alias.c (ao_ref_from_mem): Move stack-slot sharing
8011 rewrite ...
8012 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
8013
8014 2019-05-22 Martin Liska <mliska@suse.cz>
8015
8016 PR lto/90500
8017 * doc/extend.texi: Document the change.
8018
8019 2019-05-22 Richard Biener <rguenther@suse.de>
8020
8021 PR tree-optimization/90450
8022 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
8023 (mem_ref_hasher::equal): Check it.
8024 (mem_ref_alloc): Initialize it.
8025 (gather_mem_refs_stmt): Set it.
8026
8027 2019-05-22 Richard Biener <rguenther@suse.de>
8028
8029 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
8030 Add ABS_EXPR.
8031 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
8032 as ABSU_EXPR.
8033
8034 2019-05-22 Alan Modra <amodra@gmail.com>
8035
8036 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
8037 (ASM_CPU_SPEC): Conditionally add -many.
8038 * config/rs6000/rs6000.c (rs6000_machine): New static var.
8039 (rs6000_machine_from_flags, emit_asm_machine): New functions..
8040 (rs6000_file_start): ..extracted from here, and modified to
8041 test all ISA bits.
8042 (rs6000_output_function_prologue): Emit .machine as necessary.
8043 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
8044 power mnemonics.
8045 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
8046 added by check_vect_support_and_set_flags.
8047 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
8048 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
8049
8050 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
8051
8052 PR middle-end/90553
8053 * ira-lives.c (process_bb_node_lives): Consider defs
8054 for a call insn to be die before the call, not after.
8055
8056 * function.c (assign_parm_setup_block): Raise alignment of
8057 stacked parameter only for STRICT_ALIGNMENT targets.
8058
8059 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8060
8061 * config/rs6000/constraints.md (define_register_constraint "wz"):
8062 Delete.
8063 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8064 RS6000_CONSTRAINT_wz.
8065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8066 (rs6000_init_hard_regno_mode_ok): Adjust.
8067 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
8068 * doc/md.texi (Machine Constraints): Adjust.
8069
8070 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8071
8072 * config/rs6000/constraints.md (define_register_constraint "wl"):
8073 Delete.
8074 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8075 RS6000_CONSTRAINT_wl.
8076 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8077 (rs6000_init_hard_regno_mode_ok): Adjust.
8078 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
8079 * doc/md.texi (Machine Constraints): Adjust.
8080
8081 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8082
8083 * config/rs6000/constraints.md (define_register_constraint "wm"):
8084 Delete.
8085 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8086 RS6000_CONSTRAINT_wm.
8087 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8088 (rs6000_init_hard_regno_mode_ok): Adjust.
8089 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
8090 * doc/md.texi (Machine Constraints): Adjust.
8091
8092 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8093
8094 * config/rs6000/constraints.md (define_register_constraint "wk"):
8095 Delete.
8096 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8097 RS6000_CONSTRAINT_wk.
8098 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8099 (rs6000_init_hard_regno_mode_ok): Adjust.
8100 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
8101 * doc/md.texi (Machine Constraints): Adjust.
8102
8103 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8104
8105 * config/rs6000/constraints.md (define_register_constraint "wj"):
8106 Delete.
8107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8108 RS6000_CONSTRAINT_wj.
8109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8110 (rs6000_init_hard_regno_mode_ok): Adjust.
8111 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
8112 (VS_64dm): Delete.
8113 * config/rs6000/vsx.md: Ditto.
8114 * doc/md.texi (Machine Constraints): Adjust.
8115
8116 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8117
8118 * config/rs6000/constraints.md (define_register_constraint "wh"):
8119 Delete.
8120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8121 RS6000_CONSTRAINT_wh.
8122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8123 (rs6000_init_hard_regno_mode_ok): Adjust.
8124 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
8125 * doc/md.texi (Machine Constraints): Adjust.
8126
8127 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8128
8129 PR target/90547
8130 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
8131 Avoid calling gen_lowpart with CONST operand.
8132
8133 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
8134
8135 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
8136 field template_last_to_copy.
8137 (ssa_create_duplicates): Set it, and use it. Attempt to
8138 preserve more debug stmts.
8139
8140 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8141
8142 * config/i386/sse.md (VF1_AVX2): New mode iterator.
8143 (signbit<mode>2): New expander
8144
8145 2019-05-21 James Clarke <jrtc27@jrtc27.com>
8146
8147 PR bootstrap/87338
8148 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
8149 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
8150
8151 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8152
8153 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
8154 %ebx and %ecx bafore calling cpuid with leaf 1 or
8155 non-constant leaf argument.
8156
8157 2019-05-21 Alan Modra <amodra@gmail.com>
8158
8159 PR target/90545
8160 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
8161 power9 direct move cost.
8162 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
8163 Correct comments and rename functions to suit parameters.
8164
8165 2019-05-21 Richard Biener <rguenther@suse.de>
8166
8167 PR middle-end/90510
8168 * fold-const.c (fold_read_from_vector): New function.
8169 * fold-const.h (fold_read_from_vector): Declare.
8170 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
8171 single-element insert permutations. Canonicalize selector
8172 further and fix issue with last commit.
8173
8174 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8175
8176 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
8177 parameter with default value false to declaration.
8178 (split_edges_for_insertion): New inline function. Wrapper for
8179 split_critical_edges with for_edge_insertion_p = true.
8180 * tree-cfg.c (split_critical_edges): Don't split non-critical
8181 edges if for_edge_insertion_p is false. Fix whitespace.
8182 * tree-ssa-pre.c (pass_pre::execute): Call
8183 split_edges_for_insertion instead of split_critical_edges.
8184 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
8185 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
8186 (pass_data_sink_code): Update function name in the comment.
8187
8188 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8189
8190 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
8191 around is_value_included_in that knows how to handle BIT_AND_EXPR.
8192 (is_pred_expr_subset_of): Use the new function. Handle more cases where
8193 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
8194 positives.
8195
8196 2019-05-21 Martin Liska <mliska@suse.cz>
8197
8198 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
8199 an extra newline.
8200 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
8201 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
8202 vec_lvsr.
8203 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8204 Quote a C type.
8205 (rs6000_function_arg): Likewise.
8206 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
8207 (rs6000_expand_ternop_builtin): Use interval syntax.
8208 (get_element_number): Likewise.
8209 (altivec_expand_builtin): Likewise.
8210 (rs6000_get_function_versions_dispatcher): Quote target_clones.
8211
8212 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8213
8214 PR c++/59813
8215 PR target/90418
8216 * function.h (struct function): Add calls_eh_return member.
8217 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
8218 gimplifying __builtin_eh_return call.
8219 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
8220 to cfun.
8221 (expand_call_inline): Or in src_cfun->calls_eh_return into
8222 dst_cfun->calls_eh_return.
8223 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8224 cfun->calls_eh_return.
8225 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8226 * lto-streamer-out.c (output_struct_function_base): Write
8227 calls_eh_return.
8228
8229 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
8230
8231 PR rtl-optimization/43147
8232 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8233 IX86_BUILTIN_SHUFPD.
8234
8235 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8236
8237 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8238 (refs_may_alias_p_1): ... here; update stats.
8239 (refs_may_alias_p): Do not update stats here.
8240
8241 2019-05-20 Richard Biener <rguenther@suse.de>
8242
8243 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8244 doesn't produce pointers.
8245 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8246 the first operand points to.
8247
8248 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8249
8250 * tree-ssa-alias.c (compare_sizes): New function.
8251 (sompare_type_sizes): New function
8252 (aliasing_component_refs_p): Use it.
8253 (indirect_ref_may_alias_decl_p): Likewise.
8254
8255 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8256
8257 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8258
8259 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8260
8261 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8262 (LIBLSAN_EARLY_SPEC): Likewise.
8263 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8264
8265 2019-05-20 Martin Liska <mliska@suse.cz>
8266
8267 * config/i386/i386.c (ix86_libc_has_fast_function):
8268 Add ATTRIBUTE_UNUSED for the argument.
8269
8270 2019-05-20 Richard Biener <rguenther@suse.de>
8271
8272 * gimple-match-head.c: Include vec-perm-indices.h.
8273 * generic-match-head.c: Likewise.
8274 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8275 is included.
8276 * fold-const.c (fold_vec_perm): Export.
8277 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8278 (match.pd): ...here.
8279
8280 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8281
8282 * cfgloop.h (struct loop): Add simdlen member.
8283 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8284 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8285 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8286 as new argument to autovectorize_vector_sizes target hook. If
8287 loop->simdlen, pick up vector size where the vectorization factor
8288 is equal to loop->simd, and if there is none, fall back to the first
8289 successful one.
8290 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8291 caller.
8292 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8293 * omp-general.c (omp_max_vf): Likewise.
8294 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8295 * tree-vect-slp.c (vect_slp_bb): Likewise.
8296 * target.def (autovectorize_vector_sizes): Add ALL argument and
8297 document it.
8298 * doc/tm.texi: Adjust documentation.
8299 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8300 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8301 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8302 bool argument.
8303 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8304 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8305 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8306 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
8307 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8308 preferred vector size is not 512-bit or 256-bit, just put those
8309 unpreferred ones last.
8310
8311 2019-05-20 Martin Liska <mliska@suse.cz>
8312
8313 * targhooks.c (default_libc_has_fast_function): New function.
8314 * targhooks.h (default_libc_has_fast_function): Likewise.
8315
8316 2019-05-20 Martin Liska <mliska@suse.cz>
8317
8318 PR middle-end/90263
8319 * builtins.c (expand_builtin_memory_copy_args): When having a
8320 target with fast mempcpy implementation do now use memcpy.
8321 * config/i386/i386.c (ix86_libc_has_fast_function): New.
8322 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8323 * doc/tm.texi: Likewise.
8324 * doc/tm.texi.in: Likewise.
8325 * target.def:
8326 * expr.c (emit_block_move_hints): Add 2 new arguments.
8327 * expr.h (emit_block_move_hints): Bail out when libcall
8328 to memcpy would be used.
8329
8330 2019-05-20 Martin Liska <mliska@suse.cz>
8331
8332 * profile-count.c: Add vertical spacing in order
8333 to separate functions.
8334 * profile-count.h: Likewise.
8335
8336 2019-05-20 Martin Liska <mliska@suse.cz>
8337
8338 * profile-count.h: Do not use full qualified
8339 names if possible.
8340 * profile-count.c (profile_count::to_frequency): Likewise.
8341
8342 2019-05-20 Martin Liska <mliska@suse.cz>
8343
8344 * profile-count.h (enum profile_quality): Use capital letters
8345 for enum value names. Use the adjusted names.
8346 * profile-count.c: Use the adjusted names.
8347
8348 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8349
8350 * config/rs6000/constraints.md (define_register_constraint "wH"):
8351 Delete.
8352 (define_register_constraint "wI"): Delete.
8353 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8354 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8356 (rs6000_init_hard_regno_mode_ok): Adjust.
8357 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8358 resp. "d", or with "wa" as appropriate, all with "p8v".
8359 * config/rs6000/vsx.md: Ditto.
8360 * doc/md.texi (Machine Constraints): Adjust.
8361
8362 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8363
8364 * config/rs6000/constraints.md (define_register_constraint "wy"):
8365 Delete.
8366 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8367 RS6000_CONSTRAINT_wy.
8368 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8369 (rs6000_init_hard_regno_mode_ok): Adjust.
8370 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8371 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8372 (define_mode_attr Fisa): New.
8373 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8374 * doc/md.texi (Machine Constraints): Adjust.
8375
8376 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8377
8378 * config/rs6000/constraints.md (define_register_constraint "wu"):
8379 Delete.
8380 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8381 RS6000_CONSTRAINT_wu.
8382 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8383 (rs6000_init_hard_regno_mode_ok): Adjust.
8384 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8385 both with "p8v".
8386 (define_mode_attr Fa): Delete.
8387 * config/rs6000/vsx.md: Ditto.
8388 * doc/md.texi (Machine Constraints): Adjust.
8389
8390 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8391
8392 * config/rs6000/constraints.md (define_register_constraint "wJ"):
8393 Delete.
8394 (define_register_constraint "wK"): Delete.
8395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8396 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8398 (rs6000_init_hard_regno_mode_ok): Adjust.
8399 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8400 Replace "wK" constraint by "wH" with "p9v".
8401 * config/rs6000/vsx.md: Ditto.
8402 * doc/md.texi (Machine Constraints): Adjust.
8403
8404 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8405
8406 * config/rs6000/constraints.md (define_register_constraint "wb"):
8407 Delete.
8408 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8409 RS6000_CONSTRAINT_wb.
8410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8411 (rs6000_init_hard_regno_mode_ok): Adjust.
8412 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
8413 * config/rs6000/vsx.md: Ditto.
8414 * doc/md.texi (Machine Constraints): Adjust.
8415
8416 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8417
8418 * config/rs6000/constraints.md (define_register_constraint "wo"):
8419 Delete.
8420 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8421 RS6000_CONSTRAINT_wo.
8422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8423 (rs6000_init_hard_regno_mode_ok): Adjust.
8424 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
8425 * config/rs6000/altivec.md: Ditto.
8426 * doc/md.texi (Machine Constraints): Adjust.
8427
8428 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8429
8430 * config/darwin-c.c (darwin_register_objc_includes): Do not
8431 prepend the sysroot when building gnu-runtime header search
8432 paths.
8433
8434 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8435
8436 * config/darwin.c (darwin_file_end): Use switch_to_section ()
8437 instead of direct output of the asm.
8438
8439 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8440
8441 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
8442 argument to be type bool (was int before).
8443 (rs6000_emit_epilogue): Simplify some code. Declare some variables
8444 at first use. Use type bool for some variables. Fix a theoretical
8445 eh_return bug for svr4.
8446
8447 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8448
8449 * config/rs6000/rs6000.md (isa): New attribute.
8450 (enabled): New attribute.
8451
8452 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
8453
8454 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
8455 assemble_start_function and assemble_end_function.
8456
8457 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8458
8459 PR middle-end/89433
8460 * omp-general.c (oacc_verify_routine_clauses): Change formal
8461 parameters. Add checking if already marked with an OpenACC
8462 'routine' directive. Adjust all users.
8463
8464 PR middle-end/89433
8465 * omp-general.c (oacc_build_routine_dims): Move some of its
8466 processing into...
8467 (oacc_verify_routine_clauses): ... this new function.
8468 * omp-general.h (oacc_verify_routine_clauses): New prototype.
8469
8470 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8471
8472 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
8473 formating of picbase labels to match other ports.
8474
8475 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8476
8477 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
8478 in the generated code.
8479
8480 2019-05-16 Martin Sebor <msebor@redhat.com>
8481
8482 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
8483 identifiers, keywords, operators, and types in diagnostics. Correct
8484 quoting, spelling, and sentence capitalization issues.
8485 (expand_builtin_atomic_is_lock_free): Same.
8486 (fold_builtin_next_arg): Same.
8487 * cfgexpand.c (expand_one_var): Same.
8488 (tree_conflicts_with_clobbers_p): Same.
8489 (expand_asm_stmt): Same.
8490 (verify_loop_structure): Same.
8491 * cgraphunit.c (process_function_and_variable_attributes): Same.
8492 * collect-utils.c (collect_execute): Same.
8493 * collect2.c (maybe_run_lto_and_relink): Same.
8494 (is_lto_object_file): Same.
8495 (scan_prog_file): Same.
8496 * convert.c (convert_to_real_1): Same.
8497 * dwarf2out.c (dwarf2out_begin_prologue): Same.
8498 * except.c (verify_eh_tree): Same.
8499 * gcc.c (execute): Same.
8500 (eval_spec_function): Same.
8501 (run_attempt): Same.
8502 (driver::set_up_specs): Same.
8503 (compare_debug_auxbase_opt_spec_function): Same.
8504 * gcov-tool.c (unlink_gcda_file): Same.
8505 (do_merge): Same.
8506 (do_rewrite): Same.
8507 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
8508 * gimplify.c (gimplify_asm_expr): Same.
8509 (gimplify_adjust_omp_clauses): Same.
8510 * hsa-gen.c (gen_hsa_addr_insns): Same.
8511 (gen_hsa_insns_for_load): Same.
8512 (gen_hsa_cmp_insn_from_gimple): Same.
8513 (gen_hsa_insns_for_operation_assignment): Same.
8514 (gen_get_level): Same.
8515 (gen_hsa_alloca): Same.
8516 (omp_simple_builtin::generate): Same.
8517 (gen_hsa_atomic_for_builtin): Same.
8518 (gen_hsa_insns_for_call): Same.
8519 * input.c (dump_location_info): Same.
8520 * ipa-devirt.c (compare_virtual_tables): Same.
8521 * ira.c (ira_setup_eliminable_regset): Same.
8522 * lra-assigns.c (lra_assign): Same.
8523 * lra-constraints.c (lra_constraints): Same.
8524 * lto-streamer-in.c (lto_input_mode_table): Same.
8525 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
8526 (merge_and_complain): Same.
8527 (compile_offload_image): Same.
8528 (compile_images_for_offload_targets): Same.
8529 (debug_objcopy): Same.
8530 (run_gcc): Same.
8531 (main): Same.
8532 * opts.c (print_specific_help): Same.
8533 (parse_no_sanitize_attribute): Same.
8534 (print_help): Same.
8535 (handle_param): Same.
8536 * plugin.c (add_new_plugin): Same.
8537 (parse_plugin_arg_opt): Same.
8538 (try_init_one_plugin): Same.
8539 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
8540 operators, and types in diagnostics. Correct quoting and spelling
8541 issues.
8542 * read-rtl-function.c (parse_edge_flag_token): Same.
8543 (function_reader::parse_enum_value): Same.
8544 * reg-stack.c (check_asm_stack_operands): Same.
8545 * regcprop.c (validate_value_data): Same.
8546 * sched-rgn.c (make_pass_sched_fusion): Same.
8547 * stmt.c (check_unique_operand_names): Same.
8548 * targhooks.c (default_target_option_pragma_parse): Same.
8549 * tlink.c (recompile_files): Same.
8550 * toplev.c (process_options): Same.
8551 (do_compile): Same.
8552 * trans-mem.c (diagnose_tm_1): Same.
8553 (ipa_tm_scan_irr_block): Same.
8554 (ipa_tm_diagnose_transaction): Same.
8555 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
8556 format a tree code name in a diagnostic.
8557 (verify_types_in_gimple_min_lval): Same.
8558 (verify_types_in_gimple_reference): Same.
8559 (verify_gimple_call): Same.
8560 (verify_gimple_assign_unary): Same.
8561 (verify_gimple_assign_binary): Same.
8562 (verify_gimple_assign_ternary): Same.
8563 (verify_gimple_assign_single): Same.
8564 (verify_gimple_switch): Same.
8565 (verify_gimple_label): Same.
8566 (verify_gimple_phi): Same.
8567 (verify_gimple_in_seq): Same.
8568 (verify_eh_throw_stmt_node): Same.
8569 (collect_subblocks): Same.
8570 (gimple_verify_flow_info): Same.
8571 (do_warn_unused_result): Same.
8572 * tree-inline.c (expand_call_inline): Same.
8573 * tree-into-ssa.c (update_ssa): Same.
8574 * tree.c (tree_int_cst_elt_check_failed): Same.
8575 (tree_vec_elt_check_failed): Same.
8576 (omp_clause_operand_check_failed): Same.
8577 (verify_type_variant): Same.
8578 (verify_type): Same.
8579 * value-prof.c (verify_histograms): Same.
8580 * varasm.c (assemble_start_function): Same.
8581
8582 2019-05-16 Martin Sebor <msebor@redhat.com>
8583
8584 * config/i386/i386-expand.c (get_element_number): Quote keywords
8585 and other internal names in diagnostics. Adjust other diagnostic
8586 formatting issues noted by -Wformat-diag.
8587 * config/i386/i386-features.c
8588 (ix86_mangle_function_version_assembler_name): Same.
8589 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
8590 * config/i386/i386.c (ix86_function_type_abi): Same.
8591 (ix86_function_ms_hook_prologue): Same.
8592 (classify_argument): Same.
8593 (ix86_expand_prologue): Same.
8594 (ix86_md_asm_adjust): Same.
8595 (ix86_memmodel_check): Same.
8596
8597 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8598
8599 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
8600 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
8601 and fpxx modes.
8602
8603 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 PR target/90497
8606 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
8607 intrinsics without SSE/SSE2/SSSE3.
8608 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
8609 check.
8610 (*mmx_uavgv8qi3): Likewise.
8611
8612 2019-05-17 Richard Biener <rguenther@suse.de>
8613
8614 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
8615 VEC_PERM_EXPR as __VEC_PERM with -gimple.
8616
8617 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
8618
8619 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
8620 vec_sldw insn pattern.
8621
8622 2019-05-17 Richard Biener <rguenther@suse.de>
8623
8624 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
8625
8626 2019-05-17 Martin Liska <mliska@suse.cz>
8627
8628 PR driver/90496
8629 * toplev.c (output_stack_usage): With LTO and sanitizer it
8630 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
8631 has no file location.
8632
8633 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8634
8635 PR c++/90484
8636 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
8637 sz0 is equal to sz1, instead return false in that case.
8638
8639 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
8640 has non-constant expression, force sctx.lane and use two
8641 argument IFN_GOMP_SIMD_LANE instead of single argument.
8642 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
8643 two argument IFN_GOMP_SIMD_LANE without lhs.
8644 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
8645 member.
8646 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
8647 Define.
8648 (LOOP_REQUIRES_VERSIONING): Or in
8649 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
8650 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8651 simd_if_cond.
8652 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
8653 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
8654 from simd if clause if needed.
8655
8656 2019-05-16 Richard Biener <rguenther@suse.de>
8657
8658 * tree-affine.c (expr_to_aff_combination): New function split
8659 out from...
8660 (tree_to_aff_combination): ... here.
8661 (aff_combination_expand): Avoid building a GENERIC tree.
8662
8663 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
8664
8665 * cgraphunit.c (cgraph_node::expand_thunk): Remove
8666 assemble_start_function and assemble_end_function calls.
8667 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
8668 assemble_start_function and assemble_end_function.
8669 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
8670 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
8671 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
8672 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
8673 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
8674 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
8675 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
8676 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
8677 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8678 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8679 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8680 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
8681 Likewise.
8682 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8683 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
8684 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
8685 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
8686 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
8687 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
8688 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
8689 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
8690 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8691 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8692 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8693 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8694 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
8695 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
8696 Likewise.
8697 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8698 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8699 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
8700
8701 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
8702
8703 * tree-ssa-alias.c (alias_stats): Add
8704 aliasing_component_refs_p_may_alias and
8705 aliasing_component_refs_p_no_alias.
8706 (dump_alias_stats): Print aliasing_component_refs_p stats.
8707 (aliasing_component_refs_p): Update stats.
8708
8709 2019-05-16 Martin Liska <mliska@suse.cz>
8710
8711 PR lto/90500
8712 * multiple_target.c (expand_target_clones): Do not allow
8713 target_clones being used with a symbol that is an alias.
8714
8715 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
8716
8717 PR tree-optimization/90394
8718 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
8719 positives rather than ICE for cases where (code2 == NE_EXPR
8720 && code1 == BIT_AND_EXPR).
8721
8722 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8723
8724 PR fortran/90329
8725 * tree-core.h (struct tree_decl_common): Document
8726 decl_nonshareable_flag for PARM_DECLs.
8727 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
8728 * calls.c (expand_call): Don't try tail call if caller
8729 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
8730 passed on the stack and callee needs to pass any arguments on the
8731 stack.
8732 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8733 else if instead of series of mutually exclusive ifs. Handle
8734 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
8735 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8736
8737 * lto-streamer.h (LTO_major_version): Bump to 9.
8738
8739 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
8740
8741 PR tree-optimization/90106
8742 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
8743 new parameter as new internal function call, also move it to new
8744 basic block.
8745 (use_internal_fn): Pass internal function call to
8746 shrink_wrap_one_built_in_call_with_conds.
8747
8748 2019-05-15 Jakub Jelinek <jakub@redhat.com>
8749
8750 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
8751 max_vf to 1.
8752 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
8753 safelen_int and set loop->dont_vectorize.
8754
8755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 PR target/89021
8758 * config/i386/i386-builtin.def: Enable MMX intrinsics with
8759 SSE/SSE2/SSSE3.
8760 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
8761 Likewise.
8762 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
8763 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
8764 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
8765 is defined.
8766
8767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8768
8769 PR target/89021
8770 * config/i386/mmx.md (*vec_dupv2sf): Changed to
8771 define_insn_and_split to support SSE emulation.
8772 (*vec_extractv2sf_0): Likewise.
8773 (*vec_extractv2sf_1): Likewise.
8774 (*vec_extractv2si_0): Likewise.
8775 (*vec_extractv2si_1): Likewise.
8776 (*vec_extractv2si_zext_mem): Likewise.
8777 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
8778 (vec_extractv2sf_1 splitter): Likewise.
8779 (vec_extractv2sfsf): Likewise.
8780 (vec_setv2si): Likewise.
8781 (vec_extractv2si_1 splitter): Likewise.
8782 (vec_extractv2sisi): Likewise.
8783 (vec_setv4hi): Likewise.
8784 (vec_extractv4hihi): Likewise.
8785 (vec_setv8qi): Likewise.
8786 (vec_extractv8qiqi): Likewise.
8787 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8788 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
8789 (vec_extractv2sisi): Likewise.
8790 (vec_extractv4hihi): Likewise.
8791 (vec_extractv8qiqi): Likewise.
8792 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8793 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
8794 (vec_initv2sisi): Likewise.
8795 (vec_initv4hihi): Likewise.
8796 (vec_initv8qiqi): Likewise.
8797 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
8798 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
8799 (vec_setv4hi): Likewise.
8800 (vec_setv8qi): Likewise.
8801
8802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8803
8804 PR target/89021
8805 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
8806 TARGET_MMX_WITH_SSE.
8807 (MMXMODE:*mov<mode>_internal): Likewise.
8808 (MMXMODE:movmisalign<mode>): Likewise.
8809
8810 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
8811
8812 PR target/89021
8813 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
8814 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
8815 (sse2_cvtpd2pi): Ditto.
8816 (sse2_cvttpd2pi): Ditto.
8817 (*vec_concatv2sf_sse4_1): Ditto.
8818 (*vec_concatv2sf_sse): Ditto.
8819 (*vec_concatv2si_sse4_1): Ditto.
8820 (*vec_concatv2si): Ditto.
8821 (*vec_concatv4si_0): Ditto.
8822 (*vec_concatv2di_0): Ditto.
8823
8824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8825
8826 PR target/89021
8827 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
8828
8829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8830
8831 PR target/89021
8832 * config/i386/sse.md (ssse3_palignrdi): Changed to
8833 define_insn_and_split to support SSE emulation.
8834
8835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8836
8837 PR target/89021
8838 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
8839
8840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8841
8842 PR target/89021
8843 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
8844 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8845 SSE emulation.
8846
8847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8848
8849 PR target/89021
8850 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
8851 or TARGET_MMX_WITH_SSE.
8852 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
8853
8854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8855
8856 PR target/89021
8857 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
8858
8859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8860
8861 PR target/89021
8862 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
8863 Changed to define_insn_and_split to support SSE emulation.
8864
8865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8866
8867 PR target/89021
8868 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
8869 Changed to define_insn_and_split to support SSE emulation.
8870
8871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8872
8873 PR target/89021
8874 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
8875 (*mmx_<emms>): This.
8876 (mmx_<emms>): New expander.
8877
8878 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8879
8880 PR target/89021
8881 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
8882 support.
8883 (*sse2_umulv1siv1di3): Add SSE2 emulation.
8884
8885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8886
8887 PR target/89021
8888 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
8889
8890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8891
8892 PR target/89021
8893 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
8894
8895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8896
8897 PR target/89021
8898 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
8899 TARGET_MMX_WITH_SSE.
8900 (*mmx_uavgv4hi3): Add SSE emulation.
8901
8902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8903
8904 PR target/89021
8905 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
8906 and TARGET_MMX_WITH_SSE.
8907 (*mmx_uavgv8qi3): Add SSE emulation.
8908
8909 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8910
8911 PR target/89021
8912 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
8913 maskmovdqu for __MMX_WITH_SSE__.
8914
8915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8916
8917 PR target/89021
8918 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
8919 TARGET_MMX and TARGET_MMX_WITH_SSE.
8920 (*mmx_umulv4hi3_highpart): Add SSE emulation.
8921
8922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8923
8924 PR target/89021
8925 * config/i386/mmx.md (mmx_pmovmskb): Changed to
8926 define_insn_and_split to support SSE emulation.
8927
8928 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 PR target/89021
8931 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
8932 and TARGET_MMX_WITH_SSE.
8933 (mmx_<code>v8qi3): Likewise.
8934 (smaxmin:<code>v4hi3): New.
8935 (umaxmin:<code>v8qi3): Likewise.
8936 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
8937 (umaxmin:*mmx_<code>v8qi3): Likewise.
8938
8939 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8940
8941 PR target/89021
8942 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
8943 TARGET_MMX_WITH_SSE.
8944 (*mmx_pinsrw): Add SSE emulation.
8945
8946 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8947
8948 PR target/89021
8949 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
8950
8951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8952
8953 PR target/89021
8954 * config/i386/sse.md (sse_cvtpi2ps): Changed to
8955 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8956 SSE emulation.
8957
8958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8959
8960 PR target/89021
8961 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
8962 (sse_cvttps2pi): Likewise.
8963
8964 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8965
8966 PR target/89021
8967 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
8968 TARGET_MMX_WITH_SSE.
8969 (mmx_pshufw_1): Add SSE emulation.
8970 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
8971 TARGET_MMX_WITH_SSE to support SSE emulation.
8972
8973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8974
8975 PR target/89021
8976 * config/i386/constraints.md (Yw): New constraint.
8977 * config/i386/mmx.md (*vec_dupv2si): Changed to
8978 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
8979 support SSE emulation.
8980
8981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8982
8983 PR target/89021
8984 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
8985 TARGET_MMX_WITH_SSE.
8986 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
8987 support.
8988 (mmx_gt<mode>3): Likewise.
8989
8990 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8991
8992 PR target/89021
8993 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
8994 TARGET_MMX_WITH_SSE. Add SSE support.
8995
8996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8997
8998 PR target/89021
8999 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
9000 TARGET_MMX_WITH_SSE.
9001 (any_logic:<code><mode>3): New.
9002 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
9003 Add SSE support.
9004
9005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9006
9007 PR target/89021
9008 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
9009 TARGET_MMX_WITH_SSE. Add SSE emulation.
9010 (mmx_<shift_insn><mode>3): Likewise.
9011 (ashr<mode>3): New.
9012 (<shift_insn><mode>3): Likewise.
9013
9014 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9015
9016 PR target/89021
9017 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
9018 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
9019
9020 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 PR target/89021
9023 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
9024 TARGET_MMX_WITH_SSE.
9025 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
9026 SSE support.
9027
9028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9029
9030 PR target/89021
9031 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
9032 TARGET_MMX_WITH_SSE.
9033 (mulv4hi3): New.
9034 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9035 support.
9036
9037 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9038
9039 PR target/89021
9040 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
9041 (plusminus:mmx_<plusminus_insn><mode>3): Check
9042 TARGET_MMX_WITH_SSE.
9043 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
9044 (<plusminus_insn><mode>3): New.
9045 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
9046 (*mmx_<plusminus_insn><mode>3): Likewise.
9047
9048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9049
9050 PR target/89021
9051 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
9052 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
9053 prototype.
9054 * config/i386/mmx.m (mmx_punpckhbw): Changed to
9055 define_insn_and_split to support SSE emulation.
9056 (mmx_punpcklbw): Likewise.
9057 (mmx_punpckhwd): Likewise.
9058 (mmx_punpcklwd): Likewise.
9059 (mmx_punpckhdq): Likewise.
9060 (mmx_punpckldq): Likewise.
9061
9062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9063 Uros Bizjak <ubizjak@gmail.com>
9064
9065 PR target/89021
9066 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
9067 New function.
9068 (ix86_split_mmx_pack): Likewise.
9069 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
9070 New prototype.
9071 (ix86_split_mmx_pack): Likewise.
9072 * config/i386/i386.md (mmx_isa): New.
9073 (enabled): Also check mmx_isa.
9074 * config/i386/mmx.md (any_s_truncate): New code iterator.
9075 (s_trunsuffix): New code attr.
9076 (mmx_packsswb): Removed.
9077 (mmx_packssdw): Likewise.
9078 (mmx_packuswb): Likewise.
9079 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
9080 MMX packsswb/packuswb with SSE2.
9081 (mmx_packssdw): Likewise.
9082 * config/i386/predicates.md (register_mmxmem_operand): New.
9083
9084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9085
9086 PR target/89021
9087 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9088 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
9089 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
9090 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
9091 (ix86_vector_mode_supported_p): Likewise.
9092 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
9093
9094 2019-05-15 Martin Liska <mliska@suse.cz>
9095
9096 PR middle-end/90478
9097 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9098 Check for overflow.
9099
9100 2019-05-15 Richard Biener <rguenther@suse.de>
9101
9102 * tree-into-ssa.c (pass_build_ssa::execute): Run
9103 update_address_taken before going into SSA.
9104
9105 2019-05-15 Richard Biener <rguenther@suse.de>
9106
9107 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
9108 as __BIT_FIELD_REF with type with -gimple.
9109
9110 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
9111
9112 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
9113 semantically equivalent branches (left over after prior refactorings).
9114
9115 2019-05-15 Richard Biener <rguenther@suse.de>
9116
9117 PR tree-optimization/88828
9118 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
9119 bogus check.
9120
9121 2019-05-14 Richard Biener <rguenther@suse.de>
9122
9123 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
9124 as __VIEW_CONVERT with -gimple.
9125
9126 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9127
9128 PR target/82920
9129 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
9130 Darwin.
9131
9132 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9133
9134 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
9135 define_split to become a define_insn_and_split.
9136
9137 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9138
9139 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
9140 arguments.
9141 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
9142 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
9143 (sibcall_epilogue): Adjust.
9144 (epilogue): Adjust.
9145
9146 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9147
9148 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
9149 to unsupported ones.
9150 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
9151 * config.host: Likewise.
9152 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
9153 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
9154 __svr4__]: Remove "brand" fallback.
9155 [!KSTAT_DATA_STRING]: Remove.
9156 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
9157 to *-*-solaris2*.
9158 (comdat_group): Likewise.
9159 (set_have_as_tls): Likewise.
9160 (gcc_cv_target_dl_iterate_phdr): Likewise.
9161 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
9162 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
9163 * configure: Regenerate.
9164 * doc/install.texi: Simplify Solaris target triplets.
9165 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
9166 (Specific, *-*-solaris2*): Document Solaris 10 removal.
9167 Remove Solaris 10 references.
9168 Remove obsolete Solaris bug reference.
9169 (Specific, sparc-sun-solaris2.10): Remove.
9170
9171 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
9172
9173 * config/i386/i386.md (any_div): New code iterator.
9174 (paired_mod): New code attribute.
9175 (sgnprefix): Handle DIV and UDIV RTXes.
9176 (u): Ditto.
9177 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
9178 and udivmod<mode>4 patterns using any_div code iterator.
9179 (divmod splitters): Macroize splitters using any_div code iterator.
9180 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
9181 (*udivmodsi4_pow2_zext_2): Ditto.
9182 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
9183 and *udivmod<mode>4_noext patterns using any_div code iterator.
9184 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
9185 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
9186 patterns using any_div code iterator.
9187 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
9188 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
9189 patterns using any_div code iterator.
9190 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
9191 udivmodhiqi3 patterns using any_extend code iterator.
9192
9193 2019-05-14 Richard Biener <rguenther@suse.de>
9194 H.J. Lu <hongjiu.lu@intel.com>
9195
9196 PR tree-optimization/88828
9197 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9198 permuting in a single non-constant element not extracted
9199 from a vector.
9200
9201 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9202
9203 * internal-fn.def (SIGNBIT): New.
9204 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
9205 defined.
9206 (signbitv4sf2): Likewise.
9207
9208 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
9209
9210 PR target/90357
9211 * config/mips/mips.c (mips_split_move): Skip forward SRC into
9212 next insn when the SRC reg is dead.
9213
9214 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
9215
9216 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
9217 (alloc_cand_and_find_basis): Ditto.
9218 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
9219 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
9220 (create_add_imm_cand, slsr_process_cast): Ditto.
9221 (slsr_process_copy, replace_mult_candidate): Ditto.
9222 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9223 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9224 (pass_strength_reduction::execute): Init the first NULL element.
9225
9226 2019-05-13 Nathan Sidwell <nathan@acm.org>
9227
9228 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
9229 (run_attempt): Reformat line break.
9230
9231 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
9232
9233 PR target/90418
9234 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9235 data registers in sibcall epilogues.
9236 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9237
9238 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
9239
9240 PR target/89221
9241 * configure.ac (--enable-frame-pointer):
9242 Disable by default for cygwin and mingw.
9243 * configure: Regenerate.
9244
9245 2019-05-13 Nathan Sidwell <nathan@acm.org>
9246
9247 * dwarf2out.c (breakout_comdat_types): Move comment to correct
9248 piece of code.
9249 (const_ok_for_output_1): Balance parens around #if/#else/#endif
9250 (gen_member_die): Move abstract origin check earlier. Only VARs
9251 can be static_inline_p. Simplify splicing control flow.
9252
9253 2019-05-13 Richard Biener <rguenther@suse.de>
9254
9255 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9256 VIEW_CONVERT_EXPR.
9257 (vect_build_slp_tree_1): Likewise.
9258
9259 2019-05-13 Richard Biener <rguenther@suse.de>
9260
9261 PR tree-optimization/90402
9262 * tree-if-conv.c (tree_if_conversion): Value number only
9263 the loop body by making the latch an exit of the region
9264 as well.
9265 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9266 processing PHIs.
9267 (do_rpo_vn): Deal with multiple edges into the entry block
9268 that are not backedges inside the region by skipping PHIs
9269 of the entry block.
9270
9271 2019-05-13 Richard Biener <rguenther@suse.de>
9272
9273 PR tree-optimization/90316
9274 * tree-ssa-pre.c (insert_aux): Fold into ...
9275 (insert): ... this function. Use a RPO walk to reduce the
9276 number of required iterations.
9277
9278 2019-05-13 Martin Liska <mliska@suse.cz>
9279
9280 PR tree-optimization/90416
9281 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9282 string instead of passing the second part as va_arg argument.
9283
9284 2019-05-13 Martin Liska <mliska@suse.cz>
9285
9286 PR gcov-profile/90380
9287 * gcov.c (handle_cycle): Do not support zero cycle count,
9288 it should not be possible.
9289 (path_contains_zero_cycle_arc): New function.
9290 (circuit): Ignore zero cycle arc counts.
9291
9292 2019-05-13 Martin Liska <mliska@suse.cz>
9293
9294 PR gcov-profile/90380
9295 * gcov.c (enum loop_type): Remove the enum and
9296 the operator.
9297 (handle_cycle): Assert that we should not reach
9298 a negative count.
9299 (circuit): Use loop_found instead of a tri-state loop_type.
9300 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9301 happen.
9302
9303 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9304
9305 PR target/82920
9306 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9307 (ix86_output_indirect_branch_via_reg): Use output mechanism
9308 accounting for __USER_LABEL_PREFIX__.
9309 (ix86_output_indirect_branch_via_push): Likewise.
9310 (ix86_output_function_return): Likewise.
9311 (ix86_output_indirect_function_return): Likewise.
9312
9313 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
9314
9315 * doc/md.texi: Document use of code attributes in rtx patterns.
9316 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9317 * read-rtl.c (find_code): Split out search loops into...
9318 (maybe_find_code): ...this new function.
9319 (check_code_iterator): Make the error message more informative.
9320 (check_code_attribute): New function.
9321 (rtx_reader::rtx_alloc_for_name): Likewise.
9322 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9323 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9324 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9325 <max_opp> directly as an rtx code instead of via a match_operator.
9326 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9327 (<su>abd<mode>_3): Update accordingly.
9328
9329 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9330
9331 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9332 is given, print the state of the EH "save world" computation for
9333 Darwin.
9334
9335 2019-05-11 Jakub Jelinek <jakub@redhat.com>
9336
9337 PR c++/59813
9338 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9339 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9340
9341 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
9342
9343 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9344 Use pinsrd for TARGET_SSE4_1.
9345 * config/i386/sse.md (movdi_to_sse): Ditto.
9346
9347 2019-05-10 Richard Biener <rguenther@suse.de>
9348
9349 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9350 (do_rpo_vn): Initialize next_value_id.
9351
9352 2019-05-10 Martin Liska <mliska@suse.cz>
9353
9354 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9355 Fix plural form.
9356
9357 2019-05-10 Jakub Jelinek <jakub@redhat.com>
9358
9359 PR tree-optimization/90385
9360 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9361 arguments of the exit phis.
9362
9363 PR c++/90383
9364 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9365 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9366 id->do_not_fold.
9367 (copy_tree_body_r): Likewise.
9368 (copy_fn): Set id.do_not_fold to true.
9369
9370 2019-05-10 Martin Liska <mliska@suse.cz>
9371
9372 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9373 Reapply changes from r269790.
9374
9375 2019-05-10 Martin Liska <mliska@suse.cz>
9376
9377 PR middle-end/90340
9378 * doc/invoke.texi: New params.
9379 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9380 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9381 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9382 Use it.
9383 * tree-switch-conversion.h (struct jump_table_cluster):
9384 Likewise.
9385
9386 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
9387
9388 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9389
9390 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
9391
9392 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9393
9394 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
9395
9396 PR rtl-optimization/88879
9397 * sel-sched.c (sel_target_adjust_priority): Remove assert.
9398
9399 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
9400
9401 PR target/90405
9402 * config/arm/arm.c (callee_saved_reg_p): Move before
9403 thumb_find_work_register.
9404 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9405 thumb_find_work_register. Only call df_get_live_out once.
9406 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9407 (thumb_find_work_register): Use
9408 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9409 algorithms to locate a spare call clobbered reg.
9410
9411 2019-05-09 Martin Liska <mliska@suse.cz>
9412
9413 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
9414 and MAX_EXPR in GIMPLE FE format.
9415
9416 2019-05-09 Martin Liska <mliska@suse.cz>
9417
9418 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
9419 * gimple-pretty-print.c (dump_gimple_bb_header):
9420 Dump BB count.
9421 (pp_cfg_jump): Dump edge probability.
9422 * profile-count.c (profile_quality_as_string): Simplify
9423 with a static array.
9424 (parse_profile_quality): New function.
9425 (profile_count::dump): Simplify with a static array.
9426 (profile_count::from_gcov_type): Add new argument.
9427 * profile-count.h (parse_profile_quality): Likewise.
9428 * predict.h (set_hot_bb_threshold): New.
9429 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9430 New param.
9431 * predict.c (get_hot_bb_threshold): Set from the new param.
9432 (set_hot_bb_threshold): New.
9433
9434 2019-05-09 Richard Biener <rguenther@suse.de>
9435
9436 PR tree-optimization/90395
9437 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
9438 rewrite vector stores that throw internally.
9439
9440 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
9441
9442 * cif-code.def (CHKP): Remove.
9443
9444 PR target/89221
9445 * configure.ac (--enable-frame-pointer): Disable by default for
9446 GNU systems.
9447 * configure: Regenerate.
9448
9449 2019-05-09 Alan Modra <amodra@gmail.com>
9450
9451 PR target/89271
9452 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
9453 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
9454 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
9455 cost for general <-> vsx when direct moves are available.
9456 Cost union classes at minimal cost for any reg in the class.
9457 Correct calculation for moves between vsx, float, and altivec.
9458 Don't return a low cost for moves between special regs. Don't
9459 use hard coded register numbers.
9460 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
9461 (rs6000_ira_change_pseudo_allocno_class): New function.
9462 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
9463 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
9464 alternatives.
9465 (movsi_internal1): Don't disparage vector alternatives.
9466 (mov<mode>_internal): Likewise, excepting alternative that
9467 will be split.
9468 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
9469 we <- b alternative.
9470
9471 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9472
9473 PR c++/59813
9474 PR tree-optimization/89060
9475 * tree-ssa-live.h (live_vars_map): New typedef.
9476 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
9477 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
9478 (struct compute_live_vars_data): New type.
9479 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
9480 live_vars_at_stmt, destroy_live_vars): New functions.
9481 * tree-tailcall.c: Include tree-ssa-live.h.
9482 (live_vars, live_vars_vec): New global variables.
9483 (find_tail_calls): Perform variable life analysis before punting.
9484 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
9485 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
9486 member.
9487 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
9488 Perform variable life analysis to select variables that really need
9489 clobbers added.
9490 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
9491 instead set id->eh_landing_pad_dest and assert it is the same.
9492 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
9493
9494 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
9495 Richard Earnshaw <rearnsha@arm.com>
9496
9497 PR target/88167
9498 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
9499 function.
9500 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
9501 (thumb1_compute_save_core_reg_mask): Don't force a spare work
9502 register if both the epilogue and prologue can use call-clobbered
9503 regs.
9504 (thumb1_unexpanded_epilogue): Use
9505 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
9506 picking temporaries for restoring high regs to match that of the
9507 prologue where possible.
9508 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
9509 the list of work registers. Detect if the return address is still live
9510 at the end of the prologue and avoid using it for a work register if so.
9511 If the return address is not live, add LR to the list of pushable regs
9512 after the first pass.
9513
9514 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9515
9516 PR tree-optimization/90078
9517 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
9518 (INFTY): Increase the value for infinite cost.
9519 (struct comp_cost): Promote type of members to int64_t.
9520 (infinite_cost): Don't set complexity in initialization.
9521 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
9522 overflows to infinite_cost.
9523 (adjust_setup_cost): Promote type of parameter and cost computation
9524 to int64_t.
9525 (struct ainc_cost_data, struct iv_ca): Promote type of member to
9526 int64_t.
9527 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
9528 cost computation to int64_t.
9529 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
9530 int64_t's format specifier in dump.
9531
9532 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9533
9534 PR tree-optimization/90240
9535 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
9536 with respect to scaling factor pre-computed for each basic block.
9537 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
9538 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
9539 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
9540 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
9541 live range for array of loop's basic blocks. Cleanup aux field of
9542 loop's basic blocks.
9543
9544 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9545
9546 PR tree-optimization/90356
9547 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
9548
9549 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
9550
9551 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
9552 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
9553 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
9554 (ix86_handle_option): Handle -mavx512bf16.
9555 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
9556 to extra_headers.
9557 * config/i386/avx512bf16vlintrin.h: New.
9558 * config/i386/avx512bf16intrin.h: New.
9559 * config/i386/cpuid.h (bit_AVX512BF16): New.
9560 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
9561 * config/i386/i386-builtin-types.def: Add new types.
9562 * config/i386/i386-builtin.def: Add new builtins.
9563 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9564 __AVX512BF16__.
9565 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
9566 (ix86_option_override_internal): Handle BF16.
9567 (ix86_valid_target_attribute_inner_p): Ditto.
9568 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
9569 * config/i386/i386-builtin.c (enum processor_features): Add
9570 F_AVX512BF16.
9571 (static const _isa_names_table isa_names_table): Ditto.
9572 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
9573 (PTA_AVX512BF16): Ditto.
9574 * config/i386/i386.opt: Add -mavx512bf16.
9575 * config/i386/immintrin.h: Include avx512bf16intrin.h
9576 and avx512bf16vlintrin.h.
9577 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
9578 avx512f_cvtneps2bf16_<mode><mask_name>,
9579 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
9580 * config/i386/subst.md (mask_half): Add new subst.
9581 * doc/invoke.texi: Document -mavx512bf16.
9582
9583 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9584
9585 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
9586 Delete declaration.
9587 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
9588 (rs6000_debug_legitimize_reload_address): Delete.
9589 (rs6000_legitimize_reload_address_ptr): Delete.
9590 (rs6000_option_override_internal): Adjust.
9591 (mem_operand_gpr): Adjust comment.
9592 (legitimate_lo_sum_address_p): Ditto.
9593 (rs6000_legitimize_reload_address): Delete.
9594 (rs6000_debug_legitimize_reload_address): Delete.
9595 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
9596
9597 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
9598
9599 PR target/89765
9600 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9601 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
9602 to compute vector element selector for both constant and variable
9603 operands.
9604
9605 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9606
9607 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
9608 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
9609 ashrdi3_cvt using SWI48 mode iterator.
9610
9611 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9612
9613 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
9614 (aarch64_<su>abd<mode>_3): Likewise.
9615 (*aarch64_<su>abd<mode>_3): New define_insn.
9616 (<sur>sad<vsi2qi>): New define_expand.
9617 * config/aarch64/iterators.md: Added MAX_OPP attribute.
9618 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
9619 (build_vect_cond_expr): Likewise.
9620
9621 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9622
9623 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
9624 clobbers outside of accessible_reg_set.
9625 * config/i386/i386.c (ix86_conditional_register_usage):
9626 Disable register sets by clearing corresponding bits in
9627 accessible_reg_set. Do not set corresponding bits in fixed_regs,
9628 call_used_regs and don't clear corresponding reg_names array members.
9629
9630 2019-05-07 Richard Biener <rguenther@suse.de>
9631
9632 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
9633 not specified still compute a comp_vectype for invariant
9634 compares.
9635
9636 2019-05-07 Richard Biener <rguenther@suse.de>
9637
9638 PR tree-optimization/90316
9639 * tree-ssa-pre.c (translate_vuse_through_block): When
9640 same_valid is NULL do not bother to search for a virtual
9641 PHI continuation.
9642 (phi_translate_1): When operands changed we cannot keep
9643 the same value-number so do not bother to ask whether
9644 that's possible from translate_vuse_through_block.
9645
9646 2019-05-07 Martin Liska <mliska@suse.cz>
9647
9648 * bitmap.c (bitmap_register): Come up with
9649 alloc_descriptor_max_uid and assign it for
9650 a new bitmap.
9651 (register_overhead): Use get_descriptor as
9652 a descriptor.
9653 (release_overhead): New.
9654 (bitmap_elem_to_freelist): Call it.
9655 (bitmap_elt_clear_from): Likewise.
9656 (bitmap_obstack_free): Likewise.
9657 (bitmap_move): Sensitively release memory.
9658 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
9659 (bitmap_initialize): Initialize alloc_descriptor to zero.
9660 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
9661
9662 2019-05-07 Richard Biener <rguenther@suse.de>
9663
9664 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
9665 we build a SLP node. Remove max_size and limiting.
9666 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
9667
9668 2019-05-07 Richard Biener <rguenther@suse.de>
9669
9670 PR tree-optimization/90316
9671 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
9672 limit by reference.
9673 (walk_non_aliased_vuses): Take walking limit argument.
9674 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
9675 walking if it is reached instead of just counting.
9676 (get_continuation_for_phi): Likewise.
9677 (walk_non_aliased_vuses): Likewise, instead of leaving counter
9678 limiting to the callback.
9679 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
9680 (vn_reference_lookup_3): Likewise.
9681 (vn_reference_lookup_pieces): Likewise.
9682 (vn_reference_lookup): Likewise.
9683 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
9684 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
9685 (avail_exprs_stack::lookup_avail_expr): Likewise.
9686
9687 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
9688
9689 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
9690 for comparaible types in the second direction even if first one
9691 hits incomparable type.
9692
9693 2019-05-07 Richard Biener <rguenther@suse.de>
9694
9695 PR lto/90369
9696 * lto-wrapper.c (debug_objcopy): Use the original filename
9697 including archive offset for the filename used for -save-temps.
9698
9699 2019-05-07 Li Jia He <helijia@linux.ibm.com>
9700
9701 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
9702 detection.
9703
9704 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
9705 Hongtao Liu <hongtao.liu@intel.com>
9706
9707 PR target/89750
9708 PR target/86444
9709 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
9710 Modified, original implementation isn't correct.
9711
9712 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9713
9714 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
9715 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
9716 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
9717 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
9718 (FRAME_POINTER_REGNUM): Change numbering.
9719 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
9720 (alt_reg_names): Adjust.
9721 (rs6000_conditional_register_usage): Don't mark hard register 64 as
9722 fixed.
9723 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9724 (DWARF_FRAME_REGISTERS): Delete.
9725 (DWARF2_FRAME_REG_OUT): Fix whitespace.
9726 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9727 Adjust.
9728 (REG_ALLOC_ORDER): Adjust.
9729 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
9730 (REG_CLASS_CONTENTS): Adjust.
9731 (RETURN_ADDR_RTX): Change comment.
9732 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
9733 instead of 67.
9734 (REGISTER_NAMES): Adjust.
9735 (ADDITIONAL_REGISTER_NAMES): Adjust.
9736 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9737
9738 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9739
9740 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
9741 Delete.
9742 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9743 (DWARF_FRAME_REGISTERS): Adjust.
9744 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9745 Adjust.
9746 (REG_ALLOC_ORDER): Adjust.
9747 (enum reg_class): Delete SPR_REGS.
9748 (REG_CLASS_NAMES): Delete SPR_REGS.
9749 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
9750 (REGISTER_NAMES): Adjust.
9751 (ADDITIONAL_REGISTER_NAMES): Adjust.
9752 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9753 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
9754 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
9755 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
9756 (htm_spr_regno): Delete.
9757 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
9758 argument.
9759 (rs6000_dbx_register_number): Adjust.
9760
9761 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9762
9763 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
9764
9765 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9766
9767 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
9768 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
9769
9770 2019-05-06 Jakub Jelinek <jakub@redhat.com>
9771
9772 PR tree-optimization/88709
9773 PR tree-optimization/90271
9774 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
9775 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
9776 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
9777 variable.
9778 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
9779 of the store merging group is larger than
9780 PARAM_STORE_MERGING_MAX_SIZE parameter.
9781 (split_group): Add bzero_first argument. If set, always emit first
9782 the first store which must be = {} of the whole area and then for the
9783 rest of the stores consider all zero bytes as paddings.
9784 (imm_store_chain_info::output_merged_store): Check if first store
9785 is = {} of the whole area and if yes, determine which setting of
9786 bzero_first for split_group gives smaller number of stores. Adjust
9787 split_group callers.
9788 (lhs_valid_for_store_merging_p): Allow decls.
9789 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
9790 no elts.
9791 (pass_store_merging::process_store): Likewise.
9792
9793 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
9794
9795 PR target/89424
9796 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9797 handling of V1TImode.
9798
9799 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
9800
9801 PR target/89221
9802 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
9803 and enable_frame_pointer ...
9804 * configure.ac: ... here. Update help strings for
9805 --enable-frame-pointer.
9806 * configure: Regenerate.
9807 * config/i386/i386-options.c (ix86_option_override_internal): Remove
9808 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
9809 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
9810 (USE_X86_64_FRAME_POINTER): Ditto.
9811
9812 2019-05-06 Martin Liska <mliska@suse.cz>
9813
9814 * config.gcc: Append to target_gtfiles and fix indentation.
9815
9816 2019-05-06 Richard Biener <rguenther@suse.de>
9817
9818 PR tree-optimization/90358
9819 * tree-vect-stmts.c (get_group_load_store_type): Properly
9820 detect unused upper half of load.
9821 (vectorizable_load): Likewise.
9822
9823 2019-05-06 Richard Biener <rguenther@suse.de>
9824
9825 PR tree-optimization/88828
9826 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
9827 (simplify_vector_constructor): ...here. Handle constants in
9828 the constructor.
9829
9830 2019-05-06 Richard Biener <rguenther@suse.de>
9831
9832 PR tree-optimization/90328
9833 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
9834 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
9835 is valid in the loop nest before using it.
9836 (initialize_data_dependence_relation): Adjust.
9837 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
9838 loop as loop-nest to dr_may_alias_p.
9839
9840 2019-05-06 Richard Biener <rguenther@suse.de>
9841
9842 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
9843
9844 2019-05-06 Richard Biener <rguenther@suse.de>
9845
9846 PR tree-optimization/90316
9847 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
9848 compute target on demand.
9849 (get_continuation_for_phi): Remove code walking stmts to
9850 get to a target virtual operand which could end up being
9851 quadratic.
9852
9853 2019-05-06 Martin Liska <mliska@suse.cz>
9854
9855 PR sanitizer/90312
9856 * config/i386/i386-options.c (ix86_option_override_internal): Error only
9857 when -mabi is selected to a non-default version.
9858
9859 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
9860 Martin Liska <mliska@suse.cz>
9861
9862 * Makefile.in: Add lto-dump.texi.
9863 * cgraph.h: Add new functions get_visibility_string and
9864 get_symtab_type_string.
9865 * doc/gcc.texi: Include lto-dump section.
9866 * doc/lto-dump.texi: New file.
9867 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
9868 (parse_dump_option): Factor out this function.
9869 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
9870 (parse_dump_option): Export the function.
9871 * symtab.c (symtab_node::get_visibility_string): New function.
9872 (symtab_node::get_symtab_type_string): Likewise.
9873
9874 2019-05-06 Martin Liska <mliska@suse.cz>
9875
9876 * config/i386/i386-builtins.c: New file.
9877 * config/i386/i386-builtins.h: New file.
9878 * config/i386/i386-expand.c: New file.
9879 * config/i386/i386-expand.h: New file.
9880 * config/i386/i386-features.c: New file.
9881 * config/i386/i386-features.h: New file.
9882 * config/i386/i386-options.c: New file.
9883 * config/i386/i386-options.h: New file.
9884 * config.gcc: Add new files into extra_objs and
9885 target_gtfiles.
9886 * config/i386/i386.c: Split content of the file
9887 into newly introduced files.
9888 * config/i386/i386.h: Declare common variables
9889 and macros.
9890 * config/i386/t-i386: Define dependencies for new files.
9891
9892 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
9893
9894 PR target/89400
9895 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
9896 Restrict 'all' variant to 32-bit configurations.
9897 (unaligned_loadhiu): Likewise.
9898 (unaligned_storehi): Likewise.
9899 (unaligned_storesi): Likewise.
9900 (unaligned_loadhis): Disable when compiling for thumb1.
9901
9902 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
9903
9904 PR tree-optimization/90269
9905 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
9906 Ignore clobbers.
9907
9908 2019-05-03 Martin Liska <mliska@suse.cz>
9909
9910 * hash-map.h: Add is_empty function.
9911 * hash-set.h: Likewise.
9912 * hash-table.h: Likewise.
9913 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
9914 elements () == 0 (and similar usages).
9915 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
9916 * gimplify.c (gimplify_bind_expr): Likewise.
9917 (gimplify_switch_expr): Likewise.
9918 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
9919 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
9920 * postreload-gcse.c (dump_hash_table): Likewise.
9921 (gcse_after_reload_main): Likewise.
9922 * predict.c (combine_predictions_for_bb): Likewise.
9923 * tree-parloops.c (reduction_phi): Likewise.
9924 (separate_decls_in_region): Likewise.
9925 (transform_to_exit_first_loop): Likewise.
9926 (gen_parallel_loop): Likewise.
9927 (gather_scalar_reductions): Likewise.
9928 (try_create_reduction_list): Likewise.
9929 * var-tracking.c (dump_vars): Likewise.
9930 (emit_notes_for_changes): Likewise.
9931 (vt_emit_notes): Likewise.
9932
9933 2019-05-03 Richard Biener <rguenther@suse.de>
9934
9935 PR tree-optimization/90316
9936 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
9937 before running VN.
9938
9939 2019-05-03 Richard Biener <rguenther@suse.de>
9940
9941 * tree-vect-stmts.c (get_group_load_store_type): Avoid
9942 peeling for gaps by loading only lower halves of vectors
9943 if possible.
9944 (vectorizable_load): Likewise.
9945
9946 2019-05-03 Richard Biener <rguenther@suse.de>
9947
9948 PR middle-end/89518
9949 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
9950
9951 2019-05-03 Richard Biener <rguenther@suse.de>
9952
9953 PR middle-end/87314
9954 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
9955 Handle STRING_CST vs DECL or STRING_CST.
9956
9957 2019-05-03 Richard Biener <rguenther@suse.de>
9958
9959 PR tree-optimization/88963
9960 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
9961 vector loads feeding only BIT_FIELD_REFs to component
9962 loads. Rewrite stores fed by CONSTRUCTORs to component
9963 stores.
9964
9965 2019-05-03 Jakub Jelinek <jakub@redhat.com>
9966
9967 * opts.h (finish_options): Remove lang_mask argument.
9968 (print_help, help_option_argument): Declare.
9969 * opts.c (print_help): Remove forward declaration, no longer static.
9970 (finish_options): Remove lang_mask argument, don't call print_help
9971 here.
9972 * opts-global.c (decode_options): Adjust finish_option caller, call
9973 print_help here.
9974
9975 PR tree-optimization/90303
9976 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
9977 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
9978
9979 2019-05-03 Richard Biener <rguenther@suse.de>
9980
9981 PR tree-optimization/89698
9982 * gimple-fold.c (canonicalize_constructor_val): Early out
9983 for constants, handle unfolded INTEGER_CSTs as they appear in
9984 C++ virtual table ctors.
9985
9986 2019-05-03 Richard Biener <rguenther@suse.de>
9987
9988 * passes.c (execute_function_todo): Remove dead code.
9989
9990 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9991
9992 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
9993 the internal register number, for any "real" register.
9994
9995 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9996
9997 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
9998 correct numbers for TFHAR, TFIAR, TEXASR.
9999
10000 2019-05-02 Richard Biener <rguenther@suse.de>
10001
10002 PR tree-optimization/89653
10003 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
10004 update-address-taken before the pass.
10005 * passes.def (pass_tree_loop_init): Put comment before it.
10006
10007 2019-05-02 Richard Biener <rguenther@suse.de>
10008
10009 PR tree-optimization/89509
10010 * tree-ssa-structalias.c (compute_dependence_clique): Look
10011 at the first subvar when determining whether it is restrict.
10012
10013 2019-05-02 Richard Biener <rguenther@suse.de>
10014
10015 PR tree-optimization/90273
10016 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
10017 useless debug stmts.
10018
10019 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10020
10021 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
10022 ACLE branch.
10023 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
10024 SVE ACLE branch.
10025 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
10026 VEC_COND_EXPR be inserted to emulate a conditional internal function.
10027 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
10028 (vectorizable_reduction): Use the functions above to vectorize in a
10029 fully masked loop codes that don't have a conditional internal
10030 function.
10031
10032 2019-05-02 Martin Liska <mliska@suse.cz>
10033
10034 * cgraphclones.c: Call valid_attribute_p with 1 for
10035 target_clone.
10036 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
10037 it's for target attribute.
10038 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
10039 Add new boolean argument.
10040 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10041 Likewise.
10042 (ix86_valid_target_attribute_tree): Pass target_clone_attr
10043 to ix86_valid_target_attribute_inner_p.
10044 (ix86_valid_target_attribute_p): Pass flags argument to
10045 ix86_valid_target_attribute_inner_p.
10046 (get_builtin_code_for_version): Use 0 as it's target attribute.
10047
10048 2019-05-02 Martin Liska <mliska@suse.cz>
10049
10050 * gcc.c (process_command): Add dummy file only
10051 if n_infiles == 0.
10052 * opts-global.c (decode_options): Pass lang_mask.
10053 * opts.c (print_help): New function.
10054 (finish_options): Print --help if help_option_argument
10055 is set.
10056 (common_handle_option): Factor out content of OPT__help_
10057 into print_help.
10058 * opts.h (finish_options): Add new argument.
10059
10060 2019-05-02 Martin Liska <mliska@suse.cz>
10061
10062 PR target/88809
10063 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
10064 With -minline-all-stringops use inline expansion using 4B loop.
10065 * doc/invoke.texi: Document the change of
10066 -minline-all-stringops.
10067
10068 2019-05-01 Jeff Law <law@redhat.com>
10069
10070 PR tree-optimization/88797
10071 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
10072 PHI feeds a conditional on the RHS of an assignment.
10073
10074 2019-04-30 Andrew Waterman <andrew@sifive.com>
10075 Jim Wilson <jimw@sifive.com>
10076
10077 * config/riscv/constraints.md (L): New.
10078 * config/riscv/predicates.md (lui_operand): New.
10079 (sfb_alu_operand): New.
10080 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
10081 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
10082 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
10083 * config/riscv/risc.md (type): Add sfb_alu.
10084 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
10085 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
10086 (branch_zero<mode>): Delete.
10087 (mov<mode>cc): New.
10088 (mov<GPR:mode><X:mode>cc): Likewise.
10089 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
10090
10091 2019-04-30 Nathan Sidwell <nathan@acm.org>
10092
10093 * tree.h (MARK_TS_EXP): New.
10094
10095 2019-04-30 Martin Liska <mliska@suse.cz>
10096
10097 * opts.c (enable_warning_as_error): Provide hints
10098 for unknown options.
10099
10100 2019-04-30 Martin Liska <mliska@suse.cz>
10101
10102 PR debug/90288
10103 * doc/invoke.texi: Add missing dash for gas-locview-support
10104 and gno-as-locview-support.
10105
10106 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10107
10108 PR target/89093
10109 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
10110 whitespace at the start of target attribute string.
10111
10112 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10113
10114 PR target/86538
10115 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10116 Define __ARM_FEATURE_ATOMICS.
10117
10118 2019-04-30 Martin Liska <mliska@suse.cz>
10119
10120 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
10121 into built_in_function enum. Remove code for endp == 2 and
10122 use BUILT_IN_* constants.
10123 (gimple_fold_builtin): Call the function with fcode.
10124
10125 2019-04-30 Martin Liska <mliska@suse.cz>
10126
10127 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
10128 DECL_FUNCTION_CODE into ix86_builtins enum before
10129 the switch statement.
10130
10131 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10132
10133 PR tree-optimization/89475
10134 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
10135 calls.
10136
10137 2019-04-30 Martin Liska <mliska@suse.cz>
10138
10139 PR translation/90274
10140 * opts.c (print_filtered_help): Wrap string in _(...).
10141
10142 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
10143
10144 PR tree-optimization/90240
10145 Revert:
10146 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10147
10148 PR tree-optimization/90078
10149 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10150 checks for infinite_cost overflow.
10151
10152 2019-04-29 Jeff Law <law@redhat.com>
10153
10154 * passes.def: Move -Wrestrict pass after copy propagation.
10155
10156 2019-04-29 Maya Rashish <coypu@sdf.org>
10157
10158 * config.gcc (default_gnu_indirect_function): Default to yes
10159 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
10160 sparc*-*-netbsd*, x86_64-*-netbsd*.
10161
10162 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
10163
10164 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
10165 where cond2 is NE_EXPR.
10166 (is_value_included_in): Update comment.
10167
10168 2019-04-29 Richard Biener <rguenther@suse.de>
10169
10170 PR tree-optimization/90278
10171 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
10172 EH on comparison simplification.
10173
10174 2019-04-29 Jason Merrill <jason@redhat.com>
10175
10176 PR c++/82081 - tail call optimization breaks noexcept
10177 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
10178 nothrow function to a might-throw function into a tail call.
10179
10180 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
10181
10182 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
10183 (DDR_INNER_LOOP): Likewise.
10184 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
10185 (initialize_data_dependence_relation): Likewise.
10186 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
10187
10188 2019-04-29 Jakub Jelinek <jakub@redhat.com>
10189
10190 PR rtl-optimization/90257
10191 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
10192 return value.
10193
10194 Revert the revert:
10195 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10196
10197 PR target/90178
10198 Revert:
10199 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10200
10201 Revert the revert:
10202 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10203
10204 Revert:
10205 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10206
10207 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10208
10209 2019-04-29 Richard Biener <rguenther@suse.de>
10210
10211 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
10212 rhs issue a reset.
10213
10214 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
10215
10216 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
10217 varasm.h, and netbsd-protos.h.
10218
10219 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
10220
10221 PR target/89261
10222 * config/i386/i386-protos.h (ix86_data_alignment): Change
10223 the second argument type to unsigned int.
10224 * config/i386/i386.c (ix86_data_alignment): Change "align"
10225 argument type to unsigned int.
10226
10227 2019-04-27 Martin Liska <mliska@suse.cz>
10228
10229 PR middle-end/90258
10230 * opt-suggestions.c (option_proposer::build_option_suggestions):
10231 When get_valid_option_values returns empty values, add the
10232 misspelling candidate.
10233
10234 2019-04-26 Jim Wilson <jimw@sifive.com>
10235
10236 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10237 parameter.
10238 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10239 Pass orig_mode to riscv_build_integer.
10240 (riscv_split_integer): Pass mode to riscv_move_integer.
10241 (riscv_legitimize_const_move): Likewise.
10242 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10243 promoted_mode. Replace force_reg call with code to load constant into
10244 promoted reg and then subreg it for the store.
10245 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10246 riscv_move_integer.
10247
10248 2018-04-26 Eugene Sharygin <eush@ispras.ru>
10249
10250 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10251 corrupt codes.
10252
10253 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
10254
10255 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10256 commentary about the encoding of precision.
10257
10258 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
10259
10260 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10261 * config/i386/t-freebsd64: New file.
10262 * config.gcc: Add the t-freebsd64 for multilib support.
10263
10264 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
10265
10266 * doc/extend.texi (vector_size): Add missing comma after @xref.
10267
10268 2019-04-25 Jakub Jelinek <jakub@redhat.com>
10269
10270 * BASE-VER: Set to 10.0.0.
10271
10272 2019-04-25 Richard Biener <rguenther@suse.de>
10273
10274 PR middle-end/89765
10275 * gimplify.c (gimplify_expr): Avoid turning a lvalue
10276 VIEW_CONVERT_EXPR into one operating on an rvalue.
10277
10278 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
10279
10280 PR target/89929
10281 * config/i386/i386.c (feature_priority): Moved to file scope.
10282 (processor_features): Likewise.
10283 (processor_model): Likewise.
10284 (_arch_names_table): Likewise.
10285 (arch_names_table): Likewise.
10286 (_feature_list): Removed.
10287 (feature_list): Likewise.
10288 (_isa_names_table): Moved to file scope. Add priority.
10289 (isa_names_table): Likewise.
10290 (get_builtin_code_for_version): Replace feature_list with
10291 isa_names_table. Update error message for P_ZERO priority.
10292
10293 2019-04-25 Richard Biener <rguenther@suse.de>
10294
10295 * tree-pass.h (make_pass_phi_only_cprop): Remove.
10296 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10297
10298 2019-04-24 Jeff Law <law@redhat.com>
10299
10300 PR tree-optimization/90037
10301 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10302 * passes.def: Replace all instance of phi-only cprop with the
10303 lattice propagator. Move propagation pass from after erroneous
10304 path isolation to before erroneous path isolation.
10305 * tree-ssa-phionlycprop.c: Remove.
10306
10307 2019-04-24 Richard Biener <rguenther@suse.de>
10308
10309 PR middle-end/90213
10310 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10311 by size and BITS_PER_UNIT on poly-wide-ints.
10312
10313 2019-04-25 Richard Biener <rguenther@suse.de>
10314
10315 PR middle-end/90194
10316 * match.pd: Add pattern to simplify view-conversion of an
10317 empty constructor.
10318
10319 2019-04-24 Clement Chigot <clement.chigot@atos.net>
10320
10321 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10322 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10323 for Go on 32 bit AIX.
10324 * config/rs6000/aix72.h: Likewise.
10325
10326 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10327
10328 PR target/90193
10329 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10330 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10331
10332 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
10333
10334 PR target/89952
10335 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10336 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
10337 for restored hard frame pointer.
10338 (s390_sched_dependencies_evaluation): Implement new target hook.
10339 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10340
10341 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
10342
10343 * config/arc/arc-options.def: Fix typos and spelling mistakes.
10344 * config/arc/arc.c (arc_init): Cleanup warning message.
10345 (arc_override_options): Likewise.
10346
10347 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10348
10349 PR target/90187
10350 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10351 a register if both if_true and if_false are MEMs.
10352
10353 PR tree-optimization/90208
10354 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10355 after labels of new_bb, not before them.
10356
10357 PR tree-optimization/90211
10358 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10359 which are not SSA_NAMEs.
10360
10361 2018-04-23 Sudakshina Das <sudi.das@arm.com>
10362
10363 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10364 AArch64.
10365 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10366
10367 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10368
10369 PR rtl-optimization/87979
10370 * modulo-sched.c (sms_schedule): Start ii value "mii" should
10371 not equal zero.
10372
10373 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10374
10375 PR rtl-optimization/84032
10376 * modulo-sched.c (ps_insn_find_column): Change condition so that
10377 branch will always be the last insn in a row inside partial
10378 schedule.
10379
10380 2019-04-23 Richard Biener <rguenther@suse.de>
10381
10382 PR debug/90131
10383 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10384 dest_single_pred_p argument.
10385 (remove_forwarder_block): Adjust.
10386 (remove_forwarder_block_with_phi): Likewise.
10387
10388 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10389 Bernd Edlinger <bernd.edlinger@hotmail.de>
10390 Jakub Jelinek <jakub@redhat.com>
10391
10392 PR target/89093
10393 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10394 if used with general-regs-only.
10395 (arm_conditional_register_usage): Don't add non-general regs if
10396 general-regs-only.
10397 (arm_valid_target_attribute_rec): Handle general-regs-only.
10398 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10399 general-regs-only.
10400 (TARGET_HARD_FLOAT_SUB): Define.
10401 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10402 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10403 (TARGET_REALLY_IWMMXT2): Likewise.
10404 * config/arm/arm.opt: Add -mgeneral-regs-only.
10405 * doc/extend.texi: Document ARM general-regs-only target.
10406 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10407
10408 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10409
10410 PR tree-optimization/90078
10411 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10412 checks for infinite_cost overflow.
10413
10414 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10415
10416 PR tree-optimization/90021
10417 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
10418 and check univariate against it.
10419 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
10420 * tree-data-ref.c (add_other_self_distances): Pass new argument.
10421
10422 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10423
10424 PR target/90178
10425 Revert:
10426 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10427
10428 Revert the revert:
10429 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10430
10431 Revert:
10432 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10433
10434 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10435
10436 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
10437
10438 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
10439 names using operand format, rather than hard-wired.
10440 (speculation_barrier): Likewise.
10441
10442 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
10443
10444 PR tree-optimization/88055
10445 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
10446 (gen_one_condition): Use it if !HONOR_NANS.
10447
10448 2019-04-19 Jakub Jelinek <jakub@redhat.com>
10449
10450 PR middle-end/90139
10451 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
10452 assign_temp instead of gen_reg_rtx.
10453
10454 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
10455
10456 PR translation/90118
10457 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10458 Add missing space before %<.
10459
10460 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
10461
10462 PR rtl-optimization/87871
10463 * ira-lives.c (make_object_dead): Don't add conflicts to
10464 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
10465
10466 2019-04-18 Martin Sebor <msebor@redhat.com>
10467
10468 PR middle-end/89797
10469 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
10470 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
10471 assuming type size fits in SHWI.
10472
10473 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
10474
10475 PR ipa/85051
10476 * ipa-inline.c (flatten_function): New parameter UPDATE.
10477 (ipa_inline, early_inliner): Use it.
10478
10479 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10480
10481 * fold-const.c (int_const_binop): Return early on failure.
10482
10483 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10484
10485 PR middle-end/85164
10486 * combine.c (force_int_to_mode): Cast the argument rather than
10487 the result of known_alignment.
10488 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
10489
10490 2019-04-18 Richard Biener <rguenther@suse.de>
10491
10492 PR debug/90131
10493 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
10494 out from ...
10495 (remove_forwarder_block): ... here.
10496 (remove_forwarder_block_with_phi): Also move debug stmts here.
10497
10498 2019-04-18 Jakub Jelinek <jakub@redhat.com>
10499
10500 PR translation/79183
10501 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
10502 inform where appropriate.
10503
10504 2019-04-18 Richard Biener <rguenther@suse.de>
10505
10506 * tree.c (get_qualified_type): Put found type variants at the
10507 head of the variant list.
10508
10509 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10510
10511 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10512
10513 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
10514
10515 PR target/90125
10516 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
10517 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
10518 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
10519 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
10520 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
10521
10522 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
10523
10524 * ira-conflicts.c (print_allocno_conflicts): Always print something,
10525 even for allocno's with no conflicts.
10526 (print_conflicts): Print an extra newline.
10527
10528 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10529
10530 * auto-inc-dec.c (attempt_change): Set the alignment of the
10531 temporary memory to that of the original.
10532
10533 2019-04-17 Joao Moreira <jmoreira@suse.de>
10534
10535 * targhooks.c (default_print_patchable_function_entry): Emit
10536 __patchable_function_entries section with writable flags to allow
10537 relocation resolution.
10538
10539 2019-04-17 Jonny Grant <jg@jguk.org>
10540
10541 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
10542
10543 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10544
10545 PR middle-end/90095
10546 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
10547 on lowpart SUBREGs.
10548
10549 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
10550
10551 * config/arc/arc.c (arc_init): Format diagnostic string.
10552 (arc_override_options): Likewise.
10553 (check_if_valid_regno_const): Likewise.
10554 (arc_reorg): Likewise.
10555
10556 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10557
10558 PR target/17108
10559 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
10560 name.
10561 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
10562 name.
10563 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
10564 (*movdi_update1): Use Pmode.
10565 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
10566 (movdi_<mode>_update_stack): Rename to ...
10567 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
10568 use Pmode.
10569 (*movsi_update1): Use Pmode.
10570 (*movsi_update2): Use Pmode.
10571 (movsi_update): Rename to ...
10572 (movsi_<mode>_update): ... this. Use Pmode.
10573 (movsi_update_stack): Fix condition.
10574 (*movhi_update1): Use Pmode. Fix argument to
10575 avoiding_indexed_address_p.
10576 (*movhi_update2): Ditto.
10577 (*movhi_update3): Ditto.
10578 (*movhi_update4): Ditto.
10579 (*movqi_update1): Ditto.
10580 (*movqi_update2): Ditto.
10581 (*movqi_update3): Ditto.
10582 (*movsf_update1, *movdf_update1): Merge, rename to...
10583 (*mov<mode>_update1): This. Use Pmode. Fix argument to
10584 avoiding_indexed_address_p. Add "size" attribute.
10585 (*movsf_update2, *movdf_update2): Merge, rename to...
10586 (*mov<mode>_update2): This. Ditto.
10587 (*movsf_update3): Use Pmode. Fix argument to
10588 avoiding_indexed_address_p.
10589 (*movsf_update4): Ditto.
10590 (allocate_stack): Simplify condition. Adjust pattern names.
10591
10592 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10593
10594 PR target/89093
10595 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
10596 whitespace at the start of target attribute string.
10597
10598 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
10599
10600 PR target/84369
10601 * config/rs6000/power9.md: Add store forwarding bypass.
10602
10603 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
10604
10605 PR debug/89528
10606 * valtrack.c (dead_debug_insert_temp): Reset debug references
10607 to the return value of a call being removed.
10608
10609 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10610
10611 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
10612 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
10613 implement target hook.
10614 (arc_memory_move_cost): New function.
10615 (TARGET_REGISTER_MOVE_COST): Define.
10616 (TARGET_MEMORY_MOVE_COST): Likewise.
10617 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
10618 (MEMORY_MOVE_COST): Likewise.
10619
10620 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10621
10622 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
10623 (sibcall_value_insn): Likewise.
10624 * config/arc/constraints.md (Rs5): Remove.
10625
10626 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10627
10628 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
10629 for last two fake registers.
10630 (arc_conditional_register_usage): Make sure fake frame and arg
10631 pointer regs are in general regs class.
10632 (FRAME_POINTER_MASK): Remove.
10633 (RETURN_ADDR_MASK): Remove.
10634 (arc_must_save_register): Use hard frame regnum.
10635 (frame_restore_reg): Use hard_frame_pointer_rtx.
10636 (arc_save_callee_saves): Likewise.
10637 (arc_restore_callee_saves): Likewise.
10638 (arc_save_callee_enter): Likewise.
10639 (arc_restore_callee_leave): Likewise.
10640 (arc_save_callee_milli): Likewise.
10641 (arc_eh_return_address_location): Likewise.
10642 (arc_check_multi): Use hard frame regnum.
10643 (arc_can_eliminate): Likewise.
10644 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
10645 for register allocator.
10646 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
10647 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
10648 (FRAME_POINTER_REGNUM): Change it to a fake register.
10649 (HARD_FRAME_POINTER_REGNUM): Defined.
10650 (ARG_POINTER_REGNUM): Change it to a new fake register.
10651 (ELIMINABLE_REGS): Update.
10652 (REGISTER_NAMES): Update names.
10653 * config/arc/arc.md (LP_START): Remove.
10654 (LP_END): Likewise.
10655 (shift_si3_loop): Update pattern.
10656
10657 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10658
10659 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
10660 to avoid delay slot scheduling.
10661 (arc_must_save_register): Don't save SP.
10662 * config/arc/arc.md (stack_tie): Remove.
10663 (UNSPEC_ARC_STKTIE): Likewise.
10664
10665 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
10666 Shiva Chen <shiva0217@gmail.com>
10667
10668 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
10669 code gen with large shift amount.
10670
10671 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
10672
10673 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
10674 subreg.
10675
10676 2019-04-16 Jakub Jelinek <jakub@redhat.com>
10677
10678 PR target/90096
10679 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
10680 print -m64/-mx32/-m32 if it is true.
10681 (ix86_debug_options, ix86_function_specific_print): Pass true as
10682 ADD_ABI_P to ix86_target_string.
10683 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
10684 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
10685 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
10686
10687 PR rtl-optimization/90082
10688 * dce.c (can_delete_call): New function.
10689 (deletable_insn_p, mark_insn): Use it.
10690
10691 PR tree-optimization/90090
10692 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
10693 throw internally.
10694 (is_division_by_square): Likewise. Formatting fix.
10695
10696 2019-04-16 Richard Biener <rguenther@suse.de>
10697
10698 PR tree-optimization/56049
10699 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
10700 equality check if alias-set zero will prevail.
10701
10702 2019-04-15 Jeff Law <law@redhat.com>
10703
10704 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
10705 size and alignment as unsigned.
10706
10707 2019-04-15 Richard Biener <rguenther@suse.de>
10708
10709 PR debug/90074
10710 * tree-loop-distribution.c (destroy_loop): Preserve correct
10711 debug info.
10712
10713 2019-04-15 Richard Biener <rguenther@suse.de>
10714
10715 PR tree-optimization/90071
10716 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
10717 abnormal operands from def stmts.
10718
10719 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
10720
10721 PR rtl-optimization/89794
10722 * combine.c (count_auto_inc): New function.
10723 (try_combine): Count how many auto_inc expressions there were in the
10724 original instructions. Ensure we have the same number in the new
10725 instructions. Remove the code that tried to ensure auto_inc side
10726 effects on i1 and i0 are not lost.
10727
10728 2019-04-15 Richard Biener <rguenther@suse.de>
10729
10730 PR ipa/88936
10731 * tree.h (auto_var_p): Declare.
10732 * tree.c (auto_var_p): New function, split out from ...
10733 (auto_var_in_fn_p): ... here.
10734 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
10735 member.
10736 (new_var_info): Initialize it.
10737 (set_uids_in_ptset): Also set the shadow variable uid if required.
10738 (ipa_pta_execute): Postprocess points-to solutions assigning
10739 shadow variable uids for locals that may reach their containing
10740 function recursively.
10741 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
10742 assert but instead check whether the points-to solution is
10743 a singleton.
10744
10745 2019-04-15 Martin Jambor <mjambor@suse.cz>
10746
10747 PR ipa/pr89693
10748 * cgraph.c (clone_of_p): Loop over clone chain for each step in
10749 the thunk chain.
10750
10751 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10752
10753 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
10754
10755 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10756 Kito Cheng <kito.cheng@gmail.com>
10757 Shiva Chen <shiva0217@gmail.com>
10758
10759 * config/nds32/nds32-md-auxiliary.c
10760 (nds32_legitimize_pic_address): Use new PIC pattern.
10761 (nds32_legitimize_tls_address): Use new TLS pattern.
10762 (nds32_output_symrel): New.
10763 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
10764 (nds32_alloc_relax_group_id): Ditto.
10765 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
10766 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
10767 relax_group_id.
10768 (nds32_group_tls_insn): Ditto.
10769 (nds32_group_float_insns): Ditto.
10770 * config/nds32/nds32.md (tls_le): New.
10771 (sym_got): Ditto.
10772
10773 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
10774
10775 * configure: Add nds32 target for dwarf2 debug_line checking.
10776 * configure.ac: Regenerated.
10777
10778 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
10779
10780 PR lto/89358
10781 * ipa-devirt.c (skip_in_fields_list_p): New.
10782 (odr_types_equivalent_p): Use it.
10783
10784 2019-04-13 Jakub Jelinek <jakub@redhat.com>
10785
10786 PR target/89093
10787 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
10788 instead of strncmp when checking for thumb and arm. Formatting fixes.
10789
10790 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
10791
10792 * doc/install.texi: Document --with-target-system-zlib.
10793
10794 2019-04-12 Martin Sebor <msebor@redhat.com>
10795
10796 PR c/88383
10797 PR c/89288
10798 PR c/89798
10799 PR c/89797
10800 * targhooks.c (default_vector_alignment): Avoid assuming
10801 argument fits in SHWI.
10802 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
10803 a shift expression.
10804 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
10805
10806 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10807
10808 PR rtl-optimization/89965
10809 * dce.c: Include rtl-iter.h.
10810 (struct check_argument_load_data): New type.
10811 (check_argument_load): New function.
10812 (find_call_stack_args): Check for loads from stack slots still tracked
10813 in sp_bytes and punt if any is found.
10814
10815 * config/mips/loongson-mmiintrin.h: Fix up #error message.
10816
10817 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
10818
10819 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
10820 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
10821
10822 2019-04-12 Martin Liska <mliska@suse.cz>
10823
10824 PR middle-end/89970
10825 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
10826 in error message.
10827 (separate_attrs): Handle multiple 'default's.
10828 (expand_target_clones): Rework error handling code.
10829
10830 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
10831
10832 PR target/87532
10833 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
10834 mode of vector rather than mode of destination for move instruction.
10835 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
10836 Use QI inner mode with V16QI vector mode.
10837
10838 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10839
10840 PR target/52726
10841 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
10842 "invalid %%t operand" in output_operand_lossage message.
10843
10844 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
10845
10846 * config/s390/predicates.md (permute_pattern_operand): New
10847 predicate.
10848 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
10849 operand for the permute pattern.
10850 ("*vec_perm<mode>"): New insn definition.
10851 ("bswap<mode>"): Generate the permute pattern operand in the
10852 expander and perform the operand reloads for pre arch13 level
10853 already.
10854 ("*bswap<mode>_emu"): Rename to ...
10855 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
10856 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
10857 Add the USE operand for the permute pattern.
10858 ("*vec_set_bswap_vec<mode>"): Likewise.
10859
10860 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10861
10862 PR c/89946
10863 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
10864 and gcc_unreachable if it fails, just call tree_to_uhwi which
10865 verifies that too. Test TREE_CHAIN instead of list_length > 1.
10866 Start warning message with a lower-case letter. Formatting fixes.
10867
10868 PR rtl-optimization/90026
10869 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
10870 successors, look for BARRIERs inside of the whole BB_FOOTER chain
10871 rather than just at the start of it. If e->src BB_FOOTER is not NULL
10872 in cfglayout mode, use emit_barrier_after_bb.
10873
10874 2018-04-11 Steve Ellcey <sellcey@marvell.com>
10875
10876 PR rtl-optimization/87763
10877 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
10878 New Instruction.
10879
10880 2019-04-11 Tom de Vries <tdevries@suse.de>
10881
10882 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
10883 max macro using statement expression.
10884
10885 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
10886
10887 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
10888 * xcoffout.c (xcoff_private_rodata_section_name): Define.
10889 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
10890 read_only_private_data_section using xcoff_private_rodata_section_name.
10891 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
10892
10893 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
10894
10895 PR target/90016
10896 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
10897
10898 2019-04-11 Jakub Jelinek <jakub@redhat.com>
10899
10900 PR rtl-optimization/89965
10901 * dce.c (sp_based_mem_offset): New function.
10902 (find_call_stack_args): Use sp_based_mem_offset.
10903
10904 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
10905
10906 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
10907
10908 2019-04-11 Richard Biener <rguenther@suse.de>
10909
10910 PR tree-optimization/90020
10911 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
10912 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
10913 * tree-ssa-pre.c (compute_avail): Use it to not put
10914 possibly trapping references after a call that might not
10915 return into EXP_GEN.
10916 * gcse.c (compute_hash_table_work): Do not elide
10917 marking a block containing a call if the call might not
10918 return.
10919
10920 2019-04-11 Richard Biener <rguenther@suse.de>
10921
10922 PR tree-optimization/90018
10923 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
10924 Test both SLP and interleaving variants.
10925
10926 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
10927
10928 * config/s390/8561.md: New file.
10929 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10930 Add arch13 cpu model.
10931 * config/s390/s390-opts.h (enum processor_type): Likewise.
10932 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
10933 (s390_get_unit_mask): Likewise.
10934 (s390_is_fpd): Likewise.
10935 (s390_is_fxd): Likewise.
10936 * config/s390/s390.h (s390_tune_attr): Likewise.
10937 * config/s390/s390.md: Include arch13 pipeline description.
10938 * config/s390/s390.opt: Add arch13.
10939
10940 2018-04-10 Steve Ellcey <sellcey@marvell.com>
10941
10942 PR rtl-optimization/87763
10943 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
10944 New prototype.
10945 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
10946 New function.
10947 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
10948 New instruction.
10949 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
10950 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
10951 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
10952 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
10953
10954 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
10955
10956 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
10957 "Although" in -fipa-icf documentation.
10958
10959 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
10960 of using multiple -g options.
10961
10962 2019-04-10 Martin Liska <mliska@suse.cz>
10963
10964 PR gcov-profile/89959
10965 * doc/gcov.texi: Make documentation of -x option
10966 more precise.
10967
10968 2019-04-10 Richard Biener <rguenther@suse.de>
10969
10970 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
10971 member.
10972 (DR_GROUP_SAME_DR_STMT): Remove.
10973 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
10974 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
10975 replace with assert.
10976 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
10977 (vect_record_grouped_load_vectors): Remove unreachable code.
10978
10979 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
10980
10981 PR target/90016
10982 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
10983 obsolete reference to N.
10984
10985 2019-04-10 Jakub Jelinek <jakub@redhat.com>
10986
10987 PR middle-end/90025
10988 * expr.c (store_expr): Set properly size on the MEM passed to
10989 clear_storage.
10990
10991 PR c++/90010
10992 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
10993 with strlen in between hostsz-3 and hostsz-1 inclusive when no
10994 translation is needed, and when translation is needed, only append
10995 ... if the string length is hostsz or more bytes long. Avoid using
10996 strncpy or strcat.
10997
10998 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
10999
11000 PR target/90024
11001 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
11002 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
11003 into three.
11004 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
11005 differences directly.
11006 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
11007
11008 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11009
11010 PR translation/90011
11011 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11012 from diagnostics.
11013 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
11014 diagnostics.
11015 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11016 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
11017 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
11018 trailing space from -gsplit-dwarf diagnostics.
11019
11020 PR tree-optimization/89998
11021 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
11022 instead of integer_type_node if possible, don't add ranges if return
11023 type is not compatible with int.
11024 * gimple-fold.c (gimple_fold_builtin_sprintf,
11025 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
11026 integer_type_node.
11027
11028 2019-04-09 Martin Liska <mliska@suse.cz>
11029
11030 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
11031 * doc/install.texi: Document the new config.
11032
11033 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
11034
11035 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
11036 use gimple_expr_type for load and store calls. Skip over the
11037 condition argument in a conditional internal function.
11038 Protect use of TREE_INT_CST_LOW.
11039
11040 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11041
11042 PR target/90015
11043 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
11044 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
11045 trailing period from it too.
11046
11047 2019-04-08 wu yuan <wuyuan5@huawei.com>
11048
11049 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
11050 * config/aarch64/aarch64.md : Add "tsv110.md"
11051 * config/aarch64/tsv110.md: New file.
11052
11053 2019-04-08 Richard Biener <rguenther@suse.de>
11054
11055 PR tree-optimization/90006
11056 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11057 calls like lrint.
11058
11059 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
11060
11061 PR target/83033
11062 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
11063 construction.
11064 (fma_root_node): Likewise.
11065 (func_fma_steering): Likewise.
11066
11067 2019-04-08 Jakub Jelinek <jakub@redhat.com>
11068
11069 PR rtl-optimization/89865
11070 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
11071
11072 PR rtl-optimization/89865
11073 * config/i386/i386.md
11074 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
11075 numbers not to clash with the additional operands[4].
11076 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11077 with extra register copy in the middle.
11078
11079 2019-04-08 Martin Liska <mliska@suse.cz>
11080
11081 PR gcov-profile/89961
11082 * doc/gcov.texi: Document data_file.
11083 * gcov.c (generate_results): Add data_info into JSON output.
11084
11085 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
11086
11087 PR tree-optimization/89725
11088 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
11089 loop's chrec as invariant symbol.
11090 * tree-chrec.h (chrec_contains_symbols): New parameter.
11091 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
11092 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
11093 function of loops not in DDR's loop_nest.
11094 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
11095
11096 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
11097
11098 PR target/89623
11099 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
11100 Mask.
11101
11102 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
11103
11104 PR target/89945
11105 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11106 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
11107
11108 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
11109
11110 * sched-deps.c (sched_macro_fuse_insns): Check return value of
11111 targetm.fixed_condition_code_regs.
11112
11113 2019-04-05 Richard Biener <rguenther@suse.de>
11114
11115 PR debug/89892
11116 PR debug/89905
11117 * tree-cfgcleanup.c (remove_forwarder_block): Always move
11118 debug bind stmts but reset them if they are not valid at the
11119 destination.
11120
11121 2019-04-05 Martin Liska <mliska@suse.cz>
11122
11123 PR translation/89936
11124 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
11125 order to wrap keywords or arguments.
11126 * collect2.c (main): Likewise.
11127 (scan_prog_file): Likewise.
11128 (scan_libraries): Likewise.
11129 * common/config/riscv/riscv-common.c
11130 (riscv_subset_list::parsing_subset_version): Likewise.
11131 (riscv_subset_list::parse_std_ext): Likewise.
11132 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11133 Likewise.
11134 * config/arm/arm.c (arm_option_override): Likewise.
11135 * config/cris/cris.c (cris_print_operand): Likewise.
11136 * config/darwin-c.c (darwin_pragma_options): Likewise.
11137 (darwin_pragma_unused): Likewise.
11138 (darwin_pragma_ms_struct): Likewise.
11139 * config/ft32/ft32.c (ft32_print_operand): Likewise.
11140 * config/i386/i386.c (print_reg): Likewise.
11141 (ix86_print_operand): Likewise.
11142 * config/i386/xm-djgpp.h: Likewise.
11143 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
11144 * config/m32c/m32c.c (m32c_option_override): Likewise.
11145 * config/msp430/msp430.c (msp430_option_override): Likewise.
11146 * config/nds32/nds32.c (nds32_option_override): Likewise.
11147 * config/nvptx/mkoffload.c (main): Likewise.
11148 * config/rx/rx.c (rx_print_operand): Likewise.
11149 (valid_psw_flag): Likewise.
11150 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
11151 (vms_pragma_nomember_alignment): Likewise.
11152 (vms_pragma_extern_model): Likewise.
11153 * lto-wrapper.c (compile_offload_image): Likewise.
11154 * omp-offload.c (oacc_parse_default_dims): Likewise.
11155 * symtab.c (symtab_node::verify_base): Likewise.
11156 * tlink.c (recompile_files): Likewise.
11157 (start_tweaking): Likewise.
11158 * tree-profile.c (parse_profile_filter): Likewise.
11159
11160 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
11161
11162 PR tree-optimization/89956
11163 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
11164 multiple negates of the same value.
11165
11166 2019-04-04 Martin Sebor <msebor@redhat.com>
11167
11168 PR middle-end/89957
11169 PR middle-end/89911
11170 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
11171 have the same precision since the function crashes otherwise.
11172 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
11173 has non-zero arguments.
11174
11175 2019-04-04 Martin Sebor <msebor@redhat.com>
11176
11177 PR middle-end/89934
11178 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
11179 out if the number of arguments is less than expected.
11180
11181 2019-04-04 Jeff Law <law@redhat.com>
11182
11183 PR rtl-optimization/89399
11184 * ree.c (combine_set_extension): Use single_set rather than
11185 digging into PATTERN for items on the candidate list.
11186 (combine_reaching_defs): Likewise.
11187
11188 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
11189
11190 PR rtl-optimization/46590
11191 * loop-invariant.c (find_defs): Move df_remove_problem and
11192 df_process_deferred_rescans to move_invariants.
11193 Move df_live_add_problem and df_live_set_all_dirty calls
11194 to move_invariants.
11195 (move_invariants): Likewise.
11196 (move_loop_invariants): Likewise, making the df_live calls
11197 conditional on -O. Remove the problem again if we added it
11198 locally.
11199
11200 2019-04-03 qing zhao <qing.zhao@oracle.com>
11201
11202 PR tree-optimization/89730
11203 * ipa-inline.c (can_inline_edge_p): Delete the checking for
11204 -flive-patching=inline-only-static.
11205 (can_inline_edge_by_limits_p): Add the checking for
11206 -flive-patching=inline-only-static and grant always_inline
11207 even when -flive-patching=inline-only-static is specified.
11208
11209 2019-04-03 Jeff Law <law@redhat.com>
11210
11211 PR rtl-optimization/81025
11212 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
11213
11214 2019-04-03 Richard Biener <rguenther@suse.de>
11215
11216 PR tree-optimization/84101
11217 * tree-vect-stmts.c: Include explow.h for hard_function_value,
11218 regs.h for hard_regno_nregs.
11219 (cfun_returns): New helper.
11220 (vect_model_store_cost): When vectorizing a store to a decl
11221 we return and the function ABI returns in a multi-reg location
11222 account for the possible spilling that will happen.
11223
11224 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
11225
11226 * config/s390/s390.c (s390_legitimate_address_p): Reject long
11227 displacement addresses for vector mode operands.
11228
11229 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
11230
11231 * config/arc/arc.c (GMASK_LEN): Define.
11232 (arc_restore_callee_saves): Restore first blink when
11233 !optimize_size.
11234
11235 2019-04-03 Sudakshina Das <sudi.das@arm.com>
11236
11237 * doc/extend.texi: Add deprecated comment on sign-return-address
11238 function attribute and add mbranch-protection.
11239 * doc/invoke.texi: Add bti to the options for mbranch-protection.
11240
11241 2019-04-03 Richard Biener <rguenther@suse.de>
11242
11243 PR lto/89896
11244 * lto-wrapper.c (run_gcc): Avoid implicit rules making
11245 the all target phony.
11246
11247 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
11248
11249 PR target/89902
11250 PR target/89903
11251 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11252 Return false for variable DImode shifts.
11253 (dimode_scalar_chain::compute_convert_gain): Do not handle
11254 register count operand in variable DImode shifts.
11255 (dimode_scalar_chain::make_vector_copies): Remove support to copy
11256 count argument of a variable shift instruction to a vector register.
11257 (dimode_scalar_chain::convert_reg): Remove support to convert
11258 count argument of a variable shift instruction.
11259
11260 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11261
11262 PR rtl-optimization/84206
11263 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11264 iterating over loop headers.
11265
11266 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11267
11268 PR rtl-optimization/85876
11269 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11270 beyond the original fence.
11271
11272 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
11273
11274 * config.gcc: Mark spu* targets as deprecated/obsolete.
11275
11276 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11277
11278 * config/s390/s390-builtin-types.def: New builtin function type
11279 definitions. Remove unused types.
11280 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11281 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11282 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11283 overloaded builtins.
11284 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11285 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11286 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11287 (vec_double, vec_signed, vec_unsigned): Define to use the new
11288 overloaded builtins.
11289 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11290 Remove expanders.
11291
11292 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11293
11294 * config/s390/s390-builtin-types.def: New builtin function type
11295 definitions.
11296 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11297 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11298 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11299 (s390_vstrszh, s390_vstrszf): New low-level builtins.
11300 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11301 constant definitions.
11302 * config/s390/vecintrin.h (vec_search_string_cc)
11303 (vec_search_string_until_zero_cc): New builtin name definitions.
11304 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11305 expanders.
11306 ("vec_vstrs<mode>"): New insn definition.
11307
11308 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11309
11310 * config/s390/s390-builtin-types.def: Add new builtin function
11311 types.
11312 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11313 New overloaded builtins.
11314 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
11315 s390_vsrd.
11316 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11317 (UNSPEC_VEC_SLDBYTE): ... this.
11318 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11319 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11320 definitions.
11321 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11322 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11323 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11324
11325 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11326
11327 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11328 New insn definition.
11329 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11330 * config/s390/vector.md (V_HW_HSD): ... here.
11331
11332 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11333
11334 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11335 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11336 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11337 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11338 New insn definitions.
11339
11340 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11341
11342 * config/s390/s390-builtin-types.def: Add new builtin function type.
11343 * config/s390/s390-builtins.def: Add overloaded builtin
11344 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11345 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11346 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11347 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11348 ("eltswap<mode>"): New expander.
11349 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11350 insn definitions.
11351
11352 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11353
11354 * config/s390/s390-builtin-types.def: Add new builtin function types.
11355 * config/s390/s390-builtins.def: Add overloaded builtin
11356 s390_vec_revb. Add low-level builtins for vlbr and vstbr
11357 instructions.
11358 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11359 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11360 ("bswap<mode>"): New expander.
11361 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11362
11363 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11364
11365 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11366 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11367 vector builtin version number in __VEC__.
11368
11369 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11370
11371 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11372 iterators.
11373 (SFSI): New mode attribute.
11374 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11375 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11376 rename to ...
11377 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11378 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11379 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11380 ("floatsi<mode>2"): Add wcefb instruction.
11381
11382 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11383
11384 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11385 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11386 mode iterators.
11387 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11388 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11389 support 32 bit fp-int conversions. Rename to ...
11390 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11391 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11392 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11393 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11394 ... to these.
11395
11396 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11397
11398 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11399 if-then-else constructs if we can use the select instruction.
11400 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11401
11402 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11403
11404 * config/s390/s390.md ("*popcountdi_arch13_cc")
11405 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11406 definition.
11407 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11408 Append _z196 to make it ...
11409 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11410 ("popcounthi2_z196"): ... this.
11411 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11412 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
11413
11414 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11415
11416 * config/s390/s390.c (s390_canonicalize_comparison): Convert
11417 certain compares for arch13 in order to make use of the condition
11418 code result produced by the new instructions.
11419 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
11420 nxrk, and nxgrk instruction patterns.
11421 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
11422 (inv_no): Add new code iterator together with some attributes.
11423 ("*andc_split_<mode>"): Disable splitter for arch13.
11424 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
11425 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
11426 ("*<ANDOR:bitops_name>c<GPR:mode>")
11427 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
11428 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
11429 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
11430 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
11431
11432 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11433
11434 * common/config/s390/s390-common.c (processor_flags_table): New
11435 entry for arch13.
11436 * config.gcc: Support arch13 with the --with-arch= configure flag.
11437 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11438 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
11439 * config/s390/s390.c (s390_get_sched_attrmask)
11440 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
11441 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
11442 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
11443 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
11444 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
11445 definitions.
11446 * config/s390/s390.opt: Support arch13 as processor type in
11447 command line options.
11448
11449 2019-04-02 Martin Liska <mliska@suse.cz>
11450
11451 PR translation/89912
11452 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
11453 Fix param description of graphite-max-arrays-per-scop.
11454
11455 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
11456
11457 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
11458 (ASAN_CC1_SPEC): Use it in 64-bit mode.
11459 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
11460
11461 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11462
11463 PR rtl-optimization/85412
11464 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
11465 sel_sched_region_1, not after.
11466
11467 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11468
11469 PR rtl-optimization/86928
11470 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
11471 compute_live if necessary.
11472 (sel_redirect_edge_and_branch): Likewise.
11473
11474 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
11475
11476 PR rtl-optimization/89865
11477 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
11478 register if it is a part of small class.
11479
11480 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11481
11482 PR rtl-optimization/87273
11483 * sel-sched-ir.c (merge_fences): Remove assert.
11484
11485 2019-04-01 Richard Biener <rguenther@suse.de>
11486
11487 PR tree-optimization/46590
11488 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
11489 (dom_walker::m_reachability): Add in place of...
11490 (dom_walker::m_skip_unreachable_blocks): ...this.
11491 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
11492 Move complex initialization ...
11493 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
11494 lazily and initialize edge flags on each invocation.
11495 (dom_walker::bb_reachable): Use m_reachability.
11496
11497 2019-04-01 Martin Liska <mliska@suse.cz>
11498
11499 PR driver/89861
11500 * opt-suggestions.c (option_proposer::build_option_suggestions):
11501 Add variant without any argument in order to provide better
11502 hints.
11503
11504 2019-04-01 Richard Biener <rguenther@suse.de>
11505
11506 PR c/71598
11507 * gimple.c: Include langhooks.h.
11508 (gimple_get_alias_set): Treat enumeral types as the underlying
11509 integer type.
11510
11511 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11512 Eric Botcazou <ebotcazou@adacore.com>
11513
11514 PR rtl-optimization/89862
11515 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
11516 that operates on the full registers for WORD_REGISTER_OPERATIONS
11517 architectures.
11518
11519 2019-03-29 Jim Wilson <jimw@sifive.com>
11520
11521 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
11522 Clear MASK_RVC and then set if C subset supported.
11523
11524 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11525
11526 PR c/89872
11527 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
11528 non-addressable complit into its initializer if it is volatile.
11529
11530 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
11531
11532 * opts-common.c (integral_argument): Set errno properly in one case.
11533
11534 2019-03-29 Martin Liska <mliska@suse.cz>
11535
11536 * doc/invoke.texi: Remove -Wchkp from documentation.
11537
11538 2019-03-29 Martin Liska <mliska@suse.cz>
11539
11540 * dbgcnt.c (print_limit_reach): New function.
11541 (dbg_cnt): Use it.
11542
11543 2019-03-29 Martin Liska <mliska@suse.cz>
11544
11545 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
11546 (dbg_cnt_process_opt): Parse first tokens aas
11547 dbg_cnt_process_single_pair is also using strtok.
11548
11549 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11550
11551 PR rtl-optimization/87485
11552 * function.c (expand_function_end): Move stack_protect_epilogue
11553 before loading of return value into hard register(s).
11554
11555 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11556
11557 PR middle-end/89621
11558 * tree-inline.h (struct copy_body_data): Add
11559 dont_remap_vla_if_no_change flag.
11560 * tree-inline.c (remap_type_3, remap_type_2): New functions.
11561 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
11562 and remap_type_2 returns false.
11563 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
11564 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
11565 only from where it is copied to nested contexts.
11566
11567 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11568
11569 PR target/89865
11570 * config/i386/i386.md (RMW operation with LEA peephole):
11571 Use LEAMODE mode attribute instead of SWI mode iterator for
11572 LEA pattern.
11573
11574 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11575
11576 PR target/89848
11577 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
11578 Also process XEXP (src, 0) of a shift insn.
11579
11580 2019-03-28 David Malcolm <dmalcolm@redhat.com>
11581
11582 PR middle-end/89725
11583 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
11584 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
11585
11586 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11587
11588 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
11589 test.
11590 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
11591 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
11592 immediately after first one with df_analyze in between, but rather
11593 process all bbs, queueing ones that need second pass in a worklist,
11594 df_analyze, process queued debug insn changes and if second pass is
11595 needed, process bbs from worklist, df_analyze, process queued debug
11596 insns again.
11597
11598 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
11599 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
11600 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
11601
11602 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
11603
11604 PR c/79022
11605 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
11606 definition.
11607
11608 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
11609
11610 PR target/85667
11611 * config/i386/i386.c (ix86_function_value_1): Call the newly added
11612 function for 32-bit MS_ABI.
11613 (function_value_ms_32): New function.
11614
11615 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
11616
11617 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
11618 (movdi): Call gen_movdi_symbol_save_scc.
11619 (gen_movdi_symbol_save_scc): New insn and split.
11620
11621 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
11622
11623 PR rtl-optimization/89313
11624 * function.c (matching_constraint_num): New static function.
11625 (match_asm_constraints_1): Use it. Fixup white space and comment.
11626 Don't replace inputs with non-matching constraints which conflict
11627 with early clobber outputs.
11628
11629 2019-03-27 Jeff Law <law@redhat.com>
11630
11631
11632 PR rtl-optimization/87761
11633 PR rtl-optimization/89826
11634 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
11635 slightly later.
11636 (pass_cprop_hardreg::execute): Call df_analyze after adding the
11637 note problem to get REG_DEAD/REG_UNUSED notes updated.
11638
11639 2019-03-27 Richard Biener <rguenther@suse.de>
11640
11641 PR tree-optimization/89463
11642 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
11643 queue edges to remove.
11644 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
11645 dead stmts. Delay edge removal until PHIs are removed to
11646 make debug-stmt creation not confused by seemingly degenerate
11647 PHIs.
11648
11649 2019-03-27 Alan Modra <amodra@gmail.com>
11650
11651 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
11652 throughout file.
11653 * config/rs6000/darwin.h: Likewise.
11654 * config/rs6000/rs6000.c: Likewise.
11655
11656 2019-03-27 Alan Modra <amodra@gmail.com>
11657
11658 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
11659 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
11660
11661 2019-03-26 Andrew Waterman <andrew@sifive.com>
11662 Jim Wilson <jimw@sifive.com>
11663
11664 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
11665 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
11666 (generic_idivdi, generic_fmul_single, generic_fmul_double)
11667 (generic_fdiv, generic_fsqrt): Add check for generic tune.
11668 (generic_alu): Add auipc to type list.
11669 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
11670 (riscv_microarchitecture): Declare.
11671 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
11672 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
11673 field.
11674 (riscv_microarchitecture): New.
11675 (sifive_7_tune_info): New.
11676 (riscv_cpu_info_table): Add microarchitecture value for rocket and
11677 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
11678 entries.
11679 (riscv_store_data_bypass_p): New.
11680 (riscv_option_override): Set riscv_microarchitecture from
11681 cpu->microarchitecture.
11682 * config/riscv/riscv.md: Include sifive-7.md.
11683 (type): Add auipc.
11684 (tune): New.
11685 (auipc<mode>): Change type to auipc.
11686 (restore_stack_nonlocal): New.
11687 * config/riscv/sifive-7.md: New.
11688 * doc/invoke.texi (RISC-V Options): Update mtune docs.
11689
11690 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
11691
11692 PR target/89827
11693 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11694 Also process XEXP (src, 0) of a shift insn.
11695
11696 2019-03-26 Richard Biener <rguenther@suse.de>
11697
11698 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
11699 (copy_debug_stmt): Likewise.
11700 (expand_call_inline): Likewise.
11701 (copy_bb): Avoid redundant lookup & set of gimple_block.
11702 * gimple-low.c (lower_gimple_return): Likewise.
11703 (lower_builtin_setjmp): Likewise.
11704
11705 2019-03-26 Jakub Jelinek <jakub@redhat.com>
11706
11707 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
11708 is constant 0, turn into static const data member initialized to false.
11709 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
11710 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
11711
11712 2019-03-26 Jason Merrill <jason@redhat.com>
11713 Jakub Jelinek <jakub@redhat.com>
11714
11715 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
11716 method.
11717 (mem_alloc_description::release_object_overhead): Fix comment typos.
11718 * hash-table.h (hash_table::~hash_table): Call
11719 release_instance_overhead only if m_entries is non-NULL, otherwise
11720 call unregister_descriptor.
11721
11722 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
11723
11724 PR tree-optimization/81740
11725 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11726 In case of outer loop vectorization, check for backward dependence
11727 at the inner loop if outer loop dependence is reversed.
11728
11729 2019-03-26 Alan Modra <amodra@gmail.com>
11730
11731 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
11732 rs6000_vector_mem init. Correct wI and wJ comment.
11733
11734 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
11735
11736 PR rtl-optimization/88347
11737 PR rtl-optimization/88423
11738 * sched-deps.c (sched_analyze_insn): Take into account that for
11739 tablejumps the barrier appears after a label and a jump_table_data.
11740
11741 2019-03-25 Martin Sebor <msebor@redhat.com>
11742
11743 PR c/89812
11744 * c-common.c (check_user_alignment): Rename local. Correct maximum
11745 alignment in diagnostic. Avoid assuming argument fits in SHWI,
11746 convert it to UHWI when it fits.
11747
11748 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
11749
11750 PR debug/86964
11751 * dwarf2out.c (premark_used_variables): New function.
11752 (prune_unused_types_walk): Do not mark not premarked external
11753 variables.
11754 (prune_unused_types): Call premark_used_variables.
11755
11756 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
11757
11758 PR rtl-optimization/89676
11759 * lra-constraints.c (curr_insn_transform): Do match reload for
11760 early clobbers when the match was successful only for different
11761 registers.
11762
11763 2019-03-25 Martin Sebor <msebor@redhat.com>
11764
11765 * doc/extend.texi (Common Type Attributes): Document vector_size.
11766 (Common Variable Attributes): Mention size constraint. Correct
11767 quoting and typos.
11768 (Vector Extensions): Use @dfn when defining bas type. Clarify
11769 base type and size constraints.
11770
11771 2019-03-25 Richard Biener <rguenther@suse.de>
11772
11773 PR tree-optimization/89789
11774 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
11775 changes from non-undefined back to undefined.
11776
11777 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
11778
11779 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
11780 heap string and a gc string, but since this variable is unknown to
11781 ggc the gc string might get reused and corrupted. Fixed by always
11782 using a heap string.
11783
11784 2019-03-25 Richard Biener <rguenther@suse.de>
11785
11786 PR tree-optimization/89779
11787 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
11788 to remove IV defs, delay actual removal.
11789 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
11790 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
11791 very end, properly also reset loop control IV information.
11792
11793 2019-03-25 Richard Biener <rguenther@suse.de>
11794
11795 PR tree-optimization/89802
11796 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
11797 move EH data to folded stmt.
11798
11799 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11800
11801 * config/s390/s390-builtin-types.def: Remove few unused types and
11802 fix sort order for others.
11803
11804 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11805
11806 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
11807 expected and found types with -mdebug during builtin matching.
11808
11809 2019-03-25 Richard Biener <rguenther@suse.de>
11810
11811 PR middle-end/89790
11812 * fold-const.c (operand_equal_p): Revert last change with
11813 updated comment.
11814
11815 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
11816
11817 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
11818 notes for the result of the __tls_get_addr calls.
11819 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
11820
11821 2019-03-24 Jeff Law <law@redhat.com>
11822
11823 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
11824
11825 PR rtl-optimization/87761
11826 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
11827 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
11828 as needed.
11829 (pass_cprop_hardreg::execute): Add df note problem and defer insn
11830 rescans. Reprocess blocks as needed, calling df_analyze before
11831 reprocessing. Always call df_analyze before fixing up debug bind
11832 insns.
11833
11834 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
11835
11836 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
11837 big endian.
11838
11839 2019-03-22 Andrew Pinski <apinski@marvell.com>
11840
11841 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
11842 attrribute for uxtw.
11843
11844 2019-03-26 Jeff Law <law@redhat.com>
11845
11846 PR rtl-optimization/87761
11847 * config/mips/mips-protos.h (mips_split_move): Add new argument.
11848 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
11849 (mips_split_move): Accept new INSN argument. Try to forward SRC
11850 into the next instruction.
11851 (mips_split_move_insn): Pass INSN through to mips_split_move.
11852
11853 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
11854
11855 PR rtl-optimization/89676
11856 * lra-constraints.c (curr_insn_transform): Do match reload for
11857 early clobbers even if the match was successful.
11858
11859 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR c++/87481
11862 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
11863
11864 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
11865
11866 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
11867
11868 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11869
11870 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
11871 <avx512>_fmsub_<mode>_mask3<round_name>,
11872 <avx512>_fnmadd_<mode>_mask3<round_name>,
11873 <avx512>_fnmsub_<mode>_mask3<round_name>,
11874 avx512f_vmfmadd_<mode>_mask3<round_name>,
11875 avx512f_vmfmsub_<mode>_mask3<round_name>,
11876 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
11877 instead of register_operand and %v instead of v for match_operand 1.
11878 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
11879 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
11880 <round_nimm_predicate> instead of register_operand and %v instead of v
11881 for match_operand 1.
11882
11883 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
11884 <avx512>_fmadd_<mode>_mask3<round_name>,
11885 <avx512>_fmsub_<mode>_mask<round_name>,
11886 <avx512>_fmsub_<mode>_mask3<round_name>,
11887 <avx512>_fnmadd_<mode>_mask<round_name>,
11888 <avx512>_fnmadd_<mode>_mask3<round_name>,
11889 <avx512>_fnmsub_<mode>_mask<round_name>,
11890 <avx512>_fnmsub_<mode>_mask3<round_name>,
11891 <avx512>_fmaddsub_<mode>_mask<round_name>,
11892 <avx512>_fmaddsub_<mode>_mask3<round_name>,
11893 <avx512>_fmsubadd_<mode>_mask<round_name>,
11894 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
11895 <round_nimm_predicate> instead of nonimmediate_operand.
11896 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
11897 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
11898 Use register_operand instead of <round_nimm_predicate> for the
11899 operand that needs to match output.
11900 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
11901 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
11902 Likewise. Formatting fixes.
11903
11904 PR target/89784
11905 * config/i386/i386.c (enum ix86_builtins): Remove
11906 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
11907 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
11908 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
11909 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
11910 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
11911 __builtin_ia32_vfmsubss3_mask3): New builtins.
11912 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
11913 avx512f_vmfmadd_<mode>_mask3<round_name>,
11914 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
11915 *avx512f_vmfmsub_<mode>_mask<round_name>,
11916 avx512f_vmfmsub_<mode>_mask3<round_name>,
11917 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
11918 *avx512f_vmfnmadd_<mode>_mask<round_name>,
11919 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
11920 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
11921 *avx512f_vmfnmsub_<mode>_mask<round_name>,
11922 avx512f_vmfnmsub_<mode>_mask3<round_name>,
11923 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
11924 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
11925 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
11926 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
11927 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
11928 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
11929 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
11930 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
11931 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
11932 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
11933 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
11934 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
11935 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
11936 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
11937 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
11938 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
11939 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
11940 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
11941 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
11942 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
11943 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
11944 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
11945
11946 2019-03-21 Martin Sebor <msebor@redhat.com>
11947
11948 PR tree-optimization/89350
11949 * builtins.c (compute_objsize): Also ignore offsets whose upper
11950 bound is negative.
11951 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
11952 (builtin_memref::builtin_memref): Initialize new member.
11953 Allow EXPR to be null.
11954 (builtin_memref::extend_offset_range): Replace local with a member.
11955 Avoid assuming pointer offsets are unsigned.
11956 (builtin_memref::set_base_and_offset): Determine base object
11957 before computing offset range.
11958 (builtin_access::builtin_access): Handle memset.
11959 (builtin_access::generic_overlap): Replace local with a member.
11960 (builtin_access::strcat_overlap): Same.
11961 (builtin_access::overlap): Same.
11962 (maybe_diag_overlap): Same.
11963 (maybe_diag_access_bounds): Same.
11964 (wrestrict_dom_walker::check_call): Handle memset.
11965 (check_bounds_or_overlap): Same.
11966
11967 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
11968 Jakub Jelinek <jakub@redhat.com>
11969
11970 PR lto/89692
11971 * tree.c (fld_type_variant, fld_incomplete_type_of,
11972 fld_process_array_type): Call fld->pset.add and don't call
11973 add_tree_to_fld_list if it returns true.
11974 (free_lang_data_in_type): Similarly with self-recursive call. Purge
11975 non-marked types from TYPE_NEXT_VARIANT list.
11976 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
11977
11978 2019-03-21 Jakub Jelinek <jakub@redhat.com>
11979
11980 * hash-table.h (hash_table): Add Lazy template parameter defaulted
11981 to false, if true, don't alloc_entries during construction, but defer
11982 it to the first method that needs m_entries allocated.
11983 (hash_table::hash_table, hash_table::~hash_table,
11984 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
11985 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
11986 hash_table::clear_slot, hash_table::traverse_noresize,
11987 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
11988 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
11989 false.
11990 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
11991 NO_INSERT instead of find_with_hash.
11992 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
11993 hash_set::m_table): Add Lazy to template params of hash_table.
11994 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
11995 * attribs.c (test_attribute_exclusions): Likewise.
11996 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
11997 hash_set. Add tests for hash_set with Lazy = true.
11998
11999 2019-03-21 Richard Biener <rguenther@suse.de>
12000
12001 PR tree-optimization/89779
12002 * tree.c (tree_nop_conversion): Consolidate and fix defensive
12003 checks with respect to released SSA names now having error_mark_node
12004 type.
12005 * fold-const.c (operand_equal_p): Likewise.
12006
12007 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
12008
12009 PR target/89775
12010 * config/s390/s390.c (global_not_special_regno_p): Move to make it
12011 available to ...
12012 (s390_optimize_register_info): Use global_not_special_regno_p to
12013 check for global regs.
12014
12015 2019-03-20 Jakub Jelinek <jakub@redhat.com>
12016
12017 PR target/89752
12018 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
12019 update this_alternative nor this_alternative_set.
12020
12021 2019-03-19 Jim Wilson <jimw@sifive.com>
12022
12023 PR target/89411
12024 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
12025 align, size, offset. Use them to handle a BLKmode reference. Update
12026 comment.
12027 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
12028
12029 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12030
12031 PR rtl-optimization/89768
12032 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
12033 instead of GEN_INT.
12034 (unroll_loop_runtime_iterations): Likewise.
12035
12036 2019-03-19 Martin Sebor <msebor@redhat.com>
12037
12038 PR tree-optimization/89644
12039 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
12040 rather than endptr as an indicator of nul-termination.
12041
12042 PR tree-optimization/89644
12043 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
12044 arrays in determining sequence sizes in strncpy and stpncpy.
12045
12046 2019-03-19 Martin Liska <mliska@suse.cz>
12047
12048 PR middle-end/89737
12049 * predict.c (combine_predictions_for_bb): Empty likely_edges and
12050 unlikely_edges if there's an edge that belongs to both these sets.
12051
12052 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
12053
12054 PR target/89746
12055 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
12056 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
12057 go via a stack temporary.
12058
12059 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12060
12061 PR target/89378
12062 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
12063 instead of gen_rtx_SUBREG.
12064 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
12065
12066 2019-03-19 Richard Biener <rguenther@suse.de>
12067
12068 PR debug/88389
12069 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
12070
12071 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
12072
12073 PR lto/87809
12074 PR lto/89335
12075 * tree.c (free_lang_data_in_decl): Do not free context of C++
12076 destrutors.
12077
12078 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR target/89506
12081 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
12082 subs for the first alternative except when operands[3] is 1.
12083
12084 PR target/89752
12085 * gimplify.c (gimplify_asm_expr): For output argument with
12086 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
12087 diagnose error.
12088
12089 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
12090
12091 PR rtl-optimization/89753
12092 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12093 explicit unrolling factor even more robust.
12094
12095 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12096
12097 PR target/89726
12098 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
12099 compensation use x2 += 1 instead of x2 -= -1 and when honoring
12100 signed zeros, do another copysign after the compensation.
12101
12102 2019-03-18 Martin Sebor <msebor@redhat.com>
12103
12104 PR tree-optimization/89720
12105 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
12106 more conservatively, the same as anti-range.
12107
12108 2019-03-18 Richard Biener <rguenther@suse.de>
12109
12110 PR middle-end/88945
12111 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
12112 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
12113 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
12114 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
12115
12116 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
12117
12118 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
12119 Extend queue to 1024 entries.
12120 Add "consumed" field.
12121 (gomp_print_output): Remove print_index parameter.
12122 Add final parameter.
12123 Change limit to unsigned.
12124 Use consumed field to implement circular buffer.
12125 Detect interrupted print in final pass.
12126 Flush output at the end.
12127 (run): Update gomp_print_output usage.
12128 (main): Initialize kernargs->output_data.consumed.
12129
12130 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
12131
12132 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
12133 calculation of the minimum number of scalar iterations for
12134 fully-predicated loops.
12135
12136 2019-03-18 Martin Jambor <mjambor@suse.cz>
12137
12138 PR tree-optimization/89546
12139 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
12140 any propagation to its children took place.
12141
12142 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
12143
12144 PR target/89627
12145 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
12146 parameter, and make use of it.
12147 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
12148
12149 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12150
12151 * config/arc/arc.opt (mcode-density-frame): Get the inital value
12152 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
12153 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12154 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12155 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
12156 match what the ops is doing.
12157 (push_multi_fp_blink): Likewise.
12158 * config/arc/arc.c (arc_override_options): Enable enter/leave when
12159 compiling for size and elf target.
12160 (arc_save_callee_enter): Adjust note to match what enter/leave
12161 operation does.
12162
12163 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12164
12165 * config/arc/arc.md (tst_movb): Fix constraint.
12166
12167 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12168
12169 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12170
12171 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12172
12173 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
12174 * config/arc/arc.c (arc_conditional_register_usage): Remove all
12175 reg_alloc_order references.
12176 (size_alloc_order): Define.
12177 (arc_adjust_reg_alloc_order): New function.
12178 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
12179 order.
12180 (ADJUST_REG_ALLOC_ORDER): Define.
12181 (HONOR_REG_ALLOC_ORDER): Likewise.
12182
12183 2019-03-18 Richard Biener <rguenther@suse.de>
12184
12185 PR target/87561
12186 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
12187 loads and stores a bit more.
12188
12189 2019-03-18 Richard Biener <rguenther@suse.de>
12190
12191 PR target/87561
12192 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
12193 load pessimization to stores as well.
12194
12195 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
12196
12197 PR middle-end/86979
12198 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
12199 successor, use NULL as its av set.
12200
12201 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
12202
12203 PR rtl-optimization/89721
12204 * lra-constraints (invariant_p): Return false if side_effects_p holds.
12205
12206 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
12207
12208 PR target/87532
12209 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12210 When handling vec_extract, use modular arithmetic to allow
12211 constant selectors greater than vector length.
12212 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
12213 V1TImode vectors to have constant selector values greater than 0.
12214 Use modular arithmetic to compute vector index.
12215 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
12216 index for in-memory vectors. Correct code generation for
12217 in-register vectors.
12218 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
12219 compute index.
12220
12221 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
12222
12223 PR c++/88534
12224 PR c++/88537
12225 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12226 VAR_DECL args.
12227
12228 2019-03-15 Jakub Jelinek <jakub@redhat.com>
12229
12230 PR c++/89709
12231 * tree.c (inchash::add_expr): Strip any location wrappers.
12232 * fold-const.c (operand_equal_p): Move stripping of location wrapper
12233 after hash verification.
12234
12235 PR debug/89704
12236 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12237 SIGN_EXTEND and ZERO_EXTEND.
12238
12239 2019-03-14 Jason Merrill <jason@redhat.com>
12240 Jakub Jelinek <jakub@redhat.com>
12241
12242 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12243 than if is_empty (*slot).
12244 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12245 existing elt and for elt removal.
12246 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12247 of already removed elt.
12248
12249 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
12250
12251 PR target/89650
12252 * config/i386/i386.c (remove_partial_avx_dependency): Handle
12253 REG_EH_REGION note.
12254
12255 2019-03-14 Martin Liska <mliska@suse.cz>
12256
12257 PR other/89712
12258 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12259
12260 2019-03-14 Richard Biener <rguenther@suse.de>
12261
12262 PR target/89711
12263 * config/i386/i386.c (make_resolver_func): Properly set
12264 DECL_CONTEXT on the RESULT_DECL.
12265 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12266
12267 2019-03-14 Richard Biener <rguenther@suse.de>
12268
12269 * gimple-pretty-print.c: Include cfgloop.h.
12270 (dump_gimple_phi): Adjust.
12271 (dump_gimple_bb_header): Dump loop header for GIMPLE.
12272 (pp_cfg_jump): Adjust.
12273 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12274 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12275 (lower_phi_internal_fn): Remove.
12276 (verify_gimple_call): Remove IFN_PHI special-casing.
12277 (dump_function_to_file): Dump IL state.
12278 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12279 done to deal with PHI nodes being present in non-SSA state.
12280
12281 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12282
12283 PR ipa/89684
12284 * multiple_target.c (create_dispatcher_calls): Change
12285 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12286 In the node->iterate_referring loop, push *ref rather than ref, call
12287 ref->remove_reference () and always pass 0 to iterate_referring.
12288
12289 PR rtl-optimization/89679
12290 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12291 would contain a paradoxical SUBREG.
12292
12293 2019-03-14 Richard Biener <rguenther@suse.de>
12294
12295 PR tree-optimization/89710
12296 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12297 safe_dyn_cast.
12298
12299 2019-03-14 Martin Liska <mliska@suse.cz>
12300
12301 * coverage.c (coverage_begin_function): Stream also
12302 end_column.
12303 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
12304 documentation about function declaration location.
12305 * gcov-dump.c (tag_function): Print whole range
12306 of function declaration.
12307 * gcov.c (struct function_info): Add end_column field.
12308 (function_info::function_info): Initialize it.
12309 (output_json_intermediate_file): Output {start,end}_column
12310 fields.
12311 (read_graph_file): Read end_column.
12312
12313 2019-03-14 Richard Biener <rguenther@suse.de>
12314
12315 PR middle-end/89698
12316 * fold-const.c (operand_equal_p): For INDIRECT_REF check
12317 that the access types are similar.
12318
12319 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12320
12321 PR tree-optimization/89703
12322 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12323 aren't compatible also with builtin_decl_explicit. Check pure
12324 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12325 and BUILT_IN_STPNCPY{,_CHK}.
12326
12327 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
12328
12329 PR target/89523
12330 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12331 addr32 prefix to VSIB address for X32.
12332 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12333 "%M2" to opcode.
12334 (*avx512pf_gatherpf<mode>df_mask): Likewise.
12335 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12336 (*avx512pf_scatterpf<mode>df_mask): Likewise.
12337 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12338 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12339 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12340 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12341 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12342 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12343 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12344 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12345 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12346 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12347 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12348 (*avx512f_scatterdi<mode>): Likewise.
12349
12350 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
12351
12352 PR target/85860
12353 * lra-constraints.c (inherit_in_ebb): Update
12354 potential_reload_hard_regs along with live_hard_regs.
12355
12356 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12357
12358 PR debug/89498
12359 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12360 DWARF_OFFSET_SIZE.
12361 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12362
12363 2019-03-13 Martin Sebor <msebor@redhat.com>
12364
12365 PR tree-optimization/89662
12366 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12367 has a size.
12368
12369 2019-03-13 Richard Biener <rguenther@suse.de>
12370
12371 PR middle-end/89677
12372 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12373 throw FP expressions at tree-affine.
12374
12375 2019-03-14 Richard Biener <rguenther@suse.de>
12376
12377 * tree-pretty-print.c (dump_generic_node): For -gimple properly
12378 dump negative integer constants using _Literal (type) -num.
12379
12380 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12381
12382 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12383 nonlocal_value member.
12384
12385 PR middle-end/88588
12386 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12387 (ipa_simd_modify_function_body): Handle PHIs.
12388
12389 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12390
12391 * config/s390/s390.c (s390_option_override_internal): Use more
12392 aggressive inlining parameters.
12393
12394 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12395
12396 * config/s390/3906.md: New file.
12397 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12398 (LONGRUNNING_THRESHOLD): Remove.
12399 (MAX_SCHED_MIX_SCORE): Decrease.
12400 (MAX_SCHED_MIX_DISTANCE): Decrease.
12401 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12402 (struct s390_sched_state): New struct to hold scheduling state.
12403 (S390_SCHED_STATE_NORMAL): Remove.
12404 (S390_SCHED_STATE_CRACKED): Remove.
12405 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12406 (s390_get_sched_attrmask): Use new attribute.
12407 (s390_get_unit_mask): Use new units.
12408 (s390_is_fpd): New function.
12409 (s390_is_fxd): New function.
12410 (s390_is_longrunning): New function.
12411 (s390_sched_score): Use new functions.
12412 (s390_sched_reorder): Likewise.
12413 (s390_sched_variable_issue): Rework and use new functions.
12414 (s390_sched_init): Use new functions.
12415 * config/s390/s390.h (s390_tune_attr): Add z14.
12416 * config/s390/s390.md: Add z14.
12417
12418 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12419
12420 * config/s390/2964.md: Update pipeline description.
12421 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12422 (LONGRUNNING_THRESHOLD): Remove.
12423 (LATENCY_FACTOR): Remove.
12424 (s390_get_unit_mask): Add unit.
12425 (s390_sched_score): Use fxd/fpd.
12426 (s390_sched_variable_issue): Use fxd/fpd.
12427
12428 2019-03-12 Martin Liska <mliska@suse.cz>
12429
12430 * config/i386/i386.c: Reword an error message.
12431
12432 2019-03-12 Martin Jambor <mjambor@suse.cz>
12433
12434 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
12435 terminate with newline.
12436
12437 2019-03-12 Jakub Jelinek <jakub@redhat.com>
12438
12439 PR target/52726
12440 * config/s390/s390.md (tabort): Use %wd instead of
12441 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
12442 letters and periods.
12443 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
12444 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
12445 's with %< and %>.
12446
12447 PR middle-end/89663
12448 * builtins.c (expand_builtin_int_roundingfn,
12449 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
12450 gcc_unreachable if validate_arglist fails.
12451
12452 2019-03-12 Richard Biener <rguenther@suse.de>
12453
12454 PR tree-optimization/89664
12455 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
12456 free the occurance tree after the early out.
12457
12458 2019-03-11 Jakub Jelinek <jakub@redhat.com>
12459
12460 PR middle-end/89655
12461 PR bootstrap/89656
12462 * vr-values.c (vr_values::update_value_range): If
12463 old_vr->varying_p (), don't update it, make new_vr also VARYING
12464 and return false.
12465
12466 2019-03-11 Martin Liska <mliska@suse.cz>
12467
12468 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12469 Fix double string quoting.
12470
12471 2019-03-11 Martin Liska <mliska@suse.cz>
12472
12473 * collect-utils.c (collect_wait): Wrap apostrophes
12474 in gcc internal format with %'.
12475 * collect2.c (main): Likewise.
12476 (scan_prog_file): Likewise.
12477 (scan_libraries): Likewise.
12478 * config/i386/i386.c (ix86_expand_call): Likewise.
12479 (ix86_handle_interrupt_attribute): Likewise.
12480 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12481 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12482 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
12483 * lto-wrapper.c (find_crtoffloadtable): Likewise.
12484 * symtab.c (symtab_node::verify_base): Likewise.
12485 * tree-cfg.c (verify_gimple_label): Likewise.
12486 * tree.c (verify_type_variant): Likewise.
12487
12488 2019-03-11 Martin Liska <mliska@suse.cz>
12489
12490 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
12491 in a string format message and fix GNU coding style.
12492 (expand_builtin_set_thread_pointer): Likewise.
12493 * common/config/aarch64/aarch64-common.c
12494 (aarch64_rewrite_selected_cpu): Likewise.
12495 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
12496 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
12497 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
12498 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12499 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
12500 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
12501 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
12502 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
12503 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
12504 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
12505 Likewise.
12506 * common/config/riscv/riscv-common.c
12507 (riscv_subset_list::parsing_subset_version): Likewise.
12508 (riscv_subset_list::parse_std_ext): Likewise.
12509 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12510 (riscv_subset_list::parse): Likewise.
12511 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
12512 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
12513 (aarch64_override_options_internal): Likewise.
12514 (aarch64_validate_mcpu): Likewise.
12515 (aarch64_validate_march): Likewise.
12516 (aarch64_validate_mtune): Likewise.
12517 (aarch64_override_options): Likewise.
12518 * config/alpha/alpha.c (alpha_option_override): Likewise.
12519 * config/arc/arc.c (arc_init): Likewise.
12520 (parse_mrgf_banked_regs_option): Likewise.
12521 (arc_override_options): Likewise.
12522 (arc_expand_builtin_aligned): Likewise.
12523 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
12524 (arm_expand_builtin): Likewise.
12525 * config/arm/arm.c (arm_option_check_internal): Likewise.
12526 (arm_configure_build_target): Likewise.
12527 (arm_option_override): Likewise.
12528 (arm_options_perform_arch_sanity_checks): Likewise.
12529 (arm_handle_cmse_nonsecure_entry): Likewise.
12530 (arm_handle_cmse_nonsecure_call): Likewise.
12531 (arm_tls_referenced_p): Likewise.
12532 (thumb1_expand_prologue): Likewise.
12533 * config/avr/avr.c (avr_option_override): Likewise.
12534 * config/bfin/bfin.c (bfin_option_override): Likewise.
12535 * config/c6x/c6x.c (c6x_option_override): Likewise.
12536 * config/cr16/cr16.c (cr16_override_options): Likewise.
12537 * config/cris/cris.c (cris_option_override): Likewise.
12538 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
12539 * config/darwin-c.c (macosx_version_as_macro): Likewise.
12540 * config/darwin.c (darwin_override_options): Likewise.
12541 * config/frv/frv.c (frv_expand_builtin): Likewise.
12542 * config/h8300/h8300.c (h8300_option_override): Likewise.
12543 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
12544 (ix86_option_override_internal): Likewise.
12545 (warn_once_call_ms2sysv_xlogues): Likewise.
12546 (ix86_expand_prologue): Likewise.
12547 (split_stack_prologue_scratch_regno): Likewise.
12548 (ix86_warn_parameter_passing_abi): Likewise.
12549 * config/ia64/ia64.c (fix_range): Likewise.
12550 * config/m68k/m68k.c (m68k_option_override): Likewise.
12551 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
12552 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
12553 (mips_set_compression_mode): Likewise.
12554 * config/mmix/mmix.c (mmix_option_override): Likewise.
12555 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
12556 * config/msp430/msp430.c (msp430_option_override): Likewise.
12557 * config/nds32/nds32.c (nds32_option_override): Likewise.
12558 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
12559 (nios2_option_override): Likewise.
12560 (nios2_expand_custom_builtin): Likewise.
12561 * config/nvptx/mkoffload.c (main): Likewise.
12562 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
12563 * config/pa/pa.c (fix_range): Likewise.
12564 (pa_option_override): Likewise.
12565 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
12566 (riscv_option_override): Likewise.
12567 * config/rl78/rl78.c (rl78_option_override): Likewise.
12568 * config/rs6000/aix61.h: Likewise.
12569 * config/rs6000/aix71.h: Likewise.
12570 * config/rs6000/aix72.h: Likewise.
12571 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
12572 * config/rs6000/freebsd64.h: Likewise.
12573 * config/rs6000/linux64.h: Likewise.
12574 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
12575 (rs6000_expand_zeroop_builtin): Likewise.
12576 (rs6000_expand_mtfsb_builtin): Likewise.
12577 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
12578 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
12579 (rs6000_invalid_builtin): Likewise.
12580 (rs6000_expand_split_stack_prologue): Likewise.
12581 * config/rs6000/rtems.h: Likewise.
12582 * config/rx/rx.c (valid_psw_flag): Likewise.
12583 (rx_expand_builtin): Likewise.
12584 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12585 * config/s390/s390.c (s390_expand_builtin): Likewise.
12586 (s390_function_profiler): Likewise.
12587 (s390_option_override_internal): Likewise.
12588 (s390_option_override): Likewise.
12589 * config/sh/sh.c (sh_option_override): Likewise.
12590 (sh_builtin_saveregs): Likewise.
12591 (sh_fix_range): Likewise.
12592 * config/sh/vxworks.h: Likewise.
12593 * config/sparc/sparc.c (sparc_option_override): Likewise.
12594 * config/spu/spu.c (spu_option_override): Likewise.
12595 (fix_range): Likewise.
12596 * config/visium/visium.c (visium_option_override): Likewise.
12597 (visium_handle_interrupt_attr): Likewise.
12598 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
12599 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
12600 (dbg_cnt_process_opt): Likewise.
12601 * dwarf2out.c (output_dwarf_version): Likewise.
12602 * except.c (expand_eh_return): Likewise.
12603 * gcc.c (defined): Likewise.
12604 (driver_handle_option): Likewise.
12605 (process_command): Likewise.
12606 (compare_files): Likewise.
12607 (driver::prepare_infiles): Likewise.
12608 (driver::do_spec_on_infiles): Likewise.
12609 (driver::maybe_run_linker): Likewise.
12610 * omp-offload.c (oacc_parse_default_dims): Likewise.
12611 * opts-global.c (handle_common_deferred_options): Likewise.
12612 * opts.c (parse_sanitizer_options): Likewise.
12613 (common_handle_option): Likewise.
12614 (enable_warning_as_error): Likewise.
12615 * passes.c (enable_disable_pass): Likewise.
12616 * plugin.c (parse_plugin_arg_opt): Likewise.
12617 (default_plugin_dir_name): Likewise.
12618 * targhooks.c (default_expand_builtin_saveregs): Likewise.
12619 (default_pch_valid_p): Likewise.
12620 * toplev.c (init_asm_output): Likewise.
12621 (process_options): Likewise.
12622 (toplev::run_self_tests): Likewise.
12623 * tree-cfg.c (verify_gimple_call): Likewise.
12624 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
12625 (tree_inlinable_function_p): Likewise.
12626 * var-tracking.c (vt_find_locations): Likewise.
12627
12628 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
12629
12630 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
12631 only on the else branch.
12632
12633 2019-03-11 Martin Liska <mliska@suse.cz>
12634
12635 * gcov.c (output_intermediate_json_line): Print function
12636 name of each line.
12637 (output_json_intermediate_file): Add new argument.
12638 * doc/gcov.texi: Document the change.
12639
12640 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
12641
12642 PR rtl-optimization/89588
12643 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12644 explicit unrolling factor more robust.
12645
12646 2019-03-11 Richard Biener <rguenther@suse.de>
12647
12648 PR tree-optimization/89649
12649 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12650 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
12651 on the prolog and epilog loops.
12652 (vect_loop_versioning): Return copy of loop.
12653 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
12654 on the non-vectorized version of the loop.
12655
12656 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
12657
12658 PR target/68924
12659 * config/i386/sse.md (*vec_extractv2di_0_sse):
12660 Add (=r,x) alternative and corresponding splitter.
12661
12662 2019-03-10 Martin Jambor <mjambor@suse.cz>
12663
12664 PR tree-optimization/85762
12665 PR tree-optimization/87008
12666 PR tree-optimization/85459
12667 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
12668 it points to if there is a type changing MEM_REF. Adjust all callers.
12669 (build_accesses_from_assign): Disable total scalarization if
12670 contains_vce_or_bfcref_p returns true through the new parameter, for
12671 both rhs and lhs.
12672
12673 2019-03-09 Jakub Jelinek <jakub@redhat.com>
12674
12675 PR c/88568
12676 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
12677 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
12678
12679 PR target/79645
12680 * common.opt (fdiagnostics-show-labels,
12681 fdiagnostics-show-line-numbers, fdiagnostics-format=,
12682 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
12683 gas-locview-support, ginline-points, ginternal-reset-location-views):
12684 Terminate description text with a dot.
12685 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
12686 * config/mcore/mcore.opt (m210, m340): Likewise.
12687 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
12688 mnops=): Start description text with a capital letter.
12689 * config/arc/arc.opt (msize-level=): Likewise.
12690 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
12691 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
12692 mnewlib): Likewise.
12693 * config/ft32/ft32.opt (msim): Likewise.
12694 (mft32b, mcompress): Likewise. Terminate description text with a dot.
12695 (mnodiv, mnopm): Terminate description text with a dot.
12696 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
12697 a colon.
12698 * config/i386/i386.opt (prefer_vector_width, instrument_return):
12699 Likewise.
12700 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
12701 text.
12702
12703 PR rtl-optimization/89634
12704 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
12705 are modified in BB_END (e->src) instruction.
12706
12707 2019-03-08 David Malcolm <dmalcolm@redhat.com>
12708
12709 PR target/79926
12710 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
12711 messages more amenable to translation, and improve wording.
12712
12713 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
12714
12715 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
12716 ud- and du-chains between phases.
12717
12718 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
12719
12720 PR debug/89631
12721 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
12722 instead of POLY_INT_CST.
12723
12724 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
12725
12726 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
12727 requirement.
12728
12729 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
12730
12731 PR target/68924
12732 PR target/78782
12733 PR target/87558
12734 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
12735 (_mm_storeu_si64): Ditto.
12736
12737 2019-03-08 Martin Liska <mliska@suse.cz>
12738
12739 PR target/86952
12740 * config/i386/i386.c (ix86_option_override_internal): Disable
12741 jump tables when retpolines are used.
12742
12743 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
12744
12745 PR go/63560
12746 * ipa-split.c (execute_split_functions): Do not split
12747 'noinline' or 'section' function.
12748
12749 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12750
12751 PR target/79846
12752 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
12753 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
12754 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
12755
12756 PR ipa/80000
12757 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12758 from diagnostics. Formatting fixes.
12759
12760 PR target/85665
12761 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
12762 warn_odr diagnostics.
12763
12764 PR other/80058
12765 * lra-constraints.c (process_alt_operands): Avoid one space before
12766 " at the end of line and another after " on another line in a string
12767 literal.
12768 * attribs.c (handle_dll_attribute): Likewise.
12769 * config/avr/avr-devices.c (avr_texinfo): Likewise.
12770
12771 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
12772 warning_at or inform messages in G_() if there is no ?:.
12773
12774 PR tree-optimization/89550
12775 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
12776 returned true. Formatting fixes.
12777 (expand_builtin_strnlen): Formatting fixes.
12778 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
12779 if warning_at returned true.
12780 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
12781
12782 2019-03-08 Richard Biener <rguenther@suse.de>
12783
12784 PR middle-end/89578
12785 * cfgloop.h (struct loop): Add owned_clique field.
12786 * cfgloopmanip.c (copy_loop_info): Copy it.
12787 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
12788 cliques.
12789 * tree-inline.c (copy_loops): Remap owned_clique.
12790 * lto-streamer-in.c (input_cfg): Stream owned_clique.
12791 * lto-streamer-out.c (output_cfg): Likewise.
12792
12793 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR target/80190
12796 * config/darwin.c: Include intl.h.
12797 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
12798 composing the message out of two separate parts.
12799
12800 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12801
12802 PR target/80003
12803 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
12804 doesn't start with a capital letter and doesn't end with a dot.
12805 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
12806 with a capital letter.
12807 (ix86_mangle_function_version_assembler_name): Likewise.
12808 (ix86_generate_version_dispatcher_body): Likewise.
12809 (fold_builtin_cpu): Likewise.
12810 (get_builtin_code_for_version): Likewise. Remove extraneous space.
12811 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
12812 translators, wrap full type name in %qs.
12813
12814 PR translation/79999
12815 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
12816 depend clause with source (or sink) modifier.
12817 * omp-expand.c (expand_omp_ordered_sink): Likewise.
12818
12819 PR target/89602
12820 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
12821 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
12822 (avx512f_load<mode>_mask): New define_expand.
12823 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
12824 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
12825 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
12826 __builtin_ia32_movess_mask): New builtins.
12827 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
12828 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
12829 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
12830 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
12831
12832 2019-03-07 Martin Jambor <mjambor@suse.cz>
12833
12834 PR lto/87525
12835 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
12836 for extern inline functions.
12837
12838 2019-03-07 Martin Jambor <mjambor@suse.cz>
12839
12840 PR ipa/88235
12841 * cgraph.h (cgraph_node): New inline method former_thunk_p.
12842 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
12843 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
12844 have multiple callees. At the end check if declarations match as
12845 opposed to cgraph_nodes.
12846
12847 2019-03-07 Martin Liska <mliska@suse.cz>
12848
12849 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
12850 which is equivalent to searching for this in clones chain.
12851 * symtab.c (symtab_node::verify_base): Similarly compare ASM
12852 names with a neighbour and special case first node in a chain.
12853
12854 2019-01-25 Jason Merrill <jason@redhat.com>
12855
12856 PR c++/80916 - spurious "static but not defined" warning.
12857 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
12858 for an internal symbol with DECL_EXTERNAL.
12859
12860 2019-04-07 Richard Biener <rguenther@suse.de>
12861
12862 PR middle-end/89618
12863 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
12864 * tree-inline.c (copy_loops): Simplify.
12865
12866 2019-03-07 Martin Liska <mliska@suse.cz>
12867
12868 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
12869
12870 2019-03-07 Richard Biener <rguenther@suse.de>
12871
12872 PR tree-optimization/89595
12873 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
12874 stmt iterator as reference, take boolean output parameter to
12875 indicate whether the stmt was removed and thus the iterator
12876 already advanced.
12877 (dom_opt_dom_walker::before_dom_children): Re-iterate over
12878 stmts created by folding.
12879
12880 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12881
12882 PR c++/89585
12883 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
12884 at toplevel.
12885
12886 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
12887
12888 PR rtl-optimization/88845
12889 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
12890 LRA.
12891 * lra.c (remove_scratches_1): New function.
12892 (remove_scratches): Use it.
12893 (lra_emit_move): Likewise.
12894
12895 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
12896
12897 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
12898 unaligned_access variable.
12899 * config/arc/arc.c (arc_override_options): Set unaligned access
12900 default on for HS CPUs.
12901 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
12902
12903 2019-03-06 Martin Liska <mliska@suse.cz>
12904
12905 PR gcov-profile/89577
12906 * doc/gcov.texi: Prefer to use --coverage.
12907 * doc/sourcebuild.texi: Likewise.
12908
12909 2019-03-02 Jason Merrill <jason@redhat.com>
12910
12911 PR c++/86485 - -Wmaybe-unused with empty class ?:
12912 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
12913
12914 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12915
12916 PR target/89587
12917 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
12918 if_multiarch.
12919
12920 PR middle-end/89590
12921 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
12922 exactly one argument.
12923
12924 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12925 Richard Sandiford <richard.sandiford@arm.com>
12926
12927 PR tree-optimization/89570
12928 * match.pd (vec_cond into cond_op simplification): Don't use
12929 get_conditional_internal_fn, use as_internal_fn (cond_op).
12930
12931 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
12932
12933 PR target/89222
12934 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
12935 to decide when to split off a non-zero offset from a symbol.
12936 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
12937 in function symbols.
12938
12939 2019-03-05 Richard Biener <rguenther@suse.de>
12940
12941 PR tree-optimization/89594
12942 * tree-if-conv.c (pass_if_conversion::execute): Handle
12943 case where .LOOP_VECTORIZED_FUNCTION was removed.
12944
12945 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12946
12947 PR bootstrap/89560
12948 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
12949 instead alloca it only when needed with the needed size.
12950
12951 PR tree-optimization/89570
12952 * match.pd (vec_cond into cond_op simplification): Guard with
12953 vectorized_internal_fn_supported_p test and #if GIMPLE.
12954
12955 PR tree-optimization/89566
12956 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
12957 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
12958 Punt if get_user_idx_format succeeds, but idx_format argument is
12959 not provided or doesn't have pointer type, or if idx_args is above
12960 number of provided arguments.
12961
12962 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
12963
12964 PR tree-optimization/89437
12965 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
12966
12967 2019-03-04 Richard Biener <rguenther@suse.de>
12968
12969 PR middle-end/89572
12970 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
12971 safe_dyn_cast.
12972
12973 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
12974
12975 PR tree-optimization/89487
12976 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
12977 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
12978 (distribute_loop): Don't do runtime alias check if there is non-
12979 addressable data reference.
12980 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
12981 is a register variable.
12982
12983 2019-03-02 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR target/89506
12986 * config/arm/arm.md (cmpsi2_addneg): Use
12987 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
12988 If operands[2] is 0 or INT_MIN, force use of subs.
12989 (*compare_scc splitter): Use gen_int_mode.
12990 (*negscc): Likewise.
12991 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
12992
12993 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
12994 Monk Chiang <sh.chiang04@gmail.com>
12995
12996 * common/config/riscv/riscv-common.c: Include sstream.
12997 (riscv_subset_list::to_string): New.
12998 (riscv_arch_str): Likewise.
12999 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
13000 * config.in: Regen.
13001 * config/riscv/riscv-protos.h (riscv_arch_str): New.
13002 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
13003 (riscv_emit_attribute): New.
13004 (riscv_file_start): Emit attribute if needed.
13005 (riscv_option_override): Init riscv_emit_attribute_p.
13006 * config/riscv/riscv.opt (mriscv-attribute): New option.
13007 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
13008 * configure: Regen.
13009 * doc/install.texi: Document --with-riscv-attribute.
13010 * doc/invoke.texi: Document -mriscv-attribute.
13011
13012 * common/config/riscv/riscv-common.c:
13013 Include config/riscv/riscv-protos.h.
13014 (INCLUDE_STRING): Defined.
13015 (RISCV_DONT_CARE_VERSION): Defined.
13016 (riscv_subset_t): Declare.
13017 (riscv_subset_t::riscv_subset_t): New.
13018 (riscv_subset_list): Declare.
13019 (riscv_subset_list::riscv_subset_list): New.
13020 (riscv_subset_list::~riscv_subset_list): Likewise.
13021 (riscv_subset_list::parsing_subset_version): Likewise.
13022 (riscv_subset_list::parse_std_ext): Likewise.
13023 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13024 (riscv_subset_list::add): Likewise.
13025 (riscv_subset_list::lookup): Likewise.
13026 (riscv_subset_list::xlen): Likewise.
13027 (riscv_subset_list::parse): Likewise.
13028 (riscv_supported_std_ext): Likewise.
13029 (current_subset_list): Likewise.
13030 (riscv_parse_arch_string): Using riscv_subset_list::parse to
13031 parse.
13032
13033 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
13034
13035 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13036 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
13037 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
13038
13039 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
13040
13041 PR rtl-optimization/85899
13042 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
13043 fallthru edges leading to the exit block.
13044
13045 2019-03-01 Tamar Christina <tamar.christina@arm.com>
13046
13047 PR target/89517
13048 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
13049 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
13050
13051 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 PR tree-optimization/89535
13054 * tree-vect-stmts.c (vectorizable_call): Record the vector types
13055 for each operand. Calculate the fallback choice for mask operands
13056 and pass it to vect_get_vec_def_for_operand.
13057
13058 2019-03-01 Richard Biener <rguenther@suse.de>
13059
13060 PR middle-end/89541
13061 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
13062 get virtual operands.
13063 (get_expr_operands): Handle CONST_DECL like other decls.
13064
13065 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13066
13067 PR middle-end/89503
13068 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
13069 on DECL_P and EXPR_P.
13070
13071 2019-03-01 Richard Biener <rguenther@suse.de>
13072
13073 PR middle-end/89497
13074 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
13075 argument, defaulted to zero.
13076 * passes.c (execute_function_todo): Pass down SSA update flags
13077 to cleanup_tree_cfg.
13078 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
13079 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
13080 form if requested.
13081 (cleanup_tree_cfg): Get and pass down SSA update flags.
13082
13083 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13084
13085 PR bootstrap/89539
13086 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
13087 early_lto_debug argument.
13088
13089 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
13090
13091 PR tree-optimization/89536
13092 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
13093 only whether bit #0 of the value is 0 instead of the entire value.
13094
13095 2019-02-28 Marek Polacek <polacek@redhat.com>
13096
13097 PR c++/87068 - missing diagnostic with fallthrough statement.
13098 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
13099 at the end of a seq, save its location to walk_stmt_info.
13100 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
13101 a switch.
13102
13103 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
13104
13105 PR lto/88585
13106 * tree.c (find_atomic_core_type): Move ahead in file.
13107 (check_base_type): Correctly compare alignments of atomic types.
13108
13109 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
13110
13111 PR target/89455
13112 * config/i386/i386.c (get_builtin_code_for_version): Identify
13113 Westmere from PCLMUL, instead of AES.
13114
13115 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13116
13117 PR target/89434
13118 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
13119 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
13120 -UINTVAL (...).
13121
13122 2019-02-28 Tamar Christina <tamar.christina@arm.com>
13123
13124 PR target/88530
13125 * config/aarch64/aarch64-option-extensions.def: Document it.
13126 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
13127 if empty hwcaps.
13128
13129 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13130
13131 PR c/89520
13132 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
13133 builtins if they don't have a single scalar floating point argument.
13134 Formatting fixes.
13135
13136 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13137
13138 PR rtl-optimization/89490
13139 * varasm.c (get_block_for_section): Bail out for mergeable sections.
13140 (default_use_anchors_for_symbol_p, output_object_block): Assert the
13141 block section is not mergeable.
13142
13143 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13144
13145 PR target/70341
13146 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
13147 old define_insn to ...
13148 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
13149 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
13150 Rename old define_insn to ...
13151 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
13152 (thumb2_casesi_internal_pic): New define_expand. Rename old
13153 define_insn to ...
13154 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
13155 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
13156 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
13157
13158 2019-02-27 Richard Biener <rguenther@suse.de>
13159
13160 PR debug/88878
13161 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
13162
13163 2019-02-27 Richard Biener <rguenther@suse.de>
13164
13165 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
13166 building.
13167
13168 2019-02-27 Richard Biener <rguenther@suse.de>
13169
13170 PR debug/88878
13171 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
13172 parameter, prefix section name with .gnu.debuglto_ if true.
13173 (dwarf2out_finish): Pass false to output_comdat_type_unit.
13174 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
13175
13176 2019-02-27 Richard Biener <rguenther@suse.de>
13177
13178 PR debug/89514
13179 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
13180 rather than on use_debug_types, doing what output_die does.
13181 (value_format): Likewise.
13182
13183 2019-02-27 Martin Jambor <mjambor@suse.cz>
13184 Martin Sebor <msebor@redhat.com>
13185
13186 * doc/invoke.texi (Warning Options): Reword description of
13187 -Wno-absolute-value.
13188
13189 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13190
13191 PR tree-optimization/89280
13192 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
13193 builtin_setjmp_setup_bb): New functions.
13194 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
13195 When visiting __builtin_setjmp_setup block, queue in special
13196 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
13197 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
13198 from visited after the loop if they don't have any visited successor
13199 blocks.
13200
13201 2018-02-26 Steve Ellcey <sellcey@marvell.com>
13202
13203 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
13204 New function.
13205 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
13206
13207 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13208
13209 PR c++/89507
13210 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
13211 with types other than sizetype/ssizetype.
13212
13213 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13214
13215 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
13216 (enum sparc_processor_type): ...this.
13217 (enum sparc_code_model_type): New enumeration type.
13218 (enum sparc_memory_model_type): Tweak comments.
13219 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
13220 (mtune): Likewise.
13221 (mcmodel): Use sparc_code_model enumeration and variable.
13222 (sparc_code_model): New enumeration.
13223 (mdebug): Add Undocumented marker.
13224 * config/sparc/sparc.h (enum cmodel): Delete.
13225 (sparc_cmodel): Likewise.
13226 (TARGET_CM_MEDLOW): Adjust to above renaming.
13227 (TARGET_CM_MEDMID): Likewise.
13228 (TARGET_CM_MEDANY): Likewise.
13229 (TARGET_CM_EMBMEDANY): Likewise.
13230 * config/sparc/sparc.c (sparc_cmodel): Delete.
13231 (sparc_option_override): Remove string/value mapping support for the
13232 code model. Move code and memory model support to after the handling
13233 of target flags. Do private machine setup last.
13234 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13235 (sparc_legitimize_reload_address): Likewise.
13236 (sparc_output_mi_thunk): Likewise.
13237 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13238
13239 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13240
13241 PR tree-optimization/89500
13242 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13243 (handle_builtin_strlen): Remove noncst_bound variable. Always
13244 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
13245 cst if the first cst bytes starting at x are known to be non-zero,
13246 even if the string is not zero terminated. Don't try to modify
13247 *si for strnlen. Update strlen_to_stridx only for strlen or if
13248 we can prove strnlen returns the same value as strlen would.
13249
13250 2019-02-26 Martin Liska <mliska@suse.cz>
13251
13252 * alloc-pool.h (struct pool_usage): Remove extra
13253 print_dash_line.
13254 * bitmap.h (struct bitmap_usage): Likewise.
13255 * ggc-common.c (struct ggc_usage): Likewise.
13256 * mem-stats.h (struct mem_usage): Likewise.
13257 (mem_alloc_description::dump): Print dash lines
13258 here and repeat header at the end of a table report.
13259 It's then more readable.
13260 * tree-phinodes.c (phinodes_print_statistics): Make
13261 horizontal alignment.
13262 * tree-ssanames.c (ssanames_print_statistics): Likewise.
13263 * vec.c (struct vec_usage): Remove extra print_dash_line.
13264 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13265
13266 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
13267
13268 * doc/extend.texi (__builtin_object_size):
13269 Use @pxref instead of @xref inside parenthesis.
13270 (__builtin_has_attribute): Add missing comma after @xref.
13271 (__builtin_object_size): Ditto.
13272 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13273 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13274 in the list.
13275
13276 2019-02-26 Jeff Law <law@redhat.com>
13277
13278 PR rtl-optimization/87761
13279 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13280 detect obviously dead insns and delete them.
13281
13282 2019-02-26 Richard Biener <rguenther@suse.de>
13283
13284 PR tree-optimization/89505
13285 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13286 to handle restrict pointed-to vars with multiple subvars
13287 correctly.
13288
13289 2019-02-26 Richard Biener <rguenther@suse.de>
13290
13291 PR tree-optimization/89489
13292 * tree-parloops.c (create_loop_fn): Copy over last_clique.
13293
13294 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13295
13296 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13297 and move around comment.
13298 <BIT_AND_EXPR>: Likewise.
13299 <BIT_NOT_EXPR>: Add specific handling for boolean types.
13300
13301 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13302
13303 PR target/89474
13304 * config/i386/i386.c (remove_partial_avx_dependency): Call
13305 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13306 after changing possibly many instructions to use that pseudo. Fix up
13307 insertion of v4sf_const0 setter at the start of bb.
13308
13309 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13310
13311 PR c/80409
13312 * doc/extend.texi (Variadic Pointer Args): New section.
13313
13314 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13315 Martin Sebor <msebor@gmail.com>
13316
13317 * common.opt (Wattribute-alias): Likewise.
13318 * doc/invoke.texi (Option Summary): List general form of
13319 -Wattribute-alias=. List positive form of -Wmissing-attributes.
13320 (-Wmissing-attributes): Invert entry, rewrite and correct default.
13321 Add cross-references.
13322 (-Wattribute-alias): Rewrite and correct default. Mention
13323 considered attributes (same as for -Wmissing-attributes).
13324
13325 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
13326
13327 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13328 (_mm_cvtpd_ps): Likewise.
13329 (_mm_cvttpd_epi32): Likewise.
13330
13331 PR target/89338
13332 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
13333 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13334
13335 PR target/89339
13336 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13337
13338 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13339
13340 PR target/88530
13341 * common/config/aarch64/aarch64-common.c
13342 (struct aarch64_option_extension): Add is_synthetic.
13343 (all_extensions): Use it.
13344 (TARGET_OPTION_INIT_STRUCT): Define hook.
13345 (struct gcc_targetm_common): Moved to end.
13346 (all_extensions_by_on): New.
13347 (opt_ext_cmp, typedef opt_ext): New.
13348 (aarch64_option_init_struct): New.
13349 (aarch64_contains_opt): New.
13350 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13351 * config/aarch64/aarch64-option-extensions.def
13352 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13353 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13354 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13355 Set is_synthetic to false.
13356 (crypto): Set is_synthetic to true.
13357 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13358 SYNTHETIC.
13359
13360 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13361
13362 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13363 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13364 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13365 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13366 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13367 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13368 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13369 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13370 Rename ...
13371 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13372 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13373 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13374 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13375 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13376 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13377 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13378 vfmlsl_laneq_high_f16): ... To this.
13379 * config/arm/neon.md: Update comments.
13380
13381 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13382
13383 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13384 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13385 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13386 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13387 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13388 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13389 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13390 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13391 Rename ...
13392 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13393 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13394 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13395 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13396 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13397 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13398 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13399 vfmlslq_laneq_high_f16): ... To this.
13400
13401 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
13402
13403 PR rtl-optimization/86096
13404 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13405 comparing mw_order values.
13406
13407 2019-02-25 Jakub Jelinek <jakub@redhat.com>
13408
13409 PR target/89434
13410 * config/arm/arm.md (*subsi3_carryin_const): Use
13411 arm_neg_immediate_operand predicate instead of
13412 arm_not_immediate_operand, "L" constraint instead of "K" and
13413 print it using %n2 instead of %B2.
13414 (*subsi3_carryin_const0): New define_insn.
13415 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
13416 instead of arm_not_operand and "I" constraint instead of "K" and
13417 print it using %n3 instead of %B2. Instead of using match_dup 2 add
13418 another match_operand and in the condition check that it is negation
13419 of operands[2].
13420 (*subsi3_carryin_compare_const0): New define_ins.
13421 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
13422 *subsi3_carryin_const.
13423 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
13424 split into *subsi3_carryin_compare_const0 if the highpart is zero.
13425
13426 PR target/89438
13427 * config/arm.vfp.md (*negdf2_vfp): Use
13428 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
13429 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
13430
13431 2019-02-24 Jakub Jelinek <jakub@redhat.com>
13432
13433 PR rtl-optimization/89445
13434 * simplify-rtx.c (simplify_ternary_operation): Don't use
13435 simplify_merge_mask on operands that may trap.
13436 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
13437 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
13438 second operand is CONST_VECTOR, check if any element could be zero.
13439 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
13440 their operands can trap.
13441
13442 2019-02-23 Martin Sebor <msebor@redhat.com>
13443
13444 * gimple-ssa-sprintf.c (target_strtol): Rename...
13445 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
13446 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
13447 check for range error.
13448
13449 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
13450
13451 PR driver/69471
13452 * opts-common.c (prune_options): Also prune joined switches
13453 with Negative and RejectNegative.
13454 * config/i386/i386.opt (march=): Add Negative(march=).
13455 (mtune=): Add Negative(mtune=).
13456 * doc/options.texi: Document Negative used together with Joined
13457 and RejectNegative.
13458
13459 2019-02-22 Martin Sebor <msebor@redhat.com>
13460
13461 * doc/extend.texi (Other Builtins): Add
13462 __builtin_is_constant_evaluated.
13463
13464 2019-02-22 Richard Biener <rguenther@suse.de>
13465
13466 PR tree-optimization/87609
13467 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
13468
13469 2019-02-22 Jeff Law <law@redhat.com>
13470
13471 PR rtl-optimization/87761
13472 * config/mips/mips.md: Add new combiner pattern to recognize
13473 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
13474
13475 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
13476
13477 PR target/89324
13478 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
13479 destination register in peepholes generating patterns for ADDS/SUBS.
13480 (add<mode>3_compare0,
13481 *addsi3_compare0_uxtw, add<mode>3_compareC,
13482 add<mode>3_compareV_imm, add<mode>3_compareV,
13483 *adds_<optab><ALLX:mode>_<GPI:mode>,
13484 *subs_<optab><ALLX:mode>_<GPI:mode>,
13485 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
13486 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
13487 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
13488 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
13489 sub<mode>3_compare1): Allow stack pointer for source register.
13490 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
13491
13492 2019-02-22 Martin Sebor <msebor@redhat.com>
13493
13494 PR tree-optimization/88993
13495 PR tree-optimization/88853
13496 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
13497 New helper.
13498 (sprintf_dom_walker::call_info::is_string_func): New helper.
13499 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
13500 for formatted string functions.
13501 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
13502
13503 2019-02-22 Martin Sebor <msebor@redhat.com>
13504
13505 PR c/89425
13506 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
13507 unreachable subexpressions.
13508
13509 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
13510 Hongtao Liu <hongtao.liu@intel.com>
13511 Sunil K Pandey <sunil.k.pandey@intel.com>
13512
13513 PR target/87007
13514 * config/i386/i386-passes.def: Add
13515 pass_remove_partial_avx_dependency.
13516 * config/i386/i386-protos.h
13517 (make_pass_remove_partial_avx_dependency): New.
13518 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
13519 New function.
13520 (pass_data_remove_partial_avx_dependency): New.
13521 (pass_remove_partial_avx_dependency): Likewise.
13522 (make_pass_remove_partial_avx_dependency): Likewise.
13523 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
13524 (*extendsfdf2): Add avx_partial_xmm_update.
13525 (truncdfsf2): Likewise.
13526 (*float<SWI48:mode><MODEF:mode>2): Likewise.
13527 (SF/DF conversion splitters): Disabled for TARGET_AVX.
13528
13529 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
13530
13531 PR middle-end/85598
13532 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
13533 analysis for pass.
13534
13535 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
13536
13537 PR target/89444
13538 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
13539 (PTA_SKYLAKE): Add PTA_AES.
13540 (PTA_GOLDMONT): Likewise.
13541
13542 2019-02-22 Sudakshina Das <sudi.das@arm.com>
13543
13544 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
13545 instruction if enabled.
13546 (aarch64_override_options): Remove reference to return address key.
13547
13548 2019-02-22 Richard Biener <rguenther@suse.de>
13549
13550 PR tree-optimization/89440
13551 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
13552 not necessary assert.
13553
13554 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
13555
13556 PR fortran/72741
13557 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
13558 (oacc_replace_fn_attrib_attr): ... this new function.
13559 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
13560 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
13561
13562 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13563
13564 * config/arm/arm-cpus.in (ares): Rename to...
13565 (neoverse-n1): ... This. Add ares as alias.
13566 * config/arm/arm-tables.opt: Regenerate.
13567 * config/arm/arm-tune.md: Likewise.
13568 * doc/invoke.txt (ARM Options): Document neoverse-n1.
13569
13570 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13571
13572 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
13573 * config/aarch64/aarch64-tune.md: Regenerate.
13574 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
13575
13576 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13577
13578 * config/aarch64/aarch64.c (ares_tunings): Rename to...
13579 (neoversen1_tunings): ... This.
13580 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
13581 (neoverse-n1): New CPU.
13582 * config/aarch64/aarch64-tune.md: Regenerate.
13583 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
13584
13585 2019-02-22 Richard Biener <rguenther@suse.de>
13586
13587 PR middle-end/87609
13588 * cfghooks.h (dependence_hash): New typedef.
13589 (struct copy_bb_data): New type.
13590 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
13591 (duplicate_block): Likewise.
13592 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
13593 (copy_bbs): Create and pass down copy_bb_data.
13594 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
13595 (rtl_duplicate_bb): Likewise.
13596 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
13597 remap dependence info.
13598
13599 2019-02-22 Richard Biener <rguenther@suse.de>
13600
13601 PR tree-optimization/87609
13602 * tree-core.h (tree_base): Document special clique values.
13603 * tree-inline.c (remap_dependence_clique): Do not use the
13604 special clique value of one.
13605 (maybe_set_dependence_info): Use clique one.
13606 (clear_dependence_clique): New callback.
13607 (compute_dependence_clique): Clear clique one from all refs
13608 before assigning it (again).
13609
13610 2019-02-21 Martin Sebor <msebor@redhat.com>
13611
13612 * doc/extend.texi (__clear_cache): Correct signature.
13613
13614 2019-02-21 Ian Lance Taylor <iant@golang.org>
13615
13616 PR go/89170
13617 * varasm.c (decode_addr_const): Call lookup_constant_def rather
13618 than output_constant_def.
13619 (add_constant_to_table): New static function.
13620 (output_constant_def): Call add_constant_to_table.
13621 (tree_output_constant_def): Likewise.
13622
13623 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13624
13625 PR c++/89285
13626 * builtins.c (fold_builtin_arith_overflow): If first two args are
13627 INTEGER_CSTs, set intres and ovfres to constants rather than calls
13628 to ifn.
13629
13630 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
13631
13632 PR target/87412
13633 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
13634 error for -mindirect-branch/-mfunction-return with incompatible
13635 -fcf-protection.
13636
13637 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13638
13639 PR bootstrap/88714
13640 * constraints.md (q): Remove.
13641 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
13642 instead of q.
13643
13644 2019-02-21 Martin Jambor <mjambor@suse.cz>
13645
13646 PR hsa/89302
13647 * omp-general.c (omp_extract_for_data): Removed a duplicate call
13648 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
13649 (omp_adjust_for_condition): ...here. Added necessary parameters.
13650 * omp-general.h (omp_adjust_for_condition): Updated declaration.
13651 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
13652 proper values to new parameters of omp_adjust_for_condition.
13653
13654 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13655
13656 PR middle-end/89412
13657 * expr.c (expand_assignment): If result is a MEM, use change_address
13658 instead of simplify_gen_subreg.
13659
13660 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13661 David Malcolm <dmalcolm@redhat.com>
13662
13663 PR middle-end/89091
13664 * fold-const.c (decode_field_reference): Return NULL_TREE if
13665 lang_hooks.types.type_for_size returns NULL. Check it before
13666 overwriting *exp_. Use return NULL_TREE instead of return 0.
13667
13668 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13669
13670 PR middle-end/88074
13671 PR middle-end/89415
13672 * toplev.c (do_compile): Double the emin/emax exponents to workaround
13673 buggy mpc_norm.
13674
13675 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
13676
13677 PR target/89397
13678 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
13679 TARGET_SSE in addition to TARGET_SSE_MATH.
13680
13681 (ix86_excess_precision): Ditto.
13682 (ix86_float_exceptions_rounding_supported_p): Ditto.
13683 (use_rsqrt_p): Ditto.
13684 * config/i386/sse.md (rsqrt<mode>2): Ditto.
13685
13686 2019-02-20 David Malcolm <dmalcolm@redhat.com>
13687
13688 PR c/89410
13689 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
13690 linenum_arith_t when determining if two adjacent line spans are
13691 close enough to merge.
13692 (diagnostic_show_locus): Use linenum_arith_t when iterating over
13693 lines within each line_span.
13694
13695 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
13696
13697 PR target/86487
13698 * lra-constraints.c(uses_hard_regs_p): Fix handling of
13699 paradoxical SUBREGS.
13700
13701 2019-02-20 Li Jia He <helijia@linux.ibm.com>
13702
13703 PR target/88100
13704 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
13705 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
13706 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
13707 range checking it.
13708
13709 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
13710
13711 * config/gcn/gcn.c (print_operand): Fix typo.
13712
13713 2019-02-19 Richard Biener <rguenther@suse.de>
13714
13715 PR middle-end/88074
13716 * toplev.c (do_compile): Initialize mpfr's exponent range
13717 based on available float modes.
13718
13719 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
13720
13721 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
13722 as long as the epilogue isn't completed.
13723
13724 2019-02-18 Martin Sebor <msebor@redhat.com>
13725
13726 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
13727 __has_cpp_attribute, and __has_include.
13728
13729 2019-02-18 Martin Sebor <msebor@redhat.com>
13730
13731 * doc/invoke.texi (-Wreturn-type): Correct and expand.
13732
13733 2019-02-18 Martin Sebor <msebor@redhat.com>
13734
13735 PR middle-end/89294
13736 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
13737 expression.
13738 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
13739
13740 2019-02-18 Richard Biener <rguenther@suse.de>
13741
13742 PR tree-optimization/89296
13743 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
13744 of no-warning flag to cases that might emit the bogus warning.
13745
13746 2019-02-18 Jakub Jelinek <jakub@redhat.com>
13747
13748 PR bootstrap/88714
13749 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
13750 "q" constraint.
13751 * config/arm/vfp.md (*movdi_vfp): Likewise.
13752 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
13753 "q" constraint for operands[0].
13754
13755 PR target/89369
13756 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
13757 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
13758 pattern in a temporary buffer.
13759 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
13760 than 64-operands[2].
13761
13762 PR target/89361
13763 * config/s390/s390.c (s390_indirect_branch_attrvalue,
13764 s390_indirect_branch_settings): Define unconditionally.
13765 (s390_set_current_function): Likewise, but guard the whole body except
13766 the s390_indirect_branch_settings call with
13767 #if S390_USE_TARGET_ATTRIBUTE.
13768 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
13769
13770 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
13771 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
13772 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
13773 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
13774 HOST_WIDE_INT_1U instead of 1ULL.
13775 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
13776 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
13777 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
13778 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
13779 instead of 1UL.
13780 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
13781 instead of 1ul.
13782
13783 2019-02-18 Martin Jambor <mjambor@suse.cz>
13784
13785 PR tree-optimization/89209
13786 * tree-sra.c (create_access_replacement): New optional parameter
13787 reg_tree. Use it as a type if non-NULL and access type is not of
13788 a register type.
13789 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
13790 to create_access_replacement.
13791 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
13792 Check lacc is non-NULL before attempting to re-create it on the RHS.
13793
13794 2019-02-18 Martin Liska <mliska@suse.cz>
13795
13796 PR ipa/89306
13797 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
13798 by default.
13799 (symbol_table::free_edge): Recycle m_summary_id.
13800 * cgraph.h (get_summary_id): New.
13801 (symbol_table::release_symbol): Set m_summary_id to -1
13802 by default.
13803 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
13804 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
13805 function_summary to fast_function_summary.
13806 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
13807 * ipa-pure-const.c (class funct_state_summary_t):
13808 Switch from function_summary to fast_function_summary.
13809 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
13810 (class ipa_ref_opt_summary_t): Switch from function_summary
13811 to fast_function_summary.
13812 * symbol-summary.h (class function_summary_base): New class
13813 that is created from base of former function_summary.
13814 (function_summary_base::unregister_hooks): New.
13815 (class function_summary): Inherit from function_summary_base.
13816 (class call_summary_base): New class
13817 that is created from base of former call_summary.
13818 (class call_summary): Inherit from call_summary_base.
13819 (struct is_same): New.
13820 (class fast_function_summary): New summary class.
13821 (class fast_call_summary): New summary class.
13822 * vec.h (vec_safe_grow_cleared): New function.
13823
13824 2019-02-18 Martin Liska <mliska@suse.cz>
13825
13826 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
13827 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
13828 * doc/tm.texi: Document new target hook.
13829 * doc/tm.texi.in: Likewise.
13830 * target.def: Add new target macro.
13831 * gcc.c (find_fortran_preinclude_file): Do not search multilib
13832 suffixes.
13833
13834 2019-02-17 Alan Modra <amodra@gmail.com>
13835
13836 PR target/89271
13837 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
13838 output reg on add insn.
13839 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
13840
13841 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13842
13843 PR target/89372
13844 * config/i386/sse.md (ssedoublemode): Remove V4HI.
13845 (PMULHRSW): Likewise.
13846 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
13847 TARGET_AVX2.
13848 (ssse3_pmulhrswv4hi3): New expander.
13849
13850 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13851
13852 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
13853 MMX. Add isa attribute.
13854
13855 2019-02-16 Jakub Jelinek <jakub@redhat.com>
13856
13857 PR rtl-optimization/66152
13858 * builtins.h (c_readstr): Declare.
13859 * builtins.c (c_readstr): Remove forward declaration. Add
13860 null_terminated_p argument, if false, read all bytes from the
13861 string instead of stopping after '\0'.
13862 * expr.c (string_cst_read_str): New function.
13863 (store_expr): Use string_cst_read_str instead of
13864 builtin_strncpy_read_str. Try to store by pieces the whole
13865 exp_len first, and only if that fails, split it up into
13866 store by pieces followed by clear_storage. Formatting fix.
13867
13868 * config/i386/i386.md (*movqi_internal): Remove static from
13869 buf variable. Use output_asm_insn (buf, operands); return "";
13870 instead of return buf;.
13871 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
13872 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
13873 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
13874
13875 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13876
13877 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
13878 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
13879 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
13880 (CC1_SPEC): Likewise.
13881 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
13882
13883 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13884
13885 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
13886 the base address on 64-bit strict-alignment platforms.
13887
13888 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
13889
13890 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
13891
13892 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13893
13894 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
13895
13896 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
13897
13898 PR rtl-optimization/88308
13899 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
13900 on copied instruction.
13901
13902 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13903
13904 * final.c (insn_current_reference_address): Replace test on JUMP_P
13905 with test on jump_to_label_p.
13906 * config/visium/visium-passes.def: New file.
13907 * config/visium/t-visium (PASSES_EXTRA): Define.
13908 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
13909 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
13910 (TRAMPOLINE_ALIGNMENT): Define.
13911 * config/visium/visium.c (visium_option_override): Do not register
13912 the machine-specific reorg pass here.
13913 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
13914 for the GR6.
13915 (output_branch): Adjust threshold for long branch instruction.
13916 * config/visium/visium.md (cpu): Move around.
13917 (length): Adjust for the GR6.
13918
13919 2019-02-15 Richard Biener <rguenther@suse.de>
13920 Jakub Jelinek <jakub@redhat.com>
13921
13922 PR tree-optimization/89278
13923 * tree-loop-distribution.c: Include tree-eh.h.
13924 (generate_memset_builtin, generate_memcpy_builtin): Call
13925 rewrite_to_non_trapping_overflow on builtin->size before passing it
13926 to force_gimple_operand_gsi.
13927
13928 2019-02-15 Jakub Jelinek <jakub@redhat.com>
13929
13930 PR other/89342
13931 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
13932 optimize_debug.
13933 * opth-gen.awk: Likewise.
13934
13935 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13936
13937 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
13938 Enable MMX, SSE and SSE2 by default.
13939 * config/i386/i386.c (ix86_option_override_internal): Do not
13940 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
13941
13942 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13943
13944 PR rtl-optimization/89354
13945 * combine.c (make_extraction): Punt if extraction_mode is narrower
13946 than len bits.
13947
13948 2019-02-14 Maya Rashish <coypu@sdf.org>
13949
13950 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
13951 * config/netbsd-d.c: New file.
13952 * config/t-netbsd: Add netbsd-d.o
13953
13954 2018-02-14 Steve Ellcey <sellcey@marvell.com>
13955
13956 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
13957 affects_type_identity to true for aarch64_vector_pcs.
13958 (aarch64_comp_type_attributes): New function.
13959 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
13960
13961 2019-02-14 Tamar Christina <tamar.christina@arm.com>
13962
13963 PR target/88850
13964 * config/arm/iterators.md (ANY64): Add V4HF.
13965
13966 2019-02-14 Martin Liska <mliska@suse.cz>
13967
13968 PR rtl-optimization/89242
13969 * dce.c (delete_unmarked_insns): Call free_dominance_info we
13970 process a transformation.
13971
13972 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13973
13974 PR tree-optimization/89314
13975 * fold-const.c (fold_binary_loc): Cast strlen argument to
13976 const char * before dereferencing it. Formatting fixes.
13977
13978 PR middle-end/89284
13979 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
13980
13981 2019-02-13 Ian Lance Taylor <iant@golang.org>
13982
13983 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
13984 and set current index for other optimizations.
13985
13986 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
13987
13988 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
13989 nonimmediate_operand as operand 2 predicate.
13990 (vec_set<VF2_512_256:mode>_0): Ditto.
13991 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
13992 (*vec_concatv2si): Remove alternative 2.
13993 (*vec_concatv4si_0): Use vm constraint for alternative 0.
13994 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
13995 (vec_concatv2di): Split alternatives 4,5,6 to ...
13996 (*vec_concatv2di_0) ... new pattern.
13997
13998 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
13999
14000 PR target/89190
14001 * config/arm/arm.c (ldm_stm_operation_p) Set
14002 addr_reg_in_reglist correctly for first register.
14003 (load_multiple_sequence): Remove dead base check.
14004 (gen_ldm_seq): Correctly set write_back for Thumb-1.
14005
14006 2019-02-13 Tamar Christina <tamar.christina@arm.com>
14007
14008 PR target/88847
14009 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
14010 Expose as @aarch64_pred_mov.
14011 * config/aarch64/aarch64.c (aarch64_classify_address):
14012 Use expand_insn which legitimizes operands.
14013
14014 2019-02-13 Martin Liska <mliska@suse.cz>
14015
14016 * builtins.h (expand_builtin_with_bounds): Remove declaration.
14017 * calls.c (struct arg_data): Remove special_slot, pointer_arg
14018 and pointer_offset fields.
14019 (initialize_argument_information): Remove usage of dead
14020 fields.
14021 * cgraph.h (struct cgraph_thunk_info): Remove
14022 add_pointer_bounds_args.
14023 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
14024 fields.
14025 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
14026 fields.
14027 * config/i386/i386.c (ix86_function_arg_advance): Remove
14028 unrelated comment.
14029 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
14030 (def_builtin): Remove usage of dead
14031 fields.
14032 (ix86_add_new_builtins): Likewise.
14033 * ipa-fnsummary.c (compute_fn_summary): Likewise.
14034 * ipa-icf.c (sem_function::equals_wpa): Likewise.
14035 (sem_function::init): Likewise.
14036 (sem_variable::merge): Likewise.
14037 * ipa-visibility.c (function_and_variable_visibility): Likewise.
14038 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
14039 * lto-cgraph.c (lto_output_node): Likewise.
14040 (lto_output_varpool_node): Likewise.
14041 (input_node): Likewise.
14042 (input_varpool_node): Likewise.
14043 * lto-streamer-out.c (lto_output): Likewise.
14044 * tree-inline.c (expand_call_inline): Remove usage of
14045 assign_stmts.
14046 * tree-inline.h (struct copy_body_data): Likewise.
14047 * varpool.c (varpool_node::dump): Likewise.
14048
14049 2019-02-13 Jakub Jelinek <jakub@redhat.com>
14050
14051 PR middle-end/89303
14052 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
14053 into pt->vars_contains_escaped_heap instead of setting
14054 pt->vars_contains_escaped_heap to it.
14055
14056 PR middle-end/89281
14057 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
14058 INTVAL (size), compare it to GET_MODE_MASK instead of
14059 1 << GET_MODE_BITSIZE.
14060
14061 PR target/89290
14062 * config/i386/predicates.md (x86_64_immediate_operand): Allow
14063 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
14064 -mcmodel=large.
14065
14066 2019-02-13 Martin Liska <mliska@suse.cz>
14067
14068 PR lto/88858
14069 * cfgrtl.c (remove_barriers_from_footer): New function.
14070 (try_redirect_by_replacing_jump): Use it.
14071 (cfg_layout_redirect_edge_and_branch): Likewise.
14072
14073 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
14074
14075 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
14076 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
14077 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
14078 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
14079 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
14080 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
14081 New BU_CRYPTO_2.
14082 * config/rs6000/rs6000.c (builtin_function_type)
14083 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
14084 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
14085 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
14086 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
14087 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
14088
14089 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
14090
14091 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
14092 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
14093
14094 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
14095
14096 PR target/89229
14097 * config/i386/i386.md (*movoi_internal_avx): Revert revision
14098 268678 and revision 268657.
14099 (*movti_internal): Likewise.
14100
14101 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
14102
14103 PR target/89233
14104 * config/s390/s390.c (s390_decompose_address): Update comment.
14105 (s390_check_qrst_address): Reject invalid address forms after
14106 LRA.
14107
14108 2019-02-12 Martin Liska <mliska@suse.cz>
14109
14110 PR lto/88876
14111 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
14112 we need default values of funct_state for a function that
14113 is not optimized.
14114
14115 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
14116
14117 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
14118 the object to pick the size of stores on strict-alignment platforms.
14119
14120 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
14121 (*movdi_insn_sp32): Likewise.
14122 (*movdi_insn_sp64): Likewise.
14123
14124 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
14125
14126 PR lto/88677
14127 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
14128 types that needs constructiong.
14129 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
14130
14131 2019-02-12 Richard Biener <rguenther@suse.de>
14132
14133 PR tree-optimization/89253
14134 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
14135 duplicate the loop.
14136
14137 2019-02-11 David Malcolm <dmalcolm@redhat.com>
14138
14139 PR lto/88147
14140 * input.c (selftest::test_line_offset_overflow): New selftest.
14141 (selftest::input_c_tests): Call it.
14142
14143 2019-02-11 Martin Sebor <msebor@redhat.com>
14144
14145 PR tree-optimization/88771
14146 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
14147 when -Wstringop-overflow is set.
14148 (builtin_memref::builtin_memref): Adjust excessive upper bound
14149 only when lower bound is not excessive.
14150 (maybe_diag_overlap): Detect and diagnose excessive bounds via
14151 -Wstringop-ovefflow.
14152 (maybe_diag_offset_bounds): Rename...
14153 (maybe_diag_access_bounds): ...to this.
14154 (check_bounds_or_overlap): Adjust for name change above.
14155
14156 2019-02-11 Martin Sebor <msebor@redhat.com>
14157
14158 PR c++/87996
14159 * builtins.c (max_object_size): Move from here...
14160 * builtins.h (max_object_size): ...and here...
14161 * tree.c (max_object_size): ...to here...
14162 * tree.h (max_object_size): ...and here.
14163
14164 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
14165
14166 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
14167 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
14168 for correct semantics.
14169
14170 2019-02-11 Alan Modra <amodra@gmail.com>
14171
14172 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
14173 -mlongcall and -mpltseq.
14174 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
14175 (RS/6000 and PowerPC Options <-mpltseq>): Document.
14176 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
14177 * config/rs6000/sysv4.opt (mpltseq): New option.
14178 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
14179 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
14180 support is lacking. Don't allow -mpltseq with -mbss-plt.
14181 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
14182 -mpltseq given for ELFv1.
14183 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
14184 Only use UNSPEC_PLTSEQ for inline PLT calls.
14185 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
14186 use UNSPEC_PLTSEQ for inline PLT calls.
14187 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
14188 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
14189 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
14190 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14191 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14192 (pltseq_mtctr_<mode>): Likewise.
14193
14194 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14195
14196 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
14197 Solaris ld.
14198 * configure: Regenerate.
14199
14200 2019-02-11 Jakub Jelinek <jakub@redhat.com>
14201
14202 PR bootstrap/88714
14203 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
14204 instead of r.
14205
14206 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14207
14208 * function.c (assign_parm_setup_block): Use the stored
14209 size, not the passed size, when allocating stack-space,
14210 also for a parameter with alignment larger than
14211 MAX_SUPPORTED_STACK_ALIGNMENT.
14212
14213 2019-02-11 Martin Liska <mliska@suse.cz>
14214
14215 PR ipa/89009
14216 * ipa-cp.c (build_toporder_info): Remove usage of a param.
14217 * ipa-inline.c (inline_small_functions): Likewise.
14218 * ipa-pure-const.c (propagate_pure_const): Likewise.
14219 (propagate_nothrow): Likewise.
14220 * ipa-reference.c (propagate): Likewise.
14221 * ipa-utils.c (struct searchc_env): Remove unused field.
14222 (searchc): Always search across AVAIL_INTERPOSABLE.
14223 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14224 the only called IPA pure const can properly not propagate
14225 across interposable boundary.
14226 * ipa-utils.h (ipa_reduced_postorder): Remove param.
14227
14228 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
14229
14230 * config/nds32/nds32.md (call_internal, call_value_internal,
14231 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14232
14233 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14234
14235 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14236 typo.
14237
14238 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
14239
14240 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14241 in comments
14242
14243 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14244
14245 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14246
14247 2019-02-10 Jakub Jelinek <jakub@redhat.com>
14248
14249 PR tree-optimization/89268
14250 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14251 if preds is non-NULL.
14252
14253 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14254
14255 PR lto/89272
14256 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14257 polymorphic types.
14258
14259 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14260
14261 * config/nds32/nds32.md (trap): New pattern.
14262
14263 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14264
14265 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14266 dwarf span.
14267
14268 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14269
14270 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14271 to split POST_INC.
14272
14273 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14274
14275 * ipa-visibility.c (localize_node): Also do not localize
14276 LDPR_PREVAILING_DEF_IRONLY_EXP.
14277
14278 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14279
14280 PR lto/87957
14281 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14282 instead of type_with_linkage.
14283
14284 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14285
14286 PR ipa/88755
14287 * params.def (uninlined-function-insns, uninlined-function-time,
14288 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14289 bound so we don't get overflows.
14290
14291 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
14292
14293 * config/rs6000/rs6000-string.c (expand_compare_loop,
14294 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14295 memcmp/strncmp.
14296
14297 2019-02-09 Jakub Jelinek <jakub@redhat.com>
14298
14299 PR middle-end/89246
14300 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14301 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14302 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14303
14304 2019-02-09 Alan Modra <amodra@gmail.com>
14305
14306 PR target/88343
14307 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14308 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
14309 setup.
14310
14311 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
14312
14313 PR middle-end/88560
14314 * lra-constraints.c (process_alt_operands): Don't increase reject
14315 for memory when offset memory is required.
14316
14317 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
14318
14319 * config/s390/vector.md: Implement vector copysign.
14320
14321 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14322
14323 * expr.c (expand_constructor): Correct indentations.
14324
14325 2019-02-08 Richard Biener <rguenther@suse.de>
14326
14327 PR tree-optimization/89247
14328 * tree-if-conv.c: Include tree-cfgcleanup.h.
14329 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14330 (tree_if_conversion): Pass through predicate vector.
14331 (pass_if_conversion::execute): Do CFG cleanup and SSA update
14332 inline, see if any if-converted loops we refrece in
14333 LOOP_VECTORIZED calls vanished and fixup.
14334 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14335
14336 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
14337
14338 * config/s390/constraints.md (jdd): New constraint.
14339
14340 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14341
14342 PR target/89229
14343 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14344 upper 16 vector registers without TARGET_AVX512VL.
14345 (*movti_internal): Likewise.
14346
14347 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14348
14349 PR rtl-optimization/89234
14350 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14351 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14352 (copy_reg_eh_region_note_backward): Likewise.
14353
14354 2019-02-08 Richard Biener <rguenther@suse.de>
14355
14356 PR middle-end/89223
14357 * tree-data-ref.c (initialize_matrix_A): Fail if constant
14358 doesn't fit in HWI.
14359 (analyze_subscript_affine_affine): Handle failure from
14360 initialize_matrix_A.
14361
14362 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14363
14364 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14365 cfun everywhere.
14366
14367 2019-02-07 David Malcolm <dmalcolm@redhat.com>
14368
14369 PR tree-optimization/86637
14370 PR tree-optimization/89235
14371 * tree-vect-loop.c (optimize_mask_stores): Add an
14372 auto_purge_vect_location sentinel to ensure that vect_location is
14373 purged on exit.
14374 * tree-vectorizer.c
14375 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14376 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14377 to ensure that vect_location is purged on exit.
14378 (pass_slp_vectorize::execute): Likewise, replacing the manual
14379 reset.
14380 * tree-vectorizer.h (class auto_purge_vect_location): New class.
14381
14382 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14383
14384 * config/aarch64/iterators.md (max_opp): New code_attr.
14385 (USMAX): New code iterator.
14386 * config/aarch64/predicates.md (aarch64_smin): New predicate.
14387 (aarch64_smax): Likewise.
14388 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14389 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14390 MINUS (MAX MIN).
14391
14392 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
14393
14394 PR target/89229
14395 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14396 for TARGET_AVX512VL.
14397 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14398
14399 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
14400
14401 * config/s390/s390-builtin-types.def: Add new types.
14402 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14403 (s390_vec_xlw4): Make the memory operand into a const pointer.
14404 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14405 float.
14406 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14407 a new vector type with the alignment of the scalar memory operand.
14408
14409 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
14410 Jakub Jelinek <jakub@redhat.com>
14411
14412 PR bootstrap/88714
14413 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
14414 arm_count_ldrdstrd_insns): New declarations.
14415 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
14416 MINUS.
14417 (valid_operands_ldrd_strd): New function.
14418 (arm_count_ldrdstrd_insns): New function.
14419 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
14420 sets instead of single DImode set and define new insns to match this.
14421
14422 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14423
14424 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
14425 Make it a C initializer.
14426
14427 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14428
14429 PR/target 88850
14430 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
14431
14432 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14433
14434 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
14435 Use neon_dot<q> for type.
14436 (neon_<sup>dot_lane<vsi2qi>): Likewise.
14437
14438 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14439
14440 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
14441 Use neon_dot<q> for type.
14442 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
14443 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
14444
14445 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
14446
14447 PR rtl-optimization/89225
14448 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
14449 sizes check.
14450
14451 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
14452
14453 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
14454 after restoring registers saved to allocate the frame on Windows.
14455
14456 2019-02-06 Richard Biener <rguenther@suse.de>
14457
14458 PR tree-optimization/89182
14459 * graphite.h (cached_scalar_evolution_in_region): Declare.
14460 * graphite.c (struct seir_cache_key): New.
14461 (struct sese_scev_hash): Likewise.
14462 (seir_cache): New global.
14463 (cached_scalar_evolution_in_region): New function.
14464 (graphite_transform_loops): Allocate and release seir_cache.
14465 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
14466 cached_scalar_evolution_in_region.
14467 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14468 Simplify.
14469 (scop_detection::graphite_can_represent_expr: Use
14470 cached_scalar_evolution_in_region.
14471 (scop_detection::stmt_simple_for_scop_p): Likewise.
14472 (find_params_in_bb): Likewise.
14473 (gather_bbs::before_dom_children): Likewise.
14474 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
14475 (add_loop_constraints): Likewise.
14476
14477 2019-02-06 Jakub Jelinek <jakub@redhat.com>
14478
14479 PR middle-end/89210
14480 * fold-const-call.c (fold_const_vec_convert): Pass true as last
14481 operand to new_unary_operation only if both element types are integral
14482 and it isn't a widening conversion. Return NULL_TREE if
14483 new_unary_operation failed.
14484
14485 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
14486
14487 PR target/88856
14488 * config/s390/s390.md: Remove load and test FP splitter.
14489
14490 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14491
14492 PR target/89112
14493 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
14494 expand_compare_loop, expand_block_compare_gpr,
14495 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
14496 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
14497 #include "profile-count.h" and "predict.h" for types and functions
14498 needed to work with REG_BR_PROB notes.
14499
14500 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14501
14502 PR target/89112
14503 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
14504 for the long branch case.
14505
14506 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14507
14508 PR target/89188
14509 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
14510 can throw, non-call exceptions are enabled and we can't delete
14511 dead exceptions or alter cfg. Set must_clean if
14512 delete_insn_and_edges returns true, don't set it blindly for calls.
14513 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
14514
14515 PR rtl-optimization/89195
14516 * combine.c (make_extraction): For MEMs, don't extract bytes outside
14517 of the original MEM.
14518
14519 2019-02-05 Martin Liska <mliska@suse.cz>
14520
14521 PR gcov-profile/89000
14522 * gcov.c (function_summary): Remove argument.
14523 (file_summary): New function.
14524 (print_usage): Replace tabs with spaces.
14525 (generate_results): Use new function file_summary.
14526
14527 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14528
14529 PR target/89186
14530 * optabs.c (prepare_cmp_insn): Pass x and y to
14531 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
14532
14533 2019-02-05 Richard Biener <rguenther@suse.de>
14534
14535 PR middle-end/89150
14536 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
14537 (struct bitmap_element): Drop chain_prev so we properly recurse on
14538 the prev member, supporting tree views.
14539 (struct bitmap_head): GTY skip the obstack member.
14540
14541 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
14542
14543 PR c/88698
14544 * doc/extend.texi (Vector Extensions): Add an example of using vector
14545 types together with x86 intrinsics.
14546
14547 2019-02-04 Alan Modra <amodra@gmail.com>
14548
14549 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
14550 str[] size to 160, and comment.
14551
14552 2019-02-04 Alan Modra <amodra@gmail.com>
14553
14554 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
14555 (rs6000_pltseq_template): Guard output of TLS markers with
14556 TARGET_TLS_MARKERS.
14557 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
14558 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
14559 to use inline PLT sequences.
14560 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14561 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14562 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
14563
14564 2019-02-04 Martin Liska <mliska@suse.cz>
14565
14566 PR ipa/88985
14567 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
14568 out when ipa_fn_summaries does not contain entry for callee.
14569
14570 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
14571
14572 * config/sparc/sparc.h: Remove superfluous blank lines.
14573 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
14574 (got_register_rtx): ...this.
14575 (sparc_got): Adjust to above renaming.
14576 (sparc_tls_got): Likewise.
14577 (sparc_delegitimize_address): Likewise.
14578 (sparc_output_mi_thunk): Likewise.
14579 (sparc_init_pic_reg): Likewise.
14580 (save_local_or_in_reg_p): Fix test on the GOT register.
14581 (USE_HIDDEN_LINKONCE): Move around.
14582 (get_pc_thunk_name): Likewise.
14583 (gen_load_pcrel_sym): Likewise.
14584 (load_got_register): Likewise.
14585
14586 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
14587
14588 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
14589 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
14590
14591 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14592
14593 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
14594 into consideration.
14595
14596 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14597
14598 * config.gcc (with_nds32_lib, glibc):
14599 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
14600 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
14601 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
14602
14603 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
14604
14605 PR target/89071
14606 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
14607 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
14608 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
14609 (*rcpsf2_sse): Ditto.
14610 (*rsqrtsf2_sse): Ditto.
14611 (sse4_1_round<mode<2): Ditto.
14612
14613 2019-02-03 Richard Biener <rguenther@suse.de>
14614
14615 PR debug/87295
14616 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
14617 orig.
14618
14619 2019-02-02 Jakub Jelinek <jakub@redhat.com>
14620
14621 PR middle-end/87887
14622 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14623 Punt with warning on aggregate return or argument types. Ignore
14624 type/mode checking for uniform arguments.
14625
14626 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
14627
14628 * combine.c (try_combine): Do not print "Can't combine" messages unless
14629 printing failed combination attempts.
14630
14631 2019-02-01 Martin Jambor <mjambor@suse.cz>
14632
14633 PR hsa/87863
14634 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
14635 segment and global segment variables before making them static.
14636
14637 2019-02-01 Martin Jambor <mjambor@suse.cz>
14638
14639 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
14640 missed optimization dump with dump_enabled_p.
14641
14642 2019-02-01 Richard Biener <rguenther@suse.de>
14643
14644 PR middle-end/88597
14645 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
14646 the instantiate cache.
14647 (instantiate_scev_binary): Elide second operand procesing
14648 if equal to the first.
14649 * tree-chrec.c (chrec_contains_symbols): Add visited set.
14650 (chrec_contains_undetermined): Likewise.
14651 (tree_contains_chrecs): Likewise.
14652
14653 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
14654
14655 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
14656
14657 2019-02-01 Jakub Jelinek <jakub@redhat.com>
14658
14659 PR tree-optimization/89143
14660 * wide-int-range.h (wide_int_range_absu): Declare.
14661 * wide-int-range.cc (wide_int_range_absu): New function.
14662 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
14663
14664 PR tree-optimization/88107
14665 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
14666 instead of assertion that eh_region_outermost is non-NULL, if it
14667 is NULL, set *ALL to true and return NULL.
14668 (move_sese_region_to_fn): Adjust caller, if all is set, call
14669 duplicate_eh_regions with NULL region.
14670
14671 2019-02-01 Richard Biener <rguenth@suse.de>
14672
14673 PR rtl-optimization/88593
14674 * mode-switching.c (optimize_mode_switching): Free dominators before
14675 calling cleanup_cfg.
14676
14677 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14678
14679 PR tree-optimization/88932
14680 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
14681
14682 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14683
14684 PR middle-end/89137
14685 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
14686 bogus clang warning.
14687
14688 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
14689
14690 PR target/89071
14691 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
14692 alternative to avoid partial SSE register stall for TARGET_AVX.
14693 (truncdfsf2): Ditto.
14694 (sse4_1_round<mode>2): Ditto.
14695
14696 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
14697
14698 PR tree-optimization/89008
14699 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
14700 process anything of the form X * 0.
14701
14702 2019-01-31 Richard Biener <rguenther@suse.de>
14703
14704 PR tree-optimization/89135
14705 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
14706 with abnormal preds.
14707
14708 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14709
14710 PR sanitizer/89124
14711 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
14712 always_inline callees into no_sanitize_address callers.
14713
14714 2019-01-31 Richard Biener <rguenther@suse.de>
14715
14716 PR rtl-optimization/89115
14717 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
14718
14719 2019-01-30 Martin Sebor <msebor@redhat.com>
14720
14721 PR other/89106
14722 * doc/extend.texi (cast to a union): Correct and expand.
14723
14724 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
14725
14726 PR rtl-optimization/87246
14727 * lra-constraints.c (simplify_operand_subreg): Reload memory
14728 in subreg if the address became invalid.
14729
14730 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
14731
14732 PR target/87064
14733 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
14734 Disable for little-endian.
14735
14736 2019-01-30 Richard Biener <rguenther@suse.de>
14737
14738 PR rtl-optimization/89115
14739 * opts.c (default_options_optimization): Reduce
14740 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
14741 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
14742 to the default.
14743
14744 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
14745
14746 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
14747 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
14748 type of vector element when vec_extract is implemented by direct
14749 move.
14750
14751 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
14752
14753 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
14754
14755 2019-01-30 Richard Biener <rguenther@suse.de>
14756
14757 PR tree-optimization/89111
14758 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
14759 canonicalization to appropriately sized access types.
14760
14761 2019-01-30 Jakub Jelinek <jakub@redhat.com>
14762
14763 PR c++/89105
14764 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
14765 for arguments to functions that are TU-local and shouldn't be
14766 referenced by assembly.
14767
14768 2019-01-30 Ulrich Drepper <drepper@redhat.com>
14769
14770 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
14771 after '='.
14772
14773 2019-01-29 Martin Sebor <msebor@redhat.com>
14774
14775 PR c/88956
14776 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
14777
14778 2019-01-29 Jakub Jelinek <jakub@redhat.com>
14779
14780 PR c++/66676
14781 PR ipa/89104
14782 * omp-simd-clone.c (simd_clone_clauses_extract)
14783 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
14784 OMP_CLAUSE_ALIGNED_ALIGNMENT.
14785
14786 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
14787
14788 * config.gcc: Force .init_array for ARC.
14789
14790 2019-01-29 Richard Biener <rguenther@suse.de>
14791
14792 PR debug/87295
14793 * dwarf2out.c (collect_skeleton_dies): New helper.
14794 (copy_decls_for_unworthy_types): Call it.
14795 (build_abbrev_table): Assert we do not try to replace
14796 DW_AT_signature refs with local refs.
14797
14798 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14799
14800 PR middle-end/89002
14801 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
14802 for lastprivate/linear IV, push gimplify context around gimplify_assign
14803 and, if it needed any temporaries, pop it into a gimple bind around the
14804 sequence.
14805
14806 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14807
14808 * common.opt (-Wattribute-alias): Remove "no-" from name.
14809 Make -Wattribute-alias command line option and
14810 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
14811
14812 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14813
14814 PR target/89073
14815 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
14816 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
14817 x86 ISA options.
14818 (bmi2): Add missing @opindex.
14819 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
14820 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
14821 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
14822 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
14823 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
14824 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
14825 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
14826 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
14827 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
14828 xsavec, xsaveopt and xsaves options.
14829
14830 2019-01-28 Richard Biener <rguenther@suse.de>
14831
14832 PR debug/89076
14833 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
14834 support removal.
14835
14836 2019-01-28 Richard Biener <rguenther@suse.de>
14837
14838 PR tree-optimization/88739
14839 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14840 BIT_FIELD_REFs only are applied to mode-precision operands
14841 when they are integral.
14842 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
14843 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
14844 BIT_FIELD_REFs of non-mode-precision integral operands.
14845
14846 2019-01-27 Jakub Jelinek <jakub@redhat.com>
14847
14848 PR target/87214
14849 * config/i386/sse.md
14850 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
14851 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
14852 first constants in pairs are multiples of 2. Formatting fixes.
14853 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
14854 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
14855 first constants in each quadruple are multiples of 4. Formatting fixes.
14856
14857 2019-01-26 Martin Jambor <mjambor@suse.cz>
14858
14859 PR ipa/88933
14860 * tree-inline.c: Include tree-cfgcleanup.h.
14861 (delete_unreachable_blocks_update_callgraph): Move...
14862 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
14863 ...here, make externally visible, make second argument bool, adjust
14864 all callers.
14865 * tree-cfgcleanup.c: Include cgraph.h.
14866 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
14867 Declare.
14868 * ipa-prop.c: Include tree-cfgcleanup.h.
14869 (ipcp_transform_function): Call
14870 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
14871
14872 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
14873
14874 PR rtl-optimization/88846
14875 * ira.c (process_set_for_memref_referenced_p): New.
14876 (memref_referenced_p): Add new param. Use
14877 process_set_for_memref_referenced_p. Add new switch cases.
14878 (memref_used_between_p): Pass new arg to memref_referenced_p.
14879
14880 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
14881
14882 PR target/88469
14883 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
14884 argument ABI_BREAK. Set to true if the calculated alignment has
14885 changed in gcc-9. Check bit-fields for their base type alignment.
14886 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
14887 (aarch64_function_arg_boundary): Likewise.
14888 (aarch64_gimplify_va_arg_expr): Likewise.
14889
14890 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14891
14892 PR middle-end/89037
14893 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
14894 instead of accessing TREE_INT_CST_ELT directly.
14895
14896 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
14897
14898 * doc/sourcebuild.texi (Environment attributes): Add fenv and
14899 fenv_exceptions description.
14900
14901 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
14902
14903 PR rtl-optimization/87763
14904 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
14905 Allow SUBREG when matching CC_NZmode compare.
14906
14907 2019-01-25 Richard Biener <rguenther@suse.de>
14908
14909 PR tree-optimization/89049
14910 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
14911 Look at the pattern stmt to determine if the stmt is vectorized.
14912
14913 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14914
14915 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
14916 (pred_mov<mode>): Handle all-register forms using both a new
14917 alternative and a split.
14918
14919 2019-01-25 Richard Biener <rguenther@suse.de>
14920
14921 PR tree-optimization/86865
14922 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14923 Reject non-do-while loops.
14924
14925 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
14926
14927 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
14928 * config/rs6000/constraints.md (Q constraint): Use REG_P.
14929 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
14930 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14931 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
14932 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14933 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
14934 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
14935 vlogical_operand, gpc_reg_operand, int_reg_operand,
14936 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
14937 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
14938 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
14939 (save_world_operation, restore_world_operation, lmw_operation,
14940 stmw_operation): Use MEM_P and REG_P.
14941 (tie_operand): Use MEM_P.
14942 (vrsave_operation, crsave_operation): Use REG_P.
14943 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
14944 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
14945 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
14946 (call_operand): Use HARD_REGISTER_P.
14947 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
14948 Use CONST_INT_P.
14949 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
14950 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
14951 quad_aligned_load_p, replace_swapped_aligned_store,
14952 recombine_lvx_pattern, replace_swapped_aligned_load,
14953 recombine_stvx_pattern): Use MEM_P.
14954 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
14955 Use MEM_P and SYMBOL_REF_P.
14956 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
14957 (insn_is_swappable_p): Use REG_P and MEM_P.
14958 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
14959 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
14960 Use CONST_INT_P.
14961 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
14962 Use CONST_DOUBLE_P.
14963 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
14964 CONST_WIDE_INT_P.
14965 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
14966 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
14967 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
14968 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
14969 reg_or_subregno:
14970 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14971 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
14972 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
14973 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
14974 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
14975 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
14976 rs6000_split_logical_di): Use CONST_INT_P.
14977 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
14978 REG_P and SYMBOL_REF_P.
14979 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
14980 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
14981 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
14982 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
14983 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
14984 (small_data_operand, print_operand_address): Use CONST_INT_P and
14985 SYMBOL_REF_P.
14986 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
14987 (rs6000_init_hard_regno_mode_ok, direct_move_p):
14988 Use HARD_REGISTER_NUM_P.
14989 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
14990 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
14991 SUBREG_P and SYMBOL_REF_P.
14992 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
14993 and HARD_REGISTER_NUM_P.
14994 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
14995 reg_or_subregno.
14996 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
14997 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
14998 MEM_P and REG_P.
14999 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
15000 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
15001 find_addr_reg): Use REG_P.
15002 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
15003 (rs6000_emit_le_vsx_move): Use SUBREG_P.
15004 (offsettable_ok_by_alignment, constant_pool_expr_p,
15005 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
15006 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
15007 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
15008 rs6000_assemble_integer, create_TOC_reference,
15009 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
15010 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
15011 (rs6000_split_vec_extract_var): Use reg_or_subregno.
15012 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15013 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15014 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15015 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15016 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
15017 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
15018 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
15019 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
15020 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
15021 and cbranch<mode>4): Use CONST_INT_P.
15022 (multiple define_splits): Use REG_P and SUBREG_P.
15023 (define_expands call, call_value): Use MEM_P.
15024 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
15025 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
15026 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
15027 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
15028 and HARD_REGISTER_NUM_P.
15029 (multiple define_splits): Use HARD_REGISTER_NUM_P.
15030
15031 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
15032
15033 PR rtl-optimization/88948
15034 * rtl.h (prepare_copy_insn): New prototype.
15035 * gcse.c (prepare_copy_insn): New function, split out from
15036 process_insert_insn.
15037 (process_insert_insn): Use prepare_copy_insn.
15038 * store-motion.c (replace_store_insn): Use prepare_copy_insn
15039 instead of gen_move_insn.
15040
15041 2019-01-24 Jakub Jelinek <jakub@redhat.com>
15042
15043 PR debug/89006
15044 * config/i386/i386.c (ix86_pic_register_p): Return true for
15045 UNSPEC_SET_GOT too.
15046
15047 PR tree-optimization/88964
15048 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
15049 punt if HONOR_SNANS (chrec).
15050
15051 PR middle-end/89015
15052 * tree-nested.c (convert_nonlocal_reference_stmt,
15053 convert_local_reference_stmt, convert_tramp_reference_stmt,
15054 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
15055 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
15056 or GIMPLE_OMP_TASK.
15057
15058 PR tree-optimization/89027
15059 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
15060 for "omp simd array" variables.
15061
15062 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
15063
15064 PR target/88469
15065 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
15066 force the alignment of m_val.
15067
15068 2019-01-24 Richard Biener <rguenther@suse.de>
15069
15070 PR lto/87187
15071 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
15072 When in "legacy" debug mode make sure to reset self-origins.
15073
15074 2019-01-24 Martin Liska <mliska@suse.cz>
15075
15076 PR gcov-profile/88994
15077 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
15078 result will be always smaller or equal to the original.
15079 * gcov.c (mangle_name): Fix else branch where we should
15080 also copy to PTR and shift the pointer.
15081
15082 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15083
15084 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
15085 * vr-values.c (find_case_label_ranges): Fix a comment typo.
15086
15087 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
15088
15089 * common/config/i386/i386-common.c
15090 (OPTION_MASK_ISA_ENQCMD_SET,
15091 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
15092 (ix86_handle_option): Handle -menqcmd.
15093 * config.gcc (enqcmdintrin.h): New header file.
15094 * config/i386/cpuid.h (bit_ENQCMD): New bit.
15095 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15096 -menqcmd.
15097 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
15098 function type.
15099 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
15100 __builtin_ia32_enqcmds): New builtins.
15101 * config/i386/i386-c.c (__ENQCMD__): New macro.
15102 * config/i386/i386-option.c (ix86_target_string): Add
15103 -menqcmd.
15104 (ix86_valid_target_attribute_inner_p): Likewise.
15105 * config/i386/i386-expand.c
15106 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
15107 IX86_BUILTIN_ENQCMDS.
15108 * config/i386/i386.h (TARGET_ENQCMD): New.
15109 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
15110 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
15111 (movdir64b_<mode>): Parameterize to enable share expansion code
15112 with ENQCMD in function ix86_expand_builtin.
15113 * config/i386/i386.opt: Add -menqcmd.
15114 * config/i386/immintrin.h: Include enqcmdintrin.h.
15115 * config/i386/enqcmdintrin.h: New intrinsic file.
15116 * doc/invoke.texi: Add -menqcmd.
15117
15118 2019-01-23 Bin Cheng <bin.cheng@arm.com>
15119 Steve Ellcey <sellcey@marvell.com>
15120
15121 PR target/85711
15122 * recog.c (address_operand): Return false on wrong mode for address.
15123 (constrain_operands): Check for mode with 'p' constraint.
15124
15125 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
15126
15127 PR target/88998
15128 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
15129 Disparage MMX alternative.
15130 (sse2_cvtpd2pi): Ditto.
15131 (sse2_cvttpd2pi): Ditto.
15132
15133 2019-01-23 David Malcolm <dmalcolm@redhat.com>
15134
15135 PR driver/89014
15136 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
15137 use-after-free of the result of
15138 aarch64_get_extension_string_for_isa_flags.
15139
15140 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15141
15142 PR c/44715
15143 * doc/extend.texi: Document break and continue behavior in
15144 statement expressions.
15145
15146 2019-01-23 Richard Biener <rguenther@suse.de>
15147
15148 PR tree-optimization/89008
15149 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
15150 not leave another stray operand.
15151
15152 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15153
15154 * BASE-VER: Bump to 9.0.1.
15155
15156 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
15157
15158 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
15159 thunk that returns by reference, use the type of the return object
15160 of the thunk instead of that of the alias to build the dereference.
15161
15162 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
15163
15164 * config/arc/atomic.md: Add operand to DMB instruction.
15165
15166 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15167
15168 PR tree-optimization/88964
15169 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
15170 build_zero_cst instead of build_int_cst. Return false for loop
15171 invariants which honor signed zeros.
15172
15173 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
15174
15175 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
15176
15177 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15178
15179 PR target/88965
15180 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
15181 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
15182 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
15183
15184 PR middle-end/88968
15185 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
15186 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
15187
15188 PR target/87064
15189 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
15190 Disable for little endian.
15191
15192 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15193
15194 PR target/88469
15195 * config/arm/arm.c (arm_needs_double_word_align): Check
15196 DECL_BIT_FIELD_TYPE.
15197
15198 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
15199 H.J. Lu <hongjiu.lu@intel.com>
15200
15201 PR target/88909
15202 * config/i386/i386-builtin.def: Add mask2 to all builtin
15203 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
15204 SPECIAL_ARGS.
15205 * config/i386/i386.c (BDESC): Add mask2 to the definition.
15206 (BDESC_FIRST): Likewise.
15207 (define_builtin): Add an argument for mask2. Updated to handle
15208 both ix86_isa_flags and ix86_isa_flags2.
15209 (define_builtin_const): Likewise.
15210 (define_builtin_pure): Likewise.
15211 (define_builtin2): Deleted.
15212 (define_builtin_const2): Likewise.
15213 (builtin_description): Add a member, mask2.
15214 (bdesc_*): Add mask2 to builtin initializations.
15215 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
15216 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
15217 support.
15218 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
15219
15220 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
15221
15222 PR target/88954
15223 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15224 noplt attribute.
15225
15226 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15227
15228 PR target/88469
15229 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15230 alignment is dominated by a bitfield with 64-bit aligned base type.
15231 (arm_function_arg): Emit a warning if the alignment has changed since
15232 earlier GCC releases.
15233 (arm_function_arg_boundary): Likewise.
15234 (arm_setup_incoming_varargs): Likewise.
15235
15236 2019-01-22 Richard Biener <rguenther@suse.de>
15237
15238 PR tree-optimization/88862
15239 * graphite-scop-detection.c
15240 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15241
15242 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
15243
15244 * doc/extend.tex (AMD GCN Function Attributes): New section.
15245 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15246 * doc/invoke.texi (AMD GCN Options): New section.
15247 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15248
15249 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
15250
15251 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15252 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15253
15254 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15255
15256 PR tree-optimization/88044
15257 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15258 is false in the first iteration, but !every_iteration, return false
15259 instead of true with niter->niter zero.
15260
15261 PR rtl-optimization/88904
15262 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15263 any nonequal registers before processing BB_END (b).
15264
15265 PR target/88905
15266 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15267 GET_MODE (op0).
15268 (expand_binop_directly, expand_doubleword_clz,
15269 expand_doubleword_popcount, expand_ctz, expand_ffs,
15270 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15271
15272 PR rtl-optimization/49429
15273 PR target/49454
15274 PR rtl-optimization/86334
15275 PR target/88906
15276 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15277 addressable from here...
15278 (emit_block_op_via_libcall): ... to here.
15279
15280 2019-01-22 Richard Biener <rguenther@suse.de>
15281
15282 * tree-vect-loop.c (vect_analyze_loop_operations): Use
15283 auto_vec for cost vector to fix memleak.
15284 (vectorize_fold_left_reduction): Properly gather SLP defs.
15285 (vectorizable_comparison): Do not swap operands to properly
15286 gather SLP defs.
15287
15288 2019-01-22 Alan Modra <amodra@gmail.com>
15289
15290 PR target/88614
15291 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15292 stays a reg. Allow a const_int.
15293 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15294 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15295 (IS_NOMARK_TLSGETADDR): Define.
15296 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15297 (rs6000_output_tlsargs): New function.
15298 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15299 __tls_get_addr call takes an arg.
15300 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15301 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15302 delete split..
15303 (call_value_nonlocal_sysv): ..or here, delete split.
15304 (tls_gdld_nomark): Delete.
15305 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15306 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
15307 (call_value_nonlocal_sysv): Likewise.
15308 (call_value_nonlocal_sysv_secure): Likewise.
15309 (call_value_nonlocal_aix): Likewise.
15310 (call_value_indirect_aix): Likewise.
15311 (call_value_indirect_elfv2): Likewise.
15312 (call_value_local32, call_value_local64): Disable for no-mark tls.
15313 (call_value_local_aix): Likewise.
15314
15315 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
15316
15317 PR target/88938
15318 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15319 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15320
15321 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
15322
15323 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15324 string contents as hash_map keys.
15325
15326 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15327
15328 PR c/88928
15329 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15330 for rvalue context. Handle rvalues correctly. Use min_align_of_type
15331 instead of TYPE_ALIGN.
15332 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15333 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
15334 pointer from TYPE_STUB_DECL.
15335
15336 2019-01-21 Richard Biener <rguenther@suse.de>
15337
15338 PR tree-optimization/88934
15339 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15340 at the possibly non-constant operand.
15341 (vect_get_constant_vectors): Adjust.
15342
15343 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
15344
15345 PR target/71659
15346 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15347 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15348 instead of _X86INTRIN_H_INCLUDED.
15349 * onfig/i386/clwbintrin.h: Likewise.
15350 * config/i386/pkuintrin.h: Likewise.
15351 * config/i386/prfchwintrin.h: Likewise.
15352 * config/i386/rdseedintrin.h: Likewise.
15353 * config/i386/wbnoinvdintrin.h: Likewise.
15354 * config/i386/xsavecintrin.h: Likewise.
15355 * config/i386/xsavesintrin.h: Likewise.
15356 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15357 * config/i386/xsaveintrin.h: Likewise.
15358 * config/i386/xsaveoptintrin.h: Likewise.
15359 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15360 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15361 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15362 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15363 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15364 * config/i386/immintrin.h: Here.
15365
15366 2019-01-20 Martin Jambor <mjambor@suse.cz>
15367
15368 PR ipa/87615
15369 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15370 with aa_walk_budget.
15371 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15372 aa_walk_budget_p parameter.
15373 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
15374 walk. Updated all callers.
15375 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15376 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15377 unmodified_parm.
15378 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15379 parameter info. Extract info from fbi. Pass fbi to recursive calls
15380 and to unmodified_parm.
15381 (phi_result_unknown_predicate): New parameter fbi, removed parameter
15382 info, updated call to will_be_nonconstant_expr_predicate.
15383 (param_change_prob): New parameter fbi, limit AA walking.
15384 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
15385 calls to various above functions.
15386 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15387 parameter. Use it to limit AA walking.
15388 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15389 fbi, limit AA walk.
15390 (detect_type_change): New parameter fbi, pass it on to
15391 detect_type_change_from_memory_writes.
15392 (detect_type_change_ssa): Likewise.
15393 (aa_overwalked): Removed.
15394 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15395 accordingly, adjust to the neew AA limiting scheme.
15396 (parm_ref_data_preserved_p): Likewise.
15397 (ipa_compute_jump_functions_for_edge): Adjust call to
15398 get_dynamic_type.
15399 (ipa_analyze_call_uses): Likewise.
15400 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15401 (ipa_analyze_node): Initialize aa_walk_budget.
15402 (ipcp_transform_function): Likewise.
15403 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15404 to get_dynamic_type.
15405
15406 2019-01-19 Jakub Jelinek <jakub@redhat.com>
15407
15408 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15409 outside of #if CHECKING_P code.
15410
15411 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
15412
15413 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
15414 New function, split out from...
15415 (loop_versioning::analyze_stride): ...here.
15416 (loop_versioning::find_per_loop_multiplication): Use gassign.
15417 (loop_versioning::analyze_term_using_scevs): Return a success code.
15418 (loop_versioning::analyze_arbitrary_term): New function.
15419 (loop_versioning::analyze_address_fragment): Use
15420 analyze_arbitrary_term if all else fails.
15421
15422 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
15423
15424 PR target/88892
15425 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
15426 operands.
15427
15428 2019-01-18 Richard Biener <rguenther@suse.de>
15429
15430 PR tree-optimization/88903
15431 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
15432 scalar stmts a SLP shift amount is composed of when detecting
15433 shifts by scalars.
15434
15435 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
15436
15437 PR target/88799
15438 * config/arm/arm-cpus.in (mp): New feature.
15439 (sec): New feature.
15440 (fgroup ARMv7ve): Add mp and sec features.
15441 (arch armv7-a): Add options to allow mp and sec extensions.
15442 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
15443 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
15444 extenstions to the base architecture.
15445 (cpu cortex-a8): Add sec extension to the base architecture.
15446 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
15447 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
15448 variants down to the base v7-a varaint.
15449 * config/arm/t-multilib (v7_a_arch_variants): New variable.
15450 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
15451 of permitted extensions for -march=armv7-a and for
15452 -mcpu=generic-armv7-a.
15453
15454 2019-01-18 Martin Liska <mliska@suse.cz>
15455
15456 * params.def: Fix comment.
15457 * tree-profile.c (gimple_init_gcov_profiler): Bump function
15458 name.
15459 (gimple_gen_ic_func_profiler): Likewise.
15460
15461 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15462
15463 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
15464 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
15465 and put in error checks for stack protector guard options.
15466 (aarch64_stack_protect_guard): New.
15467 (TARGET_STACK_PROTECT_GUARD): Define.
15468 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
15469 (reg_stack_protect_address<mode>): New.
15470 (stack_protect_set): Adjust for SSP_GLOBAL.
15471 (stack_protect_test): Likewise.
15472 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
15473 (-mstack-protector-guard): Likewise.
15474 (-mstack-protector-guard-offset): Likewise.
15475
15476 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15477
15478 PR tree-optimization/86214
15479 * tree-inline.h (struct copy_body_data): Add
15480 add_clobbers_to_eh_landing_pads member.
15481 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
15482 (copy_edges_for_bb): Call it if EH edge destination is <
15483 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
15484 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
15485 if flag_stack_reuse != SR_NONE and clear it afterwards.
15486
15487 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
15488
15489 PR target/85596
15490 * doc/install.texi (with-multilib-list): Document for aarch64.
15491
15492 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15493
15494 PR target/88734
15495 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
15496 (("..."))) with ("...").
15497
15498 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
15499
15500 * doc/extend.texi (Built-in Functions for Memory Model Aware
15501 Atomic Operations): Document atomic fetch and nand.
15502
15503 2019-01-18 Martin Liska <mliska@suse.cz>
15504 Richard Biener <rguenther@suse.de>
15505
15506 PR middle-end/88587
15507 * cgraph.h (create_version_clone_with_body): Add new argument
15508 with attributes.
15509 * cgraphclones.c (cgraph_node::create_version_clone): Add
15510 DECL_ATTRIBUTES to a newly created decl. And call
15511 valid_attribute_p so that proper cl_target_optimization_node
15512 is set for the newly created declaration.
15513 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
15514 for declaration.
15515 (expand_target_clones): Do not call valid_attribute_p, it must
15516 be already done.
15517 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
15518 vector types.
15519
15520 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15521
15522 PR target/88734
15523 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
15524 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
15525 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
15526
15527 2019-01-17 Martin Sebor <msebor@redhat.com>
15528
15529 PR middle-end/88273
15530 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
15531 Handle anti-ranges the same as no range at all.
15532
15533 2018-01-17 Steve Ellcey <sellcey@cavium.com>
15534
15535 * config/aarch64/aarch64.c (cgraph.h): New include.
15536 (intl.h): New include.
15537 (supported_simd_type): New function.
15538 (currently_supported_simd_type): Ditto.
15539 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
15540 (aarch64_simd_clone_adjust): Ditto.
15541 (aarch64_simd_clone_usable): Ditto.
15542 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
15543 (TARGET_SIMD_CLONE_ADJUST): Ditto.
15544 (TARGET_SIMD_CLONE_USABLE): Ditto.
15545 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
15546 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
15547 call.
15548
15549 2019-01-17 Martin Sebor <msebor@redhat.com>
15550
15551 PR tree-optimization/88800
15552 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
15553 NO_WARNING bit here. Avoid folding out-of-bounds calls.
15554 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
15555 redundant argument. Add new argument and issue diagnostics under
15556 its control. Detect out-of-bounds access even with warnings
15557 disabled.
15558 (check_bounds_or_overlap): Change return type. Add argument.
15559 (wrestrict_dom_walker::check_call): Adjust.
15560 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
15561 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
15562 check_bounds_or_overlap's return value.
15563 (handle_builtin_stxncpy): Same.
15564 (handle_builtin_strcat): Same.
15565
15566 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15567 Kwok Cheung Yeung <kcy@codesourcery.com>
15568 Julian Brown <julian@codesourcery.com>
15569 Tom de Vries <tom@codesourcery.com>
15570
15571 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
15572
15573 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15574
15575 * doc/sourcebuild.texi: Document dg-require-effective-target
15576 llvm_binutils and offload_gcn.
15577
15578 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15579 Kwok Cheung Yeung <kcy@codesourcery.com>
15580 Julian Brown <julian@codesourcery.com>
15581 Tom de Vries <tom@codesourcery.com>
15582
15583 * doc/sourcebuild.texi: Document dg-required-effective-target
15584 exceptions.
15585
15586 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15587 Kwok Cheung Yeung <kcy@codesourcery.com>
15588 Julian Brown <julian@codesourcery.com>
15589 Tom de Vries <tom@codesourcery.com>
15590 Jan Hubicka <hubicka@ucw.cz>
15591 Martin Jambor <mjambor@suse.cz>
15592
15593 * config.gcc: Add amdgcn*-*-amdhsa configuration.
15594 * configure.ac: Check for dlopen.
15595 * configure: Regenerate.
15596
15597 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15598 Kwok Cheung Yeung <kcy@codesourcery.com>
15599 Julian Brown <julian@codesourcery.com>
15600 Tom de Vries <tom@codesourcery.com>
15601 Jan Hubicka <hubicka@ucw.cz>
15602 Martin Jambor <mjambor@suse.cz>
15603
15604 * common/config/gcn/gcn-common.c: New file.
15605 * config/gcn/driver-gcn.c: New file.
15606 * config/gcn/gcn-builtins.def: New file.
15607 * config/gcn/gcn-hsa.h: New file.
15608 * config/gcn/gcn-modes.def: New file.
15609 * config/gcn/gcn-opts.h: New file.
15610 * config/gcn/gcn-passes.def: New file.
15611 * config/gcn/gcn-protos.h: New file.
15612 * config/gcn/gcn-run.c: New file.
15613 * config/gcn/gcn-tree.c: New file.
15614 * config/gcn/gcn.c: New file.
15615 * config/gcn/gcn.h: New file.
15616 * config/gcn/gcn.opt: New file.
15617 * config/gcn/t-gcn-hsa: New file.
15618
15619 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15620 Kwok Cheung Yeung <kcy@codesourcery.com>
15621 Julian Brown <julian@codesourcery.com>
15622 Tom de Vries <tom@codesourcery.com>
15623 Jan Hubicka <hubicka@ucw.cz>
15624 Martin Jambor <mjambor@suse.cz>
15625
15626 * config/gcn/constraints.md: New file.
15627 * config/gcn/gcn-valu.md: New file.
15628 * config/gcn/gcn.md: New file.
15629 * config/gcn/predicates.md: New file.
15630
15631 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
15632
15633 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
15634 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
15635 (stmt_uses_0_or_null_in_undefined_way): Likewise.
15636 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
15637
15638 2019-01-17 Tamar Christina <tamar.christina@arm.com>
15639
15640 PR target/88851
15641 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
15642 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
15643 it and document registers.
15644
15645 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15646
15647 * config/aarch64/aarch64.c (ares_tunings): Define.
15648 * config/aarch64/aarch64-cores.def (ares): Use the above.
15649
15650 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15651
15652 PR target/88794
15653 Revert:
15654 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
15655
15656 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
15657 (_mm512_fixupimm_round_pd): Update parameters and builtin.
15658 (_mm512_maskz_fixupimm_round_pd): Ditto.
15659 (_mm512_fixupimm_round_ps): Ditto.
15660 (_mm512_maskz_fixupimm_round_ps): Ditto.
15661 (_mm_fixupimm_round_sd): Ditto.
15662 (_mm_maskz_fixupimm_round_sd): Ditto.
15663 (_mm_fixupimm_round_ss): Ditto.
15664 (_mm_maskz_fixupimm_round_ss): Ditto.
15665 (_mm512_fixupimm_pd): Ditto.
15666 (_mm512_maskz_fixupimm_pd): Ditto.
15667 (_mm512_fixupimm_ps): Ditto.
15668 (_mm512_maskz_fixupimm_ps): Ditto.
15669 (_mm_fixupimm_sd): Ditto.
15670 (_mm_maskz_fixupimm_sd): Ditto.
15671 (_mm_fixupimm_ss): Ditto.
15672 (_mm_maskz_fixupimm_ss): Ditto.
15673 (_mm512_mask_fixupimm_round_pd): Update builtin.
15674 (_mm512_mask_fixupimm_round_ps): Ditto.
15675 (_mm_mask_fixupimm_round_sd): Ditto.
15676 (_mm_mask_fixupimm_round_ss): Ditto.
15677 (_mm512_mask_fixupimm_pd): Ditto.
15678 (_mm512_mask_fixupimm_ps): Ditto.
15679 (_mm_mask_fixupimm_sd): Ditto.
15680 (_mm_mask_fixupimm_ss): Ditto.
15681 * config/i386/avx512vlintrin.h:
15682 (_mm256_fixupimm_pd): Update parameters and builtin.
15683 (_mm256_maskz_fixupimm_pd): Ditto.
15684 (_mm256_fixupimm_ps): Ditto.
15685 (_mm256_maskz_fixupimm_ps): Ditto.
15686 (_mm_fixupimm_pd): Ditto.
15687 (_mm_maskz_fixupimm_pd): Ditto.
15688 (_mm_fixupimm_ps): Ditto.
15689 (_mm_maskz_fixupimm_ps): Ditto.
15690 (_mm256_mask_fixupimm_pd): Update builtin.
15691 (_mm256_mask_fixupimm_ps): Ditto.
15692 (_mm_mask_fixupimm_pd): Ditto.
15693 (_mm_mask_fixupimm_ps): Ditto.
15694 * config/i386/i386-builtin-types.def: Add new types and remove
15695 useless ones.
15696 * config/i386/i386-builtin.def: Update builtin definitions.
15697 * config/i386/i386.c: Handle new builtin types and remove useless ones.
15698 * config/i386/sse.md: Update VFIXUPIMM* patterns.
15699 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15700 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15701 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
15702 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15703 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15704 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
15705 * config/i386/subst.md:
15706 (round_saeonly_sd_mask_operand4): Add new subst_attr.
15707 (round_saeonly_sd_mask_op4): Ditto.
15708 (round_saeonly_expand_operand5): Ditto.
15709 (round_saeonly_expand): Update.
15710
15711 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15712
15713 PR target/88794
15714 Revert:
15715 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
15716
15717 * config/i386/sse.md: Combine VFIXUPIMM* patterns
15718 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15719 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15720 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
15721 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15722 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15723 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
15724
15725 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15726
15727 PR target/88794
15728 Revert:
15729 2018-12-15 Jakub Jelinek <jakub@redhat.com>
15730
15731 PR target/88489
15732 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
15733 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
15734 instead of UNSPEC_FIXUPIMM.
15735
15736 2019-01-17 Richard Biener <rguenther@suse.de>
15737
15738 PR lto/86736
15739 * dwarf2out.c (want_pubnames): Never generate pubnames sections
15740 and friends for the LTO part of debug info.
15741
15742 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15743
15744 PR tree-optimization/86214
15745 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
15746 if x == y.
15747
15748 PR rtl-optimization/88870
15749 * dce.c (deletable_insn_p): Never delete const/pure calls that can
15750 throw if we can't alter the cfg or delete dead exceptions.
15751 (mark_insn): Don't call find_call_stack_args for such calls.
15752
15753 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
15754
15755 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
15756 prototypes for vec_st.
15757 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
15758 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
15759 mainly on signed/unsigned long long and double.
15760
15761 2019-01-16 David Malcolm <dmalcolm@redhat.com>
15762
15763 PR target/88861
15764 * combine.c (delete_noop_moves): Convert to "bool" return,
15765 returning true if any edges are eliminated.
15766 (combine_instructions): Also return true if delete_noop_moves
15767 returns true.
15768
15769 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15770
15771 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
15772 correct max nunits for endian swap.
15773 (aarch64_expand_fcmla_builtin): Correct subreg code.
15774 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
15775 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
15776 lane endianness.
15777
15778 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
15779
15780 * config/alpha/alpha.c (alpha_gimplify_va_arg):
15781 Handle split indirect COMPLEX_TYPE arguments.
15782
15783 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
15784
15785 PR target/86891
15786 * config/aarch64/aarch64-modes.def: Add comment about how the carry
15787 bit is set by add and compare.
15788 (CC_ADC): New CC_MODE.
15789 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
15790 to cache the code and mode of X. Adjust the shape of a CC_Cmode
15791 comparison. Add detection for CC_ADCmode.
15792 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
15793 CC_ADCmode.
15794 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
15795 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
15796 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
15797 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
15798 to eliminate the need for zero-extending the operands.
15799 (add<mode>3_compareC_imm): Delete. Merge into ...
15800 (add<mode>3_compareC): ... this. Restructure the comparison to
15801 eliminate the need for zero-extending the operands.
15802 (add<mode>3_carryin): Use LTU for the overflow detection.
15803 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
15804 Reexpress comparison for overflow.
15805 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
15806 (add<mode>3_carryinC): Likewise.
15807 (add<mode>3_carryinV): Use LTU for carry between partials.
15808 * config/aarch64/predicates.md (aarch64_carry_operation): Update
15809 handling of CC_Cmode and add CC_ADCmode.
15810 (aarch64_borrow_operation): Likewise.
15811
15812 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15813
15814 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
15815 Remove patternmode.
15816 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
15817 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
15818 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
15819 Remove endianness conversion.
15820
15821 2019-01-16 Martin Liska <mliska@suse.cz>
15822
15823 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
15824 for GCC driver.
15825 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
15826 a new argument.
15827 * gcc.c (add_sysrooted_hdrs_prefix): New function.
15828 (path_prefix_reset): Move up in the source file.
15829 (find_fortran_preinclude_file): Make complex search for the
15830 fortran header files.
15831
15832 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
15833
15834 * godump.c (go_output_typedef): When outputting a typedef, refer
15835 to the underlying type by its name and not its structure.
15836
15837 2019-01-15 David Malcolm <dmalcolm@redhat.com>
15838
15839 PR c++/88795
15840 * tree.c (build_function_type): Assert that arg_types is not
15841 error_mark_node.
15842
15843 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
15844
15845 PR inline-asm/52813
15846 * doc/extend.texi: Document that listing the stack pointer in the
15847 clobber list of an asm is a deprecated feature.
15848 * common.opt (Wdeprecated): Moved from c-family/c.opt.
15849 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
15850 warning instead of an error for clobbers of the stack pointer.
15851 Add a note explaining why.
15852
15853 2019-01-15 Richard Biener <rguenther@suse.de>
15854
15855 PR debug/88046
15856 * dwarf2out.c (gen_member_die): Do not generate inheritance
15857 DIEs late.
15858
15859 2019-01-15 Richard Biener <rguenther@suse.de>
15860
15861 PR tree-optimization/88855
15862 * tree-if-conv.c (combine_blocks): Collect
15863 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
15864
15865 2019-01-15 Tom de Vries <tdevries@suse.de>
15866
15867 PR target/80547
15868 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
15869 lhs == NULL_TREE for gang-level reduction.
15870
15871 2019-01-15 Richard Biener <rguenther@suse.de>
15872 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15873
15874 PR ipa/88788
15875 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
15876 return true if SSA_NAME is already marked in visited bitmap.
15877 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
15878
15879 2019-01-15 Jakub Jelinek <jakub@redhat.com>
15880
15881 PR tree-optimization/88775
15882 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
15883 equal == 0 equality pointer comparisons some more if compared in
15884 integral types and either one points to an automatic var and the
15885 other to a global, or we can prove at least one points to the middle
15886 or both point to start or both point to end.
15887
15888 2019-01-14 Andi Kleen <ak@linux.intel.com>
15889
15890 * Makefile.in: Lower autofdo sampling rate by 10x.
15891 * Makefile.tpl: Dito.
15892
15893 2019-01-14 Tom Honermann <tom@honermann.net>
15894
15895 * defaults.h: Define CHAR8_TYPE.
15896
15897 2019-01-14 Martin Sebor <msebor@redhat.com>
15898
15899 PR target/88638
15900 * doc/extend.texi (Darwin Format Checks): Clarify.
15901
15902 2019-01-14 Richard Biener <rguenther@suse.de>
15903
15904 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
15905 whether we are in (simplify ...) or (match ...) context.
15906
15907 2019-01-14 Jakub Jelinek <jakub@redhat.com>
15908
15909 PR rtl-optimization/88796
15910 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
15911 * cfgexpand.c (stack_protect_prologue): Initialize
15912 crtl->stack_protect_guard_decl.
15913 * function.c (stack_protect_epilogue): Use it instead of calling
15914 targetm.stack_protect_guard again.
15915 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
15916 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
15917 crtl->stack_protect_guard_decl.
15918 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
15919 on the returned MEM_EXPR.
15920
15921 2019-01-12 Tom de Vries <tdevries@suse.de>
15922
15923 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
15924 vector length using -fopenacc-dim.
15925
15926 2019-01-12 Tom de Vries <tdevries@suse.de>
15927
15928 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
15929 lengths into account.
15930
15931 2019-01-12 Svante Signell <svante.signell@gmail.com>
15932
15933 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
15934 (TARGET_CAN_SPLIT_STACK): Define.
15935 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
15936
15937 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15938
15939 * params.def (inline-unit-growth): Set to 40.
15940
15941 2019-01-12 Jakub Jelinek <jakub@redhat.com>
15942
15943 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
15944
15945 2019-01-12 Tom de Vries <tdevries@suse.de>
15946
15947 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
15948 region calling vector-partitionable routine, set default_vector_length
15949 to WARP_SIZE.
15950
15951 2019-01-12 Tom de Vries <tdevries@suse.de>
15952
15953 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
15954 variable default_vector_length.
15955
15956 2019-01-12 Tom de Vries <tdevries@suse.de>
15957
15958 PR middle-end/88703
15959 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
15960 from oacc_default_dims, as oacc_validate_dims would do it, and apply
15961 dimensions limits.
15962
15963 2019-01-12 Tom de Vries <tdevries@suse.de>
15964
15965 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
15966 (nvptx_goacc_validate_dims): Add used parameter.
15967 * doc/tm.texi: Regenerate.
15968 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
15969 argument to call to targetm.goacc.validate_dims.
15970 (default_goacc_validate_dims): Add used
15971 parameter.
15972 * target.def (validate_dims): Add used parameter in DEFHOOK.
15973 * targhooks.h (default_goacc_validate_dims): Add used parameter.
15974
15975 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15976
15977 PR middle-end/85956
15978 PR lto/88733
15979 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
15980 field.
15981 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
15982 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
15983 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
15984 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
15985
15986 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
15987
15988 PR rtl-optimization/87305
15989 * lra-assigns.c
15990 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
15991 for little endian pseudos used as paradoxical subreg.
15992
15993 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15994
15995 PR tree-optimization/88693
15996 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
15997 for STRING_CSTs that don't contain any NUL characters in the first
15998 TREE_STRING_LENGTH bytes.
15999
16000 2019-01-11 Alan Modra <amodra@gmail.com>
16001
16002 PR 88777
16003 PR 88614
16004 * genattrtab.c (min_fn): Don't translate values.
16005 (min_attr_value): Return INT_MAX when the value can't be calculated.
16006 Return minimum among any values that can be calculated.
16007 (max_attr_value): Adjust.
16008
16009 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16010
16011 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
16012
16013 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16014
16015 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16016 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
16017 (aarch64_return_call_with_max_clobbers): New function.
16018 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
16019 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
16020 argument.
16021 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
16022 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
16023 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
16024 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
16025 * cselib.c (cselib_process_insn): Add argument to
16026 targetm.hard_regno_call_part_clobbered call.
16027 * ira-conflicts.c (ira_build_conflicts): Ditto.
16028 * ira-costs.c (ira_tune_allocno_costs): Ditto.
16029 * lra-constraints.c (inherit_reload_reg): Ditto.
16030 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
16031 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
16032 argument. Call targetm.return_call_with_max_clobbers.
16033 Add argument to targetm.hard_regno_call_part_clobbered call.
16034 (calls_have_same_clobbers_p): New function.
16035 (process_bb_lives): Add call_insn and last_call_insn variables.
16036 Pass call_insn to check_pseudos_live_through_calls.
16037 Modify if stmt to check targetm.return_call_with_max_clobbers.
16038 Update setting of flush variable.
16039 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
16040 to false.
16041 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
16042 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
16043 targetm.hard_regno_call_part_clobbered call.
16044 * reginfo.c (choose_hard_reg_mode): Ditto.
16045 * regrename.c (check_new_reg_p): Ditto.
16046 * reload.c (find_equiv_reg): Ditto.
16047 * reload1.c (emit_reload_insns): Ditto.
16048 * sched-deps.c (deps_analyze_insn): Ditto.
16049 * sel-sched.c (init_regs_for_mode): Ditto.
16050 (mark_unavailable_hard_regs): Ditto.
16051 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
16052 * target.def (hard_regno_call_part_clobbered): Add insn argument.
16053 (return_call_with_max_clobbers): New target function.
16054 * doc/tm.texi: Regenerate.
16055 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
16056 * hooks.c (hook_bool_uint_mode_false): Change to
16057 hook_bool_insn_uint_mode_false.
16058 * hooks.h (hook_bool_uint_mode_false): Ditto.
16059
16060 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16061
16062 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16063 (aarch64_remove_extra_call_preserved_regs): New function.
16064 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
16065 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
16066 * doc/tm.texi: Regenerate.
16067 * final.c (get_call_reg_set_usage): Call new hook.
16068 * target.def (remove_extra_call_preserved_regs): New hook.
16069 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
16070 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
16071
16072 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16073
16074 PR bootstrap/88714
16075 * passes.c (finish_optimization_passes): Call print_combine_total_stats
16076 inside of pass_combine_1 dump rather than pass_profile_1.
16077
16078 2019-01-11 Tom de Vries <tdevries@suse.de>
16079
16080 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
16081 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
16082 (PTX_NUM_PER_WORKER_BARRIERS): Define.
16083 (nvptx_apply_dim_limits): Prevent vector_length 64 and
16084 num_workers 16.
16085
16086 2019-01-11 Tom de Vries <tdevries@suse.de>
16087
16088 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
16089
16090 2019-01-11 Jan Beulich <jbeulich@suse.com>
16091
16092 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
16093 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
16094 sse2_cvtsi2sd): Add {l}.
16095 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
16096 syntax.
16097
16098 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16099
16100 PR target/88785
16101 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
16102 define_expand.
16103 (*float<floatunssuffix>v2div2sf2): New define_insn.
16104 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
16105 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
16106 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
16107 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
16108 match_operands with "const0_operand" "C".
16109
16110 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16111
16112 * config/aarch64/aarch64-builtins.c
16113 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
16114 (aarch64_init_simd_builtins): ...Here
16115
16116 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
16117
16118 PR rtl-optimization/87305
16119 * lra-assigns.c
16120 (setup_live_pseudos_and_spill_after_risky_transforms): Check
16121 allocation for big endian pseudos used as paradoxical subregs and
16122 spill them if it is wrong.
16123 * lra-constraints.c (lra_constraints): Add a comment.
16124
16125 2019-01-10 Richard Biener <rguenther@suse.de>
16126
16127 PR tree-optimization/88792
16128 * tree-ssa-pre.c (get_representative_for): Do not return a
16129 value-number here.
16130
16131 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16132
16133 PR middle-end/84877
16134 PR bootstrap/88450
16135 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
16136 (assign_parm_setup_block): Do the argument slot realignment here
16137 instead.
16138
16139 2019-01-10 Stefan Agner <stefan@agner.ch>
16140
16141 PR target/88648
16142 * config/arm/arm.c (arm_option_override_internal): Force
16143 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
16144
16145 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16146
16147 PR c/88568
16148 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
16149 DECL_EXTERNAL.
16150
16151 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16152
16153 * config/arm/arm-builtins.c
16154 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
16155 (MAC_LANE_PAIR_QUALIFIERS): New.
16156 (arm_expand_builtin_args): Use it.
16157 (arm_expand_builtin_1): Likewise.
16158 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
16159 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
16160 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
16161 * config/arm/arm_neon.h:
16162 (vcadd_rot90_f16): New.
16163 (vcaddq_rot90_f16): New.
16164 (vcadd_rot270_f16): New.
16165 (vcaddq_rot270_f16): New.
16166 (vcmla_f16): New.
16167 (vcmlaq_f16): New.
16168 (vcmla_lane_f16): New.
16169 (vcmla_laneq_f16): New.
16170 (vcmlaq_lane_f16): New.
16171 (vcmlaq_laneq_f16): New.
16172 (vcmla_rot90_f16): New.
16173 (vcmlaq_rot90_f16): New.
16174 (vcmla_rot90_lane_f16): New.
16175 (vcmla_rot90_laneq_f16): New.
16176 (vcmlaq_rot90_lane_f16): New.
16177 (vcmlaq_rot90_laneq_f16): New.
16178 (vcmla_rot180_f16): New.
16179 (vcmlaq_rot180_f16): New.
16180 (vcmla_rot180_lane_f16): New.
16181 (vcmla_rot180_laneq_f16): New.
16182 (vcmlaq_rot180_lane_f16): New.
16183 (vcmlaq_rot180_laneq_f16): New.
16184 (vcmla_rot270_f16): New.
16185 (vcmlaq_rot270_f16): New.
16186 (vcmla_rot270_lane_f16): New.
16187 (vcmla_rot270_laneq_f16): New.
16188 (vcmlaq_rot270_lane_f16): New.
16189 (vcmlaq_rot270_laneq_f16): New.
16190 (vcadd_rot90_f32): New.
16191 (vcaddq_rot90_f32): New.
16192 (vcadd_rot270_f32): New.
16193 (vcaddq_rot270_f32): New.
16194 (vcmla_f32): New.
16195 (vcmlaq_f32): New.
16196 (vcmla_lane_f32): New.
16197 (vcmla_laneq_f32): New.
16198 (vcmlaq_lane_f32): New.
16199 (vcmlaq_laneq_f32): New.
16200 (vcmla_rot90_f32): New.
16201 (vcmlaq_rot90_f32): New.
16202 (vcmla_rot90_lane_f32): New.
16203 (vcmla_rot90_laneq_f32): New.
16204 (vcmlaq_rot90_lane_f32): New.
16205 (vcmlaq_rot90_laneq_f32): New.
16206 (vcmla_rot180_f32): New.
16207 (vcmlaq_rot180_f32): New.
16208 (vcmla_rot180_lane_f32): New.
16209 (vcmla_rot180_laneq_f32): New.
16210 (vcmlaq_rot180_lane_f32): New.
16211 (vcmlaq_rot180_laneq_f32): New.
16212 (vcmla_rot270_f32): New.
16213 (vcmlaq_rot270_f32): New.
16214 (vcmla_rot270_lane_f32): New.
16215 (vcmla_rot270_laneq_f32): New.
16216 (vcmlaq_rot270_lane_f32): New.
16217 (vcmlaq_rot270_laneq_f32): New.
16218 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
16219 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
16220 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16221 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16222 vcmlaq_lane270): New.
16223 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16224 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16225 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16226 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16227 (arm_option_reconfigure_globals): Use them.
16228 * config/arm/iterators.md (VDF, VQ_HSF): New.
16229 (VCADD, VCMLA): New.
16230 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16231 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16232 New.
16233 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16234 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16235
16236 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16237
16238 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16239 Add qualifier_lane_pair_index.
16240 (emit-rtl.h): Include.
16241 (TYPES_QUADOP_LANE_PAIR): New.
16242 (aarch64_simd_expand_args): Use it.
16243 (aarch64_simd_expand_builtin): Likewise.
16244 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16245 New.
16246 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16247 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16248 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16249 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16250 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16251 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16252 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16253 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16254 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16255 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16256 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16257 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16258 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16259 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16260 Add __ARM_FEATURE_COMPLEX.
16261 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16262 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16263 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16264 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16265 fcmlaq_lane270): New.
16266 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16267 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16268 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16269 * config/aarch64/arm_neon.h:
16270 (vcadd_rot90_f16): New.
16271 (vcaddq_rot90_f16): New.
16272 (vcadd_rot270_f16): New.
16273 (vcaddq_rot270_f16): New.
16274 (vcmla_f16): New.
16275 (vcmlaq_f16): New.
16276 (vcmla_lane_f16): New.
16277 (vcmla_laneq_f16): New.
16278 (vcmlaq_lane_f16): New.
16279 (vcmlaq_rot90_lane_f16): New.
16280 (vcmla_rot90_laneq_f16): New.
16281 (vcmla_rot90_lane_f16): New.
16282 (vcmlaq_rot90_f16): New.
16283 (vcmla_rot90_f16): New.
16284 (vcmlaq_laneq_f16): New.
16285 (vcmla_rot180_laneq_f16): New.
16286 (vcmla_rot180_lane_f16): New.
16287 (vcmlaq_rot180_f16): New.
16288 (vcmla_rot180_f16): New.
16289 (vcmlaq_rot90_laneq_f16): New.
16290 (vcmlaq_rot270_laneq_f16): New.
16291 (vcmlaq_rot270_lane_f16): New.
16292 (vcmla_rot270_laneq_f16): New.
16293 (vcmlaq_rot270_f16): New.
16294 (vcmla_rot270_f16): New.
16295 (vcmlaq_rot180_laneq_f16): New.
16296 (vcmlaq_rot180_lane_f16): New.
16297 (vcmla_rot270_lane_f16): New.
16298 (vcadd_rot90_f32): New.
16299 (vcaddq_rot90_f32): New.
16300 (vcaddq_rot90_f64): New.
16301 (vcadd_rot270_f32): New.
16302 (vcaddq_rot270_f32): New.
16303 (vcaddq_rot270_f64): New.
16304 (vcmla_f32): New.
16305 (vcmlaq_f32): New.
16306 (vcmlaq_f64): New.
16307 (vcmla_lane_f32): New.
16308 (vcmla_laneq_f32): New.
16309 (vcmlaq_lane_f32): New.
16310 (vcmlaq_laneq_f32): New.
16311 (vcmla_rot90_f32): New.
16312 (vcmlaq_rot90_f32): New.
16313 (vcmlaq_rot90_f64): New.
16314 (vcmla_rot90_lane_f32): New.
16315 (vcmla_rot90_laneq_f32): New.
16316 (vcmlaq_rot90_lane_f32): New.
16317 (vcmlaq_rot90_laneq_f32): New.
16318 (vcmla_rot180_f32): New.
16319 (vcmlaq_rot180_f32): New.
16320 (vcmlaq_rot180_f64): New.
16321 (vcmla_rot180_lane_f32): New.
16322 (vcmla_rot180_laneq_f32): New.
16323 (vcmlaq_rot180_lane_f32): New.
16324 (vcmlaq_rot180_laneq_f32): New.
16325 (vcmla_rot270_f32): New.
16326 (vcmlaq_rot270_f32): New.
16327 (vcmlaq_rot270_f64): New.
16328 (vcmla_rot270_lane_f32): New.
16329 (vcmla_rot270_laneq_f32): New.
16330 (vcmlaq_rot270_lane_f32): New.
16331 (vcmlaq_rot270_laneq_f32): New.
16332 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16333 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16334 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16335 (FCADD, FCMLA): New.
16336 (rot): New.
16337 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16338
16339 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16340
16341 PR other/16615
16342
16343 * config/pa/pa.c: Change "can not" to "cannot".
16344 * gimple-ssa-evrp-analyze.c: Likewise.
16345 * ipa-icf.c: Likewise.
16346 * ipa-polymorphic-call.c: Likewise.
16347 * ipa-pure-const.c: Likewise.
16348 * lra-constraints.c: Likewise.
16349 * lra-remat.c: Likewise.
16350 * reload1.c: Likewise.
16351 * reorg.c: Likewise.
16352 * tree-ssa-uninit.c: Likewise.
16353
16354 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16355
16356 PR other/16615
16357
16358 * Makefile.in: Mechanically replace "can not" with "cannot".
16359 * alias.c: Likewise.
16360 * builtins.c: Likewise.
16361 * calls.c: Likewise.
16362 * cgraph.c: Likewise.
16363 * cgraph.h: Likewise.
16364 * cgraphclones.c: Likewise.
16365 * cgraphunit.c: Likewise.
16366 * combine-stack-adj.c: Likewise.
16367 * combine.c: Likewise.
16368 * common/config/i386/i386-common.c: Likewise.
16369 * config/aarch64/aarch64.c: Likewise.
16370 * config/alpha/sync.md: Likewise.
16371 * config/arc/arc.c: Likewise.
16372 * config/arc/predicates.md: Likewise.
16373 * config/arm/arm-c.c: Likewise.
16374 * config/arm/arm.c: Likewise.
16375 * config/arm/arm.h: Likewise.
16376 * config/arm/arm.md: Likewise.
16377 * config/arm/cortex-r4f.md: Likewise.
16378 * config/csky/csky.c: Likewise.
16379 * config/csky/csky.h: Likewise.
16380 * config/darwin-f.c: Likewise.
16381 * config/epiphany/epiphany.md: Likewise.
16382 * config/i386/i386.c: Likewise.
16383 * config/i386/sol2.h: Likewise.
16384 * config/m68k/m68k.c: Likewise.
16385 * config/mcore/mcore.h: Likewise.
16386 * config/microblaze/microblaze.md: Likewise.
16387 * config/mips/20kc.md: Likewise.
16388 * config/mips/sb1.md: Likewise.
16389 * config/nds32/nds32.c: Likewise.
16390 * config/nds32/predicates.md: Likewise.
16391 * config/pa/pa.c: Likewise.
16392 * config/rs6000/e300c2c3.md: Likewise.
16393 * config/rs6000/rs6000.c: Likewise.
16394 * config/s390/s390.h: Likewise.
16395 * config/sh/sh.c: Likewise.
16396 * config/sh/sh.md: Likewise.
16397 * config/spu/vmx2spu.h: Likewise.
16398 * cprop.c: Likewise.
16399 * dbxout.c: Likewise.
16400 * df-scan.c: Likewise.
16401 * doc/cfg.texi: Likewise.
16402 * doc/extend.texi: Likewise.
16403 * doc/fragments.texi: Likewise.
16404 * doc/gty.texi: Likewise.
16405 * doc/invoke.texi: Likewise.
16406 * doc/lto.texi: Likewise.
16407 * doc/md.texi: Likewise.
16408 * doc/objc.texi: Likewise.
16409 * doc/rtl.texi: Likewise.
16410 * doc/tm.texi: Likewise.
16411 * dse.c: Likewise.
16412 * emit-rtl.c: Likewise.
16413 * emit-rtl.h: Likewise.
16414 * except.c: Likewise.
16415 * expmed.c: Likewise.
16416 * expr.c: Likewise.
16417 * fold-const.c: Likewise.
16418 * genautomata.c: Likewise.
16419 * gimple-fold.c: Likewise.
16420 * hard-reg-set.h: Likewise.
16421 * ifcvt.c: Likewise.
16422 * ipa-comdats.c: Likewise.
16423 * ipa-cp.c: Likewise.
16424 * ipa-devirt.c: Likewise.
16425 * ipa-fnsummary.c: Likewise.
16426 * ipa-icf.c: Likewise.
16427 * ipa-inline-transform.c: Likewise.
16428 * ipa-inline.c: Likewise.
16429 * ipa-polymorphic-call.c: Likewise.
16430 * ipa-profile.c: Likewise.
16431 * ipa-prop.c: Likewise.
16432 * ipa-pure-const.c: Likewise.
16433 * ipa-reference.c: Likewise.
16434 * ipa-split.c: Likewise.
16435 * ipa-visibility.c: Likewise.
16436 * ipa.c: Likewise.
16437 * ira-build.c: Likewise.
16438 * ira-color.c: Likewise.
16439 * ira-conflicts.c: Likewise.
16440 * ira-costs.c: Likewise.
16441 * ira-int.h: Likewise.
16442 * ira-lives.c: Likewise.
16443 * ira.c: Likewise.
16444 * ira.h: Likewise.
16445 * loop-invariant.c: Likewise.
16446 * loop-unroll.c: Likewise.
16447 * lower-subreg.c: Likewise.
16448 * lra-assigns.c: Likewise.
16449 * lra-constraints.c: Likewise.
16450 * lra-eliminations.c: Likewise.
16451 * lra-lives.c: Likewise.
16452 * lra-remat.c: Likewise.
16453 * lra-spills.c: Likewise.
16454 * lra.c: Likewise.
16455 * lto-cgraph.c: Likewise.
16456 * lto-streamer-out.c: Likewise.
16457 * postreload-gcse.c: Likewise.
16458 * predict.c: Likewise.
16459 * profile-count.h: Likewise.
16460 * profile.c: Likewise.
16461 * recog.c: Likewise.
16462 * ree.c: Likewise.
16463 * reload.c: Likewise.
16464 * reload1.c: Likewise.
16465 * reorg.c: Likewise.
16466 * resource.c: Likewise.
16467 * rtl.def: Likewise.
16468 * rtl.h: Likewise.
16469 * rtlanal.c: Likewise.
16470 * sched-deps.c: Likewise.
16471 * sched-ebb.c: Likewise.
16472 * sched-rgn.c: Likewise.
16473 * sel-sched-ir.c: Likewise.
16474 * sel-sched.c: Likewise.
16475 * shrink-wrap.c: Likewise.
16476 * simplify-rtx.c: Likewise.
16477 * symtab.c: Likewise.
16478 * target.def: Likewise.
16479 * toplev.c: Likewise.
16480 * tree-call-cdce.c: Likewise.
16481 * tree-cfg.c: Likewise.
16482 * tree-complex.c: Likewise.
16483 * tree-core.h: Likewise.
16484 * tree-eh.c: Likewise.
16485 * tree-inline.c: Likewise.
16486 * tree-loop-distribution.c: Likewise.
16487 * tree-nrv.c: Likewise.
16488 * tree-profile.c: Likewise.
16489 * tree-sra.c: Likewise.
16490 * tree-ssa-alias.c: Likewise.
16491 * tree-ssa-dce.c: Likewise.
16492 * tree-ssa-dom.c: Likewise.
16493 * tree-ssa-forwprop.c: Likewise.
16494 * tree-ssa-loop-im.c: Likewise.
16495 * tree-ssa-loop-ivcanon.c: Likewise.
16496 * tree-ssa-loop-ivopts.c: Likewise.
16497 * tree-ssa-loop-niter.c: Likewise.
16498 * tree-ssa-phionlycprop.c: Likewise.
16499 * tree-ssa-phiopt.c: Likewise.
16500 * tree-ssa-propagate.c: Likewise.
16501 * tree-ssa-threadedge.c: Likewise.
16502 * tree-ssa-threadupdate.c: Likewise.
16503 * tree-ssa-uninit.c: Likewise.
16504 * tree-ssanames.c: Likewise.
16505 * tree-streamer-out.c: Likewise.
16506 * tree.c: Likewise.
16507 * tree.h: Likewise.
16508 * vr-values.c: Likewise.
16509
16510 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
16511
16512 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
16513 (ix86_split_xorsign): Ditto.
16514 * config/i386/i386.c (ix86_expand_xorsign): New function.
16515 (ix86_split_xorsign): Ditto.
16516 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
16517 (xorsign<mode>3): New expander.
16518 (xorsign<mode>3_1): New insn_and_split pattern.
16519 * config/i386/sse.md (xorsign<mode>3): New expander.
16520
16521 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16522
16523 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
16524 (*tablejump_sp64): Likewise.
16525 (*tablejump<P:mode>): ...this.
16526 (*call_address_sp32): Merge into...
16527 (*call_address_sp64): Likewise.
16528 (*call_address<P:mode>): ...this.
16529 (*call_symbolic_sp32): Merge into...
16530 (*call_symbolic_sp64): Likewise.
16531 (*call_symbolic<P:mode>): ...this.
16532 (call_value): Remove constraint and add predicate.
16533 (*call_value_address_sp32): Merge into...
16534 (*call_value_address_sp64): Likewise.
16535 (*call_value_address<P:mode>): ...this.
16536 (*call_value_symbolic_sp32): Merge into...
16537 (*call_value_symbolic_sp64): Likewise.
16538 (*call_value_symbolic<P:mode>): ...this.
16539 (*sibcall_symbolic_sp32): Merge into...
16540 (*sibcall_symbolic_sp64): Likewise.
16541 (*sibcall_symbolic<P:mode>): ...this.
16542 (sibcall_value): Remove constraint and add predicate.
16543 (*sibcall_value_symbolic_sp32): Merge into...
16544 (*sibcall_value_symbolic_sp64): Likewise.
16545 (*sibcall_value_symbolic<P:mode>): ...this.
16546 (window_save): Minor tweak.
16547 (*branch_sp32): Merge into...
16548 (*branch_sp64): Likewise.
16549 (*branch<P:mode>): ...this.
16550
16551 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16552 James Clarke <jrtc27@jrtc27.com>
16553
16554 PR target/84010
16555 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
16556 consistently in TLS address generation and adjust code to the renaming
16557 of patterns. Mark calls to __tls_get_addr as const.
16558 * config/sparc/sparc.md (tgd_hi22): Turn into...
16559 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
16560 (tgd_lo10): Turn into...
16561 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
16562 (tgd_add32): Merge into...
16563 (tgd_add64): Likewise.
16564 (tgd_add<P:mode>): ...this and use Pmode throughout.
16565 (tldm_hi22): Turn into...
16566 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
16567 (tldm_lo10): Turn into...
16568 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
16569 (tldm_add32): Merge into...
16570 (tldm_add64): Likewise.
16571 (tldm_add<P:mode>): ...this and use Pmode throughout.
16572 (tldm_call32): Merge into...
16573 (tldm_call64): Likewise.
16574 (tldm_call<P:mode>): ...this and use Pmode throughout.
16575 (tldo_hix22): Turn into...
16576 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
16577 (tldo_lox10): Turn into...
16578 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
16579 (tldo_add32): Merge into...
16580 (tldo_add64): Likewise.
16581 (tldo_add<P:mode>): ...this and use Pmode throughout.
16582 (tie_hi22): Turn into...
16583 (tie_hi22<P:mode>): ...this and use Pmode throughout.
16584 (tie_lo10): Turn into...
16585 (tie_lo10<P:mode>): ...this and use Pmode throughout.
16586 (tie_ld64): Use DImode throughout.
16587 (tie_add32): Merge into...
16588 (tie_add64): Likewise.
16589 (tie_add<P:mode>): ...this and use Pmode throughout.
16590 (tle_hix22_sp32): Merge into...
16591 (tle_hix22_sp64): Likewise.
16592 (tle_hix22<P:mode>): ...this and use Pmode throughout.
16593 (tle_lox22_sp32): Merge into...
16594 (tle_lox22_sp64): Likewise.
16595 (tle_lox22<P:mode>): ...this and use Pmode throughout.
16596 (*tldo_ldub_sp32): Merge into...
16597 (*tldo_ldub_sp64): Likewise.
16598 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
16599 (*tldo_ldub1_sp32): Merge into...
16600 (*tldo_ldub1_sp64): Likewise.
16601 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
16602 (*tldo_ldub2_sp32): Merge into...
16603 (*tldo_ldub2_sp64): Likewise.
16604 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
16605 (*tldo_ldsb1_sp32): Merge into...
16606 (*tldo_ldsb1_sp64): Likewise.
16607 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
16608 (*tldo_ldsb2_sp32): Merge into...
16609 (*tldo_ldsb2_sp64): Likewise.
16610 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
16611 (*tldo_ldub3_sp64): Use DImode throughout.
16612 (*tldo_ldsb3_sp64): Likewise.
16613 (*tldo_lduh_sp32): Merge into...
16614 (*tldo_lduh_sp64): Likewise.
16615 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
16616 (*tldo_lduh1_sp32): Merge into...
16617 (*tldo_lduh1_sp64): Likewise.
16618 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
16619 (*tldo_ldsh1_sp32): Merge into...
16620 (*tldo_ldsh1_sp64): Likewise.
16621 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
16622 (*tldo_lduh2_sp64): Use DImode throughout.
16623 (*tldo_ldsh2_sp64): Likewise.
16624 (*tldo_lduw_sp32): Merge into...
16625 (*tldo_lduw_sp64): Likewise.
16626 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
16627 (*tldo_lduw1_sp64): Use DImode throughout.
16628 (*tldo_ldsw1_sp64): Likewise.
16629 (*tldo_ldx_sp64): Likewise.
16630 (*tldo_stb_sp32): Merge into...
16631 (*tldo_stb_sp64): Likewise.
16632 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
16633 (*tldo_sth_sp32): Merge into...
16634 (*tldo_sth_sp64): Likewise.
16635 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
16636 (*tldo_stw_sp32): Merge into...
16637 (*tldo_stw_sp64): Likewise.
16638 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
16639 (*tldo_stx_sp64): Use DImode throughout.
16640
16641 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16642
16643 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
16644 check configure option to set BTI and Return Address Signing.
16645 * configure.ac: Add --enable-standard-branch-protection and
16646 --disable-standard-branch-protection.
16647 * configure: Regenerated.
16648 * doc/install.texi: Document the same.
16649
16650 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16651 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16652
16653 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
16654 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
16655 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
16656 if bti is enabled.
16657 * config/aarch64/aarch64-bti-insert.c: New file.
16658 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
16659 pass.
16660 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
16661 new bti pass.
16662 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
16663 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
16664 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
16665 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
16666
16667 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16668
16669 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
16670 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
16671 Disable bti for -mbranch-protection=none.
16672 (aarch64_handle_standard_branch_protection): Enable bti for
16673 -mbranch-protection=standard.
16674 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
16675 -mbranch-protection.
16676 (aarch64_bti_enabled): Check if bti is enabled.
16677 * config/aarch64/aarch64.opt: Declare target variable.
16678 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
16679
16680 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16681
16682 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
16683 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
16684 (aarch64_expand_epilogue): Likewise.
16685 (aarch64_output_mi_thunk): Likewise
16686 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
16687 TAILCALL_ADDR_REGS to x16 and x17.
16688 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
16689
16690 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16691
16692 * config/aarch64/aarch64-option-extensions.def: Define
16693 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
16694 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
16695 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
16696 (AARCH64_FL_PREDRES): New.
16697 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
16698 AARCH64_FL_PREDRES by default.
16699 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
16700
16701 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16702
16703 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
16704 ARMv8.5-A.
16705 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
16706 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
16707 * doc/invoke.texi: Document ARMv8.5-A.
16708
16709 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16710
16711 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
16712 (xorsign<mode>3): Likewise.
16713
16714 2019-01-09 Jelinek <jakub@redhat.com>
16715
16716 PR middle-end/88758
16717 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
16718 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
16719
16720 PR rtl-optimization/88331
16721 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
16722 not currently_expanding_to_rtl.
16723
16724 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16725
16726 * doc/invoke.texi (-Os): Remove trailing spaces.
16727 (-finline-functions): Remove reference to -O2.
16728
16729 2019-01-08 Jakub Jelinek <jakub@redhat.com>
16730
16731 PR rtl-optimization/79593
16732 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
16733
16734 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
16735 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
16736
16737 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
16738
16739 PR bootstrap/88721
16740 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
16741 to -1 on entry.
16742
16743 PR debug/88723
16744 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
16745 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
16746
16747 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
16748
16749 PR target/88717
16750 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
16751 ix86_avx_u128_mode_entry.
16752
16753 2019-01-08 Martin Liska <mliska@suse.cz>
16754
16755 PR tree-optimization/88753
16756 * tree-switch-conversion.c (switch_conversion::build_one_array):
16757 Come up with local variable constructor. Convert first to
16758 type of constructor values.
16759
16760 2019-01-08 Richard Biener <rguenther@suse.de>
16761
16762 PR tree-optimization/86554
16763 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
16764 rpo_avail): Move earlier.
16765 (visit_nary_op): When value-numbering to expressions
16766 with different overflow behavior make sure there's an
16767 available expression on the path.
16768
16769 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
16770
16771 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
16772 aarch64_parse_branch_protection,
16773 struct aarch64_branch_protect_type,
16774 aarch64_handle_no_branch_protection,
16775 aarch64_handle_standard_branch_protection,
16776 aarch64_validate_mbranch_protection,
16777 aarch64_handle_pac_ret_protection,
16778 aarch64_handle_attr_branch_protection,
16779 accepted_branch_protection_string,
16780 aarch64_pac_ret_subtypes,
16781 aarch64_branch_protect_types,
16782 aarch64_handle_pac_ret_leaf): Define.
16783 (aarch64_override_options_after_change_1, aarch64_override_options):
16784 Add check for accepted_branch_protection_string.
16785 (aarch64_option_save): Save accepted_branch_protection_string.
16786 (aarch64_option_restore): Save accepted_branch_protection_string.
16787 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
16788 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
16789 msign-return-address.
16790 * doc/invoke.texi: Add mbranch-protection.
16791
16792 2019-01-08 Alan Modra <amodra@gmail.com>
16793
16794 PR target/88614
16795 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
16796 Delete "unknownp" parameter. Adjust callers. Handle
16797 CONST_INT, PLUS, MINUS, and MULT.
16798 (attr_value_aligned): Renamed from or_attr_value.
16799 (min_attr_value): Return INT_MIN for unhandled rtl case..
16800 (min_fn): ..and translate to INT_MAX here.
16801 (write_length_unit_log): Modify to cope without "unknown".
16802 (write_attr_value): Handle IF_THEN_ELSE.
16803
16804 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16805
16806 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
16807 optimization for masked stores.
16808
16809 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16810
16811 PR middle-end/88567
16812 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
16813 output vector directly to duplicate_and_interleave instead of
16814 going through a temporary. Postpone insertion of ctor_seq to
16815 the end of the loop.
16816
16817 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
16818
16819 PR target/86891
16820 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
16821 unsigned_p. Handle signed and unsigned overflow correction as
16822 required.
16823 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
16824 prototype.
16825 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
16826 for operand 2.
16827 (add<mode>3_compareV_imm): Make this callable for expanding.
16828 (subv<GPI:mode>4): Use register_operand for operand 1. Use
16829 aarch64_plus_operand for operand 2.
16830 (subv<GPI:mode>_insn): New insn pattern.
16831 (subv<GPI:mode>_imm): Likewise.
16832 (negv<GPI:mode>3): New expand pattern.
16833 (negv<GPI:mode>_insn): New insn pattern.
16834 (negv<GPI:mode>_cmp_only): Likewise.
16835 (cmpv<GPI:mode>_insn): Likewise.
16836 (subvti4): Use register_operand for operand 1. Update call to
16837 aarch64_expand_subvti.
16838 (usubvti4): Likewise.
16839 (negvti3): New expand pattern.
16840 (negdi_carryout): New insn pattern.
16841 (negvdi_carryinV): New insn pattern.
16842 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
16843 version the named version.
16844 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
16845 operands.
16846 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
16847 patterns.
16848 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
16849 patterns.
16850 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
16851 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
16852 (sub<mode>3_carryinCV): Delete.
16853 (sub<GPI:mode>3_carryinV): New expand pattern.
16854 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
16855
16856 2019-01-07 Richard Biener <rguenther@suse.de>
16857
16858 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
16859 of tree_operand_hash.
16860
16861 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16862
16863 PR tree-optimization/88598
16864 * tree.h (single_nonzero_element): Declare.
16865 * tree.c (single_nonzero_element): New function.
16866 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
16867 if I is the only nonzero element of CST.
16868
16869 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16870
16871 PR tree-optimization/88598
16872 * tree.h (initializer_each_zero_or_onep): Declare.
16873 * tree.c (initializer_each_zero_or_onep): New function.
16874 (signed_or_unsigned_type_for): Handle float types too.
16875 (unsigned_type_for, signed_type_for): Update comments accordingly.
16876 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
16877 x & { 0 or -1, 0 or -1, ... }.
16878
16879 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
16880
16881 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
16882 with x86_64-pc-linux-gnu.
16883
16884 2019-01-07 Tom de Vries <tdevries@suse.de>
16885
16886 PR target/85486
16887 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
16888 function.
16889 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
16890 routines.
16891
16892 2019-01-07 Jakub Jelinek <jakub@redhat.com>
16893
16894 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
16895 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
16896 TARGET_AVX512F as condition.
16897
16898 PR debug/88723
16899 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
16900 const_not_ok_for_debug_p target hook.
16901 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
16902 on UNSPEC and subexpressions thereof if all subexpressions of the
16903 UNSPEC are CONSTANT_P.
16904
16905 PR tree-optimization/88676
16906 * tree-ssa-phiopt.c (two_value_replacement): New function.
16907 (tree_ssa_phiopt_worker): Call it.
16908
16909 PR sanitizer/88619
16910 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
16911 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
16912
16913 PR c++/85052
16914 * tree-vect-generic.c: Include insn-config.h and recog.h.
16915 (expand_vector_piecewise): Add defaulted ret_type argument,
16916 if non-NULL, use that in preference to type for the result type.
16917 (expand_vector_parallel): Formatting fix.
16918 (do_vec_conversion, do_vec_narrowing_conversion,
16919 expand_vector_conversion): New functions.
16920 (expand_vector_operations_1): Call expand_vector_conversion
16921 for VEC_CONVERT ifn calls.
16922 * internal-fn.def (VEC_CONVERT): New internal function.
16923 * internal-fn.c (expand_VEC_CONVERT): New function.
16924 * fold-const-call.c (fold_const_vec_convert): New function.
16925 (fold_const_call): Use it for CFN_VEC_CONVERT.
16926 * doc/extend.texi (__builtin_convertvector): Document.
16927
16928 2019-01-07 Tom de Vries <tdevries@suse.de>
16929
16930 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
16931 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
16932 vector_red_partition, vector_red_sym): New global variables.
16933 (nvptx_option_override): Initialize vector_red_sym.
16934 (nvptx_declare_function_name): Restore red_partition register.
16935 (nvptx_file_end): Emit code to declare the vector reduction variables.
16936 (nvptx_output_red_partition): New function.
16937 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
16938 large vector reductions.
16939 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
16940 (nvptx_init_builtins): Add VECTOR_ADDR.
16941 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
16942 Handle nvptx_expand_shared_addr.
16943 (nvptx_get_shared_red_addr): Add vector argument and handle large
16944 vectors.
16945 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
16946 large vectors.
16947 (nvptx_goacc_reduction_init): Likewise.
16948 (nvptx_goacc_reduction_fini): Likewise.
16949 (nvptx_goacc_reduction_teardown): Likewise.
16950 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
16951 init,fini,teardown}.
16952 (nvptx_init_axis_predicate): Initialize vector_red_partition.
16953 (nvptx_set_current_function): Init vector_red_partition.
16954 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
16955 (nvptx_red_partition): New insn.
16956 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
16957
16958 2019-01-07 Tom de Vries <tdevries@suse.de>
16959
16960 PR target/85381
16961 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
16962 empty loops.
16963
16964 2019-01-07 Tom de Vries <tdevries@suse.de>
16965
16966 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
16967 (nvptx_option_override): Init oacc_bcast_partition.
16968 (nvptx_init_oacc_workers): New function.
16969 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
16970 (nvptx_needs_shared_bcast): New function.
16971 (nvptx_find_par): Generalize to enable vectors to use shared-memory
16972 to propagate state.
16973 (nvptx_shared_propagate): Initialize vector bcast partition and
16974 synchronization state.
16975 (nvptx_single): Generalize to enable vectors to use shared-memory
16976 to propagate state.
16977 (nvptx_process_pars): Likewise.
16978 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
16979 * config/nvptx/nvptx.h (struct machine_function): Add
16980 bcast_partition and sync_bar members.
16981
16982 2019-01-07 Tom de Vries <tdevries@suse.de>
16983
16984 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
16985 (nvptx_apply_dim_limits): New function.
16986 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
16987 PTX_WARP_SIZE.
16988
16989 2019-01-07 Tom de Vries <tdevries@suse.de>
16990
16991 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
16992 as late as possible.
16993
16994 2019-01-07 Tom de Vries <tdevries@suse.de>
16995
16996 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
16997 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
16998 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
16999 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
17000 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
17001
17002 2019-01-07 Tom de Vries <tdevries@suse.de>
17003
17004 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
17005
17006 2019-01-07 Tom de Vries <tdevries@suse.de>
17007
17008 * omp-offload.c (oacc_get_min_dim): New function.
17009 * omp-offload.h (oacc_get_min_dim): Declare.
17010
17011 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
17012
17013 PR target/88521
17014 * config/i386/i386.c (function_value_ms_64): Return small sturct in
17015 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
17016
17017 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17018
17019 PR tree-opt/86020
17020 Revert:
17021 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
17022
17023 * ipa-inline.c (edge_badness): Use inlined_time instead of
17024 inline_summaries->get.
17025
17026 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17027
17028 * opts.c (enable_fdo_optimizations): Enable
17029 version-loops-for-strides, loop-interchange, unrol-and-jam
17030 and tree-loop-distribution.
17031 * invoke.texi: Document newly enabled options.
17032
17033 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17034
17035 * doc/invoke.texi (max-inline-insns-small): New parameters.
17036 * ipa-inline.c (want_early_inline_function_p): simplify.
17037 (want_inline_small_function_p): Fix pasto from previous patch;
17038 use max-inline-insns-small bound.
17039 * params.def (max-inline-insns-small): New param.
17040 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
17041 variables correctly.
17042
17043 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17044
17045 * doc/invoke.texi: Document max-inline-insns-size,
17046 uninlined-function-insns, uninlined-function-time,
17047 uninlined-thunk-insns and uninlined-thunk-time.
17048 * params.def: Add max-inline-insns-size,
17049 uninlined-function-insns, uninlined-function-time,
17050 uninlined-thunk-insns and uninlined-thunk-time.
17051 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
17052 new parameters.
17053 * ipa-inline.c (can_inline_edge_by_limits_p,
17054 want_inline_small_function_p): Use new parameters.
17055
17056 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17057
17058 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
17059
17060 2019-01-05 Jakub Jelinek <jakub@redhat.com>
17061
17062 PR middle-end/82564
17063 PR target/88620
17064 * expr.c (expand_assignment): For calls returning VLA structures
17065 if to_rtx is not a MEM, force it into a stack temporary.
17066
17067 PR debug/88635
17068 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
17069 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
17070 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
17071 subexpressions of both operands.
17072 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
17073 subrtxes are CONSTANT_P.
17074 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
17075 2018-11-09 changes.
17076
17077 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
17078
17079 * params.def (hot-bb-count-ws-permille): Set to 990.
17080
17081 2019-01-04 Martin Sebor <msebor@redhat.com>
17082
17083 PR c/88546
17084 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
17085 leaf.
17086
17087 2019-01-04 Martin Sebor <msebor@redhat.com>
17088
17089 PR c/88363
17090 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
17091
17092 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17093
17094 * gdbinit.in: Turn off pagination for the skip commands, restore
17095 it to previous state afterwards.
17096
17097 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17098
17099 PR target/88594
17100 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
17101 of GET_MODE (opN) as modes of the libcall arguments.
17102
17103 2019-01-04 Jan Beulich <jbeulich@suse.com>
17104
17105 * config/i386/sse.md
17106 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
17107 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
17108 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17109 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17110 avx512f_vmcmp<mode>3<round_saeonly_name>,
17111 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
17112 avx512f_maskcmp<mode>3,
17113 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17114 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17115 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17116 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17117 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17118 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17119 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17120 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17121 <avx512>_testm<mode>3<mask_scalar_merge_name>,
17122 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
17123 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
17124 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
17125 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
17126 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
17127 avx512cd_maskb_vec_dup<mode>,
17128 avx512cd_maskw_vec_dup<mode>,
17129 avx512dq_fpclass<mode><mask_scalar_merge_name>,
17130 avx512dq_vmfpclass<mode>,
17131 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
17132 instead of =Yk.
17133
17134 2019-01-03 Martin Sebor <msebor@redhat.com>
17135
17136 PR tree-optimization/88659
17137 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
17138
17139 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17140
17141 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
17142 unaligned vsx and avoid lxvd2x/stxvd2x.
17143 (gen_lvx_v4si_move): New function.
17144
17145 2019-01-03 Tom de Vries <tdevries@suse.de>
17146
17147 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
17148 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
17149 function.
17150 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
17151
17152 2019-01-03 Tom de Vries <tdevries@suse.de>
17153
17154 * config/nvptx/nvptx.c (struct offload_attrs): New.
17155 (populate_offload_attrs): New function. Factor mask extraction out of
17156 nvptx_reorg. Add extraction of dimensions.
17157 (nvptx_reorg): Use populate_offload_attrs.
17158
17159 2019-01-03 Tom de Vries <tdevries@suse.de>
17160
17161 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
17162 cases for oacc_min_dims_p and routine_p. Add asserts for
17163 oacc_default_dims_p and offload_region_p.
17164
17165 2019-01-03 Tom de Vries <tdevries@suse.de>
17166
17167 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
17168 factored out of ...
17169 (nvptx_goacc_validate_dims): ... here.
17170
17171 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17172
17173 PR tree-optimization/85574
17174 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
17175 structure.
17176 (struct ssa_equip_hash_traits): Declare.
17177 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
17178
17179 2019-01-03 Jakub Jelinek <jakub@redhat.com>
17180
17181 PR debug/88644
17182 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
17183 change it to qualified_type.
17184
17185 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17186
17187 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
17188 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
17189
17190 2019-01-02 Martin Sebor <msebor@redhat.com>
17191 Jeff Law <law@redhat.com>
17192
17193 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
17194 (get_range_strlen_tree): Update appropriately.
17195 (get_range_strlen)
17196 * gimple-fold.h (get_range_strlen): Drop unused last argument.
17197
17198 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
17199 rather than set_range_info.
17200 * tree-ssa-strlen.c (set_strlen_range): Extracted from
17201 maybe_set_strlen_range. Handle potentially boundary crossing
17202 cases more conservatively.
17203 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
17204 Call set_strlen_range.
17205 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
17206
17207 PR middle-end/88663
17208 * gimple-fold.c (get_range_strlen): Update prototype to no longer
17209 need the flexp argument.
17210 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
17211 from calls to get_range_strlen. Update comments. Just update
17212 VAL for an unterminated const char array and let the reset of the
17213 code handle it normally. No longer try to set *flexp. Adjust
17214 return value.
17215 (get_range_strlen): Update for the new get_range_strlen API.
17216 (get_maxval_strlen): Similarly.
17217 (gimple_fold_builtin_strlen): Handle update meaning of return value
17218 from get_range_strlen.
17219 * gimple-ssa-sprintf.c (get_string_length): Update for the new
17220 get_range_strlen API.
17221
17222 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
17223
17224 PR lto/88130
17225 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17226 false at WPA time when body was removed.
17227
17228 2019-01-02 Martin Liska <mliska@suse.cz>
17229
17230 PR tree-optimization/88650
17231 * predict.c (set_even_probabilities): Calculate probability
17232 remainer only when really used.
17233
17234 2019-01-02 Richard Biener <rguenther@suse.de>
17235
17236 PR middle-end/88651
17237 * tree-data-ref.c (analyze_subscript_affine_affine): Use
17238 widest_ints when mangling max_stmt_execution results.
17239
17240 2019-01-02 Richard Biener <rguenther@suse.de>
17241
17242 PR tree-optimization/88621
17243 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17244 bitfields when canoncalizing.
17245
17246 2019-01-02 Richard Biener <rguenther@suse.de>
17247
17248 PR target/87545
17249 * config/i386/x86-tune-costs.h (intel_cost): Adjust
17250 cost of cheap SSE instruction.
17251
17252 2019-01-02 Richard Biener <rguenther@suse.de>
17253
17254 PR ipa/85574
17255 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17256 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17257 function.
17258 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17259 set after UIDs before splitting them.
17260
17261 2019-01-01 Martin Sebor <msebor@redhat.com>
17262 Jeff Law <law@redhat.com>
17263
17264 * gimple-fold.c (get_range_strlen_tree): Record if the computed
17265 length is optimistic. If it is, then arrange to compute the
17266 conservative length as well.
17267
17268 * gimple-fold.h (get_range_strlen): Update prototype.
17269 * builtins.c (check_access): Update call to get_range_strlen to use
17270 c_strlen_data pointer. Change various variable accesses to instead
17271 pull data from the c_strlen_data structure.
17272 (check_strncat_sizes, expand_builtin_strncat): Likewise.
17273 * calls.c (maybe_warn_nonstring_arg): Likewise.
17274 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
17275 minimum length if maximum lengh is unknown.
17276 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
17277 that used c_strlen, it's no longer needed. Restructure slightly.
17278 (format_string): Set unlikely range appropriately.
17279 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
17280 formatting issues.
17281 (get_range_strlen): Accept c_strlen_data pointer for external
17282 call sites as well. Pass through to call to internal get_range_strlen.
17283 Adjust minlen, maxlen and maxbound as needed.
17284 (get_maxval_strlen): Update comments.
17285 (gimple_fold_builtin_strlen): Update call to get_range_strlen
17286 to use c_strlen_data pointer. Change variable accesses to instead
17287 use c_strlen_data data members.
17288
17289 * gimple-fold.c (get_range_strlen): Update prototype.
17290 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
17291 local variables. Use pdata to return information to caller.
17292 Update calls to get_range_strlen. Update pdata->maxbound.
17293 (get_range_strlen -- static version): Similarly.
17294 (get_range_strlen -- extern version): Update for internal
17295 get_range_strlen API change. Convert to external data format.
17296 (get_maxval_strlen): Similarly.
17297
17298 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
17299
17300 * coverage.c (get_coverage_counts): Use current_function_decl.
17301 * profile.c (read_thunk_profile): New function.
17302 (branch_prob): Add THUNK parameter.
17303 * tree-profile.c (tree_profiling): Handle thunks.
17304 * value-prof.c (init_node_map): Handle thunks.
17305 * value-prof.h (branch_prob): Upate prototype.
17306 (read_thunk_profile): Declare.
17307
17308 2019-01-01 Jakub Jelinek <jakub@redhat.com>
17309
17310 Update copyright years.
17311
17312 * gcc.c (process_command): Update copyright notice dates.
17313 * gcov-dump.c (print_version): Ditto.
17314 * gcov.c (print_version): Ditto.
17315 * gcov-tool.c (print_version): Ditto.
17316 * gengtype.c (create_file): Ditto.
17317 * doc/cpp.texi: Bump @copying's copyright year.
17318 * doc/cppinternals.texi: Ditto.
17319 * doc/gcc.texi: Ditto.
17320 * doc/gccint.texi: Ditto.
17321 * doc/gcov.texi: Ditto.
17322 * doc/install.texi: Ditto.
17323 * doc/invoke.texi: Ditto.
17324 \f
17325 Copyright (C) 2019 Free Software Foundation, Inc.
17326
17327 Copying and distribution of this file, with or without modification,
17328 are permitted in any medium without royalty provided the copyright
17329 notice and this notice are preserved.