[Arm][CMSE]Add warn_unused_return attribute to cmse functions
[gcc.git] / gcc / ChangeLog
1 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2
3 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
4 warn_unused_result attribute.
5 (cmse_check_address_range): Add warn_unused_result attribute.
6
7 2019-07-31 Richard Biener <rguenther@suse.de>
8
9 PR tree-optimization/91257
10 * tree-vrp.c (union_ranges): Unify equality and less tests
11 by using compare_values. Re-order cheap tests first.
12
13 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14
15 PR middle-end/91301
16 * gimplify.c (gimplify_omp_for): If for class iterator on
17 distribute parallel for there is no data sharing clause
18 on inner_for_stmt, look for private clause on combined
19 parallel too and if found, move it to inner_for_stmt.
20
21 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
22
23 * lra-int.h (lra_operand_data): Remove early_clobber field.
24 (lra_insn_reg): Likewise.
25 * lra.c (debug_operand_data): Update accordingly.
26 (setup_operand_alternative): Likewise.
27 (new_insn_reg): Likewise. Remove early_clobber parameter.
28 (collect_non_operand_hard_regs): Update call accordingly.
29 Don't assign to lra_insn_reg::early_clobber.
30 (add_regs_to_insn_regno_info): Remove early_clobber parameter
31 and update calls to new_insn_reg.
32 (lra_update_insn_regno_info): Update calls accordingly.
33 * lra-constraints.c (update_and_check_small_class_inputs): Take the
34 alternative number as a parameter and test whether the operand
35 is earlyclobbered in that particular alternative.
36 (process_alt_operands): Update call accordingly. Use per-alternative
37 checks for earyclobber here too.
38 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
39 against zero for IRA_UNKNOWN_ALT.
40
41 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
42
43 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
44
45 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
46
47 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
48 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
49
50 2019-07-30 Martin Liska <mliska@suse.cz>
51
52 PR ipa/89330
53 * cgraph.c (cgraph_edge::make_direct): Use
54 edge->indirect_unknown_callee as edge->resolve_speculation can
55 deallocate edge which is this pointer.
56
57 2019-07-30 Richard Biener <rguenther@suse.de>
58
59 PR tree-optimization/91257
60 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
61
62 2019-07-30 Martin Liska <mliska@suse.cz>
63
64 * doc/invoke.texi: Document new behavior.
65 * lto-wrapper.c (cpuset_popcount): New function
66 is a copy of libgomp/config/linux/proc.c.
67 (init_num_threads): Likewise.
68 (run_gcc): Automatically detect core count for -flto.
69 (jobserver_active_p): New function.
70
71 2019-07-30 Richard Biener <rguenther@suse.de>
72
73 PR tree-optimization/91257
74 * bitmap.h (bitmap_ior_into_and_free): Declare.
75 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
76 whether to add the unliked element to the freelist.
77 (bitmap_list_insert_element_after): Add defaulted param for
78 an already allocated element.
79 (bitmap_ior_into_and_free): New function.
80 * tree-ssa-structalias.c (condense_visit): Reduce the
81 ponts-to and edge bitmaps of the SCC members in a
82 logarithmic fashion rather than all to one.
83
84 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
85
86 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
87 parameter. When nonnull, make sure that the addition or subtraction
88 has the same condition.
89 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
90 for CFN_COND_MUL too.
91
92 2019-07-30 Richard Biener <rguenther@suse.de>
93
94 PR tree-optimization/91291
95 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
96 constant values.
97
98 2019-07-30 Jakub Jelinek <jakub@redhat.com>
99
100 PR middle-end/91216
101 * omp-low.c (global_nonaddressable_vars): New variable.
102 (use_pointer_for_field): For global decls, if they are non-addressable,
103 remember it in the global_nonaddressable_vars bitmap, if they are
104 addressable and in the global_nonaddressable_vars bitmap, ignore their
105 TREE_ADDRESSABLE bit.
106 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
107 vars in global_nonaddressable_vars bitmap.
108 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
109
110 PR target/91150
111 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
112 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
113 comparison to unsigned HOST_WIDE_INT before shifting it left.
114
115 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
116
117 * config/i386/i386.md (movstrict<mode>): Use register_operand
118 predicate for operand 0. Add expander condition. Assert that
119 operand 0 is a SUBREG RTX.
120 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
121 Update operand constraints and insn condition.
122 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
123 (zero_extendqihi2_and): Do not call gen_movstrictqi.
124 (*setcc_qi_slp): Use register_operand predicate for operand 0.
125 Update operand 0 constraints.
126 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
127
128 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
129
130 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
131 when -m{code,data}-region are used without -mlarge.
132 * config/msp430/msp430.c (msp430_option_override): Error when a
133 non-default code or data region is used without -mlarge.
134 (msp430_section_attr): Emit a warning and do not add upper/lower/either
135 attributes when they are used without -mlarge.
136
137 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
138
139 PR target/70320
140 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
141
142 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
143
144 PR middle-end/91242
145 * wide-int.h (generic_wide_int::sext_elt): New function.
146 * inchash.h (hash::add_wide_int): Use it instead of elt.
147
148 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
149
150 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
151 CODE_FOR_arm_##.
152 * config/arm/arm.md (<crc_variant>): Rename to...
153 (arm_<crc_variant>): ... This.
154 (<cdp>): Rename to...
155 (arm_<cdp>): ... This.
156 (<ldc>): Rename to...
157 (arm_<ldc>): ... This.
158 (<stc>): Rename to...
159 (arm_<stc>): ... This.
160 (<mcr>): Rename to...
161 (arm_<mcr>): ... This.
162 (<mrc>): Rename to...
163 (arm_<mrc>): ... This.
164 (<mcrr>): Rename to...
165 (arm_<mcrr>): ... This.
166 (<mrrc>): Rename to...
167 (arm_<mrrc>): ... This.
168
169 2019-07-29 Richard Biener <rguenther@suse.de>
170
171 PR tree-optimization/91257
172 * tree-ssa-sccvn.h (struct vn_avail): New.
173 (struct vn_ssa_aux): Add avail member.
174 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
175 member, add m_avail_freelist one.
176 (rpo_elim::~rpo_elim): Remove.
177 (rpo_elim::eliminate_avail): Adjust to new avail tracking
178 data structure.
179 (rpo_elim::eliminate_push_avail): Likewise.
180 (do_unwind): Likewise.
181 (do_rpo_vn): Likewise.
182
183 2019-07-29 Richard Biener <rguenther@suse.de>
184
185 PR tree-optimization/91257
186 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
187 most cases, instead call compare_values which handles the
188 symbolic ranges we handle specially.
189 (compare_values_warnv): Do not call operand_less_p but open-code
190 the effective fold calls. Avoid converting so much.
191
192 2019-07-29 Martin Liska <mliska@suse.cz>
193
194 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
195 remove LHS of operator new call. It's handled latter.
196
197 2019-07-29 Richard Biener <rguenther@suse.de>
198
199 PR tree-optimization/91267
200 * vr-values.c (vr_values::update_value_range): Add early return
201 for effectively VARYING lattice entry.
202
203 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
204
205 PR debug/86638
206 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
207 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
208 necessary if keep_all_vdefs_p is true.
209 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
210 that keep_all_vdefs_p is false.
211 (mark_all_reaching_defs_necessary): Likewise.
212 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
213
214 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
215
216 * common.opt (Og): Change the initial value of flag_dse to 0.
217 * opts.c (default_options_table): Move OPT_ftree_dse from
218 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
219 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
220 entry before the OPT_ftree_sra entry.
221 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
222 of flags disabled by Og.
223
224 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
225
226 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
227 variables for -Og.
228
229 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
230
231 * doc/sourcebuild.texi (check-function-bodies): Document.
232
233 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
234
235 * simplify-rtx.c (simplify_const_unary_operation): Fold a
236 VEC_DUPLICATE of a fixed-length vector even if the result
237 is variable-length. Likewise fold a duplicate of a
238 variable-length vector if the variable-length vector is
239 itself a duplicate of a fixed-length sequence.
240 (test_vector_ops_duplicate): Test more cases.
241
242 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
243
244 * vector-builder.h (vector_builder): Add a shape template parameter.
245 (vector_builder::new_unary_operation): New function, generalizing
246 the old tree_vector_builder function.
247 (vector_builder::new_binary_operation): Likewise.
248 (vector_builder::binary_encoded_nelts): Likewise.
249 * int-vector-builder.h (int_vector_builder): Update template
250 parameters to vector_builder.
251 (int_vector_builder::shape_nelts): New function.
252 * rtx-vector-builder.h (rtx_vector_builder): Update template
253 parameters to vector_builder.
254 (rtx_vector_builder::shape_nelts): New function.
255 (rtx_vector_builder::nelts_of): Likewise.
256 (rtx_vector_builder::npatterns_of): Likewise.
257 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
258 * tree-vector-builder.h (tree_vector_builder): Update template
259 parameters to vector_builder.
260 (tree_vector_builder::shape_nelts): New function.
261 (tree_vector_builder::nelts_of): Likewise.
262 (tree_vector_builder::npatterns_of): Likewise.
263 (tree_vector_builder::nelts_per_pattern_of): Likewise.
264 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
265 (tree_vector_builder::new_binary_operation): Delete.
266 (tree_vector_builder::binary_encoded_nelts): Likewise.
267 * simplify-rtx.c: Include rtx-vector-builder.h.
268 (distributes_over_addition_p): New function.
269 (simplify_const_unary_operation)
270 (simplify_const_binary_operation): Generalize handling of vector
271 constants to include variable-length vectors.
272 (test_vector_ops_series): Add more tests.
273
274 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
275
276 PR lto/91222
277 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
278 than INDENTIFIER_POINTER.
279
280 2019-07-28 Martin Liska <mliska@suse.cz>
281
282 PR ipa/89330
283 * cgraph.c (symbol_table::create_edge): Always allocate
284 a cgraph_edge.
285 (symbol_table::free_edge): Store summary_id to
286 edge_released_summary_ids if != -1;
287 * cgraph.h (NEXT_FREE_NODE): Remove.
288 (SET_NEXT_FREE_NODE): Likewise.
289 (NEXT_FREE_EDGE): Likewise.
290 (symbol_table::release_symbol): Store summary_id to
291 cgraph_released_summary_ids if != -1;
292 (symbol_table::allocate_cgraph_symbol): Always allocate
293 a cgraph_node.
294
295 2019-07-28 Alan Modra <amodra@gmail.com>
296
297 * gcc/config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
298 gen_sibcall.
299
300 2019-07-28 Alan Modra <amodra@gmail.com>
301
302 PR target/91135
303 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
304 define.
305 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
306 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
307 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
308
309 2019-07-28 Alan Modra <amodra@gmail.com>
310
311 PR target/91050
312 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
313 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
314 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
315 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
316 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
317 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
318 in asm_default spec.
319 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
320 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
321
322 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
323
324 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
325
326 2019-07-26 Tamar Christina <tamar.christina@arm.com>
327
328 PR target/89517
329 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
330 * config/aarch64/aarch64-option-extensions.def: Add new comments
331 and restore easier to read options.
332
333 2019-07-26 Tamar Christina <tamar.christina@arm.com>
334
335 * convert.c (convert_to_real_1): Move part of conversion code...
336 * match.pd: ...To here.
337
338 2019-07-26 Martin Jambor <mjambor@suse.cz>
339
340 PR ipa/89330
341 * ipa-inline-transform.c (check_speculations_1): New function.
342 (push_all_edges_in_set_to_vec): Likewise.
343 (check_speculations): Use check_speculations_1, new parameter
344 new_edges.
345 (inline_call): Pass new_edges to check_speculations.
346 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
347 NULL.
348 (speculation_useful_p): Early return true if edge is inlined, remove
349 later checks for inline_failed.
350
351 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
352
353 PR rtl-optimization/91223
354 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
355 matching with INOUT operand.
356
357 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
358
359 * stmt.c (expand_case): Try to narrow the index type if it's larger
360 than a word. Tidy up.
361
362 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
363
364 * cif-code.def (NEVER_CALL): New code.
365 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
366 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
367
368 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
369
370 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
371 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
372
373 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
374
375 * ipa-devirt.c (add_type_duplicate): Fix return value.
376
377 2019-07-25 Richard Biener <rguenther@suse.de>
378
379 * tree-vrp.c (extract_range_from_multiplicative_op): Add
380 type parameter and use it instead of guessing expression
381 type from the first operand.
382 (extract_range_from_binary_expr): Pass expr_type down.
383
384 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
385
386 * config/arm/arm.md (SATrev): Change to code attribute.
387 (*satsi_<SAT:code>): Adjust for the above.
388 (*satsi_<SAT:code>_shift): Likewise.
389
390 2019-07-25 Richard Biener <rguenther@suse.de>
391
392 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
393 Make value_range * temporary const.
394 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
395 Likewise.
396 (evrp_range_analyzer::record_ranges_from_): Likewise.
397 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
398 deal with having recorded a const one.
399 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
400 Return a const value_range *.
401 (evrp_range_analyzer::pop_value_range): Likewise.
402 (evrp_range_analyzer::stack): Record const value_range *s.
403 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
404 Adjust.
405 * gimple-ssa-sprintf.c (get_int_range): Likewise.
406 (format_integer): Likewise.
407 (sprintf_dom_walker::handle_gimple_call): Likewise.
408 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
409 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
410 (vrp_prop::get_value_range): Adjust.
411 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
412 modifying the lattice in-place.
413 (vrp_prop::visit_stmt): Likewise.
414 * vr-values.c (vr_values::get_lattice_entry): New private method.
415 (vr_values::get_value_range): Wrap it and return a const
416 value_range *.
417 (vr_values::set_def_to_varying): New.
418 (vr_values::set_defs_to_varying): Use it.
419 (vr_values::update_value_range): Likewise.
420 (vr_values::vrp_stmt_computes_nonzero): Adjust.
421 (values::op_with_constant_singleton_va): Likewise.
422 (vr_values::extract_range_for_var_from_co): Likewise.
423 (vr_values::extract_range_from_ssa_name): Likewise.
424 (vr_values::extract_range_from_cond_expr): Likewise.
425 (vr_values::extract_range_basic): Likewise.
426 (compare_ranges): Take const value_range *, adjust.
427 (compare_range_with_value): Likewise.
428 (vrp_valueize): Adjust.
429 (vrp_valueize_1): Likewise.
430 (vr_values::get_vr_for_comparison): Return a const value_range *.
431 (vr_values::compare_name_with_value): Adjust.
432 (vr_values::compare_names): Likewise.
433 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
434 Likewise.
435 (vr_values::vrp_evaluate_conditional): Likewise.
436 (find_case_label_ranges): Take a const value_range *.
437 (vr_values::vrp_visit_switch_stmt): Adjust.
438 (vr_values::extract_range_from_phi_node): Likewise.
439 (vr_values::simplify_div_or_mod_using_ran): Likewise.
440 (vr_values::simplify_abs_using_ranges): Likewise.
441 (test_for_singularity): Take a const value_range *.
442 (range_fits_type_p): Likewise.
443 (vr_values::simplify_cond_using_ranges_1): Adjust.
444 (vr_values::simplify_cond_using_ranges_2): Likewise.
445 (vr_values::simplify_switch_using_ranges): Likewise.
446 (vr_values::simplify_float_conversion_usi): Likewise.
447 (vr_values::two_valued_val_range_p): Likewise.
448 * vr-values.h (vr_values::get_value_range): Return a const
449 value_range *.
450 (vr_values::set_def_to_varying): New.
451 (vr_values::get_lattice_entry): New private method.
452 (vr_values::get_vr_for_comparison): Return a const value_range *.
453
454 2019-07-25 Martin Liska <mliska@suse.cz>
455 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
456
457 PR c++/23383
458 * common.opt: Add -fallocation-dce
459 * gimple.c (gimple_call_operator_delete_p): New.
460 * gimple.h (gimple_call_operator_delete_p): Likewise.
461 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
462 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
463 DECL_IS_OPERATOR_DELETE_P.
464 (mark_all_reaching_defs_necessary_1): Likewise.
465 (propagate_necessity): Likewise.
466 (eliminate_unnecessary_stmts): Handle
467 gimple_call_operator_delete_p.
468 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
469 Add packing of OPERATOR_DELETE.
470 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
471 Similarly here.
472 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
473 (DECL_SET_IS_OPERATOR_DELETE): New.
474 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
475
476 2019-07-25 Martin Liska <mliska@suse.cz>
477
478 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
479 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
480 * coverage.c (coverage_begin_function): Likewise.
481 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
482 * gimple.c (gimple_call_nonnull_result_p): Likewise.
483 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
484 (sem_item::hash_referenced_symbol_properties): Likewise.
485 * lto-streamer-out.c (hash_tree): Likewise.
486 * predict.c (expr_expected_value_1): Likewise.
487 * tree-inline.c (expand_call_inline): Likewise.
488 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
489 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
490 * tree-core.h (enum function_decl_type): New enum.
491 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
492 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
493 (set_function_decl_type): Likewise.
494 (DECL_IS_OPERATOR_NEW_P): New.
495 (DECL_SET_IS_OPERATOR_NEW): Likewise.
496 (DECL_LAMBDA_FUNCTION): Likewise.
497 (DECL_LAMBDA_FUNCTION_P): Likewise.
498 (DECL_IS_OPERATOR_NEW): Remove.
499 (DECL_SET_LAMBDA_FUNCTION): Likewise.
500
501 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
502
503 * ipa-profile.c (get_most_common_single_value): Use
504 get_nth_most_common_value.
505 * profile.c (sort_hist_value): New function.
506 (compute_value_histograms): Call sort_hist_value to sort the
507 values after loading from disk.
508 * value-prof.c (get_most_common_single_value): Rename to ...
509 get_nth_most_common_value. Add input params n, return
510 the n_th value and count.
511 (gimple_divmod_fixed_value_transform): Use
512 get_nth_most_common_value.
513 (gimple_ic_transform): Likewise.
514 (gimple_stringops_transform): Likewise.
515 * value-prof.h (get_most_common_single_value): Add input params
516 n, default to 0.
517
518 2019-07-25 Richard Biener <rguenther@suse.de>
519
520 PR tree-optimization/91236
521 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
522 size of CONSTRUCTOR write. Fix buffer size we pass to
523 native_encode_expr.
524
525 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
526
527 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
528 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
529 r273773.
530
531 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
532
533 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
534 explicitly disabled with --disable-initfini-array.
535
536 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
537
538 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
539 if-exists.
540
541 2019-07-24 Martin Sebor <msebor@redhat.com>
542
543 PR tree-optimization/91183
544 PR tree-optimization/86688
545 * builtins.c (compute_objsize): Handle MEM_REF.
546 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
547 (get_min_string_length): Remove.
548 (count_nonzero_bytes): New function.
549 (handle_char_store): Rename...
550 (handle_store): to this. Handle multibyte stores via integer types.
551 (strlen_check_and_optimize_stmt): Adjust conditional and the called
552 function name.
553
554 2019-07-24 Martin Sebor <msebor@redhat.com>
555
556 PR driver/80545
557 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
558 (diagnostic_report_diagnostic): Same.
559 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
560 (diagnostic_context::lang_mask): New data member.
561 * ipa-pure-const.c (suggest_attribute): Use
562 lang_hooks.option_lang_mask ().
563 * opts-common.c (option_enabled): Handle new argument.
564 (get_option_state): Pass an additional argument.
565 * opts.c (print_filtered_help): Print supported languages for
566 unsupported options. Adjust printing of current state.
567 * opts.h (option_enabled): Add argument.
568 * toplev.c (print_switch_values): Use lang_mask.
569 (general_init): Set global_dc->lang_mask.
570
571 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
572
573 PR bootstrap/87030
574 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
575
576 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
577
578 * cgraphunit.c (symbol_table::compile): Start and stop
579 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
580 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
581
582 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
583
584 * gimplify.c (flag_instrument_functions_exclude_p): Include
585 namespace/class information in the printable name.
586 * opts.c (add_comma_separated_to_vector): Add NUL terminator
587 to tokens entered into the vector.
588
589 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
590
591 * tree-nested.c (build_simple_mem_ref_notrap): New function.
592 (get_static_chain): Call it instead of build_simple_mem_ref.
593 (get_frame_field): Likewise.
594 (get_nonlocal_debug_decl): Likewise.
595 (convert_nonlocal_reference_op): Likewise.
596
597 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
598
599 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
600 declaration.
601 (arc_compute_frame_size): Millicode is disabled when compiling
602 ISR.
603 (arc_return_address_register): Likewise.
604 (arc_compute_function_type): Likewise.
605 (arc_compute_frame_size): Likewise.
606 (secondary_reload_info): Likewise.
607 (arc_get_unalign): Likewise.
608 (arc_can_use_return_insn): Declare.
609 * config/arc/arc.c (AUX_LP_START): Define
610 (AUX_LP_END): Likewise.
611 (arc_frame_info): Update gmask member to 64-bit datum.
612 (GMASK_LEN): Update.
613 (arc_compute_function_type): Make it static, move it forward.
614 (arc_must_save_register): Update, consider the extra regs.
615 (arc_compute_millicode_save_restore_regs): Update to use the 64
616 bit gmask.
617 (arc_compute_frame_size): Likewise.
618 (arc_enter_leave_p): Likewise.
619 (arc_save_callee_saves): Likewise.
620 (arc_restore_callee_saves): Likewise.
621 (arc_save_callee_enter): Likewise.
622 (arc_restore_callee_leave): Likewise.
623 (arc_save_callee_milli): Likewise.
624 (arc_restore_callee_milli): Likewise.
625 (arc_expand_prologue): Add new interrupt handling.
626 (arc_return_address_register): Make it static, move it forward.
627 (arc_expand_epilogue): Add new interrupt handling.
628 (arc_get_unalign): Delete.
629 (arc_epilogue_uses): Make sure we do not remove the extra
630 saved/restored registers when interrupt.
631 (arc_can_use_return_insn): New function.
632 (push_reg): Likewise.
633 (pop_reg): Likewise.
634 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
635 procedures.
636 (arc_restore_callee_saves): Likewise, but restoring.
637 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
638 (R33_REG): Likewise.
639 (R34_REG): Likewise.
640 (R35_REG): Likewise.
641 (R36_REG): Likewise.
642 (R37_REG): Likewise.
643 (R38_REG): Likewise.
644 (R39_REG): Likewise.
645 (R45_REG): Likewise.
646 (R46_REG): Likewise.
647 (R47_REG): Likewise.
648 (R48_REG): Likewise.
649 (R49_REG): Likewise.
650 (R50_REG): Likewise.
651 (R51_REG): Likewise.
652 (R52_REG): Likewise.
653 (R53_REG): Likewise.
654 (R54_REG): Likewise.
655 (R55_REG): Likewise.
656 (R56_REG): Likewise.
657 (R58_REG): Likewise.
658 (type): Add rtie attribute.
659 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
660 (movsi_insn): Accept moves to lp_count.
661 (rtie): Update pattern.
662 (simple_return): Simplify it, don't use this pattern as a return
663 from an interrupt.
664 (arc600_rtie): New pattern.
665 (p_return_i): Clean up.
666 (return): Likewise.
667 * config/arc/builtins.def (rtie): Only available for non ARC6xx
668 family CPUs.
669 * config/arc/predicates.md (move_src_operand): Consider lp_count
670 as a register.
671
672 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
673
674 * config/s390/predicates.md (addv_const_operand): New predicate.
675 * config/s390/s390-modes.def (CCO): New condition code mode.
676 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
677 (s390_branch_condition_mask): Likewise.
678 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
679 ("mulv<mode>4"): New expanders.
680 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
681 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
682 pattern definitions.
683
684 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
685
686 PR middle-end/91166
687 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
688 (define_predicates): Add entry for uniform_vector_p.
689 (vec_same_elem_p): New match pattern.
690
691 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
692
693 PR bootstrap/87030
694 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
695 * config/i386/darwin32-biarch.h .. to here.
696 * config/i386/darwin64-biarch.h: Adjust comments.
697 * config/rs6000/darwin32-biarch.h: Likewise.
698 * config/rs6000/darwin64-biarch.h: Likewise.
699 * config.gcc: Missed commit from r273746
700 (*-*-darwin*): Don't include CPU t-darwin here.
701 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
702 an error message if i686-darwin configuration is attempted for
703 Darwin >= 18.
704
705 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
706
707 PR bootstrap/87030
708 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
709 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
710 an error message if i686-darwin configuration is attempted for
711 Darwin >= 18.
712 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
713 (powerpc-*-darwin*): Use biarch files where needed.
714 (powerpc64-*-darwin*): Likewise.
715 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
716 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
717 arch case.
718 * config/i386/darwin32-biarch.h: New.
719 * config/i386/darwin64.h: Rename.
720 * gcc/config/i386/darwin64-biarch.h: To this.
721 * config/i386/t-darwin: Rename.
722 * gcc/config/i386/t-darwin32-biarch: To this.
723 * config/i386/t-darwin64: Rename.
724 * gcc/config/i386/t-darwin64-biarch: To this.
725 * config/rs6000/darwin32-biarch.h: New.
726 * config/rs6000/darwin64.h: Rename.
727 * config/rs6000/darwin64-biarch.h: To this.
728 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
729 arch case.
730 * config/rs6000/t-darwin8: Rename.
731 * config/rs6000/t-darwin32-biarch: To this.
732 * config/rs6000/t-darwin64 Rename.
733 * config/rs6000/t-darwin64-biarch: To this.
734
735 2019-07-23 Martin Sebor <msebor@redhat.com>
736
737 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
738
739 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
740
741 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
742 (rh): New alias for it.
743
744 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
745
746 * gdbhooks.py: Pass replace=True to
747 gdb.printing.register_pretty_printer.
748
749 2019-07-23 Richard Biener <rguenther@suse.de>
750
751 PR debug/91231
752 * lto-streamer-in.c (input_function): Drop inline-entry markers
753 that ended up with an unknown location block.
754
755 2019-07-23 Richard Biener <rguenther@suse.de>
756
757 PR tree-optimization/83518
758 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
759 init from a constant even when partial defs are already recorded.
760
761 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
762
763 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
764 * config/i386/znver1.md: Enable patterns for znver2 and add store
765 variants which use extra AGU unit.
766
767 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
768
769 * config/i386/i386-options.c (ix86_option_override_internal): Default
770 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
771 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
772 for ZNVER2.
773
774 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
775
776 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
777 (znver2_costs): Update 256 bit SSE costs and multiplication.
778
779 2019-07-23 Jan Beulich <jbeulich@suse.com>
780
781 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
782 Require only AVX512F.
783 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
784 alternative expanding to vpternlog.
785
786 2019-07-23 Martin Liska <mliska@suse.cz>
787
788 * dwarf2out.c (gen_producer_string): Canonize -flto=N
789 to -flto in dwarf producer string.
790
791 2019-07-23 Richard Biener <rguenther@suse.de>
792
793 * tree-cfg.c (label_for_bb): Remove global var.
794 (main_block_label): Take label_for_bb as argument.
795 (cleanup_dead_labels_eh): Likewise, adjust.
796 (cleanup_dead_labels): Adjust.
797
798 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
799
800 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
801 Configurations): Add documentation for __builtin_mtfsf.
802
803 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
804
805 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
806 * config/riscv/riscv.c (riscv_constant_alignment): Use
807 riscv_align_data_type.
808 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
809 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
810 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
811 * config/riscv/riscv.opt (malign-data): New.
812 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
813
814 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
815
816 * cgraph.c (dump_graphviz): New function.
817 * cgraph.h (dump_graphviz): New function.
818 * symtab.c (dump_graphviz): New function.
819
820 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
821
822 * config/aarch64/aarch64-simd.md
823 (*aarch64_simd_sra<mode>): New.
824 * config/aarch64/iterators.md
825 (SHIFTRT): New iterator.
826 (sra_op): New attribute.
827
828 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
829
830 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
831 callee-saved regs R4->R10 in an interrupt function that calls another
832 function.
833
834 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
835
836 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
837 (_mm_blendv_epi8): New.
838
839 2019-07-22 Richard Biener <rguenther@suse.de>
840
841 PR tree-optimization/91221
842 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
843 restrict partial-def handling of empty constructors and
844 memset to refs with known offset.
845
846 2019-07-22 Jan Beulich <jbeulich@suse.com>
847
848 * config/i386/sse.md (ternlogsuffix): New.
849 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
850 AVX512F is in use.
851 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
852
853 2019-07-22 Martin Liska <mliska@suse.cz>
854
855 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
856 comment.
857 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
858
859 2019-07-22 Martin Liska <mliska@suse.cz>
860
861 * lto-section-in.c (lto_get_section_data):
862 Use new function get_compression.
863 * lto-streamer-out.c (produce_lto_section): Use
864 set_compression to encode compression algorithm.
865 * lto-streamer.h (struct lto_section): Do not
866 use bitfields in the format.
867
868 2019-07-22 Martin Liska <mliska@suse.cz>
869
870 PR driver/91172
871 * opts-common.c (decode_cmdline_option): Decode
872 argument of -Werror and check it for a wrong language.
873 * opts-global.c (complain_wrong_lang): Remove such case.
874
875 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
876
877 * config/arc/arc.c (prepare_move_operands): Always use an
878 intermediate register when storing a TLS symbols.
879
880 2019-07-22 Stafford Horne <shorne@gmail.com>
881
882 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
883 force_reg.
884
885 2019-07-22 Stafford Horne <shorne@gmail.com>
886
887 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
888 and munordered-float validations.
889 * config/or1k/constraints.md (d): New register constraint.
890 * config/or1k/predicates.md (fp_comparison_operator): New.
891 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
892 operands.
893 (or1k_expand_compare): Normalize unordered comparisons.
894 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
895 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
896 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
897 * config/or1k/or1k.md (type): Add fpu.
898 (fpu): New instruction reservation.
899 (F, f, fr, fi, FI, FOP, fop): New.
900 (<fop><F:mode>3): New ALU instruction definition.
901 (float<fi><F:mode>2): New conversion instruction definition.
902 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
903 (fpcmpcc): New code iterator.
904 (*sf_fp_insn): New instruction definition.
905 (cstore<F:mode>4): New expand definition.
906 (cbranch<F:mode>4): New expand definition.
907 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
908 munordered-float): New options.
909 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
910 munordered-float.
911
912 2019-07-22 Stafford Horne <shorne@gmail.com>
913
914 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
915 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
916 documenation to be more clear.
917 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
918 more clear.
919 * config/or1k/or1k.opt (mrori): New option.
920 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
921 msfimm, mshftimm): Rewrite documentation to be more clear.
922 * config/or1k/or1k.md (insn_support): Add ror and rori.
923 (enabled): Add conditions for ror and rori.
924 (rotrsi3): Replace condition for shftimm with ror and rori.
925
926 2019-07-22 Stafford Horne <shorne@gmail.com>
927
928 PR target/90363
929 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
930 (extend<mode>si2): Update predicate.
931 * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
932 (reg_or_mem_operand): New.
933
934 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
935
936 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
937 * config/rs6000/rs6000-call.c: ... to here.
938
939 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
940
941 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
942 memory.
943
944 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
945
946 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
947
948 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
949
950 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
951
952 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
953
954 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
955 (any_memory_operand): New predicate.
956 (reg_or_mem_operand): Use it.
957
958 2019-07-20 Jakub Jelinek <jakub@redhat.com>
959
960 PR target/91204
961 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
962
963 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
964
965 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
966 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
967
968 2019-07-20 Jakub Jelinek <jakub@redhat.com>
969
970 * tree.def (OMP_LOOP): New tree code.
971 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
972 (enum omp_clause_bind_kind): New enum.
973 (struct tree_omp_clause): Add subcode.bind_kind.
974 * tree.h (OMP_LOOP_CHECK): Rename to ...
975 (OMP_LOOPING_CHECK): ... this.
976 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
977 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
978 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
979 (OMP_CLAUSE_BIND_KIND): Define.
980 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
981 bind clause entries.
982 (walk_tree_1): Handle OMP_CLAUSE_BIND.
983 * tree-pretty-print.c (dump_omp_clause): Likewise.
984 (dump_generic_node): Handle OMP_LOOP.
985 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
986 (in_omp_construct): New variable.
987 (is_gimple_stmt): Handle OMP_LOOP.
988 (gimplify_scan_omp_clauses): For lastprivate don't set
989 check_non_private if code == OMP_LOOP. For reduction clause
990 on OMP_LOOP combined with parallel or teams propagate as shared
991 on the combined construct. Handle OMP_CLAUSE_BIND.
992 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
993 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
994 for constructs from a loop construct to gimplify_scan_omp_clauses.
995 Don't predetermine iterator linear on OMP_SIMD from loop construct.
996 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
997 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
998 to match the implicit ORT_TARGET construct around whole body.
999 Temporarily clear in_omp_construct when processing body.
1000 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
1001 etc. temporarily set in_omp_construct when processing body.
1002 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
1003 * omp-low.c (struct omp_context): Add loop_p.
1004 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
1005 in that the original var might be private.
1006 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
1007 (check_omp_nesting_restrictions): Adjust nesting restrictions for
1008 addition of loop construct.
1009 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
1010
1011 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
1012 lastprivate non-addressable iterator of a collapse(1) simd.
1013
1014 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
1015
1016 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
1017 as in rs6000.c.
1018
1019 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
1020
1021 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
1022 refer to default conditions. Warn for the 'y' spec which is ignored
1023 by current linkers.
1024
1025 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
1026
1027 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
1028 cpu_supports_info, builtin_hash_struct, builtin_hasher,
1029 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1030 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1031 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1032 init_cumulative_args, rs6000_promote_function_mode,
1033 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1034 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1035 rs6000_function_arg_boundary, rs6000_parm_offset,
1036 rs6000_parm_start, rs6000_arg_size,
1037 rs6000_darwin64_record_arg_advance_flush,
1038 rs6000_darwin64_record_arg_advance_recurse,
1039 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1040 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1041 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1042 rs6000_mixed_function_arg, rs6000_psave_function_arg,
1043 rs6000_finish_function_arg, rs6000_function_arg,
1044 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1045 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1046 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1047 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1048 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1049 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1050 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1051 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1052 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1053 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1054 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1055 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1056 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1057 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1058 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1059 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1060 get_element_number, altivec_expand_vec_set_builtin,
1061 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1062 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1063 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1064 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1065 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1066 rs6000_expand_builtin, rs6000_vector_type,
1067 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1068 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1069 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
1070 to rs6000-call.c.
1071 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
1072 cpu_supports_info, builtin_hash_struct, builtin_hasher,
1073 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1074 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1075 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1076 init_cumulative_args, rs6000_promote_function_mode,
1077 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1078 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1079 rs6000_function_arg_boundary, rs6000_parm_offset,
1080 rs6000_parm_start, rs6000_arg_size,
1081 rs6000_darwin64_record_arg_advance_flush,
1082 rs6000_darwin64_record_arg_advance_recurse,
1083 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1084 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1085 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1086 rs6000_mixed_function_arg, rs6000_psave_function_arg,
1087 rs6000_finish_function_arg, rs6000_function_arg,
1088 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1089 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1090 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1091 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1092 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1093 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1094 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1095 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1096 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1097 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1098 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1099 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1100 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1101 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1102 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1103 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1104 get_element_number, altivec_expand_vec_set_builtin,
1105 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1106 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1107 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1108 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1109 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1110 rs6000_expand_builtin, rs6000_vector_type,
1111 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1112 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1113 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
1114 to here from rs6000.c.
1115 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
1116 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
1117 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
1118 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
1119 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
1120 rs6000_return_in_memory, rs6000_return_in_msb,
1121 rs6000_pass_by_reference, setup_incoming_varargs,
1122 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
1123 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
1124 rs6000_function_arg_padding, rs6000_function_arg,
1125 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
1126 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
1127 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
1128 rs6000_passes_long_double, rs6000_passes_vector,
1129 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
1130 altivec_builtin_mask_for_load) Add declarations.
1131 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
1132 * config/config.gcc: Add new source file rs6000-call.c to garbage
1133 collector and extra_objs.
1134
1135 2019-07-19 Jeff Law <law@redhat.com>
1136
1137 PR tree-optimization/86061
1138 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
1139 strncpy. Drop some trivial dead code.
1140 (maybe_trim_memstar_call): Handle strncpy.
1141
1142 2019-07-19 Richard Biener <rguenther@suse.de>
1143
1144 PR tree-optimization/91211
1145 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
1146 memset encoding size.
1147
1148 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
1149
1150 PR target/91204
1151 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
1152
1153 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
1154
1155 PR ipa/91194
1156 * ipa-inline.c (recursive_inlining): Fix limits check.
1157
1158 2019-07-19 Richard Biener <rguenther@suse.de>
1159
1160 PR tree-optimization/91200
1161 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
1162 no PHI nodes in middle-bb.
1163
1164 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
1165
1166 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
1167 to +sve-bitperm.
1168 * config/aarch64/aarch64-option-extensions.def: Likewise.
1169
1170 2019-07-19 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR middle-end/91190
1173 * function.c (insert_temp_slot_address): Store into the hash table
1174 a copy of address to avoid RTL sharing issues.
1175
1176 2019-07-19 Richard Biener <rguenther@suse.de>
1177
1178 PR tree-optimization/91207
1179 Revert
1180 2019-07-17 Richard Biener <rguenther@suse.de>
1181
1182 PR tree-optimization/91178
1183 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1184 loads with a gap larger than the vector size always use
1185 VMAT_STRIDED_SLP.
1186 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1187 avoid loading vectors that are only contained in the gap
1188 and thus are not needed.
1189
1190 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
1191
1192 * config/i386/i386.md (*addqi_2_slp): Remove.
1193 (*<code>qi_2_slp): Ditto.
1194
1195 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
1196
1197 * config/rs6000/predicates.md (prefixed_mem_operand): Call
1198 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
1199 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
1200 Rename function from rs6000_prefixed_address.
1201 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1202 TARGET_HAS_TOC.
1203 (TARGET_TOC): Likewise.
1204 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1205 rs6000.h.
1206 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1207 TARGET_HAS_TOC.
1208 (TARGET_TOC): Likewise.
1209 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1210 rs6000.h.
1211 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1212 TARGET_HAS_TOC.
1213 (TARGET_TOC): Likewise.
1214 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1215 check to require -mcmodel=medium for pc-relative addressing.
1216 (create_TOC_reference): Add assertion for TARGET_TOC.
1217 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
1218 TARGET_NO_TOC.
1219 (rs6000_emit_move): Likewise.
1220 (TOC_alias_set): Rename TOC alias set static variable from 'set'
1221 to 'TOC_alias_set'.
1222 (get_TOC_alias_set): Likewise.
1223 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
1224 TARGET_NO_TOC.
1225 (rs6000_can_eliminate): Likewise.
1226 (rs6000_prefixed_address_mode_p): Rename function from
1227 rs6000_prefixed_address.
1228 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
1229 TARGET_HAS_TOC and not pc-relative.
1230 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
1231 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1232 TARGET_HAS_TOC.
1233 (TARGET_TOC): Likewise.
1234 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1235 rs6000.h.
1236
1237 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
1238
1239 PR target/91188
1240 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
1241 for operand 0. Do not use (match_dup) to match operand 1 with
1242 operand 0. Add check in insn constraint that either input operand
1243 matches operand 0. Use SWI12 mode iterator to also handle
1244 HImode operands.
1245 (*and<mode>_1_slp): Ditto.
1246 (*<code>qi_1_slp): Ditto.
1247 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
1248 Do not use (match_dup) to match operand 1 with operand 0. Add
1249 check in insn constraint that operand 1 matches operand 0.
1250 Use SWI12 mode iterator to also handle HImode operands.
1251 (*ashl<mode>3_1_slp): Ditto.
1252 (*<shift_insn><mode>3_1_slp): Ditto.
1253 (*<rotate_insn><mode>3_1_slp): Ditto.
1254
1255 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
1256
1257 * config/arm/arm-builtins.c
1258 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
1259 (arm_expand_unop_builtin): Likewise.
1260 * config/arm/crypto.md
1261 (crypto_sha1h): Convert from define_insn to define_expand.
1262 (crypto_<crypto_pattern>): Likewise.
1263 (crypto_sha1h_lb): New define_insn.
1264 (crypto_<crypto_pattern>_lb): Likewise.
1265
1266 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
1267
1268 PR target/90317
1269 * config/arm/arm_neon.h
1270 (vsha1h_u32): Refactor.
1271 (vsha1cq_u32): Likewise.
1272 (vsha1pq_u32): Likewise.
1273 (vsha1mq_u32): Likewise.
1274 * config/arm/crypto.md:
1275 (crypto_sha1h): Remove zero extend, correct vec select.
1276 (crypto_sha1c): Correct vec select.
1277 (crypto_sha1m): Likewise.
1278 (crypto_sha1p): Likewise.
1279
1280 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
1281
1282 * config/arm/predicates.md (arm_borrow_operation): New predicate.
1283 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
1284 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
1285 (subdi_zesidi_zesidi): Likewise.
1286 (negdi2_compare, negdi2_insn): Likewise.
1287 (negdi_extensidi): Likewise.
1288 (negdi_zero_extendsidi): Likewise.
1289 (arm_cmpdi_insn): Likewise.
1290 (subsi3_carryin): Use arm_borrow_operation.
1291 (subsi3_carryin_const): Likewise.
1292 (subsi3_carryin_const0): Likewise.
1293 (subsi3_carryin_compare): Likewise.
1294 (subsi3_carryin_compare_const): Likewise.
1295 (subsi3_carryin_compare_const0): Likewise.
1296 (subsi3_carryin_shift): Likewise.
1297 (rsbsi3_carryin_shift): Likewise.
1298 (negsi2_carryin_compare): Likewise.
1299
1300 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
1301
1302 PR tree-optimization/91137
1303 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
1304 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
1305 Init, use and fini the above new field.
1306 (determine_base_object_1): New function.
1307 (determine_base_object): Reimplement using walk_tree.
1308
1309 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
1310
1311 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
1312 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
1313 CLEANUP_FORCE_FAST_DCE is set.
1314 * ifcvt.c (rest_of_handle_if_conversion): Pass
1315 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
1316 if-conversion succeeded.
1317
1318 2019-07-18 Richard Biener <rguenther@suse.de>
1319
1320 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
1321 branches to make code less indented.
1322
1323 2019-07-17 Alexandre Oliva <oliva@adacore.com>
1324
1325 PR middle-end/81824
1326 * attribs.c (decls_mismatched_attributes): Simplify the logic
1327 that avoids duplicates and false positives.
1328
1329 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
1330
1331 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
1332 data into data section when generating PIC code.
1333 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
1334 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
1335 generating code for SOM targets earlier than HP-UX 11. Otherwise,
1336 return 2 for SOM and 0 for other targets.
1337
1338 2019-07-17 Jeff Law <law@redhat.com>
1339
1340 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
1341 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
1342 avoid unexpected switch statement fallthru.
1343
1344 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1345
1346 * config/i386/i386.md (*add<dwi>3_doubleword):
1347 Remove redundant constraints.
1348 (*add<mode>_1): Ditto.
1349 (*addhi_1): Ditto.
1350 (*addqi_1): Ditto.
1351 (*addqi_1_slp): Ditto.
1352 (*add<mode>_2): Ditto.
1353 (*addv<mode>4): Ditto.
1354 (*sub<dwi>3_doubleword): Ditto.
1355 (*sub<mode>_1): Ditto.
1356 (*subqi_1_slp): Ditto.
1357 (*sub<mode>_2): Ditto.
1358 (*subv<mode>4): Ditto.
1359 (*sub<mode>_3): Ditto.
1360 (@add<mode>3_carry): Ditto.
1361 (@sub<mode>3_carry): Ditto.
1362 (*add<mode>3_cc_overflow_1): Ditto.
1363 (*add<mode>3_zext_cc_overflow_2): Ditto.
1364 (*anddi_1): Ditto.
1365 (*and<mode>_1): Ditto.
1366 (*andqi_1): Ditto.
1367 (*andqi_1_slp): Ditto.
1368 (*anddi_2): Ditto.
1369 (*andqi_2_maybe_si): Ditto.
1370 (*and<mode>_2): Ditto.
1371 (*andqi_2_slp): Ditto.
1372 (*<code><mode>_1): Ditto.
1373 (*<code>qi_1): Ditto.
1374 (*<code>qi_1_slp): Ditto.
1375 (*<code><mode>_2): Ditto.
1376 (*<code>qi_2_slp): Ditto.
1377
1378 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
1379
1380 * alias.c (record_component_aliases): Do not simplify pointed-to
1381 types of ODR types.
1382
1383 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1384
1385 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
1386 partial reg stall on alternative 2.
1387
1388 2019-07-17 Richard Biener <rguenther@suse.de>
1389
1390 PR tree-optimization/91178
1391 * tree-ssa.c (release_defs_bitset): Iterate from higher to
1392 lower SSA names to avoid quadratic behavior in the common case.
1393 * tree-data-ref.c (split_constant_offset): Add limit argument
1394 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1395 (split_constant_offset_1): Add limit argument and use it to
1396 limit SSA def walking. Optimize the common plus/minus case.
1397
1398 2019-07-17 Richard Biener <rguenther@suse.de>
1399
1400 PR tree-optimization/91178
1401 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1402 loads with a gap larger than the vector size always use
1403 VMAT_STRIDED_SLP.
1404 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1405 avoid loading vectors that are only contained in the gap
1406 and thus are not needed.
1407
1408 2019-07-17 Richard Biener <rguenther@suse.de>
1409
1410 PR tree-optimization/91180
1411 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
1412 computation for memset partial defs.
1413
1414 2019-07-17 Jakub Jelinek <jakub@redhat.com>
1415
1416 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
1417 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
1418 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
1419 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
1420 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
1421 * omp-grid.c (grid_process_grid_body,
1422 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
1423 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
1424 == GF_OMP_FOR_KIND_SIMD.
1425 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
1426 check_omp_nesting_restrictions, scan_omp_1_stmt,
1427 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
1428 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
1429 omp_find_scan): Likewise.
1430 * omp-expand.c (expand_omp_for): Likewise.
1431 * omp-general.c (omp_extract_for_data): Likewise.
1432
1433 PR tree-optimization/91157
1434 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
1435 a vector boolean with scalar mode.
1436 (expand_vector_condition): Handle first operand being a vector boolean
1437 with scalar mode.
1438 (expand_vector_operations_1): For comparisons, don't bail out early
1439 if the return type is vector boolean with scalar mode, but comparison
1440 operand type is not.
1441
1442 2019-07-17 Richard Biener <rguenther@suse.de>
1443
1444 PR tree-optimization/91181
1445 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
1446 IFN_LOADs as calls.
1447
1448 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
1449
1450 * config/i386/i386.md (*testdi_1): Match CCZmode for
1451 constants that might have the SImode sign bit set.
1452 (*testqi_1_maybe_si): Remove "!" constraint modifier.
1453 Use correct constraints for pentium pairing.
1454 (*test<mode>_1): Ditto.
1455
1456 2019-07-16 Jeff Law <law@redhat.com>
1457
1458 PR rtl-optimization/91173
1459 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
1460 SSA_NAME with a constant value, fold its value into the offset
1461 and clear the base before calling gen_addr_rtx.
1462
1463 2019-07-16 Jakub Jelinek <jakub@redhat.com>
1464
1465 PR rtl-optimization/91164
1466 * dse.c (rest_of_handle_dse): If dead edges have been purged,
1467 invalidate dominance info.
1468
1469 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1470
1471 * read-md.h (md_reader::record_potential_iterator_use): Add a
1472 file_location parameter.
1473 * read-rtl.c (attribute_use::loc): New field.
1474 (map_attr_string): Take a file_location parameter. Report cases
1475 in which attributes map to multiple distinct values.
1476 (apply_attribute_uses): Update call accordingly.
1477 (md_reader::handle_overloaded_name): Likewise.
1478 (md_reader::apply_iterator_to_string): Likewise. Skip empty
1479 nonnull strings.
1480 (record_attribute_use): Take a file_location parameter.
1481 Initialize attribute_use::loc.
1482 (md_reader::record_potential_iterator_use): Take a file_location
1483 parameter. Update call to record_attribute_use.
1484 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
1485 (rtx_reader::read_rtx_code): Likewise.
1486 (rtx_reader::read_rtx_operand): Likewise. Record a location
1487 for implicitly-expanded empty strings.
1488
1489 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
1492 Use file_location instead of separate fields.
1493 (md_reader::set_md_ptr_loc): Take a file_location instead of a
1494 separate filename and line number.
1495 * read-md.c (ptr_loc): As above.
1496 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
1497 (md_reader::fprint_md_ptr_loc): Likewise.
1498 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
1499 instead of a separate filename and line number.
1500 (md_reader::read_string): Update call accordingly.
1501
1502 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1503
1504 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1505 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1506 leaving the choice between SFDF and P implicit.
1507 (*mov<mode>_update2): Likewise.
1508 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1509 rather than leaving the choice betweem IBM128 and GPR implicit.
1510 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1511 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1512 QHSI implicit.
1513 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1514 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1515 * config/rs6000/vsx.md
1516 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1517 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1518 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1519 and VSX_EXTRACT_I implicit.
1520
1521 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1522
1523 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1524 Explicitly use <MOVEP1:MODE> for the mode attribute.
1525
1526 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
1527
1528 PR bootstrap/91176
1529 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1530
1531 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
1532
1533 PR target/91050
1534 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1535 .machine directive.
1536
1537 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
1538
1539 * config/i386/i386.md (@test<mode>_ccno_1):
1540 Rename from test<mode>_ccno_1.
1541 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
1542 (*testqi_1_maybe_si): Remove modrm attribute.
1543 (*test<mode>_1): Ditto.
1544 * config/i386/i386-expand.c (ix86_split_idivmod): Use
1545 gen_test_ccno_1 and gen_extend_insn.
1546
1547 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
1548
1549 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1550 to 0.
1551
1552 2019-07-15 Richard Biener <rguenther@suse.de>
1553
1554 PR middle-end/91162
1555 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1556 node make sure to replace all uses with something valid.
1557
1558 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
1559
1560 PR tree-optimization/88497
1561 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1562 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1563 function undistribute_bitref_for_vector.
1564 (undistribute_bitref_for_vector): New function.
1565 (cleanup_vinfo_map): Likewise.
1566 (sort_by_mach_mode): Likewise.
1567
1568 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
1569
1570 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1571 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1572 and testdi_ccno_1 using SWI48 mode attribute.
1573 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1574 x86_64_szext_general_operand.
1575 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1576 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1577 instead of genera_operand mode attribute.
1578
1579 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
1580
1581 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1582 fopen and fclose to their respective types.
1583 (DotFn.invoke): Ditto.
1584
1585 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
1586
1587 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1588 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1589 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1590 (array_index_predicate): Remove.
1591 (analyze_function_body): Account cost for variable ofsetted array
1592 indexing.
1593 (estimate_node_size_and_time): Do not compute array index hint.
1594 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1595 (inline_read_section): Do not read array index hint.
1596 (ipa_fn_summary_write): Do not write array index hint.
1597 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1598 * ipa-cp.c (hint_time_bonus): Remove.
1599 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1600 (ipa_fnsummary): Remove array_index.
1601 * ipa-inline.c (want_inline_small_function_p): Do not use
1602 array_index.
1603 (edge_badness): Likewise.
1604 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1605
1606 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
1607
1608 PR target/91148
1609 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1610 superfluous "builtin function" phrasing.
1611
1612 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
1613
1614 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1615 Break out from ...
1616 (aliasing_component_refs_walk): Break out from ...
1617 (aliasing_component_refs_p): ... here.
1618
1619 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
1620
1621 PR target/91148
1622 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1623 "builtin function" phrasing.
1624
1625 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1626
1627 PR target/90723
1628 * recog.h (temporary_volatile_ok): New class.
1629 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1630 volatile_ok temporarily to true using temporary_volatile_ok.
1631 * expr.c (emit_block_move_via_cpymem): Likewise.
1632 * optabs.c (maybe_legitimize_operand): Likewise.
1633
1634 2019-07-13 Jakub Jelinek <jakub@redhat.com>
1635
1636 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1637 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1638 uses inside of order(concurrent) constructs.
1639 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1640 OMP_CLAUSE_ORDER is seen.
1641 * omp-low.c (struct omp_context): Add order_concurrent member.
1642 (scan_sharing_clauses): Set ctx->order_concurrent if
1643 OMP_CLAUSE_ORDER is seen.
1644 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1645 of simd order(concurrent). Diagnose constructs not allowed inside of
1646 for order(concurrent).
1647 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1648 complaining about static double setjmp (double); or class static
1649 methods or non-global namespace setjmps.
1650 (omp_runtime_api_call): New function.
1651 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1652 order(concurrent) loops.
1653
1654 2019-07-12 Martin Sebor <msebor@redhat.com>
1655
1656 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1657 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1658 * tree-vrp.c (vrp_prop::check_mem_ref): Use
1659 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1660
1661 2019-07-12 Jan Hubicka <jh@suse.cz>
1662
1663 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1664 (indirect_refs_may_alias_p): ... here.
1665 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1666 mem refs in the access paths.
1667
1668 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
1669
1670 PR tree-optimization/89430
1671 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1672 store elimination for local variable without address escape.
1673
1674 2019-07-12 Jeff Law <law@redhat.com>
1675
1676 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1677 for the ".far" section.
1678
1679 2019-07-12 Richard Biener <rguenther@suse.de>
1680
1681 PR tree-optimization/91145
1682 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1683 chain check.
1684
1685 2019-07-12 Alexandre Oliva <oliva@adacore.com>
1686
1687 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1688 rather than this_state as the lowering context for the ELSE
1689 seq in a GIMPLE_EH_ELSE.
1690
1691 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * vector-builder.h (vector_builder::elt): Allow already-supplied
1694 elements to be read back before building is complete.
1695
1696 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1697
1698 PR rtl-optimization/91136
1699 * df-core.c (ACCESSING REFS): Fix typos in comment.
1700 * resource.c (mark_target_live_reg): Add artificial defs that occur at
1701 the beginning of the block to the initial set of live registers.
1702
1703 2019-07-12 Richard Biener <rguenther@suse.de>
1704
1705 * fold-const.h (get_array_ctor_element_at_index): Adjust.
1706 * fold-const.c (get_array_ctor_element_at_index): Add
1707 ctor_idx output parameter informing the caller where in
1708 the constructor the element was (not) found. Add early exit
1709 for when the ctor is sorted.
1710 * gimple-fold.c (fold_array_ctor_reference): Support constant
1711 folding across multiple array elements.
1712
1713 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1714
1715 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
1716 doesn't have location, set the current location to the function's end.
1717
1718 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1719
1720 * config/aarch64/aarch64.md (*compare_condjump<mode>)
1721 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
1722 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
1723 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
1724 * config/aarch64/aarch64-simd.md
1725 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1726 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
1727 * config/aarch64/aarch64-sve.md
1728 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
1729 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
1730
1731 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1732
1733 * doc/md.texi: Document that @ patterns can have different
1734 numbers of operands.
1735 * genemit.c (handle_overloaded_gen): Handle this case.
1736 * genopinit.c (handle_overloaded_gen): Likewise.
1737 * gensupport.c (replace_operands_with_dups): Iterate over
1738 the new rtx's format rather than the old one's.
1739
1740 2019-07-12 Jakub Jelinek <jakub@redhat.com>
1741
1742 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
1743 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1744 order clause entries.
1745 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
1746 * tree-pretty-print.c (dump_omp_clause): Likewise.
1747 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1748 Likewise.
1749 * omp-low.c (scan_sharing_clauses): Likewise.
1750 * tree-nested.c (convert_nonlocal_omp_clauses,
1751 convert_local_omp_clauses): Likewise.
1752
1753 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
1754
1755 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
1756 fallthrough target of current basic block isn't the placed
1757 right next.
1758
1759 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
1760
1761 PR target/90980
1762 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
1763 (_mm512_storeu_epi64): Likewise.
1764 (_mm512_loadu_epi32): Likewise.
1765 (_mm512_storeu_epi32): Likewise.
1766 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
1767 (_mm_storeu_epi64): Likewise.
1768 (_mm256_storeu_epi32): Likewise.
1769 (_mm_storeu_epi32): Likewise.
1770
1771 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1772
1773 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
1774
1775 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1776
1777 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
1778 Handle Modula-2.
1779
1780 2019-07-11 Jakub Jelinek <jakub@redhat.com>
1781
1782 PR target/91124
1783 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
1784 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1785 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
1786 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
1787 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
1788 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
1789 define_insns.
1790 (ufix_truncv2dfv2si2<mask_name>): Change into ...
1791 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
1792 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
1793 define_insns.
1794 (sse2_cvttpd2dq<mask_name>): Change into ...
1795 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
1796 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
1797 (*sse2_cvtpd2dq<mask_name>): Change into ...
1798 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1799 Add "C" constraint to const0_operand.
1800 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
1801 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
1802 changes.
1803
1804 PR target/91124
1805 * config/i386/i386-builtin-types.def
1806 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
1807 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
1808 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1809 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1810 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
1811 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
1812 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
1813 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
1814 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
1815 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
1816 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
1817 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
1818 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
1819 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
1820 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
1821 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
1822 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
1823 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
1824 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
1825 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
1826 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
1827 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
1828 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
1829 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
1830 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
1831 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
1832 __builtin_ia32_vpdpbusd_v4si_maskz,
1833 __builtin_ia32_vpdpbusds_v16si_mask,
1834 __builtin_ia32_vpdpbusds_v16si_maskz,
1835 __builtin_ia32_vpdpbusds_v8si_mask,
1836 __builtin_ia32_vpdpbusds_v8si_maskz,
1837 __builtin_ia32_vpdpbusds_v4si_mask,
1838 __builtin_ia32_vpdpbusds_v4si_maskz,
1839 __builtin_ia32_vpdpwssd_v16si_mask,
1840 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
1841 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
1842 __builtin_ia32_vpdpwssd_v4si_maskz,
1843 __builtin_ia32_vpdpwssds_v16si_mask,
1844 __builtin_ia32_vpdpwssds_v16si_maskz,
1845 __builtin_ia32_vpdpwssds_v8si_mask,
1846 __builtin_ia32_vpdpwssds_v8si_maskz,
1847 __builtin_ia32_vpdpwssds_v4si_mask,
1848 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
1849 suffixed types rather than *_INT.
1850 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
1851 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
1852 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
1853 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
1854 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
1855 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
1856
1857 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
1858
1859 * tree-vrp.c (intersect_ranges): If we know the intersection is
1860 empty, there is no need to conservatively add anything else to
1861 the set.
1862
1863 2019-07-11 Richard Biener <rguenther@suse.de>
1864
1865 PR middle-end/91131
1866 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
1867 when the object is volatile and we have not cleared it even though
1868 there are no nonzero elements.
1869
1870 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
1871
1872 * config/rs6000/predicates.md (cint34_operand): Update
1873 SIGNED_34BIT_OFFSET_P call.
1874 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
1875 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
1876 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
1877 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
1878 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
1879 argument.
1880 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
1881 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
1882 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
1883 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
1884 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
1885
1886 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
1887
1888 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
1889 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
1890 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
1891 (DEF_MIN_OSX_VERSION): New.
1892
1893 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1894
1895 * fold-const.c (fold_relational_const): Fix folding of
1896 vector-to-scalar NE_EXPRs.
1897 (test_vector_folding): Add more tests.
1898
1899 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1900
1901 PR target/91060
1902 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
1903 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
1904 (vec_setv2di_internal): Reexpress as...
1905 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
1906 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
1907 rather than gen_neon_vset_lane<mode>.
1908
1909 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
1910
1911 PR target/91102
1912 * lra-constraints.c (process_alt_operands): Don't match user
1913 defined regs only if they are early clobbers.
1914
1915 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
1916
1917 * wide-int.h (wi::lshift): Reject negative values for the fast path.
1918
1919 2019-07-10 Richard Biener <rguenther@suse.de>
1920
1921 PR tree-optimization/91126
1922 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
1923 native encoding offset for BYTES_BIG_ENDIAN.
1924 (vn_reference_lookup_3): Likewise.
1925
1926 2019-07-10 Richard Biener <rguenther@suse.de>
1927
1928 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
1929 LHS whenever possible.
1930
1931 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
1932
1933 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
1934 from ...; work also on duplicated types.
1935 (nonoverlapping_component_refs_since_match): ... here
1936 (ncr_type_uid): Break out from ...
1937 (ncr_compar): ... here; look for TYPE_UID of canonical type if
1938 available.
1939 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
1940 the types and nonoverlapping_component_refs_p_1 to disambiguate.
1941
1942 2019-07-09 Martin Sebor <msebor@redhat.com>
1943
1944 PR tree-optimization/90989
1945 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
1946 optimization to just single character stores.
1947
1948 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
1949
1950 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
1951 Swap operands only once.
1952
1953 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1954
1955 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
1956 for both call instructions.
1957
1958 2019-07-09 John Darrington <john@darrington.wattle.id.au>
1959
1960 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
1961 rather than GET_MODE_BITSIZE to better handle partial integer modes.
1962
1963 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
1964
1965 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
1966 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
1967 function from rs6000-logue.c back to rs6000.c.
1968 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
1969
1970 2019-07-09 Martin Sebor <msebor@redhat.com>
1971
1972 PR c++/61339
1973 * auto-profile.c: Change class-key of PODs to struct and others
1974 to class.
1975 * basic-block.h: Same.
1976 * bitmap.c (bitmap_alloc): Same.
1977 * bitmap.h: Same.
1978 * builtins.c (expand_builtin_prefetch): Same.
1979 (expand_builtin_interclass_mathfn): Same.
1980 (expand_builtin_strlen): Same.
1981 (expand_builtin_mempcpy_args): Same.
1982 (expand_cmpstr): Same.
1983 (expand_builtin___clear_cache): Same.
1984 (expand_ifn_atomic_bit_test_and): Same.
1985 (expand_builtin_thread_pointer): Same.
1986 (expand_builtin_set_thread_pointer): Same.
1987 * caller-save.c (setup_save_areas): Same.
1988 (replace_reg_with_saved_mem): Same.
1989 (insert_restore): Same.
1990 (insert_save): Same.
1991 (add_used_regs): Same.
1992 * cfg.c (get_bb_copy): Same.
1993 (set_loop_copy): Same.
1994 * cfg.h: Same.
1995 * cfganal.h: Same.
1996 * cfgexpand.c (alloc_stack_frame_space): Same.
1997 (add_stack_var): Same.
1998 (add_stack_var_conflict): Same.
1999 (add_scope_conflicts_1): Same.
2000 (update_alias_info_with_stack_vars): Same.
2001 (expand_used_vars): Same.
2002 * cfghooks.c (redirect_edge_and_branch_force): Same.
2003 (delete_basic_block): Same.
2004 (split_edge): Same.
2005 (make_forwarder_block): Same.
2006 (force_nonfallthru): Same.
2007 (duplicate_block): Same.
2008 (lv_flush_pending_stmts): Same.
2009 * cfghooks.h: Same.
2010 * cfgloop.c (flow_loops_cfg_dump): Same.
2011 (flow_loop_nested_p): Same.
2012 (superloop_at_depth): Same.
2013 (get_loop_latch_edges): Same.
2014 (flow_loop_dump): Same.
2015 (flow_loops_dump): Same.
2016 (flow_loops_free): Same.
2017 (flow_loop_nodes_find): Same.
2018 (establish_preds): Same.
2019 (flow_loop_tree_node_add): Same.
2020 (flow_loop_tree_node_remove): Same.
2021 (flow_loops_find): Same.
2022 (find_subloop_latch_edge_by_profile): Same.
2023 (find_subloop_latch_edge_by_ivs): Same.
2024 (mfb_redirect_edges_in_set): Same.
2025 (form_subloop): Same.
2026 (merge_latch_edges): Same.
2027 (disambiguate_multiple_latches): Same.
2028 (disambiguate_loops_with_multiple_latches): Same.
2029 (flow_bb_inside_loop_p): Same.
2030 (glb_enum_p): Same.
2031 (get_loop_body_with_size): Same.
2032 (get_loop_body): Same.
2033 (fill_sons_in_loop): Same.
2034 (get_loop_body_in_dom_order): Same.
2035 (get_loop_body_in_custom_order): Same.
2036 (release_recorded_exits): Same.
2037 (get_loop_exit_edges): Same.
2038 (num_loop_branches): Same.
2039 (remove_bb_from_loops): Same.
2040 (find_common_loop): Same.
2041 (delete_loop): Same.
2042 (cancel_loop): Same.
2043 (verify_loop_structure): Same.
2044 (loop_preheader_edge): Same.
2045 (loop_exit_edge_p): Same.
2046 (single_exit): Same.
2047 (loop_exits_to_bb_p): Same.
2048 (loop_exits_from_bb_p): Same.
2049 (get_loop_location): Same.
2050 (record_niter_bound): Same.
2051 (get_estimated_loop_iterations_int): Same.
2052 (max_stmt_executions_int): Same.
2053 (likely_max_stmt_executions_int): Same.
2054 (get_estimated_loop_iterations): Same.
2055 (get_max_loop_iterations): Same.
2056 (get_max_loop_iterations_int): Same.
2057 (get_likely_max_loop_iterations): Same.
2058 * cfgloop.h (simple_loop_desc): Same.
2059 (get_loop): Same.
2060 (loop_depth): Same.
2061 (loop_outer): Same.
2062 (loop_iterator::next): Same.
2063 (loop_outermost): Same.
2064 * cfgloopanal.c (mark_irreducible_loops): Same.
2065 (num_loop_insns): Same.
2066 (average_num_loop_insns): Same.
2067 (expected_loop_iterations_unbounded): Same.
2068 (expected_loop_iterations): Same.
2069 (mark_loop_exit_edges): Same.
2070 (single_likely_exit): Same.
2071 * cfgloopmanip.c (fix_bb_placement): Same.
2072 (fix_bb_placements): Same.
2073 (remove_path): Same.
2074 (place_new_loop): Same.
2075 (add_loop): Same.
2076 (scale_loop_frequencies): Same.
2077 (scale_loop_profile): Same.
2078 (create_empty_if_region_on_edge): Same.
2079 (create_empty_loop_on_edge): Same.
2080 (loopify): Same.
2081 (unloop): Same.
2082 (fix_loop_placements): Same.
2083 (copy_loop_info): Same.
2084 (duplicate_loop): Same.
2085 (duplicate_subloops): Same.
2086 (loop_redirect_edge): Same.
2087 (can_duplicate_loop_p): Same.
2088 (duplicate_loop_to_header_edge): Same.
2089 (mfb_keep_just): Same.
2090 (has_preds_from_loop): Same.
2091 (create_preheader): Same.
2092 (create_preheaders): Same.
2093 (lv_adjust_loop_entry_edge): Same.
2094 (loop_version): Same.
2095 * cfgloopmanip.h: Same.
2096 * cgraph.h: Same.
2097 * cgraphbuild.c: Same.
2098 * combine.c (make_extraction): Same.
2099 * config/i386/i386-features.c: Same.
2100 * config/i386/i386-features.h: Same.
2101 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
2102 (ix86_emit_outlined_ms2sysv_restore): Same.
2103 (ix86_noce_conversion_profitable_p): Same.
2104 (ix86_init_cost): Same.
2105 (ix86_simd_clone_usable): Same.
2106 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
2107 Wstruct-not-pod.
2108 * coretypes.h: Same.
2109 * data-streamer-in.c (string_for_index): Change class-key of PODs
2110 to struct and others to class.
2111 (streamer_read_indexed_string): Same.
2112 (streamer_read_string): Same.
2113 (bp_unpack_indexed_string): Same.
2114 (bp_unpack_string): Same.
2115 (streamer_read_uhwi): Same.
2116 (streamer_read_hwi): Same.
2117 (streamer_read_gcov_count): Same.
2118 (streamer_read_wide_int): Same.
2119 * data-streamer.h (streamer_write_bitpack): Same.
2120 (bp_unpack_value): Same.
2121 (streamer_write_char_stream): Same.
2122 (streamer_write_hwi_in_range): Same.
2123 (streamer_write_record_start): Same.
2124 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
2125 (add_cross_iteration_register_deps): Same.
2126 (build_intra_loop_deps): Same.
2127 * df-core.c (df_analyze): Same.
2128 (loop_post_order_compute): Same.
2129 (loop_inverted_post_order_compute): Same.
2130 * df-problems.c (df_rd_alloc): Same.
2131 (df_rd_simulate_one_insn): Same.
2132 (df_rd_local_compute): Same.
2133 (df_rd_init_solution): Same.
2134 (df_rd_confluence_n): Same.
2135 (df_rd_transfer_function): Same.
2136 (df_rd_free): Same.
2137 (df_rd_dump_defs_set): Same.
2138 (df_rd_top_dump): Same.
2139 (df_lr_alloc): Same.
2140 (df_lr_reset): Same.
2141 (df_lr_local_compute): Same.
2142 (df_lr_init): Same.
2143 (df_lr_confluence_n): Same.
2144 (df_lr_free): Same.
2145 (df_lr_top_dump): Same.
2146 (df_lr_verify_transfer_functions): Same.
2147 (df_live_alloc): Same.
2148 (df_live_reset): Same.
2149 (df_live_init): Same.
2150 (df_live_confluence_n): Same.
2151 (df_live_finalize): Same.
2152 (df_live_free): Same.
2153 (df_live_top_dump): Same.
2154 (df_live_verify_transfer_functions): Same.
2155 (df_mir_alloc): Same.
2156 (df_mir_reset): Same.
2157 (df_mir_init): Same.
2158 (df_mir_confluence_n): Same.
2159 (df_mir_free): Same.
2160 (df_mir_top_dump): Same.
2161 (df_word_lr_alloc): Same.
2162 (df_word_lr_reset): Same.
2163 (df_word_lr_init): Same.
2164 (df_word_lr_confluence_n): Same.
2165 (df_word_lr_free): Same.
2166 (df_word_lr_top_dump): Same.
2167 (df_md_alloc): Same.
2168 (df_md_simulate_one_insn): Same.
2169 (df_md_reset): Same.
2170 (df_md_init): Same.
2171 (df_md_free): Same.
2172 (df_md_top_dump): Same.
2173 * df-scan.c (df_insn_delete): Same.
2174 (df_insn_rescan): Same.
2175 (df_notes_rescan): Same.
2176 (df_sort_and_compress_mws): Same.
2177 (df_install_mws): Same.
2178 (df_refs_add_to_chains): Same.
2179 (df_ref_create_structure): Same.
2180 (df_ref_record): Same.
2181 (df_def_record_1): Same.
2182 (df_find_hard_reg_defs): Same.
2183 (df_uses_record): Same.
2184 (df_get_conditional_uses): Same.
2185 (df_get_call_refs): Same.
2186 (df_recompute_luids): Same.
2187 (df_get_entry_block_def_set): Same.
2188 (df_entry_block_defs_collect): Same.
2189 (df_get_exit_block_use_set): Same.
2190 (df_exit_block_uses_collect): Same.
2191 (df_mws_verify): Same.
2192 (df_bb_verify): Same.
2193 * df.h (df_scan_get_bb_info): Same.
2194 * doc/tm.texi: Same.
2195 * dse.c (record_store): Same.
2196 * dumpfile.h: Same.
2197 * emit-rtl.c (const_fixed_hasher::equal): Same.
2198 (set_mem_attributes_minus_bitpos): Same.
2199 (change_address): Same.
2200 (adjust_address_1): Same.
2201 (offset_address): Same.
2202 * emit-rtl.h: Same.
2203 * except.c (dw2_build_landing_pads): Same.
2204 (sjlj_emit_dispatch_table): Same.
2205 * explow.c (allocate_dynamic_stack_space): Same.
2206 (emit_stack_probe): Same.
2207 (probe_stack_range): Same.
2208 * expmed.c (store_bit_field_using_insv): Same.
2209 (store_bit_field_1): Same.
2210 (store_integral_bit_field): Same.
2211 (extract_bit_field_using_extv): Same.
2212 (extract_bit_field_1): Same.
2213 (emit_cstore): Same.
2214 * expr.c (emit_block_move_via_cpymem): Same.
2215 (expand_cmpstrn_or_cmpmem): Same.
2216 (set_storage_via_setmem): Same.
2217 (emit_single_push_insn_1): Same.
2218 (expand_assignment): Same.
2219 (store_constructor): Same.
2220 (expand_expr_real_2): Same.
2221 (expand_expr_real_1): Same.
2222 (try_casesi): Same.
2223 * flags.h: Same.
2224 * function.c (try_fit_stack_local): Same.
2225 (assign_stack_local_1): Same.
2226 (assign_stack_local): Same.
2227 (cut_slot_from_list): Same.
2228 (insert_slot_to_list): Same.
2229 (max_slot_level): Same.
2230 (move_slot_to_level): Same.
2231 (temp_address_hasher::equal): Same.
2232 (remove_unused_temp_slot_addresses): Same.
2233 (assign_temp): Same.
2234 (combine_temp_slots): Same.
2235 (update_temp_slot_address): Same.
2236 (preserve_temp_slots): Same.
2237 * function.h: Same.
2238 * fwprop.c: Same.
2239 * gcc-rich-location.h: Same.
2240 * gcov.c: Same.
2241 * genattrtab.c (check_attr_test): Same.
2242 (check_attr_value): Same.
2243 (convert_set_attr_alternative): Same.
2244 (convert_set_attr): Same.
2245 (check_defs): Same.
2246 (copy_boolean): Same.
2247 (get_attr_value): Same.
2248 (expand_delays): Same.
2249 (make_length_attrs): Same.
2250 (min_fn): Same.
2251 (make_alternative_compare): Same.
2252 (simplify_test_exp): Same.
2253 (tests_attr_p): Same.
2254 (get_attr_order): Same.
2255 (clear_struct_flag): Same.
2256 (gen_attr): Same.
2257 (compares_alternatives_p): Same.
2258 (gen_insn): Same.
2259 (gen_delay): Same.
2260 (find_attrs_to_cache): Same.
2261 (write_test_expr): Same.
2262 (walk_attr_value): Same.
2263 (write_attr_get): Same.
2264 (eliminate_known_true): Same.
2265 (write_insn_cases): Same.
2266 (write_attr_case): Same.
2267 (write_attr_valueq): Same.
2268 (write_attr_value): Same.
2269 (write_dummy_eligible_delay): Same.
2270 (next_comma_elt): Same.
2271 (find_attr): Same.
2272 (make_internal_attr): Same.
2273 (copy_rtx_unchanging): Same.
2274 (gen_insn_reserv): Same.
2275 (check_tune_attr): Same.
2276 (make_automaton_attrs): Same.
2277 (handle_arg): Same.
2278 * genextract.c (gen_insn): Same.
2279 (VEC_char_to_string): Same.
2280 * genmatch.c (print_operand): Same.
2281 (lower): Same.
2282 (parser::parse_operation): Same.
2283 (parser::parse_capture): Same.
2284 (parser::parse_c_expr): Same.
2285 (parser::parse_simplify): Same.
2286 (main): Same.
2287 * genoutput.c (output_operand_data): Same.
2288 (output_get_insn_name): Same.
2289 (compare_operands): Same.
2290 (place_operands): Same.
2291 (process_template): Same.
2292 (validate_insn_alternatives): Same.
2293 (validate_insn_operands): Same.
2294 (gen_expand): Same.
2295 (note_constraint): Same.
2296 * genpreds.c (write_one_predicate_function): Same.
2297 (add_constraint): Same.
2298 (process_define_register_constraint): Same.
2299 (write_lookup_constraint_1): Same.
2300 (write_lookup_constraint_array): Same.
2301 (write_insn_constraint_len): Same.
2302 (write_reg_class_for_constraint_1): Same.
2303 (write_constraint_satisfied_p_array): Same.
2304 * genrecog.c (optimize_subroutine_group): Same.
2305 * gensupport.c (process_define_predicate): Same.
2306 (queue_pattern): Same.
2307 (remove_from_queue): Same.
2308 (process_rtx): Same.
2309 (is_predicable): Same.
2310 (change_subst_attribute): Same.
2311 (subst_pattern_match): Same.
2312 (alter_constraints): Same.
2313 (alter_attrs_for_insn): Same.
2314 (shift_output_template): Same.
2315 (alter_output_for_subst_insn): Same.
2316 (process_one_cond_exec): Same.
2317 (subst_dup): Same.
2318 (process_define_cond_exec): Same.
2319 (mnemonic_htab_callback): Same.
2320 (gen_mnemonic_attr): Same.
2321 (read_md_rtx): Same.
2322 * ggc-page.c: Same.
2323 * gimple-loop-interchange.cc (dump_reduction): Same.
2324 (dump_induction): Same.
2325 (loop_cand::~loop_cand): Same.
2326 (free_data_refs_with_aux): Same.
2327 (tree_loop_interchange::interchange_loops): Same.
2328 (tree_loop_interchange::map_inductions_to_loop): Same.
2329 (tree_loop_interchange::move_code_to_inner_loop): Same.
2330 (compute_access_stride): Same.
2331 (compute_access_strides): Same.
2332 (proper_loop_form_for_interchange): Same.
2333 (tree_loop_interchange_compute_ddrs): Same.
2334 (prune_datarefs_not_in_loop): Same.
2335 (prepare_data_references): Same.
2336 (pass_linterchange::execute): Same.
2337 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
2338 (unroll_jam_possible_p): Same.
2339 (fuse_loops): Same.
2340 (adjust_unroll_factor): Same.
2341 (tree_loop_unroll_and_jam): Same.
2342 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
2343 (loop_versioning::expensive_stmt_p): Same.
2344 (loop_versioning::version_for_unity): Same.
2345 (loop_versioning::dump_inner_likelihood): Same.
2346 (loop_versioning::find_per_loop_multiplication): Same.
2347 (loop_versioning::analyze_term_using_scevs): Same.
2348 (loop_versioning::record_address_fragment): Same.
2349 (loop_versioning::analyze_expr): Same.
2350 (loop_versioning::analyze_blocks): Same.
2351 (loop_versioning::prune_conditions): Same.
2352 (loop_versioning::merge_loop_info): Same.
2353 (loop_versioning::add_loop_to_queue): Same.
2354 (loop_versioning::decide_whether_loop_is_versionable): Same.
2355 (loop_versioning::make_versioning_decisions): Same.
2356 (loop_versioning::implement_versioning_decisions): Same.
2357 * gimple-ssa-evrp-analyze.c
2358 (evrp_range_analyzer::record_ranges_from_phis): Same.
2359 * gimple-ssa-store-merging.c (split_store::split_store): Same.
2360 (count_multiple_uses): Same.
2361 (split_group): Same.
2362 (imm_store_chain_info::output_merged_store): Same.
2363 (pass_store_merging::process_store): Same.
2364 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
2365 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
2366 (is_max): Same.
2367 (alloca_call_type): Same.
2368 (pass_walloca::execute): Same.
2369 * gimple-streamer-in.c (input_phi): Same.
2370 (input_gimple_stmt): Same.
2371 * gimple-streamer.h: Same.
2372 * godump.c (go_force_record_alignment): Same.
2373 (go_format_type): Same.
2374 (go_output_type): Same.
2375 (go_output_fndecl): Same.
2376 (go_output_typedef): Same.
2377 (keyword_hash_init): Same.
2378 (find_dummy_types): Same.
2379 * graph.c (draw_cfg_nodes_no_loops): Same.
2380 (draw_cfg_nodes_for_loop): Same.
2381 * hard-reg-set.h (hard_reg_set_iter_next): Same.
2382 * hsa-brig.c: Same.
2383 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
2384 * hsa-dump.c (dump_hsa_cfun): Same.
2385 * hsa-gen.c (gen_function_def_parameters): Same.
2386 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
2387 * input.c (dump_line_table_statistics): Same.
2388 (test_lexer): Same.
2389 * input.h: Same.
2390 * internal-fn.c (get_multi_vector_move): Same.
2391 (expand_load_lanes_optab_fn): Same.
2392 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
2393 (expand_GOMP_SIMT_EXIT): Same.
2394 (expand_GOMP_SIMT_LAST_LANE): Same.
2395 (expand_GOMP_SIMT_ORDERED_PRED): Same.
2396 (expand_GOMP_SIMT_VOTE_ANY): Same.
2397 (expand_GOMP_SIMT_XCHG_BFLY): Same.
2398 (expand_GOMP_SIMT_XCHG_IDX): Same.
2399 (expand_addsub_overflow): Same.
2400 (expand_neg_overflow): Same.
2401 (expand_mul_overflow): Same.
2402 (expand_call_mem_ref): Same.
2403 (expand_mask_load_optab_fn): Same.
2404 (expand_scatter_store_optab_fn): Same.
2405 (expand_gather_load_optab_fn): Same.
2406 * ipa-cp.c (ipa_get_parm_lattices): Same.
2407 (print_all_lattices): Same.
2408 (ignore_edge_p): Same.
2409 (build_toporder_info): Same.
2410 (free_toporder_info): Same.
2411 (push_node_to_stack): Same.
2412 (ipcp_lattice<valtype>::set_contains_variable): Same.
2413 (set_agg_lats_to_bottom): Same.
2414 (ipcp_bits_lattice::meet_with): Same.
2415 (set_single_call_flag): Same.
2416 (initialize_node_lattices): Same.
2417 (ipa_get_jf_ancestor_result): Same.
2418 (ipcp_verify_propagated_values): Same.
2419 (propagate_scalar_across_jump_function): Same.
2420 (propagate_context_across_jump_function): Same.
2421 (propagate_bits_across_jump_function): Same.
2422 (ipa_vr_operation_and_type_effects): Same.
2423 (propagate_vr_across_jump_function): Same.
2424 (set_check_aggs_by_ref): Same.
2425 (set_chain_of_aglats_contains_variable): Same.
2426 (merge_aggregate_lattices): Same.
2427 (agg_pass_through_permissible_p): Same.
2428 (propagate_aggs_across_jump_function): Same.
2429 (call_passes_through_thunk_p): Same.
2430 (propagate_constants_across_call): Same.
2431 (devirtualization_time_bonus): Same.
2432 (good_cloning_opportunity_p): Same.
2433 (context_independent_aggregate_values): Same.
2434 (gather_context_independent_values): Same.
2435 (perform_estimation_of_a_value): Same.
2436 (estimate_local_effects): Same.
2437 (value_topo_info<valtype>::add_val): Same.
2438 (add_all_node_vals_to_toposort): Same.
2439 (value_topo_info<valtype>::propagate_effects): Same.
2440 (ipcp_propagate_stage): Same.
2441 (ipcp_discover_new_direct_edges): Same.
2442 (same_node_or_its_all_contexts_clone_p): Same.
2443 (cgraph_edge_brings_value_p): Same.
2444 (gather_edges_for_value): Same.
2445 (create_specialized_node): Same.
2446 (find_more_scalar_values_for_callers_subset): Same.
2447 (find_more_contexts_for_caller_subset): Same.
2448 (copy_plats_to_inter): Same.
2449 (intersect_aggregates_with_edge): Same.
2450 (find_aggregate_values_for_callers_subset): Same.
2451 (cgraph_edge_brings_all_agg_vals_for_node): Same.
2452 (decide_about_value): Same.
2453 (decide_whether_version_node): Same.
2454 (spread_undeadness): Same.
2455 (identify_dead_nodes): Same.
2456 (ipcp_store_vr_results): Same.
2457 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
2458 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
2459 (redirect_to_unreachable): Same.
2460 (edge_set_predicate): Same.
2461 (evaluate_conditions_for_known_args): Same.
2462 (evaluate_properties_for_edge): Same.
2463 (ipa_fn_summary_t::duplicate): Same.
2464 (ipa_call_summary_t::duplicate): Same.
2465 (dump_ipa_call_summary): Same.
2466 (ipa_dump_fn_summary): Same.
2467 (eliminated_by_inlining_prob): Same.
2468 (set_cond_stmt_execution_predicate): Same.
2469 (set_switch_stmt_execution_predicate): Same.
2470 (compute_bb_predicates): Same.
2471 (will_be_nonconstant_expr_predicate): Same.
2472 (phi_result_unknown_predicate): Same.
2473 (analyze_function_body): Same.
2474 (compute_fn_summary): Same.
2475 (estimate_edge_devirt_benefit): Same.
2476 (estimate_edge_size_and_time): Same.
2477 (estimate_calls_size_and_time): Same.
2478 (estimate_node_size_and_time): Same.
2479 (remap_edge_change_prob): Same.
2480 (remap_edge_summaries): Same.
2481 (ipa_merge_fn_summary_after_inlining): Same.
2482 (ipa_fn_summary_generate): Same.
2483 (inline_read_section): Same.
2484 (ipa_fn_summary_read): Same.
2485 (ipa_fn_summary_write): Same.
2486 * ipa-fnsummary.h: Same.
2487 * ipa-hsa.c (ipa_hsa_read_section): Same.
2488 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
2489 * ipa-icf.c (sem_function::param_used_p): Same.
2490 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
2491 * ipa-inline.c (edge_badness): Same.
2492 (inline_small_functions): Same.
2493 * ipa-polymorphic-call.c
2494 (ipa_polymorphic_call_context::stream_out): Same.
2495 * ipa-predicate.c (predicate::remap_after_duplication): Same.
2496 (predicate::remap_after_inlining): Same.
2497 (predicate::stream_out): Same.
2498 * ipa-predicate.h: Same.
2499 * ipa-profile.c (ipa_profile_read_summary): Same.
2500 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2501 (count_formal_params): Same.
2502 (ipa_dump_param): Same.
2503 (ipa_alloc_node_params): Same.
2504 (ipa_print_node_jump_functions_for_edge): Same.
2505 (ipa_print_node_jump_functions): Same.
2506 (ipa_load_from_parm_agg): Same.
2507 (get_ancestor_addr_info): Same.
2508 (ipa_compute_jump_functions_for_edge): Same.
2509 (ipa_analyze_virtual_call_uses): Same.
2510 (ipa_analyze_stmt_uses): Same.
2511 (ipa_analyze_params_uses_in_bb): Same.
2512 (update_jump_functions_after_inlining): Same.
2513 (try_decrement_rdesc_refcount): Same.
2514 (ipa_impossible_devirt_target): Same.
2515 (update_indirect_edges_after_inlining): Same.
2516 (combine_controlled_uses_counters): Same.
2517 (ipa_edge_args_sum_t::duplicate): Same.
2518 (ipa_write_jump_function): Same.
2519 (ipa_write_indirect_edge_info): Same.
2520 (ipa_write_node_info): Same.
2521 (ipa_read_edge_info): Same.
2522 (ipa_prop_read_section): Same.
2523 (read_replacements_section): Same.
2524 * ipa-prop.h (ipa_get_param_count): Same.
2525 (ipa_get_param): Same.
2526 (ipa_get_type): Same.
2527 (ipa_get_param_move_cost): Same.
2528 (ipa_set_param_used): Same.
2529 (ipa_get_controlled_uses): Same.
2530 (ipa_set_controlled_uses): Same.
2531 (ipa_get_cs_argument_count): Same.
2532 * ipa-pure-const.c (analyze_function): Same.
2533 (pure_const_read_summary): Same.
2534 * ipa-ref.h: Same.
2535 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2536 * ipa-split.c (test_nonssa_use): Same.
2537 (dump_split_point): Same.
2538 (dominated_by_forbidden): Same.
2539 (split_part_set_ssa_name_p): Same.
2540 (find_split_points): Same.
2541 * ira-build.c (finish_loop_tree_nodes): Same.
2542 (low_pressure_loop_node_p): Same.
2543 * ira-color.c (ira_reuse_stack_slot): Same.
2544 * ira-int.h: Same.
2545 * ira.c (setup_reg_equiv): Same.
2546 (print_insn_chain): Same.
2547 (ira): Same.
2548 * loop-doloop.c (doloop_condition_get): Same.
2549 (add_test): Same.
2550 (record_reg_sets): Same.
2551 (doloop_optimize): Same.
2552 * loop-init.c (loop_optimizer_init): Same.
2553 (fix_loop_structure): Same.
2554 * loop-invariant.c (merge_identical_invariants): Same.
2555 (compute_always_reached): Same.
2556 (find_exits): Same.
2557 (may_assign_reg_p): Same.
2558 (find_invariants_bb): Same.
2559 (find_invariants_body): Same.
2560 (replace_uses): Same.
2561 (can_move_invariant_reg): Same.
2562 (free_inv_motion_data): Same.
2563 (move_single_loop_invariants): Same.
2564 (change_pressure): Same.
2565 (mark_ref_regs): Same.
2566 (calculate_loop_reg_pressure): Same.
2567 * loop-iv.c (biv_entry_hasher::equal): Same.
2568 (iv_extend_to_rtx_code): Same.
2569 (check_iv_ref_table_size): Same.
2570 (clear_iv_info): Same.
2571 (latch_dominating_def): Same.
2572 (iv_get_reaching_def): Same.
2573 (iv_constant): Same.
2574 (iv_subreg): Same.
2575 (iv_extend): Same.
2576 (iv_neg): Same.
2577 (iv_add): Same.
2578 (iv_mult): Same.
2579 (get_biv_step): Same.
2580 (record_iv): Same.
2581 (analyzed_for_bivness_p): Same.
2582 (record_biv): Same.
2583 (iv_analyze_biv): Same.
2584 (iv_analyze_expr): Same.
2585 (iv_analyze_def): Same.
2586 (iv_analyze_op): Same.
2587 (iv_analyze): Same.
2588 (iv_analyze_result): Same.
2589 (biv_p): Same.
2590 (eliminate_implied_conditions): Same.
2591 (simplify_using_initial_values): Same.
2592 (shorten_into_mode): Same.
2593 (canonicalize_iv_subregs): Same.
2594 (determine_max_iter): Same.
2595 (check_simple_exit): Same.
2596 (find_simple_exit): Same.
2597 (get_simple_loop_desc): Same.
2598 * loop-unroll.c (report_unroll): Same.
2599 (decide_unrolling): Same.
2600 (unroll_loops): Same.
2601 (loop_exit_at_end_p): Same.
2602 (decide_unroll_constant_iterations): Same.
2603 (unroll_loop_constant_iterations): Same.
2604 (compare_and_jump_seq): Same.
2605 (unroll_loop_runtime_iterations): Same.
2606 (decide_unroll_stupid): Same.
2607 (unroll_loop_stupid): Same.
2608 (referenced_in_one_insn_in_loop_p): Same.
2609 (reset_debug_uses_in_loop): Same.
2610 (analyze_iv_to_split_insn): Same.
2611 * lra-eliminations.c (lra_debug_elim_table): Same.
2612 (setup_can_eliminate): Same.
2613 (form_sum): Same.
2614 (lra_get_elimination_hard_regno): Same.
2615 (lra_eliminate_regs_1): Same.
2616 (eliminate_regs_in_insn): Same.
2617 (update_reg_eliminate): Same.
2618 (init_elimination): Same.
2619 (lra_eliminate): Same.
2620 * lra-int.h: Same.
2621 * lra-lives.c (initiate_live_solver): Same.
2622 * lra-remat.c (create_remat_bb_data): Same.
2623 * lra-spills.c (lra_spill): Same.
2624 * lra.c (lra_set_insn_recog_data): Same.
2625 (lra_set_used_insn_alternative_by_uid): Same.
2626 (init_reg_info): Same.
2627 (expand_reg_info): Same.
2628 * lto-cgraph.c (output_symtab): Same.
2629 (read_identifier): Same.
2630 (get_alias_symbol): Same.
2631 (input_node): Same.
2632 (input_varpool_node): Same.
2633 (input_ref): Same.
2634 (input_edge): Same.
2635 (input_cgraph_1): Same.
2636 (input_refs): Same.
2637 (input_symtab): Same.
2638 (input_offload_tables): Same.
2639 (output_cgraph_opt_summary): Same.
2640 (input_edge_opt_summary): Same.
2641 (input_cgraph_opt_section): Same.
2642 * lto-section-in.c (lto_free_raw_section_data): Same.
2643 (lto_create_simple_input_block): Same.
2644 (lto_free_function_in_decl_state_for_node): Same.
2645 * lto-streamer-in.c (lto_tag_check_set): Same.
2646 (lto_location_cache::revert_location_cache): Same.
2647 (lto_location_cache::input_location): Same.
2648 (lto_input_location): Same.
2649 (stream_input_location_now): Same.
2650 (lto_input_tree_ref): Same.
2651 (lto_input_eh_catch_list): Same.
2652 (input_eh_region): Same.
2653 (lto_init_eh): Same.
2654 (make_new_block): Same.
2655 (input_cfg): Same.
2656 (fixup_call_stmt_edges): Same.
2657 (input_struct_function_base): Same.
2658 (input_function): Same.
2659 (lto_read_body_or_constructor): Same.
2660 (lto_read_tree_1): Same.
2661 (lto_read_tree): Same.
2662 (lto_input_scc): Same.
2663 (lto_input_tree_1): Same.
2664 (lto_input_toplevel_asms): Same.
2665 (lto_input_mode_table): Same.
2666 (lto_reader_init): Same.
2667 (lto_data_in_create): Same.
2668 * lto-streamer-out.c (output_cfg): Same.
2669 * lto-streamer.h: Same.
2670 * modulo-sched.c (duplicate_insns_of_cycles): Same.
2671 (generate_prolog_epilog): Same.
2672 (mark_loop_unsched): Same.
2673 (dump_insn_location): Same.
2674 (loop_canon_p): Same.
2675 (sms_schedule): Same.
2676 * omp-expand.c (expand_omp_for_ordered_loops): Same.
2677 (expand_omp_for_generic): Same.
2678 (expand_omp_for_static_nochunk): Same.
2679 (expand_omp_for_static_chunk): Same.
2680 (expand_omp_simd): Same.
2681 (expand_omp_taskloop_for_inner): Same.
2682 (expand_oacc_for): Same.
2683 (expand_omp_atomic_pipeline): Same.
2684 (mark_loops_in_oacc_kernels_region): Same.
2685 * omp-offload.c (oacc_xform_loop): Same.
2686 * omp-simd-clone.c (simd_clone_adjust): Same.
2687 * optabs-query.c (get_traditional_extraction_insn): Same.
2688 * optabs.c (expand_vector_broadcast): Same.
2689 (expand_binop_directly): Same.
2690 (expand_twoval_unop): Same.
2691 (expand_twoval_binop): Same.
2692 (expand_unop_direct): Same.
2693 (emit_indirect_jump): Same.
2694 (emit_conditional_move): Same.
2695 (emit_conditional_neg_or_complement): Same.
2696 (emit_conditional_add): Same.
2697 (vector_compare_rtx): Same.
2698 (expand_vec_perm_1): Same.
2699 (expand_vec_perm_const): Same.
2700 (expand_vec_cond_expr): Same.
2701 (expand_vec_series_expr): Same.
2702 (maybe_emit_atomic_exchange): Same.
2703 (maybe_emit_sync_lock_test_and_set): Same.
2704 (expand_atomic_compare_and_swap): Same.
2705 (expand_atomic_load): Same.
2706 (expand_atomic_store): Same.
2707 (maybe_emit_op): Same.
2708 (valid_multiword_target_p): Same.
2709 (create_integer_operand): Same.
2710 (maybe_legitimize_operand_same_code): Same.
2711 (maybe_legitimize_operand): Same.
2712 (create_convert_operand_from_type): Same.
2713 (can_reuse_operands_p): Same.
2714 (maybe_legitimize_operands): Same.
2715 (maybe_gen_insn): Same.
2716 (maybe_expand_insn): Same.
2717 (maybe_expand_jump_insn): Same.
2718 (expand_insn): Same.
2719 * optabs.h (create_expand_operand): Same.
2720 (create_fixed_operand): Same.
2721 (create_output_operand): Same.
2722 (create_input_operand): Same.
2723 (create_convert_operand_to): Same.
2724 (create_convert_operand_from): Same.
2725 * optinfo.h: Same.
2726 * poly-int.h: Same.
2727 * predict.c (optimize_insn_for_speed_p): Same.
2728 (optimize_loop_for_size_p): Same.
2729 (optimize_loop_for_speed_p): Same.
2730 (optimize_loop_nest_for_speed_p): Same.
2731 (get_base_value): Same.
2732 (predicted_by_loop_heuristics_p): Same.
2733 (predict_extra_loop_exits): Same.
2734 (predict_loops): Same.
2735 (predict_paths_for_bb): Same.
2736 (predict_paths_leading_to): Same.
2737 (propagate_freq): Same.
2738 (pass_profile::execute): Same.
2739 * predict.h: Same.
2740 * profile-count.c (profile_count::differs_from_p): Same.
2741 (profile_probability::differs_lot_from_p): Same.
2742 * profile-count.h: Same.
2743 * profile.c (branch_prob): Same.
2744 * regrename.c (free_chain_data): Same.
2745 (mark_conflict): Same.
2746 (create_new_chain): Same.
2747 (merge_overlapping_regs): Same.
2748 (init_rename_info): Same.
2749 (merge_chains): Same.
2750 (regrename_analyze): Same.
2751 (regrename_do_replace): Same.
2752 (scan_rtx_reg): Same.
2753 (record_out_operands): Same.
2754 (build_def_use): Same.
2755 * regrename.h: Same.
2756 * reload.h: Same.
2757 * reload1.c (init_reload): Same.
2758 (maybe_fix_stack_asms): Same.
2759 (copy_reloads): Same.
2760 (count_pseudo): Same.
2761 (count_spilled_pseudo): Same.
2762 (find_reg): Same.
2763 (find_reload_regs): Same.
2764 (select_reload_regs): Same.
2765 (spill_hard_reg): Same.
2766 (fixup_eh_region_note): Same.
2767 (set_reload_reg): Same.
2768 (allocate_reload_reg): Same.
2769 (compute_reload_subreg_offset): Same.
2770 (reload_adjust_reg_for_icode): Same.
2771 (emit_input_reload_insns): Same.
2772 (emit_output_reload_insns): Same.
2773 (do_input_reload): Same.
2774 (inherit_piecemeal_p): Same.
2775 * rtl.h: Same.
2776 * sanopt.c (maybe_get_dominating_check): Same.
2777 (maybe_optimize_ubsan_ptr_ifn): Same.
2778 (can_remove_asan_check): Same.
2779 (maybe_optimize_asan_check_ifn): Same.
2780 (sanopt_optimize_walker): Same.
2781 * sched-deps.c (add_dependence_list): Same.
2782 (chain_to_prev_insn): Same.
2783 (add_insn_mem_dependence): Same.
2784 (create_insn_reg_set): Same.
2785 (maybe_extend_reg_info_p): Same.
2786 (sched_analyze_reg): Same.
2787 (sched_analyze_1): Same.
2788 (get_implicit_reg_pending_clobbers): Same.
2789 (chain_to_prev_insn_p): Same.
2790 (deps_analyze_insn): Same.
2791 (deps_start_bb): Same.
2792 (sched_free_deps): Same.
2793 (init_deps): Same.
2794 (init_deps_reg_last): Same.
2795 (free_deps): Same.
2796 * sched-ebb.c: Same.
2797 * sched-int.h: Same.
2798 * sched-rgn.c (add_branch_dependences): Same.
2799 (concat_insn_mem_list): Same.
2800 (deps_join): Same.
2801 (sched_rgn_compute_dependencies): Same.
2802 * sel-sched-ir.c (reset_target_context): Same.
2803 (copy_deps_context): Same.
2804 (init_id_from_df): Same.
2805 (has_dependence_p): Same.
2806 (change_loops_latches): Same.
2807 (bb_top_order_comparator): Same.
2808 (make_region_from_loop_preheader): Same.
2809 (sel_init_pipelining): Same.
2810 (get_loop_nest_for_rgn): Same.
2811 (make_regions_from_the_rest): Same.
2812 (sel_is_loop_preheader_p): Same.
2813 * sel-sched-ir.h (inner_loop_header_p): Same.
2814 (get_all_loop_exits): Same.
2815 * selftest.h: Same.
2816 * sese.c (sese_build_liveouts): Same.
2817 (sese_insert_phis_for_liveouts): Same.
2818 * sese.h (defined_in_sese_p): Same.
2819 * sreal.c (sreal::stream_out): Same.
2820 * sreal.h: Same.
2821 * streamer-hooks.h: Same.
2822 * target-globals.c (save_target_globals): Same.
2823 * target-globals.h: Same.
2824 * target.def: Same.
2825 * target.h: Same.
2826 * targhooks.c (default_has_ifunc_p): Same.
2827 (default_empty_mask_is_expensive): Same.
2828 (default_init_cost): Same.
2829 * targhooks.h: Same.
2830 * toplev.c: Same.
2831 * tree-affine.c (aff_combination_mult): Same.
2832 (aff_combination_expand): Same.
2833 (aff_combination_constant_multiple_p): Same.
2834 * tree-affine.h: Same.
2835 * tree-cfg.c (build_gimple_cfg): Same.
2836 (replace_loop_annotate_in_block): Same.
2837 (replace_uses_by): Same.
2838 (remove_bb): Same.
2839 (dump_cfg_stats): Same.
2840 (gimple_duplicate_sese_region): Same.
2841 (gimple_duplicate_sese_tail): Same.
2842 (move_block_to_fn): Same.
2843 (replace_block_vars_by_duplicates): Same.
2844 (move_sese_region_to_fn): Same.
2845 (print_loops_bb): Same.
2846 (print_loop): Same.
2847 (print_loops): Same.
2848 (debug): Same.
2849 (debug_loops): Same.
2850 * tree-cfg.h: Same.
2851 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
2852 (chrec_fold_multiply_poly_poly): Same.
2853 (chrec_evaluate): Same.
2854 (chrec_component_in_loop_num): Same.
2855 (reset_evolution_in_loop): Same.
2856 (is_multivariate_chrec): Same.
2857 (chrec_contains_symbols): Same.
2858 (nb_vars_in_chrec): Same.
2859 (chrec_convert_1): Same.
2860 (chrec_convert_aggressive): Same.
2861 * tree-chrec.h: Same.
2862 * tree-core.h: Same.
2863 * tree-data-ref.c (dump_data_dependence_relation): Same.
2864 (canonicalize_base_object_address): Same.
2865 (data_ref_compare_tree): Same.
2866 (prune_runtime_alias_test_list): Same.
2867 (get_segment_min_max): Same.
2868 (create_intersect_range_checks): Same.
2869 (conflict_fn_no_dependence): Same.
2870 (object_address_invariant_in_loop_p): Same.
2871 (analyze_ziv_subscript): Same.
2872 (analyze_siv_subscript_cst_affine): Same.
2873 (analyze_miv_subscript): Same.
2874 (analyze_overlapping_iterations): Same.
2875 (build_classic_dist_vector_1): Same.
2876 (add_other_self_distances): Same.
2877 (same_access_functions): Same.
2878 (build_classic_dir_vector): Same.
2879 (subscript_dependence_tester_1): Same.
2880 (subscript_dependence_tester): Same.
2881 (access_functions_are_affine_or_constant_p): Same.
2882 (get_references_in_stmt): Same.
2883 (loop_nest_has_data_refs): Same.
2884 (graphite_find_data_references_in_stmt): Same.
2885 (find_data_references_in_bb): Same.
2886 (get_base_for_alignment): Same.
2887 (find_loop_nest_1): Same.
2888 (find_loop_nest): Same.
2889 * tree-data-ref.h (dr_alignment): Same.
2890 (ddr_dependence_level): Same.
2891 * tree-if-conv.c (fold_build_cond_expr): Same.
2892 (add_to_predicate_list): Same.
2893 (add_to_dst_predicate_list): Same.
2894 (phi_convertible_by_degenerating_args): Same.
2895 (idx_within_array_bound): Same.
2896 (all_preds_critical_p): Same.
2897 (pred_blocks_visited_p): Same.
2898 (predicate_bbs): Same.
2899 (build_region): Same.
2900 (if_convertible_loop_p_1): Same.
2901 (is_cond_scalar_reduction): Same.
2902 (predicate_scalar_phi): Same.
2903 (remove_conditions_and_labels): Same.
2904 (combine_blocks): Same.
2905 (version_loop_for_if_conversion): Same.
2906 (versionable_outer_loop_p): Same.
2907 (ifcvt_local_dce): Same.
2908 (tree_if_conversion): Same.
2909 (pass_if_conversion::gate): Same.
2910 * tree-if-conv.h: Same.
2911 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
2912 * tree-loop-distribution.c (bb_top_order_cmp): Same.
2913 (free_rdg): Same.
2914 (stmt_has_scalar_dependences_outside_loop): Same.
2915 (copy_loop_before): Same.
2916 (create_bb_after_loop): Same.
2917 (const_with_all_bytes_same): Same.
2918 (generate_memset_builtin): Same.
2919 (generate_memcpy_builtin): Same.
2920 (destroy_loop): Same.
2921 (build_rdg_partition_for_vertex): Same.
2922 (compute_access_range): Same.
2923 (data_ref_segment_size): Same.
2924 (latch_dominated_by_data_ref): Same.
2925 (compute_alias_check_pairs): Same.
2926 (fuse_memset_builtins): Same.
2927 (finalize_partitions): Same.
2928 (find_seed_stmts_for_distribution): Same.
2929 (prepare_perfect_loop_nest): Same.
2930 * tree-parloops.c (lambda_transform_legal_p): Same.
2931 (loop_parallel_p): Same.
2932 (reduc_stmt_res): Same.
2933 (add_field_for_name): Same.
2934 (create_call_for_reduction_1): Same.
2935 (replace_uses_in_bb_by): Same.
2936 (transform_to_exit_first_loop_alt): Same.
2937 (try_transform_to_exit_first_loop_alt): Same.
2938 (transform_to_exit_first_loop): Same.
2939 (num_phis): Same.
2940 (gen_parallel_loop): Same.
2941 (gather_scalar_reductions): Same.
2942 (get_omp_data_i_param): Same.
2943 (try_create_reduction_list): Same.
2944 (oacc_entry_exit_single_gang): Same.
2945 (parallelize_loops): Same.
2946 * tree-pass.h: Same.
2947 * tree-predcom.c (determine_offset): Same.
2948 (last_always_executed_block): Same.
2949 (split_data_refs_to_components): Same.
2950 (suitable_component_p): Same.
2951 (valid_initializer_p): Same.
2952 (find_looparound_phi): Same.
2953 (insert_looparound_copy): Same.
2954 (add_looparound_copies): Same.
2955 (determine_roots_comp): Same.
2956 (predcom_tmp_var): Same.
2957 (initialize_root_vars): Same.
2958 (initialize_root_vars_store_elim_1): Same.
2959 (initialize_root_vars_store_elim_2): Same.
2960 (finalize_eliminated_stores): Same.
2961 (initialize_root_vars_lm): Same.
2962 (remove_stmt): Same.
2963 (determine_unroll_factor): Same.
2964 (execute_pred_commoning_cbck): Same.
2965 (base_names_in_chain_on): Same.
2966 (combine_chains): Same.
2967 (pcom_stmt_dominates_stmt_p): Same.
2968 (try_combine_chains): Same.
2969 (prepare_initializers_chain_store_elim): Same.
2970 (prepare_initializers_chain): Same.
2971 (prepare_initializers): Same.
2972 (prepare_finalizers_chain): Same.
2973 (prepare_finalizers): Same.
2974 (insert_init_seqs): Same.
2975 * tree-scalar-evolution.c (loop_phi_node_p): Same.
2976 (compute_overall_effect_of_inner_loop): Same.
2977 (add_to_evolution_1): Same.
2978 (add_to_evolution): Same.
2979 (follow_ssa_edge_binary): Same.
2980 (follow_ssa_edge_expr): Same.
2981 (backedge_phi_arg_p): Same.
2982 (follow_ssa_edge_in_condition_phi_branch): Same.
2983 (follow_ssa_edge_in_condition_phi): Same.
2984 (follow_ssa_edge_inner_loop_phi): Same.
2985 (follow_ssa_edge): Same.
2986 (analyze_evolution_in_loop): Same.
2987 (analyze_initial_condition): Same.
2988 (interpret_loop_phi): Same.
2989 (interpret_condition_phi): Same.
2990 (interpret_rhs_expr): Same.
2991 (interpret_expr): Same.
2992 (interpret_gimple_assign): Same.
2993 (analyze_scalar_evolution_1): Same.
2994 (analyze_scalar_evolution): Same.
2995 (analyze_scalar_evolution_for_address_of): Same.
2996 (get_instantiated_value_entry): Same.
2997 (loop_closed_phi_def): Same.
2998 (instantiate_scev_name): Same.
2999 (instantiate_scev_poly): Same.
3000 (instantiate_scev_binary): Same.
3001 (instantiate_scev_convert): Same.
3002 (instantiate_scev_not): Same.
3003 (instantiate_scev_r): Same.
3004 (instantiate_scev): Same.
3005 (resolve_mixers): Same.
3006 (initialize_scalar_evolutions_analyzer): Same.
3007 (scev_reset_htab): Same.
3008 (scev_reset): Same.
3009 (derive_simple_iv_with_niters): Same.
3010 (simple_iv_with_niters): Same.
3011 (expression_expensive_p): Same.
3012 (final_value_replacement_loop): Same.
3013 * tree-scalar-evolution.h (block_before_loop): Same.
3014 * tree-ssa-address.h: Same.
3015 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
3016 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
3017 (record_edge_info): Same.
3018 * tree-ssa-live.c (var_map_base_fini): Same.
3019 (remove_unused_locals): Same.
3020 * tree-ssa-live.h: Same.
3021 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
3022 (pass_ch_vect::execute): Same.
3023 (pass_ch::process_loop_p): Same.
3024 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
3025 (movement_possibility): Same.
3026 (outermost_invariant_loop): Same.
3027 (stmt_cost): Same.
3028 (determine_max_movement): Same.
3029 (invariantness_dom_walker::before_dom_children): Same.
3030 (move_computations): Same.
3031 (may_move_till): Same.
3032 (force_move_till_op): Same.
3033 (force_move_till): Same.
3034 (memref_free): Same.
3035 (record_mem_ref_loc): Same.
3036 (set_ref_stored_in_loop): Same.
3037 (mark_ref_stored): Same.
3038 (sort_bbs_in_loop_postorder_cmp): Same.
3039 (sort_locs_in_loop_postorder_cmp): Same.
3040 (analyze_memory_references): Same.
3041 (mem_refs_may_alias_p): Same.
3042 (find_ref_loc_in_loop_cmp): Same.
3043 (rewrite_mem_ref_loc::operator): Same.
3044 (first_mem_ref_loc_1::operator): Same.
3045 (sm_set_flag_if_changed::operator): Same.
3046 (execute_sm_if_changed_flag_set): Same.
3047 (execute_sm): Same.
3048 (hoist_memory_references): Same.
3049 (ref_always_accessed::operator): Same.
3050 (refs_independent_p): Same.
3051 (record_dep_loop): Same.
3052 (ref_indep_loop_p_1): Same.
3053 (ref_indep_loop_p): Same.
3054 (can_sm_ref_p): Same.
3055 (find_refs_for_sm): Same.
3056 (loop_suitable_for_sm): Same.
3057 (store_motion_loop): Same.
3058 (store_motion): Same.
3059 (fill_always_executed_in): Same.
3060 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
3061 (estimated_unrolled_size): Same.
3062 (loop_edge_to_cancel): Same.
3063 (remove_exits_and_undefined_stmts): Same.
3064 (remove_redundant_iv_tests): Same.
3065 (unloop_loops): Same.
3066 (estimated_peeled_sequence_size): Same.
3067 (try_peel_loop): Same.
3068 (canonicalize_loop_induction_variables): Same.
3069 (canonicalize_induction_variables): Same.
3070 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
3071 (name_info): Same.
3072 (stmt_after_inc_pos): Same.
3073 (contains_abnormal_ssa_name_p): Same.
3074 (niter_for_exit): Same.
3075 (find_bivs): Same.
3076 (mark_bivs): Same.
3077 (find_givs_in_bb): Same.
3078 (find_induction_variables): Same.
3079 (find_interesting_uses_cond): Same.
3080 (outermost_invariant_loop_for_expr): Same.
3081 (idx_find_step): Same.
3082 (add_candidate_1): Same.
3083 (add_iv_candidate_derived_from_uses): Same.
3084 (alloc_use_cost_map): Same.
3085 (prepare_decl_rtl): Same.
3086 (generic_predict_doloop_p): Same.
3087 (computation_cost): Same.
3088 (determine_common_wider_type): Same.
3089 (get_computation_aff_1): Same.
3090 (get_use_type): Same.
3091 (determine_group_iv_cost_address): Same.
3092 (iv_period): Same.
3093 (difference_cannot_overflow_p): Same.
3094 (may_eliminate_iv): Same.
3095 (determine_set_costs): Same.
3096 (cheaper_cost_pair): Same.
3097 (compare_cost_pair): Same.
3098 (iv_ca_cand_for_group): Same.
3099 (iv_ca_recount_cost): Same.
3100 (iv_ca_set_remove_invs): Same.
3101 (iv_ca_set_no_cp): Same.
3102 (iv_ca_set_add_invs): Same.
3103 (iv_ca_set_cp): Same.
3104 (iv_ca_add_group): Same.
3105 (iv_ca_cost): Same.
3106 (iv_ca_compare_deps): Same.
3107 (iv_ca_delta_reverse): Same.
3108 (iv_ca_delta_commit): Same.
3109 (iv_ca_cand_used_p): Same.
3110 (iv_ca_delta_free): Same.
3111 (iv_ca_new): Same.
3112 (iv_ca_free): Same.
3113 (iv_ca_dump): Same.
3114 (iv_ca_extend): Same.
3115 (iv_ca_narrow): Same.
3116 (iv_ca_prune): Same.
3117 (cheaper_cost_with_cand): Same.
3118 (iv_ca_replace): Same.
3119 (try_add_cand_for): Same.
3120 (get_initial_solution): Same.
3121 (try_improve_iv_set): Same.
3122 (find_optimal_iv_set_1): Same.
3123 (create_new_iv): Same.
3124 (rewrite_use_compare): Same.
3125 (remove_unused_ivs): Same.
3126 (determine_scaling_factor): Same.
3127 * tree-ssa-loop-ivopts.h: Same.
3128 * tree-ssa-loop-manip.c (create_iv): Same.
3129 (compute_live_loop_exits): Same.
3130 (add_exit_phi): Same.
3131 (add_exit_phis): Same.
3132 (find_uses_to_rename_use): Same.
3133 (find_uses_to_rename_def): Same.
3134 (find_uses_to_rename_in_loop): Same.
3135 (rewrite_into_loop_closed_ssa): Same.
3136 (check_loop_closed_ssa_bb): Same.
3137 (split_loop_exit_edge): Same.
3138 (ip_end_pos): Same.
3139 (ip_normal_pos): Same.
3140 (copy_phi_node_args): Same.
3141 (gimple_duplicate_loop_to_header_edge): Same.
3142 (can_unroll_loop_p): Same.
3143 (determine_exit_conditions): Same.
3144 (scale_dominated_blocks_in_loop): Same.
3145 (niter_for_unrolled_loop): Same.
3146 (tree_transform_and_unroll_loop): Same.
3147 (rewrite_all_phi_nodes_with_iv): Same.
3148 * tree-ssa-loop-manip.h: Same.
3149 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
3150 (number_of_iterations_ne): Same.
3151 (assert_no_overflow_lt): Same.
3152 (assert_loop_rolls_lt): Same.
3153 (number_of_iterations_lt): Same.
3154 (adjust_cond_for_loop_until_wrap): Same.
3155 (tree_simplify_using_condition): Same.
3156 (simplify_using_initial_conditions): Same.
3157 (simplify_using_outer_evolutions): Same.
3158 (loop_only_exit_p): Same.
3159 (ssa_defined_by_minus_one_stmt_p): Same.
3160 (number_of_iterations_popcount): Same.
3161 (number_of_iterations_exit): Same.
3162 (find_loop_niter): Same.
3163 (finite_loop_p): Same.
3164 (chain_of_csts_start): Same.
3165 (get_val_for): Same.
3166 (loop_niter_by_eval): Same.
3167 (derive_constant_upper_bound_ops): Same.
3168 (do_warn_aggressive_loop_optimizations): Same.
3169 (record_estimate): Same.
3170 (get_cst_init_from_scev): Same.
3171 (record_nonwrapping_iv): Same.
3172 (idx_infer_loop_bounds): Same.
3173 (infer_loop_bounds_from_ref): Same.
3174 (infer_loop_bounds_from_array): Same.
3175 (infer_loop_bounds_from_pointer_arith): Same.
3176 (infer_loop_bounds_from_signedness): Same.
3177 (bound_index): Same.
3178 (discover_iteration_bound_by_body_walk): Same.
3179 (maybe_lower_iteration_bound): Same.
3180 (estimate_numbers_of_iterations): Same.
3181 (estimated_loop_iterations): Same.
3182 (estimated_loop_iterations_int): Same.
3183 (max_loop_iterations): Same.
3184 (max_loop_iterations_int): Same.
3185 (likely_max_loop_iterations): Same.
3186 (likely_max_loop_iterations_int): Same.
3187 (estimated_stmt_executions_int): Same.
3188 (max_stmt_executions): Same.
3189 (likely_max_stmt_executions): Same.
3190 (estimated_stmt_executions): Same.
3191 (stmt_dominates_stmt_p): Same.
3192 (nowrap_type_p): Same.
3193 (loop_exits_before_overflow): Same.
3194 (scev_var_range_cant_overflow): Same.
3195 (scev_probably_wraps_p): Same.
3196 (free_numbers_of_iterations_estimates): Same.
3197 * tree-ssa-loop-niter.h: Same.
3198 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
3199 (idx_analyze_ref): Same.
3200 (analyze_ref): Same.
3201 (gather_memory_references_ref): Same.
3202 (mark_nontemporal_store): Same.
3203 (emit_mfence_after_loop): Same.
3204 (may_use_storent_in_loop_p): Same.
3205 (mark_nontemporal_stores): Same.
3206 (should_unroll_loop_p): Same.
3207 (volume_of_dist_vector): Same.
3208 (add_subscript_strides): Same.
3209 (self_reuse_distance): Same.
3210 (insn_to_prefetch_ratio_too_small_p): Same.
3211 * tree-ssa-loop-split.c (split_at_bb_p): Same.
3212 (patch_loop_exit): Same.
3213 (find_or_create_guard_phi): Same.
3214 (easy_exit_values): Same.
3215 (connect_loop_phis): Same.
3216 (connect_loops): Same.
3217 (compute_new_first_bound): Same.
3218 (split_loop): Same.
3219 (tree_ssa_split_loops): Same.
3220 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
3221 (is_maybe_undefined): Same.
3222 (tree_may_unswitch_on): Same.
3223 (simplify_using_entry_checks): Same.
3224 (tree_unswitch_single_loop): Same.
3225 (tree_unswitch_loop): Same.
3226 (tree_unswitch_outer_loop): Same.
3227 (empty_bb_without_guard_p): Same.
3228 (used_outside_loop_p): Same.
3229 (get_vop_from_header): Same.
3230 (hoist_guard): Same.
3231 * tree-ssa-loop.c (gate_oacc_kernels): Same.
3232 (get_lsm_tmp_name): Same.
3233 * tree-ssa-loop.h: Same.
3234 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
3235 (build_and_add_sum): Same.
3236 (no_side_effect_bb): Same.
3237 (get_ops): Same.
3238 (linearize_expr): Same.
3239 (should_break_up_subtract): Same.
3240 (linearize_expr_tree): Same.
3241 * tree-ssa-scopedtables.c: Same.
3242 * tree-ssa-scopedtables.h: Same.
3243 * tree-ssa-structalias.c (condense_visit): Same.
3244 (label_visit): Same.
3245 (dump_pred_graph): Same.
3246 (perform_var_substitution): Same.
3247 (move_complex_constraints): Same.
3248 (remove_preds_and_fake_succs): Same.
3249 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
3250 (determine_bb_domination_status): Same.
3251 (duplicate_thread_path): Same.
3252 (thread_through_all_blocks): Same.
3253 * tree-ssa-threadupdate.h: Same.
3254 * tree-streamer-in.c (streamer_read_string_cst): Same.
3255 (input_identifier): Same.
3256 (unpack_ts_type_common_value_fields): Same.
3257 (unpack_ts_block_value_fields): Same.
3258 (unpack_ts_translation_unit_decl_value_fields): Same.
3259 (unpack_ts_omp_clause_value_fields): Same.
3260 (streamer_read_tree_bitfields): Same.
3261 (streamer_alloc_tree): Same.
3262 (lto_input_ts_common_tree_pointers): Same.
3263 (lto_input_ts_vector_tree_pointers): Same.
3264 (lto_input_ts_poly_tree_pointers): Same.
3265 (lto_input_ts_complex_tree_pointers): Same.
3266 (lto_input_ts_decl_minimal_tree_pointers): Same.
3267 (lto_input_ts_decl_common_tree_pointers): Same.
3268 (lto_input_ts_decl_non_common_tree_pointers): Same.
3269 (lto_input_ts_decl_with_vis_tree_pointers): Same.
3270 (lto_input_ts_field_decl_tree_pointers): Same.
3271 (lto_input_ts_function_decl_tree_pointers): Same.
3272 (lto_input_ts_type_common_tree_pointers): Same.
3273 (lto_input_ts_type_non_common_tree_pointers): Same.
3274 (lto_input_ts_list_tree_pointers): Same.
3275 (lto_input_ts_vec_tree_pointers): Same.
3276 (lto_input_ts_exp_tree_pointers): Same.
3277 (lto_input_ts_block_tree_pointers): Same.
3278 (lto_input_ts_binfo_tree_pointers): Same.
3279 (lto_input_ts_constructor_tree_pointers): Same.
3280 (lto_input_ts_omp_clause_tree_pointers): Same.
3281 (streamer_read_tree_body): Same.
3282 * tree-streamer.h: Same.
3283 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
3284 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
3285 (vect_analyze_possibly_independent_ddr): Same.
3286 (vect_analyze_data_ref_dependence): Same.
3287 (vect_compute_data_ref_alignment): Same.
3288 (vect_enhance_data_refs_alignment): Same.
3289 (vect_analyze_data_ref_access): Same.
3290 (vect_check_gather_scatter): Same.
3291 (vect_find_stmt_data_reference): Same.
3292 (vect_create_addr_base_for_vector_ref): Same.
3293 (vect_setup_realignment): Same.
3294 (vect_supportable_dr_alignment): Same.
3295 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
3296 (adjust_phi_and_debug_stmts): Same.
3297 (vect_set_loop_mask): Same.
3298 (add_preheader_seq): Same.
3299 (vect_maybe_permute_loop_masks): Same.
3300 (vect_set_loop_masks_directly): Same.
3301 (vect_set_loop_condition_masked): Same.
3302 (vect_set_loop_condition_unmasked): Same.
3303 (slpeel_duplicate_current_defs_from_edges): Same.
3304 (slpeel_add_loop_guard): Same.
3305 (slpeel_can_duplicate_loop_p): Same.
3306 (create_lcssa_for_virtual_phi): Same.
3307 (iv_phi_p): Same.
3308 (vect_update_ivs_after_vectorizer): Same.
3309 (vect_gen_vector_loop_niters_mult_vf): Same.
3310 (slpeel_update_phi_nodes_for_loops): Same.
3311 (slpeel_update_phi_nodes_for_guard1): Same.
3312 (find_guard_arg): Same.
3313 (slpeel_update_phi_nodes_for_guard2): Same.
3314 (slpeel_update_phi_nodes_for_lcssa): Same.
3315 (vect_do_peeling): Same.
3316 (vect_create_cond_for_alias_checks): Same.
3317 (vect_loop_versioning): Same.
3318 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
3319 (vect_inner_phi_in_double_reduction_p): Same.
3320 (vect_analyze_scalar_cycles_1): Same.
3321 (vect_fixup_scalar_cycles_with_patterns): Same.
3322 (vect_get_loop_niters): Same.
3323 (bb_in_loop_p): Same.
3324 (vect_get_max_nscalars_per_iter): Same.
3325 (vect_verify_full_masking): Same.
3326 (vect_compute_single_scalar_iteration_cost): Same.
3327 (vect_analyze_loop_form_1): Same.
3328 (vect_analyze_loop_form): Same.
3329 (vect_active_double_reduction_p): Same.
3330 (vect_analyze_loop_operations): Same.
3331 (neutral_op_for_slp_reduction): Same.
3332 (vect_is_simple_reduction): Same.
3333 (vect_model_reduction_cost): Same.
3334 (get_initial_def_for_reduction): Same.
3335 (get_initial_defs_for_reduction): Same.
3336 (vect_create_epilog_for_reduction): Same.
3337 (vectorize_fold_left_reduction): Same.
3338 (vectorizable_reduction): Same.
3339 (vectorizable_induction): Same.
3340 (vectorizable_live_operation): Same.
3341 (loop_niters_no_overflow): Same.
3342 (vect_get_loop_mask): Same.
3343 (vect_transform_loop_stmt): Same.
3344 (vect_transform_loop): Same.
3345 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
3346 (vect_determine_precisions): Same.
3347 (vect_pattern_recog_1): Same.
3348 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3349 * tree-vect-stmts.c (stmt_vectype): Same.
3350 (process_use): Same.
3351 (vect_init_vector_1): Same.
3352 (vect_truncate_gather_scatter_offset): Same.
3353 (get_group_load_store_type): Same.
3354 (vect_build_gather_load_calls): Same.
3355 (vect_get_strided_load_store_ops): Same.
3356 (vectorizable_simd_clone_call): Same.
3357 (vectorizable_store): Same.
3358 (permute_vec_elements): Same.
3359 (vectorizable_load): Same.
3360 (vect_transform_stmt): Same.
3361 (supportable_widening_operation): Same.
3362 * tree-vectorizer.c (vec_info::replace_stmt): Same.
3363 (vec_info::free_stmt_vec_info): Same.
3364 (vect_free_loop_info_assumptions): Same.
3365 (vect_loop_vectorized_call): Same.
3366 (set_uid_loop_bbs): Same.
3367 (vectorize_loops): Same.
3368 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
3369 * tree.c (add_tree_to_fld_list): Same.
3370 (fld_type_variant_equal_p): Same.
3371 (fld_decl_context): Same.
3372 (fld_incomplete_type_of): Same.
3373 (free_lang_data_in_binfo): Same.
3374 (need_assembler_name_p): Same.
3375 (find_decls_types_r): Same.
3376 (get_eh_types_for_runtime): Same.
3377 (find_decls_types_in_eh_region): Same.
3378 (find_decls_types_in_node): Same.
3379 (assign_assembler_name_if_needed): Same.
3380 * value-prof.c (stream_out_histogram_value): Same.
3381 * value-prof.h: Same.
3382 * var-tracking.c (use_narrower_mode): Same.
3383 (prepare_call_arguments): Same.
3384 (vt_expand_loc_callback): Same.
3385 (resolve_expansions_pending_recursion): Same.
3386 (vt_expand_loc): Same.
3387 * varasm.c (const_hash_1): Same.
3388 (compare_constant): Same.
3389 (tree_output_constant_def): Same.
3390 (simplify_subtraction): Same.
3391 (get_pool_constant): Same.
3392 (output_constant_pool_2): Same.
3393 (output_constant_pool_1): Same.
3394 (mark_constants_in_pattern): Same.
3395 (mark_constant_pool): Same.
3396 (get_section_anchor): Same.
3397 * vr-values.c (compare_range_with_value): Same.
3398 (vr_values::extract_range_from_phi_node): Same.
3399 * vr-values.h: Same.
3400 * web.c (unionfind_union): Same.
3401 * wide-int.h: Same.
3402
3403 2019-07-09 Martin Sebor <msebor@redhat.com>
3404
3405 PR c++/61339
3406 * align.h: Change class-key from class to struct and vice versa
3407 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
3408 * alloc-pool.h: Same.
3409 * asan.c (shadow_mem_size): Same.
3410 * auto-profile.c: Same.
3411 * basic-block.h: Same.
3412 * bitmap.h: Same.
3413 * cfgexpand.c (set_rtl): Same.
3414 (expand_one_stack_var_at): Same.
3415 * cfghooks.h: Same.
3416 * cfgloop.h: Same.
3417 * cgraph.h: Same.
3418 * config/i386/i386.h: Same.
3419 * df-problems.c (df_print_bb_index): Same.
3420 * df-scan.c: Same.
3421 * df.h (df_single_use): Same.
3422 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
3423 (layout::annotation_line_showed_range_p): Same.
3424 (get_printed_columns): Same.
3425 (correction::ensure_terminated): Same.
3426 (line_corrections::~line_corrections): Same.
3427 * dojump.h: Same.
3428 * dse.c: Same.
3429 * dump-context.h: Same.
3430 * dumpfile.h: Same.
3431 * dwarf2out.c: Same.
3432 * edit-context.c: Same.
3433 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
3434 * flags.h: Same.
3435 * function.c (assign_stack_local): Same.
3436 * function.h: Same.
3437 * gcc.c: Same.
3438 * gcov.c (block_info::block_info): Same.
3439 * genattrtab.c: Same.
3440 * genextract.c: Same.
3441 * genmatch.c (comparison_code_p): Same.
3442 (id_base::id_base): Same.
3443 (decision_tree::print): Same.
3444 * genoutput.c: Same.
3445 * genpreds.c (write_one_predicate_function): Same.
3446 * genrecog.c (validate_pattern): Same.
3447 (find_operand_positions): Same.
3448 (optimize_subroutine_group): Same.
3449 (merge_pattern_transition::merge_pattern_transition): Same.
3450 (merge_pattern_info::merge_pattern_info): Same.
3451 (merge_state_result::merge_state_result): Same.
3452 (merge_into_state): Same.
3453 * gensupport.c: Same.
3454 * gensupport.h: Same.
3455 * ggc-common.c (init_ggc_heuristics): Same.
3456 * ggc-tests.c (test_union): Same.
3457 * gimple-loop-interchange.cc (dump_induction): Same.
3458 * gimple-loop-versioning.cc: Same.
3459 * gimple-match.h (gimple_match_cond::any_else): Same.
3460 * gimple-ssa-backprop.c: Same.
3461 * gimple-ssa-sprintf.c: Same.
3462 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
3463 Same.
3464 (store_immediate_info::store_immediate_info): Same.
3465 (merged_store_group::apply_stores): Same.
3466 (get_location_for_stmts): Same.
3467 * gimple-ssa-strength-reduction.c: Same.
3468 * gimple-ssa-warn-alloca.c: Same.
3469 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
3470 * godump.c (go_type_decl): Same.
3471 * hash-map-tests.c (test_map_of_strings_to_int): Same.
3472 * hash-map.h: Same.
3473 * hash-set-tests.c (test_set_of_strings): Same.
3474 * hsa-brig.c: Same.
3475 * hsa-common.h: Same.
3476 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
3477 * input.c (assert_loceq): Same.
3478 * input.h: Same.
3479 * ipa-cp.c: Same.
3480 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
3481 * ipa-fnsummary.h: Same.
3482 * ipa-inline.h: Same.
3483 * ipa-prop.h: Same.
3484 * ipa-split.c (visit_bb): Same.
3485 * ira-int.h (minmax_set_iter_next): Same.
3486 * loop-invariant.c: Same.
3487 * loop-iv.c: Same.
3488 * lra-eliminations.c: Same.
3489 * lra-int.h: Same.
3490 * lra-lives.c (mark_regno_dead): Same.
3491 * lra-remat.c: Same.
3492 * lra-spills.c: Same.
3493 * lto-streamer.h: Same.
3494 * mem-stats.h: Same.
3495 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
3496 * omp-low.c (omp_clause_aligned_alignment): Same.
3497 * optabs-query.h (get_vcond_eq_icode): Same.
3498 * optabs.h: Same.
3499 * opts.c (wrap_help): Same.
3500 * poly-int.h: Same.
3501 * predict.c (predict_paths_leading_to_edge): Same.
3502 * pretty-print.h: Same.
3503 * profile-count.h: Same.
3504 * read-md.h: Same.
3505 * read-rtl-function.c: Same.
3506 * ree.c: Same.
3507 * reginfo.c: Same.
3508 * regrename.c: Same.
3509 * regrename.h: Same.
3510 * reload.h: Same.
3511 * rtl-iter.h: Same.
3512 * rtl.h (costs_add_n_insns): Same.
3513 * sanopt.c: Same.
3514 * sched-int.h: Same.
3515 * sel-sched-ir.h: Same.
3516 * selftest.h: Same.
3517 * sese.h (vec_find): Same.
3518 * stmt.c: Same.
3519 * target-globals.h: Same.
3520 * tree-affine.c (aff_combination_find_elt): Same.
3521 * tree-affine.h: Same.
3522 * tree-data-ref.h: Same.
3523 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3524 * tree-predcom.c: Same.
3525 * tree-scalar-evolution.c (find_var_scev_info): Same.
3526 * tree-ssa-alias.h: Same.
3527 * tree-ssa-ccp.c: Same.
3528 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3529 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3530 (rewrite_mem_refs): Same.
3531 (execute_sm_if_changed): Same.
3532 (hoist_memory_references): Same.
3533 * tree-ssa-loop-ivopts.c (operator<=): Same.
3534 * tree-ssa-loop.h: Same.
3535 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3536 * tree-ssa-structalias.c: Same.
3537 * tree-switch-conversion.h (cluster::cluster): Same.
3538 (simple_cluster::simple_cluster): Same.
3539 * tree-vect-patterns.c (type_conversion_p): Same.
3540 * tree-vectorizer.c (dump_stmt_cost): Same.
3541 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3542 * tree.c (protected_set_expr_location): Same.
3543 * tree.h (desired_pro_or_demotion_p): Same.
3544 (fndecl_built_in_p): Same.
3545 * unique-ptr-tests.cc: Same.
3546 * var-tracking.c (delete_variable_part): Same.
3547 * varasm.c (assemble_real): Same.
3548 (tree_output_constant_def): Same.
3549 * vec.c: Same.
3550 * wide-int-bitmask.h: Same.
3551 * wide-int.h (decompose): Same.
3552
3553 2019-07-09 Richard Biener <rguenther@suse.de>
3554
3555 PR tree-optimization/91114
3556 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3557 find a vector type isn't fatal.
3558
3559 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3560
3561 * config/aarch64/aarch64-simd.md
3562 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3563 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3564 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3565 (*aarch64_crypto_aese_fused,
3566 *aarch64_crypto_aesd_fused): Update to new definition.
3567 * config/aarch64/aarch64.c
3568 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3569
3570 2019-07-09 Richard Biener <rguenther@suse.de>
3571
3572 * gimple-match.h (gimple_match_op::resimplify): New.
3573 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3574 gimple_resimplify4, gimple_resimplify5): Remove.
3575 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3576 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3577 Make static.
3578 (gimple_match_op::resimplify): New.
3579 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3580 according to availability. Use gimple_match_op::resimplify.
3581
3582 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
3583
3584 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3585
3586 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3587
3588 * config/arm/crypto.md:
3589 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3590 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3591 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3592 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3593 * config/arm/arm.c
3594 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3595 * config/arm/aarch-common-protos.h
3596 (aarch_crypto_can_dual_issue): Remove.
3597 * config/arm/aarch-common.c
3598 (aarch_crypto_can_dual_issue): Likewise.
3599 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3600 * config/arm/cortex-a53.md: Likewise.
3601 * config/arm/cortex-a57.md: Likewise.
3602 * config/arm/iterators.md:
3603 (CRYPTO_BINARY): Redefine.
3604 (CRYPTO_UNARY): Removed.
3605 (CRYPTO_AES, CRYPTO_AESMC): New.
3606
3607 2019-07-09 Richard Biener <rguenther@suse.de>
3608
3609 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3610 (vn_reference_lookup_3): If the main ref has no access path recorded
3611 but orig_ref has use it to do access-path based disambiguation.
3612 (vn_reference_lookup_pieces): Adjust.
3613 (vn_reference_lookup): Pass down original ref if we valueized.
3614
3615 2019-07-09 Martin Liska <mliska@suse.cz>
3616
3617 * doc/extend.texi: Document influence on loop
3618 optimizers.
3619
3620 2019-07-09 Martin Liska <mliska@suse.cz>
3621
3622 * lto-compress.c (lto_normalized_zstd_level): Do not use
3623 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3624 of libzstd. One can use 0 as a default compression level.
3625
3626 2019-07-09 Martin Liska <mliska@suse.cz>
3627
3628 * doc/invoke.texi: Add link from -fprofile-dir option.
3629 Use better wording for 'gcno filename'.
3630
3631 2019-07-08 Martin Sebor <msebor@redhat.com>
3632
3633 PR middle-end/71924
3634 PR middle-end/90549
3635 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
3636 comment.
3637 (args_loc_t): New type.
3638 (args_loc_t, locmap_t): same.
3639 (diag_returned_locals): New function.
3640 (is_addr_local): Same.
3641 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3642 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3643 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3644
3645 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3646
3647 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3648 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
3649 and casts in offset when different, both through gimple stmts
3650 and through trees. Rewritten using loops to minimize code duplication
3651 for each operand.
3652
3653 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
3654
3655 * emit-rtl.c (set_insn_locations): New function moved from...
3656 * function.c (set_insn_locations): ...here.
3657 * ira-emit.c (emit_moves): Propagate location of the first instruction
3658 to the inserted move instructions.
3659 * reg-stack.c (compensate_edge): Set the location if the sequence is
3660 inserted on the edge.
3661 * rtl.h (set_insn_locations): Declare.
3662
3663 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3664
3665 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3666 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3667 .machine string.
3668
3669 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3670
3671 PR rtl-optimization/88233
3672 * common.opt (fsplit-wide-types-early): New option.
3673 * common/config/rs6000/rs6000-common.c
3674 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3675 OPT_LEVELS_ALL.
3676 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3677 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3678 flag_split_wide_types_early.
3679 (pass_data_lower_subreg3): New.
3680 (pass_lower_subreg3): New.
3681 (make_pass_lower_subreg3): New.
3682 * passes.def (pass_lower_subreg2): Move after the loop passes.
3683 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3684 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3685 the pass pipeline; its previous place is taken by ...
3686 (make_pass_lower_subreg3): ... this.
3687
3688 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3689
3690 * config/s390/s390.c (s390_shift_truncation_mask): Define.
3691 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3692
3693 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3694
3695 * config/s390/constraints.md: Add new jsc constraint.
3696 * config/s390/predicates.md: New predicates.
3697 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
3698 * config/s390/s390.c (s390_valid_shift_count): New function.
3699 (print_shift_count_operand): Use s390_valid_shift_count.
3700 (print_operand): Likewise.
3701 * config/s390/s390.md: Use new predicate.
3702 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
3703 * config/s390/vector.md: Use new predicate.
3704
3705 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
3706
3707 Avoid clash with system header declaration.
3708 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
3709 Remove unused declaration.
3710
3711 2019-07-08 Andrew Waterman <andrew@sifive.com>
3712 Jim Wilson <jimw@sifive.com>
3713
3714 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
3715 bitsize instead of BITS_PER_WORD.
3716 gcc/testsuite/
3717
3718 2019-07-08 Martin Liska <mliska@suse.cz>
3719
3720 * collect2.c (defined): Revert to before r254460.
3721 (scan_prog_file): Revert to before r254460.
3722
3723 2019-07-08 Richard Biener <rguenther@suse.de>
3724
3725 PR tree-optimization/83518
3726 * tree-ssa-sccvn.c: Include splay-tree.h.
3727 (struct pd_range, struct pd_data): New.
3728 (struct vn_walk_cb_data): Add data to track partial definitions.
3729 (vn_walk_cb_data::~vn_walk_cb_data): New.
3730 (vn_walk_cb_data::push_partial_def): New.
3731 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
3732 (vn_reference_lookup_2): When partial defs are registered give up.
3733 (vn_reference_lookup_3): Track partial defs for memset and
3734 constructor zeroing and for defs from constants.
3735
3736 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3737
3738 * doc/install.texi (bootstrap-Og): Document.
3739
3740 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3741
3742 * config/riscv/pic.md (*local_pic_load_s<mode>)
3743 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
3744 referenced by <mode>, giving...
3745 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
3746 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
3747 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
3748 use <X:MODE> for the mode attribute.
3749
3750 2019-07-07 Jeff Law <law@redhat.com>
3751
3752 PR tree-optimization/91090
3753 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
3754 in handling of ranges to simplify switch statements.
3755
3756 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3757
3758 * config/darwin.c (darwin_override_options): Make a final check on PIC
3759 options.
3760
3761 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3762
3763 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
3764 on for kernel code.
3765
3766 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3767
3768 PR target/91068
3769 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
3770 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
3771 instead of matching them to "l" output operands.
3772
3773 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3774
3775 * config/mips/mips.c (mips_split_move): Zero-initialize addr
3776 and check whether addr.reg is nonnull before using it.
3777
3778 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3779
3780 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
3781 ctx->for_simd_scan_phase simd copy the outer var to the privatized
3782 variable(s). For conditional lastprivate look through outer
3783 GIMPLE_OMP_SCAN context.
3784 (lower_omp_1): For conditional lastprivate look through outer
3785 GIMPLE_OMP_SCAN context.
3786
3787 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
3788 member to combined_into_simd_safelen1.
3789 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
3790 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
3791 clauses if ctx->combined_into_simd_safelen1 put statements after the
3792 predicate conditionalized block rather than into it.
3793
3794 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3795
3796 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
3797 operand 1.
3798 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
3799 Make the choice of <mode> explicit, giving...
3800 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
3801
3802 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3803
3804 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
3805 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
3806 of .md attributes.
3807 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
3808 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
3809 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
3810 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
3811 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
3812 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
3813 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
3814 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
3815 (*avx512f_scatterdi<mode>): Likewise.
3816 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
3817
3818 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3819
3820 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
3821 specify the mode iterator referenced by <mode>, giving...
3822 (*push1_h8300hs_<QHI:mode>): ...this.
3823
3824 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3825
3826 * config/gcn/gcn-valu.md
3827 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
3828 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
3829 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
3830 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
3831 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
3832 but using the _exec comparison patterns.
3833 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
3834 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
3835 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
3836 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
3837 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
3838 but using the _exec comparison patterns.
3839
3840 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3841
3842 * config/arm/sync.md
3843 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
3844 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
3845 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
3846 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
3847 <SIDI:cas_cmp_str>.
3848
3849 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3850
3851 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
3852 (maybe_lookup_ctx): Add forward declaration.
3853 (omp_find_scan): Likewise. Walk into body of simd if composited
3854 with worksharing loop.
3855 (scan_omp_simd_scan): New function.
3856 (scan_omp_1_stmt): Call it.
3857 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
3858 ctx->for_simd_scan_phase.
3859 (lower_rec_input_clauses): Do much less work for inscan reductions
3860 in ctx->for_simd_scan_phase is_simd regions.
3861 (lower_omp_scan): Set is_simd also on simd constructs composited
3862 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
3863 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
3864 emit their body after in simd constructs composited with worksharing
3865 loop.
3866 (lower_omp_for_scan): Handle worksharing loop composited with simd.
3867
3868 * omp-low.c (omp_find_scan): Make static.
3869 (lower_omp_for_scan): Fix order of merge arguments in input phase of
3870 the second loop, var2 represents the first partial sum and so needs
3871 to go before rprivb[ivar].
3872
3873 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
3874
3875 * config/rs6000/rs6000-logue.c: Remove unused code.
3876
3877 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3878
3879 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
3880
3881 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
3882
3883 PR target/90712
3884 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
3885 check with a frame laid out check.
3886
3887 2019-07-05 Richard Biener <rguenther@suse.de>
3888
3889 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
3890 when comparing against a store with possibly the same value.
3891
3892 2019-07-05 Richard Biener <rguenther@suse.de>
3893
3894 PR tree-optimization/91091
3895 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
3896 (walk_non_aliased_vuses): Likewise.
3897 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
3898 (get_continuation_for_phi): New tbaa_p parameter and pass
3899 it down.
3900 (walk_non_aliased_vuses): Likewise.
3901 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
3902 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3903 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
3904 Likewise.
3905 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
3906 (adjust_offsets_for_equal_base_address): New function.
3907 (vn_reference_lookup_3): Use it to catch more base equivalences.
3908 Handle and pass down tbaa_p flag.
3909 (vn_reference_lookup_pieces): Adjust.
3910 (vn_reference_lookup): Remove alias-set altering, instead pass
3911 down false as tbaa_p.
3912
3913 2019-07-05 Richard Biener <rguenther@suse.de>
3914
3915 PR tree-optimization/91091
3916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
3917 accesses can happen with -fno-strict-aliasing.
3918
3919 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
3920
3921 * tree-ssa-alias.c (alias_stats): Add
3922 nonoverlapping_component_refs_since_match_p_must_overlap.
3923 (dump_alias_stats): Print it.
3924 (nonoverlapping_component_refs_since_match_p): Add early exit.
3925 (nonoverlapping_component_refs_p): Do not account early exit.
3926
3927 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3928
3929 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
3930 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
3931 (emit_eh_dispatch): Delete.
3932 (lower_catch): Emit the eh_dispatch manually and set the location of
3933 the first catch statement onto it.
3934 (lower_eh_filter): Emit the eh_dispatch manually and set location.
3935 (lower_eh_dispatch): Propagate location.
3936 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
3937 (eliminate_build): Likewise.
3938
3939 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
3942 phi nodes if possible.
3943 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
3944 location info on the newly created statement.
3945 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
3946 newly created increment if needed.
3947
3948 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3949
3950 PR middle-end/78884
3951 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
3952 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
3953 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
3954 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
3955 ctx->add_safelen1 is set.
3956
3957 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
3958 GOMP_loop_start at the start of second worksharing loop in a scan.
3959 For nowait, don't emit GOMP_loop_end_nowait at the end of first
3960 worksharing loop in a scan even if there are conditional lastprivates,
3961 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
3962
3963 2019-07-04 Jan Hubicka <jh@suse.cz>
3964
3965 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
3966 Fix check for match in the ref walk.
3967
3968 2019-07-04 Martin Liska <mliska@suse.cz>
3969
3970 * tree-ssa-loop-niter.c
3971 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
3972 (estimate_numbers_of_iterations):
3973 Support __builtin_expect_with_probability for analysis
3974 of # of loop iterations.
3975
3976 2019-07-04 Alexandre Oliva <oliva@adacore.com>
3977
3978 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
3979 * except.c: Likewise.
3980 * expr.c (expand_expr_real_1): Reject it.
3981 * gimplify.c (gimplify_expr): Gimplify it, within
3982 TRY_FINALLY_EXPR.
3983 * tree-dump.c (dequeue_and_dump): Dump it.
3984 * tree-pretty-print.c (dump_generic_node): Likewise.
3985 * tree.c (block_may_fallthru): Handle it.
3986 * tree.def (EH_ELSE_EXPR): Introduce it.
3987 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
3988 with GIMPLE_EH_ELSE as try/finally/else.
3989
3990 2019-07-04 Richard Biener <rguenther@suse.de>
3991
3992 PR ipa/91062
3993 * tree-pass.h (execute_all_ipa_transforms): Add a flag
3994 parameter whether to disable GC collection.
3995 * passes.c (execute_one_ipa_transform_pass): Likewise, and
3996 honor it.
3997 (execute_all_ipa_transforms): Likewise and pass it down.
3998 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
3999 collection from applying IPA transforms.
4000 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
4001 from applying IPA transforms.
4002
4003 2019-07-04 Richard Biener <rguenther@suse.de>
4004
4005 PR tree-optimization/90911
4006 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
4007 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
4008 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4009 scalar_loop_scaling.
4010 (vect_transform_loop): Scale scalar loop profile if needed.
4011 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
4012 the loop copy from if-conversion adjust edge probabilities
4013 and scale the vectorized loop body profile, queue the scalar
4014 profile for updating after peeling.
4015
4016 2019-07-04 Jan Hubicka <jh@suse.cz>
4017
4018 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
4019 parameters; return early for must-alias.
4020 (indirect_ref_may_alias_decl_p): Likewise; when establishing
4021 outer types match, try nonoverlapping_component_refs
4022 if must-alias is not obvious.
4023 (indirect_refs_may_alias_p): Likewise.
4024 (refs_may_alias_p_2): Likewise.
4025
4026 2019-07-04 Richard Biener <rguenther@suse.de>
4027
4028 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
4029 argument.
4030 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
4031 globals into...
4032 (struct vn_walk_cb_data): New callback data struct.
4033 (vn_reference_lookup_2): Adjust.
4034 (vn_reference_lookup_3): Likewise.
4035 (vn_reference_lookup_pieces): Likewise.
4036 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
4037 (visit_reference_op_load): Adjust.
4038
4039 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR tree-optimization/91063
4042 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
4043 stmt from stmts sequence before calling vect_init_vector_1.
4044 Formatting fix.
4045
4046 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4047
4048 PR target/88833
4049 * fwprop.c (reg_single_def_p): New function.
4050 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
4051 (forward_propagate_into): New parameter reg_prop_only
4052 with default value false.
4053 Propagate def's src into loop only if SET_SRC and SET_DEST
4054 of def_set have single definitions.
4055 Likewise if reg_prop_only is set to true.
4056 (fwprop): New param fwprop_addr_p.
4057 Integrate fwprop_addr into fwprop.
4058 (fwprop_addr): Remove.
4059 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
4060 to true.
4061 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
4062 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
4063 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
4064
4065 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4066
4067 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
4068 in worksharing loop scans.
4069
4070 PR tree-optimization/91074
4071 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
4072 temporary.
4073
4074 PR rtl-optimization/90756
4075 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
4076 for VECTOR_TYPE_P.
4077
4078 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
4079
4080 * config/aarch64/aarch64.md: Remove redundant constraints from
4081 define_expand but keep some patterns untouched if they are
4082 specially selected by TARGET_SECONDARY_RELOAD hook.
4083 * config/aarch64/aarch64-sve.md: Likewise.
4084 * config/aarch64/atomics.md: Remove redundant constraints from
4085 define_expand.
4086 * config/aarch64/aarch64-simd.md: Likewise.
4087
4088 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
4089
4090 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
4091 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
4092 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
4093 clauses.
4094 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
4095 DARWIN_NOPIE_SPEC.
4096
4097 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
4098
4099 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
4100 (STARTFILE_SPEC): Split crt3 into a separate spec.
4101 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
4102 (DARWIN_CRT2_SPEC): New.
4103 (DARWIN_CRT3_SPEC): New.
4104 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
4105 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
4106 (DARWIN_CRT3_SPEC): New.
4107
4108 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
4109
4110 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
4111 Change the RTL attribute "length" from "4" to "*" to allow the
4112 length attribute to be adjusted automatically for prefixed load,
4113 store, and add immediate instructions.
4114 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
4115 Likewise.
4116 (extendsi<mode>2, EXTSI iterator): Likewise.
4117 (movsi_internal1): Likewise.
4118 (movsi_from_sf): Likewise.
4119 (movdi_from_sf_zero_ext): Likewise.
4120 (mov<mode>_internal): Likewise.
4121 (movcc_internal1, QHI iterator): Likewise.
4122 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
4123 (movsf_from_si): Likewise.
4124 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
4125 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
4126 (mov<mode>, FMOVE128 iterator): Likewise.
4127 (movdi_internal64): Likewise.
4128 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
4129 Likewise.
4130 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
4131 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
4132 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
4133 (vsx_splat_v4sf): Likewise.
4134
4135 2019-07-03 Mark Wielaard <mark@klomp.org>
4136
4137 PR debug/90981
4138 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
4139 DW_AT_addr_base if there is actually a .debug_addr section with
4140 addresses.
4141 (output_addr_table): Add DWARF5 table header generation here after
4142 checking there are actually any addresses from...
4143 (dwarf2out_finish): ...here.
4144 * testsuite/g++.dg/pr90981.C: New test.
4145
4146 2019-07-03 Richard Biener <rguenther@suse.de>
4147
4148 PR middle-end/91069
4149 * match.pd (vec_perm -> bit_insert): Fix element read from
4150 first vector.
4151
4152 2019-07-03 Martin Liska <mliska@suse.cz>
4153
4154 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
4155 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
4156 condition.
4157 * generic-match-head.c: Include dbgcnt.h.
4158 * gimple-match-head.c: Likewise.
4159
4160 2019-07-03 Martin Liska <mliska@suse.cz>
4161
4162 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
4163 (GCOV_COUNTER_V_TOPN): New.
4164 (GCOV_COUNTER_V_INDIR): Use _topn.
4165 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
4166 (GCOV_TOPN_VALUES): New.
4167 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
4168 (GCOV_TOPN_VALUES_COUNTERS): New.
4169 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
4170 * tree-profile.c:
4171 (gimple_init_gcov_profiler): Rename variables from one_value
4172 to topn_values.
4173 (gimple_gen_one_value_profiler): Remove.
4174 (gimple_gen_topn_values_profiler): New function.
4175 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
4176 names instead of SINGLE_VALUE.
4177 (stream_out_histogram_value): Likewise.
4178 (stream_in_histogram_value): Likewise.
4179 (get_most_common_single_value): Likewise.
4180 (gimple_divmod_fixed_value_transform): Likewise.
4181 (gimple_stringops_transform): Likewise.
4182 (gimple_divmod_values_to_profile): Likewise.
4183 (gimple_stringops_values_to_profile): Likewise.
4184 (gimple_find_values_to_profile): Likewise.
4185 * value-prof.h (enum hist_type): Rename to TOPN.
4186 (gimple_gen_one_value_profiler): Remove.
4187 (gimple_gen_topn_values_profiler): New.
4188
4189 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
4190
4191 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
4192 if it has the DW_AT_data_member_location attribute.
4193
4194 2019-07-03 Richard Biener <rguenther@suse.de>
4195
4196 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
4197 dumping.
4198
4199 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
4200
4201 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
4202 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
4203 (tlsdesc_small_sve_<mode>): Likewise.
4204
4205 2019-07-03 Martin Liska <mliska@suse.cz>
4206
4207 * Makefile.in: Define ZSTD_LIB.
4208 * common.opt: Adjust compression level
4209 to support also zstd levels.
4210 * config.in: Regenerate.
4211 * configure: Likewise.
4212 * configure.ac: Add --with-zstd and --with-zstd-include options
4213 and detect ZSTD.
4214 * doc/install.texi: Mention zstd dependency.
4215 * gcc.c: Print supported LTO compression algorithms.
4216 * lto-compress.c (lto_normalized_zstd_level): Likewise.
4217 (lto_compression_zstd): Likewise.
4218 (lto_uncompression_zstd): Likewise.
4219 (lto_end_compression): Dispatch in between zlib and zstd.
4220 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
4221 (lto_uncompression_zlib): Make it static.
4222 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
4223 * lto-section-in.c (lto_get_section_data): Pass info
4224 about used compression.
4225 * lto-streamer-out.c: By default use zstd when possible.
4226 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
4227 (TV_IPA_LTO_COMPRESS): Likewise for compression.
4228
4229 2019-07-03 Martin Liska <mliska@suse.cz>
4230
4231 * lto-section-in.c (lto_get_section_data): Add "lto" section.
4232 * lto-section-out.c (lto_destroy_simple_output_block): Never
4233 compress LTO_section_lto section.
4234 * lto-streamer-out.c (produce_asm): Do not set major_version
4235 and minor_version.
4236 (lto_output_toplevel_asms): Likewise.
4237 (produce_lto_section): New function.
4238 (lto_output): Call produce_lto_section.
4239 (lto_write_mode_table): Do not set major_version and
4240 minor_version.
4241 (produce_asm_for_decls): Likewise.
4242 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
4243 type.
4244 (struct lto_header): Remove.
4245 (struct lto_section): New struct.
4246 (struct lto_simple_header): Do not inherit from lto_header.
4247 (struct lto_file_decl_data): Add lto_section_header field.
4248
4249 2019-07-03 Martin Liska <mliska@suse.cz>
4250
4251 * lra-eliminations.c (eliminate_regs_in_insn): Remove
4252 dead assignemts.
4253 * reg-stack.c (check_asm_stack_operands): Likewise.
4254 * tree-ssa-structalias.c (create_function_info_for): Likewise.
4255 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4256 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
4257 force_expand_binop.
4258
4259 2019-07-03 Martin Liska <mliska@suse.cz>
4260
4261 PR tree-optimization/90892
4262 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
4263 in string constants.
4264
4265 2019-07-03 Martin Liska <mliska@suse.cz>
4266
4267 PR middle-end/90899
4268 * multiple_target.c (create_dispatcher_calls): Add to comdat
4269 group only if set for ifunc.
4270
4271 2019-07-03 Martin Liska <mliska@suse.cz>
4272
4273 PR target/88056
4274 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4275 Define local_object_name in outer scope in order to handle
4276 use-after-scope issue.
4277
4278 2019-07-03 Martin Liska <mliska@suse.cz>
4279
4280 * common.opt: Add fprofile-note.
4281 * coverage.c (coverage_init): Append the option
4282 to bbg_file_name.
4283 * doc/invoke.texi: Document -fprofile-note.
4284
4285 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4286
4287 PR tree-optimization/91033
4288 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
4289 vect_analyze_data_refs): Add bool * arguments.
4290 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
4291 if failure is due to scatter/gather, set *fatal to false if non-NULL.
4292 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4293 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
4294 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
4295 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
4296 vect_analyze_data_refs caller.
4297
4298 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
4299 clause.
4300 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
4301 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
4302 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
4303 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4304 OMP_CLAUSE__SCANTEMP_ entry.
4305 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
4306 * tree-pretty-print.c (dump_omp_clause): Likewise.
4307 * tree-nested.c (convert_nonlocal_omp_clauses,
4308 convert_local_omp_clauses): Likewise.
4309 * omp-general.h (struct omp_for_data): Add have_scantemp and
4310 have_nonctrl_scantemp members.
4311 * omp-general.c (omp_extract_for_data): Initialize them.
4312 * omp-low.c (struct omp_context): Add scan_exclusive member.
4313 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
4314 result again with GF_OMP_FOR_KIND_MASK. Initialize also
4315 ctx->scan_exclusive.
4316 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
4317 of !ctx->scan_inclusive.
4318 (lower_rec_input_clauses): Simplify gimplification of dtors using
4319 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
4320 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
4321 loops. Don't add barrier for reduction_omp_orig_ref if
4322 ctx->scan_??xclusive.
4323 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
4324 (lower_omp_scan): Use ctx->scan_exclusive instead
4325 of !ctx->scan_inclusive. Handle worksharing loops with inscan
4326 reductions. Use new_vard != new_var instead of repeated
4327 omp_is_reference calls.
4328 (omp_find_scan, lower_omp_for_scan): New functions.
4329 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
4330 inscan reductions.
4331 * omp-expand.c (expand_omp_scantemp_alloc): New function.
4332 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
4333 and fd->have_scantemp.
4334
4335 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
4336 on worksharing loop propagate it as shared clause to containing
4337 combined parallel.
4338
4339 * omp-expand.c (expand_omp_for_static_nochunk,
4340 expand_omp_for_static_chunk): For nowait worksharing loop with
4341 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
4342 at the end.
4343
4344 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
4345
4346 PR testsuite/91065
4347 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
4348 to reference fake_var.
4349
4350 2019-07-02 qing zhao <qing.zhao@oracle.com>
4351
4352 PR preprocessor/90581
4353 * doc/cppopts.texi: Add document for -fmax-include-depth.
4354 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
4355
4356 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
4357
4358 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
4359 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
4360 (mmx_packssdw): Ditto.
4361 (mmx_punpckhbw): Ditto.
4362 (mmx_punpcklbw): Ditto.
4363 (mmx_punpckhwd): Ditto.
4364 (mmx_punpcklwd): Ditto.
4365 (mmx_punpckhdq): Ditto.
4366 (mmx_punpckldq): Ditto.
4367 (*vec_dupv4hi): Ditto.
4368 (*vec_dupv2si): Ditto.
4369 (mmx_pmovmskb): Ditto.
4370 * config/i386/sse.md (sse_cvtpi2ps): Use
4371 TARGET_SSE2 && SSE_REG_P in split condition.
4372 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
4373 TARGET_SSSE3 && SSE_REGNO_P in split condition.
4374 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
4375 (ssse3_pshufbv8qi3): Ditto.
4376 (ssse3_palignrdi): Ditto.
4377
4378 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
4379
4380 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
4381 with inlined save and restore.
4382
4383 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
4384
4385 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
4386 to be inserted on single successor edge of the entry block. Then call
4387 commit_edge_insertions instead of inserting the instructions manually.
4388 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
4389 RTL expansion and rebuild jump labels chain.
4390
4391 2019-07-02 Richard Biener <rguenther@suse.de>
4392
4393 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
4394 TI_CHREC_KNOWN.
4395 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4396 Define here.
4397 * tree.c (build_common_tree_nodes): Initialize them.
4398 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4399 Make declarations comments.
4400 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
4401 chrec_known): Remove definitions.
4402 (initialize_scalar_evolutions_analyzer): Remove.
4403 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
4404 * tree-streamer.c (preload_common_nodes): Do not preload
4405 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
4406
4407 2019-07-02 Jan Hubicka <jh@suse.cz>
4408
4409 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
4410 sanity check.
4411
4412 2019-07-02 Jan Hubicka <jh@suse.cz>
4413
4414 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
4415 to ..
4416 (nonoverlapping_component_refs_since_match_p): ... this one;
4417 handle also non-decl bases; return -1 if search gave up.
4418 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
4419 nonoverlapping_component_refs_of_decl_p_no_alias to
4420 nonoverlapping_component_refs_since_match_p_may_alias,
4421 nonoverlapping_component_refs_since_match_p_no_alias.
4422 (dump_alias_stats): Update dumping.
4423 (aliasing_matching_component_refs_p): Break out from ...;
4424 dispatch to nonoverlapping_component_refs_for_decl_p
4425 and nonoverlapping_component_refs_since_match_p.
4426 (aliasing_component_refs_p): ... here; call
4427 nonoverlapping_component_refs_p in scenarios where we can not
4428 precisely determine base match.
4429 (decl_refs_may_alias_p): Use
4430 nonoverlapping_component_refs_since_match_p.
4431 (indirect_ref_may_alias_decl_p): Do not call
4432 nonoverlapping_component_refs_p.
4433 (indirect_refs_may_alias_p): Likewise.
4434
4435 2019-07-02 Jan Hubicka <jh@suse.cz>
4436
4437 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
4438 to clobber of return value.
4439
4440 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4441
4442 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
4443 for is_neon_type instructions that have not already been categorized.
4444
4445 2019-07-02 Richard Biener <rguenther@suse.de>
4446
4447 PR tree-optimization/58483
4448 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
4449 for MEM_REF base hashing.
4450 (equal_mem_array_ref_p): Likewise for base comparison.
4451
4452 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4453
4454 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
4455 parameterized name.
4456 (signbit<mode>2): Use that name. Simplify.
4457
4458 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
4459
4460 PR middle-end/66726
4461 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
4462 Tune heuristic from PR71016 to allow MIN / MAX.
4463 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
4464
4465 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4466
4467 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
4468 parameterized name.
4469 (abs<mode>2): Use that name. Simplify.
4470
4471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4472
4473 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
4474 parameterized name.
4475 (neg<mode>2): Use that name. Simplify.
4476
4477 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4478
4479 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
4480 name.
4481 (abs<mode>2): Use that name. Simplify.
4482
4483 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4484
4485 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
4486 name.
4487 (neg<mode>2): Use that name. Simplify.
4488
4489 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
4490
4491 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
4492 ("enabled" attribute): Handle sse_noavx isa attribute.
4493 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
4494 Use TARGET_SSE && SSE_REGNO_P in split condition.
4495 (*vec_dupv2sf): Ditto.
4496
4497 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4498
4499 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4500 name.
4501 (floatsi<mode>2): Use that name. Simplify.
4502
4503 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4504
4505 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4506 parameterized name.
4507 (extenddf<mode>2_vsx): Make this a parameterized name.
4508 (extenddf<mode>2): Use those names. Simplify.
4509
4510 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4511
4512 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4513 name.
4514 (eh_return): Use that name. Simplify.
4515
4516 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4517
4518 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4519 (doloop_end): Use that name. Simplify.
4520
4521 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4522
4523 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4524 parameterized name.
4525 (indirect_jump): Use that name. Simplify.
4526
4527 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4528
4529 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4530 parameterized name.
4531 (abs<mode>2): Use that name. Simplify.
4532
4533 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4534
4535 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4536 parameterized name.
4537 (fix_trunc<mode>si2): Use that name. Simplify.
4538
4539 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4540
4541 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4542 (allocate_stack): Use that name. Simplify.
4543
4544 2019-07-01 Martin Sebor <msebor@redhat.com>
4545
4546 PR middle-end/90923
4547 * hash-map.h (hash_map::put): On insertion invoke element ctor.
4548 (hash_map::get_or_insert): Same. Reformat comment.
4549 * hash-set.h (hash_set::add): On insertion invoke element ctor.
4550 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4551 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4552 * hash-table.h (hash_table::operator=): Prevent copy assignment.
4553 (hash_table::hash_table (const hash_table&)): Use copy ctor
4554 instead of assignment to copy elements.
4555
4556 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
4557 John David Anglin <danglin@gcc.gnu.org>
4558
4559 PR target/90963
4560 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4561 using saved frame pointer.
4562
4563 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
4564
4565 PR middle-end/64242
4566 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4567 Add frame clobber and schedule blockage.
4568
4569 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
4570
4571 * doc/invoke.texi (Link Options): Further editorial changes to
4572 -flinker-output docs.
4573
4574 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4575
4576 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4577 Load both operands of a PLUS into registers separately.
4578
4579 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
4580
4581 * config/s390/vector.md: Fix shift count operand printing.
4582
4583 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4584
4585 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4586
4587 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4588
4589 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4590 Use recog_data to test for an output operand.
4591
4592 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4593
4594 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4595 exclude any others that are disparaged or that are bound to need
4596 a reload or spill.
4597 (ira_get_dup_out_num): Expand comment.
4598
4599 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4600
4601 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4602 constraint string for each operand/alternative combo. Only handle
4603 '%' at the start of constraint strings, and look for it outside
4604 the main loop.
4605
4606 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4607
4608 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4609 alternative_mask instead of HARD_REG_SET to represent a
4610 bitmask of alternatives.
4611 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4612 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4613
4614 2019-07-01 Martin Liska <mliska@suse.cz>
4615
4616 * edit-context.c (test_applying_fixits_unreadable_file): Do not
4617 use () for a constructor call.
4618 (test_applying_fixits_line_out_of_range): Likewise.
4619 * ggc-page.c (alloc_page): Use (void *) for %p printf format
4620 argument.
4621 (free_page): Likewise.
4622
4623 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
4624
4625 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4626 parameter names to match usage (no functional change).
4627 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4628
4629 2019-07-01 Richard Biener <rguenther@suse.de>
4630
4631 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4632 pass parameter.
4633 (pass_fre::execute): Honor it.
4634 * passes.def: Adjust pass_fre invocations to allow iterating,
4635 add non-iterating pass_fre before late threading/dom.
4636
4637 2019-07-01 Richard Biener <rguenther@suse.de>
4638
4639 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4640 TARGET_MEM_REF handling to also handle address-taken ones.
4641
4642 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
4643
4644 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4645 hardware attributes): Document avx512vp2intersect.
4646
4647 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4648
4649 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4650 (abs<mode>2): New expander.
4651 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4652 Use CODE_FOR_ssse3_absv8qi2.
4653 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4654 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4655
4656 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4657
4658 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4659 to sse, sse_noavx and avx. Update all uses.
4660
4661 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4662
4663 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4664 (*mmx_<plusminus_insn><mode>3): Ditto.
4665 (*mmx_mulv4hi3"): Ditto.
4666 (*mmx_smulv4hi3_highpart): Ditto.
4667 (*mmx_umulv4hi3_highpart): Ditto.
4668 (*mmx_pmaddwd): Ditto.
4669 (*sse2_umulv1siv1di3): Ditto.
4670 (*mmx_<code>v4hi3): Ditto.
4671 (*mmx_<code>v8qi3): Ditto.
4672 (mmx_ashr<mode>3): Ditto.
4673 ("mmx_<shift_insn><mode>3): Ditto.
4674 (*mmx_eq<mode>3): Ditto.
4675 (mmx_gt<mode>3): Ditto.
4676 (mmx_andnot<mode>3): Ditto.
4677 (*mmx_<code><mode>3): Ditto.
4678 (*mmx_pinsrw): Ditto.
4679 (*mmx_pextrw): Ditto.
4680 (mmx_pshufw_1): Ditto.
4681 (*mmx_uavgv8qi3): Ditto.
4682 (*mmx_uavgv4hi3): Ditto.
4683 ("mmx_psadbw): Ditto.
4684 * config/i386/sse.md (sse_cvtps2pi): Ditto.
4685 (sse_cvttps2pi): Ditto.
4686 (ssse3_pmaddubsw): Ditto.
4687 (*ssse3_pmulhrswv4hi3): Ditto.
4688 (ssse3_psign<mode>3): Ditto.
4689
4690 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
4691
4692 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
4693 adjustment for bit-fields to all aggregate types.
4694
4695 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
4696
4697 * config/rs6000/predicates.md (pcrel_address): Use
4698 SYMBOL_REF_LOCAL_P to determine if a label is local.
4699 (pcrel_external_address): New predicate.
4700 (non_prefixed_mem_operand): Delete, predicate not used.
4701 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
4702 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
4703 addressing.
4704 (SYMBOL_REF_PCREL_P): Likewise.
4705
4706 PR target/91009
4707 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
4708 alternative.
4709 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
4710 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
4711 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
4712
4713 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4714
4715 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
4716 override on extra_headers.
4717
4718 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4719
4720 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
4721 * config/darwin-driver.c (darwin_default_min_version): Remove newline
4722 from warning.
4723 (darwin_driver_init): Likewise.
4724
4725 2019-06-28 Jan Beulich <jbeulich@suse.com>
4726
4727 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4728 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
4729 Eliminate redundant alternative.
4730
4731 2019-06-28 Jan Beulich <jbeulich@suse.com>
4732
4733 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4734 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
4735 Use vector_operand.
4736
4737 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
4738
4739 * config/arc/arc.c (arc_rtx_costs): All short instructions are
4740 having a lower cost regardless of the speed option.
4741
4742 2019-06-28 Jan Beulich <jbeulich@suse.com>
4743
4744 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
4745 vector_operand plus, on both alternatives, "Bm" constraint.
4746
4747 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
4748
4749 * config/arm/arm.md: Remove redundant constraints from
4750 define_expand but leave reload_inm and reload_outm patterns
4751 untouched since they need special constraints to work.
4752 * config/arm/arm-fixed.md: Remove redundant constraints from
4753 define_expand.
4754 * config/arm/iwmmxt.md: Likewise.
4755 * config/arm/neon.md: Likewise.
4756 * config/arm/sync.md: Likewise.
4757 * config/arm/thumb1.md: Likewise.
4758 * config/arm/vec-common.md: Likewise.
4759
4760 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
4761
4762 * doc/install.texi: Document --disable-tm-clone-registry.
4763
4764 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4765
4766 PR c++/91024
4767 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
4768 statements.
4769
4770 PR tree-optimization/91010
4771 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
4772 return true. Otherwise, don't call operand_equal_p if offset1 or
4773 offset2 is NULL and just return false.
4774
4775 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4776
4777 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
4778 user-specified float mode choice for kernel mode code.
4779
4780 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4781
4782 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
4783 spec.
4784
4785 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4786
4787 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
4788 use longcall for 64b code.
4789
4790 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
4791
4792 * builtins.c (get_memory_rtx): Fix comment.
4793 * optabs.def (movmem_optab): Change to cpymem_optab.
4794 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
4795 (emit_block_move_hints): Change movmem to cpymem.
4796 * defaults.h: Change movmem to cpymem.
4797 * targhooks.c (get_move_ratio): Change movmem to cpymem.
4798 (default_use_by_pieces_infrastructure_p): Ditto.
4799 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
4800 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
4801 to cpymem.
4802 * config/aarch64/aarch64.h: Change movmem to cpymem.
4803 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
4804 * config/alpha/alpha.h: Change movmem to cpymem in comment.
4805 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
4806 movmem to cpymem.
4807 * config/arc/arc-protos.h: Change movmem to cpymem.
4808 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
4809 * config/arc/arc.h: Change movmem to cpymem in comment.
4810 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
4811 * config/arm/arm-protos.h: Change movmem to cpymem in names.
4812 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
4813 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
4814 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
4815 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
4816 * config/avr/avr-protos.h: Change movmem to cpymem.
4817 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
4818 avr_out_movmem): Change movmem to cpymem.
4819 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
4820 Change movmem to cpymem.
4821 * config/bfin/bfin-protos.h: Change movmem to cpymem.
4822 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
4823 Change movmem to cpymem.
4824 * config/bfin/bfin.h: Change movmem to cpymem in comment.
4825 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
4826 * config/c6x/c6x-protos.h: Change movmem to cpymem.
4827 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
4828 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
4829 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
4830 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
4831 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
4832 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
4833 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
4834 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
4835 expand_small_cpymem_or_setmem,
4836 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
4837 expand_set_or_cpymem_constant_prologue,
4838 ix86_expand_set_or_cpymem): Change movmem to cpymem.
4839 * config/i386/i386-protos.h: Change movmem to cpymem.
4840 * config/i386/i386.h: Change movmem to cpymem in comment.
4841 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
4842 (setmem<mode>): Change expansion function name.
4843 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
4844 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
4845 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
4846 * config/m32c/m32c-protos.h: Change movmem to cpymem.
4847 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
4848 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
4849 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
4850 to cpymem.
4851 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
4852 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
4853 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
4854 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
4855 Change movmem to cpymem.
4856 * config/mips/mips.h: Change movmem to cpymem.
4857 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
4858 * config/nds32/nds32-memory-manipulation.c
4859 (nds32_expand_movmemsi_loop_unknown_size,
4860 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
4861 nds32_expand_movmemsi_unroll,
4862 nds32_expand_movmemsi): Change movmem to cpymem.
4863 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
4864 * config/nds32/nds32-protos.h: Change movmem to cpymem.
4865 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
4866 (pa_adjust_insn_length): Change call to compute_movmem_length.
4867 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
4868 movmemdi, movmemdi_prereload,
4869 movmemdi_postreload): Change movmem to cpymem.
4870 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
4871 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
4872 * config/riscv/riscv.c: Change movmem to cpymem in comment.
4873 * config/riscv/riscv.h: Change movmem to cpymem.
4874 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
4875 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
4876 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
4877 movmem to cpymem.
4878 * config/s390/s390-protos.h: Change movmem to cpymem.
4879 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
4880 s390_expand_insv): Change movmem to cpymem.
4881 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
4882 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
4883 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
4884 * config/sparc/sparc.h: Change movmem to cpymem in comment.
4885 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
4886 for nonexistent function.
4887 * config/vax/vax.h: Change movmem to cpymem in comment.
4888 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
4889 * config/visium/visium.h: Change movmem to cpymem in comment.
4890 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
4891 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
4892 * doc/md.texi: Change movmem to cpymem and update description to match.
4893 * doc/rtl.texi: Change movmem to cpymem.
4894 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
4895 * doc/tm.texi: Regenerate.
4896
4897 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
4898
4899 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
4900 -fvariable-expansion-in-unroller by default.
4901 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
4902 default for Power.
4903
4904 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
4905
4906 Revert
4907 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4908 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4909
4910 * config.gcc(rs6000-*-*): Define target_gtfiles.
4911
4912 2019-06-27 Jan Hubicka <jh@suse.cz>
4913
4914 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
4915 (add_type_duplicate): When odr hash is not allocated, to nothing.
4916 (odr_based_tbaa_p): New function.
4917 (set_type_canonical_for_odr_type): New function.
4918 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
4919 set_type_canonical_for_odr_type): New.
4920 * tree.c (gimple_canonical_types_compatible_p): ODR types with
4921 ODR based TBAA are not equivalent to non-ODR types.
4922
4923 2019-06-27 Martin Liska <mliska@suse.cz>
4924
4925 PR tree-optimization/90974
4926 PR rtl-optimization/90975
4927 PR rtl-optimization/90976
4928 PR target/91016
4929 PR tree-optimization/91017
4930 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
4931 unused tmp.
4932 * lra.c (lra_set_insn_recog_data): Remove a leftover from
4933 initial commit of IRA.
4934 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
4935 of op0 and op1.
4936 * tree-vect-loop.c (vect_create_epilog_for_reduction):
4937 Remove unused mode1.
4938 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
4939 to new_stmt_info.
4940
4941 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4942
4943 PR target/90991
4944 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
4945 instead of register_operand for operands[1], add m to its constraints
4946 if operands[2] uses "C" constraint. Ensure in condition that if
4947 operands[2] is not 0, then operands[1] is not a MEM. For last two
4948 alternatives, use unaligned loads instead of aligned if operands[1] is
4949 misaligned_operand.
4950
4951 2019-06-27 Martin Liska <mliska@suse.cz>
4952
4953 * asan.c (asan_emit_allocas_unpoison): Remove obviously
4954 dead assignments.
4955 * bt-load.c (move_btr_def): Likewise.
4956 * builtins.c (expand_builtin_apply_args_1): Likewise.
4957 (expand_builtin_apply): Likewise.
4958 * cfgexpand.c (expand_asm_stmt): Likewise.
4959 (construct_init_block): Likewise.
4960 * cfghooks.c (verify_flow_info): Likewise.
4961 * cfgloopmanip.c (remove_path): Likewise.
4962 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
4963 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
4964 * combine.c (simplify_if_then_else): Likewise.
4965 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
4966 (choose_basereg): Likewise.
4967 (ix86_expand_prologue): Likewise.
4968 (ix86_preferred_output_reload_class): Likewise.
4969 * cselib.c (cselib_record_sets): Likewise.
4970 * df-scan.c (df_scan_alloc): Likewise.
4971 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
4972 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
4973 * emit-rtl.c (try_split): Likewise.
4974 * graphite-scop-detection.c (assign_parameter_index_in_region):
4975 Likewise.
4976 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4977 * ira-color.c (setup_profitable_hard_regs): Likewise.
4978 * ira.c (rtx_moveable_p): Likewise.
4979 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4980 * read-rtl.c (read_subst_mapping): Likewise.
4981 * regrename.c (scan_rtx): Likewise.
4982 * reorg.c (fill_slots_from_thread): Likewise.
4983 * tree-inline.c (tree_function_versioning): Likewise.
4984 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
4985 * tree-ssa-sink.c (statement_sink_location): Likewise.
4986 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4987 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
4988 (vect_create_epilog_for_reduction): Likewise.
4989 * tree.c (build_nonstandard_integer_type): Likewise.
4990
4991 2019-06-27 Richard Biener <rguenther@suse.de>
4992
4993 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
4994
4995 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
4996
4997 PR tree-optimization/89772
4998 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
4999 out-of-bound accesses checking.
5000
5001 2019-06-27 Martin Liska <mliska@suse.cz>
5002
5003 PR tree-optimization/91014
5004 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
5005 when LHS is NULL_TREE.
5006
5007 2019-06-27 Martin Liska <mliska@suse.cz>
5008
5009 * symbol-summary.h (traverse): Pass
5010 argument a to the call of callback.
5011 (gt_ggc_mx): Mark arguments as unused.
5012 (gt_pch_nx): Likewise.
5013
5014 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
5015
5016 PR target/62147
5017 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
5018 finiteness.
5019
5020 2019-06-26 Jeff Law <law@redhat.com>
5021
5022 PR tree-optimization/90883
5023 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
5024 (delete_dead_or_redundant_assignment): Likewise.
5025
5026 PR tree-optimization/90883
5027 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
5028 * tree-ssa-dse.c: Update various comments to distinguish between
5029 dead and redundant stores.
5030 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
5031 (dse_optimize_redundant_stores): New function.
5032 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
5033 Distinguish between dead and redundant calls in dump output. All
5034 callers updated.
5035 (delete_dead_or_redundant_assignment): Similarly for assignments.
5036 (dse_optimize_stmt): Handle _CHK variants. For statements which
5037 store 0 into multiple memory locations, try to prove a subsequent
5038 store is redundant.
5039
5040 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
5041
5042 PR target/89021
5043 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
5044 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
5045
5046 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
5047
5048 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
5049 (branch_islands): New extern.
5050 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
5051 * config/rs6000/rs6000.c: .. here.
5052
5053 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
5054
5055 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
5056 (powerpc*-*-*) ... to here.
5057
5058 2019-06-26 Jeff Law <law@redhat.com>
5059
5060 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
5061 memcpy, memmove and memset builtins.
5062 (maybe_trim_memstar_call): Likewise.
5063
5064 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
5065
5066 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
5067
5068 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
5069
5070 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
5071
5072 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5073
5074 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
5075 declaration.
5076 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
5077 "static".
5078 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
5079 declaration.
5080
5081 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5082
5083 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
5084
5085 2019-06-26 Richard Biener <rguenther@suse.de>
5086
5087 PR ipa/90982
5088 * tree-inline.c (remap_ssa_name): Copy SSA range info.
5089
5090 2019-06-26 Richard Biener <rguenther@suse.de>
5091
5092 * lto-streamer.h (lto_bitmap_alloc): Remove.
5093 (lto_bitmap_free): Likewise.
5094 * lto-streamer.c (lto_bitmap_alloc): Remove.
5095 (lto_bitmap_free): Likewise.
5096 (lto_obstack): Likewise.
5097 (lto_obstack_initialized): Likewise.
5098 * lto-streamer-out.c (lto_output): Use own obstack for local
5099 bitmap, free it consistently.
5100
5101 2019-06-26 Jakub Jelinek <jakub@redhat.com>
5102
5103 PR target/90991
5104 * config/i386/sse.md
5105 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
5106 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
5107 insns if operands[2] is misaligned_operand.
5108
5109 2019-06-26 Li Jia He <helijia@linux.ibm.com>
5110
5111 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
5112 TARGET_POWERPC64.
5113 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
5114 to GPR.
5115
5116 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5117
5118 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
5119
5120 2019-06-26 Martin Liska <mliska@suse.cz>
5121
5122 PR tree-optimization/90973
5123 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
5124 epilogue_cost_vec instead of prologue_cost_vec for
5125 a epilogue cost.
5126
5127 2019-06-26 Martin Liska <mliska@suse.cz>
5128
5129 * bb-reorder.c (connect_better_edge_p): Add missing else
5130 statement in the middle of if-else statements.
5131
5132 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
5133 H.J. Lu <hongjiu.lu@intel.com>
5134 Olga Makhotina <olga.makhotina@intel.com>
5135
5136 * common/config/i386/i386-common.c
5137 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
5138 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
5139 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
5140 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
5141 (ix86_handle_option): Handle -mavx512vp2intersect.
5142 * config/i386/avx512vp2intersectintrin.h: New.
5143 * config/i386/avx512vp2intersectvlintrin.h: New.
5144 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
5145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5146 AVX512VP2INTERSECT.
5147 * config/i386/i386-builtin-types.def: Add new types.
5148 * config/i386/i386-builtin.def: Add new builtins.
5149 * config/i386/i386-builtins.c: (enum processor_features): Add
5150 F_AVX512VP2INTERSECT.
5151 (static const _isa_names_table isa_names_table): Ditto.
5152 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5153 __AVX512VP2INTERSECT__.
5154 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
5155 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
5156 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
5157 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
5158 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
5159 * config/i386/i386-options.c (ix86_target_string): Add
5160 -mavx512vp2intersect.
5161 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
5162 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
5163 P2HImode and P2QImode.
5164 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
5165 number for P2QImode and P2HImode.
5166 (ix86_regmode_natural_size): New function.
5167 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
5168 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
5169 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
5170 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
5171 * config/i386/i386.opt: Add -mavx512vp2intersect.
5172 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
5173 avx512vp2intersectvlintrin.h.
5174 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
5175 (define_mode_iterator VI48_AVX512VP2VL): New.
5176 (avx512vp2intersect_2intersect<mode>,
5177 avx512vp2intersect_2intersectv16si): New define_insn patterns.
5178 * config.gcc: Add avx512vp2intersectvlintrin.h and
5179 avx512vp2intersectintrin.h to extra_headers.
5180 * doc/invoke.texi: Document -mavx512vp2intersect.
5181
5182 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
5183
5184 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
5185
5186 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5187
5188 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
5189 savres_routine_syms, savres_routine_name, morestack_ref,
5190 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5191 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5192 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5193 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5194 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5195 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5196 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5197 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5198 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5199 get_stack_clash_protection_probe_interval,
5200 get_stack_clash_protection_guard_size,
5201 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5202 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5203 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5204 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5205 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5206 gen_frame_mem_offset, rs6000_savres_routine_name,
5207 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5208 ptr_regno_for_savres, rs6000_emit_savres_rtx,
5209 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5210 rs6000_global_entry_point_prologue_needed_p,
5211 rs6000_get_separate_components, rs6000_components_for_bb,
5212 rs6000_disqualify_components, rs6000_emit_prologue_components,
5213 rs6000_emit_epilogue_components, rs6000_set_handled_components,
5214 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5215 rs6000_output_savres_externs, rs6000_output_function_prologue,
5216 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5217 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5218 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5219 rs6000_output_function_epilogue, gen_add3_const,
5220 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5221 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5222 to rs6000-logue.c.
5223 (machine_function): Moved to rs6000.h.
5224 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
5225 rs6000-internal.h.
5226 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
5227 savres_routine_syms, savres_routine_name, morestack_ref,
5228 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5229 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5230 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5231 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5232 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5233 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5234 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5235 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5236 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5237 get_stack_clash_protection_probe_interval,
5238 get_stack_clash_protection_guard_size,
5239 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5240 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5241 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5242 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5243 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5244 gen_frame_mem_offset, rs6000_savres_routine_name,
5245 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5246 ptr_regno_for_savres, rs6000_emit_savres_rtx,
5247 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5248 rs6000_global_entry_point_prologue_needed_p,
5249 rs6000_get_separate_components, rs6000_components_for_bb,
5250 rs6000_disqualify_components, rs6000_emit_prologue_components,
5251 rs6000_emit_epilogue_components, rs6000_set_handled_components,
5252 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5253 rs6000_output_savres_externs, rs6000_output_function_prologue,
5254 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5255 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5256 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5257 rs6000_output_function_epilogue, gen_add3_const,
5258 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5259 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5260 to here from rs6000.c.
5261 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
5262 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
5263 quad_address_offset_p) Moved to here from rs6000.c.
5264 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
5265 * config/config.gcc: Add new source file rs6000-logue.c to garbage
5266 collector.
5267
5268 2019-06-25 Martin Liska <mliska@suse.cz>
5269
5270 * hash-table.c (hashtab_chk_error): Move here from ...
5271 * hash-table.h (hashtab_chk_error): ... here.
5272
5273 2019-06-25 Martin Liska <mliska@suse.cz>
5274
5275 PR tree-optimization/90978
5276 * df-scan.c (df_update_entry_block_defs): Remove dead else
5277 branch.
5278 (df_update_exit_block_uses): Likewise.
5279
5280 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5281 Andrew Stubbs <ams@codesourcery.com>
5282
5283 * config.gcc (thread_file): Set to gcn for AMD GCN.
5284 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
5285 (TARGET_EMUTLS_VAR_INIT): New hook.
5286
5287 2019-06-25 Martin Jambor <mjambor@suse.cz>
5288
5289 PR ipa/90939
5290 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
5291
5292 2019-06-25 Richard Biener <rguenther@suse.de>
5293
5294 PR tree-optimization/90930
5295 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
5296 into parallel form in the last pass instance.
5297
5298 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
5299
5300 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
5301 (arc_legitimize_pic_address): Simplify and cleanup the function.
5302 (SYMBOLIC_CONST): Remove.
5303 (prepare_pic_move): Likewise.
5304 (prepare_move_operands): Handle complex mov cases here.
5305 (arc_legitimize_address_0): Remove call to
5306 arc_legitimize_pic_address.
5307 (arc_legitimize_address): Remove call to
5308 arc_legitimize_tls_address.
5309 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
5310 (movhi_insn): Likewise.
5311
5312 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5313
5314 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
5315 alternate "__intN__" name for "__intN" types.
5316 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
5317 * gcc/cp/lex.c (init_reswords): Likewise.
5318 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
5319 PTRDIFF_TYPE.
5320 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
5321 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
5322 C incompatibility if alternate "__intN__" form is used.
5323 * gcc/cp/decl.c (grokdeclarator): Likewise.
5324 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
5325 decl_specs->int_n_alt if "__intN__" form is used.
5326 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
5327 format of "__intN" types for UINTMAX_TYPE.
5328 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
5329 format of "__intN" types for SIZE_TYPE.
5330 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
5331 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
5332 format of "__intN" types for SIZETYPE.
5333 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
5334 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
5335 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
5336 warnings.
5337
5338 2019-06-25 Jan Hubicka <jh@suse.cz>
5339
5340 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
5341 base2_alias_set is non-zero before doing TBAA based disambiguation.
5342
5343 2019-06-25 Martin Liska <mliska@suse.cz>
5344
5345 PR tree-optimization/90973
5346 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
5347 of prologue and epilogue.
5348
5349 2019-06-24 Jan Hubicka <jh@suse.cz>
5350
5351 * ipa-utils.h (type_with_linkage_p): Verify that type is
5352 CXX_ODR_P.
5353 (odr_type_p): Remove extra return.
5354 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
5355 hash STRING_FLAG only for arrays and integers.
5356 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
5357 Update analogously.
5358 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5359 Likewise.
5360 * print-tree.c (print_node): Print cxx-odr-p
5361 and string-flag.
5362 * tree.c (need_assembler_name_p): Also check that type
5363 is CXX_ODR_TYPE_P
5364 (verify_type_variant): Update verification of SRING_FLAG;
5365 also check CXX_ODR_P.
5366 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
5367 (TYPE_STRING_FLAG): Use it.
5368 (TYPE_CXX_ODR_P): New macro.
5369 * dwarf2out.c (gen_array_type_die): First check that type
5370 is an array and then test string flag.
5371
5372 2019-06-24 Richard Biener <rguenther@suse.de>
5373
5374 PR tree-optimization/90972
5375 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
5376 in common code, dealing with STRING_CST properly.
5377
5378 2019-06-24 Richard Biener <rguenther@suse.de>
5379
5380 PR tree-optimization/90930
5381 PR tree-optimization/90316
5382 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
5383 decrement of limit.
5384
5385 2019-06-24 Martin Sebor <msebor@redhat.com>
5386
5387 * tree-pretty-print.h: Remove unnecessary punctuation characters
5388 from a diagnostic.
5389 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
5390
5391 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
5392
5393 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
5394 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
5395 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
5396
5397 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5398
5399 * config/rs6000/darwin.h: Handle GCC target pragma.
5400
5401 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5402
5403 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
5404
5405 2019-06-22 Jeff Law <law@redhat.com>
5406
5407 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5408
5409 2019-06-22 Jan Hubicka <jh@suse.cz>
5410
5411 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
5412 give up on bitfields; continue searching for different refs
5413 appearing later.
5414
5415 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5416
5417 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5418 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
5419 containing the offset as possible simd lane access. Look through
5420 widening conversion. Move the
5421 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
5422
5423 2019-06-21 Richard Biener <rguenther@suse.de>
5424
5425 PR tree-optimization/90930
5426 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
5427 flag on new stmts to avoid re-processing them.
5428
5429 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
5430
5431 PR c++/90875 - added -Wswitch-outside-range option
5432 * doc/invoke.texi (Wswitch-outside-range): Document.
5433
5434 2019-06-21 Jeff Law <law@redhat.com>
5435
5436 PR tree-optimization/90949
5437 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
5438 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
5439
5440 2019-06-21 Richard Biener <rguenther@suse.de>
5441
5442 PR debug/90914
5443 * dwarf2out.c (prune_unused_types_walk): Always consider
5444 function-local extern declarations as used.
5445
5446 2019-06-21 Richard Biener <rguenther@suse.de>
5447
5448 PR tree-optimization/90913
5449 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
5450 the scalar variant of if-conversion versioning.
5451
5452 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5453
5454 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
5455 create another "omp scan inscan exclusive" array if
5456 !ctx->scan_inclusive.
5457 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
5458 (lower_omp_scan): Likewise.
5459 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
5460 2-bit bitfield for simd_lane_access_p member.
5461 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
5462 aux == (void *)-4 as simd lane access.
5463 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
5464 comment with permutations to show the canonical permutation order.
5465 (vectorizable_scan_store): Handle exclusive scan.
5466 (vectorizable_store): Call vectorizable_scan_store even for
5467 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
5468
5469 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5470 "omp simd array" arrays with one byte elements.
5471
5472 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
5473
5474 * config/alpha/alpha.md (@unaligned_store<mode>):
5475 Rename from unaligned_store<mode>.
5476 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
5477 * config/alpha/sync.md (@load_locked_<mode>): Rename
5478 from load_locked_<mode>.
5479 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
5480 (@atomic_compare_and_swap<mode>_1): Rename
5481 from atomic_compare_and_swap<mode>_1.
5482 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
5483 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
5484 Use gen_reload_in_aligned and gen_unaligned_store.
5485 (emit_load_locked): Remove.
5486 (emit_store_conditional): Ditto.
5487 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
5488 (alpha_split_compare_and_swap): Ditto.
5489 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
5490 (alpha_split_compare_and_swap_12): Use gen_load_locked
5491 and gen_store_conditional.
5492 (alpha_split_atomic_exchange): Ditto.
5493 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
5494 (alpha_split_atomic_exchange_12): Use gen_load_locked
5495 and gen_store_conditional.
5496
5497 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
5498
5499 * config/aarch64/aarch64-errata.h: New file.
5500 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5501 (CA53_ERR_843419_SPEC): Delete.
5502 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5503 * config/aarch64/aarch64-linux.h: Likewise.
5504 * config/aarch64/aarch64-netbsd.h: Likewise.
5505 * config/aarch64/aarch64-freebsd.h: Likewise.
5506
5507 2019-06-20 Marek Polacek <polacek@redhat.com>
5508
5509 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5510
5511 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
5512
5513 * config/rs6000/rs6000.md (isa attribute): Add support for
5514 for a future processor.
5515
5516 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
5517
5518 PR target/54855
5519 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5520 standard scalar operation pattern for V2DF.
5521 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5522 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5523 (*ieee_<ieee_maxmin><mode>3): Likewise.
5524 (vec_setv2df_0): Likewise.
5525
5526 2019-06-20 Jan Hubicka <jh@suse.cz>
5527
5528 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5529 parameter; it has no use in gimple memory model.
5530 (indirect_ref_may_alias_decl_p): Update.
5531
5532 2019-06-20 Martin Liska <mliska@suse.cz>
5533
5534 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5535 to 10.
5536
5537 2019-06-20 Jakub Jelinek <jakub@redhat.com>
5538
5539 * tree-vect-stmts.c (enum scan_store_kind): New type.
5540 (scan_store_can_perm_p): Change last argument from int * to
5541 vec<enum scan_store_kind> *, record precisely which permutations
5542 need whole vector left shift or that plus VEC_COND_EXPR.
5543 (vectorizable_scan_store): Adjust caller, use whole vector left shift
5544 and additional VEC_COND_EXPR only for those iterations that need it.
5545
5546 2019-06-20 Alexandre Oliva <oliva@adacore.com>
5547
5548 * config.gcc: Fix ARM --with-fpu checking and error message.
5549
5550 2019-06-19 Marek Polacek <polacek@redhat.com>
5551
5552 PR c++/60364 - noreturn after first decl not diagnosed.
5553 * attribs.c (get_attribute_namespace): No longer static.
5554 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
5555 attributes.
5556 (attr_noreturn_exclusions): Make it extern.
5557 * attribs.h (get_attribute_namespace): Declare.
5558 * tree-inline.c (function_attribute_inlinable_p): Use
5559 get_attribute_name.
5560
5561 2019-06-19 Martin Sebor <msebor@redhat.com>
5562
5563 PR tree-optimization/90626
5564 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5565
5566 PR tree-optimization/90626
5567 * tree-ssa-strlen.c (strxcmp_unequal): New function.
5568 (handle_builtin_string_cmp): Call it.
5569
5570 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5571
5572 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5573 and DARWIN_NOPIE_SPEC.
5574 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5575 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5576 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5577 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5578 (DARWIN_EXPORT_DYNAMIC): Delete.
5579 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5580 and pie options processing to darwin.h.
5581 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5582
5583 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5584
5585 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5586 in computing the number of options to be moved.
5587
5588 2019-06-19 Maya Rashish <coypu@sdf.org>
5589
5590 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5591 (CLEAR_INSN_CACHE) Use it.
5592
5593 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
5594
5595 * config/i386/i386.md (cmpstrnsi): Remove dead code.
5596
5597 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
5598
5599 PR middle-end/84521
5600 * builtins.c (expand_builtin_setjmp_setup): Save
5601 hard_frame_pointer_rtx.
5602 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5603 restore fp.
5604 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5605 non-local goto.
5606 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5607 elimination code.
5608 (remove_reg_equal_offset_note): Remove unused function.
5609 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5610 code.
5611 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5612 (arc_builtin_setjmp_frame_value): Remove function.
5613 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5614 (avr_builtin_setjmp_frame_value): Remove function.
5615 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5616 (ix86_builtin_setjmp_frame_value): Remove function.
5617 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5618 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5619 (sparc_builtin_setjmp_frame_value): Remove function.
5620 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5621 (vax_builtin_setjmp_frame_value): Remove function.
5622 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5623 pointer if has_nonlocal_label.
5624
5625 2019-06-19 Jakub Jelinek <jakub@redhat.com>
5626
5627 * doc/md.texi: Document vec_shl_<mode> pattern.
5628 * optabs.def (vec_shl_optab): New optab.
5629 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5630 argument, if == vec_shl_optab, check for left whole vector shift
5631 pattern rather than right shift.
5632 (expand_vec_perm_const): Add vec_shl_optab support.
5633 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5634 in the comment.
5635 * tree-vect-generic.c (lower_vec_perm): Support permutations which
5636 can be handled by vec_shl_optab.
5637 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5638 (check_scan_store): Use it.
5639 (vectorizable_scan_store): If target can't do normal permutations,
5640 try to use whole vector left shifts and if needed a VEC_COND_EXPR
5641 after it.
5642 * config/i386/sse.md (vec_shl_<mode>): New expander.
5643
5644 * omp-low.c (lower_rec_input_clauses): Handle references properly
5645 in inscan clauses.
5646 (lower_omp_scan): Likewise.
5647
5648 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5649
5650 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5651 mem_mode is BLKmode.
5652
5653 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
5654
5655 PR target/90922
5656 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5657 pointer adjustment for the case of no callee-saved registers and
5658 stack frame bigger than 128 bytes.
5659
5660 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5661
5662 PR middle-end/90862
5663 * omp-low.c (check_omp_nesting_restrictions): Handle
5664 GF_OMP_TARGET_KIND_OACC_DECLARE.
5665
5666 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
5667
5668 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5669 (@add<mode>3_carry): Rename from add<mode>3_carry.
5670 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5671 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5672 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5673 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5674 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5675 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5676 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5677 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5678 (cmpstrnsi): Use gen_cmp_1.
5679 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5680 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5681 (@umonitor_<mode>): Rename from umonitor_<mode>.
5682 * config/i386/i386-expand.c (ix86_expand_copysign):
5683 Use gen_copysign3_const and gen_copysign3_var.
5684 (ix86_expand_xorsign): Use gen_xorsign3_1.
5685 (ix86_expand_branch): Use gen_sub3_carry_ccc,
5686 gen_sub3_carry_ccgz and gen_cmp1.
5687 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5688 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5689 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5690 (ix86_split_lshr): Ditto.
5691 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
5692
5693 2019-06-18 Jason Merrill <jason@redhat.com>
5694
5695 * tree.c (build_constructor): Add MEM_STAT_DECL.
5696
5697 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5698
5699 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
5700 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
5701 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
5702 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
5703 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
5704 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
5705 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
5706 Use CC_NZC instead of CC.
5707 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
5708 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
5709 (aarch64_print_operand): Handle E_CC_NZCmode.
5710 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
5711 of gen_set_clobber_cc.
5712
5713 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5714
5715 * config/aarch64/aarch64-sve.md: Tabify file.
5716
5717 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5718
5719 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
5720 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
5721 * config/aarch64/aarch64-sve.md: Use it.
5722
5723 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5724
5725 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
5726 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
5727 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
5728 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
5729 (aarch64_expand_sve_vec_cmp_int): Use it.
5730 (aarch64_expand_sve_vec_cmp_float): Likewise.
5731 * config/aarch64/aarch64-sve.md: Likewise throughout.
5732
5733 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5734 Kugan Vivekanandarajah <kuganv@linaro.org>
5735
5736 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
5737 (*cond_<optab><mode>_z): Fold into...
5738 (*cond_<optab><mode>_any): ...here. Also handle cases in which
5739 operand 4 can be tied to operand 0 (either inherently or via RA).
5740
5741 2019-06-18 Richard Biener <rguenther@suse.de>
5742
5743 PR debug/90900
5744 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
5745 as if optimized away.
5746
5747 2019-06-18 Tom de Vries <tdevries@suse.de>
5748
5749 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
5750 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
5751 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
5752 Rename to ...
5753 (define_insn "@set_softstack_<mode>"): ... this.
5754 (define_insn "omp_simt_enter_<mode>"): Rename to ...
5755 (define_insn "@omp_simt_enter_<mode>"): ... this.
5756 (define_insn "omp_simt_exit_<mode>"): Rename to ...
5757 (define_insn "@omp_simt_exit_<mode>"): ... this.
5758
5759 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5760
5761 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
5762 vf parameter. Restore the previous iv step of nscalars_step,
5763 but give it iv_type rather than compare_type. Tweak code order
5764 to match the comments.
5765 (vect_set_loop_condition_masked): Update accordingly.
5766 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
5767 for iv_precision. Tweak comment formatting.
5768
5769 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5770
5771 * config/darwin.c: Strip trailing whitespace.
5772
5773 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5774
5775 * config/darwin.c (darwin_emit_unwind_label): New default to false.
5776 (darwin_override_options): Set darwin_emit_unwind_label as needed.
5777
5778 2019-06-18 Martin Jambor <mjambor@suse.cz>
5779
5780 PR ipa/90889
5781 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
5782 caller does not have flag_ipa_cp set.
5783
5784 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5785
5786 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
5787 from "*fold_left_plus_<mode>", updated operands order.
5788 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
5789 * internal-fn.c (mask_fold_left_direct): New define.
5790 (expand_mask_fold_left_optab_fn): Likewise.
5791 (direct_mask_fold_left_optab_supported_p): Likewise.
5792 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
5793 * optabs.def (mask_fold_left_plus_optab): New optab.
5794 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
5795 masked internal_fn for a reduction ifn.
5796 (vectorize_fold_left_reduction): Add support for masking reductions.
5797
5798 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
5799
5800 PR middle-end/80791
5801 * target.def (predict_doloop_p): New hook.
5802 * targhooks.h (default_predict_doloop_p): New declaration.
5803 * targhooks.c (default_predict_doloop_p): New function.
5804 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
5805 * doc/tm.texi: Regenerate.
5806 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
5807 (TARGET_PREDICT_DOLOOP_P): New macro.
5808 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
5809
5810 2019-06-17 Jakub Jelinek <jakub@redhat.com>
5811
5812 * omp-low.c (struct omp_context): Add scan_inclusive field.
5813 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
5814 if inclusive scan.
5815 (struct omplow_simd_context): Add lastlane member.
5816 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
5817 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
5818 1 or 2 argument.
5819 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
5820 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
5821 (lower_omp_scan): New function.
5822 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
5823 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
5824 check 3rd argument if present rather than 2nd.
5825 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
5826 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
5827 2-bit bitfield.
5828 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5829 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
5830 than 2nd.
5831 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
5832 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
5833 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
5834 init.
5835 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
5836 IFN_GOMP_SIMD_LANE argument.
5837 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
5838 encoded ->aux value.
5839 * tree-vect-stmts.c: Include attribs.h.
5840 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
5841 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
5842 functions.
5843 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
5844 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
5845
5846 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
5847
5848 PR target/62055
5849 * config/i386/i386.md (*nabstf2_1): New insn pattern.
5850 (*nabs<mode>2_1): Ditto.
5851 (nabs sse-reg splitter): New splitter.
5852 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
5853
5854 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5855
5856 PR bootstrap/90873.
5857 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5858 TMR index check.
5859
5860 2019-06-17 Tom de Vries <tdevries@suse.de>
5861
5862 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
5863 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
5864 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
5865 ...
5866 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
5867 match_operand 0.
5868 (define_insn "omp_simt_enter_insn"): Rename to ...
5869 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
5870 match_operand 0, 1 and 2, as well as the unspec_volatile result.
5871 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
5872 gen_omp_simt_enter_si.
5873 (define_expand "omp_simt_exit"): New.
5874 (define_insn "omp_simt_exit"): Rename to ...
5875 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
5876 match_operand 0.
5877
5878 2019-06-17 Matthew Green <mrg@eterna.com.au>
5879 Maya Rashish <coypu@sdf.org>
5880
5881 * config.gcc (aarch64*-*-netbsd*): New target.
5882 * config/aarch64/aarch64-netbsd.h: New file.
5883 * config/aarch64/t-aarch64-netbsd: Likewise.
5884
5885 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5886
5887 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
5888 the access path from base to first VIEW_CONVERT_EXPR or
5889 BIT_FIELD_REF.
5890
5891 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5892
5893 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
5894 access path on BIT_FIELD_REFs.
5895
5896 2019-06-17 Martin Liska <mliska@suse.cz>
5897
5898 PR ipa/90874
5899 * ipa-utils.h (odr_type_p): Remove dead code.
5900
5901 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5902
5903 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
5904 alternative Solaris 11.4 format.
5905 * configure: Regenerate.
5906
5907 2019-06-17 Tom de Vries <tdevries@suse.de>
5908
5909 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
5910 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
5911 match_operand 0.
5912 (define_insn "call_value_insn"): Rename to ...
5913 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
5914 match_operand 0.
5915 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
5916 DI.
5917
5918 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
5919
5920 PR middle-end/64242
5921 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
5922 frame clobbers and schedule block.
5923 (builtin_longjmp): Likewise.
5924
5925 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5926
5927 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
5928 describe how to perform MSPABI compliant 64-bit shift.
5929 * config/msp430/msp430.md (ashldi3): New define_expand.
5930 (ashrdi3): New define_expand.
5931 (lshrdi3): New define_expand.
5932
5933 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5934
5935 * doc/sourcebuild.texi: Document new effective target keyword
5936 longlong64.
5937
5938 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5939
5940 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
5941 indirect_refs_may_alias_p): Revert accidental commits.
5942
5943 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
5944 at the end of structures.
5945
5946 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5947
5948 * config/darwin.c (machopic_indirect_call_target): Use renamed
5949 darwin_picsymbol_stubs to decide on output.
5950 (darwin_override_options): Handle darwin_picsymbol_stubs.
5951 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
5952 (LD64_VERSION): Revise default.
5953 * config/darwin.opt: (mpic-symbol-stubs): New option.
5954 (darwin_picsymbol_stubs): New variable.
5955 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
5956 rename to TARGET_MACHO_PICSYM_STUBS.
5957 * config/i386/i386.c (output_pic_addr_const): Likewise.
5958 * config/i386/i386.h Likewise.
5959 * config/rs6000/darwin.h: Likewise.
5960 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
5961 darwin_picsymbol_stubs.
5962
5963 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5964
5965 * config/darwin.opt (prebind, noprebind, seglinkedit,
5966 noseglinkedit): Add RejectNegative.
5967
5968 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5969
5970 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
5971 in my previous patch.
5972
5973 2019-06-16 Tom de Vries <tdevries@suse.de>
5974
5975 PR tree-optimization/89376
5976 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
5977
5978 2019-06-15 Maya Rashish <coypu@sdf.org>
5979
5980 * doc/invoke.texi (Spec Files): Update location of the
5981 Fortran spec file.
5982
5983 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
5984
5985 * doc/extend.texi (Common Function Attributes): Clarify
5986 no_sanitize. Fix grammar.
5987
5988 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
5989
5990 * tree-ssa-alias.c (alias_stats): Add
5991 nonoverlapping_component_refs_p_may_alias,
5992 nonoverlapping_component_refs_p_no_alias,
5993 nonoverlapping_component_refs_of_decl_p_may_alias,
5994 nonoverlapping_component_refs_of_decl_p_no_alias.
5995 (dump_alias_stats): Dump them.
5996 (nonoverlapping_component_refs_of_decl_p): Add stats.
5997 (nonoverlapping_component_refs_p): Add stats; do not stop on first
5998 ARRAY_REF.
5999
6000 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
6001
6002 * config/i386/i386.md (and<mode>3): Generate zero-extends for
6003 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
6004 only.
6005 (*anddi3_doubleword): Split before reload. Merge with
6006 anddi->zext pre-reload splitter.
6007 (*andndi3_doubleword): Split before reload.
6008 (*<code>di3_doubleword): Ditto.
6009 (*one_cmpldi2_doubleword): Ditto.
6010
6011 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6012
6013 PR middle-end/90779
6014 * gimplify.c: Include omp-offload.h and context.h.
6015 (gimplify_bind_expr): Add "omp declare target" attributes
6016 to static block scope variables inside of target region or target
6017 functions.
6018
6019 2019-06-15 Tom de Vries <tdevries@suse.de>
6020
6021 PR tree-optimization/90009
6022 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
6023 Return NULL if bb contains IFN_UNIQUE.
6024
6025 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
6026
6027 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
6028 (un): New define_mode_attr.
6029 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
6030 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
6031 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
6032 merge into ...
6033 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
6034
6035 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
6036
6037 * config/darwin.opt: Add RejectNegative where needed, reorder
6038 and add minimal functional descriptions.
6039
6040 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
6041
6042 PR rtl-optimization/90765
6043 * calls.c (update_stack_alignment_for_call): New function.
6044 (expand_call): Call update_stack_alignment_for_call when
6045 outgoing parameter is passed in the stack.
6046 (emit_library_call_value_1): Likewise.
6047 * function.c (locate_and_pad_parm): Don't update
6048 stack_alignment_needed and preferred_stack_boundary.
6049
6050 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
6051
6052 PR target/90877
6053 * config/i386/i386-features.c
6054 (dimode_scalar_chain::compute_convert_gain): Replace
6055 mmxsse_to_integer with sse_to_integer.
6056 * config/i386/i386.c (ix86_register_move_cost): Verify that
6057 moves between MMX and non-MMX units require secondary memory.
6058 Correct costs of moves between SSE and integer units.
6059 * config/i386/i386.h (processor_costs): Rename cost of moving
6060 SSE register to integer to sse_to_integer. Rename cost of
6061
6062 2019-06-14 Matt Thomas <matt@3am-software.com>
6063 Matthew Green <mrg@eterna.com.au>
6064 Nick Hudson <skrll@netbsd.org>
6065 Maya Rashish <coypu@sdf.org>
6066 Richard Earnshaw <rearnsha@arm.com>
6067
6068 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
6069 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
6070 * config/arm/netbsd-eabi.h: New file.
6071 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
6072 redefining.
6073 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
6074 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
6075 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
6076 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
6077
6078 2019-06-14 Richard Biener <rguenther@suse.de>
6079
6080 * tree-loop-distribution.c (classify_partition): Return
6081 whether a reduction appeared in all partitions and do not
6082 stop builtin detection because of this.
6083 (distribute_loop): Sort a non-builtin partition last if
6084 there's a reduction in all partitions and make sure the
6085 partition prevailing as last is not a builtin.
6086
6087 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
6088
6089 PR ipa/90401
6090 * ipa-prop.c (add_to_agg_contents_list): New function.
6091 (clobber_by_agg_contents_list_p): Likewise.
6092 (extract_mem_content): Likewise.
6093 (get_place_in_agg_contents_list): Delete.
6094 (determine_known_aggregate_parts): Renamed from
6095 determine_locally_known_aggregate_parts. New parameter
6096 aa_walk_budget_p.
6097
6098 2019-06-13 Martin Sebor <msebor@redhat.com>
6099
6100 PR tree-optimization/90662
6101 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
6102 to the same type.
6103
6104 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
6105
6106 PR bootstrap/90873
6107 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
6108 dbase is not TARGET_MEM_REF.
6109
6110 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
6111
6112 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
6113 Update all uses.
6114 (and<mode>3): Use gen_extend_insn instead of indirect functions.
6115 Do not generate DImode extends for 32bit targets.
6116 (and->zext post-reload splitter): Use gen_extend_insn
6117 instead of indirect functions.
6118 (anddi->zext pre-reload splitter): New.
6119 (*zext<mode>_doubleword_and): Remove.
6120 (*zext<mode>_doubleword): Ditto.
6121 (*zextsi_doubleword): Dittto.
6122
6123 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
6124
6125 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
6126 Use gen_sub3_insn instead of indirect function.
6127 (ix86_expand_ashl_const): Use gen_add2_insn instead of
6128 indirect function.
6129 (ix86_adjust_counter): Ditto.
6130
6131 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
6132 Lijia He <helijia@linux.ibm.com>
6133
6134 PR tree-optimization/77820
6135 * tree-ssa-threadedge.c
6136 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
6137 function.
6138 (thread_across_edge): Add call to
6139 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
6140
6141 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
6142
6143 * config/darwin-driver.c (validate_macosx_version_min): New.
6144 (darwin_default_min_version): Cleanup and validate supplied version.
6145 (darwin_driver_init): Likewise and push cleaned version into opts.
6146
6147 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
6148
6149 PR tree-optimization/90869
6150 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
6151 converts in MEM_REF referencing decl rather than view converts
6152 from decl type to MEM_REF type.
6153
6154 2019-06-13 Richard Biener <rguenther@suse.de>
6155
6156 PR tree-optimization/90856
6157 * tree-sra.c (build_ref_for_model): Only use
6158 build_reconstructed_reference when address-spaces are the same.
6159
6160 2019-06-13 Jakub Jelinek <jakub@redhat.com>
6161
6162 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
6163 wrap ei variable name in the declaration in ()s.
6164 (nvptx_single): Actually use mode_label variable. Formatting fix.
6165
6166 2019-06-13 Richard Biener <rguenther@suse.de>
6167
6168 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
6169 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
6170 also return the condition stmt.
6171 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
6172 loop we can version and version that, reusing the loop version
6173 created by if-conversion instead of versioning again.
6174
6175 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
6176
6177 * gimple-loop-versioning.cc (prune_loop_conditions): Use
6178 may_contain_p.
6179 * tree-vrp (value_range_base::may_contain_p): Call into
6180 value_inside_range.
6181 (value_inside_range): Make private inside value_range_base class.
6182 Take min/max from *this.
6183 (range_includes_p): Remove.
6184 * tree-vrp.h (value_range_base): Add value_inside_range.
6185 (range_includes_p): Remove.
6186 (range_includes_zero_p): Call may_contain_p.
6187 * vr-values.c (compare_range_with_value): Same.
6188
6189 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
6190
6191 * doc/extend.texi (ARC Function Attributes): Update info.
6192
6193 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6194
6195 PR tree-optimization/89713
6196 * doc/invoke.texi (-ffinite-loops): Document new option.
6197 * common.opt (-ffinite-loops): New option.
6198 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
6199 IFN_GOACC_LOOP calls as necessary.
6200 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
6201 is finite.
6202 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
6203 IFN_GOACC_LOOP call is not used.
6204 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
6205
6206 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6207
6208 PR target/88838
6209 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
6210 compare_type is not with Pmode size, we will create an IV with
6211 Pmode size with truncated use (i.e. converted to the correct type).
6212 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
6213 (vect_iv_limit_for_full_masking): New. Factored out of
6214 vect_set_loop_condition_masked.
6215 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
6216 (vect_iv_limit_for_full_masking): Declare.
6217
6218 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6219
6220 PR target/88834
6221 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
6222 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
6223 (get_alias_ptr_type_for_ptr_address): Likewise.
6224 (add_iv_candidate_for_use): Add scaled index candidate if useful.
6225 * tree-ssa-address.c (preferred_mem_scale_factor): New.
6226 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
6227 allow_reg_index_p.
6228
6229 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6230
6231 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
6232
6233 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
6234
6235 * common/config/pru/pru-common.c: New file.
6236 * config.gcc: Add PRU target.
6237 * config/pru/alu-zext.md: New file.
6238 * config/pru/constraints.md: New file.
6239 * config/pru/predicates.md: New file.
6240 * config/pru/pru-opts.h: New file.
6241 * config/pru/pru-passes.c: New file.
6242 * config/pru/pru-pragma.c: New file.
6243 * config/pru/pru-protos.h: New file.
6244 * config/pru/pru.c: New file.
6245 * config/pru/pru.h: New file.
6246 * config/pru/pru.md: New file.
6247 * config/pru/pru.opt: New file.
6248 * config/pru/t-pru: New file.
6249 * doc/extend.texi: Document PRU pragmas.
6250 * doc/invoke.texi: Document PRU-specific options.
6251 * doc/md.texi: Document PRU asm constraints.
6252
6253 2019-06-12 Martin Sebor <msebor@redhat.com>
6254
6255 PR middle-end/90676
6256 * tree-pretty-print.c (dump_mem_ref): New function. Include
6257 MEM_REF type in output when different size than operand.
6258 (dump_generic_node): Move code to dump_mem_ref and call it.
6259
6260 2019-06-12 Martin Sebor <msebor@redhat.com>
6261
6262 PR tree-optimization/90662
6263 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
6264 to arrays.
6265
6266 2019-06-12 Tom de Vries <tdevries@suse.de>
6267
6268 PR tree-optimization/90009
6269 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
6270
6271 2019-06-12 Martin Liska <mliska@suse.cz>
6272
6273 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
6274 the created map.
6275 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
6276 * mem-stats.h (mem_alloc_description::mem_alloc_description):
6277 Do not sanitize created maps.
6278
6279 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
6280
6281 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
6282 value_range::singleton_p.
6283 * tree-vrp.c (value_range_constant_singleton): Remove.
6284 * tree-vrp.h (value_range_constant_singleton): Remove.
6285 * vr-values.c (vr_values::singleton): Use
6286 value_range::singleton_p.
6287
6288 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6289
6290 PR target/90811
6291 * cfgexpand.c (align_local_variable): Add really_expand argument,
6292 don't SET_DECL_ALIGN if it is false.
6293 (add_stack_var): Add really_expand argument, pass it through to
6294 align_local_variable.
6295 (expand_one_stack_var_1): Pass true as really_expand to
6296 align_local_variable.
6297 (expand_one_ssa_partition): Pass true as really_expand to
6298 add_stack_var.
6299 (expand_one_var): Pass really_expand through to add_stack_var.
6300
6301 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6302
6303 * config/arm/iterators.md (VABAL): New int iterator.
6304 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
6305 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
6306 UNSPEC_VABAL_U values.
6307
6308 2019-06-12 Martin Liska <mliska@suse.cz>
6309
6310 * value-prof.c (stream_out_histogram_value): Only first value
6311 can't be negative.
6312
6313 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6314
6315 PR c/90760
6316 * symtab.c (symtab_node::set_section): Allow being called on aliases
6317 as long as they aren't analyzed yet.
6318
6319 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
6320
6321 * config/mips/mips.c (mips_final_postscan_insn): Modify call
6322 to `mips_set_text_contents_type' to indicate whether a
6323 non-debug insn follows.
6324
6325 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
6326
6327 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
6328 enabling -mpcrel by default.
6329 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
6330 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
6331 that the test against -mcpu=future is done first. Then test if
6332 -mprefixed-addr is on for -mpcrel.
6333 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
6334
6335 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6336
6337 PR target/90811
6338 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
6339 instead of and.u%d.
6340
6341 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6342
6343 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
6344
6345 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
6346
6347 PR c++/90449 - add -Winaccessible-base option.
6348 * doc/invoke.texi (Winaccessible-base): Document.
6349
6350 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6351
6352 PR tree-optimization/62041
6353 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
6354
6355 2019-06-11 Jason Merrill <jason@redhat.com>
6356
6357 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
6358 * tree.c (get_tree_code_name): Likewise.
6359 * print-tree.c (print_node): Only briefly print a node with an
6360 invalid code.
6361
6362 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6363
6364 PR bootstrap/90819
6365 * trans-mem.c (tm_memopt_compute_available): Add assertion
6366 that blocks is not empty. Formatting fix.
6367
6368 2019-06-11 Martin Liska <mliska@suse.cz>
6369
6370 PR c++/87847
6371 * hash-table.h: Extend create_gcc, add one parameter
6372 that is passed into hash_table::hash_table.
6373
6374 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
6375
6376 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
6377 New prototype.
6378 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6379 Emit clobber also for non-sse operations.
6380 (ix86_split_fp_absneg_operator): New function.
6381 * config/i386/i386.md (SSEMODEF): New mode iterator.
6382 (ssevecmodef): New mode attribute.
6383 (<code>tf2): Use absneg code iterator.
6384 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
6385 Add three-operand AVX alternatives.
6386 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
6387 Use absneg code iterator and X87MODEF mode iterator.
6388 (absneg fp_reg non-sse splitter): Call absneg code iterator
6389 and X87MODEF mode iterator.
6390 (absneg general_reg non-sse splitter): Use absneg code iterator
6391 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
6392 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
6393 code iterator. Add three-operand AVX alternative.
6394 (absneg sse_reg splitter): Use absneg code iterator
6395 and SSEMODEF mode iterator. Handle AVX operands.
6396 (absneg fp_reg splitter): Use absneg code iterator
6397 and MODEF mode iterator.
6398 (absneg general_reg splitter): Merge splitters using MODEF mode
6399 iterator. Use absneg code iterator. Call
6400 ix86_split_fp_absneg_operator.
6401 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
6402 Do not enable for non-sse modes before reload.
6403 (CSGNMODE): Remove.
6404 (CSGNVMODE): Ditto.
6405 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
6406 ssevecmodef mode attribute instaed of CSGNVMODE.
6407 (copysign<mode>3_const): Ditto.
6408 (copysign<mode>3_var): Ditto.
6409 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
6410 Use absneg code iterator. Simplify code using std::swap.
6411 * config/i386/predicates.md (absneg_operator): Remove.
6412
6413 2019-06-10 Martin Sebor <msebor@redhat.com>
6414
6415 * gimple-fold.c (get_range_strlen): Update comment that didn't
6416 make it into r267503 or related commits.
6417
6418 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
6419
6420 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
6421 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
6422
6423 2019-06-10 Jakub Jelinek <jakub@redhat.com>
6424
6425 * tree.def (OMP_SCAN): New tree code.
6426 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
6427 OMP_CLAUSE_EXCLUSIVE.
6428 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
6429 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
6430 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
6431 OMP_CLAUSE_{IN,EX}CLUSIVE.
6432 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6433 * tree-nested.c (convert_nonlocal_reference_stmt,
6434 convert_local_reference_stmt, convert_gimple_call): Handle
6435 GIMPLE_OMP_SCAN.
6436 * tree-pretty-print.c (dump_omp_clause): Handle
6437 OMP_CLAUSE_{IN,EX}CLUSIVE.
6438 (dump_generic_node): Handle OMP_SCAN.
6439 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
6440 * gimple.h (gomp_scan): New type.
6441 (is_a_helper <gomp_scan *>::test,
6442 is_a_helper <const gomp_scan *>::test): New templates.
6443 (gimple_build_omp_scan): Declare.
6444 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
6445 gimple_omp_scan_set_clauses): New inline functions.
6446 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
6447 * gimple.c (gimple_build_omp_scan): New function.
6448 (gimple_copy): Handle GIMPLE_OMP_SCAN.
6449 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
6450 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
6451 GIMPLE_OMP_TASKGROUP.
6452 (dump_gimple_omp_scan): New function.
6453 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
6454 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
6455 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
6456 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
6457 (is_gimple_stmt): Handle OMP_SCAN.
6458 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
6459 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6460 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
6461 mentioned in nested #pragma omp scan. Handle
6462 OMP_CLAUSE_{IN,EX}CLUSIVE.
6463 (gimplify_expr): Handle OMP_SCAN.
6464 * omp-low.c (check_omp_nesting_restrictions): For parent context,
6465 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
6466 simd constructs.
6467 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
6468 GIMPLE_OMP_SCAN.
6469
6470 2019-06-10 Martin Liska <mliska@suse.cz>
6471
6472 * ipa-cp.c (ignore_edge_p): New function.
6473 (build_toporder_info): Use it.
6474 * ipa-inline.c (ignore_edge_p): New function.
6475 (inline_small_functions): Use it.
6476 * ipa-pure-const.c (ignore_edge_for_nothrow):
6477 Verify opt_for_fn for caller and callee.
6478 (ignore_edge_for_pure_const): Likewise.
6479 * ipa-reference.c (ignore_edge_p): Extend to check
6480 for opt_for_fn.
6481 * ipa-utils.c (searchc): Refactor.
6482 * ipa-utils.h: Fix coding style.
6483
6484 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6485
6486 * config/arc/arc.c (arc_rtx_costs): Update costs.
6487
6488 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6489
6490 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
6491 (arc_split_ior): Likewise.
6492 (arc_check_mov_const): Likewise.
6493 (arc_split_mov_const): Likewise.
6494 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
6495 (arc_rtx_costs): Replace check Crr with Cax constraint.
6496 (prepare_move_operands): Cleanup, remove unused code.
6497 (arc_split_ior): New function.
6498 (arc_check_ior_const): Likewise.
6499 (arc_split_mov_const): Likewise.
6500 (arc_check_mov_const): Likewise.
6501 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6502 in define_insn_and_split pattern.
6503 (iorsi3): Likewise.
6504 (mulsi3_v2): Add new matching variant.
6505 (andsi3_i): Cleanup pattern.
6506 (rotrsi3_cnt1): Update pattern.
6507 (rotrsi3_cnt8): New pattern.
6508 (ashlsi2_cnt8): Likewise.
6509 (ashlsi2_cnt16): Likewise.
6510 * config/arc/constraints.md (C0p): Update constraint.
6511 (Crr): Remove it.
6512 (C0x): New pattern.
6513 (Cax): New pattern.
6514
6515 2019-06-10 Martin Liska <mliska@suse.cz>
6516
6517 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6518 Update coding style.
6519 (sem_item_optimizer::dump_cong_classes):
6520 Print how many items are in a non-singular class. Improve
6521 coding style.
6522
6523 2019-06-10 Martin Liska <mliska@suse.cz>
6524
6525 * value-prof.c (dump_histogram_value): Change dump format.
6526 (gimple_mod_subtract_transform): Remove legacy comment.
6527
6528 2019-06-10 Martin Liska <mliska@suse.cz>
6529
6530 * value-prof.c (dump_histogram_value): Print histogram values
6531 only if present.
6532
6533 2019-06-10 Martin Liska <mliska@suse.cz>
6534
6535 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6536 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6537 * ipa-profile.c (ipa_profile_generate_summary):
6538 Use get_most_common_single_value.
6539 * tree-profile.c (gimple_init_gcov_profiler):
6540 Instrument with __gcov_one_value_profiler_v2
6541 and __gcov_indirect_call_profiler_v4.
6542 * value-prof.c (dump_histogram_value):
6543 Print all values for HIST_TYPE_SINGLE_VALUE.
6544 (stream_out_histogram_value): Update assert for
6545 N values.
6546 (stream_in_histogram_value): Set number of
6547 counters for HIST_TYPE_SINGLE_VALUE.
6548 (get_most_common_single_value): New.
6549 (gimple_divmod_fixed_value_transform):
6550 Use get_most_common_single_value.
6551 (gimple_ic_transform): Likewise.
6552 (gimple_stringops_transform): Likewise.
6553 (gimple_find_values_to_profile): Set number
6554 of counters for HIST_TYPE_SINGLE_VALUE.
6555 * value-prof.h (get_most_common_single_value): New.
6556
6557 2019-06-10 Martin Liska <mliska@suse.cz>
6558
6559 * hash-map.h: Pass default value to hash_table ctor.
6560 * hash-table.h: Add default value to call of a ctor.
6561
6562 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
6563
6564 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6565 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6566
6567 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
6568
6569 PR target/90751
6570 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6571 Call pa_output_function_label.
6572 (TARGET_ASM_FUNCTION_PROLOGUE): define.
6573 * config/pa/pa-protos.h (pa_output_function_label): Declare.
6574 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6575 to declaration.
6576 (pa_linux_output_function_prologue): Declare.
6577 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6578 (pa_output_function_label): New.
6579 (pa_output_function_prologue): Revise to use pa_output_function_label.
6580 (pa_linux_output_function_prologue): New.
6581 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6582
6583 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
6584
6585 * tree-vrp.h (value_range_base::intersect): New.
6586 (value_range::intersect_helper): Move from here...
6587 (value_range_base::intersect_helper): ...to here.
6588 * tree-vrp.c (value_range::intersect_helper): Rename to...
6589 (value_range_base::intersect_helper): ...this, and rewrite to
6590 return a value instead of modifying THIS in place.
6591 Also, move equivalence handling...
6592 (value_range::intersect): ...here, while calling intersect_helper.
6593 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6594 calling intersect.
6595 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6596 Same.
6597 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6598
6599 2019-06-07 Jakub Jelinek <jakub@redhat.com>
6600
6601 * Makefile.in (genprogerr): Add condmd.
6602 (genprog): Remove it here.
6603
6604 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
6605
6606 * doc/invoke.texi (AMD GCN Options): Add gfx906.
6607
6608 2019-06-07 Richard Biener <rguenther@suse.de>
6609
6610 PR debug/90574
6611 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6612 that appear after user labels.
6613
6614 2019-06-07 Martin Liska <mliska@suse.cz>
6615
6616 * cselib.c (cselib_init): Disable hash table
6617 sanitization.
6618 * hash-set.h: Pass new default argument to m_table.
6619 * hash-table.c: Add global variable with hash table
6620 sanitization limit.
6621 * hash-table.h (Allocator>::hash_table): Add new argument
6622 to ctor.
6623 (hashtab_chk_error): New.
6624 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6625 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6626 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6627
6628 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6629
6630 * common.opt (flto-odr-type-merging): Ignore.
6631 * invoke.texi (-flto-odr-type-merging): Remove.
6632 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6633 (can_be_vtable_hashed_p): Remove.
6634 (hash_odr_vtable): Remove.
6635 (odr_vtable_hasher::hash): Remove.
6636 (types_same_for_odr): Remove.
6637 (types_odr_comparable): Remove.
6638 (odr_vtable_hasher::equal): Remove.
6639 (odr_vtable_hash_type, odr_vtable_hash): Remove.
6640 (add_type_duplicate): Do not synchronize vtable and name hashtables.
6641 (get_odr_type): Do not use vtable hash.
6642 (dump_odr_type): Remove commented out code.
6643 (build_type_inheritance_graph): Do not allocate vtable hash.
6644 (rebuild_type_inheritance_graph): Do not delete vtable hash.
6645 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6646 (odr_type_p): Likewise.
6647 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6648 test.
6649
6650 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6651
6652 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6653 immediately after same_types_for_tbaa_p returns -1 and continue
6654 looking for possible exact match; if matching types are arrays
6655 watch for partial overlaps.
6656 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6657 (indirect_refs_may_alias_p): Do type based disambiguation first;
6658 update comment.
6659
6660 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
6661
6662 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6663
6664 2019-06-07 Martin Liska <mliska@suse.cz>
6665
6666 * doc/invoke.texi: Remove param.
6667 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6668 Remove.
6669 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6670 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6671 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6672 * profile.c (instrument_values): Remove
6673 HIST_TYPE_INDIR_CALL_TOPN.
6674 * tree-profile.c (init_ic_make_global_vars):
6675 Always build __gcov_indirect_call only.
6676 (gimple_init_gcov_profiler): Remove usage
6677 of PARAM_INDIR_CALL_TOPN_PROFILE.
6678 (gimple_gen_ic_profiler): Likewise.
6679 * value-prof.c (dump_histogram_value): Likewise.
6680 (stream_in_histogram_value): Likewise.
6681 (gimple_indirect_call_to_profile): Likewise.
6682 (gimple_find_values_to_profile): Likewise.
6683 * value-prof.h (enum hist_type): Likewise.
6684
6685 2019-06-07 Martin Liska <mliska@suse.cz>
6686
6687 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6688 function.
6689
6690 2019-06-07 Martin Liska <mliska@suse.cz>
6691
6692 PR tree-optimization/78902
6693 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
6694 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
6695 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6696 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6697 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
6698 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6699 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
6700 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
6701 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6702 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6703 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6704 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
6705 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
6706 New.
6707 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
6708 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
6709 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
6710 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6711 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6712 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
6713 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6714 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6715 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
6716 warn_unused_result attribute.
6717 (BUILT_IN_STRDUP): Likewise.
6718 (BUILT_IN_STRNDUP): Likewise.
6719 (BUILT_IN_ALLOCA): Likewise.
6720 (BUILT_IN_CALLOC): Likewise.
6721 (BUILT_IN_MALLOC): Likewise.
6722 (BUILT_IN_REALLOC): Likewise.
6723
6724 2019-06-06 Jim Wilson <jimw@sifive.com>
6725
6726 PR target/89955
6727 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
6728 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6729 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
6730
6731 2019-06-06 Martin Sebor <msebor@redhat.com>
6732
6733 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
6734 (handle_builtin_malloc): Remove trailing spaces.
6735 (handle_builtin_memset): Same.
6736 (handle_builtin_memcmp): Same.
6737 (compute_string_length): Same.
6738 (determine_min_objsize): Same.
6739 (handle_builtin_string_cmp): Same.
6740 (handle_char_store): Same. Break up excessively long line.
6741
6742 2019-06-06 Martin Jambor <mjambor@suse.cz>
6743
6744 * tree-sra.c (build_reconstructed_reference): Drop the alignment
6745 check.
6746
6747 2019-06-06 Martin Jambor <mjambor@suse.cz>
6748
6749 * tree-sra.c (struct access): New field grp_same_access_path.
6750 (dump_access): Dump it.
6751 (build_reconstructed_reference): New function.
6752 (build_ref_for_model): Use it if possible.
6753 (path_comparable_for_same_access): New function.
6754 (same_access_path_p): Likewise.
6755 (sort_and_splice_var_accesses): Set the new flag.
6756 (analyze_access_subtree): Likewise.
6757 (propagate_subaccesses_across_link): Propagate zero value of the new
6758 flag down the access tree.
6759
6760 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
6761
6762 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
6763 * config/gcn/gcn.opt (gpu_type): Add gfx906.
6764 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
6765 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
6766 Add gfx906.
6767
6768 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6769
6770 PR tree-optimization/90332
6771 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
6772 Handle VALS containing two vectors.
6773 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
6774 to...
6775 (@aarch64_combinez<mode>): ... This.
6776 (*aarch64_combinez_be<mode>): Rename to...
6777 (@aarch64_combinez_be<mode>): ... This.
6778 (vec_init<mode><Vhalf>): New define_expand.
6779 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
6780
6781 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6782
6783 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
6784 library functions only when not optimizing for size.
6785 (ashlsi3): Likewise.
6786 (ashrhi3): Likewise.
6787 (ashrsi3): Likewise.
6788 (lshrhi3): Likewise.
6789 (lshrsi3): Likewise.
6790
6791 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
6792
6793 PR rtl-optimization/88751
6794 * ira.c (ira): Use the number of the actually referenced registers
6795 when calculating the threshold.
6796
6797 2019-06-06 Jakub Jelinek <jakub@redhat.com>
6798
6799 * configure: Regenerate.
6800
6801 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6802
6803 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
6804 register if it is in memory, so the shift can be emulated with a rotate
6805 instruction.
6806 (ashrhi3): Likewise.
6807 (lshrhi3): Likewise.
6808
6809 2019-06-06 Martin Liska <mliska@suse.cz>
6810
6811 PR tree-optimization/87954
6812 * match.pd: Simplify mult where both arguments are 0 or 1.
6813
6814 2019-06-06 Richard Biener <rguenther@suse.de>
6815
6816 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
6817 put equivalences on UNDEFINED ranges.
6818 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
6819 Make sure to drop defs of stmts added during simplification
6820 to VARYING.
6821
6822 2019-06-06 Richard Biener <rguenther@suse.de>
6823
6824 * tree-ssa-structalias.c: Include tree-cfg.h.
6825 (make_heapvar): Do not make heap vars artificial.
6826 (find_func_aliases_for_builtin_call): Handle stack allocation
6827 functions.
6828 (find_func_aliases): Delay processing of simple enough returns
6829 in non-IPA mode.
6830 (set_uids_in_ptset): Adjust.
6831 (find_what_var_points_to): Likewise.
6832 (solve_constraints): Do not dump points-to sets here.
6833 (compute_points_to_sets): Post-process return statements,
6834 amending the escaped solution. Dump points-to sets afterwards.
6835 (ipa_pta_execute): Dump points-to sets.
6836
6837 2019-06-06 Martin Liska <mliska@suse.cz>
6838
6839 PR web/87933
6840 * doc/install.texi: Fix HTML headers and
6841 titles for 'Installing GCC' pages.
6842
6843 2019-06-06 Martin Liska <mliska@suse.cz>
6844
6845 * ipa-icf-gimple.h (dump_message_1): Remove.
6846 (dump_message): Likewise.
6847 (return_false_with_message_1): Print also file.
6848 (return_false_with_msg): Likewise.
6849 (return_with_result): Likewise.
6850 (return_with_debug): Likewise.
6851 * ipa-icf.c (sem_function::equals_private): Remove call
6852 to dump_message.
6853
6854 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6855
6856 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
6857 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
6858 memory operand for it.
6859 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
6860
6861 2019-06-05 Martin Sebor <msebor@redhat.com>
6862
6863 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
6864 Adjust quoting and hyphenation.
6865 * convert.c (convert_to_real_1): Same.
6866 * gcc.c (driver_wrong_lang_callback): Same.
6867 (driver::handle_unrecognized_options): Same.
6868 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6869 * opts-common.c (cmdline_handle_error): Same.
6870 (read_cmdline_option): Same.
6871 * opts-global.c (complain_wrong_lang): Same.
6872 (print_ignored_options): Same.
6873 (handle_common_deferred_options): Same.
6874 * pretty-print.h: Same.
6875 * print-rtl.c (debug_bb_n_slim): Same.
6876 * sched-rgn.c (make_pass_sched_fusion): Same.
6877 * tree-cfg.c (verify_gimple_assign_unary): Same.
6878 (verify_gimple_label): Same.
6879 * tree-ssa-operands.c (verify_ssa_operands): Same.
6880 * varasm.c (do_assemble_alias): Same.
6881 (assemble_alias): Same.
6882
6883 2019-06-05 Richard Henderson <rth@twiddle.net>
6884
6885 * config/alpha/alpha.c (direct_return): Move down after
6886 struct machine_function definition; use saved frame_size;
6887 return bool.
6888 (struct machine_function): Add sa_mask, sa_size, frame_size.
6889 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
6890 (alpha_compute_frame_layout): ... new function.
6891 (TARGET_COMPUTE_FRAME_LAYOUT): New.
6892 (alpha_initial_elimination_offset): Use saved sa_size.
6893 (alpha_vms_initial_elimination_offset): Likewise.
6894 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
6895 (alpha_expand_prologue): Use saved frame data. Merge integer
6896 and fp register save loops.
6897 (alpha_expand_epilogue): Likewise.
6898 (alpha_start_function): Use saved frame data.
6899 * config/alpha/alpha-protos.h (direct_return): Update.
6900 (alpha_sa_size): Remove.
6901
6902 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
6903
6904 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
6905 multiplication by a power-of-two value.
6906 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
6907 and turn the modulo operation into a masking operation.
6908
6909 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6910
6911 PR debug/90733
6912 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
6913 with VOIDmode inner operands.
6914
6915 2019-06-05 Richard Biener <rguenther@suse.de>
6916
6917 PR middle-end/90726
6918 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6919 turn an expression graph into a tree.
6920
6921 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6922
6923 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
6924 member.
6925 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
6926 treat it like explicit monotonic schedule modifier.
6927 (expand_omp_for): Initialize has_lastprivate_conditional.
6928 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
6929 schedule modifier.
6930
6931 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
6932 references, lookup in in hash map MEM_REF operand instead of the
6933 MEM_REF itself.
6934 (lower_omp_1): When looking for lastprivate conditional assignments,
6935 handle MEM_REFs with REFERENCE_TYPE operands.
6936
6937 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
6938 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
6939 and references a VLA. Handle references to non-VLAs if is_simd
6940 all privatization clauses like reductions.
6941 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
6942 If omp_is_reference, use always omp simd arrays and set
6943 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
6944 fails, emit reference initialization.
6945
6946 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6947
6948 PR target/89803
6949 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
6950 _mm_mask_fpclass_sd_mask): New intrinsics.
6951 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
6952 * config/i386/i386-builtin.def
6953 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
6954 New builtins.
6955 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
6956 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
6957 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
6958 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
6959 case QI_FTYPE_V2SF_INT): Ditto.
6960 * config/i386/sse.md
6961 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
6962 Extended to insnstructions with mask operands.
6963
6964 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6965
6966 * config/rs6000/constraints.md (define_register_constraint "wp"):
6967 Delete.
6968 (define_register_constraint "wq"): Delete.
6969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6970 (rs6000_init_hard_regno_mode_ok): Adjust.
6971 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6972 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
6973 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
6974 (define_mode_attr VSa): Delete.
6975 (define_mode_attr VSisa): New.
6976 (rest of file): Adjust.
6977 * doc/md.texi (Machine Constraints): Adjust.
6978
6979 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6980
6981 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
6982 (define_attr "enabled"): Handle those new isa values.
6983
6984 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6985
6986 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
6987 (define_mode_attr VSr5): Delete.
6988 (define_mode_attr VStype_sqrt): Delete.
6989 (define_mode_iterator VSX_SPDP): Delete.
6990 (define_mode_attr VS_spdp_res): Delete.
6991 (define_mode_attr VS_spdp_insn): Delete.
6992 (define_mode_attr VS_spdp_type): Delete.
6993 (*vsx_sqrt<mode>2): Adjust.
6994 (vsx_<VS_spdp_insn>): Delete, split to...
6995 (vsx_xscvdpsp): ... this. New. And...
6996 (vsx_xvcvspdp): ... this. New. And...
6997 (vsx_xvcvdpsp): ... this. New.
6998
6999 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7000
7001 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
7002 and V2DF.
7003 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
7004 (rest of file): Adjust.
7005
7006 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7007
7008 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
7009 (vsx_extract_<mode>_var): Ditto.
7010
7011 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7012
7013 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
7014 with just "wa".
7015
7016 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7017
7018 * config/rs6000/constraints.md (define_register_constraint "ww"):
7019 Delete.
7020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7021 (rs6000_init_hard_regno_mode_ok): Adjust.
7022 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7023 RS6000_CONSTRAINT_ww.
7024 * config/rs6000/rs6000.md: Adjust.
7025 * config/rs6000/vsx.md: Adjust.
7026 * doc/md.texi (Machine Constraints): Adjust.
7027
7028 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7029
7030 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
7031 (define_mode_attr sd): New.
7032 (define_mode_attr s): New.
7033 (define_mode_attr Ftrad): Delete.
7034 (define_mode_attr Fvsx): Delete.
7035 (define_mode_attr Fs): Delete.
7036 (rest of file): Use the new mode attributes.
7037 * config.rs6000/vsx.md: Use the new mode attributes.
7038
7039 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7040
7041 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
7042 with just "wa".
7043
7044 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7045
7046 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
7047 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
7048 used with VSX_B, VSX_D, or VSX_F, with just "wa".
7049
7050 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
7051
7052 PR target/78263
7053 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
7054 C++ with strict ANSI requirements.
7055
7056 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
7057
7058 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
7059 computations when step is 1.
7060
7061 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7062
7063 * config/rs6000/constraints.md (define_register_constraint "wf"):
7064 Delete.
7065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7066 (rs6000_init_hard_regno_mode_ok): Adjust.
7067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7068 RS6000_CONSTRAINT_wf.
7069 * config/rs6000/rs6000.md: Adjust.
7070 * config/rs6000/vsx.md: Adjust.
7071 * doc/md.texi (Machine Constraints): Adjust.
7072
7073 2019-06-04 Andrew Pinski <apinski@marvell.com>
7074
7075 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
7076 Fix ILP32 value.
7077
7078 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7079
7080 * config/rs6000/constraints.md (define_register_constraint "wd"):
7081 Delete.
7082 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7083 (rs6000_init_hard_regno_mode_ok): Adjust.
7084 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7085 RS6000_CONSTRAINT_wd.
7086 * config/rs6000/rs6000.md: Adjust.
7087 * config/rs6000/vsx.md: Adjust.
7088 * doc/md.texi (Machine Constraints): Adjust.
7089
7090 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7091
7092 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
7093 (rest of file): Adjust.
7094
7095 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7096
7097 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
7098 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
7099 (vsx_splat_<mode>_reg): Adjust.
7100
7101 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7102
7103 * config/rs6000/constraints.md (define_register_constraint "ws"):
7104 Delete.
7105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7106 (rs6000_init_hard_regno_mode_ok): Adjust.
7107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7108 RS6000_CONSTRAINT_ws.
7109 * config/rs6000/rs6000.md: Adjust.
7110 * config/rs6000/vsx.md: Adjust.
7111 * doc/md.texi (Machine Constraints): Adjust.
7112
7113 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7114
7115 * config/rs6000/constraints.md (define_register_constraint "wv"):
7116 Delete.
7117 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7118 (rs6000_init_hard_regno_mode_ok): Adjust.
7119 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7120 RS6000_CONSTRAINT_wv.
7121 * config/rs6000/rs6000.md: Adjust.
7122 * config/rs6000/vsx.md: Adjust.
7123 * doc/md.texi (Machine Constraints): Adjust.
7124
7125 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7126
7127 * config/rs6000/constraints.md (define_register_constraint "wi"):
7128 Delete.
7129 (define_register_constraint "wt"): Delete.
7130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7131 (rs6000_init_hard_regno_mode_ok): Adjust.
7132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7133 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
7134 * config/rs6000/rs6000.md: Adjust.
7135 * config/rs6000/vsx.md: Adjust.
7136 * doc/md.texi (Machine Constraints): Adjust.
7137
7138 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7139
7140 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
7141 const.
7142 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
7143 default_elf_asm_output_external.
7144
7145 2019-06-04 Martin Liska <mliska@suse.cz>
7146
7147 * ipa-icf.c (INCLUDE_LIST): Remove.
7148 (sem_item_optimizer::execute): Remove call to init_wpa.
7149 * ipa-icf.h (init_wpa): Remove.
7150
7151 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7152
7153 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
7154 conditional on combined for simd.
7155 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
7156 member.
7157 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
7158 constructs, don't remove lastprivate_conditional_map, but instead set
7159 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
7160 to parent construct temporaries.
7161 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
7162 like !ctx->lastprivate_conditional_map.
7163 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
7164 use up->outer context instead of up.
7165 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
7166 gimple_omp_for_combined_p.
7167 (expand_omp_for_static_nochunk): Likewise.
7168 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
7169 probably moved over into expand_omp_for_generic rather than being copied
7170 there.
7171
7172 2019-06-04 Martin Liska <mliska@suse.cz>
7173
7174 * value-prof.c (dump_histogram_value): Fix typo.
7175 (gimple_mod_subtract_transform): Likewise.
7176
7177 2019-06-04 Richard Biener <rguenther@suse.de>
7178
7179 PR middle-end/90726
7180 * tree-chrec.c (chrec_contains_symbols): Add to visited.
7181 (tree_contains_chrecs): Likewise.
7182 (chrec_contains_symbols_defined_in_loop): Move here and avoid
7183 exponential behaivor from ...
7184 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7185 ... here.
7186 (expression_expensive_p): Avoid exponential behavior and compute
7187 expanded size, rejecting any expansion.
7188 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
7189 (idx_contains_abnormal_ssa_name_p): Likewise.
7190 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
7191 (contains_abnormal_ssa_name_p): Simplify and use
7192 walk_tree_without_duplicates.
7193
7194 2019-06-04 Richard Biener <rguenther@suse.de>
7195
7196 PR tree-optimization/90738
7197 Revert
7198 2019-06-03 Richard Biener <rguenther@suse.de>
7199
7200 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7201 full reference tree and record in ref->ref.
7202 (vn_reference_lookup_3): Pass in original ref to
7203 ao_ref_init_from_vn_reference.
7204 (vn_reference_lookup): Likewise.
7205 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7206 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7207 Handle non-decl bases in the original reference.
7208
7209 2019-06-04 Martin Liska <mliska@suse.cz>
7210
7211 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
7212 number of references.
7213 (sem_item_optimizer::do_congruence_step):
7214 (sem_item_optimizer::worklist_push): Dump how references
7215 a class has.
7216 (sem_item_optimizer::worklist_pop): Use heap.
7217 (sem_item_optimizer::process_cong_reduction): Likewise.
7218 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
7219
7220 2019-06-04 Martin Liska <mliska@suse.cz>
7221
7222 * ipa-icf.h (struct sem_usage_pair_hash): New.
7223 (sem_usage_pair_hash::hash): Likewise.
7224 (sem_usage_pair_hash::equal): Likewise.
7225 (struct sem_usage_hash): Likewise.
7226 * ipa-icf.c (sem_item::sem_item): Initialize
7227 referenced_by_count.
7228 (sem_item::add_reference): Register a reference
7229 in ref_map and not in target->usages.
7230 (sem_item::setup): Remove initialization of
7231 dead vectors.
7232 (sem_item::~sem_item): Remove usage of dead vectors.
7233 (sem_item::dump): Remove dump of references.
7234 (sem_item_optimizer::sem_item_optimizer): Initialize
7235 m_references.
7236 (sem_item_optimizer::read_section): Remove useless
7237 dump.
7238 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
7239 (sem_item_optimizer::build_graph): Pass m_references
7240 to ::add_reference.
7241 (sem_item_optimizer::verify_classes): Remove usage of dead
7242 vectors.
7243 (sem_item_optimizer::traverse_congruence_split): Return true
7244 when a class is split.
7245 (sem_item_optimizer::do_congruence_step_for_index): Use
7246 hash_map for look up of (sem_item *, index). That brings
7247 significant speed up.
7248 (sem_item_optimizer::do_congruence_step): Return true
7249 when a split is done.
7250 (congruence_class::is_class_used): Use referenced_by_count.
7251
7252 2019-06-04 Alan Modra <amodra@gmail.com>
7253
7254 PR target/90689
7255 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
7256 error.
7257
7258 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7259
7260 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
7261 * config/rs6000/rs6000.c (direct_move_p): Adjust.
7262 (rs6000_secondary_reload_simple_move): Adjust.
7263 (rs6000_opt_masks): Neuter the "mfpgpr" option.
7264 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
7265 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
7266 comment.
7267 (power6x): Adjust.
7268 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
7269 (floatunssi<mode>2_lfiwzx): Adjust.
7270 (fix_trunc<mode>si2_stfiwx): Adjust.
7271 (fixuns_trunc<mode>si2_stfiwx): Adjust.
7272 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
7273 (mfpgpr): Mark as deprecated.
7274 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
7275 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
7276 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
7277
7278 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7279
7280 * config/rs6000/constraints.md (define_register_constraint "wg"):
7281 Delete.
7282 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7283 RS6000_CONSTRAINT_wg.
7284 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7285 (rs6000_init_hard_regno_mode_ok): Adjust.
7286 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
7287 Delete "wg" alternatives.
7288 * doc/md.texi (Machine Constraints): Adjust.
7289
7290 2019-06-03 Alan Modra <amodra@gmail.com>
7291
7292 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
7293 (get_uncond_jump_length): Assert length less than INT_MAX and
7294 non-negative.
7295
7296 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7297
7298 PR middle-end/64242
7299 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
7300 block.
7301 (expand_builtin_nonlocal_goto): Likewise.
7302
7303 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7304
7305 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
7306 (aarch64_asm_output_external): Declare.
7307 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
7308 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
7309 (aarch64_asm_output_alias): New.
7310 (aarch64_asm_output_external): New.
7311 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7312 (ASM_OUTPUT_EXTERNAL): Define.
7313
7314 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
7315 * tree-vrp.h (value_range_base::nonzero_p): New.
7316 (value_range_base::set_nonnull): Rename to...
7317 (value_range_base::set_nonzero): ...this.
7318 (value_range_base::set_null): Rename to...
7319 (value_range_base::set_zero): ...this.
7320 (value_range::set_nonnull): Remove.
7321 (value_range::set_null): Remove.
7322 * tree-vrp.c (range_is_null): Remove.
7323 (range_is_nonnull): Remove.
7324 (extract_range_from_binary_expr): Use value_range_base::*zero_p
7325 instead of range_is_*null.
7326 (extract_range_from_unary_expr): Same.
7327 (value_range_base::set_nonnull): Rename to...
7328 (value_range_base::set_nonzero): ...this.
7329 (value_range::set_nonnull): Remove.
7330 (value_range_base::set_null): Rename to...
7331 (value_range_base::set_zero): ...this.
7332 (value_range::set_null): Remove.
7333 (extract_range_from_binary_expr): Rename set_*null uses to
7334 set_*zero.
7335 (extract_range_from_unary_expr): Same.
7336 (union_helper): Same.
7337 * vr-values.c (get_value_range): Use set_*zero instead of
7338 set_*null.
7339 (vr_values::extract_range_from_binary_expr): Same.
7340 (vr_values::extract_range_basic): Same.
7341
7342 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7343
7344 PR driver/90684
7345 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
7346
7347 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7348
7349 * config/aarch64/iterators.md (MAX_OPP): New code attr.
7350 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
7351 Rename to...
7352 (aarch64_<su>abd<mode>_3): ... This.
7353 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
7354
7355 2019-06-03 Richard Biener <rguenther@suse.de>
7356
7357 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7358 full reference tree and record in ref->ref.
7359 (vn_reference_lookup_3): Pass in original ref to
7360 ao_ref_init_from_vn_reference.
7361 (vn_reference_lookup): Likewise.
7362 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7363 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7364 Handle non-decl bases in the original reference.
7365
7366 2019-06-03 Martin Liska <mliska@suse.cz>
7367
7368 * doc/generic.texi: Remove Java Trees.
7369
7370 2019-06-03 Martin Liska <mliska@suse.cz>
7371
7372 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
7373 returns 0 when operands are equal.
7374
7375 2019-06-03 Richard Biener <rguenther@suse.de>
7376
7377 PR tree-optimization/90716
7378 * tree-loop-distribution.c (destroy_loop): Process blocks in
7379 correct order.
7380
7381 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7382
7383 PR target/88837
7384 * vector-builder.h (vector_builder::count_dups): New method.
7385 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
7386 Declare prototype.
7387 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
7388 (vec_init<mode><Vel>): New pattern.
7389 * config/aarch64/aarch64.c (emit_insr): New function.
7390 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
7391 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
7392 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
7393 (aarch64_sve_expand_vector_init): Define two overloaded functions.
7394
7395 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7396
7397 PR tree-optimization/90681
7398 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
7399 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
7400 special case for SLP, but fail on non-groupped loads.
7401
7402 2019-06-03 Martin Liska <mliska@suse.cz>
7403
7404 * cfg.c (debug): Use TDF_DETAILS for debug and
7405 print edge info only once.
7406
7407 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
7408
7409 PR fortran/90539
7410 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
7411
7412 2019-06-01 Martin Sebor <msebor@redhat.com>
7413
7414 PR middle-end/90694
7415 * tree-pretty-print.c (dump_generic_node): Add parentheses.
7416
7417 2019-05-31 Jan Hubicka <jh@suse.cz>
7418
7419 * alias.c: Include ipa-utils.h.
7420 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
7421 * ipa-devirt.c (prevailing_odr_type): New.
7422 * ipa-utils.h (previaling_odr_type): Declare.
7423
7424 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
7425 Hongtao Liu <hongtao.liu@intel.com>
7426
7427 PR target/89355
7428 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
7429 NOTE_INSN_DELETED_LABEL check.
7430
7431 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
7432 Robert Suchanek <robert.suchanek@mips.com>
7433
7434 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
7435 and 3rd operands of the fmadd/fmsub/maddv builtin.
7436
7437 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7438
7439 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
7440 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7441 on OMP_SIMD if not nested inside of worksharing loop that also has
7442 lastprivate conditional clause for the same decl.
7443 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
7444 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
7445 on simd.
7446 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
7447 on simd construct.
7448 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
7449 on simd construct.
7450 (lower_lastprivate_clauses): Likewise.
7451 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
7452 calling lower_rec_input_clauses.
7453 (lower_omp_for): Likewise.
7454 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
7455 clause on simd construct.
7456 * omp-expand.c (expand_omp_simd): Initialize cond_var if
7457 OMP_CLAUSE__CONDTEMP_ clause is present.
7458
7459 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
7460 ivar and lvar.
7461
7462 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
7463
7464 PR c/43673
7465 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
7466 TEX_D32, TEX_D64 or TEX_D128.
7467
7468 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7469
7470 * match.pd (~(vec?cst1:cst2)): New transformation.
7471
7472 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7473
7474 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
7475 ((size_t)(A /[ex] B) CMP C): New transformation.
7476
7477 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
7478
7479 * doc/md.texi: Document define_insn_and_rewrite.
7480 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
7481 * gensupport.c (queue_elem): Update comment.
7482 (replace_operands_with_dups): New function.
7483 (gen_rewrite_sequence): Likewise.
7484 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
7485 * read-rtl.c (apply_subst_iterator): Likewise.
7486 (add_condition_to_rtx, named_rtx_p): Likewise.
7487 (rtx_reader::read_rtx_operand): Likewise.
7488 * config/aarch64/aarch64-sve.md
7489 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
7490 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
7491 define_insn_and_rewrite.
7492 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
7493 Remove separate define_split.
7494
7495 2019-05-31 Jan Hubicka <jh@suse.cz>
7496
7497 * tree-ssa-alias.c (type_has_components_p): New function.
7498 (aliasing_component_refs_p): Use it.
7499
7500 2019-05-31 Martin Liska <mliska@suse.cz>
7501
7502 * gdbhooks.py: Add const_tree to TreePrinter.
7503
7504 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
7505
7506 PR debug/86964
7507 * common.opt (feliminate-unused-debug-symbols): Enable by default.
7508 * doc/invoke.texi (Debugging Options): Document new default of
7509 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7510
7511 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7512
7513 PR tree-optimization/90671
7514 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7515 template_block used to be empty on the first call, don't use
7516 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7517 seq with bb_seq and set it with set_bb_seq.
7518
7519 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
7520
7521 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7522
7523 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7524 Michael Meissner <meissner@linux.ibm.com>
7525
7526 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7527 (prefixed_mem_operand): Likewise.
7528 (non_prefixed_mem_operand): Likewise.
7529 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7530 prototype.
7531 * config/rs6000/rs6000.c (print_operand_address): Handle
7532 PC-relative addresses.
7533 (mode_supports_prefixed_address_p): New function.
7534 (rs6000_prefixed_address): New function.
7535 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7536 (SYMBOL_REF_PCREL_P): Likewise.
7537
7538 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7539
7540 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7541 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7542 (gimplify_omp_for): If worksharing loop with lastprivate conditional
7543 is nested inside of parallel region, add _condtemp_ clause to both.
7544 * tree-nested.c (convert_nonlocal_omp_clauses,
7545 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7546 assertion failure.
7547 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7548 member.
7549 * omp-general.c (omp_extract_for_data): Compute it.
7550 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7551 (lower_rec_input_clauses): Likewise.
7552 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7553 clause is already present, just add one further one after it.
7554 (lower_lastprivate_clauses): Handle cond_ptr with array type.
7555 (lower_send_shared_vars): Clear _condtemp_ vars.
7556 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7557 or section or taskgroup.
7558 * omp-expand.c (determine_parallel_type): Disallow combining only if
7559 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
7560 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7561 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7562 expand_omp_for_static_chunk, expand_omp_for): Use
7563 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7564 determine if a special set of API routines are needed and if condtemp
7565 needs to be initialized, while always initialize cond_var if
7566 fd->lastprivate_conditional is non-zero.
7567
7568 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7569 Michael Meissner <meissner@linux.ibm.com>
7570
7571 * config/rs6000/constraints.md (eI): New constraint.
7572 * config/rs6000/predicates.md (cint34_operand): New predicate.
7573 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7574 (SIGNED_34BIT_OFFSET_P): Likewise.
7575 * doc/md.texi (eI): Document constraint.
7576
7577 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
7578
7579 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7580
7581 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7582 Michael Meissner <meissner@linux.ibm.com>
7583
7584 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7585 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7586 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7587 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7588 (OTHER_FUTURE_MASKS): Likewise.
7589 (POWERPC_MASKS): Likewise.
7590 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7591 specified without -mprefixed-addr or -mcpu=future. Error if
7592 -mprefixed-addr is specified without -mcpu=future.
7593 (rs6000_opt_masks): Add entry for prefixed-addr.
7594 * rs6000.opt (mprefixed-addr): New option.
7595
7596 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
7597
7598 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7599 cfun->is_thunk check.
7600
7601 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7602
7603 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7604 to length.
7605
7606 2019-05-30 Martin Liska <mliska@suse.cz>
7607
7608 * gdbinit.in: Fix 'ptc' command. Add trt
7609 that prints TREE_TYPE($).
7610
7611 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
7612 Alan Modra <amodra@gmail.com>
7613
7614 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7615 calls here...
7616 (rs6000_indirect_call_template_1): ...and here.
7617 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
7618 plt16_ha, plt16_lo, mtctr indirect calls. Use
7619 rs6000_pltseq_enum.
7620 (rs6000_decl_ok_for_sibcall): New function.
7621 (rs6000_function_ok_for_sibcall): Refactor.
7622 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7623 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7624 when pcrel. Reorganize.
7625 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7626 * rs6000.h (rs6000_pltseq_enum): New enum.
7627 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7628 (*pltseq_tocsave): Use rs6000_pltseq_enum.
7629 (*pltseq_plt16_ha): Likewise.
7630 (*pltseq_plt16_lo): Likewise.
7631 (*pltseq_mtctr): Likewise.
7632 (*pltseq_plt_pcrel): New insn.
7633 (*call_local_aix): Handle @notoc calls.
7634 (*call_value_local_aix): Likewise.
7635 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7636 (*call_value_nonlocal_aix): Likewise.
7637 (*call_indirect_pcrel): New insn.
7638 (*call_value_indirect_pcrel): Likewise.
7639
7640 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
7641
7642 * config/i386/sse.md (*save_multiple<mode>): Rename from
7643 save_multiple<mode>.
7644 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7645 (*restore_multiple_and_return<mode>): Rename from
7646 restore_multiple_and_return<mode>.
7647 (*restore_multiple_leave_return<mode>): Rename from
7648 restore_multiple_leave_return<mode>.
7649
7650 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
7651
7652 * config.gcc (rx-*-linux*): New target.
7653 * config/rx/elf.opt: New file.
7654 * config/rx/linux.h: Likewise.
7655 * config/rx/t-linux: Likewise.
7656 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7657 make it zero.
7658 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7659 (ASM_APP_OFF): Likewise.
7660 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7661 moved elsewhere.
7662
7663 2019-05-29 Jan Hubicka <jh@suse.cz>
7664
7665 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7666 variants are pointer equivalent.
7667
7668 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7669
7670 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7671 * config/aarch64/aarch64-sve2.md: New file.
7672 (<u>avg<mode>3_floor): New pattern.
7673 (<u>avg<mode>3_ceil): Likewise.
7674 (*<sur>h<addsub><mode>): Likewise.
7675 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7676 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7677
7678 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7679
7680 PR bootstrap/90543
7681 * optc-save-gen.awk: In cl_optimization_print, use correct condition
7682 for var_opt_string printing. In cl_optimization_print_diff, print
7683 (null) instead of invoking undefined behavior if one of the
7684 var_opt_string pointers is NULL and use && instead of first || in the
7685 guarding condition. For var_target_other options, handle const char *
7686 target variables similarly to const char * optimize node variables.
7687
7688 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
7689
7690 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7691 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
7692 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
7693 Add autib1716 and pacib1716 initialisation.
7694 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
7695 for autib1716 and pacib1716.
7696 * config/aarch64/aarch64-protos.h (aarch64_key_type,
7697 aarch64_post_cfi_startproc): Define.
7698 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
7699 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
7700 aarch64_handle_pac_ret_protection): Set default sign key to A.
7701 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
7702 aarch64_expand_prologue): Add check for b-key.
7703 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
7704 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
7705 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
7706 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
7707 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
7708 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
7709 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7710 * config/aarch64/aarch64.md (do_return): Add check for b-key.
7711 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
7712 pauth_hint_num_a with pauth_hint_num.
7713 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
7714 pauth_hint_num_a with pauth_hint_num.
7715 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
7716 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
7717 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7718 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
7719 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
7720 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
7721 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
7722 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7723 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
7724 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
7725 UNSPEC_AUTIA1716 respectively.
7726 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
7727 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
7728 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
7729 * doc/invoke.texi (-mbranch-protection): Add b-key type.
7730 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
7731 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
7732
7733 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7734
7735 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
7736 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
7737 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
7738 explicit clause on combined parallel into implicit shared clause.
7739 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
7740 and firstprivate if the decl has one too from combined parallel to
7741 the worksharing construct.
7742
7743 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
7744 Michael Meissner <meissner@linux.ibm.com>
7745
7746 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
7747
7748 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
7749
7750 * rtl.h (LABEL_REF_P): New #define.
7751
7752 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
7753
7754 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
7755
7756 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7757
7758 * internal-fn.c: Marked mask_load_direct as vectorizable.
7759 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
7760 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
7761 combined even if masks different with allow_slp_p param.
7762 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
7763 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
7764 dissolve SLP-only vectorizable groups when SLP has been discarded.
7765 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
7766 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
7767 masks.
7768 (vect_build_slp_tree_1): Fixed comment typo.
7769 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
7770 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
7771 loads for SLP only.
7772 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
7773 vectorizable.
7774 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
7775
7776 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7777
7778 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
7779 Remove obsolete use_thunk reference.
7780 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7781 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7782 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7783 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7784 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7785 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7786 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7787 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7788 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7789
7790 2019-05-28 Nathan Sidwell <nathan@acm.org>
7791
7792 * tree.h (IDENTIFIER_ANON_P): New.
7793 (anon_aggrname_format, anon_aggname_p): Don't declare.
7794 (make_anon_name): Declare.
7795 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
7796 (hash_tree): Likewise.
7797 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
7798 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
7799 (anon_cnt, make_anon_name): New.
7800
7801 2019-05-28 Martin Liska <mliska@suse.cz>
7802
7803 PR other/90315
7804 * opts-global.c (decode_options): Print help for all
7805 help_option_arguments.
7806 * opts.c (print_help): Add new argument.
7807 (common_handle_option): Remember all values into
7808 help_option_arguments.
7809 * opts.h (print_help): Add new argument.
7810
7811 2019-05-28 Martin Liska <mliska@suse.cz>
7812
7813 PR ipa/90555
7814 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
7815 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
7816 (func_checker::compare_bb): Call compare_loops.
7817
7818 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7819
7820 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7821 on sections construct.
7822 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
7823 construct.
7824 (lower_omp_sections): Handle lastprivate conditional.
7825 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
7826 lastprivate_conditional_map.
7827 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
7828
7829 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
7830 critical, taskgroup and section regions when looking for a region
7831 with non-NULL lastprivate_conditional_map.
7832
7833 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7834
7835 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
7836 (*ix86_gen_sub3): Ditto.
7837 (*ix86_gen_sub3_carry): Ditto.
7838 (*ix86_gen_one_cmpl2): Ditto.
7839 (*ix86_gen_andsp): Ditto.
7840 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
7841 (gen_and2_insn): New static function.
7842 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
7843 Use gen_add3_insn instead of ix86_gen_add3.
7844 (ix86_expand_split_stack_prologue): Use gen_add2_insn
7845 instead of ix86_gen_add3.
7846 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
7847 Use gen_sub3_insn instead of ix86_gen_sub3.
7848 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
7849 instead of ix86_gen_add3.
7850 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
7851 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
7852 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
7853 * config/i386/i386-options.c (ix86_option_override_internal):
7854 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7855 ix86_gen_one_cmpl2 and ix86_gen_andsp.
7856
7857 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
7858
7859 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
7860 and DW_OP_GNU_const_index opcodes.
7861
7862 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7863
7864 * config/i386/i386.h (STACK_SIZE_MODE): Define.
7865
7866 2019-05-27 Richard Biener <rguenther@suse.de>
7867
7868 PR tree-optimization/90637
7869 * tree-ssa-sink.c (statement_sink_location): Honor the
7870 computed sink location for single-uses.
7871
7872 2019-05-27 Richard Biener <rguenther@suse.de>
7873
7874 PR middle-end/90610
7875 * match.pd (vec_perm): Avoid clobbering op0 when not generating
7876 a bit-insert.
7877
7878 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7879
7880 * config/i386/i386.md (@sub<mode>3_carry): Rename
7881 from sub<mode>3_carry.
7882 (@leave_<mode>): New expander.
7883 (*leave): Rename from leave.
7884 (*leave_rex64): Rename from leave_rex64.
7885 (@monitorx_<mode>): Rename from monitorx_<mode>.
7886 (@clzero_<mode>): Rename from clzero_<mode>.
7887 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
7888 from sse3_monitor_<mode>.
7889 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
7890 (*ix86_gen_leave): Ditto.
7891 (*ix86_gen_monitor): Ditto.
7892 (*ix86_gen_monitorx): Ditto.
7893 (*ix86_gen_clzero): Ditto.
7894 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
7895 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
7896 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
7897 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
7898 Use gen_sse3_monitor instead of ix86_gen_monitor.
7899 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
7900 instead of ix86_gen_monitorx.
7901 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
7902 instead of ix86_gen_clzero.
7903 * config/i386/i386-options.c (ix86_option_override_internal):
7904 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
7905 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
7906
7907 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7908
7909 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
7910 Rename from tls_global_dynamic_64_<mode>.
7911 (@tls_local_dynamic_base_64_<mode>): Rename from
7912 tls_local_dynamic_base_64_<mode>.
7913 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
7914 Remove indirect function.
7915 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
7916 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
7917 instead of ix86_gen_tls_global_dynamic_64.
7918 Use gen_tls_local_dynamic_base_64 instead of
7919 ix86_gen_tls_local_dynamic_base_64.
7920 * config/i386/i386-options.c (ix86_option_override_internal):
7921 Do not initialize ix86_gen_tls_global_dynamic_64 and
7922 ix86_gen_tls_local_dynamic_base_64.
7923
7924 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7925
7926 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
7927 Rename from pro_epilogue_adjust_stack_<mode>_add.
7928 (@pro_epilogue_adjust_stack_sub_<mode>)
7929 Rename from pro_epilogue_adjust_stack_<mode>_sub.
7930 (@allocate_stack_worker_probe_<mode>):
7931 Rename from allocate_stack_worker_probe_<mode>.
7932 (allocate_stack): Use gen_allocate_stack_worker_probe.
7933 (probe_stack): Use gen_probe_stack_1.
7934 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
7935 (@adjust_stack_and_probe_<mode>): Rename from
7936 adjust_stack_and_probe<mode>.
7937 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
7938 (stack_protect_set): Use gen_stack_protect_set_1.
7939 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
7940 (stack_protect_test): Use gen_stack_protect_test_1.
7941 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
7942 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
7943 Remove indirect function.
7944 (*ix86_gen_adjust_stack_and_probe): Ditto.
7945 (*ix86_gen_probe_stack_range): Ditto.
7946 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
7947 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
7948 (ix86_adjust_stack_and_probe_stack_clash): Use
7949 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
7950 (ix86_adjust_stack_and_probe): Ditto.
7951 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
7952 of ix86_gen_probe_stack_range.
7953 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
7954 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
7955 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
7956 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
7957 CODE_FOR_stack_protect_test_{si,di}.
7958 * config/i386/i386-options.c (ix86_option_override_internal):
7959 Do not initialize ix86_gen_allocate_stack_worker,
7960 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
7961
7962 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
7963
7964 * doc/invoke.texi (Link Options): Many editorial changes around
7965 -flinker-output.
7966
7967 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7968
7969 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
7970 pre-Solaris 11 referene and most Studio compiler details.
7971
7972 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
7973
7974 PR target/90530
7975 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
7976 DImode to SImode in floating-point registers on 64-bit target.
7977 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
7978 register_operand in xmpyu patterns.
7979
7980 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7981
7982 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
7983 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
7984 OMP_CLAUSE__REDUCTEMP_.
7985 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7986 OMP_CLAUSE__CONDTEMP_.
7987 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
7988 * tree-pretty-print.c (dump_omp_clause): Likewise.
7989 * tree-nested.c (convert_nonlocal_omp_clauses,
7990 convert_local_omp_clauses): Likewise.
7991 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
7992 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
7993 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
7994 on OMP_FOR.
7995 (gimplify_omp_for): Warn and disable conditional modifier from
7996 lastprivate on loop iterators.
7997 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
7998 member.
7999 * omp-general.c (omp_extract_for_data): Initialize it.
8000 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
8001 member.
8002 (delete_omp_context): Delete it.
8003 (lower_lastprivate_conditional_clauses): New function.
8004 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
8005 handle lastprivate conditional clauses.
8006 (lower_reduction_clauses): Add CLIST argument, emit it into
8007 the critical section if any.
8008 (lower_omp_sections): Adjust lower_lastprivate_clauses and
8009 lower_reduction_clauses callers.
8010 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
8011 to lower_lastprivate_clauses.
8012 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
8013 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
8014 clist into a critical section if not emitted there already by
8015 lower_reduction_clauses.
8016 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
8017 callers.
8018 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
8019 conditional variables.
8020 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
8021 clause is present.
8022 (expand_omp_for_generic, expand_omp_for_static_nochunk,
8023 expand_omp_for_static_chunk): Handle lastprivate conditional.
8024 (expand_omp_for): Handle fd.lastprivate_conditional like
8025 fd.have_reductemp.
8026
8027 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
8028
8029 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
8030 kernel does not exit cleanly.
8031 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
8032
8033 2019-05-24 Jason Merrill <jason@redhat.com>
8034
8035 Revert:
8036 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8037
8038 2019-05-24 Richard Biener <rguenther@suse.de>
8039
8040 PR testsuite/90607
8041 * tree-loop-distribution.c (struct partition): Add location
8042 member.
8043 (partition_alloc): Initialize all fields.
8044 (generate_memset_builtin): Use the location recorded in the
8045 partition for the generated call.
8046 (generate_memcpy_builtin): Likewise.
8047 (classify_partition): Record the location of a single store
8048 as location for the partition.
8049
8050 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
8051
8052 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
8053 for lo-part.
8054
8055 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
8056
8057 PR target/90588
8058 * common/config/aarch64/aarch64-common.c
8059 (aarch64_rewrite_selected_cpu): Change local temporary variable
8060 type from unsigned long to uint64_t.
8061 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
8062 aarch64_get_extension_string_for_isa_flags): Change declaration to
8063 match new definition by replacing unsigned long with uint64_t.
8064
8065 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8066
8067 PR target/90568
8068 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
8069 gen_attr_type just once instead of 4-7 times. Formatting fixes.
8070 Handle stack_protect_test_<mode> codegen similarly to corresponding
8071 sub instruction.
8072
8073 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
8074
8075 * config/i386/darwin.h: Reject -mfentry*.
8076 * doc/sourcebuild.texi: Document mfentry target support.
8077
8078 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8079
8080 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
8081 Rename to rs6000_global_entry_point_prologue_needed_p. Return
8082 false for PC-relative functions.
8083 (rs6000_output_function_prologue): Change called function name to
8084 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
8085 name,1" for PC-relative functions.
8086 (rs6000_elf_declare_function_name): Change called function name to
8087 rs6000_global_entry_point_prologue_needed_p.
8088
8089 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
8090
8091 PR target/90552
8092 * config/i386/i386.c (gen_rtx_cost):
8093 Use ix86_tune_cost instead of ix86_cost.
8094
8095 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8096 Michael Meissner <meissner@linux.ibm.com>
8097 Segher Boessenkool <segher@kernel.crashing.org>
8098
8099 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
8100 OPTION_MASK_PCREL.
8101 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
8102 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
8103 (rs6000_fndecl_pcrel_p): Likewise.
8104 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
8105 error if -mpcrel is requested without -mcpu=future.
8106 (rs6000_opt_masks): Add entry for pcrel.
8107 (rs6000_fndecl_pcrel_p): New function.
8108 (rs6000_pcrel_p): Likewise.
8109 * config/rs6000/rs6000.opt (mpcrel): New option.
8110 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
8111
8112 2019-05-23 Jan Hubicka <jh@suse.cz>
8113 Martin Liska <mliska@suse.cz>
8114
8115 PR tree-optimization/90576
8116 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
8117 poly_int_tree_p.
8118 (aliasing_component_refs_p): Fix three way size compare conditional;
8119 give up earlier in case we can not decide on equivalence.
8120
8121 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8122 Michael Meissner <meissner@linux.ibm.com>
8123 Segher Boessenkool <segher@kernel.crashing.org>
8124
8125 * config.gcc: Add future cpu.
8126 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
8127 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
8128 #define.
8129 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
8130 (RS6000_CPU): New instantiation for future cpu.
8131 * config/rs6000/rs6000-opts.h (enum processor_type): Add
8132 PROCESSOR_FUTURE.
8133 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
8134 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
8135 * config/rs6000/rs6000-tables.opt: Regenerate.
8136 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
8137 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
8138 (rs6000_machine_from_flags): Handle future cpu.
8139 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
8140 PROCESSOR_POWER9 for now.
8141 (rs6000_adjust_cost): Likewise.
8142 (rs6000_issue_rate): Likewise.
8143 (rs6000_register_move_cost): Likewise.
8144 (rs6000_opt_masks): Add entry for future.
8145 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
8146 (MASK_FUTURE): New #define.
8147 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
8148 * config/rs6000/rs6000.opt (mfuture): New target option.
8149 * doc/invoke.texi (mcpu): Add future cpu.
8150
8151 2019-05-23 Martin Liska <mliska@suse.cz>
8152
8153 PR c++/90587
8154 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
8155 operation points to a temporary (pointed via tree_to_wide_ref)
8156 that is out of scope after the &.
8157
8158 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
8159
8160 PR c++/90592
8161 * doc/extend.texi (Function Names): Add missing word.
8162
8163 2019-05-23 Richard Biener <rguenther@suse.de>
8164
8165 PR tree-optimization/88440
8166 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
8167 at -O[2s]+.
8168 * tree-loop-distribution.c (generate_memset_builtin): Fold the
8169 generated call.
8170 (generate_memcpy_builtin): Likewise.
8171 (distribute_loop): Pass in whether to only distribute patterns.
8172 (prepare_perfect_loop_nest): Also allow size optimization.
8173 (pass_loop_distribution::execute): When optimizing a loop
8174 nest for size allow pattern replacement.
8175
8176 2019-05-23 Jakub Jelinek <jakub@redhat.com>
8177
8178 PR target/90568
8179 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
8180 of xor.
8181
8182 2019-05-23 Martin Liska <mliska@suse.cz>
8183
8184 PR sanitizer/90570
8185 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
8186 expression similarly to gimplify_decl_expr.
8187
8188 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8189
8190 * cse.c (cse_dump_path): s/dump_file/f.
8191
8192 2019-05-22 David Malcolm <dmalcolm@redhat.com>
8193
8194 PR c++/90462
8195 * diagnostic-format-json.cc: Include "selftest.h".
8196 (json_from_expanded_location): Only add "file" key for non-NULL
8197 file strings.
8198 (json_from_location_range): Don't add "start" and "finish"
8199 children if they are UNKNOWN_LOCATION.
8200 (selftest::test_unknown_location): New selftest.
8201 (selftest::test_bad_endpoints): New selftest.
8202 (selftest::diagnostic_format_json_cc_tests): New function.
8203 * json.cc (json::object::get): New function.
8204 (selftest::test_object_get): New selftest.
8205 (selftest::json_cc_tests): Call it.
8206 * json.h (json::object::get): New decl.
8207 * selftest-run-tests.c (selftest::run_tests): Call
8208 selftest::diagnostic_format_json_cc_tests.
8209 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
8210 decl.
8211
8212 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
8213 Andrew Stubbs <amd@codesourcery.com>
8214
8215 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
8216 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
8217 (kernel): Rename to...
8218 (main_kernel): ... this.
8219 (load_image): Load _init_array and _fini_array kernels.
8220 (run): Add argument for kernel to run.
8221 (main): Run init_array_kernel before main_kernel, and
8222 fini_array_kernel after.
8223 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
8224 amdgpu_hsa_kernel attribute on functions.
8225 (gcn_disable_constructors): Delete.
8226 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
8227 * config/gcn/crt0.c (size_t): Define.
8228 (_init_array, _fini_array): New.
8229 (__preinit_array_start, __preinit_array_end,
8230 __init_array_start, __init_array_end,
8231 __fini_array_start, __fini_array_end): Declare weak references.
8232
8233 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
8234
8235 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
8236
8237 2019-05-22 Jason Merrill <jason@redhat.com>
8238
8239 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8240
8241 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
8242
8243 PR target/88483
8244 * config/i386/i386-options.c (ix86_init_machine_status): Set
8245 stack_frame_required to true.
8246 * config/i386/i386.c (ix86_get_frame_size): New function.
8247 (ix86_frame_pointer_required): Replace get_frame_size with
8248 ix86_get_frame_size.
8249 (ix86_compute_frame_layout): Likewise.
8250 (ix86_find_max_used_stack_alignment): Changed to void. Set
8251 stack_frame_required.
8252 (ix86_finalize_stack_frame_flags): Always call
8253 ix86_find_max_used_stack_alignment. Replace get_frame_size with
8254 ix86_get_frame_size.
8255 * config/i386/i386.h (machine_function): Add stack_frame_required.
8256
8257 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
8258
8259 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
8260
8261 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
8262
8263 * common/config/aarch64/aarch64-common.c
8264 (struct aarch64_option_extension, struct processor_name_to_arch,
8265 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
8266 aarch64_contains_opt,
8267 aarch64_get_extension_string_for_isa_flags): Change type of
8268 variables storing flags to uint64_t.
8269 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
8270 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
8271 * config/aarch64/aarch64.c (struct processor,
8272 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
8273 aarch64_validate_march, aarch64_override_options,
8274 aarch64_option_print, aarch64_handle_attr_isa_flags,
8275 aarch64_declare_function_name, aarch64_start_file): Make flag
8276 variables uint64_t.
8277 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
8278 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
8279 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
8280 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
8281 * config/aarch64/driver-aarch64.c
8282 (struct aarch64_arch_extension, struct aarch64_core_data,
8283 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
8284 flag variables uint64_t.
8285 * doc/invoke.texi: Add documentation for new arguments.
8286
8287 2019-05-22 Richard Biener <rguenther@suse.de>
8288
8289 * alias.c (ao_ref_from_mem): Move stack-slot sharing
8290 rewrite ...
8291 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
8292
8293 2019-05-22 Martin Liska <mliska@suse.cz>
8294
8295 PR lto/90500
8296 * doc/extend.texi: Document the change.
8297
8298 2019-05-22 Richard Biener <rguenther@suse.de>
8299
8300 PR tree-optimization/90450
8301 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
8302 (mem_ref_hasher::equal): Check it.
8303 (mem_ref_alloc): Initialize it.
8304 (gather_mem_refs_stmt): Set it.
8305
8306 2019-05-22 Richard Biener <rguenther@suse.de>
8307
8308 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
8309 Add ABS_EXPR.
8310 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
8311 as ABSU_EXPR.
8312
8313 2019-05-22 Alan Modra <amodra@gmail.com>
8314
8315 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
8316 (ASM_CPU_SPEC): Conditionally add -many.
8317 * config/rs6000/rs6000.c (rs6000_machine): New static var.
8318 (rs6000_machine_from_flags, emit_asm_machine): New functions..
8319 (rs6000_file_start): ..extracted from here, and modified to
8320 test all ISA bits.
8321 (rs6000_output_function_prologue): Emit .machine as necessary.
8322 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
8323 power mnemonics.
8324 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
8325 added by check_vect_support_and_set_flags.
8326 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
8327 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
8328
8329 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
8330
8331 PR middle-end/90553
8332 * ira-lives.c (process_bb_node_lives): Consider defs
8333 for a call insn to be die before the call, not after.
8334
8335 * function.c (assign_parm_setup_block): Raise alignment of
8336 stacked parameter only for STRICT_ALIGNMENT targets.
8337
8338 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8339
8340 * config/rs6000/constraints.md (define_register_constraint "wz"):
8341 Delete.
8342 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8343 RS6000_CONSTRAINT_wz.
8344 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8345 (rs6000_init_hard_regno_mode_ok): Adjust.
8346 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
8347 * doc/md.texi (Machine Constraints): Adjust.
8348
8349 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8350
8351 * config/rs6000/constraints.md (define_register_constraint "wl"):
8352 Delete.
8353 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8354 RS6000_CONSTRAINT_wl.
8355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8356 (rs6000_init_hard_regno_mode_ok): Adjust.
8357 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
8358 * doc/md.texi (Machine Constraints): Adjust.
8359
8360 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8361
8362 * config/rs6000/constraints.md (define_register_constraint "wm"):
8363 Delete.
8364 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8365 RS6000_CONSTRAINT_wm.
8366 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8367 (rs6000_init_hard_regno_mode_ok): Adjust.
8368 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
8369 * doc/md.texi (Machine Constraints): Adjust.
8370
8371 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8372
8373 * config/rs6000/constraints.md (define_register_constraint "wk"):
8374 Delete.
8375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8376 RS6000_CONSTRAINT_wk.
8377 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8378 (rs6000_init_hard_regno_mode_ok): Adjust.
8379 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
8380 * doc/md.texi (Machine Constraints): Adjust.
8381
8382 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8383
8384 * config/rs6000/constraints.md (define_register_constraint "wj"):
8385 Delete.
8386 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8387 RS6000_CONSTRAINT_wj.
8388 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8389 (rs6000_init_hard_regno_mode_ok): Adjust.
8390 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
8391 (VS_64dm): Delete.
8392 * config/rs6000/vsx.md: Ditto.
8393 * doc/md.texi (Machine Constraints): Adjust.
8394
8395 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8396
8397 * config/rs6000/constraints.md (define_register_constraint "wh"):
8398 Delete.
8399 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8400 RS6000_CONSTRAINT_wh.
8401 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8402 (rs6000_init_hard_regno_mode_ok): Adjust.
8403 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
8404 * doc/md.texi (Machine Constraints): Adjust.
8405
8406 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8407
8408 PR target/90547
8409 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
8410 Avoid calling gen_lowpart with CONST operand.
8411
8412 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
8413
8414 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
8415 field template_last_to_copy.
8416 (ssa_create_duplicates): Set it, and use it. Attempt to
8417 preserve more debug stmts.
8418
8419 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8420
8421 * config/i386/sse.md (VF1_AVX2): New mode iterator.
8422 (signbit<mode>2): New expander
8423
8424 2019-05-21 James Clarke <jrtc27@jrtc27.com>
8425
8426 PR bootstrap/87338
8427 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
8428 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
8429
8430 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8431
8432 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
8433 %ebx and %ecx bafore calling cpuid with leaf 1 or
8434 non-constant leaf argument.
8435
8436 2019-05-21 Alan Modra <amodra@gmail.com>
8437
8438 PR target/90545
8439 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
8440 power9 direct move cost.
8441 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
8442 Correct comments and rename functions to suit parameters.
8443
8444 2019-05-21 Richard Biener <rguenther@suse.de>
8445
8446 PR middle-end/90510
8447 * fold-const.c (fold_read_from_vector): New function.
8448 * fold-const.h (fold_read_from_vector): Declare.
8449 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
8450 single-element insert permutations. Canonicalize selector
8451 further and fix issue with last commit.
8452
8453 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8454
8455 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
8456 parameter with default value false to declaration.
8457 (split_edges_for_insertion): New inline function. Wrapper for
8458 split_critical_edges with for_edge_insertion_p = true.
8459 * tree-cfg.c (split_critical_edges): Don't split non-critical
8460 edges if for_edge_insertion_p is false. Fix whitespace.
8461 * tree-ssa-pre.c (pass_pre::execute): Call
8462 split_edges_for_insertion instead of split_critical_edges.
8463 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
8464 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
8465 (pass_data_sink_code): Update function name in the comment.
8466
8467 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8468
8469 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
8470 around is_value_included_in that knows how to handle BIT_AND_EXPR.
8471 (is_pred_expr_subset_of): Use the new function. Handle more cases where
8472 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
8473 positives.
8474
8475 2019-05-21 Martin Liska <mliska@suse.cz>
8476
8477 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
8478 an extra newline.
8479 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
8480 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
8481 vec_lvsr.
8482 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8483 Quote a C type.
8484 (rs6000_function_arg): Likewise.
8485 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
8486 (rs6000_expand_ternop_builtin): Use interval syntax.
8487 (get_element_number): Likewise.
8488 (altivec_expand_builtin): Likewise.
8489 (rs6000_get_function_versions_dispatcher): Quote target_clones.
8490
8491 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8492
8493 PR c++/59813
8494 PR target/90418
8495 * function.h (struct function): Add calls_eh_return member.
8496 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
8497 gimplifying __builtin_eh_return call.
8498 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
8499 to cfun.
8500 (expand_call_inline): Or in src_cfun->calls_eh_return into
8501 dst_cfun->calls_eh_return.
8502 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8503 cfun->calls_eh_return.
8504 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8505 * lto-streamer-out.c (output_struct_function_base): Write
8506 calls_eh_return.
8507
8508 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
8509
8510 PR rtl-optimization/43147
8511 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8512 IX86_BUILTIN_SHUFPD.
8513
8514 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8515
8516 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8517 (refs_may_alias_p_1): ... here; update stats.
8518 (refs_may_alias_p): Do not update stats here.
8519
8520 2019-05-20 Richard Biener <rguenther@suse.de>
8521
8522 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8523 doesn't produce pointers.
8524 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8525 the first operand points to.
8526
8527 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8528
8529 * tree-ssa-alias.c (compare_sizes): New function.
8530 (sompare_type_sizes): New function
8531 (aliasing_component_refs_p): Use it.
8532 (indirect_ref_may_alias_decl_p): Likewise.
8533
8534 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8535
8536 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8537
8538 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8539
8540 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8541 (LIBLSAN_EARLY_SPEC): Likewise.
8542 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8543
8544 2019-05-20 Martin Liska <mliska@suse.cz>
8545
8546 * config/i386/i386.c (ix86_libc_has_fast_function):
8547 Add ATTRIBUTE_UNUSED for the argument.
8548
8549 2019-05-20 Richard Biener <rguenther@suse.de>
8550
8551 * gimple-match-head.c: Include vec-perm-indices.h.
8552 * generic-match-head.c: Likewise.
8553 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8554 is included.
8555 * fold-const.c (fold_vec_perm): Export.
8556 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8557 (match.pd): ...here.
8558
8559 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8560
8561 * cfgloop.h (struct loop): Add simdlen member.
8562 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8563 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8564 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8565 as new argument to autovectorize_vector_sizes target hook. If
8566 loop->simdlen, pick up vector size where the vectorization factor
8567 is equal to loop->simd, and if there is none, fall back to the first
8568 successful one.
8569 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8570 caller.
8571 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8572 * omp-general.c (omp_max_vf): Likewise.
8573 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8574 * tree-vect-slp.c (vect_slp_bb): Likewise.
8575 * target.def (autovectorize_vector_sizes): Add ALL argument and
8576 document it.
8577 * doc/tm.texi: Adjust documentation.
8578 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8579 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8580 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8581 bool argument.
8582 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8583 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8584 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8585 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
8586 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8587 preferred vector size is not 512-bit or 256-bit, just put those
8588 unpreferred ones last.
8589
8590 2019-05-20 Martin Liska <mliska@suse.cz>
8591
8592 * targhooks.c (default_libc_has_fast_function): New function.
8593 * targhooks.h (default_libc_has_fast_function): Likewise.
8594
8595 2019-05-20 Martin Liska <mliska@suse.cz>
8596
8597 PR middle-end/90263
8598 * builtins.c (expand_builtin_memory_copy_args): When having a
8599 target with fast mempcpy implementation do now use memcpy.
8600 * config/i386/i386.c (ix86_libc_has_fast_function): New.
8601 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8602 * doc/tm.texi: Likewise.
8603 * doc/tm.texi.in: Likewise.
8604 * target.def:
8605 * expr.c (emit_block_move_hints): Add 2 new arguments.
8606 * expr.h (emit_block_move_hints): Bail out when libcall
8607 to memcpy would be used.
8608
8609 2019-05-20 Martin Liska <mliska@suse.cz>
8610
8611 * profile-count.c: Add vertical spacing in order
8612 to separate functions.
8613 * profile-count.h: Likewise.
8614
8615 2019-05-20 Martin Liska <mliska@suse.cz>
8616
8617 * profile-count.h: Do not use full qualified
8618 names if possible.
8619 * profile-count.c (profile_count::to_frequency): Likewise.
8620
8621 2019-05-20 Martin Liska <mliska@suse.cz>
8622
8623 * profile-count.h (enum profile_quality): Use capital letters
8624 for enum value names. Use the adjusted names.
8625 * profile-count.c: Use the adjusted names.
8626
8627 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8628
8629 * config/rs6000/constraints.md (define_register_constraint "wH"):
8630 Delete.
8631 (define_register_constraint "wI"): Delete.
8632 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8633 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8634 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8635 (rs6000_init_hard_regno_mode_ok): Adjust.
8636 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8637 resp. "d", or with "wa" as appropriate, all with "p8v".
8638 * config/rs6000/vsx.md: Ditto.
8639 * doc/md.texi (Machine Constraints): Adjust.
8640
8641 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8642
8643 * config/rs6000/constraints.md (define_register_constraint "wy"):
8644 Delete.
8645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8646 RS6000_CONSTRAINT_wy.
8647 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8648 (rs6000_init_hard_regno_mode_ok): Adjust.
8649 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8650 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8651 (define_mode_attr Fisa): New.
8652 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8653 * doc/md.texi (Machine Constraints): Adjust.
8654
8655 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8656
8657 * config/rs6000/constraints.md (define_register_constraint "wu"):
8658 Delete.
8659 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8660 RS6000_CONSTRAINT_wu.
8661 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8662 (rs6000_init_hard_regno_mode_ok): Adjust.
8663 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8664 both with "p8v".
8665 (define_mode_attr Fa): Delete.
8666 * config/rs6000/vsx.md: Ditto.
8667 * doc/md.texi (Machine Constraints): Adjust.
8668
8669 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8670
8671 * config/rs6000/constraints.md (define_register_constraint "wJ"):
8672 Delete.
8673 (define_register_constraint "wK"): Delete.
8674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8675 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8677 (rs6000_init_hard_regno_mode_ok): Adjust.
8678 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8679 Replace "wK" constraint by "wH" with "p9v".
8680 * config/rs6000/vsx.md: Ditto.
8681 * doc/md.texi (Machine Constraints): Adjust.
8682
8683 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8684
8685 * config/rs6000/constraints.md (define_register_constraint "wb"):
8686 Delete.
8687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8688 RS6000_CONSTRAINT_wb.
8689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8690 (rs6000_init_hard_regno_mode_ok): Adjust.
8691 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
8692 * config/rs6000/vsx.md: Ditto.
8693 * doc/md.texi (Machine Constraints): Adjust.
8694
8695 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8696
8697 * config/rs6000/constraints.md (define_register_constraint "wo"):
8698 Delete.
8699 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8700 RS6000_CONSTRAINT_wo.
8701 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8702 (rs6000_init_hard_regno_mode_ok): Adjust.
8703 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
8704 * config/rs6000/altivec.md: Ditto.
8705 * doc/md.texi (Machine Constraints): Adjust.
8706
8707 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8708
8709 * config/darwin-c.c (darwin_register_objc_includes): Do not
8710 prepend the sysroot when building gnu-runtime header search
8711 paths.
8712
8713 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8714
8715 * config/darwin.c (darwin_file_end): Use switch_to_section ()
8716 instead of direct output of the asm.
8717
8718 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8719
8720 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
8721 argument to be type bool (was int before).
8722 (rs6000_emit_epilogue): Simplify some code. Declare some variables
8723 at first use. Use type bool for some variables. Fix a theoretical
8724 eh_return bug for svr4.
8725
8726 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8727
8728 * config/rs6000/rs6000.md (isa): New attribute.
8729 (enabled): New attribute.
8730
8731 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
8732
8733 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
8734 assemble_start_function and assemble_end_function.
8735
8736 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8737
8738 PR middle-end/89433
8739 * omp-general.c (oacc_verify_routine_clauses): Change formal
8740 parameters. Add checking if already marked with an OpenACC
8741 'routine' directive. Adjust all users.
8742
8743 PR middle-end/89433
8744 * omp-general.c (oacc_build_routine_dims): Move some of its
8745 processing into...
8746 (oacc_verify_routine_clauses): ... this new function.
8747 * omp-general.h (oacc_verify_routine_clauses): New prototype.
8748
8749 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8750
8751 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
8752 formating of picbase labels to match other ports.
8753
8754 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8755
8756 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
8757 in the generated code.
8758
8759 2019-05-16 Martin Sebor <msebor@redhat.com>
8760
8761 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
8762 identifiers, keywords, operators, and types in diagnostics. Correct
8763 quoting, spelling, and sentence capitalization issues.
8764 (expand_builtin_atomic_is_lock_free): Same.
8765 (fold_builtin_next_arg): Same.
8766 * cfgexpand.c (expand_one_var): Same.
8767 (tree_conflicts_with_clobbers_p): Same.
8768 (expand_asm_stmt): Same.
8769 (verify_loop_structure): Same.
8770 * cgraphunit.c (process_function_and_variable_attributes): Same.
8771 * collect-utils.c (collect_execute): Same.
8772 * collect2.c (maybe_run_lto_and_relink): Same.
8773 (is_lto_object_file): Same.
8774 (scan_prog_file): Same.
8775 * convert.c (convert_to_real_1): Same.
8776 * dwarf2out.c (dwarf2out_begin_prologue): Same.
8777 * except.c (verify_eh_tree): Same.
8778 * gcc.c (execute): Same.
8779 (eval_spec_function): Same.
8780 (run_attempt): Same.
8781 (driver::set_up_specs): Same.
8782 (compare_debug_auxbase_opt_spec_function): Same.
8783 * gcov-tool.c (unlink_gcda_file): Same.
8784 (do_merge): Same.
8785 (do_rewrite): Same.
8786 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
8787 * gimplify.c (gimplify_asm_expr): Same.
8788 (gimplify_adjust_omp_clauses): Same.
8789 * hsa-gen.c (gen_hsa_addr_insns): Same.
8790 (gen_hsa_insns_for_load): Same.
8791 (gen_hsa_cmp_insn_from_gimple): Same.
8792 (gen_hsa_insns_for_operation_assignment): Same.
8793 (gen_get_level): Same.
8794 (gen_hsa_alloca): Same.
8795 (omp_simple_builtin::generate): Same.
8796 (gen_hsa_atomic_for_builtin): Same.
8797 (gen_hsa_insns_for_call): Same.
8798 * input.c (dump_location_info): Same.
8799 * ipa-devirt.c (compare_virtual_tables): Same.
8800 * ira.c (ira_setup_eliminable_regset): Same.
8801 * lra-assigns.c (lra_assign): Same.
8802 * lra-constraints.c (lra_constraints): Same.
8803 * lto-streamer-in.c (lto_input_mode_table): Same.
8804 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
8805 (merge_and_complain): Same.
8806 (compile_offload_image): Same.
8807 (compile_images_for_offload_targets): Same.
8808 (debug_objcopy): Same.
8809 (run_gcc): Same.
8810 (main): Same.
8811 * opts.c (print_specific_help): Same.
8812 (parse_no_sanitize_attribute): Same.
8813 (print_help): Same.
8814 (handle_param): Same.
8815 * plugin.c (add_new_plugin): Same.
8816 (parse_plugin_arg_opt): Same.
8817 (try_init_one_plugin): Same.
8818 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
8819 operators, and types in diagnostics. Correct quoting and spelling
8820 issues.
8821 * read-rtl-function.c (parse_edge_flag_token): Same.
8822 (function_reader::parse_enum_value): Same.
8823 * reg-stack.c (check_asm_stack_operands): Same.
8824 * regcprop.c (validate_value_data): Same.
8825 * sched-rgn.c (make_pass_sched_fusion): Same.
8826 * stmt.c (check_unique_operand_names): Same.
8827 * targhooks.c (default_target_option_pragma_parse): Same.
8828 * tlink.c (recompile_files): Same.
8829 * toplev.c (process_options): Same.
8830 (do_compile): Same.
8831 * trans-mem.c (diagnose_tm_1): Same.
8832 (ipa_tm_scan_irr_block): Same.
8833 (ipa_tm_diagnose_transaction): Same.
8834 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
8835 format a tree code name in a diagnostic.
8836 (verify_types_in_gimple_min_lval): Same.
8837 (verify_types_in_gimple_reference): Same.
8838 (verify_gimple_call): Same.
8839 (verify_gimple_assign_unary): Same.
8840 (verify_gimple_assign_binary): Same.
8841 (verify_gimple_assign_ternary): Same.
8842 (verify_gimple_assign_single): Same.
8843 (verify_gimple_switch): Same.
8844 (verify_gimple_label): Same.
8845 (verify_gimple_phi): Same.
8846 (verify_gimple_in_seq): Same.
8847 (verify_eh_throw_stmt_node): Same.
8848 (collect_subblocks): Same.
8849 (gimple_verify_flow_info): Same.
8850 (do_warn_unused_result): Same.
8851 * tree-inline.c (expand_call_inline): Same.
8852 * tree-into-ssa.c (update_ssa): Same.
8853 * tree.c (tree_int_cst_elt_check_failed): Same.
8854 (tree_vec_elt_check_failed): Same.
8855 (omp_clause_operand_check_failed): Same.
8856 (verify_type_variant): Same.
8857 (verify_type): Same.
8858 * value-prof.c (verify_histograms): Same.
8859 * varasm.c (assemble_start_function): Same.
8860
8861 2019-05-16 Martin Sebor <msebor@redhat.com>
8862
8863 * config/i386/i386-expand.c (get_element_number): Quote keywords
8864 and other internal names in diagnostics. Adjust other diagnostic
8865 formatting issues noted by -Wformat-diag.
8866 * config/i386/i386-features.c
8867 (ix86_mangle_function_version_assembler_name): Same.
8868 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
8869 * config/i386/i386.c (ix86_function_type_abi): Same.
8870 (ix86_function_ms_hook_prologue): Same.
8871 (classify_argument): Same.
8872 (ix86_expand_prologue): Same.
8873 (ix86_md_asm_adjust): Same.
8874 (ix86_memmodel_check): Same.
8875
8876 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8877
8878 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
8879 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
8880 and fpxx modes.
8881
8882 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
8883
8884 PR target/90497
8885 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
8886 intrinsics without SSE/SSE2/SSSE3.
8887 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
8888 check.
8889 (*mmx_uavgv8qi3): Likewise.
8890
8891 2019-05-17 Richard Biener <rguenther@suse.de>
8892
8893 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
8894 VEC_PERM_EXPR as __VEC_PERM with -gimple.
8895
8896 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
8897
8898 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
8899 vec_sldw insn pattern.
8900
8901 2019-05-17 Richard Biener <rguenther@suse.de>
8902
8903 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
8904
8905 2019-05-17 Martin Liska <mliska@suse.cz>
8906
8907 PR driver/90496
8908 * toplev.c (output_stack_usage): With LTO and sanitizer it
8909 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
8910 has no file location.
8911
8912 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8913
8914 PR c++/90484
8915 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
8916 sz0 is equal to sz1, instead return false in that case.
8917
8918 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
8919 has non-constant expression, force sctx.lane and use two
8920 argument IFN_GOMP_SIMD_LANE instead of single argument.
8921 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
8922 two argument IFN_GOMP_SIMD_LANE without lhs.
8923 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
8924 member.
8925 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
8926 Define.
8927 (LOOP_REQUIRES_VERSIONING): Or in
8928 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
8929 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8930 simd_if_cond.
8931 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
8932 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
8933 from simd if clause if needed.
8934
8935 2019-05-16 Richard Biener <rguenther@suse.de>
8936
8937 * tree-affine.c (expr_to_aff_combination): New function split
8938 out from...
8939 (tree_to_aff_combination): ... here.
8940 (aff_combination_expand): Avoid building a GENERIC tree.
8941
8942 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
8943
8944 * cgraphunit.c (cgraph_node::expand_thunk): Remove
8945 assemble_start_function and assemble_end_function calls.
8946 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
8947 assemble_start_function and assemble_end_function.
8948 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
8949 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
8950 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
8951 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
8952 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
8953 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
8954 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
8955 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
8956 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8957 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8958 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8959 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
8960 Likewise.
8961 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8962 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
8963 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
8964 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
8965 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
8966 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
8967 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
8968 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
8969 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8970 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8971 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8972 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8973 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
8974 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
8975 Likewise.
8976 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8977 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8978 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
8979
8980 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
8981
8982 * tree-ssa-alias.c (alias_stats): Add
8983 aliasing_component_refs_p_may_alias and
8984 aliasing_component_refs_p_no_alias.
8985 (dump_alias_stats): Print aliasing_component_refs_p stats.
8986 (aliasing_component_refs_p): Update stats.
8987
8988 2019-05-16 Martin Liska <mliska@suse.cz>
8989
8990 PR lto/90500
8991 * multiple_target.c (expand_target_clones): Do not allow
8992 target_clones being used with a symbol that is an alias.
8993
8994 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
8995
8996 PR tree-optimization/90394
8997 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
8998 positives rather than ICE for cases where (code2 == NE_EXPR
8999 && code1 == BIT_AND_EXPR).
9000
9001 2019-05-16 Jakub Jelinek <jakub@redhat.com>
9002
9003 PR fortran/90329
9004 * tree-core.h (struct tree_decl_common): Document
9005 decl_nonshareable_flag for PARM_DECLs.
9006 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
9007 * calls.c (expand_call): Don't try tail call if caller
9008 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
9009 passed on the stack and callee needs to pass any arguments on the
9010 stack.
9011 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9012 else if instead of series of mutually exclusive ifs. Handle
9013 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
9014 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9015
9016 * lto-streamer.h (LTO_major_version): Bump to 9.
9017
9018 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
9019
9020 PR tree-optimization/90106
9021 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
9022 new parameter as new internal function call, also move it to new
9023 basic block.
9024 (use_internal_fn): Pass internal function call to
9025 shrink_wrap_one_built_in_call_with_conds.
9026
9027 2019-05-15 Jakub Jelinek <jakub@redhat.com>
9028
9029 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
9030 max_vf to 1.
9031 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
9032 safelen_int and set loop->dont_vectorize.
9033
9034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9035
9036 PR target/89021
9037 * config/i386/i386-builtin.def: Enable MMX intrinsics with
9038 SSE/SSE2/SSSE3.
9039 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
9040 Likewise.
9041 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
9042 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
9043 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
9044 is defined.
9045
9046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9047
9048 PR target/89021
9049 * config/i386/mmx.md (*vec_dupv2sf): Changed to
9050 define_insn_and_split to support SSE emulation.
9051 (*vec_extractv2sf_0): Likewise.
9052 (*vec_extractv2sf_1): Likewise.
9053 (*vec_extractv2si_0): Likewise.
9054 (*vec_extractv2si_1): Likewise.
9055 (*vec_extractv2si_zext_mem): Likewise.
9056 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
9057 (vec_extractv2sf_1 splitter): Likewise.
9058 (vec_extractv2sfsf): Likewise.
9059 (vec_setv2si): Likewise.
9060 (vec_extractv2si_1 splitter): Likewise.
9061 (vec_extractv2sisi): Likewise.
9062 (vec_setv4hi): Likewise.
9063 (vec_extractv4hihi): Likewise.
9064 (vec_setv8qi): Likewise.
9065 (vec_extractv8qiqi): Likewise.
9066 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
9067 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
9068 (vec_extractv2sisi): Likewise.
9069 (vec_extractv4hihi): Likewise.
9070 (vec_extractv8qiqi): Likewise.
9071 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
9072 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
9073 (vec_initv2sisi): Likewise.
9074 (vec_initv4hihi): Likewise.
9075 (vec_initv8qiqi): Likewise.
9076 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
9077 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
9078 (vec_setv4hi): Likewise.
9079 (vec_setv8qi): Likewise.
9080
9081 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9082
9083 PR target/89021
9084 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
9085 TARGET_MMX_WITH_SSE.
9086 (MMXMODE:*mov<mode>_internal): Likewise.
9087 (MMXMODE:movmisalign<mode>): Likewise.
9088
9089 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
9090
9091 PR target/89021
9092 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
9093 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
9094 (sse2_cvtpd2pi): Ditto.
9095 (sse2_cvttpd2pi): Ditto.
9096 (*vec_concatv2sf_sse4_1): Ditto.
9097 (*vec_concatv2sf_sse): Ditto.
9098 (*vec_concatv2si_sse4_1): Ditto.
9099 (*vec_concatv2si): Ditto.
9100 (*vec_concatv4si_0): Ditto.
9101 (*vec_concatv2di_0): Ditto.
9102
9103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9104
9105 PR target/89021
9106 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
9107
9108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9109
9110 PR target/89021
9111 * config/i386/sse.md (ssse3_palignrdi): Changed to
9112 define_insn_and_split to support SSE emulation.
9113
9114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 PR target/89021
9117 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
9118
9119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9120
9121 PR target/89021
9122 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
9123 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
9124 SSE emulation.
9125
9126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 PR target/89021
9129 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
9130 or TARGET_MMX_WITH_SSE.
9131 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
9132
9133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9134
9135 PR target/89021
9136 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
9137
9138 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9139
9140 PR target/89021
9141 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
9142 Changed to define_insn_and_split to support SSE emulation.
9143
9144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9145
9146 PR target/89021
9147 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
9148 Changed to define_insn_and_split to support SSE emulation.
9149
9150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9151
9152 PR target/89021
9153 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
9154 (*mmx_<emms>): This.
9155 (mmx_<emms>): New expander.
9156
9157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9158
9159 PR target/89021
9160 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
9161 support.
9162 (*sse2_umulv1siv1di3): Add SSE2 emulation.
9163
9164 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9165
9166 PR target/89021
9167 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
9168
9169 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9170
9171 PR target/89021
9172 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
9173
9174 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 PR target/89021
9177 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
9178 TARGET_MMX_WITH_SSE.
9179 (*mmx_uavgv4hi3): Add SSE emulation.
9180
9181 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9182
9183 PR target/89021
9184 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
9185 and TARGET_MMX_WITH_SSE.
9186 (*mmx_uavgv8qi3): Add SSE emulation.
9187
9188 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9189
9190 PR target/89021
9191 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
9192 maskmovdqu for __MMX_WITH_SSE__.
9193
9194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9195
9196 PR target/89021
9197 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
9198 TARGET_MMX and TARGET_MMX_WITH_SSE.
9199 (*mmx_umulv4hi3_highpart): Add SSE emulation.
9200
9201 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9202
9203 PR target/89021
9204 * config/i386/mmx.md (mmx_pmovmskb): Changed to
9205 define_insn_and_split to support SSE emulation.
9206
9207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9208
9209 PR target/89021
9210 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
9211 and TARGET_MMX_WITH_SSE.
9212 (mmx_<code>v8qi3): Likewise.
9213 (smaxmin:<code>v4hi3): New.
9214 (umaxmin:<code>v8qi3): Likewise.
9215 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
9216 (umaxmin:*mmx_<code>v8qi3): Likewise.
9217
9218 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9219
9220 PR target/89021
9221 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
9222 TARGET_MMX_WITH_SSE.
9223 (*mmx_pinsrw): Add SSE emulation.
9224
9225 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9226
9227 PR target/89021
9228 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
9229
9230 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9231
9232 PR target/89021
9233 * config/i386/sse.md (sse_cvtpi2ps): Changed to
9234 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
9235 SSE emulation.
9236
9237 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9238
9239 PR target/89021
9240 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
9241 (sse_cvttps2pi): Likewise.
9242
9243 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9244
9245 PR target/89021
9246 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
9247 TARGET_MMX_WITH_SSE.
9248 (mmx_pshufw_1): Add SSE emulation.
9249 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
9250 TARGET_MMX_WITH_SSE to support SSE emulation.
9251
9252 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9253
9254 PR target/89021
9255 * config/i386/constraints.md (Yw): New constraint.
9256 * config/i386/mmx.md (*vec_dupv2si): Changed to
9257 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
9258 support SSE emulation.
9259
9260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9261
9262 PR target/89021
9263 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
9264 TARGET_MMX_WITH_SSE.
9265 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9266 support.
9267 (mmx_gt<mode>3): Likewise.
9268
9269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9270
9271 PR target/89021
9272 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
9273 TARGET_MMX_WITH_SSE. Add SSE support.
9274
9275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9276
9277 PR target/89021
9278 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
9279 TARGET_MMX_WITH_SSE.
9280 (any_logic:<code><mode>3): New.
9281 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
9282 Add SSE support.
9283
9284 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9285
9286 PR target/89021
9287 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
9288 TARGET_MMX_WITH_SSE. Add SSE emulation.
9289 (mmx_<shift_insn><mode>3): Likewise.
9290 (ashr<mode>3): New.
9291 (<shift_insn><mode>3): Likewise.
9292
9293 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9294
9295 PR target/89021
9296 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
9297 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
9298
9299 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9300
9301 PR target/89021
9302 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
9303 TARGET_MMX_WITH_SSE.
9304 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
9305 SSE support.
9306
9307 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9308
9309 PR target/89021
9310 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
9311 TARGET_MMX_WITH_SSE.
9312 (mulv4hi3): New.
9313 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9314 support.
9315
9316 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9317
9318 PR target/89021
9319 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
9320 (plusminus:mmx_<plusminus_insn><mode>3): Check
9321 TARGET_MMX_WITH_SSE.
9322 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
9323 (<plusminus_insn><mode>3): New.
9324 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
9325 (*mmx_<plusminus_insn><mode>3): Likewise.
9326
9327 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9328
9329 PR target/89021
9330 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
9331 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
9332 prototype.
9333 * config/i386/mmx.m (mmx_punpckhbw): Changed to
9334 define_insn_and_split to support SSE emulation.
9335 (mmx_punpcklbw): Likewise.
9336 (mmx_punpckhwd): Likewise.
9337 (mmx_punpcklwd): Likewise.
9338 (mmx_punpckhdq): Likewise.
9339 (mmx_punpckldq): Likewise.
9340
9341 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9342 Uros Bizjak <ubizjak@gmail.com>
9343
9344 PR target/89021
9345 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
9346 New function.
9347 (ix86_split_mmx_pack): Likewise.
9348 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
9349 New prototype.
9350 (ix86_split_mmx_pack): Likewise.
9351 * config/i386/i386.md (mmx_isa): New.
9352 (enabled): Also check mmx_isa.
9353 * config/i386/mmx.md (any_s_truncate): New code iterator.
9354 (s_trunsuffix): New code attr.
9355 (mmx_packsswb): Removed.
9356 (mmx_packssdw): Likewise.
9357 (mmx_packuswb): Likewise.
9358 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
9359 MMX packsswb/packuswb with SSE2.
9360 (mmx_packssdw): Likewise.
9361 * config/i386/predicates.md (register_mmxmem_operand): New.
9362
9363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9364
9365 PR target/89021
9366 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9367 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
9368 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
9369 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
9370 (ix86_vector_mode_supported_p): Likewise.
9371 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
9372
9373 2019-05-15 Martin Liska <mliska@suse.cz>
9374
9375 PR middle-end/90478
9376 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9377 Check for overflow.
9378
9379 2019-05-15 Richard Biener <rguenther@suse.de>
9380
9381 * tree-into-ssa.c (pass_build_ssa::execute): Run
9382 update_address_taken before going into SSA.
9383
9384 2019-05-15 Richard Biener <rguenther@suse.de>
9385
9386 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
9387 as __BIT_FIELD_REF with type with -gimple.
9388
9389 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
9390
9391 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
9392 semantically equivalent branches (left over after prior refactorings).
9393
9394 2019-05-15 Richard Biener <rguenther@suse.de>
9395
9396 PR tree-optimization/88828
9397 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
9398 bogus check.
9399
9400 2019-05-14 Richard Biener <rguenther@suse.de>
9401
9402 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
9403 as __VIEW_CONVERT with -gimple.
9404
9405 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9406
9407 PR target/82920
9408 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
9409 Darwin.
9410
9411 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9412
9413 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
9414 define_split to become a define_insn_and_split.
9415
9416 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9417
9418 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
9419 arguments.
9420 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
9421 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
9422 (sibcall_epilogue): Adjust.
9423 (epilogue): Adjust.
9424
9425 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9426
9427 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
9428 to unsupported ones.
9429 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
9430 * config.host: Likewise.
9431 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
9432 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
9433 __svr4__]: Remove "brand" fallback.
9434 [!KSTAT_DATA_STRING]: Remove.
9435 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
9436 to *-*-solaris2*.
9437 (comdat_group): Likewise.
9438 (set_have_as_tls): Likewise.
9439 (gcc_cv_target_dl_iterate_phdr): Likewise.
9440 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
9441 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
9442 * configure: Regenerate.
9443 * doc/install.texi: Simplify Solaris target triplets.
9444 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
9445 (Specific, *-*-solaris2*): Document Solaris 10 removal.
9446 Remove Solaris 10 references.
9447 Remove obsolete Solaris bug reference.
9448 (Specific, sparc-sun-solaris2.10): Remove.
9449
9450 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
9451
9452 * config/i386/i386.md (any_div): New code iterator.
9453 (paired_mod): New code attribute.
9454 (sgnprefix): Handle DIV and UDIV RTXes.
9455 (u): Ditto.
9456 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
9457 and udivmod<mode>4 patterns using any_div code iterator.
9458 (divmod splitters): Macroize splitters using any_div code iterator.
9459 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
9460 (*udivmodsi4_pow2_zext_2): Ditto.
9461 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
9462 and *udivmod<mode>4_noext patterns using any_div code iterator.
9463 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
9464 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
9465 patterns using any_div code iterator.
9466 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
9467 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
9468 patterns using any_div code iterator.
9469 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
9470 udivmodhiqi3 patterns using any_extend code iterator.
9471
9472 2019-05-14 Richard Biener <rguenther@suse.de>
9473 H.J. Lu <hongjiu.lu@intel.com>
9474
9475 PR tree-optimization/88828
9476 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9477 permuting in a single non-constant element not extracted
9478 from a vector.
9479
9480 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9481
9482 * internal-fn.def (SIGNBIT): New.
9483 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
9484 defined.
9485 (signbitv4sf2): Likewise.
9486
9487 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
9488
9489 PR target/90357
9490 * config/mips/mips.c (mips_split_move): Skip forward SRC into
9491 next insn when the SRC reg is dead.
9492
9493 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
9494
9495 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
9496 (alloc_cand_and_find_basis): Ditto.
9497 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
9498 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
9499 (create_add_imm_cand, slsr_process_cast): Ditto.
9500 (slsr_process_copy, replace_mult_candidate): Ditto.
9501 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9502 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9503 (pass_strength_reduction::execute): Init the first NULL element.
9504
9505 2019-05-13 Nathan Sidwell <nathan@acm.org>
9506
9507 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
9508 (run_attempt): Reformat line break.
9509
9510 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
9511
9512 PR target/90418
9513 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9514 data registers in sibcall epilogues.
9515 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9516
9517 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
9518
9519 PR target/89221
9520 * configure.ac (--enable-frame-pointer):
9521 Disable by default for cygwin and mingw.
9522 * configure: Regenerate.
9523
9524 2019-05-13 Nathan Sidwell <nathan@acm.org>
9525
9526 * dwarf2out.c (breakout_comdat_types): Move comment to correct
9527 piece of code.
9528 (const_ok_for_output_1): Balance parens around #if/#else/#endif
9529 (gen_member_die): Move abstract origin check earlier. Only VARs
9530 can be static_inline_p. Simplify splicing control flow.
9531
9532 2019-05-13 Richard Biener <rguenther@suse.de>
9533
9534 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9535 VIEW_CONVERT_EXPR.
9536 (vect_build_slp_tree_1): Likewise.
9537
9538 2019-05-13 Richard Biener <rguenther@suse.de>
9539
9540 PR tree-optimization/90402
9541 * tree-if-conv.c (tree_if_conversion): Value number only
9542 the loop body by making the latch an exit of the region
9543 as well.
9544 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9545 processing PHIs.
9546 (do_rpo_vn): Deal with multiple edges into the entry block
9547 that are not backedges inside the region by skipping PHIs
9548 of the entry block.
9549
9550 2019-05-13 Richard Biener <rguenther@suse.de>
9551
9552 PR tree-optimization/90316
9553 * tree-ssa-pre.c (insert_aux): Fold into ...
9554 (insert): ... this function. Use a RPO walk to reduce the
9555 number of required iterations.
9556
9557 2019-05-13 Martin Liska <mliska@suse.cz>
9558
9559 PR tree-optimization/90416
9560 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9561 string instead of passing the second part as va_arg argument.
9562
9563 2019-05-13 Martin Liska <mliska@suse.cz>
9564
9565 PR gcov-profile/90380
9566 * gcov.c (handle_cycle): Do not support zero cycle count,
9567 it should not be possible.
9568 (path_contains_zero_cycle_arc): New function.
9569 (circuit): Ignore zero cycle arc counts.
9570
9571 2019-05-13 Martin Liska <mliska@suse.cz>
9572
9573 PR gcov-profile/90380
9574 * gcov.c (enum loop_type): Remove the enum and
9575 the operator.
9576 (handle_cycle): Assert that we should not reach
9577 a negative count.
9578 (circuit): Use loop_found instead of a tri-state loop_type.
9579 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9580 happen.
9581
9582 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9583
9584 PR target/82920
9585 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9586 (ix86_output_indirect_branch_via_reg): Use output mechanism
9587 accounting for __USER_LABEL_PREFIX__.
9588 (ix86_output_indirect_branch_via_push): Likewise.
9589 (ix86_output_function_return): Likewise.
9590 (ix86_output_indirect_function_return): Likewise.
9591
9592 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
9593
9594 * doc/md.texi: Document use of code attributes in rtx patterns.
9595 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9596 * read-rtl.c (find_code): Split out search loops into...
9597 (maybe_find_code): ...this new function.
9598 (check_code_iterator): Make the error message more informative.
9599 (check_code_attribute): New function.
9600 (rtx_reader::rtx_alloc_for_name): Likewise.
9601 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9602 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9603 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9604 <max_opp> directly as an rtx code instead of via a match_operator.
9605 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9606 (<su>abd<mode>_3): Update accordingly.
9607
9608 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9609
9610 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9611 is given, print the state of the EH "save world" computation for
9612 Darwin.
9613
9614 2019-05-11 Jakub Jelinek <jakub@redhat.com>
9615
9616 PR c++/59813
9617 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9618 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9619
9620 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
9621
9622 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9623 Use pinsrd for TARGET_SSE4_1.
9624 * config/i386/sse.md (movdi_to_sse): Ditto.
9625
9626 2019-05-10 Richard Biener <rguenther@suse.de>
9627
9628 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9629 (do_rpo_vn): Initialize next_value_id.
9630
9631 2019-05-10 Martin Liska <mliska@suse.cz>
9632
9633 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9634 Fix plural form.
9635
9636 2019-05-10 Jakub Jelinek <jakub@redhat.com>
9637
9638 PR tree-optimization/90385
9639 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9640 arguments of the exit phis.
9641
9642 PR c++/90383
9643 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9644 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9645 id->do_not_fold.
9646 (copy_tree_body_r): Likewise.
9647 (copy_fn): Set id.do_not_fold to true.
9648
9649 2019-05-10 Martin Liska <mliska@suse.cz>
9650
9651 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9652 Reapply changes from r269790.
9653
9654 2019-05-10 Martin Liska <mliska@suse.cz>
9655
9656 PR middle-end/90340
9657 * doc/invoke.texi: New params.
9658 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9659 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9660 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9661 Use it.
9662 * tree-switch-conversion.h (struct jump_table_cluster):
9663 Likewise.
9664
9665 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
9666
9667 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9668
9669 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
9670
9671 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9672
9673 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
9674
9675 PR rtl-optimization/88879
9676 * sel-sched.c (sel_target_adjust_priority): Remove assert.
9677
9678 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
9679
9680 PR target/90405
9681 * config/arm/arm.c (callee_saved_reg_p): Move before
9682 thumb_find_work_register.
9683 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9684 thumb_find_work_register. Only call df_get_live_out once.
9685 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9686 (thumb_find_work_register): Use
9687 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9688 algorithms to locate a spare call clobbered reg.
9689
9690 2019-05-09 Martin Liska <mliska@suse.cz>
9691
9692 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
9693 and MAX_EXPR in GIMPLE FE format.
9694
9695 2019-05-09 Martin Liska <mliska@suse.cz>
9696
9697 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
9698 * gimple-pretty-print.c (dump_gimple_bb_header):
9699 Dump BB count.
9700 (pp_cfg_jump): Dump edge probability.
9701 * profile-count.c (profile_quality_as_string): Simplify
9702 with a static array.
9703 (parse_profile_quality): New function.
9704 (profile_count::dump): Simplify with a static array.
9705 (profile_count::from_gcov_type): Add new argument.
9706 * profile-count.h (parse_profile_quality): Likewise.
9707 * predict.h (set_hot_bb_threshold): New.
9708 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9709 New param.
9710 * predict.c (get_hot_bb_threshold): Set from the new param.
9711 (set_hot_bb_threshold): New.
9712
9713 2019-05-09 Richard Biener <rguenther@suse.de>
9714
9715 PR tree-optimization/90395
9716 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
9717 rewrite vector stores that throw internally.
9718
9719 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
9720
9721 * cif-code.def (CHKP): Remove.
9722
9723 PR target/89221
9724 * configure.ac (--enable-frame-pointer): Disable by default for
9725 GNU systems.
9726 * configure: Regenerate.
9727
9728 2019-05-09 Alan Modra <amodra@gmail.com>
9729
9730 PR target/89271
9731 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
9732 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
9733 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
9734 cost for general <-> vsx when direct moves are available.
9735 Cost union classes at minimal cost for any reg in the class.
9736 Correct calculation for moves between vsx, float, and altivec.
9737 Don't return a low cost for moves between special regs. Don't
9738 use hard coded register numbers.
9739 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
9740 (rs6000_ira_change_pseudo_allocno_class): New function.
9741 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
9742 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
9743 alternatives.
9744 (movsi_internal1): Don't disparage vector alternatives.
9745 (mov<mode>_internal): Likewise, excepting alternative that
9746 will be split.
9747 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
9748 we <- b alternative.
9749
9750 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9751
9752 PR c++/59813
9753 PR tree-optimization/89060
9754 * tree-ssa-live.h (live_vars_map): New typedef.
9755 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
9756 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
9757 (struct compute_live_vars_data): New type.
9758 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
9759 live_vars_at_stmt, destroy_live_vars): New functions.
9760 * tree-tailcall.c: Include tree-ssa-live.h.
9761 (live_vars, live_vars_vec): New global variables.
9762 (find_tail_calls): Perform variable life analysis before punting.
9763 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
9764 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
9765 member.
9766 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
9767 Perform variable life analysis to select variables that really need
9768 clobbers added.
9769 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
9770 instead set id->eh_landing_pad_dest and assert it is the same.
9771 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
9772
9773 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
9774 Richard Earnshaw <rearnsha@arm.com>
9775
9776 PR target/88167
9777 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
9778 function.
9779 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
9780 (thumb1_compute_save_core_reg_mask): Don't force a spare work
9781 register if both the epilogue and prologue can use call-clobbered
9782 regs.
9783 (thumb1_unexpanded_epilogue): Use
9784 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
9785 picking temporaries for restoring high regs to match that of the
9786 prologue where possible.
9787 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
9788 the list of work registers. Detect if the return address is still live
9789 at the end of the prologue and avoid using it for a work register if so.
9790 If the return address is not live, add LR to the list of pushable regs
9791 after the first pass.
9792
9793 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9794
9795 PR tree-optimization/90078
9796 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
9797 (INFTY): Increase the value for infinite cost.
9798 (struct comp_cost): Promote type of members to int64_t.
9799 (infinite_cost): Don't set complexity in initialization.
9800 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
9801 overflows to infinite_cost.
9802 (adjust_setup_cost): Promote type of parameter and cost computation
9803 to int64_t.
9804 (struct ainc_cost_data, struct iv_ca): Promote type of member to
9805 int64_t.
9806 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
9807 cost computation to int64_t.
9808 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
9809 int64_t's format specifier in dump.
9810
9811 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9812
9813 PR tree-optimization/90240
9814 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
9815 with respect to scaling factor pre-computed for each basic block.
9816 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
9817 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
9818 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
9819 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
9820 live range for array of loop's basic blocks. Cleanup aux field of
9821 loop's basic blocks.
9822
9823 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9824
9825 PR tree-optimization/90356
9826 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
9827
9828 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
9829
9830 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
9831 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
9832 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
9833 (ix86_handle_option): Handle -mavx512bf16.
9834 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
9835 to extra_headers.
9836 * config/i386/avx512bf16vlintrin.h: New.
9837 * config/i386/avx512bf16intrin.h: New.
9838 * config/i386/cpuid.h (bit_AVX512BF16): New.
9839 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
9840 * config/i386/i386-builtin-types.def: Add new types.
9841 * config/i386/i386-builtin.def: Add new builtins.
9842 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9843 __AVX512BF16__.
9844 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
9845 (ix86_option_override_internal): Handle BF16.
9846 (ix86_valid_target_attribute_inner_p): Ditto.
9847 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
9848 * config/i386/i386-builtin.c (enum processor_features): Add
9849 F_AVX512BF16.
9850 (static const _isa_names_table isa_names_table): Ditto.
9851 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
9852 (PTA_AVX512BF16): Ditto.
9853 * config/i386/i386.opt: Add -mavx512bf16.
9854 * config/i386/immintrin.h: Include avx512bf16intrin.h
9855 and avx512bf16vlintrin.h.
9856 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
9857 avx512f_cvtneps2bf16_<mode><mask_name>,
9858 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
9859 * config/i386/subst.md (mask_half): Add new subst.
9860 * doc/invoke.texi: Document -mavx512bf16.
9861
9862 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9863
9864 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
9865 Delete declaration.
9866 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
9867 (rs6000_debug_legitimize_reload_address): Delete.
9868 (rs6000_legitimize_reload_address_ptr): Delete.
9869 (rs6000_option_override_internal): Adjust.
9870 (mem_operand_gpr): Adjust comment.
9871 (legitimate_lo_sum_address_p): Ditto.
9872 (rs6000_legitimize_reload_address): Delete.
9873 (rs6000_debug_legitimize_reload_address): Delete.
9874 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
9875
9876 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
9877
9878 PR target/89765
9879 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9880 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
9881 to compute vector element selector for both constant and variable
9882 operands.
9883
9884 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9885
9886 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
9887 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
9888 ashrdi3_cvt using SWI48 mode iterator.
9889
9890 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9891
9892 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
9893 (aarch64_<su>abd<mode>_3): Likewise.
9894 (*aarch64_<su>abd<mode>_3): New define_insn.
9895 (<sur>sad<vsi2qi>): New define_expand.
9896 * config/aarch64/iterators.md: Added MAX_OPP attribute.
9897 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
9898 (build_vect_cond_expr): Likewise.
9899
9900 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9901
9902 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
9903 clobbers outside of accessible_reg_set.
9904 * config/i386/i386.c (ix86_conditional_register_usage):
9905 Disable register sets by clearing corresponding bits in
9906 accessible_reg_set. Do not set corresponding bits in fixed_regs,
9907 call_used_regs and don't clear corresponding reg_names array members.
9908
9909 2019-05-07 Richard Biener <rguenther@suse.de>
9910
9911 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
9912 not specified still compute a comp_vectype for invariant
9913 compares.
9914
9915 2019-05-07 Richard Biener <rguenther@suse.de>
9916
9917 PR tree-optimization/90316
9918 * tree-ssa-pre.c (translate_vuse_through_block): When
9919 same_valid is NULL do not bother to search for a virtual
9920 PHI continuation.
9921 (phi_translate_1): When operands changed we cannot keep
9922 the same value-number so do not bother to ask whether
9923 that's possible from translate_vuse_through_block.
9924
9925 2019-05-07 Martin Liska <mliska@suse.cz>
9926
9927 * bitmap.c (bitmap_register): Come up with
9928 alloc_descriptor_max_uid and assign it for
9929 a new bitmap.
9930 (register_overhead): Use get_descriptor as
9931 a descriptor.
9932 (release_overhead): New.
9933 (bitmap_elem_to_freelist): Call it.
9934 (bitmap_elt_clear_from): Likewise.
9935 (bitmap_obstack_free): Likewise.
9936 (bitmap_move): Sensitively release memory.
9937 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
9938 (bitmap_initialize): Initialize alloc_descriptor to zero.
9939 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
9940
9941 2019-05-07 Richard Biener <rguenther@suse.de>
9942
9943 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
9944 we build a SLP node. Remove max_size and limiting.
9945 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
9946
9947 2019-05-07 Richard Biener <rguenther@suse.de>
9948
9949 PR tree-optimization/90316
9950 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
9951 limit by reference.
9952 (walk_non_aliased_vuses): Take walking limit argument.
9953 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
9954 walking if it is reached instead of just counting.
9955 (get_continuation_for_phi): Likewise.
9956 (walk_non_aliased_vuses): Likewise, instead of leaving counter
9957 limiting to the callback.
9958 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
9959 (vn_reference_lookup_3): Likewise.
9960 (vn_reference_lookup_pieces): Likewise.
9961 (vn_reference_lookup): Likewise.
9962 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
9963 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
9964 (avail_exprs_stack::lookup_avail_expr): Likewise.
9965
9966 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
9967
9968 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
9969 for comparaible types in the second direction even if first one
9970 hits incomparable type.
9971
9972 2019-05-07 Richard Biener <rguenther@suse.de>
9973
9974 PR lto/90369
9975 * lto-wrapper.c (debug_objcopy): Use the original filename
9976 including archive offset for the filename used for -save-temps.
9977
9978 2019-05-07 Li Jia He <helijia@linux.ibm.com>
9979
9980 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
9981 detection.
9982
9983 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
9984 Hongtao Liu <hongtao.liu@intel.com>
9985
9986 PR target/89750
9987 PR target/86444
9988 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
9989 Modified, original implementation isn't correct.
9990
9991 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9992
9993 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
9994 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
9995 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
9996 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
9997 (FRAME_POINTER_REGNUM): Change numbering.
9998 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
9999 (alt_reg_names): Adjust.
10000 (rs6000_conditional_register_usage): Don't mark hard register 64 as
10001 fixed.
10002 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10003 (DWARF_FRAME_REGISTERS): Delete.
10004 (DWARF2_FRAME_REG_OUT): Fix whitespace.
10005 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10006 Adjust.
10007 (REG_ALLOC_ORDER): Adjust.
10008 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
10009 (REG_CLASS_CONTENTS): Adjust.
10010 (RETURN_ADDR_RTX): Change comment.
10011 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
10012 instead of 67.
10013 (REGISTER_NAMES): Adjust.
10014 (ADDITIONAL_REGISTER_NAMES): Adjust.
10015 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10016
10017 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10018
10019 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
10020 Delete.
10021 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10022 (DWARF_FRAME_REGISTERS): Adjust.
10023 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10024 Adjust.
10025 (REG_ALLOC_ORDER): Adjust.
10026 (enum reg_class): Delete SPR_REGS.
10027 (REG_CLASS_NAMES): Delete SPR_REGS.
10028 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
10029 (REGISTER_NAMES): Adjust.
10030 (ADDITIONAL_REGISTER_NAMES): Adjust.
10031 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10032 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
10033 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
10034 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
10035 (htm_spr_regno): Delete.
10036 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
10037 argument.
10038 (rs6000_dbx_register_number): Adjust.
10039
10040 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10041
10042 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
10043
10044 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10045
10046 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
10047 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
10048
10049 2019-05-06 Jakub Jelinek <jakub@redhat.com>
10050
10051 PR tree-optimization/88709
10052 PR tree-optimization/90271
10053 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
10054 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
10055 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
10056 variable.
10057 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
10058 of the store merging group is larger than
10059 PARAM_STORE_MERGING_MAX_SIZE parameter.
10060 (split_group): Add bzero_first argument. If set, always emit first
10061 the first store which must be = {} of the whole area and then for the
10062 rest of the stores consider all zero bytes as paddings.
10063 (imm_store_chain_info::output_merged_store): Check if first store
10064 is = {} of the whole area and if yes, determine which setting of
10065 bzero_first for split_group gives smaller number of stores. Adjust
10066 split_group callers.
10067 (lhs_valid_for_store_merging_p): Allow decls.
10068 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
10069 no elts.
10070 (pass_store_merging::process_store): Likewise.
10071
10072 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
10073
10074 PR target/89424
10075 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10076 handling of V1TImode.
10077
10078 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
10079
10080 PR target/89221
10081 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
10082 and enable_frame_pointer ...
10083 * configure.ac: ... here. Update help strings for
10084 --enable-frame-pointer.
10085 * configure: Regenerate.
10086 * config/i386/i386-options.c (ix86_option_override_internal): Remove
10087 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
10088 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
10089 (USE_X86_64_FRAME_POINTER): Ditto.
10090
10091 2019-05-06 Martin Liska <mliska@suse.cz>
10092
10093 * config.gcc: Append to target_gtfiles and fix indentation.
10094
10095 2019-05-06 Richard Biener <rguenther@suse.de>
10096
10097 PR tree-optimization/90358
10098 * tree-vect-stmts.c (get_group_load_store_type): Properly
10099 detect unused upper half of load.
10100 (vectorizable_load): Likewise.
10101
10102 2019-05-06 Richard Biener <rguenther@suse.de>
10103
10104 PR tree-optimization/88828
10105 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
10106 (simplify_vector_constructor): ...here. Handle constants in
10107 the constructor.
10108
10109 2019-05-06 Richard Biener <rguenther@suse.de>
10110
10111 PR tree-optimization/90328
10112 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
10113 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
10114 is valid in the loop nest before using it.
10115 (initialize_data_dependence_relation): Adjust.
10116 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
10117 loop as loop-nest to dr_may_alias_p.
10118
10119 2019-05-06 Richard Biener <rguenther@suse.de>
10120
10121 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
10122
10123 2019-05-06 Richard Biener <rguenther@suse.de>
10124
10125 PR tree-optimization/90316
10126 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
10127 compute target on demand.
10128 (get_continuation_for_phi): Remove code walking stmts to
10129 get to a target virtual operand which could end up being
10130 quadratic.
10131
10132 2019-05-06 Martin Liska <mliska@suse.cz>
10133
10134 PR sanitizer/90312
10135 * config/i386/i386-options.c (ix86_option_override_internal): Error only
10136 when -mabi is selected to a non-default version.
10137
10138 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
10139 Martin Liska <mliska@suse.cz>
10140
10141 * Makefile.in: Add lto-dump.texi.
10142 * cgraph.h: Add new functions get_visibility_string and
10143 get_symtab_type_string.
10144 * doc/gcc.texi: Include lto-dump section.
10145 * doc/lto-dump.texi: New file.
10146 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
10147 (parse_dump_option): Factor out this function.
10148 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
10149 (parse_dump_option): Export the function.
10150 * symtab.c (symtab_node::get_visibility_string): New function.
10151 (symtab_node::get_symtab_type_string): Likewise.
10152
10153 2019-05-06 Martin Liska <mliska@suse.cz>
10154
10155 * config/i386/i386-builtins.c: New file.
10156 * config/i386/i386-builtins.h: New file.
10157 * config/i386/i386-expand.c: New file.
10158 * config/i386/i386-expand.h: New file.
10159 * config/i386/i386-features.c: New file.
10160 * config/i386/i386-features.h: New file.
10161 * config/i386/i386-options.c: New file.
10162 * config/i386/i386-options.h: New file.
10163 * config.gcc: Add new files into extra_objs and
10164 target_gtfiles.
10165 * config/i386/i386.c: Split content of the file
10166 into newly introduced files.
10167 * config/i386/i386.h: Declare common variables
10168 and macros.
10169 * config/i386/t-i386: Define dependencies for new files.
10170
10171 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
10172
10173 PR target/89400
10174 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
10175 Restrict 'all' variant to 32-bit configurations.
10176 (unaligned_loadhiu): Likewise.
10177 (unaligned_storehi): Likewise.
10178 (unaligned_storesi): Likewise.
10179 (unaligned_loadhis): Disable when compiling for thumb1.
10180
10181 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
10182
10183 PR tree-optimization/90269
10184 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10185 Ignore clobbers.
10186
10187 2019-05-03 Martin Liska <mliska@suse.cz>
10188
10189 * hash-map.h: Add is_empty function.
10190 * hash-set.h: Likewise.
10191 * hash-table.h: Likewise.
10192 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
10193 elements () == 0 (and similar usages).
10194 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
10195 * gimplify.c (gimplify_bind_expr): Likewise.
10196 (gimplify_switch_expr): Likewise.
10197 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
10198 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
10199 * postreload-gcse.c (dump_hash_table): Likewise.
10200 (gcse_after_reload_main): Likewise.
10201 * predict.c (combine_predictions_for_bb): Likewise.
10202 * tree-parloops.c (reduction_phi): Likewise.
10203 (separate_decls_in_region): Likewise.
10204 (transform_to_exit_first_loop): Likewise.
10205 (gen_parallel_loop): Likewise.
10206 (gather_scalar_reductions): Likewise.
10207 (try_create_reduction_list): Likewise.
10208 * var-tracking.c (dump_vars): Likewise.
10209 (emit_notes_for_changes): Likewise.
10210 (vt_emit_notes): Likewise.
10211
10212 2019-05-03 Richard Biener <rguenther@suse.de>
10213
10214 PR tree-optimization/90316
10215 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
10216 before running VN.
10217
10218 2019-05-03 Richard Biener <rguenther@suse.de>
10219
10220 * tree-vect-stmts.c (get_group_load_store_type): Avoid
10221 peeling for gaps by loading only lower halves of vectors
10222 if possible.
10223 (vectorizable_load): Likewise.
10224
10225 2019-05-03 Richard Biener <rguenther@suse.de>
10226
10227 PR middle-end/89518
10228 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
10229
10230 2019-05-03 Richard Biener <rguenther@suse.de>
10231
10232 PR middle-end/87314
10233 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
10234 Handle STRING_CST vs DECL or STRING_CST.
10235
10236 2019-05-03 Richard Biener <rguenther@suse.de>
10237
10238 PR tree-optimization/88963
10239 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
10240 vector loads feeding only BIT_FIELD_REFs to component
10241 loads. Rewrite stores fed by CONSTRUCTORs to component
10242 stores.
10243
10244 2019-05-03 Jakub Jelinek <jakub@redhat.com>
10245
10246 * opts.h (finish_options): Remove lang_mask argument.
10247 (print_help, help_option_argument): Declare.
10248 * opts.c (print_help): Remove forward declaration, no longer static.
10249 (finish_options): Remove lang_mask argument, don't call print_help
10250 here.
10251 * opts-global.c (decode_options): Adjust finish_option caller, call
10252 print_help here.
10253
10254 PR tree-optimization/90303
10255 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
10256 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
10257
10258 2019-05-03 Richard Biener <rguenther@suse.de>
10259
10260 PR tree-optimization/89698
10261 * gimple-fold.c (canonicalize_constructor_val): Early out
10262 for constants, handle unfolded INTEGER_CSTs as they appear in
10263 C++ virtual table ctors.
10264
10265 2019-05-03 Richard Biener <rguenther@suse.de>
10266
10267 * passes.c (execute_function_todo): Remove dead code.
10268
10269 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
10270
10271 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
10272 the internal register number, for any "real" register.
10273
10274 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
10275
10276 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
10277 correct numbers for TFHAR, TFIAR, TEXASR.
10278
10279 2019-05-02 Richard Biener <rguenther@suse.de>
10280
10281 PR tree-optimization/89653
10282 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
10283 update-address-taken before the pass.
10284 * passes.def (pass_tree_loop_init): Put comment before it.
10285
10286 2019-05-02 Richard Biener <rguenther@suse.de>
10287
10288 PR tree-optimization/89509
10289 * tree-ssa-structalias.c (compute_dependence_clique): Look
10290 at the first subvar when determining whether it is restrict.
10291
10292 2019-05-02 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/90273
10295 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
10296 useless debug stmts.
10297
10298 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10299
10300 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
10301 ACLE branch.
10302 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
10303 SVE ACLE branch.
10304 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
10305 VEC_COND_EXPR be inserted to emulate a conditional internal function.
10306 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
10307 (vectorizable_reduction): Use the functions above to vectorize in a
10308 fully masked loop codes that don't have a conditional internal
10309 function.
10310
10311 2019-05-02 Martin Liska <mliska@suse.cz>
10312
10313 * cgraphclones.c: Call valid_attribute_p with 1 for
10314 target_clone.
10315 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
10316 it's for target attribute.
10317 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
10318 Add new boolean argument.
10319 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10320 Likewise.
10321 (ix86_valid_target_attribute_tree): Pass target_clone_attr
10322 to ix86_valid_target_attribute_inner_p.
10323 (ix86_valid_target_attribute_p): Pass flags argument to
10324 ix86_valid_target_attribute_inner_p.
10325 (get_builtin_code_for_version): Use 0 as it's target attribute.
10326
10327 2019-05-02 Martin Liska <mliska@suse.cz>
10328
10329 * gcc.c (process_command): Add dummy file only
10330 if n_infiles == 0.
10331 * opts-global.c (decode_options): Pass lang_mask.
10332 * opts.c (print_help): New function.
10333 (finish_options): Print --help if help_option_argument
10334 is set.
10335 (common_handle_option): Factor out content of OPT__help_
10336 into print_help.
10337 * opts.h (finish_options): Add new argument.
10338
10339 2019-05-02 Martin Liska <mliska@suse.cz>
10340
10341 PR target/88809
10342 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
10343 With -minline-all-stringops use inline expansion using 4B loop.
10344 * doc/invoke.texi: Document the change of
10345 -minline-all-stringops.
10346
10347 2019-05-01 Jeff Law <law@redhat.com>
10348
10349 PR tree-optimization/88797
10350 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
10351 PHI feeds a conditional on the RHS of an assignment.
10352
10353 2019-04-30 Andrew Waterman <andrew@sifive.com>
10354 Jim Wilson <jimw@sifive.com>
10355
10356 * config/riscv/constraints.md (L): New.
10357 * config/riscv/predicates.md (lui_operand): New.
10358 (sfb_alu_operand): New.
10359 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
10360 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
10361 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
10362 * config/riscv/risc.md (type): Add sfb_alu.
10363 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
10364 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
10365 (branch_zero<mode>): Delete.
10366 (mov<mode>cc): New.
10367 (mov<GPR:mode><X:mode>cc): Likewise.
10368 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
10369
10370 2019-04-30 Nathan Sidwell <nathan@acm.org>
10371
10372 * tree.h (MARK_TS_EXP): New.
10373
10374 2019-04-30 Martin Liska <mliska@suse.cz>
10375
10376 * opts.c (enable_warning_as_error): Provide hints
10377 for unknown options.
10378
10379 2019-04-30 Martin Liska <mliska@suse.cz>
10380
10381 PR debug/90288
10382 * doc/invoke.texi: Add missing dash for gas-locview-support
10383 and gno-as-locview-support.
10384
10385 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10386
10387 PR target/89093
10388 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
10389 whitespace at the start of target attribute string.
10390
10391 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10392
10393 PR target/86538
10394 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10395 Define __ARM_FEATURE_ATOMICS.
10396
10397 2019-04-30 Martin Liska <mliska@suse.cz>
10398
10399 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
10400 into built_in_function enum. Remove code for endp == 2 and
10401 use BUILT_IN_* constants.
10402 (gimple_fold_builtin): Call the function with fcode.
10403
10404 2019-04-30 Martin Liska <mliska@suse.cz>
10405
10406 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
10407 DECL_FUNCTION_CODE into ix86_builtins enum before
10408 the switch statement.
10409
10410 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10411
10412 PR tree-optimization/89475
10413 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
10414 calls.
10415
10416 2019-04-30 Martin Liska <mliska@suse.cz>
10417
10418 PR translation/90274
10419 * opts.c (print_filtered_help): Wrap string in _(...).
10420
10421 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
10422
10423 PR tree-optimization/90240
10424 Revert:
10425 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10426
10427 PR tree-optimization/90078
10428 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10429 checks for infinite_cost overflow.
10430
10431 2019-04-29 Jeff Law <law@redhat.com>
10432
10433 * passes.def: Move -Wrestrict pass after copy propagation.
10434
10435 2019-04-29 Maya Rashish <coypu@sdf.org>
10436
10437 * config.gcc (default_gnu_indirect_function): Default to yes
10438 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
10439 sparc*-*-netbsd*, x86_64-*-netbsd*.
10440
10441 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
10442
10443 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
10444 where cond2 is NE_EXPR.
10445 (is_value_included_in): Update comment.
10446
10447 2019-04-29 Richard Biener <rguenther@suse.de>
10448
10449 PR tree-optimization/90278
10450 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
10451 EH on comparison simplification.
10452
10453 2019-04-29 Jason Merrill <jason@redhat.com>
10454
10455 PR c++/82081 - tail call optimization breaks noexcept
10456 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
10457 nothrow function to a might-throw function into a tail call.
10458
10459 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
10460
10461 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
10462 (DDR_INNER_LOOP): Likewise.
10463 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
10464 (initialize_data_dependence_relation): Likewise.
10465 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
10466
10467 2019-04-29 Jakub Jelinek <jakub@redhat.com>
10468
10469 PR rtl-optimization/90257
10470 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
10471 return value.
10472
10473 Revert the revert:
10474 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10475
10476 PR target/90178
10477 Revert:
10478 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10479
10480 Revert the revert:
10481 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10482
10483 Revert:
10484 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10485
10486 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10487
10488 2019-04-29 Richard Biener <rguenther@suse.de>
10489
10490 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
10491 rhs issue a reset.
10492
10493 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
10494
10495 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
10496 varasm.h, and netbsd-protos.h.
10497
10498 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
10499
10500 PR target/89261
10501 * config/i386/i386-protos.h (ix86_data_alignment): Change
10502 the second argument type to unsigned int.
10503 * config/i386/i386.c (ix86_data_alignment): Change "align"
10504 argument type to unsigned int.
10505
10506 2019-04-27 Martin Liska <mliska@suse.cz>
10507
10508 PR middle-end/90258
10509 * opt-suggestions.c (option_proposer::build_option_suggestions):
10510 When get_valid_option_values returns empty values, add the
10511 misspelling candidate.
10512
10513 2019-04-26 Jim Wilson <jimw@sifive.com>
10514
10515 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10516 parameter.
10517 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10518 Pass orig_mode to riscv_build_integer.
10519 (riscv_split_integer): Pass mode to riscv_move_integer.
10520 (riscv_legitimize_const_move): Likewise.
10521 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10522 promoted_mode. Replace force_reg call with code to load constant into
10523 promoted reg and then subreg it for the store.
10524 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10525 riscv_move_integer.
10526
10527 2018-04-26 Eugene Sharygin <eush@ispras.ru>
10528
10529 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10530 corrupt codes.
10531
10532 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
10533
10534 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10535 commentary about the encoding of precision.
10536
10537 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
10538
10539 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10540 * config/i386/t-freebsd64: New file.
10541 * config.gcc: Add the t-freebsd64 for multilib support.
10542
10543 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
10544
10545 * doc/extend.texi (vector_size): Add missing comma after @xref.
10546
10547 2019-04-25 Jakub Jelinek <jakub@redhat.com>
10548
10549 * BASE-VER: Set to 10.0.0.
10550
10551 2019-04-25 Richard Biener <rguenther@suse.de>
10552
10553 PR middle-end/89765
10554 * gimplify.c (gimplify_expr): Avoid turning a lvalue
10555 VIEW_CONVERT_EXPR into one operating on an rvalue.
10556
10557 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
10558
10559 PR target/89929
10560 * config/i386/i386.c (feature_priority): Moved to file scope.
10561 (processor_features): Likewise.
10562 (processor_model): Likewise.
10563 (_arch_names_table): Likewise.
10564 (arch_names_table): Likewise.
10565 (_feature_list): Removed.
10566 (feature_list): Likewise.
10567 (_isa_names_table): Moved to file scope. Add priority.
10568 (isa_names_table): Likewise.
10569 (get_builtin_code_for_version): Replace feature_list with
10570 isa_names_table. Update error message for P_ZERO priority.
10571
10572 2019-04-25 Richard Biener <rguenther@suse.de>
10573
10574 * tree-pass.h (make_pass_phi_only_cprop): Remove.
10575 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10576
10577 2019-04-24 Jeff Law <law@redhat.com>
10578
10579 PR tree-optimization/90037
10580 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10581 * passes.def: Replace all instance of phi-only cprop with the
10582 lattice propagator. Move propagation pass from after erroneous
10583 path isolation to before erroneous path isolation.
10584 * tree-ssa-phionlycprop.c: Remove.
10585
10586 2019-04-24 Richard Biener <rguenther@suse.de>
10587
10588 PR middle-end/90213
10589 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10590 by size and BITS_PER_UNIT on poly-wide-ints.
10591
10592 2019-04-25 Richard Biener <rguenther@suse.de>
10593
10594 PR middle-end/90194
10595 * match.pd: Add pattern to simplify view-conversion of an
10596 empty constructor.
10597
10598 2019-04-24 Clement Chigot <clement.chigot@atos.net>
10599
10600 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10601 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10602 for Go on 32 bit AIX.
10603 * config/rs6000/aix72.h: Likewise.
10604
10605 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10606
10607 PR target/90193
10608 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10609 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10610
10611 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
10612
10613 PR target/89952
10614 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10615 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
10616 for restored hard frame pointer.
10617 (s390_sched_dependencies_evaluation): Implement new target hook.
10618 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10619
10620 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
10621
10622 * config/arc/arc-options.def: Fix typos and spelling mistakes.
10623 * config/arc/arc.c (arc_init): Cleanup warning message.
10624 (arc_override_options): Likewise.
10625
10626 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10627
10628 PR target/90187
10629 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10630 a register if both if_true and if_false are MEMs.
10631
10632 PR tree-optimization/90208
10633 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10634 after labels of new_bb, not before them.
10635
10636 PR tree-optimization/90211
10637 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10638 which are not SSA_NAMEs.
10639
10640 2018-04-23 Sudakshina Das <sudi.das@arm.com>
10641
10642 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10643 AArch64.
10644 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10645
10646 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10647
10648 PR rtl-optimization/87979
10649 * modulo-sched.c (sms_schedule): Start ii value "mii" should
10650 not equal zero.
10651
10652 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10653
10654 PR rtl-optimization/84032
10655 * modulo-sched.c (ps_insn_find_column): Change condition so that
10656 branch will always be the last insn in a row inside partial
10657 schedule.
10658
10659 2019-04-23 Richard Biener <rguenther@suse.de>
10660
10661 PR debug/90131
10662 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10663 dest_single_pred_p argument.
10664 (remove_forwarder_block): Adjust.
10665 (remove_forwarder_block_with_phi): Likewise.
10666
10667 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10668 Bernd Edlinger <bernd.edlinger@hotmail.de>
10669 Jakub Jelinek <jakub@redhat.com>
10670
10671 PR target/89093
10672 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10673 if used with general-regs-only.
10674 (arm_conditional_register_usage): Don't add non-general regs if
10675 general-regs-only.
10676 (arm_valid_target_attribute_rec): Handle general-regs-only.
10677 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10678 general-regs-only.
10679 (TARGET_HARD_FLOAT_SUB): Define.
10680 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10681 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10682 (TARGET_REALLY_IWMMXT2): Likewise.
10683 * config/arm/arm.opt: Add -mgeneral-regs-only.
10684 * doc/extend.texi: Document ARM general-regs-only target.
10685 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10686
10687 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10688
10689 PR tree-optimization/90078
10690 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10691 checks for infinite_cost overflow.
10692
10693 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10694
10695 PR tree-optimization/90021
10696 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
10697 and check univariate against it.
10698 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
10699 * tree-data-ref.c (add_other_self_distances): Pass new argument.
10700
10701 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10702
10703 PR target/90178
10704 Revert:
10705 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10706
10707 Revert the revert:
10708 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10709
10710 Revert:
10711 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10712
10713 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10714
10715 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
10716
10717 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
10718 names using operand format, rather than hard-wired.
10719 (speculation_barrier): Likewise.
10720
10721 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
10722
10723 PR tree-optimization/88055
10724 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
10725 (gen_one_condition): Use it if !HONOR_NANS.
10726
10727 2019-04-19 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR middle-end/90139
10730 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
10731 assign_temp instead of gen_reg_rtx.
10732
10733 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
10734
10735 PR translation/90118
10736 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10737 Add missing space before %<.
10738
10739 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
10740
10741 PR rtl-optimization/87871
10742 * ira-lives.c (make_object_dead): Don't add conflicts to
10743 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
10744
10745 2019-04-18 Martin Sebor <msebor@redhat.com>
10746
10747 PR middle-end/89797
10748 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
10749 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
10750 assuming type size fits in SHWI.
10751
10752 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
10753
10754 PR ipa/85051
10755 * ipa-inline.c (flatten_function): New parameter UPDATE.
10756 (ipa_inline, early_inliner): Use it.
10757
10758 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10759
10760 * fold-const.c (int_const_binop): Return early on failure.
10761
10762 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10763
10764 PR middle-end/85164
10765 * combine.c (force_int_to_mode): Cast the argument rather than
10766 the result of known_alignment.
10767 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
10768
10769 2019-04-18 Richard Biener <rguenther@suse.de>
10770
10771 PR debug/90131
10772 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
10773 out from ...
10774 (remove_forwarder_block): ... here.
10775 (remove_forwarder_block_with_phi): Also move debug stmts here.
10776
10777 2019-04-18 Jakub Jelinek <jakub@redhat.com>
10778
10779 PR translation/79183
10780 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
10781 inform where appropriate.
10782
10783 2019-04-18 Richard Biener <rguenther@suse.de>
10784
10785 * tree.c (get_qualified_type): Put found type variants at the
10786 head of the variant list.
10787
10788 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10789
10790 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10791
10792 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
10793
10794 PR target/90125
10795 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
10796 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
10797 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
10798 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
10799 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
10800
10801 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
10802
10803 * ira-conflicts.c (print_allocno_conflicts): Always print something,
10804 even for allocno's with no conflicts.
10805 (print_conflicts): Print an extra newline.
10806
10807 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10808
10809 * auto-inc-dec.c (attempt_change): Set the alignment of the
10810 temporary memory to that of the original.
10811
10812 2019-04-17 Joao Moreira <jmoreira@suse.de>
10813
10814 * targhooks.c (default_print_patchable_function_entry): Emit
10815 __patchable_function_entries section with writable flags to allow
10816 relocation resolution.
10817
10818 2019-04-17 Jonny Grant <jg@jguk.org>
10819
10820 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
10821
10822 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10823
10824 PR middle-end/90095
10825 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
10826 on lowpart SUBREGs.
10827
10828 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
10829
10830 * config/arc/arc.c (arc_init): Format diagnostic string.
10831 (arc_override_options): Likewise.
10832 (check_if_valid_regno_const): Likewise.
10833 (arc_reorg): Likewise.
10834
10835 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10836
10837 PR target/17108
10838 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
10839 name.
10840 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
10841 name.
10842 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
10843 (*movdi_update1): Use Pmode.
10844 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
10845 (movdi_<mode>_update_stack): Rename to ...
10846 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
10847 use Pmode.
10848 (*movsi_update1): Use Pmode.
10849 (*movsi_update2): Use Pmode.
10850 (movsi_update): Rename to ...
10851 (movsi_<mode>_update): ... this. Use Pmode.
10852 (movsi_update_stack): Fix condition.
10853 (*movhi_update1): Use Pmode. Fix argument to
10854 avoiding_indexed_address_p.
10855 (*movhi_update2): Ditto.
10856 (*movhi_update3): Ditto.
10857 (*movhi_update4): Ditto.
10858 (*movqi_update1): Ditto.
10859 (*movqi_update2): Ditto.
10860 (*movqi_update3): Ditto.
10861 (*movsf_update1, *movdf_update1): Merge, rename to...
10862 (*mov<mode>_update1): This. Use Pmode. Fix argument to
10863 avoiding_indexed_address_p. Add "size" attribute.
10864 (*movsf_update2, *movdf_update2): Merge, rename to...
10865 (*mov<mode>_update2): This. Ditto.
10866 (*movsf_update3): Use Pmode. Fix argument to
10867 avoiding_indexed_address_p.
10868 (*movsf_update4): Ditto.
10869 (allocate_stack): Simplify condition. Adjust pattern names.
10870
10871 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10872
10873 PR target/89093
10874 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
10875 whitespace at the start of target attribute string.
10876
10877 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
10878
10879 PR target/84369
10880 * config/rs6000/power9.md: Add store forwarding bypass.
10881
10882 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
10883
10884 PR debug/89528
10885 * valtrack.c (dead_debug_insert_temp): Reset debug references
10886 to the return value of a call being removed.
10887
10888 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10889
10890 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
10891 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
10892 implement target hook.
10893 (arc_memory_move_cost): New function.
10894 (TARGET_REGISTER_MOVE_COST): Define.
10895 (TARGET_MEMORY_MOVE_COST): Likewise.
10896 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
10897 (MEMORY_MOVE_COST): Likewise.
10898
10899 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10900
10901 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
10902 (sibcall_value_insn): Likewise.
10903 * config/arc/constraints.md (Rs5): Remove.
10904
10905 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10906
10907 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
10908 for last two fake registers.
10909 (arc_conditional_register_usage): Make sure fake frame and arg
10910 pointer regs are in general regs class.
10911 (FRAME_POINTER_MASK): Remove.
10912 (RETURN_ADDR_MASK): Remove.
10913 (arc_must_save_register): Use hard frame regnum.
10914 (frame_restore_reg): Use hard_frame_pointer_rtx.
10915 (arc_save_callee_saves): Likewise.
10916 (arc_restore_callee_saves): Likewise.
10917 (arc_save_callee_enter): Likewise.
10918 (arc_restore_callee_leave): Likewise.
10919 (arc_save_callee_milli): Likewise.
10920 (arc_eh_return_address_location): Likewise.
10921 (arc_check_multi): Use hard frame regnum.
10922 (arc_can_eliminate): Likewise.
10923 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
10924 for register allocator.
10925 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
10926 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
10927 (FRAME_POINTER_REGNUM): Change it to a fake register.
10928 (HARD_FRAME_POINTER_REGNUM): Defined.
10929 (ARG_POINTER_REGNUM): Change it to a new fake register.
10930 (ELIMINABLE_REGS): Update.
10931 (REGISTER_NAMES): Update names.
10932 * config/arc/arc.md (LP_START): Remove.
10933 (LP_END): Likewise.
10934 (shift_si3_loop): Update pattern.
10935
10936 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10937
10938 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
10939 to avoid delay slot scheduling.
10940 (arc_must_save_register): Don't save SP.
10941 * config/arc/arc.md (stack_tie): Remove.
10942 (UNSPEC_ARC_STKTIE): Likewise.
10943
10944 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
10945 Shiva Chen <shiva0217@gmail.com>
10946
10947 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
10948 code gen with large shift amount.
10949
10950 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
10951
10952 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
10953 subreg.
10954
10955 2019-04-16 Jakub Jelinek <jakub@redhat.com>
10956
10957 PR target/90096
10958 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
10959 print -m64/-mx32/-m32 if it is true.
10960 (ix86_debug_options, ix86_function_specific_print): Pass true as
10961 ADD_ABI_P to ix86_target_string.
10962 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
10963 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
10964 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
10965
10966 PR rtl-optimization/90082
10967 * dce.c (can_delete_call): New function.
10968 (deletable_insn_p, mark_insn): Use it.
10969
10970 PR tree-optimization/90090
10971 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
10972 throw internally.
10973 (is_division_by_square): Likewise. Formatting fix.
10974
10975 2019-04-16 Richard Biener <rguenther@suse.de>
10976
10977 PR tree-optimization/56049
10978 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
10979 equality check if alias-set zero will prevail.
10980
10981 2019-04-15 Jeff Law <law@redhat.com>
10982
10983 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
10984 size and alignment as unsigned.
10985
10986 2019-04-15 Richard Biener <rguenther@suse.de>
10987
10988 PR debug/90074
10989 * tree-loop-distribution.c (destroy_loop): Preserve correct
10990 debug info.
10991
10992 2019-04-15 Richard Biener <rguenther@suse.de>
10993
10994 PR tree-optimization/90071
10995 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
10996 abnormal operands from def stmts.
10997
10998 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
10999
11000 PR rtl-optimization/89794
11001 * combine.c (count_auto_inc): New function.
11002 (try_combine): Count how many auto_inc expressions there were in the
11003 original instructions. Ensure we have the same number in the new
11004 instructions. Remove the code that tried to ensure auto_inc side
11005 effects on i1 and i0 are not lost.
11006
11007 2019-04-15 Richard Biener <rguenther@suse.de>
11008
11009 PR ipa/88936
11010 * tree.h (auto_var_p): Declare.
11011 * tree.c (auto_var_p): New function, split out from ...
11012 (auto_var_in_fn_p): ... here.
11013 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
11014 member.
11015 (new_var_info): Initialize it.
11016 (set_uids_in_ptset): Also set the shadow variable uid if required.
11017 (ipa_pta_execute): Postprocess points-to solutions assigning
11018 shadow variable uids for locals that may reach their containing
11019 function recursively.
11020 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
11021 assert but instead check whether the points-to solution is
11022 a singleton.
11023
11024 2019-04-15 Martin Jambor <mjambor@suse.cz>
11025
11026 PR ipa/pr89693
11027 * cgraph.c (clone_of_p): Loop over clone chain for each step in
11028 the thunk chain.
11029
11030 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
11031
11032 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
11033
11034 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
11035 Kito Cheng <kito.cheng@gmail.com>
11036 Shiva Chen <shiva0217@gmail.com>
11037
11038 * config/nds32/nds32-md-auxiliary.c
11039 (nds32_legitimize_pic_address): Use new PIC pattern.
11040 (nds32_legitimize_tls_address): Use new TLS pattern.
11041 (nds32_output_symrel): New.
11042 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
11043 (nds32_alloc_relax_group_id): Ditto.
11044 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
11045 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
11046 relax_group_id.
11047 (nds32_group_tls_insn): Ditto.
11048 (nds32_group_float_insns): Ditto.
11049 * config/nds32/nds32.md (tls_le): New.
11050 (sym_got): Ditto.
11051
11052 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
11053
11054 * configure: Add nds32 target for dwarf2 debug_line checking.
11055 * configure.ac: Regenerated.
11056
11057 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
11058
11059 PR lto/89358
11060 * ipa-devirt.c (skip_in_fields_list_p): New.
11061 (odr_types_equivalent_p): Use it.
11062
11063 2019-04-13 Jakub Jelinek <jakub@redhat.com>
11064
11065 PR target/89093
11066 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
11067 instead of strncmp when checking for thumb and arm. Formatting fixes.
11068
11069 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
11070
11071 * doc/install.texi: Document --with-target-system-zlib.
11072
11073 2019-04-12 Martin Sebor <msebor@redhat.com>
11074
11075 PR c/88383
11076 PR c/89288
11077 PR c/89798
11078 PR c/89797
11079 * targhooks.c (default_vector_alignment): Avoid assuming
11080 argument fits in SHWI.
11081 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
11082 a shift expression.
11083 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
11084
11085 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11086
11087 PR rtl-optimization/89965
11088 * dce.c: Include rtl-iter.h.
11089 (struct check_argument_load_data): New type.
11090 (check_argument_load): New function.
11091 (find_call_stack_args): Check for loads from stack slots still tracked
11092 in sp_bytes and punt if any is found.
11093
11094 * config/mips/loongson-mmiintrin.h: Fix up #error message.
11095
11096 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
11097
11098 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
11099 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
11100
11101 2019-04-12 Martin Liska <mliska@suse.cz>
11102
11103 PR middle-end/89970
11104 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
11105 in error message.
11106 (separate_attrs): Handle multiple 'default's.
11107 (expand_target_clones): Rework error handling code.
11108
11109 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
11110
11111 PR target/87532
11112 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
11113 mode of vector rather than mode of destination for move instruction.
11114 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
11115 Use QI inner mode with V16QI vector mode.
11116
11117 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11118
11119 PR target/52726
11120 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
11121 "invalid %%t operand" in output_operand_lossage message.
11122
11123 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
11124
11125 * config/s390/predicates.md (permute_pattern_operand): New
11126 predicate.
11127 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
11128 operand for the permute pattern.
11129 ("*vec_perm<mode>"): New insn definition.
11130 ("bswap<mode>"): Generate the permute pattern operand in the
11131 expander and perform the operand reloads for pre arch13 level
11132 already.
11133 ("*bswap<mode>_emu"): Rename to ...
11134 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
11135 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
11136 Add the USE operand for the permute pattern.
11137 ("*vec_set_bswap_vec<mode>"): Likewise.
11138
11139 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11140
11141 PR c/89946
11142 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
11143 and gcc_unreachable if it fails, just call tree_to_uhwi which
11144 verifies that too. Test TREE_CHAIN instead of list_length > 1.
11145 Start warning message with a lower-case letter. Formatting fixes.
11146
11147 PR rtl-optimization/90026
11148 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
11149 successors, look for BARRIERs inside of the whole BB_FOOTER chain
11150 rather than just at the start of it. If e->src BB_FOOTER is not NULL
11151 in cfglayout mode, use emit_barrier_after_bb.
11152
11153 2018-04-11 Steve Ellcey <sellcey@marvell.com>
11154
11155 PR rtl-optimization/87763
11156 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
11157 New Instruction.
11158
11159 2019-04-11 Tom de Vries <tdevries@suse.de>
11160
11161 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
11162 max macro using statement expression.
11163
11164 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
11165
11166 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
11167 * xcoffout.c (xcoff_private_rodata_section_name): Define.
11168 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
11169 read_only_private_data_section using xcoff_private_rodata_section_name.
11170 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
11171
11172 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
11173
11174 PR target/90016
11175 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
11176
11177 2019-04-11 Jakub Jelinek <jakub@redhat.com>
11178
11179 PR rtl-optimization/89965
11180 * dce.c (sp_based_mem_offset): New function.
11181 (find_call_stack_args): Use sp_based_mem_offset.
11182
11183 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
11184
11185 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
11186
11187 2019-04-11 Richard Biener <rguenther@suse.de>
11188
11189 PR tree-optimization/90020
11190 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
11191 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
11192 * tree-ssa-pre.c (compute_avail): Use it to not put
11193 possibly trapping references after a call that might not
11194 return into EXP_GEN.
11195 * gcse.c (compute_hash_table_work): Do not elide
11196 marking a block containing a call if the call might not
11197 return.
11198
11199 2019-04-11 Richard Biener <rguenther@suse.de>
11200
11201 PR tree-optimization/90018
11202 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
11203 Test both SLP and interleaving variants.
11204
11205 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
11206
11207 * config/s390/8561.md: New file.
11208 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11209 Add arch13 cpu model.
11210 * config/s390/s390-opts.h (enum processor_type): Likewise.
11211 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
11212 (s390_get_unit_mask): Likewise.
11213 (s390_is_fpd): Likewise.
11214 (s390_is_fxd): Likewise.
11215 * config/s390/s390.h (s390_tune_attr): Likewise.
11216 * config/s390/s390.md: Include arch13 pipeline description.
11217 * config/s390/s390.opt: Add arch13.
11218
11219 2018-04-10 Steve Ellcey <sellcey@marvell.com>
11220
11221 PR rtl-optimization/87763
11222 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
11223 New prototype.
11224 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
11225 New function.
11226 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
11227 New instruction.
11228 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
11229 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
11230 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
11231 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
11232
11233 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
11234
11235 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
11236 "Although" in -fipa-icf documentation.
11237
11238 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
11239 of using multiple -g options.
11240
11241 2019-04-10 Martin Liska <mliska@suse.cz>
11242
11243 PR gcov-profile/89959
11244 * doc/gcov.texi: Make documentation of -x option
11245 more precise.
11246
11247 2019-04-10 Richard Biener <rguenther@suse.de>
11248
11249 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
11250 member.
11251 (DR_GROUP_SAME_DR_STMT): Remove.
11252 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
11253 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
11254 replace with assert.
11255 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
11256 (vect_record_grouped_load_vectors): Remove unreachable code.
11257
11258 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
11259
11260 PR target/90016
11261 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
11262 obsolete reference to N.
11263
11264 2019-04-10 Jakub Jelinek <jakub@redhat.com>
11265
11266 PR middle-end/90025
11267 * expr.c (store_expr): Set properly size on the MEM passed to
11268 clear_storage.
11269
11270 PR c++/90010
11271 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
11272 with strlen in between hostsz-3 and hostsz-1 inclusive when no
11273 translation is needed, and when translation is needed, only append
11274 ... if the string length is hostsz or more bytes long. Avoid using
11275 strncpy or strcat.
11276
11277 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
11278
11279 PR target/90024
11280 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
11281 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
11282 into three.
11283 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
11284 differences directly.
11285 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
11286
11287 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11288
11289 PR translation/90011
11290 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11291 from diagnostics.
11292 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
11293 diagnostics.
11294 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11295 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
11296 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
11297 trailing space from -gsplit-dwarf diagnostics.
11298
11299 PR tree-optimization/89998
11300 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
11301 instead of integer_type_node if possible, don't add ranges if return
11302 type is not compatible with int.
11303 * gimple-fold.c (gimple_fold_builtin_sprintf,
11304 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
11305 integer_type_node.
11306
11307 2019-04-09 Martin Liska <mliska@suse.cz>
11308
11309 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
11310 * doc/install.texi: Document the new config.
11311
11312 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
11313
11314 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
11315 use gimple_expr_type for load and store calls. Skip over the
11316 condition argument in a conditional internal function.
11317 Protect use of TREE_INT_CST_LOW.
11318
11319 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11320
11321 PR target/90015
11322 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
11323 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
11324 trailing period from it too.
11325
11326 2019-04-08 wu yuan <wuyuan5@huawei.com>
11327
11328 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
11329 * config/aarch64/aarch64.md : Add "tsv110.md"
11330 * config/aarch64/tsv110.md: New file.
11331
11332 2019-04-08 Richard Biener <rguenther@suse.de>
11333
11334 PR tree-optimization/90006
11335 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11336 calls like lrint.
11337
11338 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
11339
11340 PR target/83033
11341 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
11342 construction.
11343 (fma_root_node): Likewise.
11344 (func_fma_steering): Likewise.
11345
11346 2019-04-08 Jakub Jelinek <jakub@redhat.com>
11347
11348 PR rtl-optimization/89865
11349 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
11350
11351 PR rtl-optimization/89865
11352 * config/i386/i386.md
11353 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
11354 numbers not to clash with the additional operands[4].
11355 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11356 with extra register copy in the middle.
11357
11358 2019-04-08 Martin Liska <mliska@suse.cz>
11359
11360 PR gcov-profile/89961
11361 * doc/gcov.texi: Document data_file.
11362 * gcov.c (generate_results): Add data_info into JSON output.
11363
11364 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
11365
11366 PR tree-optimization/89725
11367 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
11368 loop's chrec as invariant symbol.
11369 * tree-chrec.h (chrec_contains_symbols): New parameter.
11370 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
11371 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
11372 function of loops not in DDR's loop_nest.
11373 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
11374
11375 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
11376
11377 PR target/89623
11378 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
11379 Mask.
11380
11381 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
11382
11383 PR target/89945
11384 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11385 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
11386
11387 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
11388
11389 * sched-deps.c (sched_macro_fuse_insns): Check return value of
11390 targetm.fixed_condition_code_regs.
11391
11392 2019-04-05 Richard Biener <rguenther@suse.de>
11393
11394 PR debug/89892
11395 PR debug/89905
11396 * tree-cfgcleanup.c (remove_forwarder_block): Always move
11397 debug bind stmts but reset them if they are not valid at the
11398 destination.
11399
11400 2019-04-05 Martin Liska <mliska@suse.cz>
11401
11402 PR translation/89936
11403 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
11404 order to wrap keywords or arguments.
11405 * collect2.c (main): Likewise.
11406 (scan_prog_file): Likewise.
11407 (scan_libraries): Likewise.
11408 * common/config/riscv/riscv-common.c
11409 (riscv_subset_list::parsing_subset_version): Likewise.
11410 (riscv_subset_list::parse_std_ext): Likewise.
11411 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11412 Likewise.
11413 * config/arm/arm.c (arm_option_override): Likewise.
11414 * config/cris/cris.c (cris_print_operand): Likewise.
11415 * config/darwin-c.c (darwin_pragma_options): Likewise.
11416 (darwin_pragma_unused): Likewise.
11417 (darwin_pragma_ms_struct): Likewise.
11418 * config/ft32/ft32.c (ft32_print_operand): Likewise.
11419 * config/i386/i386.c (print_reg): Likewise.
11420 (ix86_print_operand): Likewise.
11421 * config/i386/xm-djgpp.h: Likewise.
11422 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
11423 * config/m32c/m32c.c (m32c_option_override): Likewise.
11424 * config/msp430/msp430.c (msp430_option_override): Likewise.
11425 * config/nds32/nds32.c (nds32_option_override): Likewise.
11426 * config/nvptx/mkoffload.c (main): Likewise.
11427 * config/rx/rx.c (rx_print_operand): Likewise.
11428 (valid_psw_flag): Likewise.
11429 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
11430 (vms_pragma_nomember_alignment): Likewise.
11431 (vms_pragma_extern_model): Likewise.
11432 * lto-wrapper.c (compile_offload_image): Likewise.
11433 * omp-offload.c (oacc_parse_default_dims): Likewise.
11434 * symtab.c (symtab_node::verify_base): Likewise.
11435 * tlink.c (recompile_files): Likewise.
11436 (start_tweaking): Likewise.
11437 * tree-profile.c (parse_profile_filter): Likewise.
11438
11439 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
11440
11441 PR tree-optimization/89956
11442 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
11443 multiple negates of the same value.
11444
11445 2019-04-04 Martin Sebor <msebor@redhat.com>
11446
11447 PR middle-end/89957
11448 PR middle-end/89911
11449 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
11450 have the same precision since the function crashes otherwise.
11451 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
11452 has non-zero arguments.
11453
11454 2019-04-04 Martin Sebor <msebor@redhat.com>
11455
11456 PR middle-end/89934
11457 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
11458 out if the number of arguments is less than expected.
11459
11460 2019-04-04 Jeff Law <law@redhat.com>
11461
11462 PR rtl-optimization/89399
11463 * ree.c (combine_set_extension): Use single_set rather than
11464 digging into PATTERN for items on the candidate list.
11465 (combine_reaching_defs): Likewise.
11466
11467 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
11468
11469 PR rtl-optimization/46590
11470 * loop-invariant.c (find_defs): Move df_remove_problem and
11471 df_process_deferred_rescans to move_invariants.
11472 Move df_live_add_problem and df_live_set_all_dirty calls
11473 to move_invariants.
11474 (move_invariants): Likewise.
11475 (move_loop_invariants): Likewise, making the df_live calls
11476 conditional on -O. Remove the problem again if we added it
11477 locally.
11478
11479 2019-04-03 qing zhao <qing.zhao@oracle.com>
11480
11481 PR tree-optimization/89730
11482 * ipa-inline.c (can_inline_edge_p): Delete the checking for
11483 -flive-patching=inline-only-static.
11484 (can_inline_edge_by_limits_p): Add the checking for
11485 -flive-patching=inline-only-static and grant always_inline
11486 even when -flive-patching=inline-only-static is specified.
11487
11488 2019-04-03 Jeff Law <law@redhat.com>
11489
11490 PR rtl-optimization/81025
11491 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
11492
11493 2019-04-03 Richard Biener <rguenther@suse.de>
11494
11495 PR tree-optimization/84101
11496 * tree-vect-stmts.c: Include explow.h for hard_function_value,
11497 regs.h for hard_regno_nregs.
11498 (cfun_returns): New helper.
11499 (vect_model_store_cost): When vectorizing a store to a decl
11500 we return and the function ABI returns in a multi-reg location
11501 account for the possible spilling that will happen.
11502
11503 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
11504
11505 * config/s390/s390.c (s390_legitimate_address_p): Reject long
11506 displacement addresses for vector mode operands.
11507
11508 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
11509
11510 * config/arc/arc.c (GMASK_LEN): Define.
11511 (arc_restore_callee_saves): Restore first blink when
11512 !optimize_size.
11513
11514 2019-04-03 Sudakshina Das <sudi.das@arm.com>
11515
11516 * doc/extend.texi: Add deprecated comment on sign-return-address
11517 function attribute and add mbranch-protection.
11518 * doc/invoke.texi: Add bti to the options for mbranch-protection.
11519
11520 2019-04-03 Richard Biener <rguenther@suse.de>
11521
11522 PR lto/89896
11523 * lto-wrapper.c (run_gcc): Avoid implicit rules making
11524 the all target phony.
11525
11526 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
11527
11528 PR target/89902
11529 PR target/89903
11530 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11531 Return false for variable DImode shifts.
11532 (dimode_scalar_chain::compute_convert_gain): Do not handle
11533 register count operand in variable DImode shifts.
11534 (dimode_scalar_chain::make_vector_copies): Remove support to copy
11535 count argument of a variable shift instruction to a vector register.
11536 (dimode_scalar_chain::convert_reg): Remove support to convert
11537 count argument of a variable shift instruction.
11538
11539 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11540
11541 PR rtl-optimization/84206
11542 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11543 iterating over loop headers.
11544
11545 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11546
11547 PR rtl-optimization/85876
11548 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11549 beyond the original fence.
11550
11551 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
11552
11553 * config.gcc: Mark spu* targets as deprecated/obsolete.
11554
11555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11556
11557 * config/s390/s390-builtin-types.def: New builtin function type
11558 definitions. Remove unused types.
11559 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11560 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11561 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11562 overloaded builtins.
11563 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11564 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11565 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11566 (vec_double, vec_signed, vec_unsigned): Define to use the new
11567 overloaded builtins.
11568 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11569 Remove expanders.
11570
11571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11572
11573 * config/s390/s390-builtin-types.def: New builtin function type
11574 definitions.
11575 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11576 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11577 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11578 (s390_vstrszh, s390_vstrszf): New low-level builtins.
11579 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11580 constant definitions.
11581 * config/s390/vecintrin.h (vec_search_string_cc)
11582 (vec_search_string_until_zero_cc): New builtin name definitions.
11583 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11584 expanders.
11585 ("vec_vstrs<mode>"): New insn definition.
11586
11587 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11588
11589 * config/s390/s390-builtin-types.def: Add new builtin function
11590 types.
11591 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11592 New overloaded builtins.
11593 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
11594 s390_vsrd.
11595 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11596 (UNSPEC_VEC_SLDBYTE): ... this.
11597 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11598 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11599 definitions.
11600 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11601 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11602 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11603
11604 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11605
11606 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11607 New insn definition.
11608 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11609 * config/s390/vector.md (V_HW_HSD): ... here.
11610
11611 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11612
11613 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11614 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11615 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11616 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11617 New insn definitions.
11618
11619 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11620
11621 * config/s390/s390-builtin-types.def: Add new builtin function type.
11622 * config/s390/s390-builtins.def: Add overloaded builtin
11623 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11624 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11625 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11626 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11627 ("eltswap<mode>"): New expander.
11628 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11629 insn definitions.
11630
11631 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11632
11633 * config/s390/s390-builtin-types.def: Add new builtin function types.
11634 * config/s390/s390-builtins.def: Add overloaded builtin
11635 s390_vec_revb. Add low-level builtins for vlbr and vstbr
11636 instructions.
11637 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11638 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11639 ("bswap<mode>"): New expander.
11640 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11641
11642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11643
11644 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11645 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11646 vector builtin version number in __VEC__.
11647
11648 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11649
11650 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11651 iterators.
11652 (SFSI): New mode attribute.
11653 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11654 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11655 rename to ...
11656 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11657 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11658 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11659 ("floatsi<mode>2"): Add wcefb instruction.
11660
11661 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11662
11663 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11664 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11665 mode iterators.
11666 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11667 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11668 support 32 bit fp-int conversions. Rename to ...
11669 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11670 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11671 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11672 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11673 ... to these.
11674
11675 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11676
11677 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11678 if-then-else constructs if we can use the select instruction.
11679 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11680
11681 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11682
11683 * config/s390/s390.md ("*popcountdi_arch13_cc")
11684 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11685 definition.
11686 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11687 Append _z196 to make it ...
11688 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11689 ("popcounthi2_z196"): ... this.
11690 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11691 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
11692
11693 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11694
11695 * config/s390/s390.c (s390_canonicalize_comparison): Convert
11696 certain compares for arch13 in order to make use of the condition
11697 code result produced by the new instructions.
11698 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
11699 nxrk, and nxgrk instruction patterns.
11700 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
11701 (inv_no): Add new code iterator together with some attributes.
11702 ("*andc_split_<mode>"): Disable splitter for arch13.
11703 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
11704 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
11705 ("*<ANDOR:bitops_name>c<GPR:mode>")
11706 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
11707 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
11708 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
11709 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
11710
11711 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11712
11713 * common/config/s390/s390-common.c (processor_flags_table): New
11714 entry for arch13.
11715 * config.gcc: Support arch13 with the --with-arch= configure flag.
11716 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11717 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
11718 * config/s390/s390.c (s390_get_sched_attrmask)
11719 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
11720 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
11721 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
11722 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
11723 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
11724 definitions.
11725 * config/s390/s390.opt: Support arch13 as processor type in
11726 command line options.
11727
11728 2019-04-02 Martin Liska <mliska@suse.cz>
11729
11730 PR translation/89912
11731 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
11732 Fix param description of graphite-max-arrays-per-scop.
11733
11734 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
11735
11736 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
11737 (ASAN_CC1_SPEC): Use it in 64-bit mode.
11738 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
11739
11740 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11741
11742 PR rtl-optimization/85412
11743 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
11744 sel_sched_region_1, not after.
11745
11746 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11747
11748 PR rtl-optimization/86928
11749 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
11750 compute_live if necessary.
11751 (sel_redirect_edge_and_branch): Likewise.
11752
11753 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
11754
11755 PR rtl-optimization/89865
11756 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
11757 register if it is a part of small class.
11758
11759 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11760
11761 PR rtl-optimization/87273
11762 * sel-sched-ir.c (merge_fences): Remove assert.
11763
11764 2019-04-01 Richard Biener <rguenther@suse.de>
11765
11766 PR tree-optimization/46590
11767 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
11768 (dom_walker::m_reachability): Add in place of...
11769 (dom_walker::m_skip_unreachable_blocks): ...this.
11770 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
11771 Move complex initialization ...
11772 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
11773 lazily and initialize edge flags on each invocation.
11774 (dom_walker::bb_reachable): Use m_reachability.
11775
11776 2019-04-01 Martin Liska <mliska@suse.cz>
11777
11778 PR driver/89861
11779 * opt-suggestions.c (option_proposer::build_option_suggestions):
11780 Add variant without any argument in order to provide better
11781 hints.
11782
11783 2019-04-01 Richard Biener <rguenther@suse.de>
11784
11785 PR c/71598
11786 * gimple.c: Include langhooks.h.
11787 (gimple_get_alias_set): Treat enumeral types as the underlying
11788 integer type.
11789
11790 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11791 Eric Botcazou <ebotcazou@adacore.com>
11792
11793 PR rtl-optimization/89862
11794 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
11795 that operates on the full registers for WORD_REGISTER_OPERATIONS
11796 architectures.
11797
11798 2019-03-29 Jim Wilson <jimw@sifive.com>
11799
11800 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
11801 Clear MASK_RVC and then set if C subset supported.
11802
11803 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11804
11805 PR c/89872
11806 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
11807 non-addressable complit into its initializer if it is volatile.
11808
11809 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
11810
11811 * opts-common.c (integral_argument): Set errno properly in one case.
11812
11813 2019-03-29 Martin Liska <mliska@suse.cz>
11814
11815 * doc/invoke.texi: Remove -Wchkp from documentation.
11816
11817 2019-03-29 Martin Liska <mliska@suse.cz>
11818
11819 * dbgcnt.c (print_limit_reach): New function.
11820 (dbg_cnt): Use it.
11821
11822 2019-03-29 Martin Liska <mliska@suse.cz>
11823
11824 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
11825 (dbg_cnt_process_opt): Parse first tokens aas
11826 dbg_cnt_process_single_pair is also using strtok.
11827
11828 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11829
11830 PR rtl-optimization/87485
11831 * function.c (expand_function_end): Move stack_protect_epilogue
11832 before loading of return value into hard register(s).
11833
11834 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11835
11836 PR middle-end/89621
11837 * tree-inline.h (struct copy_body_data): Add
11838 dont_remap_vla_if_no_change flag.
11839 * tree-inline.c (remap_type_3, remap_type_2): New functions.
11840 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
11841 and remap_type_2 returns false.
11842 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
11843 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
11844 only from where it is copied to nested contexts.
11845
11846 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11847
11848 PR target/89865
11849 * config/i386/i386.md (RMW operation with LEA peephole):
11850 Use LEAMODE mode attribute instead of SWI mode iterator for
11851 LEA pattern.
11852
11853 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11854
11855 PR target/89848
11856 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
11857 Also process XEXP (src, 0) of a shift insn.
11858
11859 2019-03-28 David Malcolm <dmalcolm@redhat.com>
11860
11861 PR middle-end/89725
11862 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
11863 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
11864
11865 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11866
11867 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
11868 test.
11869 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
11870 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
11871 immediately after first one with df_analyze in between, but rather
11872 process all bbs, queueing ones that need second pass in a worklist,
11873 df_analyze, process queued debug insn changes and if second pass is
11874 needed, process bbs from worklist, df_analyze, process queued debug
11875 insns again.
11876
11877 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
11878 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
11879 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
11880
11881 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
11882
11883 PR c/79022
11884 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
11885 definition.
11886
11887 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
11888
11889 PR target/85667
11890 * config/i386/i386.c (ix86_function_value_1): Call the newly added
11891 function for 32-bit MS_ABI.
11892 (function_value_ms_32): New function.
11893
11894 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
11895
11896 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
11897 (movdi): Call gen_movdi_symbol_save_scc.
11898 (gen_movdi_symbol_save_scc): New insn and split.
11899
11900 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
11901
11902 PR rtl-optimization/89313
11903 * function.c (matching_constraint_num): New static function.
11904 (match_asm_constraints_1): Use it. Fixup white space and comment.
11905 Don't replace inputs with non-matching constraints which conflict
11906 with early clobber outputs.
11907
11908 2019-03-27 Jeff Law <law@redhat.com>
11909
11910
11911 PR rtl-optimization/87761
11912 PR rtl-optimization/89826
11913 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
11914 slightly later.
11915 (pass_cprop_hardreg::execute): Call df_analyze after adding the
11916 note problem to get REG_DEAD/REG_UNUSED notes updated.
11917
11918 2019-03-27 Richard Biener <rguenther@suse.de>
11919
11920 PR tree-optimization/89463
11921 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
11922 queue edges to remove.
11923 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
11924 dead stmts. Delay edge removal until PHIs are removed to
11925 make debug-stmt creation not confused by seemingly degenerate
11926 PHIs.
11927
11928 2019-03-27 Alan Modra <amodra@gmail.com>
11929
11930 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
11931 throughout file.
11932 * config/rs6000/darwin.h: Likewise.
11933 * config/rs6000/rs6000.c: Likewise.
11934
11935 2019-03-27 Alan Modra <amodra@gmail.com>
11936
11937 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
11938 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
11939
11940 2019-03-26 Andrew Waterman <andrew@sifive.com>
11941 Jim Wilson <jimw@sifive.com>
11942
11943 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
11944 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
11945 (generic_idivdi, generic_fmul_single, generic_fmul_double)
11946 (generic_fdiv, generic_fsqrt): Add check for generic tune.
11947 (generic_alu): Add auipc to type list.
11948 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
11949 (riscv_microarchitecture): Declare.
11950 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
11951 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
11952 field.
11953 (riscv_microarchitecture): New.
11954 (sifive_7_tune_info): New.
11955 (riscv_cpu_info_table): Add microarchitecture value for rocket and
11956 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
11957 entries.
11958 (riscv_store_data_bypass_p): New.
11959 (riscv_option_override): Set riscv_microarchitecture from
11960 cpu->microarchitecture.
11961 * config/riscv/riscv.md: Include sifive-7.md.
11962 (type): Add auipc.
11963 (tune): New.
11964 (auipc<mode>): Change type to auipc.
11965 (restore_stack_nonlocal): New.
11966 * config/riscv/sifive-7.md: New.
11967 * doc/invoke.texi (RISC-V Options): Update mtune docs.
11968
11969 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
11970
11971 PR target/89827
11972 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11973 Also process XEXP (src, 0) of a shift insn.
11974
11975 2019-03-26 Richard Biener <rguenther@suse.de>
11976
11977 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
11978 (copy_debug_stmt): Likewise.
11979 (expand_call_inline): Likewise.
11980 (copy_bb): Avoid redundant lookup & set of gimple_block.
11981 * gimple-low.c (lower_gimple_return): Likewise.
11982 (lower_builtin_setjmp): Likewise.
11983
11984 2019-03-26 Jakub Jelinek <jakub@redhat.com>
11985
11986 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
11987 is constant 0, turn into static const data member initialized to false.
11988 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
11989 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
11990
11991 2019-03-26 Jason Merrill <jason@redhat.com>
11992 Jakub Jelinek <jakub@redhat.com>
11993
11994 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
11995 method.
11996 (mem_alloc_description::release_object_overhead): Fix comment typos.
11997 * hash-table.h (hash_table::~hash_table): Call
11998 release_instance_overhead only if m_entries is non-NULL, otherwise
11999 call unregister_descriptor.
12000
12001 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
12002
12003 PR tree-optimization/81740
12004 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12005 In case of outer loop vectorization, check for backward dependence
12006 at the inner loop if outer loop dependence is reversed.
12007
12008 2019-03-26 Alan Modra <amodra@gmail.com>
12009
12010 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
12011 rs6000_vector_mem init. Correct wI and wJ comment.
12012
12013 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
12014
12015 PR rtl-optimization/88347
12016 PR rtl-optimization/88423
12017 * sched-deps.c (sched_analyze_insn): Take into account that for
12018 tablejumps the barrier appears after a label and a jump_table_data.
12019
12020 2019-03-25 Martin Sebor <msebor@redhat.com>
12021
12022 PR c/89812
12023 * c-common.c (check_user_alignment): Rename local. Correct maximum
12024 alignment in diagnostic. Avoid assuming argument fits in SHWI,
12025 convert it to UHWI when it fits.
12026
12027 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
12028
12029 PR debug/86964
12030 * dwarf2out.c (premark_used_variables): New function.
12031 (prune_unused_types_walk): Do not mark not premarked external
12032 variables.
12033 (prune_unused_types): Call premark_used_variables.
12034
12035 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
12036
12037 PR rtl-optimization/89676
12038 * lra-constraints.c (curr_insn_transform): Do match reload for
12039 early clobbers when the match was successful only for different
12040 registers.
12041
12042 2019-03-25 Martin Sebor <msebor@redhat.com>
12043
12044 * doc/extend.texi (Common Type Attributes): Document vector_size.
12045 (Common Variable Attributes): Mention size constraint. Correct
12046 quoting and typos.
12047 (Vector Extensions): Use @dfn when defining bas type. Clarify
12048 base type and size constraints.
12049
12050 2019-03-25 Richard Biener <rguenther@suse.de>
12051
12052 PR tree-optimization/89789
12053 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
12054 changes from non-undefined back to undefined.
12055
12056 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
12057
12058 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
12059 heap string and a gc string, but since this variable is unknown to
12060 ggc the gc string might get reused and corrupted. Fixed by always
12061 using a heap string.
12062
12063 2019-03-25 Richard Biener <rguenther@suse.de>
12064
12065 PR tree-optimization/89779
12066 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
12067 to remove IV defs, delay actual removal.
12068 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
12069 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
12070 very end, properly also reset loop control IV information.
12071
12072 2019-03-25 Richard Biener <rguenther@suse.de>
12073
12074 PR tree-optimization/89802
12075 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
12076 move EH data to folded stmt.
12077
12078 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
12079
12080 * config/s390/s390-builtin-types.def: Remove few unused types and
12081 fix sort order for others.
12082
12083 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
12084
12085 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
12086 expected and found types with -mdebug during builtin matching.
12087
12088 2019-03-25 Richard Biener <rguenther@suse.de>
12089
12090 PR middle-end/89790
12091 * fold-const.c (operand_equal_p): Revert last change with
12092 updated comment.
12093
12094 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
12095
12096 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
12097 notes for the result of the __tls_get_addr calls.
12098 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
12099
12100 2019-03-24 Jeff Law <law@redhat.com>
12101
12102 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
12103
12104 PR rtl-optimization/87761
12105 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
12106 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
12107 as needed.
12108 (pass_cprop_hardreg::execute): Add df note problem and defer insn
12109 rescans. Reprocess blocks as needed, calling df_analyze before
12110 reprocessing. Always call df_analyze before fixing up debug bind
12111 insns.
12112
12113 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
12114
12115 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
12116 big endian.
12117
12118 2019-03-22 Andrew Pinski <apinski@marvell.com>
12119
12120 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
12121 attrribute for uxtw.
12122
12123 2019-03-26 Jeff Law <law@redhat.com>
12124
12125 PR rtl-optimization/87761
12126 * config/mips/mips-protos.h (mips_split_move): Add new argument.
12127 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
12128 (mips_split_move): Accept new INSN argument. Try to forward SRC
12129 into the next instruction.
12130 (mips_split_move_insn): Pass INSN through to mips_split_move.
12131
12132 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
12133
12134 PR rtl-optimization/89676
12135 * lra-constraints.c (curr_insn_transform): Do match reload for
12136 early clobbers even if the match was successful.
12137
12138 2019-03-22 Jakub Jelinek <jakub@redhat.com>
12139
12140 PR c++/87481
12141 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
12142
12143 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
12144
12145 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
12146
12147 2019-03-22 Jakub Jelinek <jakub@redhat.com>
12148
12149 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
12150 <avx512>_fmsub_<mode>_mask3<round_name>,
12151 <avx512>_fnmadd_<mode>_mask3<round_name>,
12152 <avx512>_fnmsub_<mode>_mask3<round_name>,
12153 avx512f_vmfmadd_<mode>_mask3<round_name>,
12154 avx512f_vmfmsub_<mode>_mask3<round_name>,
12155 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
12156 instead of register_operand and %v instead of v for match_operand 1.
12157 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
12158 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
12159 <round_nimm_predicate> instead of register_operand and %v instead of v
12160 for match_operand 1.
12161
12162 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
12163 <avx512>_fmadd_<mode>_mask3<round_name>,
12164 <avx512>_fmsub_<mode>_mask<round_name>,
12165 <avx512>_fmsub_<mode>_mask3<round_name>,
12166 <avx512>_fnmadd_<mode>_mask<round_name>,
12167 <avx512>_fnmadd_<mode>_mask3<round_name>,
12168 <avx512>_fnmsub_<mode>_mask<round_name>,
12169 <avx512>_fnmsub_<mode>_mask3<round_name>,
12170 <avx512>_fmaddsub_<mode>_mask<round_name>,
12171 <avx512>_fmaddsub_<mode>_mask3<round_name>,
12172 <avx512>_fmsubadd_<mode>_mask<round_name>,
12173 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
12174 <round_nimm_predicate> instead of nonimmediate_operand.
12175 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
12176 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
12177 Use register_operand instead of <round_nimm_predicate> for the
12178 operand that needs to match output.
12179 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
12180 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
12181 Likewise. Formatting fixes.
12182
12183 PR target/89784
12184 * config/i386/i386.c (enum ix86_builtins): Remove
12185 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
12186 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
12187 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
12188 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
12189 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
12190 __builtin_ia32_vfmsubss3_mask3): New builtins.
12191 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
12192 avx512f_vmfmadd_<mode>_mask3<round_name>,
12193 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
12194 *avx512f_vmfmsub_<mode>_mask<round_name>,
12195 avx512f_vmfmsub_<mode>_mask3<round_name>,
12196 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
12197 *avx512f_vmfnmadd_<mode>_mask<round_name>,
12198 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
12199 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
12200 *avx512f_vmfnmsub_<mode>_mask<round_name>,
12201 avx512f_vmfnmsub_<mode>_mask3<round_name>,
12202 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
12203 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
12204 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
12205 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
12206 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
12207 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
12208 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
12209 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
12210 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
12211 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
12212 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
12213 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
12214 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
12215 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
12216 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
12217 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
12218 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
12219 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
12220 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
12221 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
12222 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
12223 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
12224
12225 2019-03-21 Martin Sebor <msebor@redhat.com>
12226
12227 PR tree-optimization/89350
12228 * builtins.c (compute_objsize): Also ignore offsets whose upper
12229 bound is negative.
12230 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
12231 (builtin_memref::builtin_memref): Initialize new member.
12232 Allow EXPR to be null.
12233 (builtin_memref::extend_offset_range): Replace local with a member.
12234 Avoid assuming pointer offsets are unsigned.
12235 (builtin_memref::set_base_and_offset): Determine base object
12236 before computing offset range.
12237 (builtin_access::builtin_access): Handle memset.
12238 (builtin_access::generic_overlap): Replace local with a member.
12239 (builtin_access::strcat_overlap): Same.
12240 (builtin_access::overlap): Same.
12241 (maybe_diag_overlap): Same.
12242 (maybe_diag_access_bounds): Same.
12243 (wrestrict_dom_walker::check_call): Handle memset.
12244 (check_bounds_or_overlap): Same.
12245
12246 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
12247 Jakub Jelinek <jakub@redhat.com>
12248
12249 PR lto/89692
12250 * tree.c (fld_type_variant, fld_incomplete_type_of,
12251 fld_process_array_type): Call fld->pset.add and don't call
12252 add_tree_to_fld_list if it returns true.
12253 (free_lang_data_in_type): Similarly with self-recursive call. Purge
12254 non-marked types from TYPE_NEXT_VARIANT list.
12255 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
12256
12257 2019-03-21 Jakub Jelinek <jakub@redhat.com>
12258
12259 * hash-table.h (hash_table): Add Lazy template parameter defaulted
12260 to false, if true, don't alloc_entries during construction, but defer
12261 it to the first method that needs m_entries allocated.
12262 (hash_table::hash_table, hash_table::~hash_table,
12263 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
12264 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
12265 hash_table::clear_slot, hash_table::traverse_noresize,
12266 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
12267 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
12268 false.
12269 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
12270 NO_INSERT instead of find_with_hash.
12271 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
12272 hash_set::m_table): Add Lazy to template params of hash_table.
12273 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
12274 * attribs.c (test_attribute_exclusions): Likewise.
12275 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
12276 hash_set. Add tests for hash_set with Lazy = true.
12277
12278 2019-03-21 Richard Biener <rguenther@suse.de>
12279
12280 PR tree-optimization/89779
12281 * tree.c (tree_nop_conversion): Consolidate and fix defensive
12282 checks with respect to released SSA names now having error_mark_node
12283 type.
12284 * fold-const.c (operand_equal_p): Likewise.
12285
12286 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
12287
12288 PR target/89775
12289 * config/s390/s390.c (global_not_special_regno_p): Move to make it
12290 available to ...
12291 (s390_optimize_register_info): Use global_not_special_regno_p to
12292 check for global regs.
12293
12294 2019-03-20 Jakub Jelinek <jakub@redhat.com>
12295
12296 PR target/89752
12297 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
12298 update this_alternative nor this_alternative_set.
12299
12300 2019-03-19 Jim Wilson <jimw@sifive.com>
12301
12302 PR target/89411
12303 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
12304 align, size, offset. Use them to handle a BLKmode reference. Update
12305 comment.
12306 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
12307
12308 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12309
12310 PR rtl-optimization/89768
12311 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
12312 instead of GEN_INT.
12313 (unroll_loop_runtime_iterations): Likewise.
12314
12315 2019-03-19 Martin Sebor <msebor@redhat.com>
12316
12317 PR tree-optimization/89644
12318 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
12319 rather than endptr as an indicator of nul-termination.
12320
12321 PR tree-optimization/89644
12322 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
12323 arrays in determining sequence sizes in strncpy and stpncpy.
12324
12325 2019-03-19 Martin Liska <mliska@suse.cz>
12326
12327 PR middle-end/89737
12328 * predict.c (combine_predictions_for_bb): Empty likely_edges and
12329 unlikely_edges if there's an edge that belongs to both these sets.
12330
12331 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
12332
12333 PR target/89746
12334 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
12335 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
12336 go via a stack temporary.
12337
12338 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12339
12340 PR target/89378
12341 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
12342 instead of gen_rtx_SUBREG.
12343 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
12344
12345 2019-03-19 Richard Biener <rguenther@suse.de>
12346
12347 PR debug/88389
12348 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
12349
12350 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
12351
12352 PR lto/87809
12353 PR lto/89335
12354 * tree.c (free_lang_data_in_decl): Do not free context of C++
12355 destrutors.
12356
12357 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12358
12359 PR target/89506
12360 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
12361 subs for the first alternative except when operands[3] is 1.
12362
12363 PR target/89752
12364 * gimplify.c (gimplify_asm_expr): For output argument with
12365 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
12366 diagnose error.
12367
12368 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
12369
12370 PR rtl-optimization/89753
12371 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12372 explicit unrolling factor even more robust.
12373
12374 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12375
12376 PR target/89726
12377 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
12378 compensation use x2 += 1 instead of x2 -= -1 and when honoring
12379 signed zeros, do another copysign after the compensation.
12380
12381 2019-03-18 Martin Sebor <msebor@redhat.com>
12382
12383 PR tree-optimization/89720
12384 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
12385 more conservatively, the same as anti-range.
12386
12387 2019-03-18 Richard Biener <rguenther@suse.de>
12388
12389 PR middle-end/88945
12390 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
12391 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
12392 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
12393 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
12394
12395 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
12396
12397 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
12398 Extend queue to 1024 entries.
12399 Add "consumed" field.
12400 (gomp_print_output): Remove print_index parameter.
12401 Add final parameter.
12402 Change limit to unsigned.
12403 Use consumed field to implement circular buffer.
12404 Detect interrupted print in final pass.
12405 Flush output at the end.
12406 (run): Update gomp_print_output usage.
12407 (main): Initialize kernargs->output_data.consumed.
12408
12409 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
12410
12411 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
12412 calculation of the minimum number of scalar iterations for
12413 fully-predicated loops.
12414
12415 2019-03-18 Martin Jambor <mjambor@suse.cz>
12416
12417 PR tree-optimization/89546
12418 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
12419 any propagation to its children took place.
12420
12421 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
12422
12423 PR target/89627
12424 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
12425 parameter, and make use of it.
12426 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
12427
12428 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12429
12430 * config/arc/arc.opt (mcode-density-frame): Get the inital value
12431 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
12432 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12433 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12434 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
12435 match what the ops is doing.
12436 (push_multi_fp_blink): Likewise.
12437 * config/arc/arc.c (arc_override_options): Enable enter/leave when
12438 compiling for size and elf target.
12439 (arc_save_callee_enter): Adjust note to match what enter/leave
12440 operation does.
12441
12442 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12443
12444 * config/arc/arc.md (tst_movb): Fix constraint.
12445
12446 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12447
12448 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12449
12450 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12451
12452 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
12453 * config/arc/arc.c (arc_conditional_register_usage): Remove all
12454 reg_alloc_order references.
12455 (size_alloc_order): Define.
12456 (arc_adjust_reg_alloc_order): New function.
12457 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
12458 order.
12459 (ADJUST_REG_ALLOC_ORDER): Define.
12460 (HONOR_REG_ALLOC_ORDER): Likewise.
12461
12462 2019-03-18 Richard Biener <rguenther@suse.de>
12463
12464 PR target/87561
12465 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
12466 loads and stores a bit more.
12467
12468 2019-03-18 Richard Biener <rguenther@suse.de>
12469
12470 PR target/87561
12471 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
12472 load pessimization to stores as well.
12473
12474 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
12475
12476 PR middle-end/86979
12477 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
12478 successor, use NULL as its av set.
12479
12480 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
12481
12482 PR rtl-optimization/89721
12483 * lra-constraints (invariant_p): Return false if side_effects_p holds.
12484
12485 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
12486
12487 PR target/87532
12488 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12489 When handling vec_extract, use modular arithmetic to allow
12490 constant selectors greater than vector length.
12491 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
12492 V1TImode vectors to have constant selector values greater than 0.
12493 Use modular arithmetic to compute vector index.
12494 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
12495 index for in-memory vectors. Correct code generation for
12496 in-register vectors.
12497 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
12498 compute index.
12499
12500 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
12501
12502 PR c++/88534
12503 PR c++/88537
12504 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12505 VAR_DECL args.
12506
12507 2019-03-15 Jakub Jelinek <jakub@redhat.com>
12508
12509 PR c++/89709
12510 * tree.c (inchash::add_expr): Strip any location wrappers.
12511 * fold-const.c (operand_equal_p): Move stripping of location wrapper
12512 after hash verification.
12513
12514 PR debug/89704
12515 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12516 SIGN_EXTEND and ZERO_EXTEND.
12517
12518 2019-03-14 Jason Merrill <jason@redhat.com>
12519 Jakub Jelinek <jakub@redhat.com>
12520
12521 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12522 than if is_empty (*slot).
12523 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12524 existing elt and for elt removal.
12525 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12526 of already removed elt.
12527
12528 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
12529
12530 PR target/89650
12531 * config/i386/i386.c (remove_partial_avx_dependency): Handle
12532 REG_EH_REGION note.
12533
12534 2019-03-14 Martin Liska <mliska@suse.cz>
12535
12536 PR other/89712
12537 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12538
12539 2019-03-14 Richard Biener <rguenther@suse.de>
12540
12541 PR target/89711
12542 * config/i386/i386.c (make_resolver_func): Properly set
12543 DECL_CONTEXT on the RESULT_DECL.
12544 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12545
12546 2019-03-14 Richard Biener <rguenther@suse.de>
12547
12548 * gimple-pretty-print.c: Include cfgloop.h.
12549 (dump_gimple_phi): Adjust.
12550 (dump_gimple_bb_header): Dump loop header for GIMPLE.
12551 (pp_cfg_jump): Adjust.
12552 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12553 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12554 (lower_phi_internal_fn): Remove.
12555 (verify_gimple_call): Remove IFN_PHI special-casing.
12556 (dump_function_to_file): Dump IL state.
12557 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12558 done to deal with PHI nodes being present in non-SSA state.
12559
12560 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12561
12562 PR ipa/89684
12563 * multiple_target.c (create_dispatcher_calls): Change
12564 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12565 In the node->iterate_referring loop, push *ref rather than ref, call
12566 ref->remove_reference () and always pass 0 to iterate_referring.
12567
12568 PR rtl-optimization/89679
12569 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12570 would contain a paradoxical SUBREG.
12571
12572 2019-03-14 Richard Biener <rguenther@suse.de>
12573
12574 PR tree-optimization/89710
12575 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12576 safe_dyn_cast.
12577
12578 2019-03-14 Martin Liska <mliska@suse.cz>
12579
12580 * coverage.c (coverage_begin_function): Stream also
12581 end_column.
12582 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
12583 documentation about function declaration location.
12584 * gcov-dump.c (tag_function): Print whole range
12585 of function declaration.
12586 * gcov.c (struct function_info): Add end_column field.
12587 (function_info::function_info): Initialize it.
12588 (output_json_intermediate_file): Output {start,end}_column
12589 fields.
12590 (read_graph_file): Read end_column.
12591
12592 2019-03-14 Richard Biener <rguenther@suse.de>
12593
12594 PR middle-end/89698
12595 * fold-const.c (operand_equal_p): For INDIRECT_REF check
12596 that the access types are similar.
12597
12598 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR tree-optimization/89703
12601 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12602 aren't compatible also with builtin_decl_explicit. Check pure
12603 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12604 and BUILT_IN_STPNCPY{,_CHK}.
12605
12606 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
12607
12608 PR target/89523
12609 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12610 addr32 prefix to VSIB address for X32.
12611 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12612 "%M2" to opcode.
12613 (*avx512pf_gatherpf<mode>df_mask): Likewise.
12614 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12615 (*avx512pf_scatterpf<mode>df_mask): Likewise.
12616 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12617 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12618 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12619 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12620 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12621 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12622 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12623 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12624 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12625 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12626 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12627 (*avx512f_scatterdi<mode>): Likewise.
12628
12629 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
12630
12631 PR target/85860
12632 * lra-constraints.c (inherit_in_ebb): Update
12633 potential_reload_hard_regs along with live_hard_regs.
12634
12635 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12636
12637 PR debug/89498
12638 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12639 DWARF_OFFSET_SIZE.
12640 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12641
12642 2019-03-13 Martin Sebor <msebor@redhat.com>
12643
12644 PR tree-optimization/89662
12645 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12646 has a size.
12647
12648 2019-03-13 Richard Biener <rguenther@suse.de>
12649
12650 PR middle-end/89677
12651 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12652 throw FP expressions at tree-affine.
12653
12654 2019-03-14 Richard Biener <rguenther@suse.de>
12655
12656 * tree-pretty-print.c (dump_generic_node): For -gimple properly
12657 dump negative integer constants using _Literal (type) -num.
12658
12659 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12660
12661 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12662 nonlocal_value member.
12663
12664 PR middle-end/88588
12665 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12666 (ipa_simd_modify_function_body): Handle PHIs.
12667
12668 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12669
12670 * config/s390/s390.c (s390_option_override_internal): Use more
12671 aggressive inlining parameters.
12672
12673 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12674
12675 * config/s390/3906.md: New file.
12676 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12677 (LONGRUNNING_THRESHOLD): Remove.
12678 (MAX_SCHED_MIX_SCORE): Decrease.
12679 (MAX_SCHED_MIX_DISTANCE): Decrease.
12680 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12681 (struct s390_sched_state): New struct to hold scheduling state.
12682 (S390_SCHED_STATE_NORMAL): Remove.
12683 (S390_SCHED_STATE_CRACKED): Remove.
12684 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12685 (s390_get_sched_attrmask): Use new attribute.
12686 (s390_get_unit_mask): Use new units.
12687 (s390_is_fpd): New function.
12688 (s390_is_fxd): New function.
12689 (s390_is_longrunning): New function.
12690 (s390_sched_score): Use new functions.
12691 (s390_sched_reorder): Likewise.
12692 (s390_sched_variable_issue): Rework and use new functions.
12693 (s390_sched_init): Use new functions.
12694 * config/s390/s390.h (s390_tune_attr): Add z14.
12695 * config/s390/s390.md: Add z14.
12696
12697 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12698
12699 * config/s390/2964.md: Update pipeline description.
12700 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12701 (LONGRUNNING_THRESHOLD): Remove.
12702 (LATENCY_FACTOR): Remove.
12703 (s390_get_unit_mask): Add unit.
12704 (s390_sched_score): Use fxd/fpd.
12705 (s390_sched_variable_issue): Use fxd/fpd.
12706
12707 2019-03-12 Martin Liska <mliska@suse.cz>
12708
12709 * config/i386/i386.c: Reword an error message.
12710
12711 2019-03-12 Martin Jambor <mjambor@suse.cz>
12712
12713 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
12714 terminate with newline.
12715
12716 2019-03-12 Jakub Jelinek <jakub@redhat.com>
12717
12718 PR target/52726
12719 * config/s390/s390.md (tabort): Use %wd instead of
12720 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
12721 letters and periods.
12722 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
12723 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
12724 's with %< and %>.
12725
12726 PR middle-end/89663
12727 * builtins.c (expand_builtin_int_roundingfn,
12728 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
12729 gcc_unreachable if validate_arglist fails.
12730
12731 2019-03-12 Richard Biener <rguenther@suse.de>
12732
12733 PR tree-optimization/89664
12734 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
12735 free the occurance tree after the early out.
12736
12737 2019-03-11 Jakub Jelinek <jakub@redhat.com>
12738
12739 PR middle-end/89655
12740 PR bootstrap/89656
12741 * vr-values.c (vr_values::update_value_range): If
12742 old_vr->varying_p (), don't update it, make new_vr also VARYING
12743 and return false.
12744
12745 2019-03-11 Martin Liska <mliska@suse.cz>
12746
12747 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12748 Fix double string quoting.
12749
12750 2019-03-11 Martin Liska <mliska@suse.cz>
12751
12752 * collect-utils.c (collect_wait): Wrap apostrophes
12753 in gcc internal format with %'.
12754 * collect2.c (main): Likewise.
12755 (scan_prog_file): Likewise.
12756 (scan_libraries): Likewise.
12757 * config/i386/i386.c (ix86_expand_call): Likewise.
12758 (ix86_handle_interrupt_attribute): Likewise.
12759 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12760 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12761 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
12762 * lto-wrapper.c (find_crtoffloadtable): Likewise.
12763 * symtab.c (symtab_node::verify_base): Likewise.
12764 * tree-cfg.c (verify_gimple_label): Likewise.
12765 * tree.c (verify_type_variant): Likewise.
12766
12767 2019-03-11 Martin Liska <mliska@suse.cz>
12768
12769 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
12770 in a string format message and fix GNU coding style.
12771 (expand_builtin_set_thread_pointer): Likewise.
12772 * common/config/aarch64/aarch64-common.c
12773 (aarch64_rewrite_selected_cpu): Likewise.
12774 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
12775 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
12776 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
12777 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12778 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
12779 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
12780 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
12781 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
12782 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
12783 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
12784 Likewise.
12785 * common/config/riscv/riscv-common.c
12786 (riscv_subset_list::parsing_subset_version): Likewise.
12787 (riscv_subset_list::parse_std_ext): Likewise.
12788 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12789 (riscv_subset_list::parse): Likewise.
12790 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
12791 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
12792 (aarch64_override_options_internal): Likewise.
12793 (aarch64_validate_mcpu): Likewise.
12794 (aarch64_validate_march): Likewise.
12795 (aarch64_validate_mtune): Likewise.
12796 (aarch64_override_options): Likewise.
12797 * config/alpha/alpha.c (alpha_option_override): Likewise.
12798 * config/arc/arc.c (arc_init): Likewise.
12799 (parse_mrgf_banked_regs_option): Likewise.
12800 (arc_override_options): Likewise.
12801 (arc_expand_builtin_aligned): Likewise.
12802 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
12803 (arm_expand_builtin): Likewise.
12804 * config/arm/arm.c (arm_option_check_internal): Likewise.
12805 (arm_configure_build_target): Likewise.
12806 (arm_option_override): Likewise.
12807 (arm_options_perform_arch_sanity_checks): Likewise.
12808 (arm_handle_cmse_nonsecure_entry): Likewise.
12809 (arm_handle_cmse_nonsecure_call): Likewise.
12810 (arm_tls_referenced_p): Likewise.
12811 (thumb1_expand_prologue): Likewise.
12812 * config/avr/avr.c (avr_option_override): Likewise.
12813 * config/bfin/bfin.c (bfin_option_override): Likewise.
12814 * config/c6x/c6x.c (c6x_option_override): Likewise.
12815 * config/cr16/cr16.c (cr16_override_options): Likewise.
12816 * config/cris/cris.c (cris_option_override): Likewise.
12817 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
12818 * config/darwin-c.c (macosx_version_as_macro): Likewise.
12819 * config/darwin.c (darwin_override_options): Likewise.
12820 * config/frv/frv.c (frv_expand_builtin): Likewise.
12821 * config/h8300/h8300.c (h8300_option_override): Likewise.
12822 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
12823 (ix86_option_override_internal): Likewise.
12824 (warn_once_call_ms2sysv_xlogues): Likewise.
12825 (ix86_expand_prologue): Likewise.
12826 (split_stack_prologue_scratch_regno): Likewise.
12827 (ix86_warn_parameter_passing_abi): Likewise.
12828 * config/ia64/ia64.c (fix_range): Likewise.
12829 * config/m68k/m68k.c (m68k_option_override): Likewise.
12830 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
12831 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
12832 (mips_set_compression_mode): Likewise.
12833 * config/mmix/mmix.c (mmix_option_override): Likewise.
12834 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
12835 * config/msp430/msp430.c (msp430_option_override): Likewise.
12836 * config/nds32/nds32.c (nds32_option_override): Likewise.
12837 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
12838 (nios2_option_override): Likewise.
12839 (nios2_expand_custom_builtin): Likewise.
12840 * config/nvptx/mkoffload.c (main): Likewise.
12841 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
12842 * config/pa/pa.c (fix_range): Likewise.
12843 (pa_option_override): Likewise.
12844 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
12845 (riscv_option_override): Likewise.
12846 * config/rl78/rl78.c (rl78_option_override): Likewise.
12847 * config/rs6000/aix61.h: Likewise.
12848 * config/rs6000/aix71.h: Likewise.
12849 * config/rs6000/aix72.h: Likewise.
12850 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
12851 * config/rs6000/freebsd64.h: Likewise.
12852 * config/rs6000/linux64.h: Likewise.
12853 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
12854 (rs6000_expand_zeroop_builtin): Likewise.
12855 (rs6000_expand_mtfsb_builtin): Likewise.
12856 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
12857 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
12858 (rs6000_invalid_builtin): Likewise.
12859 (rs6000_expand_split_stack_prologue): Likewise.
12860 * config/rs6000/rtems.h: Likewise.
12861 * config/rx/rx.c (valid_psw_flag): Likewise.
12862 (rx_expand_builtin): Likewise.
12863 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12864 * config/s390/s390.c (s390_expand_builtin): Likewise.
12865 (s390_function_profiler): Likewise.
12866 (s390_option_override_internal): Likewise.
12867 (s390_option_override): Likewise.
12868 * config/sh/sh.c (sh_option_override): Likewise.
12869 (sh_builtin_saveregs): Likewise.
12870 (sh_fix_range): Likewise.
12871 * config/sh/vxworks.h: Likewise.
12872 * config/sparc/sparc.c (sparc_option_override): Likewise.
12873 * config/spu/spu.c (spu_option_override): Likewise.
12874 (fix_range): Likewise.
12875 * config/visium/visium.c (visium_option_override): Likewise.
12876 (visium_handle_interrupt_attr): Likewise.
12877 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
12878 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
12879 (dbg_cnt_process_opt): Likewise.
12880 * dwarf2out.c (output_dwarf_version): Likewise.
12881 * except.c (expand_eh_return): Likewise.
12882 * gcc.c (defined): Likewise.
12883 (driver_handle_option): Likewise.
12884 (process_command): Likewise.
12885 (compare_files): Likewise.
12886 (driver::prepare_infiles): Likewise.
12887 (driver::do_spec_on_infiles): Likewise.
12888 (driver::maybe_run_linker): Likewise.
12889 * omp-offload.c (oacc_parse_default_dims): Likewise.
12890 * opts-global.c (handle_common_deferred_options): Likewise.
12891 * opts.c (parse_sanitizer_options): Likewise.
12892 (common_handle_option): Likewise.
12893 (enable_warning_as_error): Likewise.
12894 * passes.c (enable_disable_pass): Likewise.
12895 * plugin.c (parse_plugin_arg_opt): Likewise.
12896 (default_plugin_dir_name): Likewise.
12897 * targhooks.c (default_expand_builtin_saveregs): Likewise.
12898 (default_pch_valid_p): Likewise.
12899 * toplev.c (init_asm_output): Likewise.
12900 (process_options): Likewise.
12901 (toplev::run_self_tests): Likewise.
12902 * tree-cfg.c (verify_gimple_call): Likewise.
12903 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
12904 (tree_inlinable_function_p): Likewise.
12905 * var-tracking.c (vt_find_locations): Likewise.
12906
12907 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
12908
12909 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
12910 only on the else branch.
12911
12912 2019-03-11 Martin Liska <mliska@suse.cz>
12913
12914 * gcov.c (output_intermediate_json_line): Print function
12915 name of each line.
12916 (output_json_intermediate_file): Add new argument.
12917 * doc/gcov.texi: Document the change.
12918
12919 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
12920
12921 PR rtl-optimization/89588
12922 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12923 explicit unrolling factor more robust.
12924
12925 2019-03-11 Richard Biener <rguenther@suse.de>
12926
12927 PR tree-optimization/89649
12928 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12929 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
12930 on the prolog and epilog loops.
12931 (vect_loop_versioning): Return copy of loop.
12932 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
12933 on the non-vectorized version of the loop.
12934
12935 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
12936
12937 PR target/68924
12938 * config/i386/sse.md (*vec_extractv2di_0_sse):
12939 Add (=r,x) alternative and corresponding splitter.
12940
12941 2019-03-10 Martin Jambor <mjambor@suse.cz>
12942
12943 PR tree-optimization/85762
12944 PR tree-optimization/87008
12945 PR tree-optimization/85459
12946 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
12947 it points to if there is a type changing MEM_REF. Adjust all callers.
12948 (build_accesses_from_assign): Disable total scalarization if
12949 contains_vce_or_bfcref_p returns true through the new parameter, for
12950 both rhs and lhs.
12951
12952 2019-03-09 Jakub Jelinek <jakub@redhat.com>
12953
12954 PR c/88568
12955 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
12956 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
12957
12958 PR target/79645
12959 * common.opt (fdiagnostics-show-labels,
12960 fdiagnostics-show-line-numbers, fdiagnostics-format=,
12961 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
12962 gas-locview-support, ginline-points, ginternal-reset-location-views):
12963 Terminate description text with a dot.
12964 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
12965 * config/mcore/mcore.opt (m210, m340): Likewise.
12966 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
12967 mnops=): Start description text with a capital letter.
12968 * config/arc/arc.opt (msize-level=): Likewise.
12969 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
12970 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
12971 mnewlib): Likewise.
12972 * config/ft32/ft32.opt (msim): Likewise.
12973 (mft32b, mcompress): Likewise. Terminate description text with a dot.
12974 (mnodiv, mnopm): Terminate description text with a dot.
12975 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
12976 a colon.
12977 * config/i386/i386.opt (prefer_vector_width, instrument_return):
12978 Likewise.
12979 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
12980 text.
12981
12982 PR rtl-optimization/89634
12983 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
12984 are modified in BB_END (e->src) instruction.
12985
12986 2019-03-08 David Malcolm <dmalcolm@redhat.com>
12987
12988 PR target/79926
12989 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
12990 messages more amenable to translation, and improve wording.
12991
12992 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
12993
12994 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
12995 ud- and du-chains between phases.
12996
12997 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
12998
12999 PR debug/89631
13000 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
13001 instead of POLY_INT_CST.
13002
13003 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
13004
13005 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
13006 requirement.
13007
13008 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
13009
13010 PR target/68924
13011 PR target/78782
13012 PR target/87558
13013 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
13014 (_mm_storeu_si64): Ditto.
13015
13016 2019-03-08 Martin Liska <mliska@suse.cz>
13017
13018 PR target/86952
13019 * config/i386/i386.c (ix86_option_override_internal): Disable
13020 jump tables when retpolines are used.
13021
13022 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
13023
13024 PR go/63560
13025 * ipa-split.c (execute_split_functions): Do not split
13026 'noinline' or 'section' function.
13027
13028 2019-03-08 Jakub Jelinek <jakub@redhat.com>
13029
13030 PR target/79846
13031 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
13032 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
13033 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
13034
13035 PR ipa/80000
13036 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
13037 from diagnostics. Formatting fixes.
13038
13039 PR target/85665
13040 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
13041 warn_odr diagnostics.
13042
13043 PR other/80058
13044 * lra-constraints.c (process_alt_operands): Avoid one space before
13045 " at the end of line and another after " on another line in a string
13046 literal.
13047 * attribs.c (handle_dll_attribute): Likewise.
13048 * config/avr/avr-devices.c (avr_texinfo): Likewise.
13049
13050 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
13051 warning_at or inform messages in G_() if there is no ?:.
13052
13053 PR tree-optimization/89550
13054 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
13055 returned true. Formatting fixes.
13056 (expand_builtin_strnlen): Formatting fixes.
13057 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
13058 if warning_at returned true.
13059 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
13060
13061 2019-03-08 Richard Biener <rguenther@suse.de>
13062
13063 PR middle-end/89578
13064 * cfgloop.h (struct loop): Add owned_clique field.
13065 * cfgloopmanip.c (copy_loop_info): Copy it.
13066 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
13067 cliques.
13068 * tree-inline.c (copy_loops): Remap owned_clique.
13069 * lto-streamer-in.c (input_cfg): Stream owned_clique.
13070 * lto-streamer-out.c (output_cfg): Likewise.
13071
13072 2019-03-08 Jakub Jelinek <jakub@redhat.com>
13073
13074 PR target/80190
13075 * config/darwin.c: Include intl.h.
13076 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
13077 composing the message out of two separate parts.
13078
13079 2019-03-07 Jakub Jelinek <jakub@redhat.com>
13080
13081 PR target/80003
13082 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
13083 doesn't start with a capital letter and doesn't end with a dot.
13084 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
13085 with a capital letter.
13086 (ix86_mangle_function_version_assembler_name): Likewise.
13087 (ix86_generate_version_dispatcher_body): Likewise.
13088 (fold_builtin_cpu): Likewise.
13089 (get_builtin_code_for_version): Likewise. Remove extraneous space.
13090 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
13091 translators, wrap full type name in %qs.
13092
13093 PR translation/79999
13094 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
13095 depend clause with source (or sink) modifier.
13096 * omp-expand.c (expand_omp_ordered_sink): Likewise.
13097
13098 PR target/89602
13099 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
13100 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
13101 (avx512f_load<mode>_mask): New define_expand.
13102 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
13103 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
13104 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
13105 __builtin_ia32_movess_mask): New builtins.
13106 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
13107 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
13108 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
13109 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
13110
13111 2019-03-07 Martin Jambor <mjambor@suse.cz>
13112
13113 PR lto/87525
13114 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
13115 for extern inline functions.
13116
13117 2019-03-07 Martin Jambor <mjambor@suse.cz>
13118
13119 PR ipa/88235
13120 * cgraph.h (cgraph_node): New inline method former_thunk_p.
13121 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
13122 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
13123 have multiple callees. At the end check if declarations match as
13124 opposed to cgraph_nodes.
13125
13126 2019-03-07 Martin Liska <mliska@suse.cz>
13127
13128 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
13129 which is equivalent to searching for this in clones chain.
13130 * symtab.c (symtab_node::verify_base): Similarly compare ASM
13131 names with a neighbour and special case first node in a chain.
13132
13133 2019-01-25 Jason Merrill <jason@redhat.com>
13134
13135 PR c++/80916 - spurious "static but not defined" warning.
13136 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
13137 for an internal symbol with DECL_EXTERNAL.
13138
13139 2019-04-07 Richard Biener <rguenther@suse.de>
13140
13141 PR middle-end/89618
13142 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
13143 * tree-inline.c (copy_loops): Simplify.
13144
13145 2019-03-07 Martin Liska <mliska@suse.cz>
13146
13147 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
13148
13149 2019-03-07 Richard Biener <rguenther@suse.de>
13150
13151 PR tree-optimization/89595
13152 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
13153 stmt iterator as reference, take boolean output parameter to
13154 indicate whether the stmt was removed and thus the iterator
13155 already advanced.
13156 (dom_opt_dom_walker::before_dom_children): Re-iterate over
13157 stmts created by folding.
13158
13159 2019-03-07 Jakub Jelinek <jakub@redhat.com>
13160
13161 PR c++/89585
13162 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
13163 at toplevel.
13164
13165 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
13166
13167 PR rtl-optimization/88845
13168 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
13169 LRA.
13170 * lra.c (remove_scratches_1): New function.
13171 (remove_scratches): Use it.
13172 (lra_emit_move): Likewise.
13173
13174 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
13175
13176 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
13177 unaligned_access variable.
13178 * config/arc/arc.c (arc_override_options): Set unaligned access
13179 default on for HS CPUs.
13180 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
13181
13182 2019-03-06 Martin Liska <mliska@suse.cz>
13183
13184 PR gcov-profile/89577
13185 * doc/gcov.texi: Prefer to use --coverage.
13186 * doc/sourcebuild.texi: Likewise.
13187
13188 2019-03-02 Jason Merrill <jason@redhat.com>
13189
13190 PR c++/86485 - -Wmaybe-unused with empty class ?:
13191 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
13192
13193 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13194
13195 PR target/89587
13196 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
13197 if_multiarch.
13198
13199 PR middle-end/89590
13200 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
13201 exactly one argument.
13202
13203 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13204 Richard Sandiford <richard.sandiford@arm.com>
13205
13206 PR tree-optimization/89570
13207 * match.pd (vec_cond into cond_op simplification): Don't use
13208 get_conditional_internal_fn, use as_internal_fn (cond_op).
13209
13210 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
13211
13212 PR target/89222
13213 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
13214 to decide when to split off a non-zero offset from a symbol.
13215 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
13216 in function symbols.
13217
13218 2019-03-05 Richard Biener <rguenther@suse.de>
13219
13220 PR tree-optimization/89594
13221 * tree-if-conv.c (pass_if_conversion::execute): Handle
13222 case where .LOOP_VECTORIZED_FUNCTION was removed.
13223
13224 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13225
13226 PR bootstrap/89560
13227 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
13228 instead alloca it only when needed with the needed size.
13229
13230 PR tree-optimization/89570
13231 * match.pd (vec_cond into cond_op simplification): Guard with
13232 vectorized_internal_fn_supported_p test and #if GIMPLE.
13233
13234 PR tree-optimization/89566
13235 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
13236 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
13237 Punt if get_user_idx_format succeeds, but idx_format argument is
13238 not provided or doesn't have pointer type, or if idx_args is above
13239 number of provided arguments.
13240
13241 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
13242
13243 PR tree-optimization/89437
13244 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
13245
13246 2019-03-04 Richard Biener <rguenther@suse.de>
13247
13248 PR middle-end/89572
13249 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
13250 safe_dyn_cast.
13251
13252 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
13253
13254 PR tree-optimization/89487
13255 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
13256 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
13257 (distribute_loop): Don't do runtime alias check if there is non-
13258 addressable data reference.
13259 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
13260 is a register variable.
13261
13262 2019-03-02 Jakub Jelinek <jakub@redhat.com>
13263
13264 PR target/89506
13265 * config/arm/arm.md (cmpsi2_addneg): Use
13266 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
13267 If operands[2] is 0 or INT_MIN, force use of subs.
13268 (*compare_scc splitter): Use gen_int_mode.
13269 (*negscc): Likewise.
13270 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
13271
13272 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
13273 Monk Chiang <sh.chiang04@gmail.com>
13274
13275 * common/config/riscv/riscv-common.c: Include sstream.
13276 (riscv_subset_list::to_string): New.
13277 (riscv_arch_str): Likewise.
13278 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
13279 * config.in: Regen.
13280 * config/riscv/riscv-protos.h (riscv_arch_str): New.
13281 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
13282 (riscv_emit_attribute): New.
13283 (riscv_file_start): Emit attribute if needed.
13284 (riscv_option_override): Init riscv_emit_attribute_p.
13285 * config/riscv/riscv.opt (mriscv-attribute): New option.
13286 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
13287 * configure: Regen.
13288 * doc/install.texi: Document --with-riscv-attribute.
13289 * doc/invoke.texi: Document -mriscv-attribute.
13290
13291 * common/config/riscv/riscv-common.c:
13292 Include config/riscv/riscv-protos.h.
13293 (INCLUDE_STRING): Defined.
13294 (RISCV_DONT_CARE_VERSION): Defined.
13295 (riscv_subset_t): Declare.
13296 (riscv_subset_t::riscv_subset_t): New.
13297 (riscv_subset_list): Declare.
13298 (riscv_subset_list::riscv_subset_list): New.
13299 (riscv_subset_list::~riscv_subset_list): Likewise.
13300 (riscv_subset_list::parsing_subset_version): Likewise.
13301 (riscv_subset_list::parse_std_ext): Likewise.
13302 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13303 (riscv_subset_list::add): Likewise.
13304 (riscv_subset_list::lookup): Likewise.
13305 (riscv_subset_list::xlen): Likewise.
13306 (riscv_subset_list::parse): Likewise.
13307 (riscv_supported_std_ext): Likewise.
13308 (current_subset_list): Likewise.
13309 (riscv_parse_arch_string): Using riscv_subset_list::parse to
13310 parse.
13311
13312 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
13313
13314 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13315 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
13316 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
13317
13318 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
13319
13320 PR rtl-optimization/85899
13321 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
13322 fallthru edges leading to the exit block.
13323
13324 2019-03-01 Tamar Christina <tamar.christina@arm.com>
13325
13326 PR target/89517
13327 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
13328 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
13329
13330 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
13331
13332 PR tree-optimization/89535
13333 * tree-vect-stmts.c (vectorizable_call): Record the vector types
13334 for each operand. Calculate the fallback choice for mask operands
13335 and pass it to vect_get_vec_def_for_operand.
13336
13337 2019-03-01 Richard Biener <rguenther@suse.de>
13338
13339 PR middle-end/89541
13340 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
13341 get virtual operands.
13342 (get_expr_operands): Handle CONST_DECL like other decls.
13343
13344 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13345
13346 PR middle-end/89503
13347 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
13348 on DECL_P and EXPR_P.
13349
13350 2019-03-01 Richard Biener <rguenther@suse.de>
13351
13352 PR middle-end/89497
13353 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
13354 argument, defaulted to zero.
13355 * passes.c (execute_function_todo): Pass down SSA update flags
13356 to cleanup_tree_cfg.
13357 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
13358 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
13359 form if requested.
13360 (cleanup_tree_cfg): Get and pass down SSA update flags.
13361
13362 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13363
13364 PR bootstrap/89539
13365 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
13366 early_lto_debug argument.
13367
13368 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
13369
13370 PR tree-optimization/89536
13371 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
13372 only whether bit #0 of the value is 0 instead of the entire value.
13373
13374 2019-02-28 Marek Polacek <polacek@redhat.com>
13375
13376 PR c++/87068 - missing diagnostic with fallthrough statement.
13377 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
13378 at the end of a seq, save its location to walk_stmt_info.
13379 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
13380 a switch.
13381
13382 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
13383
13384 PR lto/88585
13385 * tree.c (find_atomic_core_type): Move ahead in file.
13386 (check_base_type): Correctly compare alignments of atomic types.
13387
13388 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
13389
13390 PR target/89455
13391 * config/i386/i386.c (get_builtin_code_for_version): Identify
13392 Westmere from PCLMUL, instead of AES.
13393
13394 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13395
13396 PR target/89434
13397 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
13398 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
13399 -UINTVAL (...).
13400
13401 2019-02-28 Tamar Christina <tamar.christina@arm.com>
13402
13403 PR target/88530
13404 * config/aarch64/aarch64-option-extensions.def: Document it.
13405 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
13406 if empty hwcaps.
13407
13408 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13409
13410 PR c/89520
13411 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
13412 builtins if they don't have a single scalar floating point argument.
13413 Formatting fixes.
13414
13415 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13416
13417 PR rtl-optimization/89490
13418 * varasm.c (get_block_for_section): Bail out for mergeable sections.
13419 (default_use_anchors_for_symbol_p, output_object_block): Assert the
13420 block section is not mergeable.
13421
13422 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13423
13424 PR target/70341
13425 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
13426 old define_insn to ...
13427 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
13428 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
13429 Rename old define_insn to ...
13430 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
13431 (thumb2_casesi_internal_pic): New define_expand. Rename old
13432 define_insn to ...
13433 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
13434 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
13435 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
13436
13437 2019-02-27 Richard Biener <rguenther@suse.de>
13438
13439 PR debug/88878
13440 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
13441
13442 2019-02-27 Richard Biener <rguenther@suse.de>
13443
13444 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
13445 building.
13446
13447 2019-02-27 Richard Biener <rguenther@suse.de>
13448
13449 PR debug/88878
13450 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
13451 parameter, prefix section name with .gnu.debuglto_ if true.
13452 (dwarf2out_finish): Pass false to output_comdat_type_unit.
13453 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
13454
13455 2019-02-27 Richard Biener <rguenther@suse.de>
13456
13457 PR debug/89514
13458 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
13459 rather than on use_debug_types, doing what output_die does.
13460 (value_format): Likewise.
13461
13462 2019-02-27 Martin Jambor <mjambor@suse.cz>
13463 Martin Sebor <msebor@redhat.com>
13464
13465 * doc/invoke.texi (Warning Options): Reword description of
13466 -Wno-absolute-value.
13467
13468 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13469
13470 PR tree-optimization/89280
13471 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
13472 builtin_setjmp_setup_bb): New functions.
13473 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
13474 When visiting __builtin_setjmp_setup block, queue in special
13475 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
13476 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
13477 from visited after the loop if they don't have any visited successor
13478 blocks.
13479
13480 2018-02-26 Steve Ellcey <sellcey@marvell.com>
13481
13482 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
13483 New function.
13484 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
13485
13486 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13487
13488 PR c++/89507
13489 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
13490 with types other than sizetype/ssizetype.
13491
13492 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13493
13494 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
13495 (enum sparc_processor_type): ...this.
13496 (enum sparc_code_model_type): New enumeration type.
13497 (enum sparc_memory_model_type): Tweak comments.
13498 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
13499 (mtune): Likewise.
13500 (mcmodel): Use sparc_code_model enumeration and variable.
13501 (sparc_code_model): New enumeration.
13502 (mdebug): Add Undocumented marker.
13503 * config/sparc/sparc.h (enum cmodel): Delete.
13504 (sparc_cmodel): Likewise.
13505 (TARGET_CM_MEDLOW): Adjust to above renaming.
13506 (TARGET_CM_MEDMID): Likewise.
13507 (TARGET_CM_MEDANY): Likewise.
13508 (TARGET_CM_EMBMEDANY): Likewise.
13509 * config/sparc/sparc.c (sparc_cmodel): Delete.
13510 (sparc_option_override): Remove string/value mapping support for the
13511 code model. Move code and memory model support to after the handling
13512 of target flags. Do private machine setup last.
13513 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13514 (sparc_legitimize_reload_address): Likewise.
13515 (sparc_output_mi_thunk): Likewise.
13516 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13517
13518 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13519
13520 PR tree-optimization/89500
13521 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13522 (handle_builtin_strlen): Remove noncst_bound variable. Always
13523 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
13524 cst if the first cst bytes starting at x are known to be non-zero,
13525 even if the string is not zero terminated. Don't try to modify
13526 *si for strnlen. Update strlen_to_stridx only for strlen or if
13527 we can prove strnlen returns the same value as strlen would.
13528
13529 2019-02-26 Martin Liska <mliska@suse.cz>
13530
13531 * alloc-pool.h (struct pool_usage): Remove extra
13532 print_dash_line.
13533 * bitmap.h (struct bitmap_usage): Likewise.
13534 * ggc-common.c (struct ggc_usage): Likewise.
13535 * mem-stats.h (struct mem_usage): Likewise.
13536 (mem_alloc_description::dump): Print dash lines
13537 here and repeat header at the end of a table report.
13538 It's then more readable.
13539 * tree-phinodes.c (phinodes_print_statistics): Make
13540 horizontal alignment.
13541 * tree-ssanames.c (ssanames_print_statistics): Likewise.
13542 * vec.c (struct vec_usage): Remove extra print_dash_line.
13543 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13544
13545 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
13546
13547 * doc/extend.texi (__builtin_object_size):
13548 Use @pxref instead of @xref inside parenthesis.
13549 (__builtin_has_attribute): Add missing comma after @xref.
13550 (__builtin_object_size): Ditto.
13551 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13552 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13553 in the list.
13554
13555 2019-02-26 Jeff Law <law@redhat.com>
13556
13557 PR rtl-optimization/87761
13558 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13559 detect obviously dead insns and delete them.
13560
13561 2019-02-26 Richard Biener <rguenther@suse.de>
13562
13563 PR tree-optimization/89505
13564 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13565 to handle restrict pointed-to vars with multiple subvars
13566 correctly.
13567
13568 2019-02-26 Richard Biener <rguenther@suse.de>
13569
13570 PR tree-optimization/89489
13571 * tree-parloops.c (create_loop_fn): Copy over last_clique.
13572
13573 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13574
13575 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13576 and move around comment.
13577 <BIT_AND_EXPR>: Likewise.
13578 <BIT_NOT_EXPR>: Add specific handling for boolean types.
13579
13580 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13581
13582 PR target/89474
13583 * config/i386/i386.c (remove_partial_avx_dependency): Call
13584 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13585 after changing possibly many instructions to use that pseudo. Fix up
13586 insertion of v4sf_const0 setter at the start of bb.
13587
13588 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13589
13590 PR c/80409
13591 * doc/extend.texi (Variadic Pointer Args): New section.
13592
13593 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13594 Martin Sebor <msebor@gmail.com>
13595
13596 * common.opt (Wattribute-alias): Likewise.
13597 * doc/invoke.texi (Option Summary): List general form of
13598 -Wattribute-alias=. List positive form of -Wmissing-attributes.
13599 (-Wmissing-attributes): Invert entry, rewrite and correct default.
13600 Add cross-references.
13601 (-Wattribute-alias): Rewrite and correct default. Mention
13602 considered attributes (same as for -Wmissing-attributes).
13603
13604 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
13605
13606 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13607 (_mm_cvtpd_ps): Likewise.
13608 (_mm_cvttpd_epi32): Likewise.
13609
13610 PR target/89338
13611 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
13612 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13613
13614 PR target/89339
13615 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13616
13617 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13618
13619 PR target/88530
13620 * common/config/aarch64/aarch64-common.c
13621 (struct aarch64_option_extension): Add is_synthetic.
13622 (all_extensions): Use it.
13623 (TARGET_OPTION_INIT_STRUCT): Define hook.
13624 (struct gcc_targetm_common): Moved to end.
13625 (all_extensions_by_on): New.
13626 (opt_ext_cmp, typedef opt_ext): New.
13627 (aarch64_option_init_struct): New.
13628 (aarch64_contains_opt): New.
13629 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13630 * config/aarch64/aarch64-option-extensions.def
13631 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13632 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13633 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13634 Set is_synthetic to false.
13635 (crypto): Set is_synthetic to true.
13636 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13637 SYNTHETIC.
13638
13639 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13640
13641 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13642 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13643 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13644 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13645 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13646 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13647 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13648 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13649 Rename ...
13650 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13651 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13652 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13653 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13654 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13655 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13656 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13657 vfmlsl_laneq_high_f16): ... To this.
13658 * config/arm/neon.md: Update comments.
13659
13660 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13661
13662 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13663 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13664 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13665 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13666 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13667 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13668 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13669 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13670 Rename ...
13671 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13672 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13673 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13674 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13675 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13676 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13677 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13678 vfmlslq_laneq_high_f16): ... To this.
13679
13680 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
13681
13682 PR rtl-optimization/86096
13683 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13684 comparing mw_order values.
13685
13686 2019-02-25 Jakub Jelinek <jakub@redhat.com>
13687
13688 PR target/89434
13689 * config/arm/arm.md (*subsi3_carryin_const): Use
13690 arm_neg_immediate_operand predicate instead of
13691 arm_not_immediate_operand, "L" constraint instead of "K" and
13692 print it using %n2 instead of %B2.
13693 (*subsi3_carryin_const0): New define_insn.
13694 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
13695 instead of arm_not_operand and "I" constraint instead of "K" and
13696 print it using %n3 instead of %B2. Instead of using match_dup 2 add
13697 another match_operand and in the condition check that it is negation
13698 of operands[2].
13699 (*subsi3_carryin_compare_const0): New define_ins.
13700 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
13701 *subsi3_carryin_const.
13702 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
13703 split into *subsi3_carryin_compare_const0 if the highpart is zero.
13704
13705 PR target/89438
13706 * config/arm.vfp.md (*negdf2_vfp): Use
13707 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
13708 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
13709
13710 2019-02-24 Jakub Jelinek <jakub@redhat.com>
13711
13712 PR rtl-optimization/89445
13713 * simplify-rtx.c (simplify_ternary_operation): Don't use
13714 simplify_merge_mask on operands that may trap.
13715 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
13716 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
13717 second operand is CONST_VECTOR, check if any element could be zero.
13718 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
13719 their operands can trap.
13720
13721 2019-02-23 Martin Sebor <msebor@redhat.com>
13722
13723 * gimple-ssa-sprintf.c (target_strtol): Rename...
13724 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
13725 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
13726 check for range error.
13727
13728 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
13729
13730 PR driver/69471
13731 * opts-common.c (prune_options): Also prune joined switches
13732 with Negative and RejectNegative.
13733 * config/i386/i386.opt (march=): Add Negative(march=).
13734 (mtune=): Add Negative(mtune=).
13735 * doc/options.texi: Document Negative used together with Joined
13736 and RejectNegative.
13737
13738 2019-02-22 Martin Sebor <msebor@redhat.com>
13739
13740 * doc/extend.texi (Other Builtins): Add
13741 __builtin_is_constant_evaluated.
13742
13743 2019-02-22 Richard Biener <rguenther@suse.de>
13744
13745 PR tree-optimization/87609
13746 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
13747
13748 2019-02-22 Jeff Law <law@redhat.com>
13749
13750 PR rtl-optimization/87761
13751 * config/mips/mips.md: Add new combiner pattern to recognize
13752 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
13753
13754 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
13755
13756 PR target/89324
13757 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
13758 destination register in peepholes generating patterns for ADDS/SUBS.
13759 (add<mode>3_compare0,
13760 *addsi3_compare0_uxtw, add<mode>3_compareC,
13761 add<mode>3_compareV_imm, add<mode>3_compareV,
13762 *adds_<optab><ALLX:mode>_<GPI:mode>,
13763 *subs_<optab><ALLX:mode>_<GPI:mode>,
13764 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
13765 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
13766 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
13767 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
13768 sub<mode>3_compare1): Allow stack pointer for source register.
13769 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
13770
13771 2019-02-22 Martin Sebor <msebor@redhat.com>
13772
13773 PR tree-optimization/88993
13774 PR tree-optimization/88853
13775 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
13776 New helper.
13777 (sprintf_dom_walker::call_info::is_string_func): New helper.
13778 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
13779 for formatted string functions.
13780 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
13781
13782 2019-02-22 Martin Sebor <msebor@redhat.com>
13783
13784 PR c/89425
13785 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
13786 unreachable subexpressions.
13787
13788 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
13789 Hongtao Liu <hongtao.liu@intel.com>
13790 Sunil K Pandey <sunil.k.pandey@intel.com>
13791
13792 PR target/87007
13793 * config/i386/i386-passes.def: Add
13794 pass_remove_partial_avx_dependency.
13795 * config/i386/i386-protos.h
13796 (make_pass_remove_partial_avx_dependency): New.
13797 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
13798 New function.
13799 (pass_data_remove_partial_avx_dependency): New.
13800 (pass_remove_partial_avx_dependency): Likewise.
13801 (make_pass_remove_partial_avx_dependency): Likewise.
13802 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
13803 (*extendsfdf2): Add avx_partial_xmm_update.
13804 (truncdfsf2): Likewise.
13805 (*float<SWI48:mode><MODEF:mode>2): Likewise.
13806 (SF/DF conversion splitters): Disabled for TARGET_AVX.
13807
13808 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
13809
13810 PR middle-end/85598
13811 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
13812 analysis for pass.
13813
13814 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
13815
13816 PR target/89444
13817 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
13818 (PTA_SKYLAKE): Add PTA_AES.
13819 (PTA_GOLDMONT): Likewise.
13820
13821 2019-02-22 Sudakshina Das <sudi.das@arm.com>
13822
13823 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
13824 instruction if enabled.
13825 (aarch64_override_options): Remove reference to return address key.
13826
13827 2019-02-22 Richard Biener <rguenther@suse.de>
13828
13829 PR tree-optimization/89440
13830 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
13831 not necessary assert.
13832
13833 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
13834
13835 PR fortran/72741
13836 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
13837 (oacc_replace_fn_attrib_attr): ... this new function.
13838 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
13839 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
13840
13841 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13842
13843 * config/arm/arm-cpus.in (ares): Rename to...
13844 (neoverse-n1): ... This. Add ares as alias.
13845 * config/arm/arm-tables.opt: Regenerate.
13846 * config/arm/arm-tune.md: Likewise.
13847 * doc/invoke.txt (ARM Options): Document neoverse-n1.
13848
13849 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13850
13851 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
13852 * config/aarch64/aarch64-tune.md: Regenerate.
13853 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
13854
13855 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13856
13857 * config/aarch64/aarch64.c (ares_tunings): Rename to...
13858 (neoversen1_tunings): ... This.
13859 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
13860 (neoverse-n1): New CPU.
13861 * config/aarch64/aarch64-tune.md: Regenerate.
13862 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
13863
13864 2019-02-22 Richard Biener <rguenther@suse.de>
13865
13866 PR middle-end/87609
13867 * cfghooks.h (dependence_hash): New typedef.
13868 (struct copy_bb_data): New type.
13869 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
13870 (duplicate_block): Likewise.
13871 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
13872 (copy_bbs): Create and pass down copy_bb_data.
13873 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
13874 (rtl_duplicate_bb): Likewise.
13875 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
13876 remap dependence info.
13877
13878 2019-02-22 Richard Biener <rguenther@suse.de>
13879
13880 PR tree-optimization/87609
13881 * tree-core.h (tree_base): Document special clique values.
13882 * tree-inline.c (remap_dependence_clique): Do not use the
13883 special clique value of one.
13884 (maybe_set_dependence_info): Use clique one.
13885 (clear_dependence_clique): New callback.
13886 (compute_dependence_clique): Clear clique one from all refs
13887 before assigning it (again).
13888
13889 2019-02-21 Martin Sebor <msebor@redhat.com>
13890
13891 * doc/extend.texi (__clear_cache): Correct signature.
13892
13893 2019-02-21 Ian Lance Taylor <iant@golang.org>
13894
13895 PR go/89170
13896 * varasm.c (decode_addr_const): Call lookup_constant_def rather
13897 than output_constant_def.
13898 (add_constant_to_table): New static function.
13899 (output_constant_def): Call add_constant_to_table.
13900 (tree_output_constant_def): Likewise.
13901
13902 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13903
13904 PR c++/89285
13905 * builtins.c (fold_builtin_arith_overflow): If first two args are
13906 INTEGER_CSTs, set intres and ovfres to constants rather than calls
13907 to ifn.
13908
13909 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
13910
13911 PR target/87412
13912 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
13913 error for -mindirect-branch/-mfunction-return with incompatible
13914 -fcf-protection.
13915
13916 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13917
13918 PR bootstrap/88714
13919 * constraints.md (q): Remove.
13920 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
13921 instead of q.
13922
13923 2019-02-21 Martin Jambor <mjambor@suse.cz>
13924
13925 PR hsa/89302
13926 * omp-general.c (omp_extract_for_data): Removed a duplicate call
13927 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
13928 (omp_adjust_for_condition): ...here. Added necessary parameters.
13929 * omp-general.h (omp_adjust_for_condition): Updated declaration.
13930 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
13931 proper values to new parameters of omp_adjust_for_condition.
13932
13933 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13934
13935 PR middle-end/89412
13936 * expr.c (expand_assignment): If result is a MEM, use change_address
13937 instead of simplify_gen_subreg.
13938
13939 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13940 David Malcolm <dmalcolm@redhat.com>
13941
13942 PR middle-end/89091
13943 * fold-const.c (decode_field_reference): Return NULL_TREE if
13944 lang_hooks.types.type_for_size returns NULL. Check it before
13945 overwriting *exp_. Use return NULL_TREE instead of return 0.
13946
13947 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13948
13949 PR middle-end/88074
13950 PR middle-end/89415
13951 * toplev.c (do_compile): Double the emin/emax exponents to workaround
13952 buggy mpc_norm.
13953
13954 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
13955
13956 PR target/89397
13957 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
13958 TARGET_SSE in addition to TARGET_SSE_MATH.
13959
13960 (ix86_excess_precision): Ditto.
13961 (ix86_float_exceptions_rounding_supported_p): Ditto.
13962 (use_rsqrt_p): Ditto.
13963 * config/i386/sse.md (rsqrt<mode>2): Ditto.
13964
13965 2019-02-20 David Malcolm <dmalcolm@redhat.com>
13966
13967 PR c/89410
13968 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
13969 linenum_arith_t when determining if two adjacent line spans are
13970 close enough to merge.
13971 (diagnostic_show_locus): Use linenum_arith_t when iterating over
13972 lines within each line_span.
13973
13974 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
13975
13976 PR target/86487
13977 * lra-constraints.c(uses_hard_regs_p): Fix handling of
13978 paradoxical SUBREGS.
13979
13980 2019-02-20 Li Jia He <helijia@linux.ibm.com>
13981
13982 PR target/88100
13983 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
13984 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
13985 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
13986 range checking it.
13987
13988 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
13989
13990 * config/gcn/gcn.c (print_operand): Fix typo.
13991
13992 2019-02-19 Richard Biener <rguenther@suse.de>
13993
13994 PR middle-end/88074
13995 * toplev.c (do_compile): Initialize mpfr's exponent range
13996 based on available float modes.
13997
13998 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
13999
14000 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
14001 as long as the epilogue isn't completed.
14002
14003 2019-02-18 Martin Sebor <msebor@redhat.com>
14004
14005 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
14006 __has_cpp_attribute, and __has_include.
14007
14008 2019-02-18 Martin Sebor <msebor@redhat.com>
14009
14010 * doc/invoke.texi (-Wreturn-type): Correct and expand.
14011
14012 2019-02-18 Martin Sebor <msebor@redhat.com>
14013
14014 PR middle-end/89294
14015 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
14016 expression.
14017 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
14018
14019 2019-02-18 Richard Biener <rguenther@suse.de>
14020
14021 PR tree-optimization/89296
14022 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
14023 of no-warning flag to cases that might emit the bogus warning.
14024
14025 2019-02-18 Jakub Jelinek <jakub@redhat.com>
14026
14027 PR bootstrap/88714
14028 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
14029 "q" constraint.
14030 * config/arm/vfp.md (*movdi_vfp): Likewise.
14031 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
14032 "q" constraint for operands[0].
14033
14034 PR target/89369
14035 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
14036 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
14037 pattern in a temporary buffer.
14038 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
14039 than 64-operands[2].
14040
14041 PR target/89361
14042 * config/s390/s390.c (s390_indirect_branch_attrvalue,
14043 s390_indirect_branch_settings): Define unconditionally.
14044 (s390_set_current_function): Likewise, but guard the whole body except
14045 the s390_indirect_branch_settings call with
14046 #if S390_USE_TARGET_ATTRIBUTE.
14047 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
14048
14049 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
14050 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
14051 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
14052 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
14053 HOST_WIDE_INT_1U instead of 1ULL.
14054 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
14055 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
14056 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
14057 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
14058 instead of 1UL.
14059 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
14060 instead of 1ul.
14061
14062 2019-02-18 Martin Jambor <mjambor@suse.cz>
14063
14064 PR tree-optimization/89209
14065 * tree-sra.c (create_access_replacement): New optional parameter
14066 reg_tree. Use it as a type if non-NULL and access type is not of
14067 a register type.
14068 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
14069 to create_access_replacement.
14070 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
14071 Check lacc is non-NULL before attempting to re-create it on the RHS.
14072
14073 2019-02-18 Martin Liska <mliska@suse.cz>
14074
14075 PR ipa/89306
14076 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
14077 by default.
14078 (symbol_table::free_edge): Recycle m_summary_id.
14079 * cgraph.h (get_summary_id): New.
14080 (symbol_table::release_symbol): Set m_summary_id to -1
14081 by default.
14082 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
14083 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
14084 function_summary to fast_function_summary.
14085 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
14086 * ipa-pure-const.c (class funct_state_summary_t):
14087 Switch from function_summary to fast_function_summary.
14088 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
14089 (class ipa_ref_opt_summary_t): Switch from function_summary
14090 to fast_function_summary.
14091 * symbol-summary.h (class function_summary_base): New class
14092 that is created from base of former function_summary.
14093 (function_summary_base::unregister_hooks): New.
14094 (class function_summary): Inherit from function_summary_base.
14095 (class call_summary_base): New class
14096 that is created from base of former call_summary.
14097 (class call_summary): Inherit from call_summary_base.
14098 (struct is_same): New.
14099 (class fast_function_summary): New summary class.
14100 (class fast_call_summary): New summary class.
14101 * vec.h (vec_safe_grow_cleared): New function.
14102
14103 2019-02-18 Martin Liska <mliska@suse.cz>
14104
14105 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
14106 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
14107 * doc/tm.texi: Document new target hook.
14108 * doc/tm.texi.in: Likewise.
14109 * target.def: Add new target macro.
14110 * gcc.c (find_fortran_preinclude_file): Do not search multilib
14111 suffixes.
14112
14113 2019-02-17 Alan Modra <amodra@gmail.com>
14114
14115 PR target/89271
14116 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
14117 output reg on add insn.
14118 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
14119
14120 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
14121
14122 PR target/89372
14123 * config/i386/sse.md (ssedoublemode): Remove V4HI.
14124 (PMULHRSW): Likewise.
14125 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
14126 TARGET_AVX2.
14127 (ssse3_pmulhrswv4hi3): New expander.
14128
14129 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
14130
14131 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
14132 MMX. Add isa attribute.
14133
14134 2019-02-16 Jakub Jelinek <jakub@redhat.com>
14135
14136 PR rtl-optimization/66152
14137 * builtins.h (c_readstr): Declare.
14138 * builtins.c (c_readstr): Remove forward declaration. Add
14139 null_terminated_p argument, if false, read all bytes from the
14140 string instead of stopping after '\0'.
14141 * expr.c (string_cst_read_str): New function.
14142 (store_expr): Use string_cst_read_str instead of
14143 builtin_strncpy_read_str. Try to store by pieces the whole
14144 exp_len first, and only if that fails, split it up into
14145 store by pieces followed by clear_storage. Formatting fix.
14146
14147 * config/i386/i386.md (*movqi_internal): Remove static from
14148 buf variable. Use output_asm_insn (buf, operands); return "";
14149 instead of return buf;.
14150 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
14151 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
14152 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
14153
14154 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14155
14156 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
14157 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
14158 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
14159 (CC1_SPEC): Likewise.
14160 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
14161
14162 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14163
14164 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
14165 the base address on 64-bit strict-alignment platforms.
14166
14167 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
14168
14169 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
14170
14171 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
14172
14173 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
14174
14175 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
14176
14177 PR rtl-optimization/88308
14178 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
14179 on copied instruction.
14180
14181 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14182
14183 * final.c (insn_current_reference_address): Replace test on JUMP_P
14184 with test on jump_to_label_p.
14185 * config/visium/visium-passes.def: New file.
14186 * config/visium/t-visium (PASSES_EXTRA): Define.
14187 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
14188 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
14189 (TRAMPOLINE_ALIGNMENT): Define.
14190 * config/visium/visium.c (visium_option_override): Do not register
14191 the machine-specific reorg pass here.
14192 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
14193 for the GR6.
14194 (output_branch): Adjust threshold for long branch instruction.
14195 * config/visium/visium.md (cpu): Move around.
14196 (length): Adjust for the GR6.
14197
14198 2019-02-15 Richard Biener <rguenther@suse.de>
14199 Jakub Jelinek <jakub@redhat.com>
14200
14201 PR tree-optimization/89278
14202 * tree-loop-distribution.c: Include tree-eh.h.
14203 (generate_memset_builtin, generate_memcpy_builtin): Call
14204 rewrite_to_non_trapping_overflow on builtin->size before passing it
14205 to force_gimple_operand_gsi.
14206
14207 2019-02-15 Jakub Jelinek <jakub@redhat.com>
14208
14209 PR other/89342
14210 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
14211 optimize_debug.
14212 * opth-gen.awk: Likewise.
14213
14214 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
14215
14216 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
14217 Enable MMX, SSE and SSE2 by default.
14218 * config/i386/i386.c (ix86_option_override_internal): Do not
14219 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
14220
14221 2019-02-14 Jakub Jelinek <jakub@redhat.com>
14222
14223 PR rtl-optimization/89354
14224 * combine.c (make_extraction): Punt if extraction_mode is narrower
14225 than len bits.
14226
14227 2019-02-14 Maya Rashish <coypu@sdf.org>
14228
14229 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
14230 * config/netbsd-d.c: New file.
14231 * config/t-netbsd: Add netbsd-d.o
14232
14233 2018-02-14 Steve Ellcey <sellcey@marvell.com>
14234
14235 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
14236 affects_type_identity to true for aarch64_vector_pcs.
14237 (aarch64_comp_type_attributes): New function.
14238 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
14239
14240 2019-02-14 Tamar Christina <tamar.christina@arm.com>
14241
14242 PR target/88850
14243 * config/arm/iterators.md (ANY64): Add V4HF.
14244
14245 2019-02-14 Martin Liska <mliska@suse.cz>
14246
14247 PR rtl-optimization/89242
14248 * dce.c (delete_unmarked_insns): Call free_dominance_info we
14249 process a transformation.
14250
14251 2019-02-14 Jakub Jelinek <jakub@redhat.com>
14252
14253 PR tree-optimization/89314
14254 * fold-const.c (fold_binary_loc): Cast strlen argument to
14255 const char * before dereferencing it. Formatting fixes.
14256
14257 PR middle-end/89284
14258 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
14259
14260 2019-02-13 Ian Lance Taylor <iant@golang.org>
14261
14262 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
14263 and set current index for other optimizations.
14264
14265 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
14266
14267 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
14268 nonimmediate_operand as operand 2 predicate.
14269 (vec_set<VF2_512_256:mode>_0): Ditto.
14270 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
14271 (*vec_concatv2si): Remove alternative 2.
14272 (*vec_concatv4si_0): Use vm constraint for alternative 0.
14273 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
14274 (vec_concatv2di): Split alternatives 4,5,6 to ...
14275 (*vec_concatv2di_0) ... new pattern.
14276
14277 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
14278
14279 PR target/89190
14280 * config/arm/arm.c (ldm_stm_operation_p) Set
14281 addr_reg_in_reglist correctly for first register.
14282 (load_multiple_sequence): Remove dead base check.
14283 (gen_ldm_seq): Correctly set write_back for Thumb-1.
14284
14285 2019-02-13 Tamar Christina <tamar.christina@arm.com>
14286
14287 PR target/88847
14288 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
14289 Expose as @aarch64_pred_mov.
14290 * config/aarch64/aarch64.c (aarch64_classify_address):
14291 Use expand_insn which legitimizes operands.
14292
14293 2019-02-13 Martin Liska <mliska@suse.cz>
14294
14295 * builtins.h (expand_builtin_with_bounds): Remove declaration.
14296 * calls.c (struct arg_data): Remove special_slot, pointer_arg
14297 and pointer_offset fields.
14298 (initialize_argument_information): Remove usage of dead
14299 fields.
14300 * cgraph.h (struct cgraph_thunk_info): Remove
14301 add_pointer_bounds_args.
14302 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
14303 fields.
14304 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
14305 fields.
14306 * config/i386/i386.c (ix86_function_arg_advance): Remove
14307 unrelated comment.
14308 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
14309 (def_builtin): Remove usage of dead
14310 fields.
14311 (ix86_add_new_builtins): Likewise.
14312 * ipa-fnsummary.c (compute_fn_summary): Likewise.
14313 * ipa-icf.c (sem_function::equals_wpa): Likewise.
14314 (sem_function::init): Likewise.
14315 (sem_variable::merge): Likewise.
14316 * ipa-visibility.c (function_and_variable_visibility): Likewise.
14317 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
14318 * lto-cgraph.c (lto_output_node): Likewise.
14319 (lto_output_varpool_node): Likewise.
14320 (input_node): Likewise.
14321 (input_varpool_node): Likewise.
14322 * lto-streamer-out.c (lto_output): Likewise.
14323 * tree-inline.c (expand_call_inline): Remove usage of
14324 assign_stmts.
14325 * tree-inline.h (struct copy_body_data): Likewise.
14326 * varpool.c (varpool_node::dump): Likewise.
14327
14328 2019-02-13 Jakub Jelinek <jakub@redhat.com>
14329
14330 PR middle-end/89303
14331 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
14332 into pt->vars_contains_escaped_heap instead of setting
14333 pt->vars_contains_escaped_heap to it.
14334
14335 PR middle-end/89281
14336 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
14337 INTVAL (size), compare it to GET_MODE_MASK instead of
14338 1 << GET_MODE_BITSIZE.
14339
14340 PR target/89290
14341 * config/i386/predicates.md (x86_64_immediate_operand): Allow
14342 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
14343 -mcmodel=large.
14344
14345 2019-02-13 Martin Liska <mliska@suse.cz>
14346
14347 PR lto/88858
14348 * cfgrtl.c (remove_barriers_from_footer): New function.
14349 (try_redirect_by_replacing_jump): Use it.
14350 (cfg_layout_redirect_edge_and_branch): Likewise.
14351
14352 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
14353
14354 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
14355 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
14356 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
14357 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
14358 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
14359 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
14360 New BU_CRYPTO_2.
14361 * config/rs6000/rs6000.c (builtin_function_type)
14362 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
14363 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
14364 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
14365 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
14366 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
14367
14368 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
14369
14370 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
14371 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
14372
14373 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
14374
14375 PR target/89229
14376 * config/i386/i386.md (*movoi_internal_avx): Revert revision
14377 268678 and revision 268657.
14378 (*movti_internal): Likewise.
14379
14380 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
14381
14382 PR target/89233
14383 * config/s390/s390.c (s390_decompose_address): Update comment.
14384 (s390_check_qrst_address): Reject invalid address forms after
14385 LRA.
14386
14387 2019-02-12 Martin Liska <mliska@suse.cz>
14388
14389 PR lto/88876
14390 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
14391 we need default values of funct_state for a function that
14392 is not optimized.
14393
14394 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
14395
14396 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
14397 the object to pick the size of stores on strict-alignment platforms.
14398
14399 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
14400 (*movdi_insn_sp32): Likewise.
14401 (*movdi_insn_sp64): Likewise.
14402
14403 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
14404
14405 PR lto/88677
14406 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
14407 types that needs constructiong.
14408 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
14409
14410 2019-02-12 Richard Biener <rguenther@suse.de>
14411
14412 PR tree-optimization/89253
14413 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
14414 duplicate the loop.
14415
14416 2019-02-11 David Malcolm <dmalcolm@redhat.com>
14417
14418 PR lto/88147
14419 * input.c (selftest::test_line_offset_overflow): New selftest.
14420 (selftest::input_c_tests): Call it.
14421
14422 2019-02-11 Martin Sebor <msebor@redhat.com>
14423
14424 PR tree-optimization/88771
14425 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
14426 when -Wstringop-overflow is set.
14427 (builtin_memref::builtin_memref): Adjust excessive upper bound
14428 only when lower bound is not excessive.
14429 (maybe_diag_overlap): Detect and diagnose excessive bounds via
14430 -Wstringop-ovefflow.
14431 (maybe_diag_offset_bounds): Rename...
14432 (maybe_diag_access_bounds): ...to this.
14433 (check_bounds_or_overlap): Adjust for name change above.
14434
14435 2019-02-11 Martin Sebor <msebor@redhat.com>
14436
14437 PR c++/87996
14438 * builtins.c (max_object_size): Move from here...
14439 * builtins.h (max_object_size): ...and here...
14440 * tree.c (max_object_size): ...to here...
14441 * tree.h (max_object_size): ...and here.
14442
14443 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
14444
14445 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
14446 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
14447 for correct semantics.
14448
14449 2019-02-11 Alan Modra <amodra@gmail.com>
14450
14451 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
14452 -mlongcall and -mpltseq.
14453 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
14454 (RS/6000 and PowerPC Options <-mpltseq>): Document.
14455 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
14456 * config/rs6000/sysv4.opt (mpltseq): New option.
14457 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
14458 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
14459 support is lacking. Don't allow -mpltseq with -mbss-plt.
14460 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
14461 -mpltseq given for ELFv1.
14462 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
14463 Only use UNSPEC_PLTSEQ for inline PLT calls.
14464 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
14465 use UNSPEC_PLTSEQ for inline PLT calls.
14466 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
14467 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
14468 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
14469 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14470 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14471 (pltseq_mtctr_<mode>): Likewise.
14472
14473 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14474
14475 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
14476 Solaris ld.
14477 * configure: Regenerate.
14478
14479 2019-02-11 Jakub Jelinek <jakub@redhat.com>
14480
14481 PR bootstrap/88714
14482 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
14483 instead of r.
14484
14485 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14486
14487 * function.c (assign_parm_setup_block): Use the stored
14488 size, not the passed size, when allocating stack-space,
14489 also for a parameter with alignment larger than
14490 MAX_SUPPORTED_STACK_ALIGNMENT.
14491
14492 2019-02-11 Martin Liska <mliska@suse.cz>
14493
14494 PR ipa/89009
14495 * ipa-cp.c (build_toporder_info): Remove usage of a param.
14496 * ipa-inline.c (inline_small_functions): Likewise.
14497 * ipa-pure-const.c (propagate_pure_const): Likewise.
14498 (propagate_nothrow): Likewise.
14499 * ipa-reference.c (propagate): Likewise.
14500 * ipa-utils.c (struct searchc_env): Remove unused field.
14501 (searchc): Always search across AVAIL_INTERPOSABLE.
14502 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14503 the only called IPA pure const can properly not propagate
14504 across interposable boundary.
14505 * ipa-utils.h (ipa_reduced_postorder): Remove param.
14506
14507 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
14508
14509 * config/nds32/nds32.md (call_internal, call_value_internal,
14510 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14511
14512 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14513
14514 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14515 typo.
14516
14517 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
14518
14519 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14520 in comments
14521
14522 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14523
14524 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14525
14526 2019-02-10 Jakub Jelinek <jakub@redhat.com>
14527
14528 PR tree-optimization/89268
14529 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14530 if preds is non-NULL.
14531
14532 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14533
14534 PR lto/89272
14535 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14536 polymorphic types.
14537
14538 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14539
14540 * config/nds32/nds32.md (trap): New pattern.
14541
14542 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14543
14544 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14545 dwarf span.
14546
14547 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14548
14549 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14550 to split POST_INC.
14551
14552 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14553
14554 * ipa-visibility.c (localize_node): Also do not localize
14555 LDPR_PREVAILING_DEF_IRONLY_EXP.
14556
14557 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14558
14559 PR lto/87957
14560 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14561 instead of type_with_linkage.
14562
14563 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14564
14565 PR ipa/88755
14566 * params.def (uninlined-function-insns, uninlined-function-time,
14567 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14568 bound so we don't get overflows.
14569
14570 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
14571
14572 * config/rs6000/rs6000-string.c (expand_compare_loop,
14573 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14574 memcmp/strncmp.
14575
14576 2019-02-09 Jakub Jelinek <jakub@redhat.com>
14577
14578 PR middle-end/89246
14579 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14580 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14581 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14582
14583 2019-02-09 Alan Modra <amodra@gmail.com>
14584
14585 PR target/88343
14586 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14587 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
14588 setup.
14589
14590 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
14591
14592 PR middle-end/88560
14593 * lra-constraints.c (process_alt_operands): Don't increase reject
14594 for memory when offset memory is required.
14595
14596 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
14597
14598 * config/s390/vector.md: Implement vector copysign.
14599
14600 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14601
14602 * expr.c (expand_constructor): Correct indentations.
14603
14604 2019-02-08 Richard Biener <rguenther@suse.de>
14605
14606 PR tree-optimization/89247
14607 * tree-if-conv.c: Include tree-cfgcleanup.h.
14608 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14609 (tree_if_conversion): Pass through predicate vector.
14610 (pass_if_conversion::execute): Do CFG cleanup and SSA update
14611 inline, see if any if-converted loops we refrece in
14612 LOOP_VECTORIZED calls vanished and fixup.
14613 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14614
14615 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
14616
14617 * config/s390/constraints.md (jdd): New constraint.
14618
14619 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14620
14621 PR target/89229
14622 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14623 upper 16 vector registers without TARGET_AVX512VL.
14624 (*movti_internal): Likewise.
14625
14626 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14627
14628 PR rtl-optimization/89234
14629 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14630 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14631 (copy_reg_eh_region_note_backward): Likewise.
14632
14633 2019-02-08 Richard Biener <rguenther@suse.de>
14634
14635 PR middle-end/89223
14636 * tree-data-ref.c (initialize_matrix_A): Fail if constant
14637 doesn't fit in HWI.
14638 (analyze_subscript_affine_affine): Handle failure from
14639 initialize_matrix_A.
14640
14641 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14642
14643 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14644 cfun everywhere.
14645
14646 2019-02-07 David Malcolm <dmalcolm@redhat.com>
14647
14648 PR tree-optimization/86637
14649 PR tree-optimization/89235
14650 * tree-vect-loop.c (optimize_mask_stores): Add an
14651 auto_purge_vect_location sentinel to ensure that vect_location is
14652 purged on exit.
14653 * tree-vectorizer.c
14654 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14655 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14656 to ensure that vect_location is purged on exit.
14657 (pass_slp_vectorize::execute): Likewise, replacing the manual
14658 reset.
14659 * tree-vectorizer.h (class auto_purge_vect_location): New class.
14660
14661 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14662
14663 * config/aarch64/iterators.md (max_opp): New code_attr.
14664 (USMAX): New code iterator.
14665 * config/aarch64/predicates.md (aarch64_smin): New predicate.
14666 (aarch64_smax): Likewise.
14667 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14668 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14669 MINUS (MAX MIN).
14670
14671 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
14672
14673 PR target/89229
14674 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14675 for TARGET_AVX512VL.
14676 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14677
14678 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
14679
14680 * config/s390/s390-builtin-types.def: Add new types.
14681 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14682 (s390_vec_xlw4): Make the memory operand into a const pointer.
14683 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14684 float.
14685 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14686 a new vector type with the alignment of the scalar memory operand.
14687
14688 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
14689 Jakub Jelinek <jakub@redhat.com>
14690
14691 PR bootstrap/88714
14692 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
14693 arm_count_ldrdstrd_insns): New declarations.
14694 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
14695 MINUS.
14696 (valid_operands_ldrd_strd): New function.
14697 (arm_count_ldrdstrd_insns): New function.
14698 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
14699 sets instead of single DImode set and define new insns to match this.
14700
14701 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14702
14703 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
14704 Make it a C initializer.
14705
14706 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14707
14708 PR/target 88850
14709 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
14710
14711 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14712
14713 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
14714 Use neon_dot<q> for type.
14715 (neon_<sup>dot_lane<vsi2qi>): Likewise.
14716
14717 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14718
14719 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
14720 Use neon_dot<q> for type.
14721 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
14722 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
14723
14724 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
14725
14726 PR rtl-optimization/89225
14727 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
14728 sizes check.
14729
14730 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
14731
14732 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
14733 after restoring registers saved to allocate the frame on Windows.
14734
14735 2019-02-06 Richard Biener <rguenther@suse.de>
14736
14737 PR tree-optimization/89182
14738 * graphite.h (cached_scalar_evolution_in_region): Declare.
14739 * graphite.c (struct seir_cache_key): New.
14740 (struct sese_scev_hash): Likewise.
14741 (seir_cache): New global.
14742 (cached_scalar_evolution_in_region): New function.
14743 (graphite_transform_loops): Allocate and release seir_cache.
14744 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
14745 cached_scalar_evolution_in_region.
14746 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14747 Simplify.
14748 (scop_detection::graphite_can_represent_expr: Use
14749 cached_scalar_evolution_in_region.
14750 (scop_detection::stmt_simple_for_scop_p): Likewise.
14751 (find_params_in_bb): Likewise.
14752 (gather_bbs::before_dom_children): Likewise.
14753 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
14754 (add_loop_constraints): Likewise.
14755
14756 2019-02-06 Jakub Jelinek <jakub@redhat.com>
14757
14758 PR middle-end/89210
14759 * fold-const-call.c (fold_const_vec_convert): Pass true as last
14760 operand to new_unary_operation only if both element types are integral
14761 and it isn't a widening conversion. Return NULL_TREE if
14762 new_unary_operation failed.
14763
14764 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
14765
14766 PR target/88856
14767 * config/s390/s390.md: Remove load and test FP splitter.
14768
14769 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14770
14771 PR target/89112
14772 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
14773 expand_compare_loop, expand_block_compare_gpr,
14774 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
14775 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
14776 #include "profile-count.h" and "predict.h" for types and functions
14777 needed to work with REG_BR_PROB notes.
14778
14779 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14780
14781 PR target/89112
14782 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
14783 for the long branch case.
14784
14785 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14786
14787 PR target/89188
14788 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
14789 can throw, non-call exceptions are enabled and we can't delete
14790 dead exceptions or alter cfg. Set must_clean if
14791 delete_insn_and_edges returns true, don't set it blindly for calls.
14792 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
14793
14794 PR rtl-optimization/89195
14795 * combine.c (make_extraction): For MEMs, don't extract bytes outside
14796 of the original MEM.
14797
14798 2019-02-05 Martin Liska <mliska@suse.cz>
14799
14800 PR gcov-profile/89000
14801 * gcov.c (function_summary): Remove argument.
14802 (file_summary): New function.
14803 (print_usage): Replace tabs with spaces.
14804 (generate_results): Use new function file_summary.
14805
14806 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR target/89186
14809 * optabs.c (prepare_cmp_insn): Pass x and y to
14810 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
14811
14812 2019-02-05 Richard Biener <rguenther@suse.de>
14813
14814 PR middle-end/89150
14815 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
14816 (struct bitmap_element): Drop chain_prev so we properly recurse on
14817 the prev member, supporting tree views.
14818 (struct bitmap_head): GTY skip the obstack member.
14819
14820 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
14821
14822 PR c/88698
14823 * doc/extend.texi (Vector Extensions): Add an example of using vector
14824 types together with x86 intrinsics.
14825
14826 2019-02-04 Alan Modra <amodra@gmail.com>
14827
14828 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
14829 str[] size to 160, and comment.
14830
14831 2019-02-04 Alan Modra <amodra@gmail.com>
14832
14833 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
14834 (rs6000_pltseq_template): Guard output of TLS markers with
14835 TARGET_TLS_MARKERS.
14836 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
14837 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
14838 to use inline PLT sequences.
14839 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14840 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14841 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
14842
14843 2019-02-04 Martin Liska <mliska@suse.cz>
14844
14845 PR ipa/88985
14846 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
14847 out when ipa_fn_summaries does not contain entry for callee.
14848
14849 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
14850
14851 * config/sparc/sparc.h: Remove superfluous blank lines.
14852 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
14853 (got_register_rtx): ...this.
14854 (sparc_got): Adjust to above renaming.
14855 (sparc_tls_got): Likewise.
14856 (sparc_delegitimize_address): Likewise.
14857 (sparc_output_mi_thunk): Likewise.
14858 (sparc_init_pic_reg): Likewise.
14859 (save_local_or_in_reg_p): Fix test on the GOT register.
14860 (USE_HIDDEN_LINKONCE): Move around.
14861 (get_pc_thunk_name): Likewise.
14862 (gen_load_pcrel_sym): Likewise.
14863 (load_got_register): Likewise.
14864
14865 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
14866
14867 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
14868 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
14869
14870 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14871
14872 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
14873 into consideration.
14874
14875 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14876
14877 * config.gcc (with_nds32_lib, glibc):
14878 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
14879 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
14880 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
14881
14882 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
14883
14884 PR target/89071
14885 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
14886 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
14887 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
14888 (*rcpsf2_sse): Ditto.
14889 (*rsqrtsf2_sse): Ditto.
14890 (sse4_1_round<mode<2): Ditto.
14891
14892 2019-02-03 Richard Biener <rguenther@suse.de>
14893
14894 PR debug/87295
14895 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
14896 orig.
14897
14898 2019-02-02 Jakub Jelinek <jakub@redhat.com>
14899
14900 PR middle-end/87887
14901 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14902 Punt with warning on aggregate return or argument types. Ignore
14903 type/mode checking for uniform arguments.
14904
14905 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
14906
14907 * combine.c (try_combine): Do not print "Can't combine" messages unless
14908 printing failed combination attempts.
14909
14910 2019-02-01 Martin Jambor <mjambor@suse.cz>
14911
14912 PR hsa/87863
14913 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
14914 segment and global segment variables before making them static.
14915
14916 2019-02-01 Martin Jambor <mjambor@suse.cz>
14917
14918 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
14919 missed optimization dump with dump_enabled_p.
14920
14921 2019-02-01 Richard Biener <rguenther@suse.de>
14922
14923 PR middle-end/88597
14924 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
14925 the instantiate cache.
14926 (instantiate_scev_binary): Elide second operand procesing
14927 if equal to the first.
14928 * tree-chrec.c (chrec_contains_symbols): Add visited set.
14929 (chrec_contains_undetermined): Likewise.
14930 (tree_contains_chrecs): Likewise.
14931
14932 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
14933
14934 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
14935
14936 2019-02-01 Jakub Jelinek <jakub@redhat.com>
14937
14938 PR tree-optimization/89143
14939 * wide-int-range.h (wide_int_range_absu): Declare.
14940 * wide-int-range.cc (wide_int_range_absu): New function.
14941 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
14942
14943 PR tree-optimization/88107
14944 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
14945 instead of assertion that eh_region_outermost is non-NULL, if it
14946 is NULL, set *ALL to true and return NULL.
14947 (move_sese_region_to_fn): Adjust caller, if all is set, call
14948 duplicate_eh_regions with NULL region.
14949
14950 2019-02-01 Richard Biener <rguenth@suse.de>
14951
14952 PR rtl-optimization/88593
14953 * mode-switching.c (optimize_mode_switching): Free dominators before
14954 calling cleanup_cfg.
14955
14956 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14957
14958 PR tree-optimization/88932
14959 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
14960
14961 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14962
14963 PR middle-end/89137
14964 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
14965 bogus clang warning.
14966
14967 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
14968
14969 PR target/89071
14970 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
14971 alternative to avoid partial SSE register stall for TARGET_AVX.
14972 (truncdfsf2): Ditto.
14973 (sse4_1_round<mode>2): Ditto.
14974
14975 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
14976
14977 PR tree-optimization/89008
14978 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
14979 process anything of the form X * 0.
14980
14981 2019-01-31 Richard Biener <rguenther@suse.de>
14982
14983 PR tree-optimization/89135
14984 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
14985 with abnormal preds.
14986
14987 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14988
14989 PR sanitizer/89124
14990 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
14991 always_inline callees into no_sanitize_address callers.
14992
14993 2019-01-31 Richard Biener <rguenther@suse.de>
14994
14995 PR rtl-optimization/89115
14996 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
14997
14998 2019-01-30 Martin Sebor <msebor@redhat.com>
14999
15000 PR other/89106
15001 * doc/extend.texi (cast to a union): Correct and expand.
15002
15003 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
15004
15005 PR rtl-optimization/87246
15006 * lra-constraints.c (simplify_operand_subreg): Reload memory
15007 in subreg if the address became invalid.
15008
15009 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
15010
15011 PR target/87064
15012 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
15013 Disable for little-endian.
15014
15015 2019-01-30 Richard Biener <rguenther@suse.de>
15016
15017 PR rtl-optimization/89115
15018 * opts.c (default_options_optimization): Reduce
15019 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
15020 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
15021 to the default.
15022
15023 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15024
15025 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
15026 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
15027 type of vector element when vec_extract is implemented by direct
15028 move.
15029
15030 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
15031
15032 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
15033
15034 2019-01-30 Richard Biener <rguenther@suse.de>
15035
15036 PR tree-optimization/89111
15037 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
15038 canonicalization to appropriately sized access types.
15039
15040 2019-01-30 Jakub Jelinek <jakub@redhat.com>
15041
15042 PR c++/89105
15043 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
15044 for arguments to functions that are TU-local and shouldn't be
15045 referenced by assembly.
15046
15047 2019-01-30 Ulrich Drepper <drepper@redhat.com>
15048
15049 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
15050 after '='.
15051
15052 2019-01-29 Martin Sebor <msebor@redhat.com>
15053
15054 PR c/88956
15055 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
15056
15057 2019-01-29 Jakub Jelinek <jakub@redhat.com>
15058
15059 PR c++/66676
15060 PR ipa/89104
15061 * omp-simd-clone.c (simd_clone_clauses_extract)
15062 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
15063 OMP_CLAUSE_ALIGNED_ALIGNMENT.
15064
15065 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
15066
15067 * config.gcc: Force .init_array for ARC.
15068
15069 2019-01-29 Richard Biener <rguenther@suse.de>
15070
15071 PR debug/87295
15072 * dwarf2out.c (collect_skeleton_dies): New helper.
15073 (copy_decls_for_unworthy_types): Call it.
15074 (build_abbrev_table): Assert we do not try to replace
15075 DW_AT_signature refs with local refs.
15076
15077 2019-01-28 Jakub Jelinek <jakub@redhat.com>
15078
15079 PR middle-end/89002
15080 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
15081 for lastprivate/linear IV, push gimplify context around gimplify_assign
15082 and, if it needed any temporaries, pop it into a gimple bind around the
15083 sequence.
15084
15085 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15086
15087 * common.opt (-Wattribute-alias): Remove "no-" from name.
15088 Make -Wattribute-alias command line option and
15089 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
15090
15091 2019-01-28 Jakub Jelinek <jakub@redhat.com>
15092
15093 PR target/89073
15094 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
15095 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
15096 x86 ISA options.
15097 (bmi2): Add missing @opindex.
15098 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
15099 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
15100 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
15101 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
15102 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
15103 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
15104 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
15105 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
15106 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
15107 xsavec, xsaveopt and xsaves options.
15108
15109 2019-01-28 Richard Biener <rguenther@suse.de>
15110
15111 PR debug/89076
15112 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
15113 support removal.
15114
15115 2019-01-28 Richard Biener <rguenther@suse.de>
15116
15117 PR tree-optimization/88739
15118 * tree-cfg.c (verify_types_in_gimple_reference): Verify
15119 BIT_FIELD_REFs only are applied to mode-precision operands
15120 when they are integral.
15121 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
15122 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
15123 BIT_FIELD_REFs of non-mode-precision integral operands.
15124
15125 2019-01-27 Jakub Jelinek <jakub@redhat.com>
15126
15127 PR target/87214
15128 * config/i386/sse.md
15129 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
15130 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
15131 first constants in pairs are multiples of 2. Formatting fixes.
15132 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
15133 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
15134 first constants in each quadruple are multiples of 4. Formatting fixes.
15135
15136 2019-01-26 Martin Jambor <mjambor@suse.cz>
15137
15138 PR ipa/88933
15139 * tree-inline.c: Include tree-cfgcleanup.h.
15140 (delete_unreachable_blocks_update_callgraph): Move...
15141 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
15142 ...here, make externally visible, make second argument bool, adjust
15143 all callers.
15144 * tree-cfgcleanup.c: Include cgraph.h.
15145 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
15146 Declare.
15147 * ipa-prop.c: Include tree-cfgcleanup.h.
15148 (ipcp_transform_function): Call
15149 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
15150
15151 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
15152
15153 PR rtl-optimization/88846
15154 * ira.c (process_set_for_memref_referenced_p): New.
15155 (memref_referenced_p): Add new param. Use
15156 process_set_for_memref_referenced_p. Add new switch cases.
15157 (memref_used_between_p): Pass new arg to memref_referenced_p.
15158
15159 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
15160
15161 PR target/88469
15162 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
15163 argument ABI_BREAK. Set to true if the calculated alignment has
15164 changed in gcc-9. Check bit-fields for their base type alignment.
15165 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
15166 (aarch64_function_arg_boundary): Likewise.
15167 (aarch64_gimplify_va_arg_expr): Likewise.
15168
15169 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
15170
15171 PR middle-end/89037
15172 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
15173 instead of accessing TREE_INT_CST_ELT directly.
15174
15175 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
15176
15177 * doc/sourcebuild.texi (Environment attributes): Add fenv and
15178 fenv_exceptions description.
15179
15180 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
15181
15182 PR rtl-optimization/87763
15183 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
15184 Allow SUBREG when matching CC_NZmode compare.
15185
15186 2019-01-25 Richard Biener <rguenther@suse.de>
15187
15188 PR tree-optimization/89049
15189 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15190 Look at the pattern stmt to determine if the stmt is vectorized.
15191
15192 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
15193
15194 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
15195 (pred_mov<mode>): Handle all-register forms using both a new
15196 alternative and a split.
15197
15198 2019-01-25 Richard Biener <rguenther@suse.de>
15199
15200 PR tree-optimization/86865
15201 * graphite-scop-detection.c (scop_detection::can_represent_loop):
15202 Reject non-do-while loops.
15203
15204 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
15205
15206 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
15207 * config/rs6000/constraints.md (Q constraint): Use REG_P.
15208 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
15209 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15210 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
15211 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15212 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
15213 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
15214 vlogical_operand, gpc_reg_operand, int_reg_operand,
15215 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
15216 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
15217 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
15218 (save_world_operation, restore_world_operation, lmw_operation,
15219 stmw_operation): Use MEM_P and REG_P.
15220 (tie_operand): Use MEM_P.
15221 (vrsave_operation, crsave_operation): Use REG_P.
15222 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
15223 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
15224 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
15225 (call_operand): Use HARD_REGISTER_P.
15226 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
15227 Use CONST_INT_P.
15228 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
15229 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
15230 quad_aligned_load_p, replace_swapped_aligned_store,
15231 recombine_lvx_pattern, replace_swapped_aligned_load,
15232 recombine_stvx_pattern): Use MEM_P.
15233 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
15234 Use MEM_P and SYMBOL_REF_P.
15235 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
15236 (insn_is_swappable_p): Use REG_P and MEM_P.
15237 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
15238 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
15239 Use CONST_INT_P.
15240 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
15241 Use CONST_DOUBLE_P.
15242 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
15243 CONST_WIDE_INT_P.
15244 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
15245 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
15246 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
15247 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
15248 reg_or_subregno:
15249 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15250 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
15251 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
15252 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
15253 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
15254 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
15255 rs6000_split_logical_di): Use CONST_INT_P.
15256 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
15257 REG_P and SYMBOL_REF_P.
15258 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
15259 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
15260 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
15261 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
15262 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
15263 (small_data_operand, print_operand_address): Use CONST_INT_P and
15264 SYMBOL_REF_P.
15265 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
15266 (rs6000_init_hard_regno_mode_ok, direct_move_p):
15267 Use HARD_REGISTER_NUM_P.
15268 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
15269 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
15270 SUBREG_P and SYMBOL_REF_P.
15271 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
15272 and HARD_REGISTER_NUM_P.
15273 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
15274 reg_or_subregno.
15275 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
15276 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
15277 MEM_P and REG_P.
15278 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
15279 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
15280 find_addr_reg): Use REG_P.
15281 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
15282 (rs6000_emit_le_vsx_move): Use SUBREG_P.
15283 (offsettable_ok_by_alignment, constant_pool_expr_p,
15284 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
15285 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
15286 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
15287 rs6000_assemble_integer, create_TOC_reference,
15288 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
15289 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
15290 (rs6000_split_vec_extract_var): Use reg_or_subregno.
15291 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15292 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15293 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15294 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15295 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
15296 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
15297 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
15298 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
15299 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
15300 and cbranch<mode>4): Use CONST_INT_P.
15301 (multiple define_splits): Use REG_P and SUBREG_P.
15302 (define_expands call, call_value): Use MEM_P.
15303 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
15304 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
15305 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
15306 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
15307 and HARD_REGISTER_NUM_P.
15308 (multiple define_splits): Use HARD_REGISTER_NUM_P.
15309
15310 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
15311
15312 PR rtl-optimization/88948
15313 * rtl.h (prepare_copy_insn): New prototype.
15314 * gcse.c (prepare_copy_insn): New function, split out from
15315 process_insert_insn.
15316 (process_insert_insn): Use prepare_copy_insn.
15317 * store-motion.c (replace_store_insn): Use prepare_copy_insn
15318 instead of gen_move_insn.
15319
15320 2019-01-24 Jakub Jelinek <jakub@redhat.com>
15321
15322 PR debug/89006
15323 * config/i386/i386.c (ix86_pic_register_p): Return true for
15324 UNSPEC_SET_GOT too.
15325
15326 PR tree-optimization/88964
15327 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
15328 punt if HONOR_SNANS (chrec).
15329
15330 PR middle-end/89015
15331 * tree-nested.c (convert_nonlocal_reference_stmt,
15332 convert_local_reference_stmt, convert_tramp_reference_stmt,
15333 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
15334 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
15335 or GIMPLE_OMP_TASK.
15336
15337 PR tree-optimization/89027
15338 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
15339 for "omp simd array" variables.
15340
15341 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
15342
15343 PR target/88469
15344 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
15345 force the alignment of m_val.
15346
15347 2019-01-24 Richard Biener <rguenther@suse.de>
15348
15349 PR lto/87187
15350 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
15351 When in "legacy" debug mode make sure to reset self-origins.
15352
15353 2019-01-24 Martin Liska <mliska@suse.cz>
15354
15355 PR gcov-profile/88994
15356 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
15357 result will be always smaller or equal to the original.
15358 * gcov.c (mangle_name): Fix else branch where we should
15359 also copy to PTR and shift the pointer.
15360
15361 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15362
15363 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
15364 * vr-values.c (find_case_label_ranges): Fix a comment typo.
15365
15366 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
15367
15368 * common/config/i386/i386-common.c
15369 (OPTION_MASK_ISA_ENQCMD_SET,
15370 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
15371 (ix86_handle_option): Handle -menqcmd.
15372 * config.gcc (enqcmdintrin.h): New header file.
15373 * config/i386/cpuid.h (bit_ENQCMD): New bit.
15374 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15375 -menqcmd.
15376 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
15377 function type.
15378 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
15379 __builtin_ia32_enqcmds): New builtins.
15380 * config/i386/i386-c.c (__ENQCMD__): New macro.
15381 * config/i386/i386-option.c (ix86_target_string): Add
15382 -menqcmd.
15383 (ix86_valid_target_attribute_inner_p): Likewise.
15384 * config/i386/i386-expand.c
15385 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
15386 IX86_BUILTIN_ENQCMDS.
15387 * config/i386/i386.h (TARGET_ENQCMD): New.
15388 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
15389 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
15390 (movdir64b_<mode>): Parameterize to enable share expansion code
15391 with ENQCMD in function ix86_expand_builtin.
15392 * config/i386/i386.opt: Add -menqcmd.
15393 * config/i386/immintrin.h: Include enqcmdintrin.h.
15394 * config/i386/enqcmdintrin.h: New intrinsic file.
15395 * doc/invoke.texi: Add -menqcmd.
15396
15397 2019-01-23 Bin Cheng <bin.cheng@arm.com>
15398 Steve Ellcey <sellcey@marvell.com>
15399
15400 PR target/85711
15401 * recog.c (address_operand): Return false on wrong mode for address.
15402 (constrain_operands): Check for mode with 'p' constraint.
15403
15404 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
15405
15406 PR target/88998
15407 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
15408 Disparage MMX alternative.
15409 (sse2_cvtpd2pi): Ditto.
15410 (sse2_cvttpd2pi): Ditto.
15411
15412 2019-01-23 David Malcolm <dmalcolm@redhat.com>
15413
15414 PR driver/89014
15415 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
15416 use-after-free of the result of
15417 aarch64_get_extension_string_for_isa_flags.
15418
15419 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15420
15421 PR c/44715
15422 * doc/extend.texi: Document break and continue behavior in
15423 statement expressions.
15424
15425 2019-01-23 Richard Biener <rguenther@suse.de>
15426
15427 PR tree-optimization/89008
15428 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
15429 not leave another stray operand.
15430
15431 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15432
15433 * BASE-VER: Bump to 9.0.1.
15434
15435 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
15436
15437 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
15438 thunk that returns by reference, use the type of the return object
15439 of the thunk instead of that of the alias to build the dereference.
15440
15441 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
15442
15443 * config/arc/atomic.md: Add operand to DMB instruction.
15444
15445 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15446
15447 PR tree-optimization/88964
15448 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
15449 build_zero_cst instead of build_int_cst. Return false for loop
15450 invariants which honor signed zeros.
15451
15452 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
15453
15454 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
15455
15456 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15457
15458 PR target/88965
15459 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
15460 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
15461 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
15462
15463 PR middle-end/88968
15464 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
15465 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
15466
15467 PR target/87064
15468 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
15469 Disable for little endian.
15470
15471 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15472
15473 PR target/88469
15474 * config/arm/arm.c (arm_needs_double_word_align): Check
15475 DECL_BIT_FIELD_TYPE.
15476
15477 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
15478 H.J. Lu <hongjiu.lu@intel.com>
15479
15480 PR target/88909
15481 * config/i386/i386-builtin.def: Add mask2 to all builtin
15482 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
15483 SPECIAL_ARGS.
15484 * config/i386/i386.c (BDESC): Add mask2 to the definition.
15485 (BDESC_FIRST): Likewise.
15486 (define_builtin): Add an argument for mask2. Updated to handle
15487 both ix86_isa_flags and ix86_isa_flags2.
15488 (define_builtin_const): Likewise.
15489 (define_builtin_pure): Likewise.
15490 (define_builtin2): Deleted.
15491 (define_builtin_const2): Likewise.
15492 (builtin_description): Add a member, mask2.
15493 (bdesc_*): Add mask2 to builtin initializations.
15494 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
15495 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
15496 support.
15497 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
15498
15499 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
15500
15501 PR target/88954
15502 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15503 noplt attribute.
15504
15505 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15506
15507 PR target/88469
15508 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15509 alignment is dominated by a bitfield with 64-bit aligned base type.
15510 (arm_function_arg): Emit a warning if the alignment has changed since
15511 earlier GCC releases.
15512 (arm_function_arg_boundary): Likewise.
15513 (arm_setup_incoming_varargs): Likewise.
15514
15515 2019-01-22 Richard Biener <rguenther@suse.de>
15516
15517 PR tree-optimization/88862
15518 * graphite-scop-detection.c
15519 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15520
15521 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
15522
15523 * doc/extend.tex (AMD GCN Function Attributes): New section.
15524 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15525 * doc/invoke.texi (AMD GCN Options): New section.
15526 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15527
15528 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
15529
15530 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15531 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15532
15533 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15534
15535 PR tree-optimization/88044
15536 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15537 is false in the first iteration, but !every_iteration, return false
15538 instead of true with niter->niter zero.
15539
15540 PR rtl-optimization/88904
15541 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15542 any nonequal registers before processing BB_END (b).
15543
15544 PR target/88905
15545 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15546 GET_MODE (op0).
15547 (expand_binop_directly, expand_doubleword_clz,
15548 expand_doubleword_popcount, expand_ctz, expand_ffs,
15549 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15550
15551 PR rtl-optimization/49429
15552 PR target/49454
15553 PR rtl-optimization/86334
15554 PR target/88906
15555 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15556 addressable from here...
15557 (emit_block_op_via_libcall): ... to here.
15558
15559 2019-01-22 Richard Biener <rguenther@suse.de>
15560
15561 * tree-vect-loop.c (vect_analyze_loop_operations): Use
15562 auto_vec for cost vector to fix memleak.
15563 (vectorize_fold_left_reduction): Properly gather SLP defs.
15564 (vectorizable_comparison): Do not swap operands to properly
15565 gather SLP defs.
15566
15567 2019-01-22 Alan Modra <amodra@gmail.com>
15568
15569 PR target/88614
15570 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15571 stays a reg. Allow a const_int.
15572 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15573 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15574 (IS_NOMARK_TLSGETADDR): Define.
15575 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15576 (rs6000_output_tlsargs): New function.
15577 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15578 __tls_get_addr call takes an arg.
15579 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15580 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15581 delete split..
15582 (call_value_nonlocal_sysv): ..or here, delete split.
15583 (tls_gdld_nomark): Delete.
15584 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15585 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
15586 (call_value_nonlocal_sysv): Likewise.
15587 (call_value_nonlocal_sysv_secure): Likewise.
15588 (call_value_nonlocal_aix): Likewise.
15589 (call_value_indirect_aix): Likewise.
15590 (call_value_indirect_elfv2): Likewise.
15591 (call_value_local32, call_value_local64): Disable for no-mark tls.
15592 (call_value_local_aix): Likewise.
15593
15594 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
15595
15596 PR target/88938
15597 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15598 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15599
15600 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
15601
15602 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15603 string contents as hash_map keys.
15604
15605 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15606
15607 PR c/88928
15608 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15609 for rvalue context. Handle rvalues correctly. Use min_align_of_type
15610 instead of TYPE_ALIGN.
15611 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15612 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
15613 pointer from TYPE_STUB_DECL.
15614
15615 2019-01-21 Richard Biener <rguenther@suse.de>
15616
15617 PR tree-optimization/88934
15618 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15619 at the possibly non-constant operand.
15620 (vect_get_constant_vectors): Adjust.
15621
15622 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
15623
15624 PR target/71659
15625 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15626 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15627 instead of _X86INTRIN_H_INCLUDED.
15628 * onfig/i386/clwbintrin.h: Likewise.
15629 * config/i386/pkuintrin.h: Likewise.
15630 * config/i386/prfchwintrin.h: Likewise.
15631 * config/i386/rdseedintrin.h: Likewise.
15632 * config/i386/wbnoinvdintrin.h: Likewise.
15633 * config/i386/xsavecintrin.h: Likewise.
15634 * config/i386/xsavesintrin.h: Likewise.
15635 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15636 * config/i386/xsaveintrin.h: Likewise.
15637 * config/i386/xsaveoptintrin.h: Likewise.
15638 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15639 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15640 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15641 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15642 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15643 * config/i386/immintrin.h: Here.
15644
15645 2019-01-20 Martin Jambor <mjambor@suse.cz>
15646
15647 PR ipa/87615
15648 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15649 with aa_walk_budget.
15650 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15651 aa_walk_budget_p parameter.
15652 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
15653 walk. Updated all callers.
15654 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15655 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15656 unmodified_parm.
15657 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15658 parameter info. Extract info from fbi. Pass fbi to recursive calls
15659 and to unmodified_parm.
15660 (phi_result_unknown_predicate): New parameter fbi, removed parameter
15661 info, updated call to will_be_nonconstant_expr_predicate.
15662 (param_change_prob): New parameter fbi, limit AA walking.
15663 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
15664 calls to various above functions.
15665 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15666 parameter. Use it to limit AA walking.
15667 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15668 fbi, limit AA walk.
15669 (detect_type_change): New parameter fbi, pass it on to
15670 detect_type_change_from_memory_writes.
15671 (detect_type_change_ssa): Likewise.
15672 (aa_overwalked): Removed.
15673 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15674 accordingly, adjust to the neew AA limiting scheme.
15675 (parm_ref_data_preserved_p): Likewise.
15676 (ipa_compute_jump_functions_for_edge): Adjust call to
15677 get_dynamic_type.
15678 (ipa_analyze_call_uses): Likewise.
15679 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15680 (ipa_analyze_node): Initialize aa_walk_budget.
15681 (ipcp_transform_function): Likewise.
15682 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15683 to get_dynamic_type.
15684
15685 2019-01-19 Jakub Jelinek <jakub@redhat.com>
15686
15687 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15688 outside of #if CHECKING_P code.
15689
15690 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
15691
15692 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
15693 New function, split out from...
15694 (loop_versioning::analyze_stride): ...here.
15695 (loop_versioning::find_per_loop_multiplication): Use gassign.
15696 (loop_versioning::analyze_term_using_scevs): Return a success code.
15697 (loop_versioning::analyze_arbitrary_term): New function.
15698 (loop_versioning::analyze_address_fragment): Use
15699 analyze_arbitrary_term if all else fails.
15700
15701 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
15702
15703 PR target/88892
15704 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
15705 operands.
15706
15707 2019-01-18 Richard Biener <rguenther@suse.de>
15708
15709 PR tree-optimization/88903
15710 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
15711 scalar stmts a SLP shift amount is composed of when detecting
15712 shifts by scalars.
15713
15714 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
15715
15716 PR target/88799
15717 * config/arm/arm-cpus.in (mp): New feature.
15718 (sec): New feature.
15719 (fgroup ARMv7ve): Add mp and sec features.
15720 (arch armv7-a): Add options to allow mp and sec extensions.
15721 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
15722 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
15723 extenstions to the base architecture.
15724 (cpu cortex-a8): Add sec extension to the base architecture.
15725 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
15726 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
15727 variants down to the base v7-a varaint.
15728 * config/arm/t-multilib (v7_a_arch_variants): New variable.
15729 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
15730 of permitted extensions for -march=armv7-a and for
15731 -mcpu=generic-armv7-a.
15732
15733 2019-01-18 Martin Liska <mliska@suse.cz>
15734
15735 * params.def: Fix comment.
15736 * tree-profile.c (gimple_init_gcov_profiler): Bump function
15737 name.
15738 (gimple_gen_ic_func_profiler): Likewise.
15739
15740 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15741
15742 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
15743 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
15744 and put in error checks for stack protector guard options.
15745 (aarch64_stack_protect_guard): New.
15746 (TARGET_STACK_PROTECT_GUARD): Define.
15747 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
15748 (reg_stack_protect_address<mode>): New.
15749 (stack_protect_set): Adjust for SSP_GLOBAL.
15750 (stack_protect_test): Likewise.
15751 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
15752 (-mstack-protector-guard): Likewise.
15753 (-mstack-protector-guard-offset): Likewise.
15754
15755 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15756
15757 PR tree-optimization/86214
15758 * tree-inline.h (struct copy_body_data): Add
15759 add_clobbers_to_eh_landing_pads member.
15760 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
15761 (copy_edges_for_bb): Call it if EH edge destination is <
15762 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
15763 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
15764 if flag_stack_reuse != SR_NONE and clear it afterwards.
15765
15766 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
15767
15768 PR target/85596
15769 * doc/install.texi (with-multilib-list): Document for aarch64.
15770
15771 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15772
15773 PR target/88734
15774 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
15775 (("..."))) with ("...").
15776
15777 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
15778
15779 * doc/extend.texi (Built-in Functions for Memory Model Aware
15780 Atomic Operations): Document atomic fetch and nand.
15781
15782 2019-01-18 Martin Liska <mliska@suse.cz>
15783 Richard Biener <rguenther@suse.de>
15784
15785 PR middle-end/88587
15786 * cgraph.h (create_version_clone_with_body): Add new argument
15787 with attributes.
15788 * cgraphclones.c (cgraph_node::create_version_clone): Add
15789 DECL_ATTRIBUTES to a newly created decl. And call
15790 valid_attribute_p so that proper cl_target_optimization_node
15791 is set for the newly created declaration.
15792 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
15793 for declaration.
15794 (expand_target_clones): Do not call valid_attribute_p, it must
15795 be already done.
15796 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
15797 vector types.
15798
15799 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15800
15801 PR target/88734
15802 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
15803 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
15804 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
15805
15806 2019-01-17 Martin Sebor <msebor@redhat.com>
15807
15808 PR middle-end/88273
15809 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
15810 Handle anti-ranges the same as no range at all.
15811
15812 2018-01-17 Steve Ellcey <sellcey@cavium.com>
15813
15814 * config/aarch64/aarch64.c (cgraph.h): New include.
15815 (intl.h): New include.
15816 (supported_simd_type): New function.
15817 (currently_supported_simd_type): Ditto.
15818 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
15819 (aarch64_simd_clone_adjust): Ditto.
15820 (aarch64_simd_clone_usable): Ditto.
15821 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
15822 (TARGET_SIMD_CLONE_ADJUST): Ditto.
15823 (TARGET_SIMD_CLONE_USABLE): Ditto.
15824 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
15825 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
15826 call.
15827
15828 2019-01-17 Martin Sebor <msebor@redhat.com>
15829
15830 PR tree-optimization/88800
15831 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
15832 NO_WARNING bit here. Avoid folding out-of-bounds calls.
15833 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
15834 redundant argument. Add new argument and issue diagnostics under
15835 its control. Detect out-of-bounds access even with warnings
15836 disabled.
15837 (check_bounds_or_overlap): Change return type. Add argument.
15838 (wrestrict_dom_walker::check_call): Adjust.
15839 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
15840 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
15841 check_bounds_or_overlap's return value.
15842 (handle_builtin_stxncpy): Same.
15843 (handle_builtin_strcat): Same.
15844
15845 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15846 Kwok Cheung Yeung <kcy@codesourcery.com>
15847 Julian Brown <julian@codesourcery.com>
15848 Tom de Vries <tom@codesourcery.com>
15849
15850 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
15851
15852 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15853
15854 * doc/sourcebuild.texi: Document dg-require-effective-target
15855 llvm_binutils and offload_gcn.
15856
15857 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15858 Kwok Cheung Yeung <kcy@codesourcery.com>
15859 Julian Brown <julian@codesourcery.com>
15860 Tom de Vries <tom@codesourcery.com>
15861
15862 * doc/sourcebuild.texi: Document dg-required-effective-target
15863 exceptions.
15864
15865 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15866 Kwok Cheung Yeung <kcy@codesourcery.com>
15867 Julian Brown <julian@codesourcery.com>
15868 Tom de Vries <tom@codesourcery.com>
15869 Jan Hubicka <hubicka@ucw.cz>
15870 Martin Jambor <mjambor@suse.cz>
15871
15872 * config.gcc: Add amdgcn*-*-amdhsa configuration.
15873 * configure.ac: Check for dlopen.
15874 * configure: Regenerate.
15875
15876 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15877 Kwok Cheung Yeung <kcy@codesourcery.com>
15878 Julian Brown <julian@codesourcery.com>
15879 Tom de Vries <tom@codesourcery.com>
15880 Jan Hubicka <hubicka@ucw.cz>
15881 Martin Jambor <mjambor@suse.cz>
15882
15883 * common/config/gcn/gcn-common.c: New file.
15884 * config/gcn/driver-gcn.c: New file.
15885 * config/gcn/gcn-builtins.def: New file.
15886 * config/gcn/gcn-hsa.h: New file.
15887 * config/gcn/gcn-modes.def: New file.
15888 * config/gcn/gcn-opts.h: New file.
15889 * config/gcn/gcn-passes.def: New file.
15890 * config/gcn/gcn-protos.h: New file.
15891 * config/gcn/gcn-run.c: New file.
15892 * config/gcn/gcn-tree.c: New file.
15893 * config/gcn/gcn.c: New file.
15894 * config/gcn/gcn.h: New file.
15895 * config/gcn/gcn.opt: New file.
15896 * config/gcn/t-gcn-hsa: New file.
15897
15898 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15899 Kwok Cheung Yeung <kcy@codesourcery.com>
15900 Julian Brown <julian@codesourcery.com>
15901 Tom de Vries <tom@codesourcery.com>
15902 Jan Hubicka <hubicka@ucw.cz>
15903 Martin Jambor <mjambor@suse.cz>
15904
15905 * config/gcn/constraints.md: New file.
15906 * config/gcn/gcn-valu.md: New file.
15907 * config/gcn/gcn.md: New file.
15908 * config/gcn/predicates.md: New file.
15909
15910 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
15911
15912 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
15913 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
15914 (stmt_uses_0_or_null_in_undefined_way): Likewise.
15915 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
15916
15917 2019-01-17 Tamar Christina <tamar.christina@arm.com>
15918
15919 PR target/88851
15920 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
15921 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
15922 it and document registers.
15923
15924 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15925
15926 * config/aarch64/aarch64.c (ares_tunings): Define.
15927 * config/aarch64/aarch64-cores.def (ares): Use the above.
15928
15929 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15930
15931 PR target/88794
15932 Revert:
15933 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
15934
15935 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
15936 (_mm512_fixupimm_round_pd): Update parameters and builtin.
15937 (_mm512_maskz_fixupimm_round_pd): Ditto.
15938 (_mm512_fixupimm_round_ps): Ditto.
15939 (_mm512_maskz_fixupimm_round_ps): Ditto.
15940 (_mm_fixupimm_round_sd): Ditto.
15941 (_mm_maskz_fixupimm_round_sd): Ditto.
15942 (_mm_fixupimm_round_ss): Ditto.
15943 (_mm_maskz_fixupimm_round_ss): Ditto.
15944 (_mm512_fixupimm_pd): Ditto.
15945 (_mm512_maskz_fixupimm_pd): Ditto.
15946 (_mm512_fixupimm_ps): Ditto.
15947 (_mm512_maskz_fixupimm_ps): Ditto.
15948 (_mm_fixupimm_sd): Ditto.
15949 (_mm_maskz_fixupimm_sd): Ditto.
15950 (_mm_fixupimm_ss): Ditto.
15951 (_mm_maskz_fixupimm_ss): Ditto.
15952 (_mm512_mask_fixupimm_round_pd): Update builtin.
15953 (_mm512_mask_fixupimm_round_ps): Ditto.
15954 (_mm_mask_fixupimm_round_sd): Ditto.
15955 (_mm_mask_fixupimm_round_ss): Ditto.
15956 (_mm512_mask_fixupimm_pd): Ditto.
15957 (_mm512_mask_fixupimm_ps): Ditto.
15958 (_mm_mask_fixupimm_sd): Ditto.
15959 (_mm_mask_fixupimm_ss): Ditto.
15960 * config/i386/avx512vlintrin.h:
15961 (_mm256_fixupimm_pd): Update parameters and builtin.
15962 (_mm256_maskz_fixupimm_pd): Ditto.
15963 (_mm256_fixupimm_ps): Ditto.
15964 (_mm256_maskz_fixupimm_ps): Ditto.
15965 (_mm_fixupimm_pd): Ditto.
15966 (_mm_maskz_fixupimm_pd): Ditto.
15967 (_mm_fixupimm_ps): Ditto.
15968 (_mm_maskz_fixupimm_ps): Ditto.
15969 (_mm256_mask_fixupimm_pd): Update builtin.
15970 (_mm256_mask_fixupimm_ps): Ditto.
15971 (_mm_mask_fixupimm_pd): Ditto.
15972 (_mm_mask_fixupimm_ps): Ditto.
15973 * config/i386/i386-builtin-types.def: Add new types and remove
15974 useless ones.
15975 * config/i386/i386-builtin.def: Update builtin definitions.
15976 * config/i386/i386.c: Handle new builtin types and remove useless ones.
15977 * config/i386/sse.md: Update VFIXUPIMM* patterns.
15978 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15979 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15980 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
15981 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15982 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15983 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
15984 * config/i386/subst.md:
15985 (round_saeonly_sd_mask_operand4): Add new subst_attr.
15986 (round_saeonly_sd_mask_op4): Ditto.
15987 (round_saeonly_expand_operand5): Ditto.
15988 (round_saeonly_expand): Update.
15989
15990 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15991
15992 PR target/88794
15993 Revert:
15994 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
15995
15996 * config/i386/sse.md: Combine VFIXUPIMM* patterns
15997 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15998 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15999 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
16000 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16001 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16002 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
16003
16004 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
16005
16006 PR target/88794
16007 Revert:
16008 2018-12-15 Jakub Jelinek <jakub@redhat.com>
16009
16010 PR target/88489
16011 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
16012 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
16013 instead of UNSPEC_FIXUPIMM.
16014
16015 2019-01-17 Richard Biener <rguenther@suse.de>
16016
16017 PR lto/86736
16018 * dwarf2out.c (want_pubnames): Never generate pubnames sections
16019 and friends for the LTO part of debug info.
16020
16021 2019-01-17 Jakub Jelinek <jakub@redhat.com>
16022
16023 PR tree-optimization/86214
16024 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
16025 if x == y.
16026
16027 PR rtl-optimization/88870
16028 * dce.c (deletable_insn_p): Never delete const/pure calls that can
16029 throw if we can't alter the cfg or delete dead exceptions.
16030 (mark_insn): Don't call find_call_stack_args for such calls.
16031
16032 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
16033
16034 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
16035 prototypes for vec_st.
16036 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
16037 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
16038 mainly on signed/unsigned long long and double.
16039
16040 2019-01-16 David Malcolm <dmalcolm@redhat.com>
16041
16042 PR target/88861
16043 * combine.c (delete_noop_moves): Convert to "bool" return,
16044 returning true if any edges are eliminated.
16045 (combine_instructions): Also return true if delete_noop_moves
16046 returns true.
16047
16048 2019-01-16 Tamar Christina <tamar.christina@arm.com>
16049
16050 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
16051 correct max nunits for endian swap.
16052 (aarch64_expand_fcmla_builtin): Correct subreg code.
16053 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16054 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
16055 lane endianness.
16056
16057 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
16058
16059 * config/alpha/alpha.c (alpha_gimplify_va_arg):
16060 Handle split indirect COMPLEX_TYPE arguments.
16061
16062 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
16063
16064 PR target/86891
16065 * config/aarch64/aarch64-modes.def: Add comment about how the carry
16066 bit is set by add and compare.
16067 (CC_ADC): New CC_MODE.
16068 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
16069 to cache the code and mode of X. Adjust the shape of a CC_Cmode
16070 comparison. Add detection for CC_ADCmode.
16071 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
16072 CC_ADCmode.
16073 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
16074 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
16075 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
16076 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
16077 to eliminate the need for zero-extending the operands.
16078 (add<mode>3_compareC_imm): Delete. Merge into ...
16079 (add<mode>3_compareC): ... this. Restructure the comparison to
16080 eliminate the need for zero-extending the operands.
16081 (add<mode>3_carryin): Use LTU for the overflow detection.
16082 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
16083 Reexpress comparison for overflow.
16084 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
16085 (add<mode>3_carryinC): Likewise.
16086 (add<mode>3_carryinV): Use LTU for carry between partials.
16087 * config/aarch64/predicates.md (aarch64_carry_operation): Update
16088 handling of CC_Cmode and add CC_ADCmode.
16089 (aarch64_borrow_operation): Likewise.
16090
16091 2019-01-16 Tamar Christina <tamar.christina@arm.com>
16092
16093 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
16094 Remove patternmode.
16095 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
16096 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16097 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
16098 Remove endianness conversion.
16099
16100 2019-01-16 Martin Liska <mliska@suse.cz>
16101
16102 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
16103 for GCC driver.
16104 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
16105 a new argument.
16106 * gcc.c (add_sysrooted_hdrs_prefix): New function.
16107 (path_prefix_reset): Move up in the source file.
16108 (find_fortran_preinclude_file): Make complex search for the
16109 fortran header files.
16110
16111 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
16112
16113 * godump.c (go_output_typedef): When outputting a typedef, refer
16114 to the underlying type by its name and not its structure.
16115
16116 2019-01-15 David Malcolm <dmalcolm@redhat.com>
16117
16118 PR c++/88795
16119 * tree.c (build_function_type): Assert that arg_types is not
16120 error_mark_node.
16121
16122 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
16123
16124 PR inline-asm/52813
16125 * doc/extend.texi: Document that listing the stack pointer in the
16126 clobber list of an asm is a deprecated feature.
16127 * common.opt (Wdeprecated): Moved from c-family/c.opt.
16128 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
16129 warning instead of an error for clobbers of the stack pointer.
16130 Add a note explaining why.
16131
16132 2019-01-15 Richard Biener <rguenther@suse.de>
16133
16134 PR debug/88046
16135 * dwarf2out.c (gen_member_die): Do not generate inheritance
16136 DIEs late.
16137
16138 2019-01-15 Richard Biener <rguenther@suse.de>
16139
16140 PR tree-optimization/88855
16141 * tree-if-conv.c (combine_blocks): Collect
16142 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
16143
16144 2019-01-15 Tom de Vries <tdevries@suse.de>
16145
16146 PR target/80547
16147 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
16148 lhs == NULL_TREE for gang-level reduction.
16149
16150 2019-01-15 Richard Biener <rguenther@suse.de>
16151 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16152
16153 PR ipa/88788
16154 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
16155 return true if SSA_NAME is already marked in visited bitmap.
16156 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
16157
16158 2019-01-15 Jakub Jelinek <jakub@redhat.com>
16159
16160 PR tree-optimization/88775
16161 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
16162 equal == 0 equality pointer comparisons some more if compared in
16163 integral types and either one points to an automatic var and the
16164 other to a global, or we can prove at least one points to the middle
16165 or both point to start or both point to end.
16166
16167 2019-01-14 Andi Kleen <ak@linux.intel.com>
16168
16169 * Makefile.in: Lower autofdo sampling rate by 10x.
16170 * Makefile.tpl: Dito.
16171
16172 2019-01-14 Tom Honermann <tom@honermann.net>
16173
16174 * defaults.h: Define CHAR8_TYPE.
16175
16176 2019-01-14 Martin Sebor <msebor@redhat.com>
16177
16178 PR target/88638
16179 * doc/extend.texi (Darwin Format Checks): Clarify.
16180
16181 2019-01-14 Richard Biener <rguenther@suse.de>
16182
16183 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
16184 whether we are in (simplify ...) or (match ...) context.
16185
16186 2019-01-14 Jakub Jelinek <jakub@redhat.com>
16187
16188 PR rtl-optimization/88796
16189 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
16190 * cfgexpand.c (stack_protect_prologue): Initialize
16191 crtl->stack_protect_guard_decl.
16192 * function.c (stack_protect_epilogue): Use it instead of calling
16193 targetm.stack_protect_guard again.
16194 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
16195 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
16196 crtl->stack_protect_guard_decl.
16197 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
16198 on the returned MEM_EXPR.
16199
16200 2019-01-12 Tom de Vries <tdevries@suse.de>
16201
16202 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
16203 vector length using -fopenacc-dim.
16204
16205 2019-01-12 Tom de Vries <tdevries@suse.de>
16206
16207 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
16208 lengths into account.
16209
16210 2019-01-12 Svante Signell <svante.signell@gmail.com>
16211
16212 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
16213 (TARGET_CAN_SPLIT_STACK): Define.
16214 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
16215
16216 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16217
16218 * params.def (inline-unit-growth): Set to 40.
16219
16220 2019-01-12 Jakub Jelinek <jakub@redhat.com>
16221
16222 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
16223
16224 2019-01-12 Tom de Vries <tdevries@suse.de>
16225
16226 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
16227 region calling vector-partitionable routine, set default_vector_length
16228 to WARP_SIZE.
16229
16230 2019-01-12 Tom de Vries <tdevries@suse.de>
16231
16232 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
16233 variable default_vector_length.
16234
16235 2019-01-12 Tom de Vries <tdevries@suse.de>
16236
16237 PR middle-end/88703
16238 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
16239 from oacc_default_dims, as oacc_validate_dims would do it, and apply
16240 dimensions limits.
16241
16242 2019-01-12 Tom de Vries <tdevries@suse.de>
16243
16244 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
16245 (nvptx_goacc_validate_dims): Add used parameter.
16246 * doc/tm.texi: Regenerate.
16247 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
16248 argument to call to targetm.goacc.validate_dims.
16249 (default_goacc_validate_dims): Add used
16250 parameter.
16251 * target.def (validate_dims): Add used parameter in DEFHOOK.
16252 * targhooks.h (default_goacc_validate_dims): Add used parameter.
16253
16254 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16255
16256 PR middle-end/85956
16257 PR lto/88733
16258 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
16259 field.
16260 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
16261 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
16262 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
16263 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
16264
16265 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
16266
16267 PR rtl-optimization/87305
16268 * lra-assigns.c
16269 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
16270 for little endian pseudos used as paradoxical subreg.
16271
16272 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16273
16274 PR tree-optimization/88693
16275 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
16276 for STRING_CSTs that don't contain any NUL characters in the first
16277 TREE_STRING_LENGTH bytes.
16278
16279 2019-01-11 Alan Modra <amodra@gmail.com>
16280
16281 PR 88777
16282 PR 88614
16283 * genattrtab.c (min_fn): Don't translate values.
16284 (min_attr_value): Return INT_MAX when the value can't be calculated.
16285 Return minimum among any values that can be calculated.
16286 (max_attr_value): Adjust.
16287
16288 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16289
16290 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
16291
16292 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16293
16294 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16295 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
16296 (aarch64_return_call_with_max_clobbers): New function.
16297 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
16298 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
16299 argument.
16300 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
16301 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
16302 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
16303 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
16304 * cselib.c (cselib_process_insn): Add argument to
16305 targetm.hard_regno_call_part_clobbered call.
16306 * ira-conflicts.c (ira_build_conflicts): Ditto.
16307 * ira-costs.c (ira_tune_allocno_costs): Ditto.
16308 * lra-constraints.c (inherit_reload_reg): Ditto.
16309 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
16310 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
16311 argument. Call targetm.return_call_with_max_clobbers.
16312 Add argument to targetm.hard_regno_call_part_clobbered call.
16313 (calls_have_same_clobbers_p): New function.
16314 (process_bb_lives): Add call_insn and last_call_insn variables.
16315 Pass call_insn to check_pseudos_live_through_calls.
16316 Modify if stmt to check targetm.return_call_with_max_clobbers.
16317 Update setting of flush variable.
16318 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
16319 to false.
16320 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
16321 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
16322 targetm.hard_regno_call_part_clobbered call.
16323 * reginfo.c (choose_hard_reg_mode): Ditto.
16324 * regrename.c (check_new_reg_p): Ditto.
16325 * reload.c (find_equiv_reg): Ditto.
16326 * reload1.c (emit_reload_insns): Ditto.
16327 * sched-deps.c (deps_analyze_insn): Ditto.
16328 * sel-sched.c (init_regs_for_mode): Ditto.
16329 (mark_unavailable_hard_regs): Ditto.
16330 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
16331 * target.def (hard_regno_call_part_clobbered): Add insn argument.
16332 (return_call_with_max_clobbers): New target function.
16333 * doc/tm.texi: Regenerate.
16334 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
16335 * hooks.c (hook_bool_uint_mode_false): Change to
16336 hook_bool_insn_uint_mode_false.
16337 * hooks.h (hook_bool_uint_mode_false): Ditto.
16338
16339 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16340
16341 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16342 (aarch64_remove_extra_call_preserved_regs): New function.
16343 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
16344 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
16345 * doc/tm.texi: Regenerate.
16346 * final.c (get_call_reg_set_usage): Call new hook.
16347 * target.def (remove_extra_call_preserved_regs): New hook.
16348 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
16349 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
16350
16351 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16352
16353 PR bootstrap/88714
16354 * passes.c (finish_optimization_passes): Call print_combine_total_stats
16355 inside of pass_combine_1 dump rather than pass_profile_1.
16356
16357 2019-01-11 Tom de Vries <tdevries@suse.de>
16358
16359 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
16360 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
16361 (PTX_NUM_PER_WORKER_BARRIERS): Define.
16362 (nvptx_apply_dim_limits): Prevent vector_length 64 and
16363 num_workers 16.
16364
16365 2019-01-11 Tom de Vries <tdevries@suse.de>
16366
16367 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
16368
16369 2019-01-11 Jan Beulich <jbeulich@suse.com>
16370
16371 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
16372 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
16373 sse2_cvtsi2sd): Add {l}.
16374 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
16375 syntax.
16376
16377 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16378
16379 PR target/88785
16380 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
16381 define_expand.
16382 (*float<floatunssuffix>v2div2sf2): New define_insn.
16383 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
16384 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
16385 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
16386 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
16387 match_operands with "const0_operand" "C".
16388
16389 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16390
16391 * config/aarch64/aarch64-builtins.c
16392 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
16393 (aarch64_init_simd_builtins): ...Here
16394
16395 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
16396
16397 PR rtl-optimization/87305
16398 * lra-assigns.c
16399 (setup_live_pseudos_and_spill_after_risky_transforms): Check
16400 allocation for big endian pseudos used as paradoxical subregs and
16401 spill them if it is wrong.
16402 * lra-constraints.c (lra_constraints): Add a comment.
16403
16404 2019-01-10 Richard Biener <rguenther@suse.de>
16405
16406 PR tree-optimization/88792
16407 * tree-ssa-pre.c (get_representative_for): Do not return a
16408 value-number here.
16409
16410 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16411
16412 PR middle-end/84877
16413 PR bootstrap/88450
16414 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
16415 (assign_parm_setup_block): Do the argument slot realignment here
16416 instead.
16417
16418 2019-01-10 Stefan Agner <stefan@agner.ch>
16419
16420 PR target/88648
16421 * config/arm/arm.c (arm_option_override_internal): Force
16422 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
16423
16424 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16425
16426 PR c/88568
16427 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
16428 DECL_EXTERNAL.
16429
16430 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16431
16432 * config/arm/arm-builtins.c
16433 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
16434 (MAC_LANE_PAIR_QUALIFIERS): New.
16435 (arm_expand_builtin_args): Use it.
16436 (arm_expand_builtin_1): Likewise.
16437 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
16438 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
16439 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
16440 * config/arm/arm_neon.h:
16441 (vcadd_rot90_f16): New.
16442 (vcaddq_rot90_f16): New.
16443 (vcadd_rot270_f16): New.
16444 (vcaddq_rot270_f16): New.
16445 (vcmla_f16): New.
16446 (vcmlaq_f16): New.
16447 (vcmla_lane_f16): New.
16448 (vcmla_laneq_f16): New.
16449 (vcmlaq_lane_f16): New.
16450 (vcmlaq_laneq_f16): New.
16451 (vcmla_rot90_f16): New.
16452 (vcmlaq_rot90_f16): New.
16453 (vcmla_rot90_lane_f16): New.
16454 (vcmla_rot90_laneq_f16): New.
16455 (vcmlaq_rot90_lane_f16): New.
16456 (vcmlaq_rot90_laneq_f16): New.
16457 (vcmla_rot180_f16): New.
16458 (vcmlaq_rot180_f16): New.
16459 (vcmla_rot180_lane_f16): New.
16460 (vcmla_rot180_laneq_f16): New.
16461 (vcmlaq_rot180_lane_f16): New.
16462 (vcmlaq_rot180_laneq_f16): New.
16463 (vcmla_rot270_f16): New.
16464 (vcmlaq_rot270_f16): New.
16465 (vcmla_rot270_lane_f16): New.
16466 (vcmla_rot270_laneq_f16): New.
16467 (vcmlaq_rot270_lane_f16): New.
16468 (vcmlaq_rot270_laneq_f16): New.
16469 (vcadd_rot90_f32): New.
16470 (vcaddq_rot90_f32): New.
16471 (vcadd_rot270_f32): New.
16472 (vcaddq_rot270_f32): New.
16473 (vcmla_f32): New.
16474 (vcmlaq_f32): New.
16475 (vcmla_lane_f32): New.
16476 (vcmla_laneq_f32): New.
16477 (vcmlaq_lane_f32): New.
16478 (vcmlaq_laneq_f32): New.
16479 (vcmla_rot90_f32): New.
16480 (vcmlaq_rot90_f32): New.
16481 (vcmla_rot90_lane_f32): New.
16482 (vcmla_rot90_laneq_f32): New.
16483 (vcmlaq_rot90_lane_f32): New.
16484 (vcmlaq_rot90_laneq_f32): New.
16485 (vcmla_rot180_f32): New.
16486 (vcmlaq_rot180_f32): New.
16487 (vcmla_rot180_lane_f32): New.
16488 (vcmla_rot180_laneq_f32): New.
16489 (vcmlaq_rot180_lane_f32): New.
16490 (vcmlaq_rot180_laneq_f32): New.
16491 (vcmla_rot270_f32): New.
16492 (vcmlaq_rot270_f32): New.
16493 (vcmla_rot270_lane_f32): New.
16494 (vcmla_rot270_laneq_f32): New.
16495 (vcmlaq_rot270_lane_f32): New.
16496 (vcmlaq_rot270_laneq_f32): New.
16497 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
16498 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
16499 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16500 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16501 vcmlaq_lane270): New.
16502 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16503 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16504 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16505 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16506 (arm_option_reconfigure_globals): Use them.
16507 * config/arm/iterators.md (VDF, VQ_HSF): New.
16508 (VCADD, VCMLA): New.
16509 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16510 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16511 New.
16512 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16513 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16514
16515 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16516
16517 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16518 Add qualifier_lane_pair_index.
16519 (emit-rtl.h): Include.
16520 (TYPES_QUADOP_LANE_PAIR): New.
16521 (aarch64_simd_expand_args): Use it.
16522 (aarch64_simd_expand_builtin): Likewise.
16523 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16524 New.
16525 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16526 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16527 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16528 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16529 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16530 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16531 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16532 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16533 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16534 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16535 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16536 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16537 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16538 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16539 Add __ARM_FEATURE_COMPLEX.
16540 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16541 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16542 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16543 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16544 fcmlaq_lane270): New.
16545 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16546 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16547 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16548 * config/aarch64/arm_neon.h:
16549 (vcadd_rot90_f16): New.
16550 (vcaddq_rot90_f16): New.
16551 (vcadd_rot270_f16): New.
16552 (vcaddq_rot270_f16): New.
16553 (vcmla_f16): New.
16554 (vcmlaq_f16): New.
16555 (vcmla_lane_f16): New.
16556 (vcmla_laneq_f16): New.
16557 (vcmlaq_lane_f16): New.
16558 (vcmlaq_rot90_lane_f16): New.
16559 (vcmla_rot90_laneq_f16): New.
16560 (vcmla_rot90_lane_f16): New.
16561 (vcmlaq_rot90_f16): New.
16562 (vcmla_rot90_f16): New.
16563 (vcmlaq_laneq_f16): New.
16564 (vcmla_rot180_laneq_f16): New.
16565 (vcmla_rot180_lane_f16): New.
16566 (vcmlaq_rot180_f16): New.
16567 (vcmla_rot180_f16): New.
16568 (vcmlaq_rot90_laneq_f16): New.
16569 (vcmlaq_rot270_laneq_f16): New.
16570 (vcmlaq_rot270_lane_f16): New.
16571 (vcmla_rot270_laneq_f16): New.
16572 (vcmlaq_rot270_f16): New.
16573 (vcmla_rot270_f16): New.
16574 (vcmlaq_rot180_laneq_f16): New.
16575 (vcmlaq_rot180_lane_f16): New.
16576 (vcmla_rot270_lane_f16): New.
16577 (vcadd_rot90_f32): New.
16578 (vcaddq_rot90_f32): New.
16579 (vcaddq_rot90_f64): New.
16580 (vcadd_rot270_f32): New.
16581 (vcaddq_rot270_f32): New.
16582 (vcaddq_rot270_f64): New.
16583 (vcmla_f32): New.
16584 (vcmlaq_f32): New.
16585 (vcmlaq_f64): New.
16586 (vcmla_lane_f32): New.
16587 (vcmla_laneq_f32): New.
16588 (vcmlaq_lane_f32): New.
16589 (vcmlaq_laneq_f32): New.
16590 (vcmla_rot90_f32): New.
16591 (vcmlaq_rot90_f32): New.
16592 (vcmlaq_rot90_f64): New.
16593 (vcmla_rot90_lane_f32): New.
16594 (vcmla_rot90_laneq_f32): New.
16595 (vcmlaq_rot90_lane_f32): New.
16596 (vcmlaq_rot90_laneq_f32): New.
16597 (vcmla_rot180_f32): New.
16598 (vcmlaq_rot180_f32): New.
16599 (vcmlaq_rot180_f64): New.
16600 (vcmla_rot180_lane_f32): New.
16601 (vcmla_rot180_laneq_f32): New.
16602 (vcmlaq_rot180_lane_f32): New.
16603 (vcmlaq_rot180_laneq_f32): New.
16604 (vcmla_rot270_f32): New.
16605 (vcmlaq_rot270_f32): New.
16606 (vcmlaq_rot270_f64): New.
16607 (vcmla_rot270_lane_f32): New.
16608 (vcmla_rot270_laneq_f32): New.
16609 (vcmlaq_rot270_lane_f32): New.
16610 (vcmlaq_rot270_laneq_f32): New.
16611 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16612 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16613 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16614 (FCADD, FCMLA): New.
16615 (rot): New.
16616 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16617
16618 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16619
16620 PR other/16615
16621
16622 * config/pa/pa.c: Change "can not" to "cannot".
16623 * gimple-ssa-evrp-analyze.c: Likewise.
16624 * ipa-icf.c: Likewise.
16625 * ipa-polymorphic-call.c: Likewise.
16626 * ipa-pure-const.c: Likewise.
16627 * lra-constraints.c: Likewise.
16628 * lra-remat.c: Likewise.
16629 * reload1.c: Likewise.
16630 * reorg.c: Likewise.
16631 * tree-ssa-uninit.c: Likewise.
16632
16633 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16634
16635 PR other/16615
16636
16637 * Makefile.in: Mechanically replace "can not" with "cannot".
16638 * alias.c: Likewise.
16639 * builtins.c: Likewise.
16640 * calls.c: Likewise.
16641 * cgraph.c: Likewise.
16642 * cgraph.h: Likewise.
16643 * cgraphclones.c: Likewise.
16644 * cgraphunit.c: Likewise.
16645 * combine-stack-adj.c: Likewise.
16646 * combine.c: Likewise.
16647 * common/config/i386/i386-common.c: Likewise.
16648 * config/aarch64/aarch64.c: Likewise.
16649 * config/alpha/sync.md: Likewise.
16650 * config/arc/arc.c: Likewise.
16651 * config/arc/predicates.md: Likewise.
16652 * config/arm/arm-c.c: Likewise.
16653 * config/arm/arm.c: Likewise.
16654 * config/arm/arm.h: Likewise.
16655 * config/arm/arm.md: Likewise.
16656 * config/arm/cortex-r4f.md: Likewise.
16657 * config/csky/csky.c: Likewise.
16658 * config/csky/csky.h: Likewise.
16659 * config/darwin-f.c: Likewise.
16660 * config/epiphany/epiphany.md: Likewise.
16661 * config/i386/i386.c: Likewise.
16662 * config/i386/sol2.h: Likewise.
16663 * config/m68k/m68k.c: Likewise.
16664 * config/mcore/mcore.h: Likewise.
16665 * config/microblaze/microblaze.md: Likewise.
16666 * config/mips/20kc.md: Likewise.
16667 * config/mips/sb1.md: Likewise.
16668 * config/nds32/nds32.c: Likewise.
16669 * config/nds32/predicates.md: Likewise.
16670 * config/pa/pa.c: Likewise.
16671 * config/rs6000/e300c2c3.md: Likewise.
16672 * config/rs6000/rs6000.c: Likewise.
16673 * config/s390/s390.h: Likewise.
16674 * config/sh/sh.c: Likewise.
16675 * config/sh/sh.md: Likewise.
16676 * config/spu/vmx2spu.h: Likewise.
16677 * cprop.c: Likewise.
16678 * dbxout.c: Likewise.
16679 * df-scan.c: Likewise.
16680 * doc/cfg.texi: Likewise.
16681 * doc/extend.texi: Likewise.
16682 * doc/fragments.texi: Likewise.
16683 * doc/gty.texi: Likewise.
16684 * doc/invoke.texi: Likewise.
16685 * doc/lto.texi: Likewise.
16686 * doc/md.texi: Likewise.
16687 * doc/objc.texi: Likewise.
16688 * doc/rtl.texi: Likewise.
16689 * doc/tm.texi: Likewise.
16690 * dse.c: Likewise.
16691 * emit-rtl.c: Likewise.
16692 * emit-rtl.h: Likewise.
16693 * except.c: Likewise.
16694 * expmed.c: Likewise.
16695 * expr.c: Likewise.
16696 * fold-const.c: Likewise.
16697 * genautomata.c: Likewise.
16698 * gimple-fold.c: Likewise.
16699 * hard-reg-set.h: Likewise.
16700 * ifcvt.c: Likewise.
16701 * ipa-comdats.c: Likewise.
16702 * ipa-cp.c: Likewise.
16703 * ipa-devirt.c: Likewise.
16704 * ipa-fnsummary.c: Likewise.
16705 * ipa-icf.c: Likewise.
16706 * ipa-inline-transform.c: Likewise.
16707 * ipa-inline.c: Likewise.
16708 * ipa-polymorphic-call.c: Likewise.
16709 * ipa-profile.c: Likewise.
16710 * ipa-prop.c: Likewise.
16711 * ipa-pure-const.c: Likewise.
16712 * ipa-reference.c: Likewise.
16713 * ipa-split.c: Likewise.
16714 * ipa-visibility.c: Likewise.
16715 * ipa.c: Likewise.
16716 * ira-build.c: Likewise.
16717 * ira-color.c: Likewise.
16718 * ira-conflicts.c: Likewise.
16719 * ira-costs.c: Likewise.
16720 * ira-int.h: Likewise.
16721 * ira-lives.c: Likewise.
16722 * ira.c: Likewise.
16723 * ira.h: Likewise.
16724 * loop-invariant.c: Likewise.
16725 * loop-unroll.c: Likewise.
16726 * lower-subreg.c: Likewise.
16727 * lra-assigns.c: Likewise.
16728 * lra-constraints.c: Likewise.
16729 * lra-eliminations.c: Likewise.
16730 * lra-lives.c: Likewise.
16731 * lra-remat.c: Likewise.
16732 * lra-spills.c: Likewise.
16733 * lra.c: Likewise.
16734 * lto-cgraph.c: Likewise.
16735 * lto-streamer-out.c: Likewise.
16736 * postreload-gcse.c: Likewise.
16737 * predict.c: Likewise.
16738 * profile-count.h: Likewise.
16739 * profile.c: Likewise.
16740 * recog.c: Likewise.
16741 * ree.c: Likewise.
16742 * reload.c: Likewise.
16743 * reload1.c: Likewise.
16744 * reorg.c: Likewise.
16745 * resource.c: Likewise.
16746 * rtl.def: Likewise.
16747 * rtl.h: Likewise.
16748 * rtlanal.c: Likewise.
16749 * sched-deps.c: Likewise.
16750 * sched-ebb.c: Likewise.
16751 * sched-rgn.c: Likewise.
16752 * sel-sched-ir.c: Likewise.
16753 * sel-sched.c: Likewise.
16754 * shrink-wrap.c: Likewise.
16755 * simplify-rtx.c: Likewise.
16756 * symtab.c: Likewise.
16757 * target.def: Likewise.
16758 * toplev.c: Likewise.
16759 * tree-call-cdce.c: Likewise.
16760 * tree-cfg.c: Likewise.
16761 * tree-complex.c: Likewise.
16762 * tree-core.h: Likewise.
16763 * tree-eh.c: Likewise.
16764 * tree-inline.c: Likewise.
16765 * tree-loop-distribution.c: Likewise.
16766 * tree-nrv.c: Likewise.
16767 * tree-profile.c: Likewise.
16768 * tree-sra.c: Likewise.
16769 * tree-ssa-alias.c: Likewise.
16770 * tree-ssa-dce.c: Likewise.
16771 * tree-ssa-dom.c: Likewise.
16772 * tree-ssa-forwprop.c: Likewise.
16773 * tree-ssa-loop-im.c: Likewise.
16774 * tree-ssa-loop-ivcanon.c: Likewise.
16775 * tree-ssa-loop-ivopts.c: Likewise.
16776 * tree-ssa-loop-niter.c: Likewise.
16777 * tree-ssa-phionlycprop.c: Likewise.
16778 * tree-ssa-phiopt.c: Likewise.
16779 * tree-ssa-propagate.c: Likewise.
16780 * tree-ssa-threadedge.c: Likewise.
16781 * tree-ssa-threadupdate.c: Likewise.
16782 * tree-ssa-uninit.c: Likewise.
16783 * tree-ssanames.c: Likewise.
16784 * tree-streamer-out.c: Likewise.
16785 * tree.c: Likewise.
16786 * tree.h: Likewise.
16787 * vr-values.c: Likewise.
16788
16789 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
16790
16791 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
16792 (ix86_split_xorsign): Ditto.
16793 * config/i386/i386.c (ix86_expand_xorsign): New function.
16794 (ix86_split_xorsign): Ditto.
16795 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
16796 (xorsign<mode>3): New expander.
16797 (xorsign<mode>3_1): New insn_and_split pattern.
16798 * config/i386/sse.md (xorsign<mode>3): New expander.
16799
16800 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16801
16802 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
16803 (*tablejump_sp64): Likewise.
16804 (*tablejump<P:mode>): ...this.
16805 (*call_address_sp32): Merge into...
16806 (*call_address_sp64): Likewise.
16807 (*call_address<P:mode>): ...this.
16808 (*call_symbolic_sp32): Merge into...
16809 (*call_symbolic_sp64): Likewise.
16810 (*call_symbolic<P:mode>): ...this.
16811 (call_value): Remove constraint and add predicate.
16812 (*call_value_address_sp32): Merge into...
16813 (*call_value_address_sp64): Likewise.
16814 (*call_value_address<P:mode>): ...this.
16815 (*call_value_symbolic_sp32): Merge into...
16816 (*call_value_symbolic_sp64): Likewise.
16817 (*call_value_symbolic<P:mode>): ...this.
16818 (*sibcall_symbolic_sp32): Merge into...
16819 (*sibcall_symbolic_sp64): Likewise.
16820 (*sibcall_symbolic<P:mode>): ...this.
16821 (sibcall_value): Remove constraint and add predicate.
16822 (*sibcall_value_symbolic_sp32): Merge into...
16823 (*sibcall_value_symbolic_sp64): Likewise.
16824 (*sibcall_value_symbolic<P:mode>): ...this.
16825 (window_save): Minor tweak.
16826 (*branch_sp32): Merge into...
16827 (*branch_sp64): Likewise.
16828 (*branch<P:mode>): ...this.
16829
16830 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16831 James Clarke <jrtc27@jrtc27.com>
16832
16833 PR target/84010
16834 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
16835 consistently in TLS address generation and adjust code to the renaming
16836 of patterns. Mark calls to __tls_get_addr as const.
16837 * config/sparc/sparc.md (tgd_hi22): Turn into...
16838 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
16839 (tgd_lo10): Turn into...
16840 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
16841 (tgd_add32): Merge into...
16842 (tgd_add64): Likewise.
16843 (tgd_add<P:mode>): ...this and use Pmode throughout.
16844 (tldm_hi22): Turn into...
16845 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
16846 (tldm_lo10): Turn into...
16847 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
16848 (tldm_add32): Merge into...
16849 (tldm_add64): Likewise.
16850 (tldm_add<P:mode>): ...this and use Pmode throughout.
16851 (tldm_call32): Merge into...
16852 (tldm_call64): Likewise.
16853 (tldm_call<P:mode>): ...this and use Pmode throughout.
16854 (tldo_hix22): Turn into...
16855 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
16856 (tldo_lox10): Turn into...
16857 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
16858 (tldo_add32): Merge into...
16859 (tldo_add64): Likewise.
16860 (tldo_add<P:mode>): ...this and use Pmode throughout.
16861 (tie_hi22): Turn into...
16862 (tie_hi22<P:mode>): ...this and use Pmode throughout.
16863 (tie_lo10): Turn into...
16864 (tie_lo10<P:mode>): ...this and use Pmode throughout.
16865 (tie_ld64): Use DImode throughout.
16866 (tie_add32): Merge into...
16867 (tie_add64): Likewise.
16868 (tie_add<P:mode>): ...this and use Pmode throughout.
16869 (tle_hix22_sp32): Merge into...
16870 (tle_hix22_sp64): Likewise.
16871 (tle_hix22<P:mode>): ...this and use Pmode throughout.
16872 (tle_lox22_sp32): Merge into...
16873 (tle_lox22_sp64): Likewise.
16874 (tle_lox22<P:mode>): ...this and use Pmode throughout.
16875 (*tldo_ldub_sp32): Merge into...
16876 (*tldo_ldub_sp64): Likewise.
16877 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
16878 (*tldo_ldub1_sp32): Merge into...
16879 (*tldo_ldub1_sp64): Likewise.
16880 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
16881 (*tldo_ldub2_sp32): Merge into...
16882 (*tldo_ldub2_sp64): Likewise.
16883 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
16884 (*tldo_ldsb1_sp32): Merge into...
16885 (*tldo_ldsb1_sp64): Likewise.
16886 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
16887 (*tldo_ldsb2_sp32): Merge into...
16888 (*tldo_ldsb2_sp64): Likewise.
16889 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
16890 (*tldo_ldub3_sp64): Use DImode throughout.
16891 (*tldo_ldsb3_sp64): Likewise.
16892 (*tldo_lduh_sp32): Merge into...
16893 (*tldo_lduh_sp64): Likewise.
16894 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
16895 (*tldo_lduh1_sp32): Merge into...
16896 (*tldo_lduh1_sp64): Likewise.
16897 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
16898 (*tldo_ldsh1_sp32): Merge into...
16899 (*tldo_ldsh1_sp64): Likewise.
16900 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
16901 (*tldo_lduh2_sp64): Use DImode throughout.
16902 (*tldo_ldsh2_sp64): Likewise.
16903 (*tldo_lduw_sp32): Merge into...
16904 (*tldo_lduw_sp64): Likewise.
16905 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
16906 (*tldo_lduw1_sp64): Use DImode throughout.
16907 (*tldo_ldsw1_sp64): Likewise.
16908 (*tldo_ldx_sp64): Likewise.
16909 (*tldo_stb_sp32): Merge into...
16910 (*tldo_stb_sp64): Likewise.
16911 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
16912 (*tldo_sth_sp32): Merge into...
16913 (*tldo_sth_sp64): Likewise.
16914 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
16915 (*tldo_stw_sp32): Merge into...
16916 (*tldo_stw_sp64): Likewise.
16917 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
16918 (*tldo_stx_sp64): Use DImode throughout.
16919
16920 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16921
16922 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
16923 check configure option to set BTI and Return Address Signing.
16924 * configure.ac: Add --enable-standard-branch-protection and
16925 --disable-standard-branch-protection.
16926 * configure: Regenerated.
16927 * doc/install.texi: Document the same.
16928
16929 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16931
16932 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
16933 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
16934 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
16935 if bti is enabled.
16936 * config/aarch64/aarch64-bti-insert.c: New file.
16937 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
16938 pass.
16939 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
16940 new bti pass.
16941 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
16942 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
16943 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
16944 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
16945
16946 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16947
16948 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
16949 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
16950 Disable bti for -mbranch-protection=none.
16951 (aarch64_handle_standard_branch_protection): Enable bti for
16952 -mbranch-protection=standard.
16953 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
16954 -mbranch-protection.
16955 (aarch64_bti_enabled): Check if bti is enabled.
16956 * config/aarch64/aarch64.opt: Declare target variable.
16957 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
16958
16959 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16960
16961 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
16962 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
16963 (aarch64_expand_epilogue): Likewise.
16964 (aarch64_output_mi_thunk): Likewise
16965 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
16966 TAILCALL_ADDR_REGS to x16 and x17.
16967 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
16968
16969 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16970
16971 * config/aarch64/aarch64-option-extensions.def: Define
16972 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
16973 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
16974 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
16975 (AARCH64_FL_PREDRES): New.
16976 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
16977 AARCH64_FL_PREDRES by default.
16978 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
16979
16980 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16981
16982 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
16983 ARMv8.5-A.
16984 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
16985 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
16986 * doc/invoke.texi: Document ARMv8.5-A.
16987
16988 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16989
16990 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
16991 (xorsign<mode>3): Likewise.
16992
16993 2019-01-09 Jelinek <jakub@redhat.com>
16994
16995 PR middle-end/88758
16996 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
16997 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
16998
16999 PR rtl-optimization/88331
17000 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
17001 not currently_expanding_to_rtl.
17002
17003 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
17004
17005 * doc/invoke.texi (-Os): Remove trailing spaces.
17006 (-finline-functions): Remove reference to -O2.
17007
17008 2019-01-08 Jakub Jelinek <jakub@redhat.com>
17009
17010 PR rtl-optimization/79593
17011 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
17012
17013 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
17014 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
17015
17016 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
17017
17018 PR bootstrap/88721
17019 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
17020 to -1 on entry.
17021
17022 PR debug/88723
17023 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
17024 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
17025
17026 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
17027
17028 PR target/88717
17029 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
17030 ix86_avx_u128_mode_entry.
17031
17032 2019-01-08 Martin Liska <mliska@suse.cz>
17033
17034 PR tree-optimization/88753
17035 * tree-switch-conversion.c (switch_conversion::build_one_array):
17036 Come up with local variable constructor. Convert first to
17037 type of constructor values.
17038
17039 2019-01-08 Richard Biener <rguenther@suse.de>
17040
17041 PR tree-optimization/86554
17042 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
17043 rpo_avail): Move earlier.
17044 (visit_nary_op): When value-numbering to expressions
17045 with different overflow behavior make sure there's an
17046 available expression on the path.
17047
17048 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
17049
17050 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
17051 aarch64_parse_branch_protection,
17052 struct aarch64_branch_protect_type,
17053 aarch64_handle_no_branch_protection,
17054 aarch64_handle_standard_branch_protection,
17055 aarch64_validate_mbranch_protection,
17056 aarch64_handle_pac_ret_protection,
17057 aarch64_handle_attr_branch_protection,
17058 accepted_branch_protection_string,
17059 aarch64_pac_ret_subtypes,
17060 aarch64_branch_protect_types,
17061 aarch64_handle_pac_ret_leaf): Define.
17062 (aarch64_override_options_after_change_1, aarch64_override_options):
17063 Add check for accepted_branch_protection_string.
17064 (aarch64_option_save): Save accepted_branch_protection_string.
17065 (aarch64_option_restore): Save accepted_branch_protection_string.
17066 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
17067 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
17068 msign-return-address.
17069 * doc/invoke.texi: Add mbranch-protection.
17070
17071 2019-01-08 Alan Modra <amodra@gmail.com>
17072
17073 PR target/88614
17074 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
17075 Delete "unknownp" parameter. Adjust callers. Handle
17076 CONST_INT, PLUS, MINUS, and MULT.
17077 (attr_value_aligned): Renamed from or_attr_value.
17078 (min_attr_value): Return INT_MIN for unhandled rtl case..
17079 (min_fn): ..and translate to INT_MAX here.
17080 (write_length_unit_log): Modify to cope without "unknown".
17081 (write_attr_value): Handle IF_THEN_ELSE.
17082
17083 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17084
17085 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
17086 optimization for masked stores.
17087
17088 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17089
17090 PR middle-end/88567
17091 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
17092 output vector directly to duplicate_and_interleave instead of
17093 going through a temporary. Postpone insertion of ctor_seq to
17094 the end of the loop.
17095
17096 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
17097
17098 PR target/86891
17099 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
17100 unsigned_p. Handle signed and unsigned overflow correction as
17101 required.
17102 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
17103 prototype.
17104 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
17105 for operand 2.
17106 (add<mode>3_compareV_imm): Make this callable for expanding.
17107 (subv<GPI:mode>4): Use register_operand for operand 1. Use
17108 aarch64_plus_operand for operand 2.
17109 (subv<GPI:mode>_insn): New insn pattern.
17110 (subv<GPI:mode>_imm): Likewise.
17111 (negv<GPI:mode>3): New expand pattern.
17112 (negv<GPI:mode>_insn): New insn pattern.
17113 (negv<GPI:mode>_cmp_only): Likewise.
17114 (cmpv<GPI:mode>_insn): Likewise.
17115 (subvti4): Use register_operand for operand 1. Update call to
17116 aarch64_expand_subvti.
17117 (usubvti4): Likewise.
17118 (negvti3): New expand pattern.
17119 (negdi_carryout): New insn pattern.
17120 (negvdi_carryinV): New insn pattern.
17121 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
17122 version the named version.
17123 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
17124 operands.
17125 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
17126 patterns.
17127 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
17128 patterns.
17129 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
17130 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
17131 (sub<mode>3_carryinCV): Delete.
17132 (sub<GPI:mode>3_carryinV): New expand pattern.
17133 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
17134
17135 2019-01-07 Richard Biener <rguenther@suse.de>
17136
17137 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
17138 of tree_operand_hash.
17139
17140 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17141
17142 PR tree-optimization/88598
17143 * tree.h (single_nonzero_element): Declare.
17144 * tree.c (single_nonzero_element): New function.
17145 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
17146 if I is the only nonzero element of CST.
17147
17148 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17149
17150 PR tree-optimization/88598
17151 * tree.h (initializer_each_zero_or_onep): Declare.
17152 * tree.c (initializer_each_zero_or_onep): New function.
17153 (signed_or_unsigned_type_for): Handle float types too.
17154 (unsigned_type_for, signed_type_for): Update comments accordingly.
17155 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
17156 x & { 0 or -1, 0 or -1, ... }.
17157
17158 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
17159
17160 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
17161 with x86_64-pc-linux-gnu.
17162
17163 2019-01-07 Tom de Vries <tdevries@suse.de>
17164
17165 PR target/85486
17166 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
17167 function.
17168 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
17169 routines.
17170
17171 2019-01-07 Jakub Jelinek <jakub@redhat.com>
17172
17173 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
17174 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
17175 TARGET_AVX512F as condition.
17176
17177 PR debug/88723
17178 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
17179 const_not_ok_for_debug_p target hook.
17180 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
17181 on UNSPEC and subexpressions thereof if all subexpressions of the
17182 UNSPEC are CONSTANT_P.
17183
17184 PR tree-optimization/88676
17185 * tree-ssa-phiopt.c (two_value_replacement): New function.
17186 (tree_ssa_phiopt_worker): Call it.
17187
17188 PR sanitizer/88619
17189 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
17190 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
17191
17192 PR c++/85052
17193 * tree-vect-generic.c: Include insn-config.h and recog.h.
17194 (expand_vector_piecewise): Add defaulted ret_type argument,
17195 if non-NULL, use that in preference to type for the result type.
17196 (expand_vector_parallel): Formatting fix.
17197 (do_vec_conversion, do_vec_narrowing_conversion,
17198 expand_vector_conversion): New functions.
17199 (expand_vector_operations_1): Call expand_vector_conversion
17200 for VEC_CONVERT ifn calls.
17201 * internal-fn.def (VEC_CONVERT): New internal function.
17202 * internal-fn.c (expand_VEC_CONVERT): New function.
17203 * fold-const-call.c (fold_const_vec_convert): New function.
17204 (fold_const_call): Use it for CFN_VEC_CONVERT.
17205 * doc/extend.texi (__builtin_convertvector): Document.
17206
17207 2019-01-07 Tom de Vries <tdevries@suse.de>
17208
17209 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
17210 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
17211 vector_red_partition, vector_red_sym): New global variables.
17212 (nvptx_option_override): Initialize vector_red_sym.
17213 (nvptx_declare_function_name): Restore red_partition register.
17214 (nvptx_file_end): Emit code to declare the vector reduction variables.
17215 (nvptx_output_red_partition): New function.
17216 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
17217 large vector reductions.
17218 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
17219 (nvptx_init_builtins): Add VECTOR_ADDR.
17220 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
17221 Handle nvptx_expand_shared_addr.
17222 (nvptx_get_shared_red_addr): Add vector argument and handle large
17223 vectors.
17224 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
17225 large vectors.
17226 (nvptx_goacc_reduction_init): Likewise.
17227 (nvptx_goacc_reduction_fini): Likewise.
17228 (nvptx_goacc_reduction_teardown): Likewise.
17229 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
17230 init,fini,teardown}.
17231 (nvptx_init_axis_predicate): Initialize vector_red_partition.
17232 (nvptx_set_current_function): Init vector_red_partition.
17233 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
17234 (nvptx_red_partition): New insn.
17235 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
17236
17237 2019-01-07 Tom de Vries <tdevries@suse.de>
17238
17239 PR target/85381
17240 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
17241 empty loops.
17242
17243 2019-01-07 Tom de Vries <tdevries@suse.de>
17244
17245 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
17246 (nvptx_option_override): Init oacc_bcast_partition.
17247 (nvptx_init_oacc_workers): New function.
17248 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
17249 (nvptx_needs_shared_bcast): New function.
17250 (nvptx_find_par): Generalize to enable vectors to use shared-memory
17251 to propagate state.
17252 (nvptx_shared_propagate): Initialize vector bcast partition and
17253 synchronization state.
17254 (nvptx_single): Generalize to enable vectors to use shared-memory
17255 to propagate state.
17256 (nvptx_process_pars): Likewise.
17257 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
17258 * config/nvptx/nvptx.h (struct machine_function): Add
17259 bcast_partition and sync_bar members.
17260
17261 2019-01-07 Tom de Vries <tdevries@suse.de>
17262
17263 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
17264 (nvptx_apply_dim_limits): New function.
17265 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
17266 PTX_WARP_SIZE.
17267
17268 2019-01-07 Tom de Vries <tdevries@suse.de>
17269
17270 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
17271 as late as possible.
17272
17273 2019-01-07 Tom de Vries <tdevries@suse.de>
17274
17275 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
17276 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
17277 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
17278 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
17279 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
17280
17281 2019-01-07 Tom de Vries <tdevries@suse.de>
17282
17283 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
17284
17285 2019-01-07 Tom de Vries <tdevries@suse.de>
17286
17287 * omp-offload.c (oacc_get_min_dim): New function.
17288 * omp-offload.h (oacc_get_min_dim): Declare.
17289
17290 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
17291
17292 PR target/88521
17293 * config/i386/i386.c (function_value_ms_64): Return small sturct in
17294 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
17295
17296 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17297
17298 PR tree-opt/86020
17299 Revert:
17300 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
17301
17302 * ipa-inline.c (edge_badness): Use inlined_time instead of
17303 inline_summaries->get.
17304
17305 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17306
17307 * opts.c (enable_fdo_optimizations): Enable
17308 version-loops-for-strides, loop-interchange, unrol-and-jam
17309 and tree-loop-distribution.
17310 * invoke.texi: Document newly enabled options.
17311
17312 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17313
17314 * doc/invoke.texi (max-inline-insns-small): New parameters.
17315 * ipa-inline.c (want_early_inline_function_p): simplify.
17316 (want_inline_small_function_p): Fix pasto from previous patch;
17317 use max-inline-insns-small bound.
17318 * params.def (max-inline-insns-small): New param.
17319 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
17320 variables correctly.
17321
17322 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17323
17324 * doc/invoke.texi: Document max-inline-insns-size,
17325 uninlined-function-insns, uninlined-function-time,
17326 uninlined-thunk-insns and uninlined-thunk-time.
17327 * params.def: Add max-inline-insns-size,
17328 uninlined-function-insns, uninlined-function-time,
17329 uninlined-thunk-insns and uninlined-thunk-time.
17330 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
17331 new parameters.
17332 * ipa-inline.c (can_inline_edge_by_limits_p,
17333 want_inline_small_function_p): Use new parameters.
17334
17335 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17336
17337 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
17338
17339 2019-01-05 Jakub Jelinek <jakub@redhat.com>
17340
17341 PR middle-end/82564
17342 PR target/88620
17343 * expr.c (expand_assignment): For calls returning VLA structures
17344 if to_rtx is not a MEM, force it into a stack temporary.
17345
17346 PR debug/88635
17347 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
17348 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
17349 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
17350 subexpressions of both operands.
17351 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
17352 subrtxes are CONSTANT_P.
17353 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
17354 2018-11-09 changes.
17355
17356 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
17357
17358 * params.def (hot-bb-count-ws-permille): Set to 990.
17359
17360 2019-01-04 Martin Sebor <msebor@redhat.com>
17361
17362 PR c/88546
17363 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
17364 leaf.
17365
17366 2019-01-04 Martin Sebor <msebor@redhat.com>
17367
17368 PR c/88363
17369 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
17370
17371 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17372
17373 * gdbinit.in: Turn off pagination for the skip commands, restore
17374 it to previous state afterwards.
17375
17376 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17377
17378 PR target/88594
17379 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
17380 of GET_MODE (opN) as modes of the libcall arguments.
17381
17382 2019-01-04 Jan Beulich <jbeulich@suse.com>
17383
17384 * config/i386/sse.md
17385 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
17386 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
17387 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17388 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17389 avx512f_vmcmp<mode>3<round_saeonly_name>,
17390 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
17391 avx512f_maskcmp<mode>3,
17392 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17393 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17394 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17395 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17396 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17397 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17398 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17399 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17400 <avx512>_testm<mode>3<mask_scalar_merge_name>,
17401 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
17402 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
17403 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
17404 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
17405 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
17406 avx512cd_maskb_vec_dup<mode>,
17407 avx512cd_maskw_vec_dup<mode>,
17408 avx512dq_fpclass<mode><mask_scalar_merge_name>,
17409 avx512dq_vmfpclass<mode>,
17410 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
17411 instead of =Yk.
17412
17413 2019-01-03 Martin Sebor <msebor@redhat.com>
17414
17415 PR tree-optimization/88659
17416 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
17417
17418 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17419
17420 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
17421 unaligned vsx and avoid lxvd2x/stxvd2x.
17422 (gen_lvx_v4si_move): New function.
17423
17424 2019-01-03 Tom de Vries <tdevries@suse.de>
17425
17426 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
17427 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
17428 function.
17429 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
17430
17431 2019-01-03 Tom de Vries <tdevries@suse.de>
17432
17433 * config/nvptx/nvptx.c (struct offload_attrs): New.
17434 (populate_offload_attrs): New function. Factor mask extraction out of
17435 nvptx_reorg. Add extraction of dimensions.
17436 (nvptx_reorg): Use populate_offload_attrs.
17437
17438 2019-01-03 Tom de Vries <tdevries@suse.de>
17439
17440 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
17441 cases for oacc_min_dims_p and routine_p. Add asserts for
17442 oacc_default_dims_p and offload_region_p.
17443
17444 2019-01-03 Tom de Vries <tdevries@suse.de>
17445
17446 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
17447 factored out of ...
17448 (nvptx_goacc_validate_dims): ... here.
17449
17450 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17451
17452 PR tree-optimization/85574
17453 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
17454 structure.
17455 (struct ssa_equip_hash_traits): Declare.
17456 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
17457
17458 2019-01-03 Jakub Jelinek <jakub@redhat.com>
17459
17460 PR debug/88644
17461 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
17462 change it to qualified_type.
17463
17464 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17465
17466 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
17467 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
17468
17469 2019-01-02 Martin Sebor <msebor@redhat.com>
17470 Jeff Law <law@redhat.com>
17471
17472 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
17473 (get_range_strlen_tree): Update appropriately.
17474 (get_range_strlen)
17475 * gimple-fold.h (get_range_strlen): Drop unused last argument.
17476
17477 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
17478 rather than set_range_info.
17479 * tree-ssa-strlen.c (set_strlen_range): Extracted from
17480 maybe_set_strlen_range. Handle potentially boundary crossing
17481 cases more conservatively.
17482 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
17483 Call set_strlen_range.
17484 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
17485
17486 PR middle-end/88663
17487 * gimple-fold.c (get_range_strlen): Update prototype to no longer
17488 need the flexp argument.
17489 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
17490 from calls to get_range_strlen. Update comments. Just update
17491 VAL for an unterminated const char array and let the reset of the
17492 code handle it normally. No longer try to set *flexp. Adjust
17493 return value.
17494 (get_range_strlen): Update for the new get_range_strlen API.
17495 (get_maxval_strlen): Similarly.
17496 (gimple_fold_builtin_strlen): Handle update meaning of return value
17497 from get_range_strlen.
17498 * gimple-ssa-sprintf.c (get_string_length): Update for the new
17499 get_range_strlen API.
17500
17501 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
17502
17503 PR lto/88130
17504 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17505 false at WPA time when body was removed.
17506
17507 2019-01-02 Martin Liska <mliska@suse.cz>
17508
17509 PR tree-optimization/88650
17510 * predict.c (set_even_probabilities): Calculate probability
17511 remainer only when really used.
17512
17513 2019-01-02 Richard Biener <rguenther@suse.de>
17514
17515 PR middle-end/88651
17516 * tree-data-ref.c (analyze_subscript_affine_affine): Use
17517 widest_ints when mangling max_stmt_execution results.
17518
17519 2019-01-02 Richard Biener <rguenther@suse.de>
17520
17521 PR tree-optimization/88621
17522 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17523 bitfields when canoncalizing.
17524
17525 2019-01-02 Richard Biener <rguenther@suse.de>
17526
17527 PR target/87545
17528 * config/i386/x86-tune-costs.h (intel_cost): Adjust
17529 cost of cheap SSE instruction.
17530
17531 2019-01-02 Richard Biener <rguenther@suse.de>
17532
17533 PR ipa/85574
17534 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17535 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17536 function.
17537 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17538 set after UIDs before splitting them.
17539
17540 2019-01-01 Martin Sebor <msebor@redhat.com>
17541 Jeff Law <law@redhat.com>
17542
17543 * gimple-fold.c (get_range_strlen_tree): Record if the computed
17544 length is optimistic. If it is, then arrange to compute the
17545 conservative length as well.
17546
17547 * gimple-fold.h (get_range_strlen): Update prototype.
17548 * builtins.c (check_access): Update call to get_range_strlen to use
17549 c_strlen_data pointer. Change various variable accesses to instead
17550 pull data from the c_strlen_data structure.
17551 (check_strncat_sizes, expand_builtin_strncat): Likewise.
17552 * calls.c (maybe_warn_nonstring_arg): Likewise.
17553 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
17554 minimum length if maximum lengh is unknown.
17555 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
17556 that used c_strlen, it's no longer needed. Restructure slightly.
17557 (format_string): Set unlikely range appropriately.
17558 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
17559 formatting issues.
17560 (get_range_strlen): Accept c_strlen_data pointer for external
17561 call sites as well. Pass through to call to internal get_range_strlen.
17562 Adjust minlen, maxlen and maxbound as needed.
17563 (get_maxval_strlen): Update comments.
17564 (gimple_fold_builtin_strlen): Update call to get_range_strlen
17565 to use c_strlen_data pointer. Change variable accesses to instead
17566 use c_strlen_data data members.
17567
17568 * gimple-fold.c (get_range_strlen): Update prototype.
17569 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
17570 local variables. Use pdata to return information to caller.
17571 Update calls to get_range_strlen. Update pdata->maxbound.
17572 (get_range_strlen -- static version): Similarly.
17573 (get_range_strlen -- extern version): Update for internal
17574 get_range_strlen API change. Convert to external data format.
17575 (get_maxval_strlen): Similarly.
17576
17577 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
17578
17579 * coverage.c (get_coverage_counts): Use current_function_decl.
17580 * profile.c (read_thunk_profile): New function.
17581 (branch_prob): Add THUNK parameter.
17582 * tree-profile.c (tree_profiling): Handle thunks.
17583 * value-prof.c (init_node_map): Handle thunks.
17584 * value-prof.h (branch_prob): Upate prototype.
17585 (read_thunk_profile): Declare.
17586
17587 2019-01-01 Jakub Jelinek <jakub@redhat.com>
17588
17589 Update copyright years.
17590
17591 * gcc.c (process_command): Update copyright notice dates.
17592 * gcov-dump.c (print_version): Ditto.
17593 * gcov.c (print_version): Ditto.
17594 * gcov-tool.c (print_version): Ditto.
17595 * gengtype.c (create_file): Ditto.
17596 * doc/cpp.texi: Bump @copying's copyright year.
17597 * doc/cppinternals.texi: Ditto.
17598 * doc/gcc.texi: Ditto.
17599 * doc/gccint.texi: Ditto.
17600 * doc/gcov.texi: Ditto.
17601 * doc/install.texi: Ditto.
17602 * doc/invoke.texi: Ditto.
17603 \f
17604 Copyright (C) 2019 Free Software Foundation, Inc.
17605
17606 Copying and distribution of this file, with or without modification,
17607 are permitted in any medium without royalty provided the copyright
17608 notice and this notice are preserved.