1 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2 Tobias Burnus <tobias@codesourcery.com>
4 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
5 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8 2019-10-25 Richard Biener <rguenther@suse.de>
10 PR tree-optimization/92222
11 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
12 (_slp_oprnd_info::second_pattern): Likewise.
13 (_slp_oprnd_info::any_pattern): New.
14 (vect_create_oprnd_info): Adjust.
15 (vect_get_and_check_slp_defs): Compute whether any stmt is
17 (vect_build_slp_tree_2): Avoid building up a node from scalars
18 if any of the operand defs, not just the first, is in a pattern.
20 2019-10-25 Richard Biener <rguenther@suse.de>
22 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
23 swapping if we actually have to modify the IL on a shared stmt.
24 (vect_build_slp_tree_2): Never fail swapping on shared stmts
25 because we no longer modify the IL.
27 2019-10-25 Martin Liska <mliska@suse.cz>
29 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
31 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
33 * tree-vect-loop.c (vectorizable_reduction): Restrict the
34 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
35 handled by vect_transform_reduction. Allow fully-masked loops
36 to be used with reduction chains.
37 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
38 operations in fully-masked loops.
39 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
40 operations in fully-masked loops.
42 2019-10-25 Richard Biener <rguenther@suse.de>
44 * tree-vect-loop.c (vectorizable_reduction): Verify
45 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
47 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
48 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
51 2019-10-24 Jakub Jelinek <jakub@redhat.com>
53 * gimplify.h (omp_construct_selector_matches): Declare.
54 * gimplify.c (struct gimplify_omp_ctx): Add code member.
55 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
56 called function if needed for flag_openmp.
57 (gimplify_scan_omp_clauses): Set ctx->code.
58 (omp_construct_selector_matches): New function.
59 * omp-general.h (omp_constructor_traits_to_codes,
60 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
61 * omp-general.c (omp_constructor_traits_to_codes,
62 omp_context_selector_matches, omp_resolve_declare_variant): New
65 * config/arc/arc.c (hwloop_optimize): Add missing space in string
67 * config/rx/rx.c (rx_print_operand): Likewise.
68 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
69 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
70 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
72 * genemit.c (emit_c_code): Likewise.
73 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
75 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
77 * symbols-summary.h (fast_function_summary<T *, V>::release,
78 fast_call_summary<T *, V>::release): Free m_vector.
80 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
82 * cgraphunit.c (symbol_table::process_new_functions): Call
83 ipa_free_size_summary.
84 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
85 (devirtualization_time_bonus): Update.
86 (ipcp_propagate_stage): Update.
87 * ipa-fnsummary.c (ipa_size_summaries): New.
88 (ipa_fn_summary_alloc): Alloc size summary.
89 (dump_ipa_call_summary): Update.
90 (ipa_dump_fn_summary): Update.
91 (analyze_function_body): Update.
92 (compute_fn_summary): Likewise.
93 (ipa_get_stack_frame_offset): New function.
94 (inline_update_callee_summaries): Do not update frame offsets.
95 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
96 remove call and function summary.
97 (ipa_update_overall_fn_summary): Update.
98 (inline_read_section): Update.
99 (ipa_fn_summary_write): Update.
100 (ipa_free_fn_summary): Do not remove summaries.
101 (ipa_free_size_summary): New.
102 (release summary pass): Also run at WPA.
103 * ipa-fnsummary.h (ipa_size_summary): Declare.
104 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
105 estimated_self_stack_size.
106 (ipa_size_summary_t): New type.
107 (ipa_size_summaries): Declare.
108 (ipa_free_size_summary): Declare.
109 (ipa_get_stack_frame_offset): Declare.
110 * ipa-icf.c (sem_function::merge): Update.
111 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
112 (estimate_growth): Update.
113 (growth_likely_positive): Update.
114 (clone_inlined_nodes): Update.
115 (inline_call): Update.
116 * ipa-inline.c (caller_growth_limits): Update.
117 (edge_badness): Update.
118 (recursive_inlining): Update.
119 (inline_small_functions): Update.
120 (inline_to_all_callers_1): Update.
121 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
123 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
125 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
126 (uavg<mode>3_ceil): ... This.
127 (altivec_vavgs<VI_char>): Rename to...
128 (avg<mode>3_ceil): ... This.
129 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
130 VAVGUW, VAVGSW): Adjust.
132 2019-10-24 Nathan Sidwell <nathan@acm.org>
134 * dumpfile.c (dump_begin): Reorder decls to use RAII.
136 2019-10-24 Martin Liska <mliska@suse.cz>
138 * symbol-summary.h (gt_pch_nx): Mark all functions
139 with gcc_unreachable as we do not expect to be called.
141 2019-10-24 Richard Biener <rguenther@suse.de>
143 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
144 chains try harder with operand swapping and instead of
145 putting a shifted chain into the reduction operands put
146 a repetition of the final reduction op there as if we'd
147 reassociate the expression.
149 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
151 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
152 statics_not_read and statics_not_written to statics_read and
153 statics_written respectively.
154 (no_module_statics): New static var.
155 (ipa_reference_get_not_read_global): Rename to ...
156 (ipa_reference_get_read_global): ... this.
157 (ipa_reference_get_not_written_global): Rename to ...
158 (ipa_reference_get_written_global): ... this.
159 (dump_static_vars_set_to_file): Dump no_module_statics.
160 (copy_static_var_set): Add for propagation parameter.
161 (ipa_init): Initialize no_module_statics.
162 (ipa_ref_opt_summary_t::duplicate): Update.
163 (ipa_ref_opt_summary_t::remove): Update.
165 (write_node_summary_p): Look correctly for bitmap differences.
166 (ipa_reference_write_optimization_summary): Update.
167 (ipa_reference_read_optimization_summary): Update.
169 (ipa_reference_get_not_read_global): Rename to ...
170 (ipa_reference_get_read_global): ... this.
171 (ipa_reference_get_not_written_global): Rename to ...
172 (ipa_reference_get_written_global): ... this.
173 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
174 (call_may_clobber_ref_p_1): Update.
176 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
178 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
180 (msp430_hard_regno_nregs_with_padding): Remove.
182 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
184 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
185 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
186 shift amount is between 1 and 4.
187 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
190 2019-10-24 Richard Biener <rguenther@suse.de>
192 PR tree-optimization/92205
193 * tree-vect-loop.c (vectorizable_reduction): Restrict
194 search for alternate vectype_in to lane-reducing patterns
197 2019-10-24 Richard Biener <rguenther@suse.de>
199 PR tree-optimization/92203
200 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
201 Skip eliminating conversion stmts inserted by insertion.
203 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
205 * config/s390/s390.c (s390_get_thread_pointer): Use
206 gen_get_thread_pointer.
207 (s390_expand_split_stack_prologue): Likewise.
208 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
209 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
210 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
211 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
214 2019-10-24 Richard Biener <rguenther@suse.de>
216 * tree-vect-slp.c (vect_analyze_slp): When reduction group
217 SLP discovery fails try to handle the reduction as part
218 of SLP reduction discovery.
220 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
222 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
224 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
225 attribute if it exists, rather than the insn size. If we use the
226 insn size, adjust the size to remove the extra size that prefixed
228 (rs6000_adjust_insn_length): New function.
229 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
230 update the instruction sized if prefixed instructions are used.
231 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
232 (non_prefixed_length attribute): Delete.
233 (num_insns attribute): New insn attribute to return the number of
235 (max_prefixed_insns attribute): New insn attribute to return the
236 maximum number of prefixed instructions in an insn.
237 (length attribute): Do not adjust for prefix instructions here,
238 punt to ADJUST_INSN_LENGTH.
239 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
240 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
241 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
242 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
243 max_prefixed_insns and num_insns.
245 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
246 (movtd_64bit_nodm): Reformat.
247 (mov<mode>_32bit): Reformat.
248 (mov<mode>_softfloat): Reformat.
249 (FMOVE128_GPR splitter): Reformat.
250 (DIFD splitter): Reformat.
251 (TI2 splitter): Reformat.
252 * config/rs6000/predicates.md (lwa_operand): If the bottom two
253 bits of the offset for the memory address are non-zero, use PLWA
254 if prefixed instructions are available.
256 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
258 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
260 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
262 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
265 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
267 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
268 (cmp_symbol_files): New.
269 (lto_output): Copy sections in file order.
270 * lto-streamer.h (lto_file_decl_data): Add field order.
272 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
274 * ipa-reference.h (ipa_reference_var_uid): Move offline.
275 * ipa-reference.c (reference_vars_map_t): new type.
276 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
277 (ipa_reference_var_uid): Implement.
278 (varpool_node_hooks): New static var.
279 (varpool_removal_hook): New function.
280 (is_improper): Do not check bitmap for id==-1
281 (get_static_name): Update.
282 (ipa_init): Initialize new datastructures.
283 (analyze_function): Do not recompute ids.
284 (propagate): Free reference_vars_to_consider.
285 (stream_out_bitmap): Update.
286 (ipa_reference_read_optimization_summary): Update.
288 2019-10-23 qing zhao <qing.zhao@oracle.com>
290 PR gcov-profile/91971
291 * coverage.c (coverage_init): Mangle the full path of filename when
292 filename is a absolute path.
294 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
296 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
297 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
298 (msp430_has_hwmult): New.
299 (msp430_output_labelref):
300 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
301 * config/msp430/msp430.md (mulhisi3): Likewise.
302 (umulhisi3): Likewise.
303 (mulsidi3): Likewise.
304 (umulsidi3): Likewise.
306 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
309 * params.def (inline-heuristics-hint-percent): Set to 600.
311 2019-10-23 Richard Biener <rguenther@suse.de>
313 PR tree-optimization/65930
314 * tree-vect-loop.c (check_reduction_path): Allow conversions
315 that only change the sign.
316 (vectorizable_reduction): Relax latch def stmts we handle further.
318 2019-10-23 Jakub Jelinek <jakub@redhat.com>
321 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
322 (remove_unused_ivs): Use it instead of get_computation_at. When
323 choosing best candidate, only consider candidates where
324 get_debug_computation_at actually returns non-NULL.
326 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
328 PR tree-optimization/92131
329 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
330 range would be symbolic, drop to varying for any explicit overflow
331 in the constant part or if neither range is a singleton.
333 2019-10-23 Martin Liska <mliska@suse.cz>
336 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
339 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
341 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
342 int_mode_for_mode rather than mode_for_int_vector for scalars.
344 2019-10-23 Richard Biener <rguenther@suse.de>
346 PR tree-optimization/92179
347 * tree-vect-stmts.c (vectorizable_shift): For shift args
348 that are all the same remove type restriction in the SLP case.
349 Adjust SLP code to handle converting of the shift arg to
350 only apply in case the modes are different.
352 2019-10-23 Martin Liska <mliska@suse.cz>
355 * ipa-inline.c (recursive_inlining): Do not print
356 when curr->count is not initialized.
358 2019-10-23 Richard Biener <rguenther@suse.de>
360 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
361 op from scalars in case there's a constant operand in its
364 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
366 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
367 against out of range max skip or log values.
369 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
371 * cgraph.c (dump_graphviz): Change name to dump_name
373 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
375 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
376 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
377 subtraction from a carry operation.
379 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
381 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
383 2019-10-22 Richard Biener <rguenther@suse.de>
385 PR tree-optimization/92173
386 * tree-vect-loop.c (vectorizable_reduction): If
387 vect_transform_reduction cannot handle code-generation try without
388 the single-def-use-cycle optimization. Pass optab_vector to
389 optab_for_tree_code to get vector shifts as that's what we'd
392 2019-10-22 Michael Matz <matz@suse.de>
395 * gimple-loop-jam.c (any_access_function_variant_p): New function.
396 (adjust_unroll_factor): Use it to constrain safety, new parameter.
397 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
399 2019-10-22 Richard Biener <rguenther@suse.de>
401 PR tree-optimization/92173
402 * tree-vect-loop.c (vectorizable_reduction): If
403 vect_transform_reduction cannot handle code-generation try without
404 the single-def-use-cycle optimization. Pass optab_vector to
405 optab_for_tree_code to get vector shifts as that's what we'd
408 2019-10-22 Martin Liska <mliska@suse.cz>
410 * diagnostic-format-json.cc (json_from_expanded_location):
411 Use json::integer_number.
412 * gcov.c (output_intermediate_json_line): Use new
413 json::integer_number.
414 (output_json_intermediate_file): Likewise.
415 * json.cc (number::print): Move to ...
416 (float_number::print): ... this.
417 (integer_number::print): New.
418 (test_writing_numbers): Move to ...
419 (test_writing_float_numbers): ... this.
420 (test_writing_integer_numbers): New.
421 (json_cc_tests): Register test_writing_integer_numbers.
422 * json.h (class value): Add forward declaration
423 for float_number and integer_number.
424 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
425 (class number): Move to ...
426 (class float_number): ... this.
427 (class integer_number): New.
428 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
429 Use json::integer_number.
430 (optrecord_json_writer::location_to_json): Likewise.
431 (optrecord_json_writer::profile_count_to_json): Likewise.
432 (optrecord_json_writer::pass_to_json): Likewise.
434 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
436 * tree-vect-slp.c (vect_slp_bb_region): Check whether
437 autodetected_vector_size rather than vector_size is zero.
438 * tree-vect-loop.c (vect_analyze_loop): Likewise.
439 Set autodetected_vector_size immediately after calling
440 vect_analyze_loop_2. Check for a fatal error before advancing
443 2019-10-21 Jason Merrill <jason@redhat.com>
445 * lock-and-run.sh: Check for process existence rather than timeout.
447 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
449 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
450 widening multiplication.
452 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
454 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
455 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
457 (subsi3_carryin_shift): Separate into register and constant controlled
458 alternatives. Use shift_amount_operand for operand 4. Set shift
459 attribute and simplify type attribute.
460 (subsi3_carryin_shift_alt): Likewise.
461 (rsbsi3_carryin_shift): Likewise.
462 (rsbsi3_carryin_shift_alt): Likewise.
463 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
464 and register controlled shifts into distinct alternatives.
465 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
466 (andsi_not_shiftsi_si_scc): Likewise.
467 (arm_cmpsi_negshiftsi_si): Likewise.
468 (not_shiftsi): Remove redundant M constraint from alternative 1.
469 (not_shiftsi_compare0): Likewise.
470 (arm_cmpsi_insn): Remove redundant alternative 2.
471 (cmpsi_shift_swp): Likewise.
472 (sub_shiftsi): Likewise.
473 (sub_shiftsi_compare0_scratch): Likewise.
474 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
475 (thumb2_cmpsi_neg_shiftsi): Likewise.
477 2019-10-21 Richard Biener <rguenther@suse.de>
479 PR tree-optimization/92162
480 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
481 STMT_VINFO_REDUC_IDX in reduc_info.
482 * tree-vect-stmts.c (vectorizable_condition): Likewise.
484 2019-10-21 Richard Biener <rguenther@suse.de>
486 * tree-vectorizer.h (_slp_tree::ops): New member.
487 (SLP_TREE_SCALAR_OPS): New.
488 (vect_get_slp_defs): Adjust prototype.
489 * tree-vect-slp.c (vect_free_slp_tree): Release
491 (vect_create_new_slp_node): Initialize it. New overload for
492 initializing by an operands array.
493 (_slp_oprnd_info::ops): New member.
494 (vect_create_oprnd_info): Initialize it.
495 (vect_free_oprnd_info): Release it.
496 (vect_get_and_check_slp_defs): Populate the operands array.
497 Do not swap operands in the IL when not necessary.
498 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
499 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
500 swap operands in the operands array. Do not swap operands in
502 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
503 (vect_gather_slp_loads): Fix.
504 (vect_detect_hybrid_slp_stmts): Likewise.
505 (vect_slp_analyze_node_operations_1): Search for a internal
506 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
507 (vect_slp_analyze_node_operations): Skip ops-only stmts for
508 the def-type push/pop dance.
509 (vect_get_constant_vectors): Compute number_of_vectors here.
510 Use SLP_TREE_SCALAR_OPS and simplify greatly.
511 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
512 (vect_get_slp_defs): Simplify greatly.
513 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
514 (vect_transform_reduction): Likewise.
515 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
516 (vectorizable_call): Likewise.
517 (vectorizable_operation): Likewise.
518 (vectorizable_load): Likewise.
519 (vectorizable_condition): Likewise.
520 (vectorizable_comparison): Likewise.
522 2019-10-21 Richard Biener <rguenther@suse.de>
524 PR tree-optimization/92161
525 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
528 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
530 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
531 (aarch64_rndr): New define_insn.
532 (aarch64_rndrrs): Likewise.
533 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
534 (TARGET_RNG): Likewise.
535 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
537 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
538 Add fourth argument in prototype.
539 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
540 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
541 (aarch64_init_rng_builtins): Define.
542 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
543 (aarch64_expand_rng_builtin): Define.
544 (aarch64_general_expand_builtin): Use IGNORE argument, handle
546 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
547 __ARM_FEATURE_RNG when TARGET_RNG.
548 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
550 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
552 * tree-vect-stmts (ensure_base_align): Only change alignment if new
553 alignment is more restrictive.
555 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
557 * tree-vectorizer.h (vec_info::vector_size): New member variable.
558 (vect_update_max_nunits): Update comment.
559 (current_vector_size): Delete.
560 * tree-vect-stmts.c (current_vector_size): Likewise.
561 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
562 of current_vector_size.
563 (get_mask_type_for_scalar_type): Likewise.
564 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
565 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
566 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
567 (vect_double_mask_nunits, vect_transform_loop): Likewise.
568 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
569 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
571 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
573 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
574 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
575 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
578 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
580 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
581 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
582 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
584 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
586 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
588 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
590 (vect_set_loop_condition_masked): Update call accordingly.
592 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
594 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
595 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
596 (simple_integer_narrowing): Update call accordingly.
597 (vectorizable_conversion): Likewise.
599 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
601 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
602 (vectorizable_call): Update call accordingly.
604 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
606 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
607 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
608 (duplicate_and_interleave): Update call accordingly.
609 * tree-vect-loop.c (vectorizable_reduction): Likewise.
611 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
613 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
614 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
615 (vect_get_constant_vectors): Update call accordingly.
616 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
618 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
620 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
621 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
622 (vect_prologue_cost_for_slp_op): Update call accordingly.
623 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
624 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
625 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
626 (get_mask_type_for_scalar_type): Likewise.
627 (vect_get_vector_types_for_stmt): Likewise.
628 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
629 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
630 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
631 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
632 (vect_split_statement, vect_convert_input): Likewise.
633 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
634 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
635 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
636 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
637 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
638 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
639 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
640 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
641 (vect_recog_mask_conversion_pattern): Likewise.
642 (vect_add_conversion_to_pattern): Likewise.
643 (vect_recog_gather_scatter_pattern): Likewise.
644 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
645 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
647 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
649 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
650 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
651 (vect_check_load_store_mask): Update call accordingly.
652 (vect_get_mask_type_for_stmt): Likewise.
653 * tree-vect-patterns.c (check_bool_pattern): Likewise.
654 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
655 (vect_convert_mask_for_vectype): Likewise.
657 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
659 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
661 (vect_recog_dot_prod_pattern): Update call accordingly.
662 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
663 (vect_recog_widen_sum_pattern): Likewise.
665 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
667 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
668 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
669 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
672 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
674 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
675 get_vectype_for_scalar_type_and_size instead of
676 get_vectype_for_scalar_type.
678 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
680 * common.opt (-fcommon): Fix description.
682 2019-10-20 Jakub Jelinek <jakub@redhat.com>
684 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
685 * config/i386/i386.c (ix86_pre_reload_split): New function.
686 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
687 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
688 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
689 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
690 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
691 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
692 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
693 *<shift_insn><dwi>3_doubleword_mask,
694 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
695 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
696 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
697 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
698 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
699 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
700 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
701 *avx2_<code>v8qiv8si2<mask_name>_2,
702 *sse4_1_<code>v4qiv4si2<mask_name>_2,
703 *sse4_1_<code>v4hiv4si2<mask_name>_2,
704 *avx512f_<code>v8qiv8di2<mask_name>_2,
705 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
706 *sse4_1_<code>v2hiv2di2<mask_name>_2,
707 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
708 sse4_2_pcmpistr): Likewise.
710 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
712 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
713 now defaults to https.
715 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
717 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
718 skip non-zero array accesses.
720 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
722 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
723 and return a boolean success value. Move the allocation and
724 initialization of the bb_vec_info to...
725 (vect_slp_bb_region): ...here. Update call accordingly.
726 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
727 than in vect_slp_analyze_bb_1.
729 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
731 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
732 when processing the given datarefs for the first time and
733 check_datarefs subsequently.
734 (vect_slp_bb_region): New function, split out of...
735 (vect_slp_bb): ...here. Don't recompute the region bounds and
736 dataref sets when retrying with a different vector size.
738 2019-10-19 Jakub Jelinek <jakub@redhat.com>
739 Uroš Bizjak <ubizjak@gmail.com>
742 * config/i386/predicates.md (int_nonimmediate_operand): New special
744 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
745 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
746 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
747 define_insn_and_split patterns.
749 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
751 * config/rs6000/rs6000.md: Delete out--of-date comment about
752 special-casing integer loads.
754 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
756 * escaped_string.h (escaped_string): New header.
757 * tree.c (escaped_string): Remove escaped_string class.
759 2019-10-18 Martin Sebor <msebor@redhat.com>
761 PR tree-optimization/92157
762 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
763 compute_string_length to return a negative result.
765 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
767 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
768 (negvsi3, negvdi3): Delete.
769 (negdi2_compare): Delete.
771 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
773 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
775 (subdi3_compare1): Delete pattern.
776 (subvsi3_borrow): New insn pattern.
777 (subvsi3_borrow_imm): Likewise.
779 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
781 * config/arm/arm.md (subv<mode>4): Delete.
782 (subvdi4): New expander pattern.
783 (subvsi4): Likewise. Handle some immediate values.
784 (subvsi3_intmin): New insn pattern.
786 (subvsi3_imm1): Likewise.
787 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
792 * config/arm/arm.md (usubvdi4): Allow registers or integers for
793 incoming operands. Early split the calculation into SImode
795 (usubvsi3_borrow): New insn pattern.
796 (usubvsi3_borrow_imm): Likewise.
798 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
800 * config/arm/arm.md (usubv<mode>4): Delete expansion.
801 (usubvsi4): New pattern. Allow some immediate values for inputs.
802 (usubvdi4): New pattern.
804 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
806 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
807 or second operand of the PLUS inside a DImode equality test to be
808 sign-extend when selecting CC_Vmode.
809 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
811 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
813 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
814 (addsi3_cin_vout_0): Likewise.
815 (adddi3_compareV): Delete.
817 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
819 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
820 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
821 to transform this back into the summation version when that leads
824 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
826 * config/arm/arm.md (addv<mode>4): Delete.
827 (addvsi4): New pattern. Handle immediate values that the architecture
829 (addvdi4): New pattern.
830 (addsi3_compareV): Rename to ...
831 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
832 and use COMPARE rather than NE.
833 (addsi3_compareV_imm): New pattern.
834 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
835 a signed-overflow check.
837 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
839 * config/arm/arm-modes.def (CC_ADC): New CC mode.
840 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
842 (maybe_get_arm_condition_code): Handle CC_ADCmode.
843 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
845 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
847 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
848 (addsi3_cin_cout_imm_insn): Likewise.
849 (adddi3_compareC): Delete insn.
850 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
852 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
854 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
855 * (uaddv<mode>4): Delete expansion pattern.
856 (uaddvsi4): New pattern.
857 (uaddvdi4): Likewise.
858 (addsi3_compareC): Delete pattern, change callers to use
860 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
861 reduce the number of alternatives and re-work type attribute handling.
862 (addsi3_compare_op2): Clean up constraints to reduce the number of
863 alternatives and re-work type attribute handling.
864 (compare_addsi2_op0): Likewise.
865 (compare_addsi2_op1): Likewise.
867 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
869 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
870 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
872 (arm_gen_dicompare_reg): Remove unreachable expansion code.
873 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
875 * config/arm/arm.md (arm_cmpdi_insn): Delete.
876 (arm_cmpdi_unsigned): Delete.
878 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
880 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
881 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
882 unchanged only if that will be cheaper.
883 (arm_select_cc_mode): Recognize a swapped comparison that will
884 be regenerated using RSBS or RSCS. Relax restriction on selecting
886 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
888 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
890 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
892 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
893 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
895 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
897 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
898 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
900 (arm_gen_dicompare_reg): New code to early expand the sub-operations
901 of EQ, NE, LT, GE, LTU and GEU.
902 * config/arm/iterators.md (CC_EXTEND): New code attribute.
903 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
904 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
905 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
906 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
908 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
910 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
912 (cstoredi4): Similarly, but for operand 3.
913 * config/arm/arm.c (arm_canoncialize_comparison): Allow
914 canonicalization of unsigned compares with a constant on Arm.
915 Prefer using const+1 and adjusting the comparison over swapping the
916 operands whenever the original constant was not valid.
917 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
919 (arm_validize_comparison): Do not force invalid DImode operands to
922 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
924 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
925 return CC_Zmode if comparing against a constant where one word is
927 (arm_gen_compare_reg): Split DImode handling to ...
928 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
929 against simple constants.
930 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
932 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
934 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
935 (rsbsi3_carryin_shift_alt): Likewise.
937 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
939 * config/arm/arm.md (negscc_borrow): New pattern.
940 (mov_negscc): Don't split if the insn would match negscc_borrow.
941 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
942 (thumb2_mov_negscc_strict_it): Likewise.
944 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
946 * config/arm/arm.c (arm_insn_cost): New function.
947 (TARGET_INSN_COST): Override default definition.
949 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
951 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
954 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
956 * config/arm/arm.c (strip_carry_operation): New function.
957 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
960 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
962 * config/arm/predicates.md (arm_carry_operation): New special
964 * config/arm/iterators.md (LTUGEU): Delete iterator.
965 (cnb): Delete code attribute.
966 (optab): Delete ltu and geu elements.
967 * config/arm/arm.md (addsi3_carryin): Renamed from
968 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
969 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
970 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
971 (addsi3_carryin_clobercc): Similarly.
972 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
975 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
977 * config/arm/arm.md (arm_subdi3): Delete insn.
978 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
980 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
982 * config/arm/arm-modes.def (CC_RSB): New CC mode.
983 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
984 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
986 (maybe_get_arm_condition_code): Handle CC_RSBmode.
987 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
989 (subdi3): Rewrite to early-expand the sub-operations.
990 (rsb_im_compare): New pattern.
992 (negdi2_insn): Delete.
993 (arm_negsi2): Correct type attribute to alu_imm.
994 (negsi2_0compare): New insn pattern.
995 (negsi2_carryin): New insn pattern.
997 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
999 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
1002 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1004 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
1005 to match canonical form.
1007 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1009 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
1010 (extend<mode>di2): Likewise.
1012 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1014 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
1015 * config/arm/arm.c (arm_decompose_di_binop): New function.
1016 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
1017 If not generating Thumb-1 code, decompose the operation into 32-bit
1019 * add0si_carryin_<optab>: New pattern.
1021 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
1023 * arm.md (adddi3): Only accept register operands.
1024 (arm_adddi3): Convert to simple insn with no split. Do not accept
1026 (adddi_sesidi_di): Delete patern.
1027 (adddi_zesidi_di): Likewise.
1028 (uaddv<mode>4): Use LTU as condition for branch.
1029 (adddi3_compareV): Convert to simple insn with no split.
1030 (addsi3_compareV_upper): Delete pattern.
1031 (adddi3_compareC): Convert to simple insn with no split. Correct
1032 flags setting expression.
1033 (addsi3_compareC_upper): Delete pattern.
1034 (addsi3_compareC): Correct flags setting expression.
1035 (subdi3_compare1): Convert to simple insn with no split.
1036 (subsi3_carryin_compare): Delete pattern.
1037 (arm_subdi3): Convert to simple insn with no split.
1038 (subdi_zesidi): Delete pattern.
1039 (subdi_di_sesidi): Delete pattern.
1040 (subdi_zesidi_di): Delete pattern.
1041 (subdi_sesidi_di): Delete pattern.
1042 (subdi_zesidi_zesidi): Delete pattern.
1043 (negvdi3): Use s_register_operand.
1044 (negdi2_compare): Convert to simple insn with no split.
1045 (negdi2_insn): Likewise.
1046 (negsi2_carryin_compare): Delete pattern.
1047 (negdi_zero_extendsidi): Delete pattern.
1048 (arm_cmpdi_insn): Convert to simple insn with no split.
1049 (negdi2): Don't call gen_negdi2_neon.
1050 * config/arm/neon.md (adddi3_neon): Delete pattern.
1051 (subdi3_neon): Delete pattern.
1052 (negdi2_neon): Delete pattern.
1053 (splits for negdi2_neon): Delete splits.
1055 2019-10-18 Jakub Jelinek <jakub@redhat.com>
1058 * ggc-page.c (release_pages): Read g->alloc_size before free rather
1061 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
1063 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
1064 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
1065 new multilib variants and new mappings.
1067 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
1070 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
1072 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1073 Richard Sandiford <richard.sandiford@arm.com>
1076 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
1077 and define hashmap traits for it.
1078 (loop_vec_info::scalar_cond_masked_set): New member.
1079 (vect_record_loop_mask): Adjust prototype.
1080 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
1082 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
1083 vect_record_loop_mask.
1084 (vectorizable_live_operation): Likewise.
1085 (vect_record_loop_mask): New param scalar_mask. Add entry
1086 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
1087 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
1088 Pass it as last arg to vect_record_loop_mask.
1089 (vectorizable_call): Pass scalar_mask as last arg to
1090 vect_record_loop_mask.
1091 (vectorizable_store): Likewise.
1092 (vectorizable_load): Likewise.
1093 (vectorizable_condition): Check if another part of vectorized code
1094 applies loop_mask to condition or to it's inverse, and if yes,
1095 apply loop_mask to result of vector comparison.
1097 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
1099 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
1101 2019-10-18 Jakub Jelinek <jakub@redhat.com>
1103 PR tree-optimization/92056
1104 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
1105 before calling compute_builtin_object_size.
1107 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
1110 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
1111 (movdi_low_st): Delete.
1112 * config/rs6000/rs6000.c
1113 (darwin_rs6000_legitimate_lo_sum_const_p): New.
1114 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
1115 * config/rs6000/rs6000.md (movsi_low): Delete.
1117 2019-10-17 Jason Merrill <jason@redhat.com>
1119 * gimplify.h (get_initialized_tmp_var): Add default argument to
1121 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
1122 NULL post_p argument.
1123 * targhooks (std_gimplify_va_arg_expr): Likewise.
1125 2019-10-17 Richard Biener <rguenther@suse.de>
1127 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
1128 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
1129 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
1130 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
1131 * tree-vect-loop.c (vect_is_simple_reduction): Set
1132 STMT_VINFO_REDUC_CODE.
1133 (vectorizable_reduction): Remove dead and redundant code, use
1134 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
1136 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
1138 Fix breakage introduced by r276985.
1140 * config/avr/avr.c (avr_option_override): Remove set of
1141 PARAM_ALLOW_STORE_DATA_RACES.
1142 * common/config/avr/avr-common.c (avr_option_optimization_table)
1143 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
1145 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
1147 * config/i386/i386.h (processor_costs): Add clear_ratio.
1148 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
1149 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
1150 of 6 and move_ratio in all cost models.
1152 2019-10-17 Richard Biener <rguenther@suse.de>
1154 * tree-vect-loop.c (check_reduction_path): Compute reduction
1156 (vect_is_simple_reduction): Remove special-case of single-stmt
1157 reduction path detection.
1159 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
1161 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
1163 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
1165 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
1166 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
1167 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
1168 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
1169 New combine patterns.
1170 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
1172 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
1174 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
1176 * tree-vrp.c (value_range_base::dump): Display +INF for both
1177 pointers and integers when appropriate.
1179 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1181 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
1182 when to use versioning threshold.
1184 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1186 * tree-vect-loop.c (determine_peel_for_niter): New function contained
1187 outlined code from ...
1188 (vect_analyze_loop_2): ... here.
1190 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1192 * tree-vect-loop.c (vect_transform_loop): Move code from here...
1193 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
1194 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
1196 2019-10-17 Richard Biener <rguenther@suse.de>
1198 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
1199 (vect_is_simple_reduction): Move all validity checks ...
1200 (vectorizable_reduction): ... here. Compute whether we
1201 need a fold-left reduction here.
1202 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
1203 both overloads, check needs_fold_left_reduction_p directly.
1204 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
1206 2019-10-17 Richard Biener <rguenther@suse.de>
1208 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
1209 TARGET_MEM_REF creation.
1211 2019-10-17 Richard Biener <rguenther@suse.de>
1213 PR tree-optimization/92129
1214 * tree-vect-loop.c (vectorizable_reduction): Also fail
1215 on GIMPLE_SINGLE_RHS.
1217 2019-10-17 Jakub Jelinek <jakub@redhat.com>
1219 PR tree-optimization/92056
1220 * tree-object-size.c (cond_expr_object_size): Return early if then_
1221 processing resulted in unknown size.
1223 PR tree-optimization/92115
1224 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
1225 temporary if it could trap.
1227 2019-10-17 Richard Biener <rguenther@suse.de>
1230 * dwarf2out.c (gen_formal_parameter_die): Also try to match
1231 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
1233 2019-10-16 Jakub Jelinek <jakub@redhat.com>
1235 * tree-ssa-strlen.c (maybe_invalidate): Use
1236 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
1238 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
1239 Jim Wilson <jimw@sifive.com>
1241 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
1242 regs to SIBCALL_REGS.
1243 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
1244 passing regs to SIBCALL_REGS.
1246 2019-10-16 Martin Sebor <msebor@redhat.com>
1248 PR tree-optimization/83821
1249 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
1250 the length of a string when available.
1251 (handle_builtin_memset) Add argument.
1252 (handle_store, strlen_check_and_optimize_call): Same.
1253 (check_and_optimize_stmt): Same. Pass it to callees.
1255 2019-10-16 Martin Sebor <msebor@redhat.com>
1257 PR tree-optimization/91996
1258 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
1260 (compare_nonzero_chars): Add an overload.
1261 (count_nonzero_bytes): Add an argument. Call overload above.
1262 Handle non-constant lengths in some range.
1263 (handle_store): Add an argument.
1264 (check_and_optimize_stmt): Pass an argument to handle_store.
1266 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
1268 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
1270 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1272 * config/mips/mips.c (mips_expand_builtin_insn): Force the
1273 operands which correspond to the same input-output register to
1274 have the same pseudo assigned to them.
1276 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
1278 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
1280 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
1282 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1283 Apply reasonable limit to symbol offsets.
1285 2019-10-16 Richard Biener <rguenther@suse.de>
1287 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
1288 (vect_is_simple_reduction): Delay checking to
1289 vectorizable_reduction and relax the checking.
1290 (vectorizable_reduction): Check we have a simple use. Check
1291 for bogus condition reductions.
1292 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
1293 are looking at the last stmt in a pattern sequence when
1294 filling in backedge PHI values.
1296 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
1297 Jiufu Guo <guojiufu@linux.ibm.com>
1300 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
1301 the callee explicitly disables some isa_flags the caller is using.
1303 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1305 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
1307 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1309 * genmodes.c (mode_data::order): New field.
1310 (blank_mode): Update accordingly.
1311 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
1312 (make_vector_modes): Likewise.
1313 (VECTOR_MODES): Update use accordingly.
1314 (cmp_modes): Sort by the new order field ahead of sorting by size.
1315 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
1316 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
1317 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
1318 (aarch64_classify_vector_mode): Handle the new partial modes.
1319 (aarch64_vl_bytes): New function.
1320 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
1321 when counting the number of registers in an SVE mode.
1322 (aarch64_class_max_nregs): Likewise.
1323 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
1325 (aarch64_classify_address): Treat partial vectors analogously
1327 (aarch64_print_address_internal): Consolidate the printing of
1328 MUL VL addresses, using aarch64_vl_bytes as the number of
1329 bytes represented by "VL".
1330 (aarch64_vector_mode_supported_p): Reject partial vector modes.
1332 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1334 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
1335 rather than known_lt when choosing frame layouts.
1337 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1339 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
1340 that all the adjustments add up to the full frame size.
1341 Use crtl->outgoing_args_size directly as the final adjustment
1344 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1346 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
1347 "frame" reference instead of always referring directly to
1348 "cfun->machine->frame".
1350 2019-10-16 Richard Biener <rguenther@suse.de>
1352 PR tree-optimization/92119
1353 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
1354 against missing bswap lhs.
1356 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1359 * poly-int.h (constant_lower_bound_with_limit): New function.
1360 (constant_upper_bound_with_limit): Likewise.
1361 * doc/poly-int.texi: Document them.
1362 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
1363 into the worst-case INTEGER_CST bounds.
1365 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
1368 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
1369 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
1370 * ipa-predicat.h (struct expr_eval_op): New struct.
1371 (expr_eval_ops): New typedef.
1372 (struct condition): Add type and param_ops fields, remove size field.
1373 (add_condition): Replace size parameter with type parameter, add
1374 param_ops parameter.
1375 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
1376 (predicate::add_clause): Add comparisons on type and param_ops.
1377 (dump_condition): Add debug dump for param_ops.
1378 (remap_after_inlining): Adjust call arguments to add_condition.
1379 (add_condition): Replace size parameter with type parameter, add
1380 param_ops parameter. Unshare constant value used in conditions.
1381 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
1382 parameter expressions using param_ops.
1383 (decompose_param_expr): New function.
1384 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
1385 to replace call to unmodified_parm_or_parm_agg_item.
1386 (set_switch_stmt_execution_predicate): Likewise.
1387 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
1389 (inline_read_section): Read param_ops from summary stream.
1390 (ipa_fn_summary_write): Write param_ops to summary stream.
1392 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
1394 PR rtl-optimization/92107
1395 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
1398 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
1400 * config/darwin.c: Update description of fix and continue.
1402 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
1404 * config/darwin.c (darwin_binds_local_p): Update to call
1405 default_binds_local_p_3 () directly. amend comments.
1407 2019-10-15 Richard Biener <rguenther@suse.de>
1409 * lto-streamer-out.c (lto_variably_modified_type_p): New.
1410 (tree_is_indexable): Use it.
1411 * tree-streamer-out.c (pack_ts_type_common_value_fields):
1412 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
1413 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1415 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1417 * config/msp430/msp430.md (zero_extendqipsi2): New.
1418 (zero_extendqisi2): Optimize case where src register and base dst
1419 register are the same.
1420 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
1421 (zero_extendpsisi2): Optimize r->m case.
1422 Add unnamed insn patterns to catch insns combine searches for when
1423 optimizing pointer manipulation.
1425 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1427 * config/msp430/msp430.md: Group zero_extend* insns together.
1429 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1431 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
1433 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
1435 (msp430_subreg): Likewise.
1436 (msp430_split_addsi): Likewise.
1437 (msp430_print_operand_addr): Likewise.
1438 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
1439 (USE_STORE_POST_INCREMENT): Define.
1440 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
1441 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
1442 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
1443 (msp430_general_dst_operand): New.
1444 (msp430_general_dst_nonv_operand): New.
1445 (msp430_nonsubreg_operand): Remove.
1446 (msp430_nonsubreg_dst_operand): New.
1447 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
1448 of defunct msp430_nonsubreg_operand.
1449 (msp430_nonsubregnonpostinc_or_imm_operand): New.
1451 2019-10-15 Richard Biener <rguenther@suse.de>
1453 PR tree-optimization/91929
1454 * tree-ssa-pre.c (pre_expr_d::loc): New member.
1455 (get_or_alloc_expr_for_name): Initialize it.
1456 (get_or_alloc_expr_for_constant): Likewise.
1457 (phi_translate_1): Copy it.
1458 (create_expression_by_pieces): Use the original location
1459 of the expression for the inserted stmt.
1460 (compute_avail): Record the location of the stmt for the
1461 expressions created.
1463 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
1465 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
1466 before using tree_to_uhwi.
1468 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
1470 * config/s390/s390.md: Run %a0:DI splitters only after reload.
1472 2019-10-15 Richard Biener <rguenther@suse.de>
1474 PR tree-optimization/92094
1475 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
1476 do not adjust the reduction definition def type.
1477 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
1478 defines the latch argument of the PHI.
1480 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
1483 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
1484 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
1485 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
1486 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
1487 _mm_maskz_roundscale_round_sd): New intrinsics.
1488 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
1489 __builtin_ia32_rndscales?_mask_round builtins instead of
1490 __builtin_ia32_rndscales?_round.
1491 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
1492 __builtin_ia32_rndscalesd_round): Remove.
1493 (__builtin_ia32_rndscaless_mask_round,
1494 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
1495 * config/i386/sse.md
1496 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
1497 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
1498 ... this, adjust and add subst atrributes to make it maskable.
1500 2019-10-15 Richard Biener <rguenther@suse.de>
1503 * common.opt (fallow-store-data-races): New.
1504 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
1505 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
1506 * doc/invoke.texi (fallow-store-data-races): Document.
1507 (--param allow-store-data-races): Remove docs.
1508 * opts.c (default_options_table): Enable -fallow-store-data-races
1510 (default_options_optimization): Do not enable --param
1511 allow-store-data-races at -Ofast.
1512 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
1513 instead of PARAM_ALLOW_STORE_DATA_RACES.
1514 * tree-ssa-loop-im.c (execute_sm): Likewise.
1516 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1518 PR tree-optimization/92085
1519 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
1520 instead of calling it unconditionally after
1521 delete_dead_or_redundant_assignment and fix indentation.
1523 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1525 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
1527 (*fmsub<SDF:mode>4): Likewise.
1528 *fnmsub<SDF:mode>4): Likewise.
1529 (*fnmadd<SDF:mode>4): Likewise.
1531 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
1533 * doc/tree-ssa.texi: Update renamed macro name.
1535 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1537 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
1540 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
1542 * config/darwin.c: Use unsigned ints for the picbase label
1543 counters, initialise the vars explicitly.
1544 (update_pic_label_number_if_needed): Move a variable declaration
1545 to where it's needed.
1546 (machopic_output_function_base_name): Use a more strict checking
1547 assert, and and unsigned int for the picbase label counter.
1548 (machopic_get_function_picbase): Likewise.
1550 2019-10-14 Richard Biener <rguenther@suse.de>
1553 * dse.c (scan_insn): Use param max_active_local_stores.
1554 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
1555 based on optimization level.
1556 * loop-invariant.c (move_loop_invariants): Adjust
1557 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
1558 * opts.c (default_options_optimization): Do not adjust
1559 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
1560 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
1562 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
1564 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
1566 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
1568 * config/arm/arm.c (arm_option_override): Don't override sched
1571 2019-10-14 Richard Biener <rguenther@suse.de>
1573 PR tree-optimization/92069
1574 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
1575 cycles do not set vect_nested_cycle on the latch definition.
1577 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
1579 * function-abi.h (expr_callee_abi): Declare.
1580 * function-abi.cc (expr_callee_abi): New function.
1582 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
1584 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
1586 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
1587 non-zero being represented as [1,MAX].
1589 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1591 * tree-sra.c (dump_access): Add missing braces.
1593 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
1595 * config/darwin.c (machopic_indirection_name): Rework the
1596 function to emit linker-visible symbols only for indirections
1597 in the data section. Clean up the code and update comments.
1599 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
1601 * config/darwin.c (machopic_indirect_data_reference): Remove
1604 2019-10-13 Nathan Sidwell <nathan@acm.org>
1606 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
1608 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1610 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
1613 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
1615 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
1616 so non-virutal are before virutals.
1617 (output_function): Avoid body modifications.
1619 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
1621 * config/pa/pa.c (pa_output_call): Load descriptor address to register
1622 %r22. Load function address before global pointer.
1623 (pa_attr_length_indirect_call): Adjust length of inline versions of
1625 (pa_output_indirect_call): Remove fast inline version of $$dyncall
1626 before normal cases. Update inline $$dyncall sequences to preserve
1627 function descriptor address in register %r22.
1628 (TRAMPOLINE_CODE_SIZE): Adjust.
1629 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
1630 register %r22 contains trampoline address.
1631 (pa_trampoline_init): Adjust offsets.
1632 (pa_trampoline_adjust_address): Likewise.
1633 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
1635 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1638 * config/darwin.c (machopic_indirection): New field to flag
1639 non-lazy-symbol-pointers in the data section.
1640 (machopic_indirection_name): Compute if an indirection should
1641 appear in the data section.
1642 (machopic_output_data_section_indirection): New callback split
1643 from machopic_output_indirection.
1644 (machopic_output_stub_indirection): Likewise.
1645 (machopic_output_indirection): Retain the code for non-lazy
1646 symbol pointers in their regular section.
1647 (machopic_finish): Use the new callbacks to order the indirection
1650 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1652 * config/darwin-protos.h (machopic_finish): Delete.
1653 * config/darwin.c (machopic_finish): Make static.
1655 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1657 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
1658 sections when building kernel extension code.
1660 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
1662 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
1665 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
1667 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
1670 2019-10-12 Jakub Jelinek <jakub@redhat.com>
1673 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
1674 <case VEC_COND_EXPR>: Return false with *handled = false.
1675 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
1676 recursing on the first operand.
1677 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
1678 instead of tree_could_trap_p.
1679 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
1681 2019-10-11 Jim Wilson <jimw@sifive.com>
1683 PR rtl-optimization/91860
1684 * combine.c (subst): If new_rtx is a constant, also check for
1685 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
1687 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
1689 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
1690 INTVAL when calling store_bit_field.
1692 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
1694 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
1697 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1699 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
1700 vectorizable_live_operation.
1701 (vectorizable_live_operation): Adjust parameters.
1702 * tree-vect-stmts.c (vect_init_vector,
1703 vect_gen_widened_results_half): Fix typo in function comment.
1704 (can_vectorize_live_stmts): Adjust function comment.
1705 Adjust parameters. Adjust call to vectorizable_live_operation.
1706 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
1707 (vect_transform_stmt): Adjust function comment. Adjust call to
1708 can_vectorize_live_stmts.
1709 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
1711 2019-10-11 Richard Biener <rguenther@suse.de>
1713 PR tree-optimization/90883
1714 PR tree-optimization/91091
1715 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
1716 alias-sets both for recording VN table entries and continuing
1717 walking after translating through copies. Handle same-sized
1718 reads from SSA names by returning the plain SSA name.
1719 (eliminate_dom_walker::eliminate_stmt): Properly handle
1720 non-size precision stores in redundant store elimination.
1722 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1724 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
1725 (ggc_collect): Dump later to not interfere with release_page dump.
1726 (ggc_trim): New function.
1727 * ggc-none.c (ggc_trim): New.
1728 * ggc.h (ggc_trim): Declare.
1730 2019-10-11 Richard Biener <rguenther@suse.de>
1732 PR tree-optimization/92066
1733 PR tree-optimization/92046
1734 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1735 Fix bogus cost model check.
1737 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1739 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
1740 (LANG_HOOKS_DECLS): Add it.
1741 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
1742 update comment for omp_is_optional_argument.
1743 * omp-general.c (omp_is_allocatable_or_ptr): New.
1744 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
1745 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
1746 Fortran's optional arguments and allocatable/pointer scalars
1747 with use_device_addr.
1749 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
1752 * config/s390/2827.md: Add new opcodes.
1753 * config/s390/2964.md: Likewise.
1754 * config/s390/3906.md: Likewise.
1755 * config/s390/8561.md: Likewise.
1756 * config/s390/s390-builtins.def (s390_vfchesb): Use
1757 the new vec_cmpgev4sf_quiet_nocc.
1758 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
1759 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
1760 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
1761 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
1762 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
1763 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
1764 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
1765 * config/s390/s390-modes.def (CCSFPS): New mode.
1766 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
1767 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
1768 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
1769 (s390_expand_vec_compare): Use non-signaling patterns where
1771 (s390_reverse_condition): Support CCSFPS.
1772 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
1773 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
1774 (asm_fcmp_op): Likewise.
1775 (*smaxv2df3_vx): Use pattern for quiet comparison.
1776 (*sminv2df3_vx): Likewise.
1777 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
1778 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
1779 (vec_cmpgt<mode>_quiet_nocc): Likewise.
1780 (vec_cmplt<mode>_quiet_nocc): New expander.
1781 (vec_cmpge<mode>_quiet_nocc): New pattern.
1782 (vec_cmple<mode>_quiet_nocc): New expander.
1783 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
1784 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
1785 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
1786 (*vec_cmpge<mode>_signaling_nocc): Likewise.
1787 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
1788 (vec_cmpungt<mode>): New expander.
1789 (vec_cmpunge<mode>): Likewise.
1790 (vec_cmpuneq<mode>): Use quiet patterns.
1791 (vec_cmpltgt<mode>): Allow only on z14+.
1792 (vec_cmpordered<mode>): Use quiet patterns.
1793 (vec_cmpunordered<mode>): Likewise.
1794 (VEC_CMP_EXPAND): Add ungt and unge.
1796 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1798 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
1800 * lto-streamer-out.c: Include tree-dfa.h.
1801 (output_cfg): Do not use cfun.
1802 (lto_prepare_function_for_streaming): New.
1803 (output_function): Do not push cfun; do not initialize loop optimizer.
1804 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
1805 * passes.c (ipa_write_summaries): Use it.
1806 (ipa_write_optimization_summaries): Do not modify bodies.
1807 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
1808 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
1809 * tree-ssa-dse.c (pass_dse::execute): Update use of
1810 renumber_gimple_stmt_uids.
1811 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
1813 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
1815 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1816 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
1818 2019-10-10 Joseph Myers <joseph@codesourcery.com>
1820 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
1822 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
1823 Also define DFP macros for these conditions.
1824 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
1825 DEC128_SUBNORMAL_MIN): Do not define.
1826 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
1827 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
1829 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
1830 Sandra Loosemore <sandra@codesourcery.com>
1833 * doc/lto.texi (IPA): Reference to the IPA passes.
1834 * doc/passes.texi (Pass manager): Add node IPA passes and
1835 description for each IPA pass.
1837 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1839 * ipa-reference.c: Do not include splay-tree.h
1840 (reference_vars_to_consider): Turn to hash map.
1841 (get_static_name, ipa_init, analyze_function, propagate,
1842 stream_out_bitmap, ipa_reference_write_optimization_summary,
1843 ipa_reference_write_optimization_summary): Update.
1845 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1847 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
1849 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
1851 * config/darwin.c: Lookup Objective C metadata and force indirection
1854 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
1856 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
1858 (mem_operand_gpr): Add check for prefixed addresses.
1859 (mem_operand_ds_form): Add check for prefixed addresses.
1860 (rs6000_legitimate_offset_address_p): If we support prefixed
1861 addresses, check for a 34-bit offset instead of 16-bit.
1862 (rs6000_legitimate_address_p): Add check for prefixed addresses.
1863 Do not allow load/store with update if the address is prefixed.
1864 (rs6000_mode_dependent_address): If we support prefixed
1865 addresses, check for a 34-bit offset instead of 16-bit.
1867 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
1870 * config/s390/vector.md (vcond_comparison_operator): New
1872 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
1874 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1877 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
1879 * configure.ac (--with-documentation-root-url): New option.
1880 * configure: Regenerate.
1881 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
1882 option URL, add it as a new string field of the diagnostic option.
1883 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
1884 (print_option_information): If get_option_url is non-NULL, call
1885 it, and if the result is non-NULL, potentially emit an escape
1886 sequence to markup the option text with the resulting URL.
1887 * diagnostic.h (diagnostic_context::get_option_url): New callback.
1888 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
1889 example of JSON output.
1890 * opts-diagnostic.h (get_option_url): New decl.
1891 * opts.c (get_option_url): New function.
1892 * toplev.c (general_init): Initialize the get_option_url callback.
1894 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1897 * common.opt (fdiagnostics-urls=): New option.
1898 (diagnostic-url.h): Add SourceInclude.
1899 (diagnostic_url_rule): New enum.
1900 * diagnostic-color.c: Include "diagnostic-url.h".
1901 (diagnostic_urls_enabled_p): New function.
1902 * diagnostic-url.h: New file.
1903 * diagnostic.c: Include "diagnostic-url.h".
1904 (diagnostic_urls_init): New function.
1905 * diagnostic.h (diagnostic_urls_init): New decl.
1906 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1907 -fdiagnostics-urls to the list.
1908 (-fdiagnostics-urls): New option.
1909 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1910 (driver::global_initializations): Call diagnostic_urls_init.
1911 * opts-global.c (init_options_once): Likewise.
1912 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1913 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1915 (pp_begin_url): New function.
1916 (pp_end_url): New function.
1917 (selftest::test_urls): New selftest.
1918 (selftest::pretty_print_c_tests): Call it.
1919 * pretty-print.h (pretty_printer::show_urls): New field.
1920 (pp_begin_url): New decl.
1921 (pp_end_url): New decl.
1923 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1926 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1928 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1931 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1932 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1933 also for TARGET_FPU_SH4_300.
1934 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1936 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1937 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1938 (*negsf2_i): Split into ...
1939 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1940 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1941 (**abssf2_i): Split into ...
1942 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1943 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1944 (*negdf2_i): Split into ...
1945 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1946 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1947 (**abssf2_i): Split into ...
1948 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1950 2019-10-10 Richard Biener <rguenther@suse.de>
1953 * opts.c (finish_options): Do not influence global --params
1954 from options that are adjustable per function.
1955 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1956 Apply --param adjustment based on active cost-model.
1957 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1958 further store-sinking when vectorization or if-conversion
1961 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1964 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1965 rather than ggc_alloc_cleared to alloc symbol table.
1966 * toplev.c (general_init): Likewise.
1967 * cgraph.h (symbol_table): Explicitly construct every field.
1969 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1971 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1973 * config.gcc: Add z15 as option for --with-arch and --with-tune
1975 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1976 error reporting for unsupported builtins.
1977 * config/s390/s390-opts.h (enum processor_type): Rename
1978 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1979 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1980 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1982 * config/s390/s390-builtins.def: Likewise.
1983 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1984 (s390_expand_builtin): Add missing check for unsupported builtins.
1985 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1986 (s390_rtx_costs): Likewise.
1987 (s390_get_sched_attrmask): Rename arch13 to z15.
1988 (s390_get_unit_mask): Likewise.
1989 (s390_is_fpd): Likewise.
1990 (s390_is_fxd): Likewise.
1991 * config/s390/s390.h (enum processor_flags): Likewise.
1992 * config/s390/s390.md: Likewise.
1993 * config/s390/vector.md: Likewise.
1994 * config/s390/vx-builtins.md: Likewise.
1995 * config/s390/s390.opt: Add z15 to processor_type value.
1997 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
2000 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
2002 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
2003 ("split_stack_data", "split_stack_call")
2004 ("split_stack_call_<mode>", "split_stack_cond_call")
2005 ("split_stack_cond_call_<mode>"): Remove.
2006 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
2008 * config/s390/s390.c (s390_output_split_stack_data): New function.
2009 (s390_expand_split_stack_prologue): Use the merged expander.
2011 2019-10-09 Martin Sebor <msebor@redhat.com>
2013 PR tree-optimization/90879
2014 * builtins.c (check_access): Avoid using maxbound when null.
2015 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
2016 * doc/invoke.texi (-Wstring-compare): Document new warning option.
2017 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
2019 (get_range_strlen): Overwrite initial maxbound when non-null.
2020 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
2022 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
2023 (used_only_for_zero_equality): New function.
2024 (handle_builtin_memcmp): Call it.
2025 (determine_min_objsize): Return an integer instead of tree.
2026 (get_len_or_size, strxcmp_eqz_result): New functions.
2027 (maybe_warn_pointless_strcmp): New function.
2028 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
2029 between a longer string and a smaller array.
2030 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
2032 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
2034 * config/darwin.c (darwin_override_options): Make the check for
2035 Objective-C ABI version more specific for 64bit code.
2037 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
2039 * config/darwin.c (machopic_indirect_data_reference): Set flag to
2040 indicate that the new symbol is an indirection.
2041 (machopic_indirect_call_target): Likewise.
2042 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
2043 (MACHO_SYMBOL_INDIRECTION_P): New.
2044 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
2046 2019-10-08 Jason Merrill <jason@redhat.com>
2048 * doc/invoke.texi: Document -fconcepts-ts.
2050 2019-10-09 Richard Biener <rguenther@suse.de>
2052 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
2053 allow stmts other than GIMPLE_ASSIGN in nested cycles.
2055 2019-10-08 Richard Biener <rguenther@suse.de>
2057 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
2058 (_stmt_vec_info::force_single_cycle): Likewise.
2059 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
2060 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
2061 * tree-vect-loop.c (vectorizable_reduction): Set
2062 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
2063 (vect_transform_reduction): Use them to remove redundant code.
2064 (vect_transform_cycle_phi): Likewise.
2066 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
2068 PR tree-optimization/90836
2069 * gcc/match.pd (popcount): New pattern.
2071 2019-10-08 Martin Sebor <msebor@redhat.com>
2075 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
2076 again once nbytes has been set. Set the access size when not yet set.
2078 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
2080 * config/darwin.c (machopic_select_section): Remove dead code for
2081 old Objective-C section selection method, replace with unreachable.
2083 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
2085 * config/darwin.c (machopic_indirect_data_reference): Check for
2086 required indirections before making direct access to defined
2088 (machopic_output_indirection): Place the indirected pointes for
2089 required indirections into the non-lazy symbol pointers section.
2090 (darwin_encode_section_info):
2091 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
2092 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
2094 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
2097 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
2098 instead of ALL_SSE_REG to check if function call preserves some
2099 256-bit SSE registers.
2101 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2103 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
2104 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
2105 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
2107 2019-10-08 Richard Biener <rguenther@suse.de>
2109 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
2110 (_stmt_vec_info::is_reduc_info): Add.
2111 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
2112 (vectorizable_condition): Remove.
2113 (vectorizable_shift): Likewise.
2114 (vectorizable_reduction): Adjust.
2115 (info_for_reduction): New.
2116 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
2117 (vect_analyze_scalar_cycles_1): ... here.
2118 (vect_analyze_loop_operations): Adjust.
2119 (needs_fold_left_reduction_p): Simplify for single caller.
2120 (vect_is_simple_reduction): Likewise. Remove stmt restriction
2121 for nested cycles not part of double reductions.
2122 (vect_model_reduction_cost): Pass in the reduction type.
2123 (info_for_reduction): New function.
2124 (vect_create_epilog_for_reduction): Use it, access reduction
2125 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
2126 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
2127 (vectorize_fold_left_reduction): Remove pointless assert.
2128 (vectorizable_reduction): Analyze the full reduction when
2129 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
2130 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
2131 stmt code-generation to vectorizable_* in most cases. Verify
2132 code-generation only for cases handled by
2133 vect_transform_reductuon.
2134 (vect_transform_reduction): Use info_for_reduction to get at
2135 reduction meta. Simplify.
2136 (vect_transform_cycle_phi): Likewise.
2137 (vectorizable_live_operation): Likewise.
2138 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
2139 at the PHI node for STMT_VINFO_REDUC_TYPE.
2140 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
2141 longer necessary code.
2142 * tree-vect-stmts.c (vectorizable_shift): Make static again.
2143 (vectorizable_condition): Likewise. Get at reduction related
2144 info via info_for_reduction.
2145 (vect_analyze_stmt): Adjust.
2146 (vect_transform_stmt): Likewise.
2147 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2148 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
2150 2019-10-08 Joseph Myers <joseph@codesourcery.com>
2152 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
2153 -fno-fp-int-builtin-inexact default for C2X.
2155 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2156 Richard Biener <rguenther@suse.de>
2158 PR tree-optimization/91532
2159 * tree-if-conv.c: Include tree-ssa-dse.h.
2160 (ifcvt_local_dce): Change param from bb to loop,
2161 and call dse_classify_store.
2162 (tree_if_conversion): Pass loop instead of loop->header as arg
2164 * tree-ssa-dse.c: Include tree-ssa-dse.h.
2165 (delete_dead_or_redundant_assignment): Remove static qualifier from
2166 declaration, and add prototype in tree-ssa-dse.h.
2167 (dse_store_status): Move to tree-ssa-dse.h.
2168 (dse_classify_store): Remove static qualifier and add new tree param
2169 stop_at_vuse, and add prototype in tree-ssa-dse.h.
2170 * tree-ssa-dse.h: New header.
2172 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
2174 * config/darwin.c (machopic_output_indirection): Don't put
2175 hidden symbol indirections into the .data section, use the
2176 non-lazy symbol pointers section as normal.
2177 (darwin_encode_section_info): Record if a symbol is hidden.
2178 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
2179 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
2181 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
2183 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
2184 predicates instead of accessing bits directly.
2185 (machopic_indirect_call_target): Likewise.
2186 (machopic_output_indirection): Likewise.
2187 (darwin_encode_section_info): Improve description. Use renamed
2188 symbol flags. Use predicate macros for variables and functions.
2190 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
2191 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
2192 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
2193 (MACHO_SYMBOL_VARIABLE_P): New.
2194 (MACHO_SYMBOL_DEFINED_P):New.
2195 (MACHO_SYMBOL_STATIC_P): New.
2196 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
2197 (SYMBOL_FLAG_SUBT_DEP): New.
2198 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
2200 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2202 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
2203 (msp430_expand_epilogue): Likewise.
2204 * config/msp430/predicates.md: Likewise.
2205 * config/msp430/msp430.md: Likewise.
2206 Replace blocks of 8 spaces with tabs.
2208 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2210 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
2211 * config/msp430/msp430.c (msp430_split_addsi): New.
2212 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
2213 a block of C code for splitting addsi.
2215 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
2217 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
2218 ix86_expand_rounddf_32): Reorder functions.
2219 * config/i386/i386-protos.h: Update.
2221 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2223 * config.in: Regenerate.
2224 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
2225 Add new "Yx" constraint.
2226 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
2228 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
2230 * config/msp430/msp430.c (msp430_option_override): Allow the lower
2231 code/data region to be selected in the small memory model.
2232 (msp430_section_attr): Don't warn if the "section" and "lower"
2233 attributes are used together.
2234 (msp430_handle_generic_attribute): Likewise.
2235 (msp430_var_in_low_mem): New function.
2236 (TARGET_ENCODE_SECTION_INFO): Define.
2237 (msp430_encode_section_info): New function.
2238 (gen_prefix): Return early in the small memory model.
2239 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
2240 ".lower" prefix if -m{code,data}-region=lower have been passed.
2241 (msp430_output_aligned_decl_common): Emit common symbols when
2242 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
2244 (TARGET_ASM_FILE_END): Define.
2245 (msp430_file_end): New function.
2246 (msp430_do_not_relax_short_jumps): Allow relaxation when
2247 function will be in the lower region.
2248 (msp430_op_not_in_high_mem): New function.
2249 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
2250 the 'X' operand selector.
2251 Clarify comment for 'x' operand selector.
2252 * config/msp430/msp430.h (LINK_SPEC): Propagate
2253 -m{code,data}-region to the linker via spec function
2254 msp430_propagate_region_opt.
2255 (msp430_propagate_region_opt): New prototype.
2256 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
2257 (SYMBOL_FLAG_LOW_MEM): Define.
2258 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
2260 (zero_extendqihi2): Fix operand number used by "%X" selector.
2261 (zero_extendqisi2): Likewise.
2262 (zero_extendhisi2): Likewise.
2263 (movqi): Use "Yx" constraint in place of "%X" operand selector.
2268 (addhi3_cy): Likewise.
2269 (addchi4_cy): Likewise.
2273 (bic<mode>3): Likewise.
2274 (and<mode>3): Likewise.
2275 (ior<mode>3): Likewise.
2276 (xor<mode>3): Likewise.
2277 (slli_1): Add missing "%X" operand selector.
2285 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
2287 (cbranchhi4_real): Likewise.
2288 (cbranchqi4_reversed): Likewise.
2289 (cbranchhi4_reversed): Likewise.
2290 (*bitbranch<mode>4): Likewise.
2291 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
2292 * config/msp430/msp430.opt (mcode-region=): Set default to
2293 MSP430_REGION_LOWER. Improve docstring.
2294 (mdata-region=): Likewise.
2295 (muse-lower-region-prefix): New option.
2296 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
2297 mdata-region=none multilib.
2298 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
2299 mdata-region=none multilib.
2300 MULTILIB_EXCEPTIONS: Remove.
2301 MULTILIB_REQUIRED: Define.
2302 * configure: Regenerate.
2303 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
2304 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
2305 * doc/extend.texi: Clarify comment for {upper,lower,either}
2306 function attributes.
2307 Add separate description for "lower" variable attribute.
2309 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
2312 * optabs-tree.c (vcond_icode_p): New function.
2313 (vcond_eq_icode_p): Likewise.
2314 (expand_vec_cond_expr_p): Use vcond_icode_p and
2316 * optabs.c (can_vcond_compare_p): New function.
2317 * optabs.h (can_vcond_compare_p): Likewise.
2319 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
2322 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
2323 caller passes a non-trapping condition.
2324 (is_gimple_condexpr): Allow trapping conditions.
2325 (is_gimple_condexpr_1): New helper function.
2326 (is_gimple_condexpr_for_cond): New function, acts like old
2328 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
2329 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
2330 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
2331 * gimplify.c (gimplify_cond_expr): Use
2332 is_gimple_condexpr_for_cond.
2333 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
2334 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
2336 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
2337 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
2338 is_gimple_condexpr_for_cond, remove pointless tmp check
2339 (forward_propagate_into_cond): Remove pointless tmp check.
2341 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
2343 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
2344 match that of other gsi_next_* functions. Adjust the comment.
2345 (gsi_start_nonvirtual_phis): New function.
2346 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
2347 gsi_next_nonvirtual_phi accordingly. (No functional change.)
2349 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
2351 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
2352 setjmp situation here. Fix a verb's ending: "the exact variables or
2353 elements for which there are warnings depends" -> "... depend".
2355 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2357 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
2359 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2361 * ipa-prop.c (ipa_vr::nonzero_p): New.
2362 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
2364 * ipa-prop.h (class ipa_vr): Add nonzero_p.
2365 * tree-vrp.c (range_has_numeric_bounds_p): New.
2366 (range_int_cst_p): Use range_has_numeric_bounds_p.
2367 (get_range_op_handler): New.
2368 (supported_types_p): New.
2369 (defined_ranges_p): New.
2370 (drop_undefines_to_varying): New.
2371 (range_fold_binary_symbolics_p): New.
2372 (range_fold_unary_symbolics_p): New.
2373 (range_fold_unary_expr): Extract out into above functions.
2374 (range_fold_binary_expr): Same.
2375 (value_range_base::normalize_addresses): New.
2376 (value_range_base::normalize_symbolics): Normalize addresses.
2377 * tree-vrp.h (class value_range_base): Add normalize_addresses.
2379 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2381 * tree-vrp.c (value_range_base::singleton_p): Use
2382 value_range_base::num_pairs instead of vrp_val_is* to check
2383 if a range has one sub-range.
2385 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2387 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
2388 DEF is not a true earlyclobber but is tied to a specific input
2389 operand, and so is effectively earlyclobber wrt inputs that have
2391 (make_early_clobber_and_input_conflicts): Pass this case to the above.
2393 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2395 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
2396 (pod_mode): Mark operators likewise.
2397 (scalar_int_mode): Mark non-default constructors and
2398 operators with CONSTEXPR.
2399 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
2400 (fixed_size_mode): Likewise.
2402 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2405 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
2406 and wrap the unspec_volatile in a parallel.
2407 (*avx_vzeroupper): New define_insn. Use a match_parallel around
2408 the unspec_volatile.
2409 * config/i386/predicates.md (vzeroupper_pattern): Expect the
2410 unspec_volatile to be wrapped in a parallel.
2411 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
2412 (ix86_add_reg_usage_to_vzerouppers): New functions.
2413 (rest_of_handle_insert_vzeroupper): Use them to add register
2414 usage information to the vzeroupper instructions.
2416 2019-10-07 Richard Biener <rguenther@suse.de>
2418 PR tree-optimization/91975
2419 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
2422 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
2424 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
2425 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
2427 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
2429 * config/darwin.c (darwin_override_options): Adjust objective-c
2430 ABI version error messages to avoid punctuation and contracted
2433 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
2435 * ipa-inline.c: Fix type; compute size rather than self_size
2436 for size of caller function.
2438 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
2441 * config/darwin.c (darwin_rodata_section): Add relocation flag,
2442 choose const_data section for constants with relocations.
2443 (machopic_select_section): Pass relocation flag to
2444 darwin_rodata_section ().
2446 2019-10-05 Jakub Jelinek <jakub@redhat.com>
2448 PR tree-optimization/91734
2449 * generic-match-head.c: Include fold-const-call.h.
2450 * match.pd (sqrt(x) cmp c): Check the boundary value and
2451 in case inexact computation of c*c affects comparison of the boundary,
2452 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
2453 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
2454 for -frounding-math. For c2, try the next smaller or larger floating
2455 point constant depending on comparison code and if it has the same
2456 sqrt as c2, use it instead of c2.
2458 2019-10-04 Martin Sebor <msebor@redhat.com>
2461 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
2462 MEM_REF right operand. Avoid failing for MEM_REF assignments from
2463 uninitialized objects.
2465 2019-10-04 Martin Sebor <msebor@redhat.com>
2467 * builtins.c (compute_objsize): Add an argument.
2468 * tree-object-size.c (addr_object_size): Same.
2469 (compute_builtin_object_size): Same.
2470 * tree-object-size.h (compute_builtin_object): Same.
2472 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
2474 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
2476 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
2478 * match.pd (sinh (x) / cosh (x)): New simplification rule.
2480 2019-10-04 Martin Jambor <mjambor@suse.cz>
2482 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
2483 fntype when switching to calling memcpy instead of memset.
2485 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2487 * hash-table.h (hash_table::empty_slow): Don't assign
2488 size_t values to int variables.
2490 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2492 * expr.c (convert_mode_scalar): Remove shadowing local var.
2493 (emit_block_move): Rename local vars.
2494 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
2495 (emit_push_insn): Rename local vars.
2496 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
2497 shadowing local vars.
2498 (store_constructor): Remove shadowing local vars. Rename local var.
2499 (store_field, expand_cond_expr_using_cmove,
2500 expand_expr_real_2): Remove shadowing local vars.
2501 (expand_expr_real_1,
2502 do_store_flag): Remove shadowing local vars. Rename local vars.
2504 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2506 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
2508 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2510 * genmatch.c (commutate): Rename local var.
2511 (lower_cond): Reuse local var.
2512 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
2513 dt_operand::gen, dt_operand::gen_gimple_expr,
2514 dt_simplify::gen): Add a param. Rename generated vars.
2515 (decision_tree::insert_operand,
2516 (capture_info::walk_match, capture_info::walk_result,
2517 capture_info::walk_c_expr): Rename local vars.
2518 (expr::gen_transform): Rename generated vars.
2519 Use snprintf. Rename local vars.
2520 (capture::gen_transform, dt_operand::get_name,
2521 dt_operand::gen_opname): Rename generated vars.
2522 (write_predicate): Adjust call to gen_kids.
2523 (parser::get_internal_capture_id): Rename generated vars.
2524 (parser::parse_expr): Rename local vars.
2525 (parser::parse_if): Remove local var.
2526 (parser::parse_pattern, add_operator): Rename local vars.
2528 2019-10-04 Joseph Myers <joseph@codesourcery.com>
2530 * builtins.def (DEF_C2X_BUILTIN): New macro.
2531 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
2532 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
2533 (strndup): Use DEF_C2X_BUILTIN.
2534 * coretypes.h (enum function_class): Add function_c2x_misc.
2536 2019-10-04 Maya Rashish <coypu@sdf.org>
2538 * ira-color.c (update_costs_from_allocno): Call
2539 ira_init_register_move_cost_if_necessary.
2541 2019-10-04 Jeff Law <law@redhat.com>
2543 * config/h8300/h8300.md (cpymemsi): Disable.
2544 (movmd, movmd_internal_<mode>, movstr, movsd):
2545 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
2546 (movmd splitter, movsd splitter): Likewise.
2548 * range-op.cc (range_tests): Avoid two tests when ints and
2549 shorts are the same size.
2551 2019-10-04 Richard Biener <rguenther@suse.de>
2554 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
2557 2019-10-04 Richard Biener <rguenther@suse.de>
2559 PR tree-optimization/91982
2560 * tree-vect-loop.c (vectorizable_live_operation): Also guard
2561 against EXTRACT_LAST_REDUCTION.
2562 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
2564 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
2566 * range-op.o (value_range_from_overflowed_bounds): Rename from
2567 adjust_overflow_bound.
2568 (value_range_with_overflow): Rename from
2569 create_range_with_overflow.
2570 (create_possibly_reversed_range): Adjusted for above renames.
2571 (operator_*::wi_fold): Same.
2572 (cross_product_operator::wi_cross_productor): Same.
2574 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2576 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
2577 -Wshadow=compatible-local): Fix description.
2578 Add an example where -Wshadow=compatible-local does not
2581 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
2583 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
2585 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
2586 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
2588 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
2590 * expr.c (emit_block_move_hints): Slightly cleaner fix to
2591 can_move_by_pieces issue.
2593 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
2596 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
2597 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
2598 is available and the user has not set one on the command line.
2600 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2603 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
2604 instead of REGNO equality check on addr.reg.
2606 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
2608 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
2609 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
2610 * doc/invoke.texi (inline-heuristics-hint-percent,
2611 inline-heuristics-hint-percent-O2): Document.
2612 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
2614 (can_inline_edge_by_limits_p): Use it.
2616 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
2618 * config/arm/arm.c (arm_print_value): Use real_to_decimal
2619 to print CONST_DOUBLEs.
2621 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
2623 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
2624 * ipa-prop.c (ipcp_free_transformation_sum): New function.
2625 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
2627 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
2629 * Makefile.in (OBJS): Add range.o and range-op.o.
2630 Remove wide-int-range.o.
2631 * function-tests.c (test_ranges): New.
2632 (function_tests_c_tests): Call test_ranges.
2633 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
2634 range_fold_unary_expr instead of extract_range_from_unary_expr.
2635 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
2636 * range-op.cc: New file.
2637 * range-op.h: New file.
2638 * range.cc: New file.
2639 * range.h: New file.
2640 * selftest.h (range_tests): New prototype.
2641 * ssa.h: Include range.h.
2642 * tree-vrp.c (value_range_base::value_range_base): New
2644 (value_range_base::singleton_p): Do not call
2645 ranges_from_anti_range until sure we will need to.
2646 (value_range_base::type): Rename gcc_assert to
2647 gcc_checking_assert.
2648 (vrp_val_is_max): New argument.
2649 (vrp_val_is_min): Same.
2650 (wide_int_range_set_zero_nonzero_bits): Move from
2652 (extract_range_into_wide_ints): Remove.
2653 (extract_range_from_multiplicative_op): Remove.
2654 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
2655 from extract_range_from_binary_expr.
2656 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
2657 from extract_range_from_binary_expr.
2658 (extract_range_from_binary_expr): Remove.
2659 (normalize_for_range_ops): New.
2660 (range_fold_binary_expr): New.
2661 (range_fold_unary_expr): New.
2662 (value_range_base::num_pairs): New.
2663 (value_range_base::lower_bound): New.
2664 (value_range_base::upper_bound): New.
2665 (value_range_base::upper_bound): New.
2666 (value_range_base::contains_p): New.
2667 (value_range_base::invert): New.
2668 (value_range_base::union_): New.
2669 (value_range_base::intersect): New.
2670 (range_compatible_p): New.
2671 (value_range_base::operator==): New.
2672 (determine_value_range_1): Call range_fold_*expr instead of
2673 extract_range_from_*expr.
2674 * tree-vrp.h (class value_range_base): Add new constructors.
2675 Add methods for union_, intersect, operator==, contains_p,
2676 num_pairs, lower_bound, upper_bound, invert.
2677 (vrp_val_is_min): Add handle_pointers argument.
2678 (vrp_val_is_max): Same.
2679 (extract_range_from_unary_expr): Remove.
2680 (extract_range_from_binary_expr): Remove.
2681 (range_fold_unary_expr): New.
2682 (range_fold_binary_expr): New.
2683 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
2684 range_fold_binary_expr instead of extract_range_from_binary_expr.
2685 (vr_values::extract_range_basic): Same.
2686 (vr_values::extract_range_from_unary_expr): Call
2687 range_fold_unary_expr instead of extract_range_from_unary_expr.
2688 * wide-int-range.cc: Remove.
2689 * wide-int-range.h: Remove.
2691 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
2693 * config/rs6000/rs6000.c (mem_operand_gpr): Use
2694 SIGNED_16BIT_OFFSET_EXTRA_P macro.
2695 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
2696 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
2699 2019-10-02 Joseph Myers <joseph@codesourcery.com>
2701 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
2702 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
2703 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
2704 * glimits.h: Likewise.
2706 2019-10-03 Jakub Jelinek <jakub@redhat.com>
2708 PR rtl-optimization/91976
2709 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
2710 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
2711 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
2713 2019-10-02 Martin Sebor <msebor@redhat.com>
2715 PR tree-optimization/80936
2716 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
2718 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2720 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
2721 instead of reg_class_contents[ALL_REGS].
2723 2019-09-30 Jason Merrill <jason@redhat.com>
2725 Add some hash_map_safe_* functions like vec_safe_*.
2726 * hash-map.h (default_hash_map_size): New variable.
2727 (create_ggc): Use it as default argument.
2728 (hash_map_maybe_create, hash_map_safe_get)
2729 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
2731 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
2733 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
2734 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
2735 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
2736 (can_inline_edge_by_limits_p): Use it.
2737 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
2738 (want_inline_small_function_p): Use O2 bounds.
2739 (edge_badness): LIkewise.
2740 * opts.c (default_options): Add OPT_finline_functions.
2741 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
2742 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
2744 * doc/invoke.texi (-finline-functions): Update documentation.
2745 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
2746 inline-min-speedup-O2): Document.
2747 (early-inlining-insns-O2): Simplify docs.
2749 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
2751 PR rtl-optimization/87047
2752 * ifcvt.c (average_cost): New static function. Use it...
2753 (noce_process_if_block): ... here.
2755 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
2757 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
2758 * config/rs6000/rs6000-string.c (expand_block_move): Add
2760 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
2761 (cpymemsi): Add might_overlap parm to expand_block_move() call.
2763 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
2765 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
2766 (expand_builtin_memcpy): Use might_overlap parm.
2767 (expand_builtin_mempcpy_args): Use might_overlap parm.
2768 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
2769 (expand_builtin_memory_copy_args): Add might_overlap parm.
2770 * expr.c (emit_block_move_via_cpymem): Rename to
2771 emit_block_move_via_pattern, add might_overlap parm, use cpymem
2772 or movmem optab as appropriate.
2773 (emit_block_move_hints): Add might_overlap parm, do the right
2774 thing for might_overlap==true.
2775 * expr.h (emit_block_move_hints): Update prototype.
2777 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
2779 * tree-eh.h (unsplit_eh_edges): Declare.
2780 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
2781 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
2782 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
2783 (struct store_immediate_info): Add lp_nr field.
2784 (store_immediate_info::store_immediate_info): Add NR2 parameter and
2785 initialize lp_nr with it.
2786 (struct merged_store_group): Add lp_nr and only_constants fields.
2787 (merged_store_group::merged_store_group): Initialize them.
2788 (merged_store_group::can_be_merged_into): Deal with them.
2789 (pass_store_merging): Rename terminate_and_release_chain into
2790 terminate_and_process_chain.
2791 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
2792 renaming and remove useless assertions.
2793 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
2794 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
2795 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
2796 instead of always recomputing it and compare lp_nr.
2797 (imm_store_chain_info::output_merged_store): If the group is in an
2798 active EH region, register new stores if they can throw. Moreover,
2799 if the insertion has created new basic blocks, adjust the PHI nodes
2800 of the post landing pad.
2801 (imm_store_chain_info::output_merged_stores): If the original stores
2802 are in an active EH region, deregister them.
2803 (lhs_valid_for_store_merging_p): Prettify.
2804 (adjust_bit_pos): New function extracted from...
2805 (mem_valid_for_store_merging): ...here. Use it for the base address
2806 and also for the offset if it is the addition of a constant.
2807 (lp_nr_for_store): New function.
2808 (pass_store_merging::process_store): Change return type to bool.
2809 Call lp_nr_for_store to initialize the store info. Propagate the
2810 return status of various called functions to the return value.
2811 (store_valid_for_store_merging_p): New predicate.
2812 (enum basic_block_status): New enumeration.
2813 (get_status_for_store_merging): New function.
2814 (pass_store_merging::execute): If the function can throw and catch
2815 non-call exceptions, unsplit the EH edges on entry and clean up the
2816 CFG on exit if something changed. Call get_status_for_store_merging
2817 for every basic block and keep the chains open across basic blocks
2818 when possible. Terminate and process open chains at the end, if any.
2820 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2822 * reginfo.c (globalize_reg): Fix shadowed variable in
2825 2019-10-02 Martin Jambor <mjambor@suse.cz>
2827 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
2828 do not compute some stuff when set.
2829 (cgraph_node::create_edge): Likewise.
2830 (cgraph_node::create_indirect_edge): Renamed last parameter to
2831 coning_p and flipped its meaning, don't even calculate
2832 inline_failed when set.
2833 * cgraph.h (cgraph_node::create_edge): Add new parameter.
2834 (symbol_table::::create_edge): Likewise.
2835 (cgraph_node::create_indirect_edge): Rename last parameter, flip
2837 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
2838 call graph edge creating functions.
2840 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2843 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
2846 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
2848 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
2850 2019-10-02 Richard Biener <rguenther@suse.de>
2852 * tree-vectorizer.h (vect_transform_reduction): Declare.
2853 * tree-vect-stmts.c (vect_transform_stmt): Use it.
2854 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
2855 stmt transform to ...
2856 (vect_transform_reduction): ... this.
2858 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
2860 * omp-low.c (lower_omp_target): Dereference optional argument
2861 to work with the right pointer.
2863 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
2865 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
2867 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
2868 * langhooks.h (omp_is_optional_argument): New hook.
2869 * omp-general.c (omp_is_optional_argument): New.
2870 * omp-general.h (omp_is_optional_argument): New declaration.
2871 * omp-low.c (lower_omp_target): Create temporary for received value
2872 and take the address for new_var if the original variable was a
2873 DECL_BY_REFERENCE. Use size of referenced object when a
2874 pass-by-reference optional argument used as argument to firstprivate.
2876 2019-10-02 Jakub Jelinek <jakub@redhat.com>
2878 PR tree-optimization/91940
2879 * tree-vect-patterns.c: Include tree-vector-builder.h and
2881 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
2882 unpromoting the argument back to uint16_t, or by converting into a
2883 rotate, or into shifts plus ior.
2885 2019-10-02 Richard Biener <rguenther@suse.de>
2887 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
2889 (vect_transform_cycle_phi): Declare.
2890 * tree-vect-stmts.c (vect_transform_stmt): Call
2891 vect_transform_cycle_phi.
2892 * tree-vect-loop.c (vectorizable_reduction): Split out
2893 PHI transformation stage to ...
2894 (vect_transform_cycle_phi): ... here.
2896 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2899 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
2900 eliminable registers.
2901 (make_hard_regno_live): Likewise, and don't make them live.
2903 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2905 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
2906 Call pp_emit_prefix.
2907 (layout::print_source_line): Likewise.
2908 (layout::start_annotation_line): Likewise.
2909 (diagnostic_show_locus): Remove call to temporarily clear the
2911 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2912 interaction of pp_set_prefix with rulers and fix-it hints.
2913 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2914 prefix when calling diagnostic_show_locus, rather than destroying
2916 (print_parseable_fixits): Temporarily clear prefix.
2917 * pretty-print.c (pp_format): Save and restore line_length, rather
2918 than assuming it is zero.
2919 (pp_output_formatted_text): Remove assertion that line_length is
2922 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2924 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2926 (nonoverlapping_refs_since_match_p): ... this; handle also
2928 (alias_stats): Update stats.
2929 (dump_alias_stats): Likewise.
2930 (cheap_array_ref_low_bound): New function.
2931 (aliasing_matching_component_refs_p): Add partial_overlap
2933 pass it to nonoverlapping_refs_since_match_p.
2934 (aliasing_component_refs_walk): Update call of
2935 aliasing_matching_component_refs_p
2936 (nonoverlapping_array_refs_p): New function.
2937 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2938 indirect_refs_may_alias_p): Update calls of
2939 nonoverlapping_refs_since_match_p.
2941 2019-10-01 Maya Rashish <coypu@sdf.org>
2944 * ira-color.c (allocno_copy_cost_saving): Call
2945 ira_init_register_move_cost_if_necessary.
2947 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2949 * Makefile.in (gnat_install_lib): New variable.
2950 * configure.ac: Substitute it.
2951 * configure: Regenerate.
2953 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2956 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2957 is matched with non-C++ type
2959 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2961 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2964 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2966 * doc/invoke.texi (early-inlining-insns-O2): Document.
2967 (early-inlining-insns): Update.
2968 * params.def (early-inlining-insns-O2): New bound.
2969 (early-inlining-insns): Update docs.
2970 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2972 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2975 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2976 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2977 a memory access insn.
2979 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2981 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2984 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2987 * config/s390/s390.c (s390_expand_vec_compare): Use
2988 gen_vec_cmpordered and gen_vec_cmpunordered.
2989 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2990 vec_unordered): Delete.
2991 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2992 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2993 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2994 (vec_cmp<code>): Generic dispatcher.
2996 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2999 * config/s390/vector.md (V_HW): Add V1TI in order to make
3000 vcond$a$b generate vcondv1tiv1tf.
3002 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3004 PR rtl-optimization/91948
3005 * ira-build.c (ira_create_allocno): Initialize
3006 ALLOCNO_CROSSED_CALLS_ABIS.
3007 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
3008 than regno to ira_need_caller_save_p.
3010 2019-10-01 Alexandre Oliva <oliva@adacore.com>
3012 * config/i386/i386-options.c
3013 (ix86_recompute_optlev_based_flags): New, moved out of...
3014 (ix86_option_override_internal): ... this. Call it.
3015 (ix86_override_options_after_change): Call it here too.
3018 * dwarf2out.c (override_type_for_decl_p): New.
3019 (gen_variable_die): Use it.
3021 2019-10-01 Richard Biener <rguenther@suse.de>
3023 * tree-vect-loop.c (vectorizable_reduction): Move variables
3024 to where they are used.
3026 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3028 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
3029 (build_def_use): Use PC instead of CC0 in a comment.
3031 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3033 * rtl.def (CLOBBER_HIGH): Delete.
3034 * doc/rtl.texi (clobber_high): Remove documentation.
3035 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
3036 (reg_is_clobbered_by_clobber_high): Delete.
3037 (gen_hard_reg_clobber_high): Likewise.
3038 * alias.c (record_set): Remove CLOBBER_HIGH handling.
3039 * cfgexpand.c (expand_gimple_stmt): Likewise.
3040 * combine-stack-adj.c (single_set_for_csa): Likewise.
3041 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
3042 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
3043 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
3044 * cse.c (invalidate_reg): Remove clobber_high parameter.
3045 (invalidate): Update call accordingly.
3046 (canonicalize_insn): Remove CLOBBER_HIGH handling.
3047 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
3048 (count_reg_usage, insn_live_p): Likewise.
3049 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
3050 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
3051 (cselib_invalidate_rtx_note_stores): Update call accordingly.
3052 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
3053 (cselib_invalidate_regno, cselib_process_insn): Likewise.
3054 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
3055 (mark_nonreg_stores_2): Likewise.
3056 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
3057 (df_get_call_refs): Likewise.
3058 * dwarf2out.c (mem_loc_descriptor): Likewise.
3059 * emit-rtl.c (verify_rtx_sharing): Likewise.
3060 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
3061 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
3062 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
3063 * genemit.c (gen_exp, gen_insn): Likewise.
3064 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
3065 * haifa-sched.c (haifa_classify_rtx): Likewise.
3066 * ira-build.c (create_insn_allocnos): Likewise.
3067 * ira-costs.c (scan_one_insn): Likewise.
3068 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
3069 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
3070 * jump.c (mark_jump_label_1): Likewise.
3071 * lra-int.h (lra_insn_reg::clobber_high): Delete.
3072 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
3074 (mark_not_eliminable): Likewise.
3075 * lra-lives.c (process_bb_lives): Likewise.
3076 * lra.c (new_insn_reg): Remove clobber_high parameter.
3077 (collect_non_operand_hard_regs): Likewise. Update call to new
3078 insn_reg. Remove CLOBBER_HIGH handling.
3079 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
3080 to collect_non_operand_hard_regs.
3081 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
3082 Update call to new_insn_reg.
3083 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
3084 * postreload.c (reload_cse_simplify, reload_combine_note_use)
3085 (move2add_note_store): Likewise.
3086 * print-rtl.c (print_pattern): Likewise.
3087 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
3088 (if_test_bypass_p): Likewise.
3089 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
3090 * reginfo.c (reg_scan_mark_refs): Likewise.
3091 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
3092 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
3093 (forget_old_reloads_1): Likewise.
3094 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
3095 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
3096 (dbr_schedule): Likewise.
3097 * resource.c (update_live_status, mark_referenced_resources)
3098 (mark_set_resources): Likewise.
3099 * rtl.c (copy_rtx): Likewise.
3100 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
3101 (note_pattern_stores): Likewise.
3102 (reg_is_clobbered_by_clobber_high): Delete.
3103 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
3104 CLOBBER_HIGH handling.
3106 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3109 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
3110 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
3111 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3112 Handle ARM_PCS_TLSDESC.
3113 (aarch64_tlsdesc_abi_id): New function.
3114 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
3115 rtx instead of a list of clobbers and clobber_highs.
3116 (tlsdesc_small_<mode>): Update accordingly.
3118 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3120 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
3121 extra callee_abi argument.
3122 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
3123 Insert a CALLEE_ABI unspec into the call pattern as the second
3124 element in the PARALLEL.
3125 (aarch64_simd_call_p): Delete.
3126 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
3127 the new CALLEE_ABI element of the PARALLEL.
3128 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
3129 from the function type, if given.
3130 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
3131 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
3132 when passed the function_arg_info end marker.
3133 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
3134 final argument of gen_sibcall.
3135 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
3136 (call): Make operand 2 a const_int_operand and pass it to expand_call.
3137 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
3139 (call_value): Likewise operand 3.
3140 (sibcall): Likewise operand 2. Place the unspec before rather than
3142 (sibcall_value): Likewise operand 3.
3143 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
3144 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
3145 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
3147 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
3149 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3151 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
3152 choose_hard_reg_mode.
3153 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3155 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3157 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
3158 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
3159 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
3161 2019-09-30 David Malcolm <dmalcolm@redhat.com>
3163 * diagnostic-show-locus.c (line_label::line_label): Initialize
3165 (line_label::comparator): Reverse the sort order by m_state_idx,
3166 so that when the list is walked backwards the labels appear in
3167 order of insertion into the rich_location.
3168 (line_label::m_has_vbar): New field.
3169 (layout::print_any_labels): When dealing with multiple labels at
3170 the same line and column, only print vertical bars for the one
3171 with the highest label_line.
3172 (selftest::test_one_liner_labels): Update test for multiple labels
3173 to expect the labels to be in the order of insertion into the
3174 rich_location. Add a test for many such labels, where the column
3175 numbers are out-of-order relative to the insertion order.
3177 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3179 * config/i386/i386.h (ix86_frame::expensive_p): New field.
3180 (ix86_frame::expensive_count): Likewise.
3181 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
3182 of use_fast_prologue_epilogue robust against incidental changes
3185 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
3188 * config/s390/vector.md (vec_unordered<mode>): Call
3189 gen_vec_ordered<mode>.
3191 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
3193 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
3194 New pattern for ASRD.
3195 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
3196 * internal-fn.def (IFN_DIV_POW2): New internal function.
3197 * optabs.def (sdiv_pow2_optab): New optab.
3198 * tree-vect-patterns.c (vect_recog_divmod_pattern):
3199 Modify pattern to support new operation.
3200 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
3201 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
3202 Document new target selector.
3204 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3206 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
3207 to test whether we're compiling a vector PCS function and to test
3208 whether the function needs to save a particular register.
3209 Remove the vector PCS handling of df_set_regs_ever_live.
3210 (aarch64_components_for_bb): Use crtl->abi to test whether
3211 the function needs to save a particular register.
3212 (aarch64_process_components): Use crtl->abi to test whether
3213 we're compiling a vector PCS function.
3214 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
3215 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
3217 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3219 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
3221 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
3222 whether the block calls a function that clobbers more registers
3223 than the current function is allowed to.
3224 (aarch64_use_simple_return_insn_p): Delete.
3225 * config/aarch64/aarch64.md (simple_return): Remove condition.
3227 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3229 * function-abi.h (function_abi_aggregator): New class.
3230 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
3232 * ira.c (update_equiv_regs_prescan): New function. Call
3233 set_paradoxical_subreg here rather than...
3234 (update_equiv_regs): ...here.
3235 (ira): Call update_equiv_regs_prescan.
3237 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3239 * hard-reg-set.h (regs_invalidated_by_call): Only define if
3241 (call_used_or_fixed_regs): Likewise.
3242 (call_used_or_fixed_reg_p): Likewise.
3243 * reginfo.c (regs_invalidated_by_call): New macro.
3245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3247 * shrink-wrap.c: Include function-abi.h.
3248 (requires_stack_frame_p): Use crtl->abi to test whether the
3249 current function can use a register without saving it first.
3251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3253 * sel-sched-ir.h (_def::crosses_call): Replace with...
3254 (_def::crossed_call_abis): ..this new field.
3255 (def_list_add): Take a mask of ABIs instead of a crosses_call
3257 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
3258 of _def accordingly.
3259 * sel-sched.c: Include function-abi.h.
3260 (hard_regs_data::regs_for_call_clobbered): Delete.
3261 (reg_rename::crosses_call): Replace with...
3262 (reg_rename::crossed_call_abis): ...this new field.
3263 (fur_static_params::crosses_call): Replace with...
3264 (fur_static_params::crossed_call_abis): ...this new field.
3265 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
3266 (init_hard_regs_data): Use crtl->abi to test which registers the
3267 current function would need to save before it uses them.
3268 (mark_unavailable_hard_regs): Update handling of call-clobbered
3269 registers, using call_clobbers_in_region to find out which registers
3270 might be call-clobbered (but without taking -fipa-ra into account
3271 for now). Remove separate handling of partially call-clobbered
3273 (verify_target_availability): Use crossed_call_abis instead of
3275 (get_spec_check_type_for_insn, find_used_regs): Likewise.
3276 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
3278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3280 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
3281 function to test whether a register is fully or partly clobbered.
3283 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3285 * rtlanal.c: Include function-abi.h.
3286 (reg_set_p): Use insn_callee_abi to get the ABI of the called
3287 function and clobbers_reg_p to test whether the register
3289 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
3290 to get the ABI of the called function and full_reg_clobbers to
3291 get the set of fully call-clobbered registers. Warn about the
3292 pitfalls of using this mode.
3294 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3296 * reload.c: Include function-abi.h.
3297 (find_equiv_reg): Use clobbers_reg_p to test whether either
3298 of the equivalent registers is clobbered by a call.
3299 * reload1.c: Include function-abi.h.
3300 (reg_reloaded_call_part_clobbered): Delete.
3301 (reload): Use crtl->abi to test which registers would need
3302 saving in the prologue before use.
3303 (find_reg): Likewise.
3304 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
3305 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
3306 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
3308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3310 * regrename.h (du_head::call_clobber_mask): New field.
3311 (du_head::need_caller_save_reg): Replace with...
3312 (du_head::call_abis): ...this new field.
3313 * regrename.c: Include function-abi.h.
3314 (call_clobbered_in_chain_p): New function.
3315 (check_new_reg_p): Use crtl->abi when deciding whether a register
3316 is free for use after RA. Use call_clobbered_in_chain_p to test
3317 whether a candidate register would be clobbered by a call.
3318 (find_rename_reg): Don't add call-clobber conflicts here.
3319 (rename_chains): Check call_abis instead of need_caller_save_reg.
3320 (merge_chains): Update for changes to du_head.
3321 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
3322 target. Record the ABI identifier in call_abis and the set of
3323 fully or partially clobbered registers in call_clobber_mask.
3324 Add fully-clobbered registers to hard_conflicts here rather
3325 than in find_rename_reg.
3326 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
3327 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
3328 * config/aarch64/falkor-tag-collision-avoidance.c: Include
3330 * config/c6x/c6x.c: Likewise.
3332 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3334 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
3335 mode of the register when deciding whether it is no longer
3336 available after a call.
3338 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3340 * recog.c: Include function-abi.h.
3341 (peep2_find_free_register): Use crtl->abi when deciding whether
3342 a register is free for use after RA.
3344 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3346 * postreload-gcse.c: Include regs.h and function-abi.h.
3347 (record_opr_changes): Use insn_callee_abi to get the ABI of the
3348 call insn target. Conservatively assume that partially-clobbered
3349 registers are altered.
3351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3353 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
3354 when deciding whether a register is free for use after RA.
3355 (reload_combine): Remove unnecessary use of fixed_reg_set.
3356 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
3357 call insn target. Use reg_mode when testing whether a register
3358 is no longer available.
3360 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3362 * target.def (return_call_with_max_clobbers): Delete.
3363 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
3364 * doc/tm.texi: Regenerate.
3365 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
3366 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
3367 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
3368 (lra_reg::call_insn): Delete.
3369 * lra.c: Include function-abi.h.
3370 (initialize_lra_reg_info_element): Don't initialize the fields above.
3371 (lra): Use crtl->abi to test whether the current function needs to
3372 save a register in the prologue. Remove special pre-inheritance
3373 lra_create_live_ranges pass for flag_ipa_ra.
3374 * lra-assigns.c: Include function-abi.h
3375 (find_hard_regno_for_1): Use crtl->abi to test whether the current
3376 function needs to save a register in the prologue.
3377 (lra_assign): Assert that registers aren't allocated to a
3378 conflicting register, rather than checking only for overlaps
3379 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
3380 and for registers that are not live across a call.
3381 * lra-constraints.c (last_call_for_abi): New variable.
3382 (full_and_partial_call_clobbers): Likewise.
3383 (setup_next_usage_insn): Remove the register from
3384 full_and_partial_call_clobbers.
3385 (need_for_call_save_p): Use call_clobbered_in_region_p to test
3386 whether the register needs a caller save.
3387 (need_for_split_p): Use full_and_partial_reg_clobbers instead
3388 of call_used_or_fixed_regs.
3389 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
3390 full_and_partial_call_clobbers.
3391 * lra-lives.c (check_pseudos_live_through_calls): Replace
3392 last_call_used_reg_set and call_insn arguments with an abi argument.
3393 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
3394 as the set of conflicting registers.
3395 (calls_have_same_clobbers_p): Delete.
3396 (process_bb_lives): Track the ABI of the last call instead of an
3397 insn/HARD_REG_SET pair. Update calls to
3398 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
3399 the set of registers that could be clobbered by an EH edge.
3400 Include partially-clobbered as well as fully-clobbered registers.
3401 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
3402 * lra-remat.c: Include function-abi.h.
3403 (call_used_regs_arr_len, call_used_regs_arr): Delete.
3404 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
3405 registers and bitmap_view to combine them into dead_regs.
3406 (call_used_input_regno_present_p): Take a function_abi argument
3407 and use it to test whether a register is call-clobbered.
3408 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
3409 call insn target. Update tje call to call_used_input_regno_present_p.
3410 (do_remat): Likewise.
3411 (lra_remat): Remove the initialization of call_used_regs_arr_len
3412 and call_used_regs_arr.
3414 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3416 * loop-iv.c: Include regs.h and function-abi.h.
3417 (simplify_using_initial_values): Use insn_callee_abi to get the
3418 ABI of the call insn target. Conservatively assume that
3419 partially-clobbered registers are altered.
3421 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3423 * function-abi.h (call_clobbers_in_region): Declare.
3424 (call_clobbered_in_region_p): New function.
3425 * function-abi.cc (call_clobbers_in_region): Likewise.
3426 * ira-int.h: Include function-abi.h.
3427 (ira_allocno::crossed_calls_abis): New field.
3428 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
3429 (ira_need_caller_save_regs): New function.
3430 (ira_need_caller_save_p): Likewise.
3431 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
3432 of call_used_or_fixed_regs.
3433 (do_reload): Use crtl->abi to test whether the current function
3434 needs to save a register in the prologue. Count registers that
3435 need to be saved rather than registers that don't.
3436 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
3437 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3438 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
3439 (propagate_some_info_from_allocno): Likewise.
3440 (copy_info_to_removed_store_destinations): Likewise.
3441 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
3442 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
3443 (ira_build): Use ira_need_caller_save_regs instead of
3444 call_used_or_fixed_regs.
3445 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
3446 whether the current function would need to save a register
3448 (calculate_spill_cost): Likewise.
3449 (allocno_reload_assign): Use ira_need_caller_save_regs and
3450 ira_need_caller_save_p instead of call_used_or_fixed_regs.
3451 * ira-conflicts.c (ira_build_conflicts): Use
3452 ira_need_caller_save_regs rather than call_used_or_fixed_regs
3453 as the set of call-clobbered registers. Remove the
3454 call_used_or_fixed_regs mask from the calculation of
3455 temp_hard_reg_set and mask its use instead. Remove special
3456 handling of partially-clobbered registers.
3457 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
3458 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
3459 calculate the set of conflicting registers for calls that
3460 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
3461 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
3462 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3463 Use eh_edge_abi to calculate the set of registers that could
3464 be clobbered by an EH edge. Include partially-clobbered as
3465 well as fully-clobbered registers.
3467 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3469 * haifa-sched.c: Include function-abi.h.
3470 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
3471 the function would need to save a register before using it.
3473 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3475 * gcse.c: Include function-abi.h.
3476 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
3477 the call insn target. Invalidate partially call-clobbered
3478 registers as well as fully call-clobbered ones.
3480 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3482 * function.c (aggregate_value_p): Work out which ABI the
3483 function is using before testing which registers are at least
3484 partly preserved by a call.
3486 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3488 * early-remat.c: Include regs.h and function-abi.h.
3489 (early_remat::maybe_add_candidate): Don't check for call-clobbered
3491 (early_remat::restrict_remat_for_unavail_regs): New function.
3492 (early_remat::restrict_remat_for_call): Likewise.
3493 (early_remat::process_block): Before calling emit_remat_insns
3494 for a previous call in the block, invalidate any candidates
3495 that would clobber call-preserved registers.
3496 (early_remat::emit_remat_insns_for_block): Likewise for the
3497 final call in a block. Do the same thing for live-in registers
3498 when calling emit_remat_insns at the head of a block.
3500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3502 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
3503 whether the current function needs to save at least part of a
3504 register before using it.
3505 (df_get_exit_block_use_set): Likewise for epilogue restores.
3507 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3509 * df-problems.c: Include regs.h and function-abi.h.
3510 (df_rd_problem_data): Rename sparse_invalidated_by_call to
3511 sparse_invalidated_by_eh and dense_invalidated_by_call to
3512 dense_invalidated_by_eh.
3513 (df_print_bb_index): Update accordingly.
3514 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
3515 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
3516 that are clobbered by an EH edge. Clobber partially-clobbered
3517 registers as well as fully-clobbered ones.
3518 (df_md_confluence_n): Likewise.
3519 (df_rd_local_compute): Likewise. Update for changes to
3521 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
3522 of registers that are clobbered by an EH edge. Includde partially-
3523 clobbered registers as well as fully-clobbered ones.
3525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3527 * cselib.c (cselib_process_insn): If we know what mode a
3528 register was set in, check whether it is clobbered in that
3529 mode by a call. Only fall back to reg_raw_mode if that fails.
3531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3533 * cse.c: Include regs.h and function-abi.h.
3534 (invalidate_for_call): Take the call insn as an argument.
3535 Use insn_callee_abi to get the ABI of the call and invalidate
3536 partially clobbered registers as well as fully clobbered ones.
3537 (cse_insn): Update call accordingly.
3539 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3541 * combine.c: Include function-abi.h.
3542 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
3543 of the target of call insns. Invalidate partially-clobbered
3544 registers as well as fully-clobbered ones.
3546 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3548 * cfgloopanal.c: Include regs.h and function-abi.h.
3549 (init_set_costs): Use default_function_abi to test whether
3550 a general register is call-clobbered.
3552 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3554 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
3555 instead of the call-clobbered sets.
3557 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3559 * caller-save.c (setup_save_areas): Remove redundant |s of
3561 (save_call_clobbered_regs): Likewise. Use the call ABI rather
3562 than call_used_or_fixed_regs to decide whether a REG_RETURNED
3565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3567 * rtl.h (predefined_function_abi): Declare.
3568 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
3569 instead of a boolean call_save flag.
3570 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
3572 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3573 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3574 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
3575 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3576 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3577 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
3578 * reginfo.c (init_reg_modes_target): Likewise.
3579 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
3580 instead of a boolean call_save flag.
3581 * targhooks.c: Include function-abi.h.
3582 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
3583 using eh_edge_abi to choose the mode.
3585 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3587 * target.def (hard_regno_call_part_clobbered): Take an ABI
3588 identifier instead of an rtx_insn.
3589 * doc/tm.texi: Regenerate.
3590 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
3591 (hook_bool_uint_uint_mode_false): New function.
3592 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
3593 (hook_bool_uint_uint_mode_false): New function.
3594 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3595 Take an ABI identifier instead of an rtx_insn.
3596 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
3597 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
3598 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
3599 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
3600 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
3602 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
3603 * cselib.c: Include function-abi.h.
3604 (cselib_process_insn): Update call to
3605 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3606 to get the appropriate ABI identifier.
3607 * function-abi.cc (predefined_function_abi::initialize): Update call
3608 to targetm.hard_regno_call_part_clobbered.
3609 * ira-conflicts.c (ira_build_conflicts): Likewise.
3610 * ira-costs.c (ira_tune_allocno_costs): Likewise.
3611 * lra-constraints.c: Include function-abi.h.
3612 (need_for_call_save_p): Update call to
3613 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3614 to get the appropriate ABI identifier.
3615 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3616 * regcprop.c (copyprop_hardreg_forward_1): Update call
3617 to targetm.hard_regno_call_part_clobbered.
3618 * reginfo.c (choose_hard_reg_mode): Likewise.
3619 * regrename.c (check_new_reg_p): Likewise.
3620 * reload.c (find_equiv_reg): Likewise.
3621 * reload1.c (emit_reload_insns): Likewise.
3622 * sched-deps.c: Include function-abi.h.
3623 (deps_analyze_insn): Update call to
3624 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3625 to get the appropriate ABI identifier.
3626 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
3627 call to targetm.hard_regno_call_part_clobbered.
3628 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
3630 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3632 * config/i386/i386.c: Include function-abi.h.
3633 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
3634 if they preserve some 256-bit or 512-bit SSE registers.
3636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3638 * target.def (insn_callee_abi): New hook.
3639 (remove_extra_call_preserved_regs): Delete.
3640 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
3641 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
3642 * doc/tm.texi: Regenerate.
3643 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
3644 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
3645 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
3647 (aarch64_remove_extra_call_preserved_regs): Delete.
3648 (aarch64_insn_callee_abi): New function.
3649 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
3650 (TARGET_INSN_CALLEE_ABI): New macro.
3651 * rtl.h (get_call_fndecl): Declare.
3652 (cgraph_rtl_info): Fix formatting. Tweak comment for
3653 function_used_regs. Remove function_used_regs_valid.
3654 * rtlanal.c (get_call_fndecl): Moved from final.c
3655 * function-abi.h (insn_callee_abi): Declare.
3656 (target_function_abi_info): Mention insn_callee_abi.
3657 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
3658 way to get_call_reg_set_usage did.
3659 (insn_callee_abi): New function.
3660 * regs.h (get_call_reg_set_usage): Delete.
3661 * final.c: Include function-abi.h.
3662 (collect_fn_hard_reg_usage): Add fixed and stack registers to
3663 function_used_regs before the main loop rather than afterwards.
3664 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
3665 if function_used_regs ends up not being useful.
3666 (get_call_fndecl): Move to rtlanal.c
3667 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
3668 * caller-save.c: Include function-abi.h.
3669 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
3670 instead of get_call_reg_set_usage.
3671 * cfgcleanup.c: Include function-abi.h.
3672 (old_insns_match_p): Use insn_callee_abi instead of
3673 get_call_reg_set_usage.
3674 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
3676 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
3678 * df-scan.c: Include function-abi.h.
3679 (df_get_call_refs): Use insn_callee_abi instead of
3680 get_call_reg_set_usage.
3681 * ira-lives.c: Include function-abi.h.
3682 (process_bb_node_lives): Use insn_callee_abi instead of
3683 get_call_reg_set_usage.
3684 * lra-lives.c: Include function-abi.h.
3685 (process_bb_lives): Use insn_callee_abi instead of
3686 get_call_reg_set_usage.
3687 * postreload.c: Include function-abi.h.
3688 (reload_combine): Use insn_callee_abi instead of
3689 get_call_reg_set_usage.
3690 * regcprop.c: Include function-abi.h.
3691 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
3692 get_call_reg_set_usage.
3693 * resource.c: Include function-abi.h.
3694 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
3695 instead of get_call_reg_set_usage.
3696 * var-tracking.c: Include function-abi.h.
3697 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
3698 get_call_reg_set_usage.
3700 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3702 * target.def (fntype_abi): New target hook.
3703 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
3704 * doc/tm.texi: Regenerate.
3705 * target.h (predefined_function_abi): Declare.
3706 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
3708 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
3709 * config/aarch64/aarch64.c: Include function-abi.h.
3710 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
3711 (TARGET_FNTYPE_ABI): Define.
3713 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3715 * Makefile.in (OBJS): Add function-abi.o.
3716 (GTFILES): Add function-abi.h.
3717 * function-abi.cc: New file.
3718 * function-abi.h: Likewise.
3719 * emit-rtl.h (rtl_data::abi): New field.
3720 * function.c: Include function-abi.h.
3721 (prepare_function_start): Initialize crtl->abi.
3722 * read-rtl-function.c: Include regs.h and function-abi.h.
3723 (read_rtl_function_body): Initialize crtl->abi.
3724 (read_rtl_function_body_from_file_range): Likewise.
3725 * reginfo.c: Include function-abi.h.
3726 (init_reg_sets_1): Initialize default_function_abi.
3727 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
3728 when making a register global.
3729 * target-globals.h (this_target_function_abi_info): Declare.
3730 (target_globals::function_abi_info): New field.
3731 (restore_target_globals): Copy it.
3732 * target-globals.c: Include function-abi.h.
3733 (default_target_globals): Initialize the function_abi_info field.
3734 (target_globals): Allocate it.
3735 (save_target_globals): Free it.
3737 2019-09-30 Nick Clifton <nickc@redhat.com>
3740 * config/frv/frv.c (frv_register_move_cost): Add break statements
3741 to avoid falling through to the wrong cases. Tidy code.
3743 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3745 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3746 For multi-registers modes, test how big each register part is.
3748 2019-09-30 Nick Clifton <nickc@redhat.com>
3751 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
3752 (TARGET_ASM_SELECT_SECTION): Remove definition.
3753 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
3755 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
3757 * emit-rtl.c (init_raw_REG): New function.
3758 (gen_raw_REG): Use init_raw_REG.
3759 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
3761 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
3762 * rtl.h (rtx_init): New function.
3763 (rtx_alloca): New function.
3764 (init_raw_REG): New function.
3765 (alloca_raw_REG): New macro.
3767 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
3769 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
3770 (pcrel_local_address): Replace pcrel_address predicate, use the
3771 new function address_to_insn_form.
3772 (pcrel_external_address): Replace with new implementation using
3773 address_to_insn_form..
3774 (prefixed_mem_operand): Delete predicate which is now unused.
3775 (pcrel_external_mem_operand): Delete predicate which is now
3777 * config/rs6000/rs6000-protos.h (enum insn_form): New
3779 (enum non_prefixed_form): New enumeration.
3780 (address_to_insn_form): New declaration.
3781 (prefixed_load_p): New declaration.
3782 (prefixed_store_p): New declaration.
3783 (prefixed_paddi_p): New declaration.
3784 (rs6000_asm_output_opcode): New declaration.
3785 (rs6000_final_prescan_insn): Move declaration and update calling
3787 (address_is_prefixed): New helper inline function.
3788 * config/rs6000/rs6000.c(print_operand_address): Check for either
3789 PC-relative local symbols or PC-relative external symbols.
3790 (rs6000_emit_move): Support loading PC-relative addresses.
3791 (mode_supports_prefixed_address_p): Delete, no longer used.
3792 (rs6000_prefixed_address_mode_p): Delete, no longer used.
3793 (address_to_insn_form): New function to decode an address format.
3794 (reg_to_non_prefixed): New function to identify what the
3795 non-prefixed memory instruction format is for a register.
3796 (prefixed_load_p): New function to identify prefixed loads.
3797 (prefixed_store_p): New function to identify prefixed stores.
3798 (prefixed_paddi_p): New function to identify prefixed load
3800 (next_insn_prefixed_p): New static state variable.
3801 (rs6000_final_prescan_insn): New function to determine if an insn
3802 uses a prefixed instruction.
3803 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
3804 prefixed instruction.
3805 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
3806 (ASM_OUTPUT_OPCODE): New target hook.
3807 * config/rs6000/rs6000.md (prefixed): New insn attribute for
3808 prefixed instructions.
3809 (prefixed_length): New insn attribute for the size of prefixed
3811 (non_prefixed_length): New insn attribute for the size of
3812 non-prefixed instructions.
3813 (pcrel_local_addr): New insn to load up a local PC-relative
3815 (pcrel_extern_addr): New insn to load up an external PC-relative
3817 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
3818 GPR and loading a 128-bit floating point type to a GPR.
3820 2019-09-30 Richard Biener <rguenther@suse.de>
3822 * gimple.c (gimple_get_lhs): For PHIs return the result.
3823 * tree-vectorizer.h (vectorizable_live_operation): Also get the
3824 SLP instance as argument.
3825 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
3826 double-reduction PHIs with vectorizable_lc_phi.
3827 (vect_analyze_loop_operations): Adjust.
3828 (vect_create_epilog_for_reduction): Remove all code not dealing
3829 with reduction LC PHI or epilogue generation.
3830 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
3831 for live stmts of reductions.
3832 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
3833 do not handle defs that are not vect_internal_def.
3834 (can_vectorize_live_stmts): Adjust.
3835 (vect_analyze_stmt): When the vectorized stmt defined a value
3836 used on backedges adjust the backedge uses of vectorized PHIs.
3838 2019-09-30 Martin Jambor <mjambor@suse.cz>
3841 * tree-inline.c (force_value_to_type): New function.
3842 (setup_one_parameter): Use force_value_to_type to convert type.
3843 * tree-inline.c (force_value_to_type): Declare.
3844 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
3845 with register type mismatches.
3847 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
3849 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
3851 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
3852 * config/rs6000/t-freebsd64: Make use of the above define and build
3853 the 32-bit libraries with secure-plt.
3855 2019-09-30 Jakub Jelinek <jakub@redhat.com>
3858 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
3859 gen_int_mode instead of GEN_INT.
3861 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
3863 * config/darwin.c (gen_macho_low): Amend to include the mode
3865 (machopic_indirect_data_reference): Amend gen_macho_low call
3866 to include mode argument
3867 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
3868 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
3869 the macho_high expander and two define_insn entries.
3871 2019-09-29 Jakub Jelinek <jakub@redhat.com>
3874 * optc-save-gen.awk: Fix up printing string option differences.
3876 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3878 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
3879 vec_perm cost to 1 for non-Power7 VSX architectures.
3881 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3883 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
3884 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
3885 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
3887 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
3889 * config/darwin.c (gen_macho_high): Amend to include the mode
3891 (machopic_indirect_data_reference): Amend gen_macho_high call
3892 to include mode argument.
3893 (machopic_legitimize_pic_address): Likewise.
3894 * config/rs6000/rs6000.c (rs6000_legitimize_address):
3895 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
3896 the macho_high expander and two define_insn entries.
3898 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3901 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3903 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3906 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3907 std::string::compare instead of std::string::find.
3909 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3911 * configure: Regenerate.
3913 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3916 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3917 variables as shared.
3919 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3921 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3922 replaces the expander and two define_insn entries.
3923 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3925 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3927 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3929 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3930 (fibonacci_heap::nodes): Likewise.
3931 (fibonacci_heap::min_key): Likewise.
3932 (fibonacci_heap::min): Likewise.
3934 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3936 * cgraph.c (cgraph_node::get_fun): Make const.
3937 * cgraph.h (cgraph_node::get_fun): Likewise.
3939 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3942 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3945 2019-09-27 Richard Biener <rguenther@suse.de>
3947 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3948 (STMT_VINFO_REDUC_FN): Likewise.
3949 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3950 STMT_VINFO_REDUC_FN.
3951 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3952 for condition reductions.
3953 (vect_create_epilog_for_reduction): Compute all required state
3954 from the stmt to be vectorized.
3955 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3956 invocation and remove then dead code. For single def-use chains
3957 record only a single vector stmt.
3959 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3961 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3962 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3963 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3964 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3965 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3966 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3967 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3968 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3969 (aarch64_general_builtin_rsqrt): Declare.
3970 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3972 (aarch64_mangle_builtin_type): Rename to...
3973 (aarch64_general_mangle_builtin_type): ...this.
3974 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3975 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3976 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3977 aarch64_general_add_builtin instead of add_builtin_function.
3978 (aarch64_init_builtins): Rename to...
3979 (aarch64_general_init_builtins): ...this. Use
3980 aarch64_general_add_builtin instead of add_builtin_function.
3981 (aarch64_builtin_decl): Rename to...
3982 (aarch64_general_builtin_decl): ...this and remove the unused
3984 (aarch64_expand_builtin): Rename to...
3985 (aarch64_general_expand_builtin): ...this and remove the unused
3987 (aarch64_builtin_rsqrt): Rename to...
3988 (aarch64_general_builtin_rsqrt): ...this.
3989 (aarch64_fold_builtin): Rename to...
3990 (aarch64_general_fold_builtin): ...this. Take the function subcode
3991 and return type as arguments. Remove the "ignored" argument.
3992 (aarch64_gimple_fold_builtin): Rename to...
3993 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3994 subcode and gcall as arguments, and return the new function call.
3995 * config/aarch64/aarch64.c (aarch64_init_builtins)
3996 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3997 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3998 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3999 instead of aarch64_builtin_rsqrt.
4000 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
4001 instead of aarch64_mangle_builtin_type.
4003 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
4005 * target.def (check_builtin_call): New target hook.
4006 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
4007 * doc/tm.texi: Regenerate.
4009 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
4011 PR tree-optimization/91909
4012 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
4013 reduc_index parameter. When handling COND_REDUCTION, make sure
4014 that the reduction phi operand is in the correct arm of the
4016 (vectorizable_reduction): Pass reduc_index to the above.
4018 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
4020 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
4021 New combine pattern.
4023 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
4025 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
4026 loop instruction into new basic block before the loop when basic
4027 block that precedes the loop is empty.
4029 2019-09-26 Jakub Jelinek <jakub@redhat.com>
4031 * function.c (gimplify_parameters): Use build_clobber function.
4032 * tree-ssa.c (execute_update_addresses_taken): Likewise.
4033 * tree-inline.c (expand_call_inline): Likewise.
4034 * tree-sra.c (clobber_subtree): Likewise.
4035 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
4036 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
4037 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
4038 lower_omp_target): Likewise.
4039 * omp-expand.c (expand_omp_for_generic): Likewise.
4040 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
4042 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
4044 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
4045 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
4046 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
4047 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
4048 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
4049 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
4050 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
4051 LD_ELEMREV_V16QI): Use the PURE attribute.
4053 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
4055 * config/rs6000/darwin.md: Replace the expanders for
4056 load_macho_picbase and reload_macho_picbase with use of '@'
4057 and <mode> in their respective define_insns.
4058 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
4059 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
4060 Pmode to gen_load_macho_picbase.
4061 * config/rs6000/rs6000.md: Likewise.
4063 2019-09-25 Richard Biener <rguenther@suse.de>
4065 PR tree-optimization/91896
4066 * tree-vect-loop.c (vectorizable_reduction): The single
4067 def-use cycle optimization cannot apply when there's more
4068 than one pattern stmt involved.
4070 2019-09-26 Richard Biener <rguenther@suse.de>
4072 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
4073 loop-closed PHIs that are vect_internal_def.
4074 (vect_create_epilog_for_reduction): Exit early for nested cycles.
4076 (vectorizable_lc_phi): New.
4077 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
4078 (vect_transform_stmt): Likewise.
4079 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
4080 (vectorizable_lc_phi): Declare.
4082 2019-09-26 Richard Biener <rguenther@suse.de>
4084 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
4085 vectorizable_reduction for vect_double_reduction_def.
4086 (vect_transform_loop): Likewise.
4087 (vect_create_epilog_for_reduction): Move double-reduction
4088 PHI creation and preheader argument setting of PHIs ...
4089 (vectorizable_reduction): ... here. Also process
4090 vect_double_reduction_def PHIs, creating the vectorized
4091 PHI nodes, remembering the scalar adjustment computed for
4092 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
4093 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
4094 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
4095 Initialize STMT_VINFO_REDUC_CODE.
4096 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
4097 (_stmt_vec_info::reduc_code): Likewise.
4098 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
4099 (STMT_VINFO_REDUC_CODE): Likewise.
4101 2019-09-26 Matt Turner <mattst88@gmail.com>
4104 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
4105 (mtune=): Add Negative(mtune=).
4106 (mcpu=): Add Negative(mcpu=).
4107 * config/arm/arm.opt: Likewise.
4109 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4111 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
4112 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
4114 * config/arm/arm_acle.h: Define builtins for the above.
4115 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
4116 (simd32_op): Handle the above.
4117 * config/arm/unspecs.md: Define unspecs for the above.
4119 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4121 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
4122 (arm_<sup>xtb16): Likewise.
4123 (arm_usada8): Likewise.
4124 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
4125 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
4126 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
4127 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
4128 __sxtb16, __uxtab16, __uxtb16): Define.
4129 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4130 * config/arm/unspecs.md: Define unspecs for the above.
4131 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
4132 (USXTB16): Likewise.
4133 (simd32_op): New int_attribute.
4134 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
4135 * doc/sourcebuild.exp (arm_simd32_ok): Document.
4137 2019-09-26 Martin Jambor <mjambor@suse.cz>
4139 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
4142 2019-09-26 Martin Jambor <mjambor@suse.cz>
4144 * ipa-sra.c (process_scan_results): Fix continue condition.
4146 2019-09-26 Martin Liska <mliska@suse.cz>
4148 PR tree-optimization/91885
4149 * tree-vectorizer.c (try_vectorize_loop_1): Add
4150 TODO_update_ssa_only_virtuals similarly to what slp pass does.
4152 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
4154 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4155 aarch64_plus_immediate rather than aarch64_uimm12_shift
4156 to test for valid PLUS immediates.
4158 2019-09-25 Martin Jambor <mjambor@suse.cz>
4160 * tree-sra.c (no_accesses_p): Remove.
4161 (no_accesses_representant): Likewise.
4163 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4165 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
4167 (vaba_s16): Likewise.
4168 (vaba_s32): Likewise.
4169 (vaba_u8): Likewise.
4170 (vaba_u16): Likewise.
4171 (vaba_u32): Likewise.
4172 (vabal_high_s8): Likewise.
4173 (vabal_high_s16): Likewise.
4174 (vabal_high_s32): Likewise.
4175 (vabal_high_u8): Likewise.
4176 (vabal_high_u16): Likewise.
4177 (vabal_high_u32): Likewise.
4178 (vabal_s8): Likewise.
4179 (vabal_s16): Likewise.
4180 (vabal_s32): Likewise.
4181 (vabal_u8): Likewise.
4182 (vabal_u16): Likewise.
4183 (vabal_u32): Likewise.
4184 (vabaq_s8): Likewise.
4185 (vabaq_s16): Likewise.
4186 (vabaq_s32): Likewise.
4187 (vabaq_u8): Likewise.
4188 (vabaq_u16): Likewise.
4189 (vabaq_u32): Likewise.
4190 (vabd_s8): Likewise.
4191 (vabd_s16): Likewise.
4192 (vabd_s32): Likewise.
4193 (vabd_u8): Likewise.
4194 (vabd_u16): Likewise.
4195 (vabd_u32): Likewise.
4196 (vabdl_high_s8): Likewise.
4197 (vabdl_high_s16): Likewise.
4198 (vabdl_high_s32): Likewise.
4199 (vabdl_high_u8): Likewise.
4200 (vabdl_high_u16): Likewise.
4201 (vabdl_high_u32): Likewise.
4202 (vabdl_s8): Likewise.
4203 (vabdl_s16): Likewise.
4204 (vabdl_s32): Likewise.
4205 (vabdl_u8): Likewise.
4206 (vabdl_u16): Likewise.
4207 (vabdl_u32): Likewise.
4208 (vabdq_s8): Likewise.
4209 (vabdq_s16): Likewise.
4210 (vabdq_s32): Likewise.
4211 (vabdq_u8): Likewise.
4212 (vabdq_u16): Likewise.
4213 (vabdq_u32): Likewise.
4214 (vaddlv_s8): Likewise.
4215 (vaddlv_s16): Likewise.
4216 (vaddlv_u8): Likewise.
4217 (vaddlv_u16): Likewise.
4218 (vaddlvq_s8): Likewise.
4219 (vaddlvq_s16): Likewise.
4220 (vaddlvq_s32): Likewise.
4221 (vaddlvq_u8): Likewise.
4222 (vaddlvq_u16): Likewise.
4223 (vaddlvq_u32): Likewise.
4224 (vcvtx_f32_f64): Likewise.
4225 (vcvtx_high_f32_f64): Likewise.
4226 (vcvtxd_f32_f64): Likewise.
4227 (vmla_n_f32): Likewise.
4228 (vmla_n_s16): Likewise.
4229 (vmla_n_s32): Likewise.
4230 (vmla_n_u16): Likewise.
4231 (vmla_n_u32): Likewise.
4232 (vmla_s8): Likewise.
4233 (vmla_s16): Likewise.
4234 (vmla_s32): Likewise.
4235 (vmla_u8): Likewise.
4236 (vmla_u16): Likewise.
4237 (vmla_u32): Likewise.
4238 (vmlal_high_n_s16): Likewise.
4239 (vmlal_high_n_s32): Likewise.
4240 (vmlal_high_n_u16): Likewise.
4241 (vmlal_high_n_u32): Likewise.
4242 (vmlal_high_s8): Likewise.
4243 (vmlal_high_s16): Likewise.
4244 (vmlal_high_s32): Likewise.
4245 (vmlal_high_u8): Likewise.
4246 (vmlal_high_u16): Likewise.
4247 (vmlal_high_u32): Likewise.
4248 (vmlal_n_s16): Likewise.
4249 (vmlal_n_s32): Likewise.
4250 (vmlal_n_u16): Likewise.
4251 (vmlal_n_u32): Likewise.
4252 (vmlal_s8): Likewise.
4253 (vmlal_s16): Likewise.
4254 (vmlal_s32): Likewise.
4255 (vmlal_u8): Likewise.
4256 (vmlal_u16): Likewise.
4257 (vmlal_u32): Likewise.
4258 (vmlaq_n_f32): Likewise.
4259 (vmlaq_n_s16): Likewise.
4260 (vmlaq_n_s32): Likewise.
4261 (vmlaq_n_u16): Likewise.
4262 (vmlaq_n_u32): Likewise.
4263 (vmlaq_s8): Likewise.
4264 (vmlaq_s16): Likewise.
4265 (vmlaq_s32): Likewise.
4266 (vmlaq_u8): Likewise.
4267 (vmlaq_u16): Likewise.
4268 (vmlaq_u32): Likewise.
4269 (vmls_n_f32): Likewise.
4270 (vmls_n_s16): Likewise.
4271 (vmls_n_s32): Likewise.
4272 (vmls_n_u16): Likewise.
4273 (vmls_n_u32): Likewise.
4274 (vmls_s8): Likewise.
4275 (vmls_s16): Likewise.
4276 (vmls_s32): Likewise.
4277 (vmls_u8): Likewise.
4278 (vmls_u16): Likewise.
4279 (vmls_u32): Likewise.
4280 (vmlsl_high_n_s16): Likewise.
4281 (vmlsl_high_n_s32): Likewise.
4282 (vmlsl_high_n_u16): Likewise.
4283 (vmlsl_high_n_u32): Likewise.
4284 (vmlsl_high_s8): Likewise.
4285 (vmlsl_high_s16): Likewise.
4286 (vmlsl_high_s32): Likewise.
4287 (vmlsl_high_u8): Likewise.
4288 (vmlsl_high_u16): Likewise.
4289 (vmlsl_high_u32): Likewise.
4290 (vmlsl_n_s16): Likewise.
4291 (vmlsl_n_s32): Likewise.
4292 (vmlsl_n_u16): Likewise.
4293 (vmlsl_n_u32): Likewise.
4294 (vmlsl_s8): Likewise.
4295 (vmlsl_s16): Likewise.
4296 (vmlsl_s32): Likewise.
4297 (vmlsl_u8): Likewise.
4298 (vmlsl_u16): Likewise.
4299 (vmlsl_u32): Likewise.
4300 (vmlsq_n_f32): Likewise.
4301 (vmlsq_n_s16): Likewise.
4302 (vmlsq_n_s32): Likewise.
4303 (vmlsq_n_u16): Likewise.
4304 (vmlsq_n_u32): Likewise.
4305 (vmlsq_s8): Likewise.
4306 (vmlsq_s16): Likewise.
4307 (vmlsq_s32): Likewise.
4308 (vmlsq_u8): Likewise.
4309 (vmlsq_u16): Likewise.
4310 (vmlsq_u32): Likewise.
4311 (vmovl_high_s8): Likewise.
4312 (vmovl_high_s16): Likewise.
4313 (vmovl_high_s32): Likewise.
4314 (vmovl_high_u8): Likewise.
4315 (vmovl_high_u16): Likewise.
4316 (vmovl_high_u32): Likewise.
4317 (vmovl_s8): Likewise.
4318 (vmovl_s16): Likewise.
4319 (vmovl_s32): Likewise.
4320 (vmovl_u8): Likewise.
4321 (vmovl_u16): Likewise.
4322 (vmovl_u32): Likewise.
4323 (vmovn_high_s16): Likewise.
4324 (vmovn_high_s32): Likewise.
4325 (vmovn_high_s64): Likewise.
4326 (vmovn_high_u16): Likewise.
4327 (vmovn_high_u32): Likewise.
4328 (vmovn_high_u64): Likewise.
4329 (vmovn_s16): Likewise.
4330 (vmovn_s32): Likewise.
4331 (vmovn_s64): Likewise.
4332 (vmovn_u16): Likewise.
4333 (vmovn_u32): Likewise.
4334 (vmovn_u64): Likewise.
4335 (vmull_high_n_s16): Likewise.
4336 (vmull_high_n_s32): Likewise.
4337 (vmull_high_n_u16): Likewise.
4338 (vmull_high_n_u32): Likewise.
4339 (vmull_high_p8): Likewise.
4340 (vmull_high_s8): Likewise.
4341 (vmull_high_s16): Likewise.
4342 (vmull_high_s32): Likewise.
4343 (vmull_high_u8): Likewise.
4344 (vmull_high_u16): Likewise.
4345 (vmull_high_u32): Likewise.
4346 (vmull_n_s16): Likewise.
4347 (vmull_n_s32): Likewise.
4348 (vmull_n_u16): Likewise.
4349 (vmull_n_u32): Likewise.
4350 (vmull_p8): Likewise.
4351 (vmull_s8): Likewise.
4352 (vmull_s16): Likewise.
4353 (vmull_s32): Likewise.
4354 (vmull_u8): Likewise.
4355 (vmull_u16): Likewise.
4356 (vmull_u32): Likewise.
4357 (vpadal_s8): Likewise.
4358 (vpadal_s16): Likewise.
4359 (vpadal_s32): Likewise.
4360 (vpadal_u8): Likewise.
4361 (vpadal_u16): Likewise.
4362 (vpadal_u32): Likewise.
4363 (vpadalq_s8): Likewise.
4364 (vpadalq_s16): Likewise.
4365 (vpadalq_s32): Likewise.
4366 (vpadalq_u8): Likewise.
4367 (vpadalq_u16): Likewise.
4368 (vpadalq_u32): Likewise.
4369 (vpaddl_s8): Likewise.
4370 (vpaddl_s16): Likewise.
4371 (vpaddl_s32): Likewise.
4372 (vpaddl_u8): Likewise.
4373 (vpaddl_u16): Likewise.
4374 (vpaddl_u32): Likewise.
4375 (vpaddlq_s8): Likewise.
4376 (vpaddlq_s16): Likewise.
4377 (vpaddlq_s32): Likewise.
4378 (vpaddlq_u8): Likewise.
4379 (vpaddlq_u16): Likewise.
4380 (vpaddlq_u32): Likewise.
4381 (vpaddq_s8): Likewise.
4382 (vpaddq_s16): Likewise.
4383 (vpaddq_s32): Likewise.
4384 (vpaddq_s64): Likewise.
4385 (vpaddq_u8): Likewise.
4386 (vpaddq_u16): Likewise.
4387 (vpaddq_u32): Likewise.
4388 (vpaddq_u64): Likewise.
4389 (vqdmulh_n_s16): Likewise.
4390 (vqdmulh_n_s32): Likewise.
4391 (vqdmulhq_n_s16): Likewise.
4392 (vqdmulhq_n_s32): Likewise.
4393 (vqmovn_high_s16): Likewise.
4394 (vqmovn_high_s32): Likewise.
4395 (vqmovn_high_s64): Likewise.
4396 (vqmovn_high_u16): Likewise.
4397 (vqmovn_high_u32): Likewise.
4398 (vqmovn_high_u64): Likewise.
4399 (vqmovun_high_s16): Likewise.
4400 (vqmovun_high_s32): Likewise.
4401 (vqmovun_high_s64): Likewise.
4402 (vqrdmulh_n_s16): Likewise.
4403 (vqrdmulh_n_s32): Likewise.
4404 (vqrdmulhq_n_s16): Likewise.
4405 (vqrdmulhq_n_s32): Likewise.
4406 (vrsqrte_u32): Likewise.
4407 (vrsqrteq_u32): Likewise.
4408 (vtst_p8): Likewise.
4409 (vtst_p16): Likewise.
4410 (vtst_p64): Likewise.
4411 (vtstq_p8): Likewise.
4412 (vtstq_p16): Likewise.
4413 (vtstq_p64): Likewise.
4414 (vaddlv_s32): Likewise.
4415 (vaddlv_u32): Likewise.
4416 (vqtbl1_p8): Likewise.
4417 (vqtbl1_s8): Likewise.
4418 (vqtbl1_u8): Likewise.
4419 (vqtbl1q_p8): Likewise.
4420 (vqtbl1q_s8): Likewise.
4421 (vqtbl1q_u8): Likewise.
4422 (vqtbx1_s8): Likewise.
4423 (vqtbx1_u8): Likewise.
4424 (vqtbx1_p8): Likewise.
4425 (vqtbx1q_s8): Likewise.
4426 (vqtbx1q_u8): Likewise.
4427 (vqtbx1q_p8): Likewise.
4428 (vtbl1_s8): Likewise.
4429 (vtbl1_u8): Likewise.
4430 (vtbl1_p8): Likewise.
4431 (vtbl2_s8): Likewise.
4432 (vtbl2_u8): Likewise.
4433 (vtbl2_p8): Likewise.
4434 (vtbl3_s8): Likewise.
4435 (vtbl3_u8): Likewise.
4436 (vtbl3_p8): Likewise.
4437 (vtbl4_s8): Likewise.
4438 (vtbl4_u8): Likewise.
4439 (vtbl4_p8): Likewise.
4440 (vtbx2_s8): Likewise.
4441 (vtbx2_u8): Likewise.
4442 (vtbx2_p8): Likewise.
4443 (vld1_f32): Likewise.
4444 (vld1_f64): Likewise.
4445 (vld1_p8): Likewise.
4446 (vld1_p16): Likewise.
4447 (vld1_p64): Likewise.
4448 (vld1_s8): Likewise.
4449 (vld1_s16): Likewise.
4450 (vld1_s32): Likewise.
4451 (vld1_s64): Likewise.
4452 (vld1_u8): Likewise.
4453 (vld1_u16): Likewise.
4454 (vld1_u32): Likewise.
4455 (vld1_u64): Likewise.
4456 (vld1q_f32): Likewise.
4457 (vld1q_f64): Likewise.
4458 (vld1q_p8): Likewise.
4459 (vld1q_p16): Likewise.
4460 (vld1q_p64): Likewise.
4461 (vld1q_s8): Likewise.
4462 (vld1q_s16): Likewise.
4463 (vld1q_s32): Likewise.
4464 (vld1q_s64): Likewise.
4465 (vld1q_u8): Likewise.
4466 (vld1q_u16): Likewise.
4467 (vld1q_u32): Likewise.
4468 (vld1q_u64): Likewise.
4469 (vpmax_s8): Likewise.
4470 (vpmax_s16): Likewise.
4471 (vpmax_s32): Likewise.
4472 (vpmax_u8): Likewise.
4473 (vpmax_u16): Likewise.
4474 (vpmax_u32): Likewise.
4475 (vpmaxq_s8): Likewise.
4476 (vpmaxq_s16): Likewise.
4477 (vpmaxq_s32): Likewise.
4478 (vpmaxq_u8): Likewise.
4479 (vpmaxq_u16): Likewise.
4480 (vpmaxq_u32): Likewise.
4481 (vpmax_f32): Likewise.
4482 (vpmaxq_f32): Likewise.
4483 (vpmaxq_f64): Likewise.
4484 (vpmaxqd_f64): Likewise.
4485 (vpmaxs_f32): Likewise.
4486 (vpmaxnm_f32): Likewise.
4487 (vpmaxnmq_f32): Likewise.
4488 (vpmaxnmq_f64): Likewise.
4489 (vpmaxnmqd_f64): Likewise.
4490 (vpmaxnms_f32): Likewise.
4491 (vpmin_s8): Likewise.
4492 (vpmin_s16): Likewise.
4493 (vpmin_s32): Likewise.
4494 (vpmin_u8): Likewise.
4495 (vpmin_u16): Likewise.
4496 (vpmin_u32): Likewise.
4497 (vpminq_s8): Likewise.
4498 (vpminq_s16): Likewise.
4499 (vpminq_s32): Likewise.
4500 (vpminq_u8): Likewise.
4501 (vpminq_u16): Likewise.
4502 (vpminq_u32): Likewise.
4503 (vpmin_f32): Likewise.
4504 (vpminq_f32): Likewise.
4505 (vpminq_f64): Likewise.
4506 (vpminqd_f64): Likewise.
4507 (vpmins_f32): Likewise.
4508 (vpminnm_f32): Likewise.
4509 (vpminnmq_f32): Likewise.
4510 (vpminnmq_f64): Likewise.
4511 (vpminnmqd_f64): Likewise.
4512 (vpminnms_f32): Likewise.
4513 (vmla_f32): Likewise.
4514 (vmlaq_f32): Likewise.
4515 (vmlaq_f64): Likewise.
4516 (vmls_f32): Likewise.
4517 (vmlsq_f32): Likewise.
4518 (vmlsq_f64): Likewise.
4519 (vqtbl2_s8): Likewise.
4520 (vqtbl2_u8): Likewise.
4521 (vqtbl2_p8): Likewise.
4522 (vqtbl2q_s8): Likewise.
4523 (vqtbl2q_u8): Likewise.
4524 (vqtbl2q_p8): Likewise.
4525 (vqtbl3_s8): Likewise.
4526 (vqtbl3_u8): Likewise.
4527 (vqtbl3_p8): Likewise.
4528 (vqtbl3q_s8): Likewise.
4529 (vqtbl3q_u8): Likewise.
4530 (vqtbl3q_p8): Likewise.
4531 (vqtbl4_s8): Likewise.
4532 (vqtbl4_u8): Likewise.
4533 (vqtbl4_p8): Likewise.
4534 (vqtbl4q_s8): Likewise.
4535 (vqtbl4q_u8): Likewise.
4536 (vqtbl4q_p8): Likewise.
4537 (vqtbx2_s8): Likewise.
4538 (vqtbx2_u8): Likewise.
4539 (vqtbx2_p8): Likewise.
4540 (vqtbx2q_s8): Likewise.
4541 (vqtbx2q_u8): Likewise.
4542 (vqtbx2q_p8): Likewise.
4543 (vqtbx3_s8): Likewise.
4544 (vqtbx3_u8): Likewise.
4545 (vqtbx3_p8): Likewise.
4546 (vqtbx3q_s8): Likewise.
4547 (vqtbx3q_u8): Likewise.
4548 (vqtbx3q_p8): Likewise.
4549 (vqtbx4_s8): Likewise.
4550 (vqtbx4_u8): Likewise.
4551 (vqtbx4_p8): Likewise.
4552 (vqtbx4q_s8): Likewise.
4553 (vqtbx4q_u8): Likewise.
4554 (vqtbx4q_p8): Likewise.
4555 (vrev16_p8): Likewise.
4556 (vrev16_s8): Likewise.
4557 (vrev16_u8): Likewise.
4558 (vrev16q_p8): Likewise.
4559 (vrev16q_s8): Likewise.
4560 (vrev16q_u8): Likewise.
4561 (vrev32_p8): Likewise.
4562 (vrev32_p16): Likewise.
4563 (vrev32_s8): Likewise.
4564 (vrev32_s16): Likewise.
4565 (vrev32_u8): Likewise.
4566 (vrev32_u16): Likewise.
4567 (vrev32q_p8): Likewise.
4568 (vrev32q_p16): Likewise.
4569 (vrev32q_s8): Likewise.
4570 (vrev32q_s16): Likewise.
4571 (vrev32q_u8): Likewise.
4572 (vrev32q_u16): Likewise.
4573 (vrev64_f32): Likewise.
4574 (vrev64_p8): Likewise.
4575 (vrev64_p16): Likewise.
4576 (vrev64_s8): Likewise.
4577 (vrev64_s16): Likewise.
4578 (vrev64_s32): Likewise.
4579 (vrev64_u8): Likewise.
4580 (vrev64_u16): Likewise.
4581 (vrev64_u32): Likewise.
4582 (vrev64q_f32): Likewise.
4583 (vrev64q_p8): Likewise.
4584 (vrev64q_p16): Likewise.
4585 (vrev64q_s8): Likewise.
4586 (vrev64q_s16): Likewise.
4587 (vrev64q_s32): Likewise.
4588 (vrev64q_u8): Likewise.
4589 (vrev64q_u16): Likewise.
4590 (vrev64q_u32): Likewise.
4591 (vsha1cq_u32): Likewise.
4592 (vsha1mq_u32): Likewise.
4593 (vsha1pq_u32): Likewise.
4594 (vsha1h_u32): Likewise.
4595 (vsha1su0q_u32): Likewise.
4596 (vsha1su1q_u32): Likewise.
4597 (vsha256hq_u32): Likewise.
4598 (vsha256h2q_u32): Likewise.
4599 (vsha256su0q_u32): Likewise.
4600 (vsha256su1q_u32): Likewise.
4601 (vmull_p64): Likewise.
4602 (vmull_high_p64): Likewise.
4603 (vsqrt_f32): Likewise.
4604 (vsqrtq_f32): Likewise.
4605 (vsqrt_f64): Likewise.
4606 (vsqrtq_f64): Likewise.
4607 (vst1_f32): Likewise.
4608 (vst1_f64): Likewise.
4609 (vst1_p8): Likewise.
4610 (vst1_p16): Likewise.
4611 (vst1_p64): Likewise.
4612 (vst1_s8): Likewise.
4613 (vst1_s16): Likewise.
4614 (vst1_s32): Likewise.
4615 (vst1_s64): Likewise.
4616 (vst1_u8): Likewise.
4617 (vst1_u16): Likewise.
4618 (vst1_u32): Likewise.
4619 (vst1_u64): Likewise.
4620 (vst1q_f32): Likewise.
4621 (vst1q_f64): Likewise.
4622 (vst1q_p8): Likewise.
4623 (vst1q_p16): Likewise.
4624 (vst1q_p64): Likewise.
4625 (vst1q_s8): Likewise.
4626 (vst1q_s16): Likewise.
4627 (vst1q_s32): Likewise.
4628 (vst1q_s64): Likewise.
4629 (vst1q_u8): Likewise.
4630 (vst1q_u16): Likewise.
4631 (vst1q_u32): Likewise.
4632 (vst1q_u64): Likewise.
4633 (vst1_s64_x2): Likewise.
4634 (vst1_u64_x2): Likewise.
4635 (vst1_f64_x2): Likewise.
4636 (vst1_s8_x2): Likewise.
4637 (vst1_p8_x2): Likewise.
4638 (vst1_s16_x2): Likewise.
4639 (vst1_p16_x2): Likewise.
4640 (vst1_s32_x2): Likewise.
4641 (vst1_u8_x2): Likewise.
4642 (vst1_u16_x2): Likewise.
4643 (vst1_u32_x2): Likewise.
4644 (vst1_f16_x2): Likewise.
4645 (vst1_f32_x2): Likewise.
4646 (vst1_p64_x2): Likewise.
4647 (vst1q_s8_x2): Likewise.
4648 (vst1q_p8_x2): Likewise.
4649 (vst1q_s16_x2): Likewise.
4650 (vst1q_p16_x2): Likewise.
4651 (vst1q_s32_x2): Likewise.
4652 (vst1q_s64_x2): Likewise.
4653 (vst1q_u8_x2): Likewise.
4654 (vst1q_u16_x2): Likewise.
4655 (vst1q_u32_x2): Likewise.
4656 (vst1q_u64_x2): Likewise.
4657 (vst1q_f16_x2): Likewise.
4658 (vst1q_f32_x2): Likewise.
4659 (vst1q_f64_x2): Likewise.
4660 (vst1q_p64_x2): Likewise.
4661 (vst1_s64_x3): Likewise.
4662 (vst1_u64_x3): Likewise.
4663 (vst1_f64_x3): Likewise.
4664 (vst1_s8_x3): Likewise.
4665 (vst1_p8_x3): Likewise.
4666 (vst1_s16_x3): Likewise.
4667 (vst1_p16_x3): Likewise.
4668 (vst1_s32_x3): Likewise.
4669 (vst1_u8_x3): Likewise.
4670 (vst1_u16_x3): Likewise.
4671 (vst1_u32_x3): Likewise.
4672 (vst1_f16_x3): Likewise.
4673 (vst1_f32_x3): Likewise.
4674 (vst1_p64_x3): Likewise.
4675 (vst1q_s8_x3): Likewise.
4676 (vst1q_p8_x3): Likewise.
4677 (vst1q_s16_x3): Likewise.
4678 (vst1q_p16_x3): Likewise.
4679 (vst1q_s32_x3): Likewise.
4680 (vst1q_s64_x3): Likewise.
4681 (vst1q_u8_x3): Likewise.
4682 (vst1q_u16_x3): Likewise.
4683 (vst1q_u32_x3): Likewise.
4684 (vst1q_u64_x3): Likewise.
4685 (vst1q_f16_x3): Likewise.
4686 (vst1q_f32_x3): Likewise.
4687 (vst1q_f64_x3): Likewise.
4688 (vst1q_p64_x3): Likewise.
4689 (vst2_s64): Likewise.
4690 (vst2_u64): Likewise.
4691 (vst2_f64): Likewise.
4692 (vst2_s8): Likewise.
4693 (vst2_p8): Likewise.
4694 (vst2_s16): Likewise.
4695 (vst2_p16): Likewise.
4696 (vst2_s32): Likewise.
4697 (vst2_u8): Likewise.
4698 (vst2_u16): Likewise.
4699 (vst2_u32): Likewise.
4700 (vst2_f16): Likewise.
4701 (vst2_f32): Likewise.
4702 (vst2_p64): Likewise.
4703 (vst2q_s8): Likewise.
4704 (vst2q_p8): Likewise.
4705 (vst2q_s16): Likewise.
4706 (vst2q_p16): Likewise.
4707 (vst2q_s32): Likewise.
4708 (vst2q_s64): Likewise.
4709 (vst2q_u8): Likewise.
4710 (vst2q_u16): Likewise.
4711 (vst2q_u32): Likewise.
4712 (vst2q_u64): Likewise.
4713 (vst2q_f16): Likewise.
4714 (vst2q_f32): Likewise.
4715 (vst2q_f64): Likewise.
4716 (vst2q_p64): Likewise.
4717 (vst3_s64): Likewise.
4718 (vst3_u64): Likewise.
4719 (vst3_f64): Likewise.
4720 (vst3_s8): Likewise.
4721 (vst3_p8): Likewise.
4722 (vst3_s16): Likewise.
4723 (vst3_p16): Likewise.
4724 (vst3_s32): Likewise.
4725 (vst3_u8): Likewise.
4726 (vst3_u16): Likewise.
4727 (vst3_u32): Likewise.
4728 (vst3_f16): Likewise.
4729 (vst3_f32): Likewise.
4730 (vst3_p64): Likewise.
4731 (vst3q_s8): Likewise.
4732 (vst3q_p8): Likewise.
4733 (vst3q_s16): Likewise.
4734 (vst3q_p16): Likewise.
4735 (vst3q_s32): Likewise.
4736 (vst3q_s64): Likewise.
4737 (vst3q_u8): Likewise.
4738 (vst3q_u16): Likewise.
4739 (vst3q_u32): Likewise.
4740 (vst3q_u64): Likewise.
4741 (vst3q_f16): Likewise.
4742 (vst3q_f32): Likewise.
4743 (vst3q_f64): Likewise.
4744 (vst3q_p64): Likewise.
4745 (vst4_s64): Likewise.
4746 (vst4_u64): Likewise.
4747 (vst4_f64): Likewise.
4748 (vst4_s8): Likewise.
4749 (vst4_p8): Likewise.
4750 (vst4_s16): Likewise.
4751 (vst4_p16): Likewise.
4752 (vst4_s32): Likewise.
4753 (vst4_u8): Likewise.
4754 (vst4_u16): Likewise.
4755 (vst4_u32): Likewise.
4756 (vst4_f16): Likewise.
4757 (vst4_f32): Likewise.
4758 (vst4_p64): Likewise.
4759 (vst4q_s8): Likewise.
4760 (vst4q_p8): Likewise.
4761 (vst4q_s16): Likewise.
4762 (vst4q_p16): Likewise.
4763 (vst4q_s32): Likewise.
4764 (vst4q_s64): Likewise.
4765 (vst4q_u8): Likewise.
4766 (vst4q_u16): Likewise.
4767 (vst4q_u32): Likewise.
4768 (vst4q_u64): Likewise.
4769 (vst4q_f16): Likewise.
4770 (vst4q_f32): Likewise.
4771 (vst4q_f64): Likewise.
4772 (vst4q_p64): Likewise.
4773 (vtbx4_s8): Likewise.
4774 (vtbx4_u8): Likewise.
4775 (vtbx4_p8): Likewise.
4776 (vtrn_f32): Likewise.
4777 (vtrn_p8): Likewise.
4778 (vtrn_p16): Likewise.
4779 (vtrn_s8): Likewise.
4780 (vtrn_s16): Likewise.
4781 (vtrn_s32): Likewise.
4782 (vtrn_u8): Likewise.
4783 (vtrn_u16): Likewise.
4784 (vtrn_u32): Likewise.
4785 (vtrnq_f32): Likewise.
4786 (vtrnq_p8): Likewise.
4787 (vtrnq_p16): Likewise.
4788 (vtrnq_s8): Likewise.
4789 (vtrnq_s16): Likewise.
4790 (vtrnq_s32): Likewise.
4791 (vtrnq_u8): Likewise.
4792 (vtrnq_u16): Likewise.
4793 (vtrnq_u32): Likewise.
4794 (vrsqrte_f16): Likewise.
4795 (vrsqrteq_f16): Likewise.
4796 (vsqrt_f16): Likewise.
4797 (vsqrtq_f16): Likewise.
4798 (vabd_f16): Likewise.
4799 (vabdq_f16): Likewise.
4800 (vpadd_f16): Likewise.
4801 (vpaddq_f16): Likewise.
4802 (vpmax_f16): Likewise.
4803 (vpmaxq_f16): Likewise.
4804 (vpmaxnm_f16): Likewise.
4805 (vpmaxnmq_f16): Likewise.
4806 (vpmin_f16): Likewise.
4807 (vpminq_f16): Likewise.
4808 (vpminnm_f16): Likewise.
4809 (vpminnmq_f16): Likewise.
4810 (vrsqrts_f16): Likewise.
4811 (vrsqrtsq_f16): Likewise.
4813 2019-09-25 Richard Biener <rguenther@suse.de>
4815 PR tree-optimization/91896
4816 * tree-vect-loop.c (vectorizable_reduction): The single
4817 def-use cycle optimization cannot apply when there's more
4818 than one pattern stmt involved.
4820 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4822 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
4823 the 'P' mode iterator, replacing the (removed) SI and DI variants.
4824 (reload_macho_picbase_<mode>): Likewise.
4826 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4828 * config/rs6000/rs6000.md: Move darwin.md include until
4829 after the definition of the mode iterators.
4831 2019-09-23 Martin Sebor <msebor@redhat.com>
4833 PR tree-optimization/91570
4834 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
4835 non-constant minlen, maxlen and maxbound.
4837 2019-09-24 Richard Biener <rguenther@suse.de>
4839 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
4841 (_stmt_vec_info::cond_reduc_code): ... this.
4842 (_stmt_vec_info::induc_cond_initial_val): Add.
4843 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
4844 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
4845 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
4846 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
4847 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
4849 (vect_create_epilog_for_reduction): Drop special
4850 induction condition reduction params, pass in reduction code
4852 (vectorizable_reduction): Perform condition reduction kind
4853 selection only at analysis time. Adjust passing on state.
4855 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4857 * config/aarch64/aarch64.md (mov<mode>): Don't call
4858 aarch64_split_dimode_const_store on volatile MEM.
4860 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
4862 * config/aarch64/aarch64-option-extensions.def (fp16fml):
4863 Update hwcap string for fp16fml.
4865 2019-09-24 Jakub Jelinek <jakub@redhat.com>
4868 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
4869 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
4871 2019-09-24 Martin Liska <mliska@suse.cz>
4873 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
4874 instead of if-elseif-elseif-...
4875 * gimple-expr.c (extract_ops_from_tree): Likewise.
4876 * gimple.c (get_gimple_rhs_num_ops): Likewise.
4877 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
4879 2019-09-24 Martin Jambor <mjambor@suse.cz>
4882 * ipa-param-manipulation.c (carry_over_param): Make a method of
4883 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
4884 in case of a context mismatch.
4885 (ipa_param_body_adjustments::common_initialization): Adjust call to
4887 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
4888 private method carry_over_param.
4890 2019-09-24 Martin Jambor <mjambor@suse.cz>
4893 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
4895 2019-09-24 Richard Biener <rguenther@suse.de>
4897 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
4900 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4902 * config/arm/t-arm (arm-builtins.o): Add dependency on
4903 arm_acle_builtins.def.
4905 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4908 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4909 canonical CONST_INTs. Use gen_rtvec.
4911 2019-09-23 Richard Biener <rguenther@suse.de>
4913 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4914 avoid adjusting by + 0 or * 1.
4915 (vect_create_epilog_for_reduction): Get reduction code only
4916 when necessary. Deal with adjustment_def only when necessary.
4918 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4920 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4923 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4926 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4929 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4931 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4932 code. Merge code blocks with common conditionals. Use declared
4933 macro instead of a magic number for PIC level.
4935 2019-09-21 Martin Sebor <msebor@redhat.com>
4938 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4939 Simplify computation of the offset of the referenced subobject.
4941 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4943 * config/darwin.c (machopic_legitimize_pic_address): Check
4946 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4948 * ira-conflicts.c (can_use_same_reg_p): New function.
4949 (process_reg_shuffles): Take an insn parameter. Ignore cases
4950 in which input operand op_num could seemingly never be allocated
4951 to the same register as the destination.
4952 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4954 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4956 * simplify-rtx.c (neg_const_int): Replace with...
4957 (neg_poly_int_rtx): ...this new function.
4958 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4959 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4960 (simplify_plus_minus): Likewise for constant terms here.
4962 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4964 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4965 HOST_WIDE_PRINT_UNSIGNED.
4967 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4969 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4972 2019-09-20 Maya Rashish <coypu@sdf.org>
4975 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4976 Define to speculation_safe_value_not_needed.
4978 2019-09-20 Richard Biener <rguenther@suse.de>
4979 Uros Bizjak <ubizjak@gmail.com>
4982 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4984 (general_scalar_chain::convert_op): Force not suitable memory
4985 operands to a register.
4987 2019-09-20 Richard Biener <rguenther@suse.de>
4989 PR tree-optimization/91821
4990 * tree-vect-loop.c (check_reduction_path): Check we can compute
4992 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4993 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4994 operands in canonical order.
4995 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4996 STMT_VINFO_REDUC_IDX.
4997 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4998 (STMT_VINFO_REDUC_IDX): Likewise.
5000 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
5003 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5005 2019-09-20 Richard Biener <rguenther@suse.de>
5007 PR tree-optimization/91822
5008 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
5010 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
5011 for reduc_index in nested cycles, adjust vectorizable_condition
5013 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
5015 (vect_analyze_stmt): Adjust.
5016 (vect_transform_stmt): Likewise.
5018 2019-09-20 Richard Biener <rguenther@suse.de>
5021 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
5022 Ensure there's a sequence point between allocating the new register
5023 and passing a reference to a reg via regno_reg_rtx.
5025 2019-09-20 Martin Jambor <mjambor@suse.cz>
5027 * coretypes.h (cgraph_edge): Declare.
5028 * ipa-param-manipulation.c: Rewrite.
5029 * ipa-param-manipulation.h: Likewise.
5030 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
5031 (OBJS): Added ipa-sra.o.
5032 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
5033 and ref_p, added fields param_adjustments and performed_splits.
5034 (struct cgraph_clone_info): Remove ags_to_skip and
5035 combined_args_to_skip, new field param_adjustments.
5036 (cgraph_node::create_clone): Changed parameters to use
5037 ipa_param_adjustments.
5038 (cgraph_node::create_virtual_clone): Likewise.
5039 (cgraph_node::create_virtual_clone_with_body): Likewise.
5040 (tree_function_versioning): Likewise.
5041 (cgraph_build_function_type_skip_args): Removed.
5042 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
5043 using ipa_param_adjustments.
5044 (clone_of_p): Likewise.
5045 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
5046 (build_function_decl_skip_args): Likewise.
5047 (duplicate_thunk_for_node): Adjust parameters using
5048 ipa_param_body_adjustments, copy param_adjustments instead of
5050 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
5051 (cgraph_node::create_virtual_clone): Likewise.
5052 (cgraph_node::create_version_clone_with_body): Likewise.
5053 (cgraph_materialize_clone): Likewise.
5054 (symbol_table::materialize_all_clones): Likewise.
5055 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
5056 ipa_replace_map check.
5057 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
5058 (initialize_node_lattices): Make aware that some parameters might have
5059 already been removed.
5060 (want_remove_some_param_p): New function.
5061 (create_specialized_node): Convert to using ipa_param_adjustments and
5062 deal with possibly pre-existing adjustments.
5063 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
5064 (output_node_opt_summary): Do not stream removed fields. Stream
5065 parameter adjustments instead of argumetns to skip.
5066 (input_node_opt_summary): Likewise.
5067 (input_node_opt_summary): Likewise.
5068 * lto-section-in.c (lto_section_name): Added ipa-sra section.
5069 * lto-streamer.h (lto_section_type): Likewise.
5070 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
5072 (copy_decl_to_var): Declare.
5073 * tree-inline.c (update_clone_info): Do not remap old_tree.
5074 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
5075 statements, walk all extra generated statements and remap their
5077 (redirect_all_calls): Add killed SSA names to a hash set.
5078 (remap_ssa_name): Do not remap killed SSA names.
5079 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
5080 half of functionality moved to ipa_param_body_adjustments.
5081 (copy_decl_to_var): Make exported.
5082 (copy_body): Destroy killed_new_ssa_names hash set.
5083 (expand_call_inline): Remap performed splits.
5084 (update_clone_info): Likewise.
5085 (tree_function_versioning): Simplify tree_map processing. Updated to
5086 accept ipa_param_adjustments and use ipa_param_body_adjustments.
5087 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
5088 for the new interface.
5089 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
5090 (simd_clone_compute_base_data_type): Likewise.
5091 (simd_clone_init_simd_arrays): Adjust for the new interface.
5092 (simd_clone_adjust_argument_types): Likewise.
5093 (struct modify_stmt_info): Likewise.
5094 (ipa_simd_modify_stmt_ops): Likewise.
5095 (ipa_simd_modify_function_body): Likewise.
5096 (simd_clone_adjust): Likewise.
5097 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
5098 (type_internals_preclude_sra_p): Make public.
5099 * tree-sra.h: New file.
5100 * ipa-inline-transform.c (save_inline_function_body): Update to
5101 refelct new tree_function_versioning signature.
5102 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
5103 ipa_param_adjustments to get current parameter indices.
5104 (ipcp_modif_dom_walker::before_dom_children): Likewise.
5105 (ipcp_update_bits): Likewise.
5106 (ipcp_update_vr): Likewise.
5107 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
5108 * ipa-sra.c: New file.
5109 * multiple_target.c (create_target_clone): Update to reflet new type
5110 of create_version_clone_with_body.
5111 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
5112 tree_function_versioning.
5113 (modify_function): Update to reflect new type of
5114 tree_function_versioning.
5115 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
5116 * passes.def: Remove old IPA-SRA and add new one.
5117 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
5118 (make_pass_ipa_sra): Declare.
5119 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
5121 * doc/invoke.texi (ipa-sra-max-replacements): New.
5123 2019-09-19 Martin Sebor <msebor@redhat.com>
5126 * builtins.c (component_size): Correct trailing array computation,
5127 rename to component_ref_size and move...
5128 (compute_objsize): Adjust.
5129 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
5130 (builtin_access::strict): Do not consider memmove.
5131 (builtin_access::write_off): New function.
5132 (builtin_memref::builtin_memref): Initialize refsize.
5133 (builtin_memref::set_base_and_offset): Adjust refoff and compute
5135 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
5137 (builtin_access::builtin_access): Initialize dstoff to destination
5138 refeence offset here instead of in maybe_diag_overlap. Adjust
5139 referencess even to unrelated objects. Adjust sizrange of bounded
5140 string functions to reflect bound. For strcat, adjust destination
5141 sizrange by that of source.
5142 (builtin_access::strcat_overlap): Adjust offsets and sizes
5143 to reflect the increase in destination sizrange above.
5144 (builtin_access::overlap): Do not set dstoff here but instead
5145 in builtin_access::builtin_access.
5146 (check_bounds_or_overlap): Use builtin_access::write_off.
5147 (maybe_diag_access_bounds): Add argument. Add informational notes.
5148 (dump_builtin_memref, dump_builtin_access): New functions.
5149 * tree.c (component_ref_size): ...to here.
5150 * tree.h (component_ref_size): Declare.
5151 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
5152 nul in the size of the source string.
5154 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
5157 * doc/cpp.texi: Document support for extended characters in
5159 * doc/cppopts.texi: Likewise.
5161 2019-09-19 Richard Biener <rguenther@suse.de>
5163 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
5164 (check_reduction_path): New overload having the path as result.
5165 (vect_is_simple_reduction): From the detected reduction
5166 path build a SLP reduction chain if possible.
5168 2019-09-19 Richard Biener <rguenther@suse.de>
5171 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
5172 Force operand to a register if it isn't nonimmediate_operand.
5174 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
5176 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
5177 * config/arm/iterators.md (optab): Add and, ior, xor entries.
5178 (logical_op): Remove code attribute.
5179 (logical_OP): Likewise.
5181 2019-09-19 Martin Liska <mliska@suse.cz>
5183 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
5186 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
5188 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
5191 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
5192 for NE comparison of TImode values.
5193 (aarch64_emit_load_exclusive): Add support for TImode.
5194 (aarch64_emit_store_exclusive): Likewise.
5195 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
5196 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
5197 Change iterator from ALLI to ALLI_TI.
5198 (@atomic_compare_and_swap<JUST_TI>): New.
5199 (@atomic_compare_and_swap<JUST_TI>_lse): New.
5200 (aarch64_load_exclusive_pair): New.
5201 (aarch64_store_exclusive_pair): New.
5202 * config/aarch64/iterators.md (JUST_TI): New.
5204 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
5205 strong_zero_p for aarch64_track_speculation; unify some code paths;
5206 use aarch64_gen_compare_reg instead of open-coding.
5208 * config/aarch64/aarch64.opt (-moutline-atomics): New.
5209 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
5210 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
5211 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
5212 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
5213 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
5214 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
5215 (atomic_<atomic_op><ALLI>): Likewise.
5216 (atomic_fetch_<atomic_op><ALLI>): Likewise.
5217 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
5218 * doc/invoke.texi: Document -moutline-atomics.
5220 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
5222 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
5223 trivial predicate for condition branch.
5224 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
5226 (compute_bb_predicates): Update predicate based on post-dominating
5228 (analyze_function_body): Calculate post-dominating information.
5230 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
5232 * tree-vectorizer.h (vectorizable_condition): Take an int
5233 reduction index instead of a boolean flag.
5234 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5235 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
5236 reductions if the reduction accumulator is the "then" rather
5237 than the "else" value.
5238 (vect_analyze_stmt): Update call accordingly.
5239 (vect_transform_stmt): Likewise.
5240 * tree-vect-loop.c (vectorizable_reduction): Likewise,
5241 asserting that the index is > 0.
5243 2019-09-19 Martin Liska <mliska@suse.cz>
5245 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
5246 (sort_congruence_classes_by_decl_uid): Likewise.
5247 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
5249 (sem_item_optimizer::merge_classes): Likewise.
5251 2019-09-19 Richard Biener <rguenther@suse.de>
5253 PR tree-optimization/91812
5254 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
5257 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
5259 * defaults.h (TARGET_UNIT): New macro.
5260 (target_unit): New type.
5261 * rtl.h (native_encode_rtx, native_decode_rtx)
5262 (native_decode_vector_rtx, subreg_size_lsb): Declare.
5263 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
5264 * rtlanal.c (subreg_lsb_1): Delete.
5265 (subreg_size_lsb): New function.
5266 * simplify-rtx.c: Include rtx-vector-builder.h
5267 (simplify_immed_subreg): Delete.
5268 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
5269 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
5271 (simplify_subreg): Use them.
5272 (test_vector_subregs_modes, test_vector_subregs_repeating)
5273 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
5274 (test_vector_subregs): New functions.
5275 (test_vector_ops): Call test_vector_subregs for integer vector
5276 modes with at least 2 elements.
5278 2019-09-19 Richard Biener <rguenther@suse.de>
5280 * tree-parloops.c (parloops_is_slp_reduction): Do not set
5281 LOOP_VINFO_OPERANDS_SWAPPED.
5282 (parloops_is_simple_reduction): Likewise.
5283 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
5284 initialize operands_swapped.
5285 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
5286 (vect_is_slp_reduction): Do not swap operands.
5287 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
5288 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
5290 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
5293 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
5294 Add avx_partial_xmm_update.
5296 2019-09-18 Jim Wilson <jimw@sifive.com>
5299 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
5300 (riscv_move_integer): Likewise.
5301 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
5302 riscv_move_integer arg.
5303 (riscv_legitimize_move): Likewise.
5304 (riscv_force_temporary): New parameter in_splitter. Don't call
5306 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
5308 (riscv_add_offset): Likewise.
5309 (riscv_split_symbol): New parameter in_splitter. Pass to
5310 riscv_force_temporary.
5311 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
5313 (riscv_move_integer): New parameter in_splitter. New local
5314 can_create_psuedo. Don't call riscv_split_integer or force_reg when
5316 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
5317 riscv_split_symbol, and riscv_force_temporary args.
5318 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
5319 riscv_move_integer arg.
5320 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
5322 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
5325 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
5326 hard register store cost to 6.
5328 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
5331 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
5332 pseudo register store cost from 3 to 6 to make it the same as
5335 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5338 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
5339 (one_cmpldi2): Likewise.
5340 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
5341 of the constant parts is simple.
5342 * config/arm/iterators.md (LOGICAL): Add new code iterator.
5343 (logical_op): Add new code attribute.
5344 (logical_OP): Likewise.
5345 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
5346 (arm_iordi_operand): Add predicate.
5347 (arm_xordi_operand): Add predicate.
5349 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5351 * config/arm/arm.md (maddsidi4): Remove expander.
5352 (mulsidi3adddi): Remove pattern.
5353 (mulsidi3adddi_v6): Likewise.
5354 (mulsidi3_nov6): Likewise.
5355 (mulsidi3_v6): Likewise.
5356 (umulsidi3): Remove expander.
5357 (umulsidi3_nov6): Remove pattern.
5358 (umulsidi3_v6): Likewise.
5359 (umulsidi3adddi): Likewise.
5360 (umulsidi3adddi_v6): Likewise.
5361 (<Us>mulsidi3): Add combined expander.
5362 (<Us>maddsidi4): Likewise.
5363 (<US>mull): Add combined umull and smull pattern.
5364 (<US>mlal): Likewise.
5365 * config/arm/iterators.md (Us): Add new iterator.
5367 2019-09-18 Richard Biener <rguenther@suse.de>
5369 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
5371 (vectorize_fold_left_reduction): Remove assert.
5372 (vectorizable_reduction): Also expect COND_EXPR non-reduction
5373 operand in position 2. Remove assert.
5375 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5377 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
5378 (smulsi3_highpart_nov6): Remove pattern.
5379 (smulsi3_highpart_v6): Likewise.
5380 (umulsi3_highpart): Likewise.
5381 (umulsi3_highpart_nov6): Likewise.
5382 (umulsi3_highpart_v6): Likewise.
5383 (<US>mull_high): Add new combined multiply pattern.
5385 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5387 * config/arm/arm.md (arm_mulsi3): Remove pattern.
5388 (arm_mulsi3_v6): Likewise.
5389 (mulsi3addsi_v6): Likewise.
5390 (mulsi3subsi): Likewise.
5391 (mul): Add new multiply pattern.
5395 2019-09-18 Richard Biener <rguenther@suse.de>
5397 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
5398 (parloops_valid_reduction_input_p): Copy from
5399 valid_reduction_input_p.
5400 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
5401 (parloops_needs_fold_left_reduction_p): Copy from
5402 needs_fold_left_reduction_p.
5403 (parloops_is_simple_reduction): Copy from
5404 vect_is_simple_reduction.
5405 (parloops_force_simple_reduction): Copy from
5406 vect_force_simple_reduction.
5407 (gather_scalar_reductions): Adjust.
5408 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
5409 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
5411 2019-09-18 Richard Biener <rguenther@suse.de>
5413 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
5414 * tree-vect-loop.c (get_initial_def_for_reduction): Make
5416 (vect_create_epilog_for_reduction): Remove dead code.
5418 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5420 * varasm.c (assemble_real): Generate canonical const_ints.
5422 2019-09-18 Richard Biener <rguenther@suse.de>
5425 * lto-streamer-in.c (input_eh_regions): Move EH init to
5426 lto_materialize_function.
5427 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
5430 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5432 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
5435 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5437 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
5438 of checking specifically for INTEGER_CST.
5440 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5442 * stor-layout.c (compute_record_mode): Operate on poly_uint64
5443 sizes instead of uhwi sizes.
5445 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5447 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
5448 (add_const_value_attribute): Handle CONST_POLY_INT.
5450 2019-09-18 Martin Liska <mliska@suse.cz>
5452 * dbgcnt.def (store_merging): New counter.
5453 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
5454 Use it in store merging.
5456 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5458 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
5460 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
5461 * config/arm/arm.c (arm_sched_variable_issue): New function.
5462 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
5464 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5466 * config/arm/types.md (no_reservation): New reservation.
5467 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
5469 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
5470 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
5471 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
5472 * config/arm/arm1020e.md (1020alu_op): Likewise.
5473 * config/arm/arm1026ejs.md (alu_op): Likewise.
5474 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5475 * config/arm/arm926ejs.md (9_alu_op): Likewise.
5476 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5477 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
5478 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5479 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5480 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
5481 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
5482 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5483 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5484 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5485 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
5486 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
5487 * config/arm/fa526.md (526_alu_op): Likewise.
5488 * config/arm/fa606te.md (606te_alu_op): Likewise.
5489 * config/arm/fa626te.md (626te_alu_op): Likewise.
5490 * config/arm/fa726te.md (726te_alu_op): Likewise.
5491 * config/arm/xgene1.md (xgene1_nop): Likewise.
5493 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5495 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
5496 "no_insn" to "branch".
5498 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5500 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
5502 2019-09-17 Richard Biener <rguenther@suse.de>
5505 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
5506 was missing generate locations only once.
5508 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
5511 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
5513 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
5514 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
5515 for switch default case using range analysis information.
5517 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
5520 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
5521 mode attributed is supported by FDPIC.
5523 2019-09-17 Richard Biener <rguenther@suse.de>
5525 PR tree-optimization/91790
5526 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
5527 use the correct DR for setting up realignment.
5529 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
5532 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
5533 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
5534 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
5535 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
5537 2019-09-16 Jason Merrill <jason@redhat.com>
5539 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
5541 2019-09-16 Martin Liska <mliska@suse.cz>
5543 * gimple-fold.c (or_comparisons_1): Remove rules moved
5545 * match.pd: ... here.
5547 2019-09-16 Martin Liska <mliska@suse.cz>
5549 * gimple-fold.c (or_comparisons_1): Remove rules
5551 * match.pd: ... here.
5553 2019-09-16 Martin Liska <mliska@suse.cz>
5555 * genmatch.c (dt_node::append_simplify): Do not print
5556 warning when we have duplicate patterns belonging
5557 to a same simplify rule.
5558 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
5559 (maybe_fold_comparisons_from_match_pd): Handle
5560 tcc_comparison as a results.
5561 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
5563 2019-09-16 Li Jia He <helijia@linux.ibm.com>
5564 Qi Feng <ffengqi@linux.ibm.com>
5567 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
5568 (x > y && x == XXX_MIN): Optimize into 'false'.
5569 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
5570 (x < y && x != XXX_MAX): Optimize into 'x < y'.
5571 (x < y && x == XXX_MAX): Optimize into 'false'.
5572 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
5573 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
5574 (x <= y || x != XXX_MIN): Optimize into 'true'.
5575 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
5576 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
5577 (x >= y || x != XXX_MAX): Optimize into 'true'.
5578 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
5580 2019-09-16 Li Jia He <helijia@linux.ibm.com>
5581 Martin Liska <mliska@suse.cz>
5583 * gimple-fold.c (and_comparisons_1): Add type as first
5585 (and_var_with_comparison): Likewise.
5586 (and_var_with_comparison_1): Likewise.
5587 (or_comparisons_1): Likewise.
5588 (or_var_with_comparison): Likewise.
5589 (or_var_with_comparison_1): Likewise.
5590 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
5591 (maybe_fold_or_comparisons): Likewise.
5592 (maybe_fold_comparisons_from_match_pd): New.
5593 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
5594 (maybe_fold_or_comparisons): Likewise.
5595 * gimple.c (gimple_size): Make it public and add num_ops argument.
5596 (gimple_init): New function.
5597 (gimple_alloc): Call gimple_init.
5598 * gimple.h (gimple_size): New.
5599 (gimple_init): Likewise.
5600 * tree-if-conv.c (fold_or_predicates): Pass type.
5601 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5602 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
5603 (optimize_vec_cond_expr): Likewise.
5604 (ovce_extract_ops): Return type of conditional expression.
5605 * tree-ssanames.c (init_ssa_name_imm_use): New.
5606 (make_ssa_name_fn): Use init_ssa_name_imm_use.
5607 * tree-ssanames.h (init_ssa_name_imm_use): New.
5609 2019-09-16 Richard Biener <rguenther@suse.de>
5611 PR tree-optimization/91756
5612 PR tree-optimization/87132
5613 * tree-ssa-alias.h (enum translate_flags): New.
5614 (get_continuation_for_phi): Use it instead of simple bool flag.
5615 (walk_non_aliased_vuses): Likewise.
5616 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5617 (get_continuation_for_phi): When looking across backedges only
5618 disallow valueization.
5619 (walk_non_aliased_vuses): Adjust.
5620 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
5623 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
5626 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
5627 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
5628 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
5629 * target.def (have_count_reg_decr_p): New hook.
5630 (doloop_cost_for_generic): Likewise.
5631 (doloop_cost_for_address): Likewise.
5632 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
5633 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
5634 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
5635 * doc/tm.texi: Regenerate.
5636 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
5638 (record_group): Init doloop_p.
5639 (add_candidate_1): Add optional argument doloop, change the handlings
5641 (add_candidate): Likewise.
5642 (generic_predict_doloop_p): Update attribute.
5643 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
5644 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
5645 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
5647 (get_computation_cost): Update for doloop IV cand extra cost.
5648 (determine_group_iv_cost_cond): Update for doloop IV cand.
5649 (determine_iv_cost): Likewise.
5650 (ivopts_estimate_reg_pressure): Likewise.
5651 (may_eliminate_iv): Update handlings for doloop IV cand.
5652 (add_iv_candidate_for_doloop): New function.
5653 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
5654 (iv_ca_set_no_cp): Update for doloop IV cand.
5655 (iv_ca_set_cp): Likewise.
5656 (iv_ca_dump): Dump register cost.
5657 (find_doloop_use): New function.
5658 (analyze_and_mark_doloop_use): Likewise.
5659 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
5661 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
5664 * cse.c (cse_insn): Do not replace anything with a
5667 2019-09-13 Ian Lance Taylor <iant@golang.org>
5669 * doc/invoke.texi (Optimize Options): Fix typo.
5671 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
5673 PR tree-optimization/89386
5674 * config/i386/sse.md (smulhrs<mode>3): New expander.
5675 (smulhrsv4hi3): Ditto.
5677 2019-09-12 Richard Biener <rguenther@suse.de>
5679 PR tree-optimization/91750
5680 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
5681 in the type of the evolution.
5683 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
5685 PR tree-optimization/89386
5686 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
5687 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
5688 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
5689 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
5690 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
5691 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
5692 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
5693 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
5694 (su, r): Handle the unspecs above.
5695 (bt): New int attribute.
5696 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
5697 * internal-fn.c (first_commutative_argument): Commutativity info for
5699 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
5700 (umulhrs_optab): New optabs.
5701 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
5702 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
5703 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
5705 (vect_vect_recog_func_ptrs): Add it.
5707 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
5709 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
5712 2019-09-11 Nathan Sidwell <nathan@acm.org>
5714 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
5715 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
5717 2019-09-11 Richard Biener <rguenther@suse.de>
5719 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
5720 * lto-wrapper.c (merge_and_complain): Pick up -g.
5721 (append_compiler_options): Likewise.
5722 (run_gcc): Re-instantiate handling -g0 at link-time.
5723 * doc/invoke.texi (flto): Document debug info generation.
5725 2019-09-11 Richard Biener <rguenther@suse.de>
5727 PR tree-optimization/90387
5728 * vr-values.c (vr_values::extract_range_basic): After inlining
5729 simplify non-constant __builtin_constant_p to false.
5731 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
5733 PR rtl-optimization/89795
5734 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
5735 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
5737 2019-09-11 Jakub Jelinek <jakub@redhat.com>
5739 PR tree-optimization/91723
5740 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
5741 instead of pointer equality when checking if argument vectypes are
5745 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
5746 of get_nonzero_bits, only call it for integral types.
5748 2019-09-11 Richard Biener <rguenther@suse.de>
5751 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5753 * match.pd: Add flag_unsafe_math_optimizations check
5754 before deciding on the widest type in a binary math operation.
5756 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5758 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
5759 and CALL_REALLY_USED_REGISTERS must be defined, and that
5760 CALL_REALLY_USED_REGISTERS is preferred.
5761 * doc/tm.texi: Regenerate.
5762 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
5763 (call_really_used_regs): Likewise.
5764 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
5765 CALL_REALLY_USED_REGISTERS are defined.
5766 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
5767 initial value if defined.
5768 (initial_call_really_used_regs): Delete.
5769 (saved_call_really_used_regs): Likewise.
5770 (CALL_REALLY_USED_REGNO_P): Likewise.
5771 (init_reg_sets): Remove handling of call_really_used_regs.
5772 (save_register_info, restore_register_info, globalize_reg): Likewise.
5773 (init_reg_sets_1): Likewise. Use call_used_regs instead of
5774 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
5775 outside operand_reg_set.
5776 (fix_register): Don't change call_used_regs if
5777 CALL_REALLY_USED_REGISTERS is defined.
5778 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
5779 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
5780 instead of call_really_used_regs.
5781 (csky_conditional_register_usage): Remove the old handling of
5782 call_used_regs and change the handling of call_really_used_regs
5783 to use call_used_regs instead.
5784 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
5785 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
5786 making a register fixed.
5787 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
5788 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
5789 instead of call_really_used_regs.
5790 (m32r_conditional_register_usage): Don't set call_used_regs when
5791 making a register fixed.
5792 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
5793 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
5794 instead of call_really_used_regs.
5795 (mips_interrupt_extra_call_saved_reg_p): Likewise.
5796 (mips_cfun_call_saved_reg_p): Likewise.
5797 (mips_swap_registers): Remove the old handling of call_used_regs
5798 and change the handling of call_really_used_regs to use call_used_regs
5800 (mips_conditional_register_usage): Likewise.
5801 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
5802 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
5803 instead of call_really_used_regs.
5804 (mn10300_get_live_callee_saved_regs): Likewise.
5805 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
5806 (mn10300_conditional_register_usage): Don't set call_used_regs when
5807 making a register fixed.
5808 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
5809 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5810 Remove the old handling of call_used_regs and change the handling
5811 of call_really_used_regs to use call_used_regs instead.
5812 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
5813 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
5814 instead of call_really_used_regs.
5815 (s390_register_info_gprtofpr, s390_register_info): Likewise.
5816 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
5817 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
5818 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
5819 (s390_conditional_register_usage): Remove the old handling of
5820 call_used_regs and change the handling of call_really_used_regs
5821 to use call_used_regs instead.
5822 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
5823 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
5824 (sh_fix_range, reg_unused_after): Likewise.
5825 (sh_conditional_register_usage): Remove the old handling of
5826 call_used_regs and change the handling of call_really_used_regs
5827 to use call_used_regs instead.
5828 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
5829 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
5830 call_used_regs when making a register fixed.
5831 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
5832 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
5833 call_used_regs when making a register fixed.
5834 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
5835 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
5836 set call_used_regs when making a register fixed.
5837 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
5838 * config/visium/visium.c (visium_conditional_register_usage): Remove
5839 the old handling of call_used_regs and change the handling of
5840 call_really_used_regs to use call_used_regs instead.
5842 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5844 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
5845 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
5846 * reginfo.c (call_used_regs): New macro.
5848 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5850 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
5852 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5853 (bpf_expand_epilogue): Likewise.
5854 * config/c6x/c6x.c (c6x_save_reg): Likewise.
5855 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5856 (ft32_expand_epilogue): Likewise.
5857 * config/i386/i386.c (ix86_save_reg): Likewise.
5858 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
5859 (moxie_expand_epilogue): Likewise.
5860 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5861 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5862 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5864 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5866 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
5867 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
5868 instead of testing call_used_regs directly.
5869 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
5870 (aarch64_components_for_bb): Likewise.
5871 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
5872 * config/arc/arc.c (arc_must_save_register): Likewise.
5873 (arc_epilogue_uses): Likewise.
5874 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
5875 (legitimize_pic_address, callee_saved_reg_p): Likewise.
5876 (arm_compute_save_reg0_reg12_mask): Likewise.
5877 (arm_compute_save_core_reg_mask): Likewise.
5878 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
5879 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
5880 (cmse_nonsecure_entry_clear_before_return): Likewise.
5881 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
5882 (arm_expand_epilogue): Likewise.
5883 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
5884 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
5885 (_reg_unused_after): Likewise.
5886 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
5887 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
5888 (add_to_reg, hwloop_optimize): Likewise.
5889 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5890 (bpf_expand_epilogue): Likewise.
5891 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
5892 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5893 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
5894 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
5895 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
5896 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
5897 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
5898 * config/frv/frv.c (frv_stack_info): Likewise.
5899 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
5900 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
5901 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
5902 (move_callee_saved_registers): Likewise.
5903 * config/h8300/h8300.c (byte_reg): Likewise.
5904 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
5905 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
5906 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5907 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5908 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5909 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5910 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5911 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5912 * config/m32c/m32c.c (need_to_save): Likewise.
5913 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5914 * config/mcore/mcore.c (calc_live_regs): Likewise.
5915 * config/microblaze/microblaze.c (microblaze_must_save_register):
5917 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5918 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5919 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5920 (mmix_expand_epilogue): Likewise.
5921 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5922 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5923 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5924 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5925 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5926 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5927 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5928 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5929 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5930 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5931 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5932 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5933 * config/rl78/rl78.c (need_to_save): Likewise.
5934 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5935 (rs6000_stack_info, generate_set_vrsave): Likewise.
5936 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5937 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5938 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5939 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5940 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5941 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5942 (save_local_or_in_reg_p): Likewise.
5943 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5944 (xstormy16_epilogue_uses): Likewise.
5945 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5946 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5947 * config/v850/v850.c (compute_register_save_size): Likewise.
5948 * config/vax/vax.c (vax_expand_prologue): Likewise.
5949 * config/visium/visium.c (visium_save_reg_p): Likewise.
5950 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5951 * cselib.c (cselib_process_insn): Likewise.
5952 * df-scan.c (df_get_entry_block_def_set): Likewise.
5953 * function.c (aggregate_value_p): Likewise.
5954 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5955 * ira-lives.c (process_bb_node_lives): Likewise.
5956 * ira.c (do_reload): Likewise.
5957 * lra-lives.c (process_bb_lives): Likewise.
5958 * lra-remat.c (lra_remat): Likewise.
5959 * lra.c (lra): Likewise.
5960 * postreload.c (reload_combine_recognize_pattern): Likewise.
5961 (reload_cse_move2add): Likewise.
5962 * recog.c (peep2_find_free_register): Likewise.
5963 * regrename.c (check_new_reg_p): Likewise.
5964 * reload.c (find_equiv_reg): Likewise.
5965 * reload1.c (reload, find_reg): Likewise.
5966 * sel-sched.c (init_hard_regs_data): Likewise.
5968 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5970 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5971 regs_invalidated_by_call & ~fixed_reg_set instead of
5972 call_used_or_fixed_regs & ~fixed_reg_set.
5973 * config/sh/sh.c (output_stack_adjust): Likewise.
5975 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5977 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5978 (call_used_reg_set): Delete.
5979 (call_used_or_fixed_regs): New macro.
5980 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5981 of call_used_reg_set.
5982 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5983 instead of call_used_regs.
5984 (save_call_clobbered_regs): Likewise.
5985 * cfgcleanup.c (old_insns_match_p): Likewise.
5986 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5987 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5989 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5990 * config/sh/sh.c (output_stack_adjust): Likewise.
5991 * final.c (collect_fn_hard_reg_usage): Likewise.
5992 * ira-build.c (ira_build): Likewise.
5993 * ira-color.c (calculate_saved_nregs): Likewise.
5994 (allocno_reload_assign, calculate_spill_cost): Likewise.
5995 * ira-conflicts.c (ira_build_conflicts): Likewise.
5996 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5997 * ira-lives.c (process_bb_node_lives): Likewise.
5998 * ira.c (setup_reg_renumber): Likewise.
5999 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
6000 * lra-constraints.c (need_for_call_save_p): Likewise.
6001 (need_for_split_p, inherit_in_ebb): Likewise.
6002 * lra-lives.c (process_bb_lives): Likewise.
6003 * lra-remat.c (call_used_input_regno_present_p): Likewise.
6004 * postreload.c (reload_combine): Likewise.
6005 * regrename.c (find_rename_reg): Likewise.
6006 * reload1.c (reload_as_needed): Likewise.
6007 * rtlanal.c (find_all_hard_reg_sets): Likewise.
6008 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6009 * shrink-wrap.c (requires_stack_frame_p): Likewise.
6011 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6013 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
6014 (no_caller_save_reg_set): Delete.
6015 * caller-save.c (init_caller_save): Don't initialize it.
6016 * ira-conflicts.c (ira_build_conflicts): Calculate
6017 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
6019 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6021 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
6022 (target_hard_regs::x_savable_regs): New field.
6023 (call_fixed_reg_set): Delete.
6024 (savable_regs): New macro,
6025 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
6026 (init_reg_sets_1): Likewise. Initialize savable_regs.
6027 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
6028 for all registers. Set savable_regs instead of call_fixed_reg_set.
6029 (setup_save_areas, save_call_clobbered_regs): Replace uses of
6030 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
6031 * config/sh/sh.c (output_stack_adjust): Likewise.
6033 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6035 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
6036 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
6037 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
6039 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
6041 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
6042 * rtlanal.c (get_call_rtx_from): Likewise.
6043 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
6044 than the pattern to get_call_rtx_from.
6045 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
6046 an rtx_insn * instead of an rtx.
6047 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
6049 2019-09-10 Martin Liska <mliska@suse.cz>
6051 * common.opt: Use newly added WarnRemoved.
6052 * config/aarch64/aarch64.opt: Likewise.
6053 * config/arm/arm.opt: Likewise.
6054 * config/i386/i386.opt: Likewise.
6055 * config/ia64/ia64.opt: Likewise.
6056 * config/rs6000/rs6000.opt: Likewise.
6057 * doc/options.texi: Document WarnRemoved properly.
6058 * dwarf2out.c (gen_producer_string): Handle renamed
6059 OPT_SPECIAL_warn_removed.
6060 * lto-opts.c (lto_write_options): Likewise.
6061 * lto-wrapper.c (merge_and_complain): Likewise.
6062 * opts-common.c (decode_cmdline_option): Likewise.
6063 (prune_options): Likewise.
6064 (read_cmdline_option): Likewise.
6065 (control_warning_option): Likewise.
6066 * opts.c (print_filtered_help): Likewise.
6067 * optc-gen.awk: Parse for WarnRemoved and make usage
6068 of Deprecated an error.
6069 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
6071 2019-09-10 Arnaud Charlet <charlet@adacore.com>
6073 * doc/install.texi: Fix syntax for html generation.
6075 2019-09-10 Jakub Jelinek <jakub@redhat.com>
6078 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
6079 the shift type to type.
6081 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6083 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
6085 (stack_protect_combined_test_insn): Likewise.
6087 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6088 Mickaël Guêné <mickael.guene@st.com>
6090 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
6091 * config/arm/arm.md (FDPIC_REGNUM): New constant.
6092 (load_tp_soft_fdpic): New pattern.
6093 (load_tp_soft): Disable in FDPIC mode.
6095 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6096 Mickaël Guêné <mickael.guene@st.com>
6098 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
6099 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
6100 (arm_call_tls_get_addr): Add FDPIC support.
6101 (legitimize_tls_address): Likewise.
6102 (arm_emit_tls_decoration): Likewise.
6104 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6105 Mickaël Guêné <mickael.guene@st.com>
6107 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
6109 (arm_trampoline_init): Likewise.
6110 (arm_trampoline_adjust_address): Likewise.
6111 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
6113 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6114 Mickaël Guêné <mickael.guene@st.com>
6116 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
6117 (legitimize_pic_address): Enforce binding rules on function
6118 pointers in FDPIC mode.
6119 (arm_assemble_integer): Likewise.
6121 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6122 Mickaël Guêné <mickael.guene@st.com>
6124 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
6125 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
6128 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6129 Mickaël Guêné <mickael.guene@st.com>
6131 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
6134 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6135 Mickaël Guêné <mickael.guene@st.com>
6137 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
6139 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
6141 * config/arm/arm.c (arm_option_override): Define pic register to
6143 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
6144 have no decl or go through PLT.
6145 (calculate_pic_address_constant): New function.
6146 (legitimize_pic_address): Call calculate_pic_address_constant.
6147 (arm_load_pic_register): Handle TARGET_FDPIC.
6148 (arm_is_segment_info_known): New function.
6149 (arm_pic_static_addr): Add support for FDPIC.
6150 (arm_load_function_descriptor): New function.
6151 (arm_emit_call_insn): Add support for FDPIC.
6152 (arm_assemble_integer): Add support for FDPIC.
6153 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
6154 Define. (FDPIC_REGNUM): New define.
6155 * config/arm/arm.md (call): Add support for FDPIC.
6156 (call_value): Likewise.
6157 (restore_pic_register_after_call): New pattern.
6158 (untyped_call): Disable if FDPIC.
6159 (untyped_return): Likewise.
6160 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
6162 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6163 Mickaël Guêné <mickael.guene@st.com>
6165 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
6166 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
6167 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
6168 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
6169 (CC1_SPEC): Use FDPIC_CC1_SPEC.
6170 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
6171 * config/arm/uclinuxfdpiceabi.h: New file.
6173 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6175 * config.gcc: Handle *-*-uclinuxfdpiceabi.
6177 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6178 Mickaël Guêné <mickael.guene@st.com>
6180 * config/arm/arm.opt: Add -mfdpic option.
6181 * doc/invoke.texi: Add documentation for -mfdpic.
6183 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6185 * expmed.c (extract_bit_field): Update function comment
6187 * expr.c (expand_expr_real): Update function comment
6189 (expand_misaligned_mem_ref): New helper function.
6190 (expand_expr_real_2): Use expand_misaligned_mem_ref.
6191 Remove duplicate assignment to "base" at case MEM_REF.
6192 Remove a shadowed variable "unsignedp" at case VCE.
6194 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6196 * regset.h (regs_invalidated_by_call_regset): Delete.
6197 (fixed_reg_set_regset): Likewise.
6198 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
6199 (fixed_reg_set_regset, persistent_obstack): Likewise.
6200 (init_reg_sets_1, globalize_reg): Update accordingly.
6201 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
6202 instead of a bitmap.
6203 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
6204 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
6205 instead of regs_invalidated_by_call_regset.
6206 (df_lr_confluence_n, df_md_confluence_n): Likewise.
6207 * df-scan.c (df_scan_start_dump): Likewise.
6208 * dse.c (copy_fixed_regs): Likewise.
6209 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
6211 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6213 * array-traits.h: New file.
6214 * coretypes.h (array_traits, bitmap_view): New types.
6215 * bitmap.h: Include "array-traits.h"
6216 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
6217 (base_bitmap_view, bitmap_view): New classes.
6218 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
6219 * hard-reg-set.h: Include array-traits.h.
6220 (array_traits<HARD_REG_SET>): New struct.
6221 * regset.h (IOR_REG_SET_HRS): New macro.
6222 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
6223 rather than iterating over each hard register.
6224 * sched-deps.c (sched_analyze_insn): Likewise.
6225 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
6227 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6229 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
6230 instead of a HARD_REG_SET *.
6231 * ira-build.c (ior_hard_reg_conflicts): Likewise.
6232 (ira_build): Update call accordingly.
6233 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6235 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6237 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
6238 (HARD_REG_SET::operator!=): Likewise.
6239 (hard_reg_set_equal_p): Delete.
6240 * cfgcleanup.c (old_insns_match_p): Use == instead of
6241 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
6242 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
6243 (add_allocno_hard_regs_to_forest): Likewise.
6244 (setup_allocno_available_regs_num): Likewise.
6245 * ira.c (setup_pressure_classes): Likewise.
6246 (setup_allocno_and_important_classes): Likewise.
6247 (setup_reg_class_relations): Likewise.
6248 * lra-lives.c (process_bb_lives): Likewise.
6249 * reg-stack.c (change_stack, convert_regs_1): Likewise.
6251 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6253 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
6254 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6255 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
6256 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
6258 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
6259 * ira.c (setup_reg_renumber): Likewise.
6260 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6261 * regrename.c (regrename_find_superclass): Likewise.
6262 * reload1.c (find_reg): Likewise.
6264 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6266 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
6267 * caller-save.c (setup_save_areas): Use "&~" instead of
6268 AND_COMPL_HARD_REG_SET.
6269 (save_call_clobbered_regs): Likewise.
6270 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
6272 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6273 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6274 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
6275 * config/mips/mips.c (mips_class_max_nregs): Likewise.
6276 (mips_conditional_register_usage): Likewise.
6277 * config/sh/sh.c (output_stack_adjust): Likewise.
6278 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
6279 (setup_profitable_hard_regs): Likewise.
6280 (get_conflict_and_start_profitable_regs): Likewise.
6281 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6282 (ira_build_conflicts): Likewise.
6283 * ira-costs.c (restrict_cost_classes): Likewise.
6284 (setup_regno_cost_classes_by_aclass): Likewise.
6285 * ira-lives.c (process_bb_node_lives): Likewise.
6286 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
6287 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
6288 (setup_allocno_and_important_classes, setup_class_translate_array)
6289 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
6291 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6292 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
6293 (process_alt_operands, inherit_in_ebb): Likewise.
6294 * lra-eliminations.c (update_reg_eliminate): Likewise.
6295 * lra-lives.c (process_bb_lives): Likewise.
6296 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
6297 * resource.c (find_dead_or_set_registers): Likewise.
6298 (mark_target_live_regs): Likewise.
6299 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
6300 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6301 (implicit_clobber_conflict_p): Likewise.
6302 * shrink-wrap.c (requires_stack_frame_p): Likewise.
6303 (try_shrink_wrapping): Likewise.
6305 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6307 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
6308 (HARD_REG_SET::operator|=): Likewise.
6309 (IOR_HARD_REG_SET): Delete.
6310 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
6312 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
6313 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
6314 * final.c (collect_fn_hard_reg_usage): Likewise.
6315 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
6316 * ira-build.c (merge_hard_reg_conflicts): Likewise.
6317 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
6318 (propagate_some_info_from_allocno): Likewise.
6319 (copy_info_to_removed_store_destinations): Likewise.
6320 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
6321 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
6322 (fast_allocation): Likewise.
6323 * ira-conflicts.c (ira_build_conflicts): Likewise.
6324 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
6325 (process_bb_node_lives): Likewise.
6326 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
6327 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6328 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6329 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
6330 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
6331 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
6332 (process_bb_lives): Likewise.
6333 * lra-spills.c (assign_spill_hard_regs): Likewise.
6334 * postreload.c (reload_combine): Likewise.
6335 * reginfo.c (init_reg_sets_1): Likewise.
6336 * regrename.c (merge_overlapping_regs, find_rename_reg)
6337 (merge_chains): Likewise.
6338 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
6339 (find_reload_regs, finish_spills, choose_reload_regs_init)
6340 (emit_reload_insns): Likewise.
6341 * reorg.c (redundant_insn): Likewise.
6342 * resource.c (find_dead_or_set_registers, mark_set_resources)
6343 (mark_target_live_regs): Likewise.
6344 * rtlanal.c (find_all_hard_reg_sets): Likewise.
6345 * sched-deps.c (sched_analyze_insn): Likewise.
6346 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6347 (find_best_reg_for_expr): Likewise.
6348 * shrink-wrap.c (try_shrink_wrapping): Likewise.
6350 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6352 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
6353 (HARD_REG_SET::operator&): Likewise.
6354 (AND_HARD_REG_SET): Delete.
6355 * caller-save.c (setup_save_areas): Use "&" instead of
6357 (save_call_clobbered_regs): Likewise.
6358 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6359 * config/m32c/m32c.c (reduce_class): Likewise.
6360 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
6361 * final.c (get_call_reg_set_usage): Likewise.
6362 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
6363 (setup_left_conflict_sizes_p): Likewise.
6364 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6365 (ira_build_conflicts): Likewise.
6366 * ira-costs.c (restrict_cost_classes): Likewise.
6367 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
6368 (setup_reg_class_relations): Likewise.
6369 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
6370 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
6371 * resource.c (find_dead_or_set_registers): Likewise.
6372 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6374 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6376 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
6377 (COMPL_HARD_REG_SET): Delete.
6378 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
6379 of COMPL_HARD_REG_SET.
6380 (try_rename_operands): Likewise.
6381 * config/sh/sh.c (push_regs): Likewise.
6382 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6383 * lra-constraints.c (contains_reg_p): Likewise.
6384 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
6386 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6388 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
6389 * caller-save.c (save_call_clobbered_regs): Use assignment instead
6390 of COPY_HARD_REG_SET.
6391 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
6392 (epiphany_conditional_register_usage): Likewise.
6393 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6394 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6395 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6396 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
6397 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
6398 * config/mips/mips.c (mips_class_max_nregs): Likewise.
6399 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
6400 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
6401 * config/sh/sh.c (output_stack_adjust): Likewise.
6402 * final.c (collect_fn_hard_reg_usage): Likewise.
6403 (get_call_reg_set_usage): Likewise.
6404 * ira-build.c (ira_create_object, remove_low_level_allocnos)
6405 (ira_flattening): Likewise.
6406 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
6407 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
6408 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
6409 (ira_reassign_pseudos): Likewise.
6410 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6411 (ira_build_conflicts): Likewise.
6412 * ira-costs.c (restrict_cost_classes): Likewise.
6413 (setup_regno_cost_classes_by_aclass): Likewise.
6414 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
6415 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
6416 (setup_stack_reg_pressure_class, setup_pressure_classes)
6417 (setup_allocno_and_important_classes, setup_class_translate_array)
6418 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
6419 (ira_setup_eliminable_regset): Likewise.
6420 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6421 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6422 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
6423 (process_alt_operands, inherit_in_ebb): Likewise.
6424 * lra-lives.c (process_bb_lives): Likewise.
6425 * lra-spills.c (assign_spill_hard_regs): Likewise.
6426 * lra.c (lra): Likewise.
6427 * mode-switching.c (new_seginfo): Likewise.
6428 * postreload.c (reload_combine): Likewise.
6429 * reg-stack.c (straighten_stack): Likewise.
6430 * reginfo.c (save_register_info, restore_register_info): Likewise.
6431 (init_reg_sets_1, record_subregs_of_mode): Likewise
6432 * regrename.c (create_new_chain, rename_chains): Likewise.
6433 * reload1.c (order_regs_for_reload, find_reg): Likewise.
6434 (find_reload_regs): Likewise.
6435 * resource.c (find_dead_or_set_registers): Likewise.
6436 (mark_target_live_regs): Likewise.
6437 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6439 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6441 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
6442 (note_pattern_stores): Declare.
6443 (note_stores): Take an rtx_insn *.
6444 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
6445 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
6446 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
6447 (note_stores): Take an rtx_insn * as argument and process
6448 CALL_INSN_FUNCTION_USAGE. Rename old function to...
6449 (note_pattern_stores): ...this.
6450 (find_first_parameter_load): Pass the insn rather than
6451 its pattern to note_stores.
6452 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
6453 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
6454 (insert_one_insn): Likewise.
6455 * combine.c (combine_instructions): Likewise.
6456 (likely_spilled_retval_p): Likewise.
6457 (try_combine): Use note_pattern_stores instead of note_stores.
6458 (record_dead_and_set_regs): Pass the insn rather than its pattern
6460 (reg_dead_at_p): Likewise.
6461 * config/bfin/bfin.c (workaround_speculation): Likewise.
6462 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
6464 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
6465 instead of note_stores.
6466 (frv_optimize_membar_local): Pass the insn rather than its pattern
6468 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6469 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
6470 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
6471 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
6472 (mips_reorg_process_insns): Likewise.
6473 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
6474 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
6476 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
6477 its pattern to note_stores.
6478 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
6480 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
6481 the insn to note_stores.
6482 (prescan_insns_for_dce): Update call accordingly.
6483 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
6485 * df-problems.c (can_move_insns_across): Likewise.
6486 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
6487 * function.c (assign_parm_setup_reg): Likewise.
6488 * gcse-common.c (record_last_mem_set_info_common): Likewise.
6489 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
6490 (single_set_gcse): Likewise.
6491 * ira.c (validate_equiv_mem): Likewise.
6492 (update_equiv_regs): Use note_pattern_stores rather than note_stores
6494 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
6495 pattern to note_stores.
6496 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6497 * loop-iv.c (simplify_using_initial_values): Likewise.
6498 * mode-switching.c (optimize_mode_switching): Likewise.
6499 * optabs.c (emit_libcall_block_1): Likewise.
6500 (expand_atomic_compare_and_swap): Likewise.
6501 * postreload-gcse.c (load_killed_in_block_p): Likewise.
6502 (record_opr_changes): Likewise. Remove explicit handling of
6503 CALL_INSN_FUNCTION_USAGE.
6504 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
6505 * regcprop.c (kill_clobbered_values): Likewise.
6506 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
6508 * regrename.c (build_def_use): Likewise.
6509 * reload1.c (reload): Use note_pattern_stores instead of note_stores
6510 for mark_not_eliminable.
6511 (reload_as_needed): Pass the insn rather than its pattern
6513 (emit_output_reload_insns): Likewise.
6514 * resource.c (mark_target_live_regs): Likewise.
6515 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6516 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
6517 instead of note_stores.
6518 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
6519 its pattern to note_stores.
6520 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
6521 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
6523 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6525 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
6526 than a #define. Use a structure rather than an array as the
6527 fallback definition. Remove special cases for low array sizes.
6528 (const_hard_reg_set): New typedef.
6529 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
6530 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
6531 (hard_reg_set_empty_p): Likewise.
6532 (SET_HARD_REG_BIT): Use a function rather than a macro to
6533 handle the case in which HARD_REG_SET is a structure.
6534 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
6535 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
6536 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
6537 (IOR_COMPL_HARD_REG_SET): Likewise.
6538 (hard_reg_set_iterator::pset): Constify the pointer target.
6539 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
6540 of a "const HARD_REG_SET". Update the handling of non-integer
6542 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
6543 * reload.h: Likewise.
6544 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
6545 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
6546 of a "const HARD_REG_SET".
6547 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
6548 (range_in_hard_reg_set_p): Likewise.
6549 * ira-costs.c (restrict_cost_classes): Likewise.
6550 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
6551 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6552 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
6553 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
6554 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
6555 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
6556 take an unsigned int and open-code the HARD_REG_SET operations.
6558 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6560 * Makefile.in (OBJS): Remove bt-load.o.
6561 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
6562 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
6563 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
6564 document that the option no longer does anything.
6565 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
6566 * target.def (branch_target_register_class): Delete.
6567 (branch_target_register_callee_saved): Likewise.
6568 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6569 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
6570 * doc/tm.texi: Regenerate.
6571 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
6572 (make_pass_branch_target_load_optimize2): Likewise.
6573 * passes.def (pass_branch_target_load_optimize1): Likewise.
6574 (pass_branch_target_load_optimize2): Likewise.
6575 * targhooks.h (default_branch_target_register_class): Likewise.
6576 * targhooks.c (default_branch_target_register_class): Likewise.
6577 * opt-suggestions.c (test_completion_valid_options): Remove
6578 -fbtr-bb-exclusive from the list of test options.
6579 * bt-load.c: Remove.
6581 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
6583 * match.pd: Add flag_unsafe_math_optimizations check
6584 before deciding on the widest type in a binary math operation.
6586 2019-09-09 Martin Liska <mliska@suse.cz>
6588 * config/i386/i386.opt: Update comment of removed
6589 options that are preserved only for backward
6592 2019-09-09 Jakub Jelinek <jakub@redhat.com>
6595 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
6599 * config/i386/avxintrin.h (__v32qs): New typedef.
6600 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
6603 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6605 * doc/invoke.texi (Option Summary): Cover eBPF.
6606 (eBPF Options): New section.
6607 * doc/extend.texi (BPF Built-in Functions): Likewise.
6608 (BPF Kernel Helpers): Likewise.
6610 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6612 * config.gcc: Support for bpf-*-* targets.
6613 * common/config/bpf/bpf-common.c: New file.
6614 * config/bpf/t-bpf: Likewise.
6615 * config/bpf/predicates.md: Likewise.
6616 * config/bpf/constraints.md: Likewise.
6617 * config/bpf/bpf.opt: Likewise.
6618 * config/bpf/bpf.md: Likewise.
6619 * config/bpf/bpf.h: Likewise.
6620 * config/bpf/bpf.c: Likewise.
6621 * config/bpf/bpf-protos.h: Likewise.
6622 * config/bpf/bpf-opts.h: Likewise.
6623 * config/bpf/bpf-helpers.h: Likewise.
6624 * config/bpf/bpf-helpers.def: Likewise.
6626 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6628 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6631 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6633 * opt-functions.awk (integer_range_info): Make sure values are in
6634 numeric context before operating with them.
6636 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
6638 * genemit.c (gen_split): Print the filename and line number where the
6639 splitter (or peephole2) was defined, to the dump file.
6641 2019-09-07 Jakub Jelinek <jakub@redhat.com>
6643 PR tree-optimization/91665
6644 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
6645 incompatible with the type of PHI result.
6647 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
6650 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
6651 gen_unaligned_storedi for 4-byte aligned addresses.
6653 2019-09-06 Jim Wilson <jimw@sifive.com>
6655 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
6658 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
6660 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
6662 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
6664 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
6665 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
6667 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
6670 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
6671 cost of SSE->integer and integer->SSE moves from 2 to 6.
6674 2019-09-06 Jakub Jelinek <jakub@redhat.com>
6676 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
6677 before testing TYPE_TRANSPARENT_AGGR.
6678 * calls.c (initialize_argument_information, load_register_parameters):
6681 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
6683 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
6685 (cmp_ior): Likewise.
6687 2019-09-06 Martin Liska <mliska@suse.cz>
6689 * doc/match-and-simplify.texi: Separate tuples with ;.
6691 2019-09-06 Martin Liska <mliska@suse.cz>
6694 * Makefile.in: Remove tlink.o.
6695 * collect2.c (do_link): New function isolated
6698 * collect2.h (do_tlink): Remove declaration of do_tlink.
6699 * doc/extend.texi: Remove documentation of -frepo.
6700 * doc/invoke.texi: Likewise.
6701 * doc/sourcebuild.texi: Remove cleanup-repo-files.
6704 2019-09-05 Jakub Jelinek <jakub@redhat.com>
6705 Jim Wilson <jimw@sifive.com>
6708 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
6709 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
6710 paradoxical_subreg_p (operands[0]).
6711 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
6712 use as intermediate value.
6714 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
6716 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
6717 (sync_compare_and_swap<mode>_insn): Likewise.
6719 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6722 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
6723 without movmisalign optab.
6725 2019-09-05 Jakub Jelinek <jakub@redhat.com>
6730 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
6731 types, use type of their first field instead of type of
6734 2019-09-05 Richard Biener <rguenther@suse.de>
6736 PR rtl-optimization/91656
6737 * postreload-gcse.c (record_last_mem_set_info): Revert addition
6740 2019-09-05 Richard Biener <rguenther@suse.de>
6743 * tree-inline.c (declare_return_variable): Mark the return
6744 slot as addressable after building an address of it.
6746 2019-09-05 Arnaud Charlet <charlet@adacore.com>
6748 * doc/install.texi: Update and clarify requirements to build GNAT.
6750 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
6753 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
6754 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
6755 call to be in memory.
6756 (pass_expand::execute): Call discover_nonconstant_array_refs before
6757 setting currently_expanding_to_rtl.
6759 2019-09-04 Caroline Tice <cmtice@google.com>
6761 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
6764 2019-09-04 Marek Polacek <polacek@redhat.com>
6766 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
6768 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
6771 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6772 for QI and HImode moves between SSE and general registers.
6774 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6777 * doc/invoke.texi: Document -Wenum-conversion.
6779 2019-09-04 Richard Biener <rguenther@suse.de>
6781 PR rtl-optimization/36262
6782 * postreload-gcse.c: Include intl.h and gcse.h.
6783 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
6784 to avoid linear list walk.
6785 (record_last_mem_set_info): Gate off if not computing transparentness.
6786 (get_bb_avail_insn): If transparentness isn't computed give up
6788 (gcse_after_reload_main): Skip compute_transp and extended PRE
6789 if gcse_or_cprop_is_too_expensive says so.
6791 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6793 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
6795 (msp430_select_section): Handle decls with the "noinit" attribute with
6796 default_elf_select_section.
6797 Handle SECCAT_RODATA_MERGE_* section types with
6798 default_elf_select_section.
6799 Add comments about handling of unsupported section types.
6800 (msp430_section_type_flags): Remove handling of the noinit section.
6802 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6804 * config/msp430/msp430.c (msp430_attr): Remove warnings about
6805 conflicting msp430-specific attributes.
6806 (msp430_section_attr): Likewise.
6807 Add warnings about conflicts with generic "noinit" and "section"
6809 Fix grammar in -mlarge error message.
6810 (msp430_data_attr): Rename to msp430_persist_attr.
6811 Add warnings about conflicts with generic "noinit" and "section"
6813 Add warning for when variable is not initialized.
6814 Chain conditionals which prevent the attribute being added.
6815 (ATTR_EXCL): New helper.
6816 (attr_reent_exclusions): New exclusion table.
6817 (attr_naked_exclusions): Likewise.
6818 (attr_crit_exclusions): Likewise.
6819 (attr_lower_exclusions): Likewise.
6820 (attr_upper_exclusions): Likewise.
6821 (attr_either_exclusions): Likewise.
6822 (attr_persist_exclusions): Likewise.
6823 (msp430_attribute_table): Update with exclusion rules.
6824 (msp430_output_aligned_decl_common): Don't output common symbol if decl
6827 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6829 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
6830 (msp430_handle_generic_attribute): New function.
6831 * doc/tm.texi: Regenerate.
6832 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
6833 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6834 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6835 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
6837 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
6839 PR tree-optimization/91504
6840 * match.pd: Add ((~a & b) ^a) --> (a | b).
6842 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6845 * config/i386/i386-expand.c (split_double_mode): If there is more than
6846 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
6847 already split matching MEM operand instead of calling adjust_address
6850 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
6852 * config.gcc: Obsolete spu target. Remove references to spu.
6853 * configure.ac: Remove references to spu.
6854 * configure: Regenerate.
6855 * config/spu/: Remove directory.
6856 * common/config/spu/: Remove directory.
6858 * doc/extend.texi: Remove references to spu.
6859 * doc/invoke.texi: Likewise.
6860 * doc/md.texi: Likewise.
6861 * doc/sourcebuild.texi: Likewise.
6863 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6868 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
6869 and SSA_NAME referring to CONSTANT_P correctly.
6871 2019-09-03 Richard Biener <rguenther@suse.de>
6873 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
6874 (vn_nary_op_insert): Likewise.
6875 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
6876 (vn_nary_op_lookup): Likewise.
6877 (vn_nary_op_insert): Likewise.
6879 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
6881 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
6882 (*op0, 1) instead of XEXP (*op1, 0).
6884 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6886 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
6887 (aarch64_fjcvtzs): New define_insn.
6888 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
6889 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
6891 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
6892 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
6893 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6894 __ARM_FEATURE_JCVT where appropriate.
6895 * config/aarch64/arm_acle.h (__jcvt): Define.
6897 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6899 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
6900 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
6901 (aarch64_<frintnzs_op><mode>): New define_insn.
6902 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
6903 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6904 __ARM_FEATURE_FRINT when appropriate.
6905 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
6906 frint32x, frint64z, frint64x.
6907 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6908 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6909 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6910 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6911 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6912 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6913 * config/aarch64/iterators.md (VSFDF): Define.
6914 (FRINTNZX): Likewise.
6915 (frintnzs_op): Likewise.
6917 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6919 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6920 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6922 * config/aarch64/aarch64-tune.md: Regenerated.
6923 * doc/invoke.texi: Document the new processors.
6925 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6927 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6931 (sve2-sm4): Likewise.
6933 (svesha3): Likewise.
6934 (svebitperm): Likewise.
6936 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6937 Richard Biener <rguenther@suse.de>
6939 PR tree-optimization/91597
6940 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6941 BIT_AND_EXPR optimization for pointers, even if both operand
6942 ranges don't include NULL, the result can be NULL.
6944 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6947 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6948 (non_mem_decl_p): ...this.
6949 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6950 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6951 unconditionally as before.
6953 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6956 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6957 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6958 * tree.def (LTGT_EXPR): Likewise.
6959 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6961 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6964 * fold-const.c (range_check_type): For enumeral and boolean
6965 type, pass 1 to type_for_size langhook instead of
6966 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6967 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6968 (build_range_check): Don't call unsigned_type_for for pointer types.
6969 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6970 range_check_type result.
6972 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6974 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6975 (replace_ref): Do not replace a chain of only two candidates which are
6976 valid memory references.
6978 2019-09-02 Martin Liska <mliska@suse.cz>
6980 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6981 Bail out when we'll end up with the same number of clusters as
6983 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6984 (jump_table_cluster::can_be_handled): Remove the guard
6985 as it's already handled in ::is_enabled. Allocate output
6986 after early bail out.
6988 2019-09-02 Martin Liska <mliska@suse.cz>
6990 PR gcov-profile/91601
6991 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6992 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6993 also negative edges.
6994 (circuit): Handle also negative edges as they can happen
6997 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
7000 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
7001 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
7002 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
7004 2019-09-01 Jakub Jelinek <jakub@redhat.com>
7007 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
7008 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
7009 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
7013 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
7014 GIMPLE_ASM TREE_LIST operands.
7016 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7018 * doc/generic.texi (Unary and Binary Expressions): Mark up
7019 an instance of TYPE_MIN.
7021 2019-08-31 Stafford Horne <shorne@gmail.com>
7023 * config/or1k/constraints.md (t): New constraint.
7024 * config/or1k/or1k.h (GOT_REGS): New register class.
7025 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
7027 2019-08-30 Jim Wilson <jimw@sifive.com>
7029 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
7030 and -fpic and -mplt then disable -msave-restore and warn.
7032 2019-08-30 Martin Sebor <msebor@redhat.com>
7035 * tree-ssa-strlen.c (handle_store): Use a fallback location if
7036 the statement doesn't have one.
7037 * gimple-pretty-print.c (percent_G_format): Same.
7040 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
7041 before using them to validate MEM_REF offset.
7043 2019-08-30 Marek Polacek <polacek@redhat.com>
7045 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
7047 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7049 * config/arm/arm.md (unaligned_loaddi,
7050 unaligned_storedi): New unspec insn patterns.
7051 * config/arm/neon.md (unaligned_storev8qi): Likewise.
7052 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
7053 and unaligned_storedi for 4-byte aligned memory.
7054 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
7055 4-byte aligned memory.
7057 2019-08-30 Martin Jambor <mjambor@suse.cz>
7059 tree-optimization/91579
7060 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
7061 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
7063 (arg_needs_copy_p): Removed.
7064 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
7066 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
7068 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
7070 * config/i386/i386-features.c
7071 (general_scalar_chain::compute_convert_gain):
7072 Correct cost for double-word shifts.
7073 (general_scalar_to_vector_candidate_p): Reject count operands
7074 greater or equal to mode bitsize.
7076 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
7078 * config/i386/i386.c (inline_secondary_memory_needed): Return true
7079 for moves between SSE and non-general registers and between
7080 mask and non-general registers.
7081 (ix86_register_move_cost): Remove stalled comment.
7083 2019-08-29 Richard Biener <rguenther@suse.de>
7085 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
7086 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
7088 2019-08-29 Richard Biener <rguenther@suse.de>
7091 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
7092 Do not emit scalar copies for debug-insns, instead replace
7093 their uses with the reg copy used in the chain or reset them
7094 if there is a reaching definition outside of the chain as well.
7096 2019-08-29 Jakub Jelinek <jakub@redhat.com>
7099 * config/i386/i386-expand.c (expand_vec_perm_movs,
7100 expand_vec_perm_blend, expand_vec_perm_vpermil,
7101 expand_vec_perm_pshufb, expand_vec_perm_1,
7102 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
7103 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
7104 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
7105 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
7106 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
7107 comments - replace ix86_expand_vec_perm_builtin_1 with
7108 ix86_expand_vec_perm_const_1.
7109 (expand_vec_perm2_vperm2f128_vblend): New function.
7110 (ix86_expand_vec_perm_const_1): New forward declaration. Call
7111 expand_vec_perm2_vperm2f128_vblend as last resort.
7112 (canonicalize_perm): Formatting fix.
7114 PR tree-optimization/91351
7115 * tree-cfg.c (generate_range_test): Use range_check_type instead of
7117 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
7118 range_check_type returns NULL.
7119 * tree-switch-conversion.c (switch_conversion::build_one_array):
7120 Use range_check_type instead of unsigned_type_for, don't perform
7121 linear opt if it returns NULL.
7122 (bit_test_cluster::find_bit_tests): Formatting fix.
7123 (bit_test_cluster::emit): Use range_check_type instead of
7125 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
7128 2019-08-29 Richard Biener <rguenther@suse.de>
7130 PR tree-optimization/91568
7131 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
7132 (vect_update_max_nunits): Add overload for poly_uint64.
7133 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
7134 (vect_build_slp_tree): Record max_nunits into the subtree
7135 and merge it upwards.
7136 (vect_print_slp_tree): Print max_nunits.
7138 2019-08-28 Marek Polacek <polacek@redhat.com>
7140 Implement P1152R4: Deprecating some uses of volatile.
7142 * doc/invoke.texi: Document -Wvolatile.
7144 2019-08-28 Marek Polacek <polacek@redhat.com>
7146 PR c++/91360 - Implement C++20 P1143R2: constinit.
7147 * doc/invoke.texi: Document -Wc++20-compat.
7149 2019-08-28 Martin Sebor <msebor@redhat.com>
7151 PR tree-optimization/91457
7152 * builtins.c (component_size): New function.
7153 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
7154 * builtins.h (compute_objsize): Add argument.
7155 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
7156 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
7157 (vrp_prop::check_mem_ref): Same.
7158 (vrp_prop::search_for_addr_array): Set no-warning bit.
7159 (check_array_bounds): Same.
7161 2019-08-28 Martin Sebor <msebor@redhat.com>
7164 * opts-common.c (option_enabled): Correct checking for language
7167 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
7169 * config/i386/i386.c (ix86_register_move_cost): Do not
7170 limit the cost of moves to/from XMM register to minimum 8.
7172 2019-08-28 Martin Jambor <mjambor@suse.cz>
7175 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
7176 checking assert a normal assert to test it really is redundant.
7177 * ipa-prop.c (compute_complex_assign_jump_func): Removed
7179 (update_jump_functions_after_inlining): Removed combining unary
7180 arithmetic operations with an ancestor jump function.
7181 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
7184 2019-08-28 Richard Biener <rguenther@suse.de>
7186 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
7189 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7190 Richard Biener <rguenther@suse.de>
7192 * expr.c (expand_assignment): Handle misaligned DECLs.
7193 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
7194 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
7196 (assign_parm_setup_stack): Allocate properly aligned stack slots.
7197 * varasm.c (build_constant_desc): Align constants of misaligned types.
7198 * config/arm/predicates.md (aligned_operand): New predicate.
7199 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
7200 aligned_operand to check restrictions on memory addresses.
7201 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
7202 * config/arm/vec-common.md (mov<VALL>): Likewise.
7204 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7207 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
7208 V_128 iterator instead of VI_128.
7210 2019-08-28 Martin Liska <mliska@suse.cz>
7212 PR tree-optimization/90970
7213 * builtins.c (check_access): Remove assignment to maxread
7214 as it hasn't been used since when it was introduced in r255755.
7216 2019-08-27 Martin Sebor <msebor@redhat.com>
7218 PR tree-optimization/91567
7219 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
7221 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
7224 2019-08-27 Jeff Law <law@redhat.com>
7226 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
7227 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
7229 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
7232 * config/i386/i386-features.c (convert_scalars_to_vector):
7233 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
7234 crtl->stack_realign_processed. Update crtl->drap_reg by calling
7235 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
7236 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
7238 2019-08-27 Richard Biener <rguenther@suse.de>
7240 * config/i386/i386-features.h
7241 (general_scalar_chain::~general_scalar_chain): Add.
7242 (general_scalar_chain::insns_conv): New bitmap.
7243 (general_scalar_chain::n_sse_to_integer): New.
7244 (general_scalar_chain::n_integer_to_sse): Likewise.
7245 (general_scalar_chain::make_vector_copies): Adjust signature.
7246 * config/i386/i386-features.c
7247 (general_scalar_chain::general_scalar_chain): Outline,
7248 initialize new members.
7249 (general_scalar_chain::~general_scalar_chain): New.
7250 (general_scalar_chain::mark_dual_mode_def): Record insns
7251 we need to insert conversions at and count them.
7252 (general_scalar_chain::compute_convert_gain): Account
7253 for conversion instructions at chain boundary.
7254 (general_scalar_chain::make_vector_copies): Generate a single
7255 copy for a def by a specific insn.
7256 (general_scalar_chain::convert_registers): First populate
7257 defs_map, then make copies at out-of chain insns.
7259 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
7261 * config/arm/arm.md (stack_protect_set_insn): Add security-related
7263 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
7265 2019-08-27 Martin Liska <mliska@suse.cz>
7267 * cgraph.c (cgraph_node::remove): Remove dead assignment before
7269 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
7270 Enclose in anonymous namespace.
7271 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
7272 hard_register initialization in braces.
7273 * tree-vrp.h (value_range_base::supports_type_p): Return false
7274 for function with boolean return type.
7276 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
7278 * config/i386/i386.c (emit_i387_cw_initialization)
7279 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
7281 2019-08-26 Martin Sebor <msebor@redhat.com>
7284 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
7285 (sprintf_dom_walker): Remove class.
7286 (get_int_range): Make argument const.
7287 (directive::fmtfunc, directive::set_precision): Same.
7288 (format_none): Same.
7289 (build_intmax_type_nodes): Same.
7290 (adjust_range_for_overflow): Same.
7291 (format_floating): Same.
7292 (format_character): Same.
7293 (format_string): Same.
7294 (format_plain): Same.
7295 (get_int_range): Cast away constness.
7296 (format_integer): Same.
7297 (get_string_length): Call get_range_strlen_dynamic. Handle
7298 null lendata.maxbound.
7299 (should_warn_p): Adjust argument scope qualifier.
7301 (format_directive): Same.
7302 (parse_directive): Same.
7303 (is_call_safe): Same.
7304 (try_substitute_return_value): Same.
7305 (sprintf_dom_walker::handle_printf_call): Rename...
7306 (handle_printf_call): ...to this. Initialize target to host charmap
7307 here instead of in pass_sprintf_length::execute.
7308 (struct call_info): Make global.
7309 (sprintf_dom_walker::compute_format_length): Make global.
7310 (sprintf_dom_walker::handle_gimple_call): Same.
7311 * passes.def (pass_sprintf_length): Replace with pass_strlen.
7312 * print-rtl.c (print_pattern): Reduce the number of spaces to
7313 avoid -Wformat-truncation.
7314 * tree-pass.h (make_pass_warn_printf): New function.
7315 * tree-ssa-strlen.c (strlen_optimize): New variable.
7316 (get_string_length): Add comments.
7317 (get_range_strlen_dynamic): New function.
7318 (check_and_optimize_call): New function.
7319 (handle_integral_assign): New function.
7320 (strlen_check_and_optimize_stmt): Factor code out into
7321 strlen_check_and_optimize_call and handle_integral_assign.
7322 (strlen_dom_walker::evrp): New member.
7323 (strlen_dom_walker::before_dom_children): Use evrp member.
7324 (strlen_dom_walker::after_dom_children): Use evrp member.
7325 (printf_strlen_execute): New function.
7326 (pass_strlen::gate): Update to handle printf calls.
7327 (dump_strlen_info): New function.
7328 (pass_data_warn_printf): New variable.
7329 (pass_warn_printf): New class.
7330 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
7331 (handle_printf_call): Same.
7332 * tree-vrp.c (value_range_base::type): Adjust assertion.
7333 * vr-values.c (vr_values::update_value_range): Use type of the first
7334 argument rather than the second.
7336 2019-08-26 Richard Biener <rguenther@suse.de>
7338 * config/i386/i386-features.c (general_remove_non_convertible_regs):
7340 (convert_scalars_to_vector): Do not call it.
7342 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
7343 Uros Bizjak <ubizjak@gmail.com>
7345 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
7346 CASE_MATHFN_FLOATN for roundeven.
7347 * config/i386/i386.c (ix86_i387_mode_needed): Add case
7349 (ix86_mode_needed): Likewise.
7350 (ix86_mode_after): Likewise.
7351 (ix86_mode_entry): Likewise.
7352 (ix86_mode_exit): Likewise.
7353 (ix86_emit_mode_set): Likewise.
7354 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
7355 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
7356 (ix86_entity): Add I387_ROUNDEVEN.
7357 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
7358 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
7359 (define_int_iterator): Likewise.
7360 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
7361 (define_constant): Define ROUND_ROUNDEVEN mode.
7362 (define_attr): Add roundeven mode for i387_cw.
7363 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
7364 * internal-fn.def (ROUNDEVEN): New builtin function.
7365 * optabs.def (roundeven_optab): New optab.
7367 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
7369 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
7371 * builtins.def: Added function definitions for roundeven function
7373 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
7374 function call. Adjust condition for floor, ceil, trunc and round.
7375 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
7376 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
7377 (integer_valued_real_call_p): Added case for roundeven function.
7378 * real.c (is_even): New function. Returns true if real number is even,
7379 otherwise returns false.
7380 (is_halfway_below): New function. Returns true if real number is
7381 halfway between two integers, else return false.
7382 (real_roundeven): New function. Round real number to nearest integer,
7383 rounding halfway cases towards even.
7384 * real.h (real_value): Added descriptive comments. Added function
7385 declaration for roundeven function.
7386 * doc/extend.texi (Other Builtins): List roundeven variants among
7387 functions which can be handled as builtins.
7389 2019-08-26 Richard Biener <rguenther@suse.de>
7393 * config/i386/i386-features.h (general_scalar_chain::defs_map):
7395 (general_scalar_chain::replace_with_subreg): Remove.
7396 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
7397 (general_scalar_chain::convert_reg): Adjust signature.
7398 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
7399 iterate over all defs of a reg.
7400 (general_scalar_chain::replace_with_subreg): Remove.
7401 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
7402 (general_scalar_chain::make_vector_copies): Populate defs_map,
7403 place copy only after defs that are used as vectors in the chain.
7404 (general_scalar_chain::convert_reg): Emit a copy for a specific
7405 def in a specific instruction.
7406 (general_scalar_chain::convert_op): All reg uses are converted here.
7407 (general_scalar_chain::convert_insn): Emit copies for scalar
7408 uses of defs here. Replace uses with the copies we created.
7409 Replace and convert the def. Adjust REG_DEAD notes, remove
7410 REG_EQUIV/EQUAL notes.
7411 (general_scalar_chain::convert_registers): Only handle copies
7412 into the chain here.
7414 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
7416 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
7418 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
7420 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
7421 Add nop_convert case.
7422 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
7423 Fold all statements if requested.
7424 * tree-ssa-propagate.h (class substitute_and_fold_engine):
7425 Allow to fold all statements.
7426 * tree-vrp.c (class vrp_folder):
7427 Let substitute_and_fold_engine fold all statements.
7429 2019-08-26 Richard Biener <rguenther@suse.de>
7431 PR tree-optimization/91526
7432 * passes.def: Note that after late FRE we do TODO_update_address_taken.
7433 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
7434 TODO_update_address_taken.
7436 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
7438 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
7441 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7443 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
7444 machine mode for unspec_volatile operand.
7446 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7448 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
7449 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
7450 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
7451 (prefer_neon_for_64bits): Remove.
7452 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
7453 (tune_params): Remove PREF_NEON_64_FALSE uses.
7454 (arm_option_override): Remove prefer_neon selection code.
7455 (arm_print_tune_info): Remove prefer_neon_for_64bits.
7456 * gcc/config/arm/arm-protos.h (tune_params): Remove
7457 prefer_neon_for_64bits.
7458 (prefer_neon_for_64bits): Remove.
7460 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
7463 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
7464 and issue any diagnostics needed before collecting the pre-PCH
7467 2019-08-23 Jakub Jelinek <jakub@redhat.com>
7470 * common.opt (fexcess-precision=): Add Optimization flag. Use
7471 flag_excess_precision variable instead of
7472 flag_excess_precision_cmdline.
7473 * flags.h (class target_flag_state): Remove x_flag_excess_precision
7475 (flag_excess_precision): Don't define.
7476 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
7477 flag_excess_precision_cmdline. Remove comment.
7478 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
7479 and x_flag_excess_precision instead of
7480 frontend_set_flag_excess_precision_cmdline and
7481 x_flag_excess_precision_cmdline.
7482 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
7483 x_flag_excess_precision_cmdline.
7484 * toplev.c (init_excess_precision): Remove.
7485 (lang_dependent_init_target): Don't call it.
7487 2019-08-23 Martin Liska <mliska@suse.cz>
7489 * lto-wrapper.c (run_gcc): When setting jobserver
7490 set also parallel to 1. This was done so before r273908.
7492 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
7494 * config/arm/arm-cpus.in (cortex-m35p): New entry.
7495 (cortex-a76ae): Likewise.
7496 (cortex-a77): Likewise
7497 * config/arm/arm-tables.opt: Regenerate.
7498 * config/arm/arm-tune.md: Likewise.
7499 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
7500 cortex-a77 CPU options.
7502 2019-08-23 Martin Liska <mliska@suse.cz>
7504 * profile.c (instrument_values): Do not set
7506 * tree-profile.c (gimple_gen_interval_profiler): Remove
7508 (gimple_gen_pow2_profiler): Likewise.
7509 (gimple_gen_topn_values_profiler): Likewise.
7510 (gimple_gen_ic_profiler): Likewise.
7511 (gimple_gen_time_profiler): Likewise.
7512 (gimple_gen_average_profiler): Likewise.
7513 (gimple_gen_ior_profiler): Likewise.
7514 * value-prof.c (dump_histogram_value): Use default
7515 in switch statement instead of HIST_TYPE_MAX.
7516 (stream_in_histogram_value): Likewise.
7517 (gimple_duplicate_stmt_histograms): Do not
7518 use NULL for implicitly set arguments.
7519 (gimple_divmod_values_to_profile): Do not use
7521 (gimple_indirect_call_to_profile): Likewise.
7522 (gimple_find_values_to_profile): Use implicit
7523 function call arguments.
7524 * value-prof.h (gimple_alloc_histogram_value):
7526 (gimple_gen_interval_profiler): Remove last argument.
7527 (gimple_gen_pow2_profiler): Likewise.
7528 (gimple_gen_topn_values_profiler): Likewise.
7529 (gimple_gen_ic_profiler): Likewise.
7530 (gimple_gen_time_profiler): Likewise.
7531 (gimple_gen_average_profiler): Likewise.
7532 (gimple_gen_ior_profiler): Likewise.
7534 2019-08-22 Martin Sebor <msebor@redhat.com>
7537 * builtins.c (c_strlen): Rename argument and introduce new local.
7538 Set no-warning bit on original argument.
7539 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
7540 Fold empty and zero constructors into empty strings.
7541 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
7542 for missing initializers.
7543 * tree.c (build_string_literal): Handle optional argument.
7544 * tree.h (build_string_literal): Add defaulted argument.
7545 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
7546 no-warning bit on original expression.
7548 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
7551 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
7552 and UNSPEC_DARN_RAW.
7553 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
7555 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
7556 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
7557 (darn): Use an unspec_volatile, and UNSPECV_DARN.
7559 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
7561 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
7562 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
7563 * config/rs6000/rs6000.md (unspec): ... here.
7564 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
7565 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
7566 cmpeqb, *cmpeqb_internal): Delete, move to...
7567 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
7568 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
7569 cmpeqb, *cmpeqb_internal): ... here.
7571 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7573 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
7574 intrinsics if __ARM_FP.
7575 Use __ARM_FEATURE_CRC32 ifdef guard.
7577 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7579 * config/arm/arm.md (neon_for_64bits): Remove.
7580 (avoid_neon_for_64bits): Remove.
7581 (arm_adddi3): Always split early.
7582 (arm_subdi3): Always split early.
7583 (negdi2): Remove Neon expansion.
7584 (split zero_extend): Split before reload.
7585 (split sign_extend): Split before reload.
7587 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7589 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
7590 (qhs_extenddi_cstr): Likewise.
7591 * config/arm/arm.md (ashldi3): Always expand early.
7592 (ashlsi3): Likewise.
7593 (ashrsi3): Likewise.
7594 (zero_extend<mode>di2): Remove Neon variants.
7595 (extend<mode>di2): Likewise.
7596 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
7597 (signed_shift_di3_neon): Likewise.
7598 (unsigned_shift_di3_neon): Likewise.
7599 (ashrdi3_neon_imm_noclobber): Likewise.
7600 (lshrdi3_neon_imm_noclobber): Likewise.
7601 (<shift>di3_neon): Likewise.
7602 (split extend): Remove DI extend split patterns.
7604 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7606 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
7607 (split not): Add DImode not splitter.
7608 (anddi3): Remove pattern.
7609 (anddi3_insn): Likewise.
7610 (anddi_zesidi_di): Likewise.
7611 (anddi_sesdi_di): Likewise.
7612 (anddi_notdi_di): Likewise.
7613 (anddi_notzesidi_di): Likewise.
7614 (anddi_notsesidi_di): Likewise.
7616 (iordi3_insn): Likewise.
7617 (iordi_zesidi_di): Likewise.
7618 (iordi_sesidi_di): Likewise.
7620 (xordi3_insn): Likewise.
7621 (xordi_sesidi_di): Likewise.
7622 (xordi_zesidi_di): Likewise.
7623 (one_cmpldi2): Likewise.
7624 (one_cmpldi2_insn): Likewise.
7625 * config/arm/constraints.md: Remove De, Df, Dg constraints.
7626 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
7628 (iwmmxt_xordi3): Likewise.
7629 (iwmmxt_anddi3): Likewise.
7630 * config/arm/neon.md (orndi3_neon): Remove pattern.
7631 (anddi_notdi_di): Likewise.
7632 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
7633 (arm_iordi_operand_neon): Likewise.
7634 (arm_xordi_operand_neon): Likewise.
7635 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
7636 (iordi_notzesidi_di): Likewise.
7637 (iordi_notdi_zesidi): Likewise.
7638 (iordi_notsesidi_di): Likewise.
7640 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
7642 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
7644 (iorsi3_compare0_scratch): Likewise.
7646 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
7648 * config/aarch64/aarch64-simd-builtins.def:
7651 * config/aarch64/aarch64-simd.md:
7652 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
7653 (aarch64_st1x4<VALLDIF:mode>): Likewise.
7654 (aarch64_ld1_x4_<mode>): Likewise.
7655 (aarch64_st1_x4_<mode>): Likewise.
7656 * config/aarch64/arm_neon.h:
7657 (vld1_s8_x4): New function.
7658 (vld1q_s8_x4): Likewise.
7659 (vld1_s16_x4): Likewise.
7660 (vld1q_s16_x4): Likewise.
7661 (vld1_s32_x4): Likewise.
7662 (vld1q_s32_x4): Likewise.
7663 (vld1_u8_x4): Likewise.
7664 (vld1q_u8_x4): Likewise.
7665 (vld1_u16_x4): Likewise.
7666 (vld1q_u16_x4): Likewise.
7667 (vld1_u32_x4): Likewise.
7668 (vld1q_u32_x4): Likewise.
7669 (vld1_f16_x4): Likewise.
7670 (vld1q_f16_x4): Likewise.
7671 (vld1_f32_x4): Likewise.
7672 (vld1q_f32_x4): Likewise.
7673 (vld1_p8_x4): Likewise.
7674 (vld1q_p8_x4): Likewise.
7675 (vld1_p16_x4): Likewise.
7676 (vld1q_p16_x4): Likewise.
7677 (vld1_s64_x4): Likewise.
7678 (vld1_u64_x4): Likewise.
7679 (vld1_p64_x4): Likewise.
7680 (vld1q_s64_x4): Likewise.
7681 (vld1q_u64_x4): Likewise.
7682 (vld1q_p64_x4): Likewise.
7683 (vld1_f64_x4): Likewise.
7684 (vld1q_f64_x4): Likewise.
7685 (vst1_s8_x4): Likewise.
7686 (vst1q_s8_x4): Likewise.
7687 (vst1_s16_x4): Likewise.
7688 (vst1q_s16_x4): Likewise.
7689 (vst1_s32_x4): Likewise.
7690 (vst1q_s32_x4): Likewise.
7691 (vst1_u8_x4): Likewise.
7692 (vst1q_u8_x4): Likewise.
7693 (vst1_u16_x4): Likewise.
7694 (vst1q_u16_x4): Likewise.
7695 (vst1_u32_x4): Likewise.
7696 (vst1q_u32_x4): Likewise.
7697 (vst1_f16_x4): Likewise.
7698 (vst1q_f16_x4): Likewise.
7699 (vst1_f32_x4): Likewise.
7700 (vst1q_f32_x4): Likewise.
7701 (vst1_p8_x4): Likewise.
7702 (vst1q_p8_x4): Likewise.
7703 (vst1_p16_x4): Likewise.
7704 (vst1q_p16_x4): Likewise.
7705 (vst1_s64_x4): Likewise.
7706 (vst1_u64_x4): Likewise.
7707 (vst1_p64_x4): Likewise.
7708 (vst1q_s64_x4): Likewise.
7709 (vst1q_u64_x4): Likewise.
7710 (vst1q_p64_x4): Likewise.
7711 (vst1_f64_x4): Likewise.
7712 (vst1q_f64_x4): Likewise.
7714 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7716 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
7718 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7719 Richard Sandiford <richard.sandiford@arm.com>
7722 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
7723 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
7725 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7728 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
7729 in reg if it fails aarch64_plus_operand predicate.
7731 2019-08-21 Richard Biener <rguenther@suse.de>
7733 PR tree-optimization/91482
7734 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
7735 BUILT_IN_ASSUME_ALIGNED calls.
7737 2019-08-21 Richard Biener <rguenther@suse.de>
7741 * config/i386/i386-features.c
7742 (general_scalar_chain::make_vector_copies): Copy stack temporary
7743 rtx when using it multiple times.
7744 (general_scalar_chain::convert_reg): Likewise.
7746 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7748 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
7750 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
7752 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
7753 catch more redundant zero initialization cases.
7754 (dse_dom_walker::dse_optimize_stmt): Likewise.
7756 2019-08-20 Richard Biener <rguenther@suse.de>
7759 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
7760 by collect2 when targetm.have_ctors_dtors which avoids dragging
7761 in temporary filenames from LTO input objects.
7763 2019-08-20 Richard Biener <rguenther@suse.de>
7765 PR tree-optimization/37242
7766 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
7767 to (T)a + (T)b if we know that a + b does not overflow.
7769 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
7771 PR rtl-optimization/91347
7772 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
7773 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
7775 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7777 * calls.h (function_arg_info): Add a pass_by_reference field,
7778 defaulting to false.
7779 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
7780 when applying pass-by-reference semantics.
7781 (initialize_argument_information): Likewise.
7782 (emit_library_call_value_1): Likewise.
7783 * function.c (assign_parm_data_one): Remove passed_pointer field.
7784 (assign_parm_find_data_types): Don't set it.
7785 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
7786 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
7787 arg.pass_by_reference instead of passed_pointer.
7789 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7791 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
7792 into a single function_arg_info, updating its fields when we
7793 apply pass-by-reference and promotion semantics. Use the
7794 function_arg_info to track the mode rather than keeping it in
7795 a separate local variable.
7796 (initialize_argument_information): Likewise. Base the final
7797 arg_to_skip on this new function_arg_info rather than creating
7798 a new one from scratch.
7800 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7802 * function.c (assign_parm_data_one): Replace passed_type,
7803 promoted_mode and named_arg with a function_arg_info field.
7804 (assign_parm_find_data_types): Remove local variables and
7805 assign directly to "data". Make data->passed_mode shadow
7806 data->arg.mode until promotion, then assign the promoted
7807 mode to data->arg.mode.
7808 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
7809 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
7810 (assign_parm_remove_parallels, assign_parm_setup_block_p)
7811 (assign_parm_setup_block, assign_parm_setup_reg)
7812 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
7813 arg.mode instead of promoted_mode, arg.type instead of passed_type
7814 and arg.named instead of named_arg. Use data->arg for
7815 function_arg_info structures that had the field values passed_type,
7816 promoted_mode and named_arg. Base other function_arg_infos on
7817 data->arg, changing the necessary properties.
7819 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7821 * calls.h (apply_pass_by_reference_rules): Declare.
7822 * calls.c (apply_pass_by_reference_rules): New function.
7823 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
7824 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
7825 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7826 * function.c (assign_parm_find_data_types): Likewise.
7827 * var-tracking.c (prepare_call_arguments): Likewise.
7829 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7831 * target.def (must_pass_in_stack): Take a function_arg_info instead
7832 of a mode and a type.
7833 * doc/tm.texi: Regenerate.
7834 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
7835 instead of a mode and a type.
7836 (must_pass_in_stack_var_size_or_pad): Likewise.
7837 * calls.c (must_pass_in_stack_var_size): Likewise.
7838 (must_pass_in_stack_var_size_or_pad): Likewise.
7839 (initialize_argument_information): Update call to
7840 targetm.calls.must_pass_in_stack.
7841 (must_pass_va_arg_on_stack): Likewise.
7842 * function.c (assign_parm_find_entry_rtl): Likewise.
7843 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
7844 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7845 (alpha_function_arg_advance): Likewise.
7846 * config/cr16/cr16.c (cr16_function_arg): Likewise.
7847 (cr16_function_arg_advance): Likewise.
7848 * config/cris/cris.c (cris_pass_by_reference): Likewise.
7849 (cris_arg_partial_bytes): Likewise.
7850 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7851 * config/lm32/lm32.c (lm32_function_arg): Likewise.
7852 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
7853 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
7854 * config/mips/mips.c (mips_pass_by_reference): Likewise.
7855 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
7856 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
7857 * config/sh/sh.c (sh_pass_by_reference): Likewise.
7858 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7859 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7860 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
7861 instead of a mode and a type.
7862 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
7863 (fr30_num_arg_regs): Likewise.
7864 (fr30_setup_incoming_varargs): Update calls accordingly.
7865 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7866 (fr30_function_arg_advance): Likewise.
7867 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
7868 instead of a mode and a type.
7869 * config/gcn/gcn.c (num_arg_regs): Likewise.
7870 (gcn_function_arg, gcn_function_arg_advance): Update calls to
7871 num_arg_regs and targetm.calls.must_pass_in_stack.
7872 (gcn_arg_partial_bytes): Likewise.
7873 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
7874 function_arg_info instead of a mode and a type.
7875 (classify_argument): Update call accordingly.
7876 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
7877 function_arg_info instead of a mode and a type.
7878 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
7880 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
7881 (rs6000_parm_needs_stack): Update call accordingly.
7882 (setup_incoming_varargs): Likewise.
7884 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7886 * target.def (callee_copies): Take a function_arg_info instead
7887 of a mode, type and named flag.
7888 * doc/tm.texi: Regenerate.
7889 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
7890 instead of a mode, type and named flag.
7891 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7892 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7893 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7894 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
7895 instead of a mode, type and named flag.
7896 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7897 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7898 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7899 * calls.h (reference_callee_copied): Take a function_arg_info
7900 instead of a mode, type and named flag.
7901 * calls.c (reference_callee_copied): Likewise.
7902 (initialize_argument_information): Update call accordingly.
7903 (emit_library_call_value_1): Likewise.
7904 * function.c (gimplify_parameters): Likewise.
7905 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
7906 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7907 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7908 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7909 (TARGET_CALLEE_COPIES): Define to
7910 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7911 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7912 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7913 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7914 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7915 instead of a mode, type and named flag.
7916 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7917 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7918 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7919 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7920 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7921 (TARGET_CALLEE_COPIES): Define to
7922 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7923 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7924 instead of a mode, type and named flag.
7925 * config/sh/sh.c (sh_callee_copies): Likewise.
7926 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7927 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7928 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7930 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7932 * target.def (function_arg_advance): Take a function_arg_info instead
7933 of a mode, type and named flag.
7934 * doc/tm.texi: Regenerate.
7935 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7936 instead of a mode, type and named flag.
7937 * targhooks.c (default_function_arg_advance): Likewise.
7938 * calls.c (initialize_argument_information): Update call to
7939 targetm.calls.function_arg_advance.
7940 (emit_library_call_value_1): Likewise.
7941 * dse.c (get_call_args): Likewise.
7942 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7943 * function.c (assign_parms, gimplify_parameters): Likewise.
7944 * var-tracking.c (prepare_call_arguments): Likewise.
7945 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7946 function_arg_info instead of a mode, type and named flag.
7947 (aarch64_setup_incoming_varargs): Update call accordingly.
7948 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7949 function_arg_info instead of a mode, type and named flag.
7950 (alpha_setup_incoming_varargs): Update call accordingly.
7951 * config/arc/arc.c (arc_function_arg_advance): Take a
7952 function_arg_info instead of a mode, type and named flag.
7953 (arc_setup_incoming_varargs): Update call accordingly.
7954 * config/arm/arm.c (arm_function_arg_advance): Take a
7955 function_arg_info instead of a mode, type and named flag.
7956 (cmse_func_args_or_return_in_stack): Update call accordingly.
7957 (arm_function_ok_for_sibcall): Likewise.
7958 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7959 * config/avr/avr.c (avr_function_arg_advance): Take a
7960 function_arg_info instead of a mode, type and named flag.
7961 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7962 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7963 (c6x_call_saved_register_used): Update call accordingly.
7964 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7965 function_arg_info instead of a mode, type and named flag.
7966 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7967 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7968 (csky_setup_incoming_varargs): Update call accordingly.
7969 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7970 function_arg_info instead of a mode, type and named flag.
7971 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7972 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7973 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7974 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7975 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7976 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7977 (ix86_setup_incoming_varargs): Update call accordingly.
7978 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7979 function_arg_info instead of a mode, type and named flag.
7980 (ia64_setup_incoming_varargs): Update call accordingly.
7981 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7982 function_arg_info instead of a mode, type and named flag.
7983 (iq2000_expand_prologue): Update call accordingly.
7984 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7985 function_arg_info instead of a mode, type and named flag.
7986 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7987 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7988 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7989 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7990 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7992 (microblaze_expand_prologue): Update call accordingly.
7993 * config/mips/mips.c (mips_function_arg_advance): Take a
7994 function_arg_info instead of a mode, type and named flag.
7995 (mips_setup_incoming_varargs): Update call accordingly.
7996 (mips_output_args_xfer): Likewise.
7997 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7998 function_arg_info instead of a mode, type and named flag.
7999 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
8000 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
8001 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
8002 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
8003 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
8004 (nios2_setup_incoming_varargs): Update call accordingly.
8005 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
8006 function_arg_info instead of a mode, type and named flag.
8007 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
8008 * config/pa/pa.c (pa_function_arg_advance): Likewise.
8009 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
8010 * config/pru/pru.c (pru_function_arg_advance): Likewise.
8011 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
8012 (riscv_setup_incoming_varargs): Update call accordingly.
8013 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
8014 function_arg_info instead of a mode, type and named flag.
8015 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
8017 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
8018 (rs6000_parm_needs_stack): Update call accordingly.
8019 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
8020 instead of a mode, type and named flag.
8021 * config/s390/s390.c (s390_function_arg_advance): Likewise.
8022 (s390_call_saved_register_used): Update call accordingly.
8023 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
8024 instead of a mode, type and named flag.
8025 (sh_output_mi_thunk): Update call accordingly.
8026 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
8027 function_arg_info instead of a mode, type and named flag.
8028 * config/spu/spu.c (spu_function_arg_advance): Likewise.
8029 (spu_setup_incoming_varargs): Update call accordingly.
8030 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
8031 function_arg_info instead of a mode, type and named flag.
8032 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
8033 (tilegx_setup_incoming_varargs): Update call accordingly.
8034 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
8035 function_arg_info instead of a mode, type and named flag.
8036 (tilegx_setup_incoming_varargs): Update call accordingly.
8037 * config/v850/v850.c (v850_function_arg_advance): Take a
8038 function_arg_info instead of a mode, type and named flag.
8039 * config/vax/vax.c (vax_function_arg_advance): Likewise.
8040 * config/visium/visium.c (visium_function_arg_advance): Likewise.
8041 (visium_setup_incoming_varargs): Update call accordingly.
8042 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
8043 function_arg_info instead of a mode, type and named flag.
8045 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8047 * target.def (function_arg, function_incoming_arg): Take a
8048 function_arg_info instead of a mode, tree and named flag.
8049 * doc/tm.texi: Regenerate.
8050 * targhooks.h (default_function_arg): Take a function_arg_info
8051 instead of a mode, tree and named flag.
8052 (default_function_incoming_arg): Likewise.
8053 * targhooks.c (default_function_arg): Likewise.
8054 (default_function_incoming_arg): Likewise.
8055 * calls.h (function_arg_info::end_marker_p): New function.
8056 (function_arg_info::end_marker): Likewise.
8057 * calls.c (prepare_call_address, initialize_argument_information)
8058 (expand_call, emit_library_call_value_1): Update calls to
8059 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
8060 * dse.c: Include calls.h.
8061 (get_call_args): Update call to targetm.calls.function_arg.
8062 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8063 * var-tracking.c (prepare_call_arguments): Likewise.
8064 * function.c (assign_parm_find_entry_rtl): Update call to
8065 targetm.calls.function_incoming_arg.
8066 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
8067 function_arg_info instead of a mode, tree and named flag.
8068 * config/alpha/alpha.c (alpha_function_arg): Likewise.
8069 * config/arc/arc.c (arc_function_arg): Likewise.
8070 * config/arm/arm.c (arm_function_arg): Likewise.
8071 (cmse_func_args_or_return_in_stack): Update call accordingly.
8072 (arm_function_ok_for_sibcall): Likewise.
8073 (cmse_nonsecure_call_clear_caller_saved): Likewise.
8074 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
8075 instead of a mode, tree and named flag.
8076 * config/bfin/bfin.c (bfin_function_arg): Likewise.
8077 * config/c6x/c6x.c (c6x_function_arg): Likewise.
8078 (c6x_call_saved_register_used): Update call accordingly.
8079 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
8080 instead of a mode, tree and named flag.
8081 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
8082 (cris_function_arg_1): Likewise.
8083 * config/csky/csky.c (csky_function_arg): Likewise.
8084 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
8085 * config/fr30/fr30.c (fr30_function_arg): Likewise.
8086 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
8087 (frv_function_arg_1): Likewise.
8088 * config/ft32/ft32.c (ft32_function_arg): Likewise.
8089 * config/gcn/gcn.c (gcn_function_arg): Likewise.
8090 * config/h8300/h8300.c (h8300_function_arg): Likewise.
8091 * config/i386/i386.c (ix86_function_arg): Likewise.
8092 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
8093 (ia64_function_arg_1): Likewise.
8094 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
8095 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
8097 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
8098 instead of a mode, tree and named flag.
8099 * config/m32c/m32c.c (m32c_function_arg): Likewise.
8100 * config/m32r/m32r.c (m32r_function_arg): Likewise.
8101 * config/m68k/m68k.c (m68k_function_arg): Likewise.
8102 * config/mcore/mcore.c (mcore_function_arg): Likewise.
8103 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
8104 (microblaze_expand_prologue): Update call accordingly.
8105 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
8106 instead of a mode, tree and named flag.
8107 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
8108 (mmix_function_arg_1): Likewise.
8109 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
8110 * config/moxie/moxie.c (moxie_function_arg): Likewise.
8111 * config/msp430/msp430.c (msp430_function_arg): Likewise.
8112 * config/nds32/nds32.c (nds32_function_arg): Likewise.
8113 * config/nios2/nios2.c (nios2_function_arg): Likewise.
8114 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
8115 (nvptx_function_incoming_arg): Likewise.
8116 * config/or1k/or1k.c (or1k_function_arg): Likewise.
8117 * config/pa/pa.c (pa_function_arg): Likewise.
8118 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8119 * config/pru/pru.c (pru_function_arg): Likewise.
8120 * config/riscv/riscv.c (riscv_function_arg): Likewise.
8121 * config/rl78/rl78.c (rl78_function_arg): Likewise.
8122 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
8123 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
8124 (rs6000_parm_needs_stack): Update call accordingly.
8125 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
8126 instead of a mode, tree and named flag.
8127 * config/s390/s390.c (s390_function_arg): Likewise.
8128 (s390_call_saved_register_used): Update call accordingly.
8129 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
8130 instead of a mode, tree and named flag.
8131 (sh_output_mi_thunk): Update call accordingly.
8132 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
8133 (sparc_function_incoming_arg): Take a function_arg_info instead of
8134 a mode, tree and named flag.
8135 * config/spu/spu.c (spu_function_arg): Likewise.
8136 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
8137 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
8138 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
8139 * config/v850/v850.c (v850_function_arg): Likewise.
8140 * config/vax/vax.c (vax_function_arg): Likewise.
8141 * config/visium/visium.c (visium_function_arg): Likewise.
8142 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
8143 (xtensa_function_incoming_arg): Likewise.
8145 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8147 * target.def (setup_incoming_varargs): Take a function_arg_info
8148 instead of a mode and tree.
8149 * doc/tm.texi: Regenerate.
8150 * targhooks.h (default_setup_incoming_varargs): Take a
8151 function_arg_info instead of a mode and tree.
8152 * targhooks.c (default_setup_incoming_varargs): Likewise.
8153 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
8154 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
8155 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8156 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
8157 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
8158 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8159 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
8160 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
8162 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8163 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8164 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
8165 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
8166 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8167 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8168 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8169 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8170 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8171 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8172 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8173 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8174 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
8175 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
8176 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
8177 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
8178 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
8179 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8180 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
8181 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
8182 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
8183 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8184 * function.c (assign_parms_setup_varargs): Update call to
8185 targetm.calls.setup_incoming_varargs.
8187 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8189 * target.def (pass_by_reference): Take a function_arg_info instead
8190 of a mode, type and named flag.
8191 * doc/tm.texi: Regenerate.
8192 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
8194 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
8195 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
8196 function_arg_info instead of a mode, type and named flag.
8197 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
8198 * calls.h (pass_by_reference): Take a function_arg_info instead of a
8199 mode, type and named flag.
8200 * calls.c (pass_by_reference): Likewise.
8201 (pass_va_arg_by_reference): Update call accordingly.
8202 (initialize_argument_information): Likewise.
8203 (emit_library_call_value_1): Likewise.
8204 * function.c (assign_parm_find_data_types): Likewise.
8205 * var-tracking.c (prepare_call_arguments): Likewise.
8206 * stor-layout.c: Include calls.h.
8207 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
8208 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
8209 function_arg_info instead of a mode, type and named flag.
8210 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
8211 * config/arc/arc.c (arc_pass_by_reference): Likewise.
8212 * config/arm/arm.c (arm_pass_by_reference): Likewise.
8213 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
8214 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
8215 (c6x_call_saved_register_used): Update call to pass_by_reference.
8216 * config/cris/cris.c (cris_pass_by_reference): Take a
8217 function_arg_info instead of a mode, type and named flag.
8218 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
8219 function_arg_info instead of a mode, type and named flag.
8220 (epiphany_arg_partial_bytes): Update call accordingly.
8221 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
8222 function_arg_info instead of a mode, type and named flag.
8223 (ft32_arg_partial_bytes): Update call accordingly.
8224 * config/i386/i386.c (ix86_pass_by_reference): Take a
8225 function_arg_info instead of a mode, type and named flag.
8226 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
8227 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
8228 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
8229 (m32r_return_in_memory): Update call accordingly.
8230 * config/mips/mips.c (mips_pass_by_reference): Take a
8231 function_arg_info instead of a mode, type and named flag.
8232 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
8233 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8234 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
8235 (moxie_arg_partial_bytes): Update call accordingly.
8236 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
8237 function_arg_info instead of a mode, type and named flag.
8238 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
8239 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
8240 * config/pa/pa.c (pa_pass_by_reference): Likewise.
8241 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
8242 (riscv_return_in_memory): Update call accordingly.
8243 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
8244 function_arg_info instead of a mode, type and named flag.
8245 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
8246 (rs6000_parm_needs_stack): Update call to pass_by_reference.
8247 * config/s390/s390.c (s390_pass_by_reference): Take a
8248 function_arg_info instead of a mode, type and named flag.
8249 (s390_call_saved_register_used): Update call accordingly.
8250 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
8251 instead of a mode, type and named flag.
8252 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
8253 * config/spu/spu.c (spu_pass_by_reference): Likewise.
8254 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
8255 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
8256 * config/v850/v850.c (v850_pass_by_reference): Likewise.
8257 * config/visium/visium.c (visium_pass_by_reference): Likewise.
8259 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8261 * target.def (arg_partial_bytes): Take a function_arg_info instead
8262 of a mode, type and named flag.
8263 * doc/tm.texi: Regenerate.
8264 * target.h (function_arg_info): Declare.
8265 * calls.h (function_arg_info): New class.
8266 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
8267 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
8268 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
8269 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
8270 * calls.c (initialize_argument_information): Update call to
8271 targetm.calls.partial_bytes.
8272 (emit_library_call_value_1): Likewise.
8273 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8274 * function.c (assign_parm_find_entry_rtl): Likewise.
8275 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
8276 function_arg_info instead of a mode, type and named flag.
8277 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
8278 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
8279 (cmse_func_args_or_return_in_stack): Update accordingly.
8280 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
8281 function_arg_info instead of a mode, type and named flag.
8282 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
8283 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
8284 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
8285 * config/fr30/fr30.c: Include calls.h.
8286 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
8287 type and named flag.
8288 * config/frv/frv.c: Include calls.h.
8289 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
8290 type and named flag.
8291 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
8292 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
8293 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
8294 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
8295 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
8296 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
8297 * config/microblaze/microblaze.c (function_arg_partial_bytes):
8299 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
8300 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
8301 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
8302 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
8303 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
8304 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
8305 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
8306 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
8307 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
8308 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
8309 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
8310 (rs6000_parm_needs_stack): Update call accordingly.
8311 * config/sh/sh.c (sh_arg_partial_bytes): Take a
8312 function_arg_info instead of a mode, type and named flag.
8313 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
8314 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
8316 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8318 * calls.h (must_pass_va_arg_in_stack): Declare.
8319 * calls.c (must_pass_va_arg_in_stack): New function.
8320 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
8321 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8322 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
8324 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8326 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8328 * calls.h (pass_va_arg_by_reference): Declare.
8329 * calls.c (pass_va_arg_by_reference): New function.
8330 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
8331 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
8332 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
8333 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8334 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8335 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
8336 (mips_gimplify_va_arg_expr): Likewise.
8337 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
8338 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8339 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
8340 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
8341 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8342 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
8343 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
8344 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
8345 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
8346 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8347 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8349 2019-08-20 Richard Biener <rguenther@suse.de>
8352 * config/i386/i386-features.c (general_scalar_chain::convert_op):
8353 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
8354 (convert_scalars_to_vector): Add timode_p parameter and use it
8355 to guard TImode-only operation.
8356 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
8357 (pass_stv::execute): Pass down timode_p.
8359 2019-08-20 Lili Cui <lili.cui@intel.com>
8361 * common/config/i386/i386-common.c
8362 (processor_names): Add tigerlake and cooperlake.
8363 (processor_alias_table): Add tigerlake and cooperlake.
8364 * config.gcc: Add -march=tigerlake and cooperlake.
8365 * config/i386/driver-i386.c
8366 (host_detect_local_cpu): Detect tigerlake and cooperlake.
8367 Add "has_avx" to classify processor.
8368 * config/i386/i386-builtins.c (processor_model) :
8369 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
8370 (arch_names_table): Add tigerlake and cooperlake.
8371 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
8372 and PROCESSOR_COOPERLAKE.
8373 * config/i386/i386-c.c
8374 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
8375 * config/i386/i386-options.c
8376 (m_TIGERLAKE) : Define.
8377 (m_COOPERLAKE) : Ditto.
8378 (m_CORE_AVX512): Ditto.
8379 (processor_cost_table): Add cascadelake.
8380 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
8381 * config/i386/i386.h
8382 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
8383 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
8384 (PTA_MOVDIRI): Ditto.
8385 (PTA_MOVDIR64B): Ditto.
8386 (PTA_COOPERLAKE) : Ditto.
8387 (PTA_TIGERLAKE) : Ditto.
8388 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
8389 * doc/extend.texi: Add tigerlake and cooperlake.
8390 * doc/invoke.texi: Add tigerlake and cooperlake.
8392 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
8394 * doc/install.texi (Specific, alpha): Remove note to use
8395 binutils 2.11.2 or later.
8397 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8400 * function.c (assign_parm_find_stack_rtl): Use larger alignment
8403 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
8405 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
8406 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
8407 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
8408 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
8409 * config/aarch64/constraints.md (Dt): New constraint
8410 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
8412 2019-08-19 Richard Biener <rguenther@suse.de>
8414 PR tree-optimization/91403
8415 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
8416 cases we can handle with tail-recursion...
8417 (follow_ssa_edge_expr): ... here. Do so.
8419 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
8422 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
8423 implemented for -fsanitize=kernel-address, and merge check logic
8424 with -fsanitize=address.
8426 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
8428 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
8429 for cpu and machine. Factor 64/32b builtins.
8431 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
8433 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
8434 gone, point to sourceforge.net.
8436 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
8438 * doc/ux.texi (User Experience Guidelines): Update reference.
8440 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
8442 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
8445 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
8447 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
8448 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
8450 2019-08-16 Martin Sebor <msebor@redhat.com>
8452 * tree.def (TYPE_SIZE): Clarify.
8453 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
8455 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
8457 PR tree-optimization/91109
8458 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
8459 * lra.c (lra): Use lra_need_for_scratch_reg_p.
8460 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
8462 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
8464 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
8465 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
8466 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
8467 (uavg<mode>3_ceil): New expander.
8468 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
8469 mode iterator when creating CONST1_RTX.
8470 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
8471 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
8472 mode iterator for const1_operand predicate.
8474 2019-08-16 Richard Biener <rguenther@suse.de>
8476 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
8477 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
8479 (follow_ssa_edge_in_condition_phi_branch): Likewise.
8480 (analyze_evolution_in_loop): Likewise.
8481 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
8482 (follow_ssa_edge_expr): ... here. Refactor code.
8484 2019-08-16 Richard Biener <rguenther@suse.de>
8487 * config/i386/i386-features.c
8488 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
8490 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8493 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
8494 only if subst_name matches curr_attr string.
8496 2019-08-16 Richard Biener <rguenther@suse.de>
8498 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
8499 stmt at gsi_p, instead replace it with a NOP removed later.
8500 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
8501 that became dead because of that.
8503 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
8505 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
8506 for which we can't represent a range.
8507 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
8509 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
8510 Set VR_UNDEFINED if type is not supported.
8511 * tree-ssanames.c (get_range_info): Pass type to set_varying.
8512 * tree-vrp.c (value_range_base::check): Assert that a varying has
8514 (value_range_base::equal_p): Early bail for undefines.
8515 (value_range_base::set_varying): Accept a type.
8516 (value_range::set_varying): Same.
8517 (value_range_base::type): VARYING can have a type, while UNDEFINE
8519 (value_range_base::dump): Print type for VARYING nodes.
8520 (value_range_base::set): Add type to VARYING.
8521 (extract_range_from_multiplicative_op): Pass type to set_varying.
8522 (extract_range_from_binary_expr): Same.
8523 (value_range_base::intersect_helper): Same.
8524 (value_range_base::union_helper): Same.
8525 (value_range_base::normalize_symbolics): Same.
8526 (determine_value_range_1): Same.
8527 * tree-vrp.h (class value_range_base): Add type to set_varying.
8528 Add prototype for dump(void).
8529 Add prototype for supports_type_p.
8530 (class value_range): Add type to set_varying.
8531 Add prototype for dump(void).
8532 * vr-values.c (set_value_range_to_truthvalue): Pass type to
8534 (vr_values::get_lattice_entry): Set varying even if propagation
8536 Pass type to set_varying.
8537 (vr_values::get_value_range): Remove vr_const_varying.
8538 Reallocate the lattice if needed.
8539 (vr_values::update_value_range): Pass type to set_varying.
8540 (vr_values::extract_range_for_var_from_comparison_expr): Same.
8541 (vr_values::extract_range_from_binary_expr): Same.
8542 (vr_values::extract_range_from_unary_expr): Same.
8543 (vr_values::extract_range_from_cond_expr): Same.
8544 (vr_values::check_for_binary_op_overflow): Same.
8545 (vr_values::extract_range_basic): Same.
8546 (vr_values::extract_range_from_assignment): Same.
8547 (vr_values::vr_values): Increase size of num_vr_values.
8548 (vr_values::extract_range_from_phi_node): Pass type to
8551 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
8554 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
8555 for costs of hard register moves.
8556 (ix86_register_move_cost): Likewise.
8557 * config/i386/i386.h (processor_costs): Move costs of hard
8558 register moves to hard_register. Add int_load, int_store,
8559 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
8560 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
8561 for costs of RTL expressions.
8562 * config/i386/x86-tune-costs.h: Move costs of hard register
8563 moves to hard_register. Duplicate int_load, int_store,
8564 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
8565 sse_load, sse_store for costs of RTL expressions.
8567 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8569 * target.def (setup_incoming_vararg_bounds): Remove.
8570 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
8571 * doc/tm.texi: Regenerate.
8572 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
8573 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
8574 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8575 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
8577 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8579 MSP430: Fix lines over 80 characters long in
8580 config/msp430/*.{c,h} files
8582 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
8583 specifier in string.
8584 (msp430_select_hwmult_lib): Split line more than 80 characters long.
8585 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
8586 redundant old comment.
8587 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
8588 Split line more than 80 characters long.
8589 * config/msp430/msp430.c (msp430_option_override): Likewise.
8590 (msp430_return_in_memory): Likewise.
8591 (msp430_gimplify_va_arg_expr): Likewise.
8592 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
8593 (msp430_legitimate_constant): Likewise.
8594 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
8595 (msp430_attr): Likewise.
8596 (msp430_data_attr): Likewise.
8597 (msp430_start_function): Likewise.
8598 (gen_prefix): Likewise.
8599 (msp430_init_sections): Likewise.
8600 (msp430_select_section): Likewise.
8601 (msp430_function_section): Likewise.
8602 (msp430_unique_section): Likewise.
8603 (msp430_output_aligned_decl_common): Likewise.
8604 (msp430_do_not_relax_short_jumps): Likewise.
8605 (msp430_init_builtins): Likewise.
8606 (msp430_expand_delay_cycles): Likewise.
8607 (msp430_expand_prologue): Likewise.
8608 (msp430_expand_epilogue): Likewise.
8609 (msp430_expand_helper): Likewise.
8610 (msp430_split_movsi): Likewise.
8611 (msp430_print_operand): Likewise.
8612 (msp430_return_addr_rtx): Likewise.
8613 (msp430x_extendhisi): Likewise.
8614 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
8615 (ASM_SPEC): Likewise.
8616 Remove very obvious comments.
8617 (LIB_SPEC): Split line more than 80 characters long.
8618 (EH_RETURN_HANDLER_RTX): Likewise.
8619 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8621 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8623 MSP430: Fix whitespace errors and incorrect indentation in
8624 config/msp430/*.{c,h} files
8626 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
8627 (msp430_select_hwmult_lib): Likewise.
8628 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
8629 (msp430_extract_mcu_data): Likewise.
8630 (struct t_msp430_mcu_data): Likewise.
8631 * config/msp430/msp430.c (struct machine_function): Remove whitespace
8632 before left square bracket.
8633 (msp430_option_override): Fix indentation.
8634 (msp430_hard_regno_nregs_with_padding): Likewise.
8635 (msp430_initial_elimination_offset): Likewise.
8636 (msp430_special_register_convention_p): Remove whitespace before left
8637 square bracket and after exclamation mark.
8638 (msp430_evaluate_arg): Likewise.
8639 (msp430_callee_copies): Fix indentation.
8640 (msp430_gimplify_va_arg_expr): Likewise.
8641 (msp430_function_arg_advance): Remove whitespace before left square
8643 (reg_ok_for_addr): Likewise.
8644 (msp430_preserve_reg_p): Likewise.
8645 (msp430_compute_frame_info): Likewise.
8646 (msp430_asm_output_addr_const_extra): Add space between function name
8647 and open parenthesis.
8648 (has_section_name): Fix indentation.
8649 (msp430_attr): Remove trailing whitespace.
8650 (msp430_section_attr): Likewise.
8651 (msp430_data_attr): Likewise.
8652 (struct msp430_attribute_table): Fix comment and whitespace.
8653 (msp430_start_function): Remove whitespace before left square bracket.
8654 Add space between function name and open parenthesis.
8655 (msp430_select_section): Remove trailing whitespace.
8656 (msp430_section_type_flags): Remove trailing whitespace.
8657 (msp430_unique_section): Remove space before closing parenthesis.
8658 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
8659 (msp430_builtins): Remove whitespace before left square bracket.
8660 (msp430_init_builtins): Fix indentation.
8661 (msp430_expand_prologue): Remove whitespace before left square bracket.
8662 Remove space before closing parenthesis.
8663 (msp430_expand_epilogue): Remove whitespace before left square bracket.
8664 (msp430_split_movsi): Remove space before closing parenthesis.
8665 (helper_function_name_mappings): Fix indentation.
8666 (msp430_use_f5_series_hwmult): Fix whitespace.
8667 (use_32bit_hwmult): Likewise.
8668 (msp430_no_hwmult): Likewise.
8669 (msp430_output_labelref): Remove whitespace before left square bracket.
8670 (msp430_print_operand_raw): Likewise.
8671 (msp430_print_operand_addr): Likewise.
8672 (msp430_print_operand): Add two spaces after '.' in comment.
8673 Fix trailing whitespace.
8674 (msp430x_extendhisi): Fix indentation.
8675 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
8677 (PC_REGNUM): Likewise.
8678 (STACK_POINTER_REGNUM): Likewise.
8679 (CC_REGNUM): Likewise.
8681 2019-08-15 Richard Biener <rguenther@suse.de>
8684 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
8686 (general_scalar_chain::make_vector_copies): Use it.
8688 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
8690 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
8692 2019-08-15 Martin Liska <mliska@suse.cz>
8694 * tree-ssa-dce.c (propagate_necessity): We can't reach now
8695 operators with no arguments.
8696 (eliminate_unnecessary_stmts): Likewise here.
8698 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
8700 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
8701 <case COMPARE>: Revert 2019-08-14 change.
8702 (convertible_comparison_p): Revert 2019-08-14 change. Return false
8703 for (TARGET_64BIT || mode != DImode).
8705 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
8707 * tree-vrp.c (value_range_base::set): Merge in code from
8708 value_range_base::set_and_canonicalize.
8709 Enforce canonicalization at set time.
8710 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
8711 (value_range_base::set_undefined): Inline call to set().
8712 (value_range_base::set_varying): Same.
8713 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
8714 (vrp_val_max): New argument handle_pointers.
8715 (vrp_val_min): Same.
8716 (ranges_from_anti_range): Same.
8717 (extract_range_into_wide_ints): Use tree argument instead of sign
8719 (extract_range_from_multiplicative_op): Take in tree type instead
8720 of precision and sign. Adapt function for canonicalized ranges.
8721 (extract_range_from_binary_expr): Pass type to
8722 extract_range_from_multiplicative_op.
8723 Adapt for canonicalized ranges.
8724 (extract_range_from_unary_expr): Same.
8725 (value_range_base::intersect_helper): Adjust for canonicalized
8727 (value_range_base::union_helper): Same.
8728 (value_range_base::normalize_symbolics): New.
8729 * tree-vrp.h (class value_range_base): Remove
8730 set_and_canonicalize.
8731 New prototype for normalize_symbolics.
8732 (class value_range): Remove set_and_canonicalize.
8733 (vrp_val_min): Adjust prototype.
8734 (vrp_val_max): Same.
8736 (vr_values::extract_range_for_var_from_comparison_expr): Call set
8737 instead of set_and_canonicalize.
8739 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8742 * tree-vect-stmts.c (vectorizable_call): Check that the function
8743 is a BUILT_IN_MD function before passing it to
8744 targetm.vectorize.builtin_md_vectorized_function.
8746 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8748 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
8749 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
8750 (aarch64_select_early_remat_modes): Use it.
8752 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8754 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
8755 16 for SVE predicates even if they are fixed-length.
8757 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8759 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
8760 operand order match the MOV /Z alias.
8762 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8764 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
8765 the vector pattern as an aarch64_svpattern argument. Update the
8766 overloaded caller accordingly.
8767 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
8768 (aarch64_output_sve_vector_inc_dec): Likewise.
8770 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8772 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
8773 multiplication case, try to compute VG * (lowest set bit) directly
8774 rather than always basing the multiplication on VG. Use
8775 expand_mult for the multiplication if we can.
8777 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8779 * config/aarch64/aarch64-protos.h
8780 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
8781 (aarch64_sve_inc_dec_immediate_p): Rename to...
8782 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8783 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
8784 (aarch64_output_sve_scalar_inc_dec): Declare.
8785 (aarch64_output_sve_inc_dec_immediate): Rename to...
8786 (aarch64_output_sve_vector_inc_dec): ...this.
8787 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
8788 (aarch64_output_sve_scalar_inc_dec): New functions.
8789 (aarch64_output_sve_addvl_addpl): Remove the base and offset
8790 arguments. Only handle true ADDVL and ADDPL instructions;
8791 don't emit an INC or DEC.
8792 (aarch64_sve_inc_dec_immediate_p): Rename to...
8793 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8794 (aarch64_output_sve_inc_dec_immediate): Rename to...
8795 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
8796 aarch64_sve_vector_inc_dec_immediate_p.
8797 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
8798 (aarch64_sve_plus_immediate): New predicates.
8799 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
8800 rather than aarch64_sve_addvl_addpl_immediate.
8801 (aarch64_sve_inc_dec_immediate): Rename to...
8802 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
8803 aarch64_sve_vector_inc_dec_immediate_p.
8804 (aarch64_sve_add_operand): Update accordingly.
8805 * config/aarch64/constraints.md (Uai): New constraint.
8806 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
8807 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
8808 operand into a register if it satisfies aarch64_sve_plus_immediate.
8809 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
8810 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
8811 * config/aarch64/aarch64-sve.md (add<mode>3): Call
8812 aarch64_output_sve_vector_inc_dec instead of
8813 aarch64_output_sve_inc_dec_immediate.
8815 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8817 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
8818 (UNSPEC_REVW): New constants.
8819 (elem_bits): New mode attribute.
8820 (SVE_INT_UNARY): New int iterator.
8821 (optab): Handle UNSPEC_REV[BHW].
8822 (sve_int_op): New int attribute.
8823 (min_elem_bits): Handle VNx16QI and the predicate modes.
8824 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
8825 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
8826 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
8827 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
8828 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
8829 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
8830 unspecs based on the total width of the reversed data.
8831 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
8832 reinterpret followed by a subreg on big-endian targets.
8834 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8835 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8837 * config/aarch64/aarch64-sve.md
8838 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
8839 alternatives in which one of the inputs is in the same register
8842 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8844 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
8845 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
8847 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8849 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
8850 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
8852 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8853 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8855 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
8856 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
8857 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
8859 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8860 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8862 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
8863 Add an alternative that uses reversed shifts.
8865 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8867 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
8870 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8872 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
8873 a commutativity marker.
8875 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8876 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8878 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
8879 (aarch64_prepare_sve_cond_int_fma): Declare.
8880 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
8881 (aarch64_prepare_sve_int_fma): New functions.
8882 (aarch64_prepare_sve_cond_int_fma): Likewise.
8883 * config/aarch64/aarch64-sve.md
8884 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
8885 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
8886 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
8887 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
8888 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
8889 (*madd<mode>): Rename to...
8890 (*fma<mode>4): ...this.
8891 (*msub<mode>): Rename to...
8892 (*fnma<mode>4): ...this.
8894 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8895 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8897 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
8898 Print 2.0 naturally.
8899 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
8900 * config/aarch64/predicates.md
8901 (aarch64_sve_float_negated_arith_immediate): New predicate,
8902 renamed from aarch64_sve_float_arith_with_sub_immediate.
8903 (aarch64_sve_float_arith_with_sub_immediate): Test for both
8904 positive and negative constants.
8905 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
8906 or an aarch64_sve_float_arith_with_sub_immediate.
8907 * config/aarch64/constraints.md (vsN): Use
8908 aarch64_sve_float_negated_arith_immediate.
8909 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8911 (sve_pred_fp_rhs2_immediate): New int attribute.
8912 * config/aarch64/aarch64-sve.md
8913 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8914 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8915 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8916 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8917 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8918 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8920 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8921 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8923 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8924 (*aarch64_cond_abd<SVE_F:mode>_3)
8925 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8927 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8928 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8930 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8931 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8933 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8934 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8936 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8937 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8938 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8939 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8941 * optabs.h (create_convert_operand_from): Expand comment.
8942 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8943 when mapping scalar rtxes to vector operands.
8944 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8945 ashiftrt and lshiftrt.
8946 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8947 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8948 (*cond_<optab><mode>_any_const): New patterns.
8950 2019-08-15 Martin Liska <mliska@suse.cz>
8953 * cgraph.c (cgraph_node::remove): When setting
8954 n->origin = NULL for all nested functions, reset
8957 2019-08-15 Martin Liska <mliska@suse.cz>
8959 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8962 2019-08-15 Martin Liska <mliska@suse.cz>
8965 * passes.c (order): Remove.
8966 (uid_hash_t): Likewise).
8967 (remove_cgraph_node_from_order): Remove from set
8968 of pointers (cgraph_node *).
8969 (insert_cgraph_node_to_order): New.
8970 (duplicate_cgraph_node_to_order): New.
8971 (do_per_function_toporder): Register all 3 cgraph hooks.
8972 Skip removed_nodes now as we know about all of them.
8974 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8976 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8977 <case E_V8QImode>: Use vector_set path for
8978 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8979 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8980 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8982 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8984 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8986 2019-08-14 Martin Sebor <msebor@redhat.com>
8988 PR tree-optimization/91294
8989 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8990 source length as exact.
8992 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8994 * doc/extend.texi: Add "noinit" attribute documentation.
8995 * doc/sourcebuild.texi: Add noinit effective target documentation.
8996 * varasm.c (default_section_type_flags): Add support for "noinit"
8998 (default_elf_select_section): Add support for "noinit" attribute.
8999 * config/msp430/msp430.c (msp430_attribute_table): Remove
9002 2019-08-14 Richard Biener <rguenther@suse.de>
9003 Uroš Bizjak <ubizjak@gmail.com>
9006 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
9008 (scalar_chain::smode): New member.
9009 (scalar_chain::vmode): Likewise.
9010 (dimode_scalar_chain): Rename to...
9011 (general_scalar_chain): ... this.
9012 (general_scalar_chain::general_scalar_chain): Take mode arguments.
9013 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
9014 base with TImode and V1TImode.
9015 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
9016 (general_scalar_chain::vector_const_cost): Adjust for SImode
9018 (general_scalar_chain::compute_convert_gain): Likewise. Add
9019 {S,U}{MIN,MAX} support.
9020 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
9021 (general_scalar_chain::make_vector_copies): Likewise. Handle
9022 non-DImode chains appropriately.
9023 (general_scalar_chain::convert_reg): Likewise.
9024 (general_scalar_chain::convert_op): Likewise.
9025 (general_scalar_chain::convert_insn): Likewise. Add
9026 fatal_insn_not_found if the result is not recognized.
9027 (convertible_comparison_p): Pass in the scalar mode and use that.
9028 (general_scalar_to_vector_candidate_p): Likewise. Rename from
9029 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
9030 (scalar_to_vector_candidate_p): Remove by inlining into single
9032 (general_remove_non_convertible_regs): Rename from
9033 dimode_remove_non_convertible_regs.
9034 (remove_non_convertible_regs): Remove by inlining into single caller.
9035 (convert_scalars_to_vector): Handle SImode and DImode chains
9036 in addition to TImode chains.
9037 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
9038 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
9039 (*<maxmin>di3_doubleword): Likewise.
9041 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9042 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9044 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
9045 (*cond_bic<mode>_any): New patterns.
9047 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9049 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
9050 take the equivalent mask, as well as a bit count.
9051 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
9052 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
9053 (aarch64_sve_pred_and_operand): New predicates.
9054 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
9056 * config/aarch64/aarch64-sve.md
9057 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
9058 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
9060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9062 * config/aarch64/aarch64-sve.md
9063 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
9064 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
9067 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9068 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9070 * config/aarch64/aarch64-sve.md
9071 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
9072 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
9074 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9075 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9077 * config/aarch64/aarch64-sve.md
9078 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
9079 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
9081 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9083 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
9084 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
9087 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9088 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9090 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
9092 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9093 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9095 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
9096 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
9097 (aarch64_print_operand): Add support for %I.
9098 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
9099 Bitcast floating-point constants to the corresponding integer constant.
9100 (aarch64_float_const_representable_p): Handle vectors as well
9102 (aarch64_expand_sve_vcond): Make sure that the operands are valid
9103 for the new vcond_mask_<mode><vpred> expander.
9104 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
9105 test aarch64_float_const_representable_p.
9106 (aarch64_sve_reg_or_dup_imm): New predicate.
9107 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
9108 gen_vcond_mask_<mode><vpred> instead of
9109 gen_aarch64_sve_dup<mode>_const.
9110 (vcond_mask_<mode><vpred>): Turn into a define_expand that
9111 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
9112 for operands 1 and 2 respectively. Force operand 2 into a
9113 register if operand 1 is a register. Fold old define_insn...
9114 (aarch64_sve_dup<mode>_const): ...and this define_insn...
9115 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
9116 floating-point constants that can be moved as integers. Add
9117 alternatives for MOV /M and FMOV /M.
9118 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
9119 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
9120 1 and 2 respectively.
9121 * config/aarch64/constraints.md (Ufc): Handle vectors as well
9123 (vss): New constraint.
9125 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9127 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
9128 (aarch64_sve_float_maxmin_operand): New predicates.
9129 * config/aarch64/constraints.md (vsB): New constraint.
9131 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
9132 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
9134 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
9135 Use aarch64_sve_float_maxmin_operand for operand 2.
9136 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
9137 Add alternatives for the constant forms.
9139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9141 * config/aarch64/constraints.md (vsb): New constraint.
9142 (vsm): Generalize description.
9143 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
9145 (sve_imm_con): Handle smax, smin, umax and umin.
9146 (sve_imm_prefix): New code attribute.
9147 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
9148 (aarch64_sve_vsb_operand): New predicates.
9149 (aarch64_sve_mul_immediate): Rename to...
9150 (aarch64_sve_vsm_immediate): ...this.
9151 (aarch64_sve_mul_operand): Rename to...
9152 (aarch64_sve_vsm_operand): ...this.
9153 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
9154 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
9155 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
9156 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
9157 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
9158 add movprfx support for the immediate alternatives.
9159 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
9161 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
9164 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9166 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
9167 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
9168 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
9170 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9172 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
9173 (optab, sve_int_op): Handle them.
9174 * config/aarch64/aarch64-sve.md: Expand comment.
9176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9178 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
9179 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
9180 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
9182 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9184 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
9185 (aarch64_expand_sve_const_pred_trn): New functions.
9186 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
9187 use the above functions when the parameter is true.
9188 (aarch64_expand_sve_const_pred): Update call accordingly.
9189 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
9191 (@aarch64_sve_<perm_insn><mode>): ...this.
9193 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9195 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
9197 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
9198 (aarch64_sve_emit_int_cmp): New functions.
9199 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
9200 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
9201 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
9202 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
9203 (UNSPEC_PRED_Z): New unspec.
9204 (set_clobber_cc_nzc): Delete.
9205 * config/aarch64/aarch64-sve.md: Add a block comment about
9207 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
9208 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
9209 the old pattern with that name. Use UNSPEC_PRED_Z instead of
9211 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
9212 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
9213 check for compatible predicates.
9214 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
9215 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
9216 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
9219 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9221 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
9222 * config/aarch64/aarch64-sve.md: Add a section describing it.
9223 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
9224 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
9225 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
9226 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
9227 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
9228 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
9229 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
9230 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
9231 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
9232 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
9233 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
9234 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
9235 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
9236 (aarch64_evpc_rev_local): Update accordingly.
9238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9240 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
9242 (SVE_BHSI, SVE_SDI): Tweak comment.
9243 (SVE_HSDI): Likewise. Fix definition.
9244 (SVE_SDF): New mode iterator.
9245 (elem_bits): New mode attribute.
9246 (SVE_COND_FCVT): New int iterator.
9247 * config/aarch64/aarch64-sve.md
9248 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
9249 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
9250 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
9251 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
9252 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
9253 ...these new patterns.
9254 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
9255 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
9256 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
9258 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
9259 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
9260 ...these new patterns.
9261 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
9262 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
9263 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
9264 ...this new pattern.
9265 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
9266 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
9267 ...this new pattern.
9268 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
9270 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9272 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
9273 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
9274 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
9276 (optab, su): Handle them.
9277 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
9278 * config/aarch64/aarch64-sve.md
9279 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
9280 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
9281 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
9282 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
9283 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
9284 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
9285 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
9286 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
9287 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
9289 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
9290 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
9291 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
9292 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
9293 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
9294 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
9295 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
9296 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
9297 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
9298 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
9299 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
9300 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
9301 of UNSPEC_FLOAT_CONVERT.
9302 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
9303 aarch64_sve_extend<mode><Vwide>2.
9305 2019-08-14 Richard Biener <rguenther@suse.de>
9308 * config/i386/i386-features.c
9309 (dimode_scalar_chain::compute_convert_gain): Compute and dump
9310 individual instruction gain. Fix reg-reg copy GRP cost. Use
9311 ix86_cost->sse_op for vector instruction costs.
9313 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9315 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
9316 (cmp_op): Handle it.
9317 (SVE_COND_FP_CMP): Rename to...
9318 (SVE_COND_FP_CMP_I0): ...this.
9319 (SVE_FP_CMP): Remove.
9320 * config/aarch64/aarch64-sve.md
9321 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
9322 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
9323 using unspecs to represent the comparison.
9324 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
9325 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
9327 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
9328 (aarch64_unspec_cond_code): Move after integer code. Handle
9330 (aarch64_emit_sve_predicated_cond): Replace with...
9331 (aarch64_emit_sve_fp_cond): ...this new function.
9332 (aarch64_emit_sve_or_conds): Replace with...
9333 (aarch64_emit_sve_or_fp_conds): ...this new function.
9334 (aarch64_emit_sve_inverted_cond): Replace with...
9335 (aarch64_emit_sve_invert_fp_cond): ...this new function.
9336 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
9338 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9340 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
9341 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
9342 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
9343 SVE_HSD instead of SVE_SD.
9345 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9348 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
9350 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
9352 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
9353 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
9354 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
9355 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
9356 (*div<SVE_F:mode>3): Generalize to...
9357 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
9359 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9360 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9362 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
9364 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
9366 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
9368 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
9370 * config/aarch64/aarch64-sve.md: Add a block comment about the
9371 handling of predicated FP operations.
9372 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
9373 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
9374 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
9375 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
9376 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
9378 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
9379 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
9381 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
9382 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
9383 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
9384 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
9385 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
9386 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
9387 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9388 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
9389 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
9390 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
9391 strictness operands. Use aarch64_sve_pred_dominates_p to check
9392 whether the predicate on the conditional operation is suitable
9393 for merging. Split patterns into the canonical equal-predicate form.
9394 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
9395 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
9397 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9398 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9400 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
9401 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
9402 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
9404 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
9405 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
9408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9409 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9411 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
9412 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
9413 actually has, rather than relying on REG_EQUAL notes.
9414 Make the insn operand order match the SVE operand order.
9415 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
9416 the SVE operand order.
9418 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9420 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
9421 (aarch64_emit_set_immediate): Likewise.
9422 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
9423 (aarch64_pfalse_reg): Likewise.
9424 (aarch64_convert_sve_data_to_pred): New function.
9425 (aarch64_sve_move_pred_via_while): Take an optional target register
9426 and the required register mode.
9427 (aarch64_expand_sve_const_pred_1): New function.
9428 (aarch64_expand_sve_const_pred): Likewise.
9429 (aarch64_expand_mov_immediate): Build an all-true predicate
9430 if the significant bits of the immediate are all true. Use
9431 aarch64_expand_sve_const_pred for all compile-time predicate constants.
9432 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
9433 before register allocation.
9434 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
9435 a VNx16BI PTRUE when splitting the memory alternative.
9436 (vec_duplicate<mode>): Update accordingly.
9437 (*pred_cmp<cmp_op><mode>): Rename to...
9438 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
9440 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9442 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
9443 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
9444 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
9445 (UNSPEC_PTEST): New unspec.
9446 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
9447 * config/aarch64/iterators.md (data_bytes): New mode attribute.
9448 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
9449 * config/aarch64/aarch64-sve.md: Add a new section describing the
9450 handling of UNSPEC_PTEST.
9451 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
9452 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
9453 (ptest_ptrue<mode>): Replace with...
9454 (aarch64_ptest<mode>): ...this new pattern.
9455 (cbranch<mode>4): Update after above changes.
9456 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
9458 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
9459 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
9460 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
9462 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9465 * builtins.c (builtin_with_linkage_p): New function.
9466 * builtins.h (builtin_with_linkage_p): New function.
9467 * symtab.c (write_symbol): Remove redundant assert.
9468 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
9469 Remove FIXME and use builtin_with_linkage_p.
9471 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9474 * tree-core.h (function_decl::function_code): Change type to
9476 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
9477 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
9478 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
9479 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
9481 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
9482 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
9483 (fndecl_built_in_p): Change the type of the "name" argument to
9485 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
9486 after check for DECL_BUILT_IN_CLASS.
9487 * cgraphclones.c (build_function_decl_skip_args): Use
9488 set_decl_built_in_function.
9489 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
9490 * ipa-split.c (split_function): Likewise.
9491 * langhooks.c (add_builtin_function_common): Likewise.
9492 * omp-simd-clone.c (simd_clone_create): Likewise.
9493 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9494 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
9495 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
9497 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
9498 instead of DECL_FUNCTION_CODE.
9499 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
9500 instead of DECL_FUNCTION_CODE.
9501 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9502 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
9503 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
9504 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
9505 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
9506 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
9507 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
9508 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
9509 (alpha_gimple_fold_builtin): Likewise.
9510 * config/arc/arc.c (arc_expand_builtin): Likewise.
9511 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
9512 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
9513 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
9514 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
9515 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
9516 * config/frv/frv.c (frv_expand_builtin): Likewise.
9517 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
9518 (gcn_expand_builtin): Likewise.
9519 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
9520 (fold_builtin_cpu): Likewise.
9521 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
9522 * config/i386/i386.c (ix86_fold_builtin): Likewise.
9523 (ix86_gimple_fold_builtin): Likewise.
9524 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
9525 (ia64_expand_builtin): Likewise.
9526 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
9527 * config/mips/mips.c (mips_expand_builtin): Likewise.
9528 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
9529 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
9530 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
9531 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
9532 * config/pa/pa.c (pa_expand_builtin): Likewise.
9533 * config/pru/pru.c (pru_expand_builtin): Likewise.
9534 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
9535 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9537 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
9538 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
9539 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
9540 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
9541 (rs6000_builtin_reciprocal): Likewise.
9542 * config/rx/rx.c (rx_expand_builtin): Likewise.
9543 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
9544 * config/s390/s390.c (s390_expand_builtin): Likewise.
9545 * config/sh/sh.c (sh_expand_builtin): Likewise.
9546 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
9547 (sparc_fold_builtin): Likewise.
9548 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
9549 * config/spu/spu.c (spu_expand_builtin): Likewise.
9550 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
9551 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
9552 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
9553 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9554 (xtensa_expand_builtin): Likewise.
9556 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9559 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
9560 before the DECL_FUNCTION_CODE.
9561 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
9562 to check for a BUILT_IN_ALLOCA call.
9563 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
9564 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
9565 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
9566 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9567 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
9568 for BUILT_IN_NORMAL functions.
9569 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
9570 test for BUILT_IN_TM_ABORT.
9571 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
9572 to check for a BUILT_IN_STACK_RESTORE call.
9573 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
9574 * tree-ssa-threadedge.c
9575 (record_temporary_equivalences_from_stmts_at_dest): Check for a
9576 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
9577 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
9578 test for a BUILT_IN_NORMAL call instead of a negative test for
9579 an internal function call.
9581 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9583 * tree.h (build_vector_a_then_b): Declare.
9584 * tree.c (build_vector_a_then_b): New function.
9585 * fold-const-call.c (fold_while_ult): Likewise.
9586 (fold_const_call): Use it to handle IFN_WHILE_ULT.
9587 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
9588 (aarch64_svpattern): New enum.
9589 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
9590 constants through aarch64_expand_mov_immediate.
9591 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
9592 than general_operand as the predicate for operand 1.
9593 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
9594 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
9596 (simd_immediate_info::simd_immediate_info): New overload that
9597 takes a scalar_int_mode and an svpattern.
9598 (simd_immediate_info::u): Add a "pattern" field.
9599 (svpattern_token): New function.
9600 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
9601 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
9602 (aarch64_sve_move_pred_via_while): New functions.
9603 (aarch64_expand_mov_immediate): Try using
9604 aarch64_sve_move_pred_via_while for predicates that contain N ones
9605 followed by M zeros but that do not correspond to a VLnnn pattern.
9606 (aarch64_sve_pred_valid_immediate): New function.
9607 (aarch64_simd_valid_immediate): Use it instead of dealing directly
9608 with PTRUE and PFALSE.
9609 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
9612 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
9614 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
9616 (darwin_override_options): Likewise.
9617 * config/darwin.h: Likewise.
9618 * config/darwin.opt: Likewise.
9619 * config/i386/i386.c (output_pic_addr_const): Likewise.
9620 * config/rs6000/darwin.h: Likewise.
9621 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
9622 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
9623 ... this TARGET_MACHO_SYMBOL_STUBS.
9624 (FUNCTION_PROFILER):Likewise.
9625 * config/i386/i386.h: Likewise.
9627 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9629 * config/i386/i386-expand.c (ix86_expand_vector_extract)
9630 <case E_V2SImode>: Use vec_extr path for
9631 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9632 <case E_V8QImode>: Ditto.
9633 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
9634 Use SWI48 mode iterator. Use %k to output operand 0.
9635 (*mmx_pextrw): New insn pattern.
9636 (*mmx_pextrb): Ditto.
9637 (*mmx_pextrb_zext): Ditto.
9639 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
9641 * target.def (libc_has_function, libc_has_fast_function): Improve
9642 documentation strings.
9643 * doc/tm.texi: Regenerate.
9645 2019-08-13 Caroline Tice <cmtice@google.com>
9648 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
9649 vtv_end.o or vtv_end_preinit.o files if !static.
9651 2019-08-13 Olivier Hainque <hainque@adacore.com>
9653 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
9655 2019-08-13 Olivier Hainque <hainque@adacore.com>
9657 * rtlanal.c (tablejump_casesi_pattern): New function, to
9658 determine if a tablejump insn is a casesi dispatcher. Extracted
9659 from patch_jump_insn.
9660 * rtl.h (tablejump_casesi_pattern): Declare.
9661 * cfgrtl.c (patch_jump_insn): Use it.
9662 * dwarf2cfi.c (create_trace_edges): Use it.
9664 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
9667 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
9668 operand is larger than a long int.
9670 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9672 * machmode.h (opt_mode::else_mode): New function.
9673 (opt_mode::else_blk): Use it.
9674 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
9675 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
9676 (aarch64_gen_stepped_int_parallel): Likewise.
9677 (aarch64_stepped_int_parallel_p): Likewise.
9678 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
9680 * config/aarch64/aarch64.c
9681 (aarch64_expand_sve_widened_duplicate): Delete.
9682 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
9683 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
9684 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
9685 argument. Use early returns in the !CONST_INT_P handling.
9686 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
9687 than handling some inline.
9688 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
9690 (aarch64_simd_container_mode): ...here.
9691 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
9692 (aarch64_sve_ld1rq_operand_p): New functions.
9693 * config/aarch64/predicates.md (descending_int_parallel)
9694 (aarch64_sve_ld1rq_operand): New predicates.
9695 * config/aarch64/constraints.md (UtQ): New constraint.
9696 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
9697 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
9698 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
9699 (@aarch64_sve_reinterpret<mode>): New expander.
9700 (*aarch64_sve_reinterpret<mode>): New pattern.
9701 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
9702 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
9703 (*sve_ld1rq<Vesize>): Replace with...
9704 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
9706 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
9708 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
9711 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9713 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
9714 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
9715 (msp430_check_path_for_devices): New.
9716 (parse_devices_csv_1): New.
9717 (parse_devices_csv): New.
9718 (msp430_extract_mcu_data): Try to find devices.csv and search for the
9719 MCU data in devices.csv before using the hard-coded data.
9720 Warn if devices.csv isn't found and the MCU wasn't found in the
9721 hard-coded data either.
9722 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
9723 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
9724 Search for devices.csv on -I and -L paths.
9725 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
9726 msp430_set_driver_var.
9727 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
9729 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
9730 searched for devices.csv.
9731 (mwarn-devices-csv): Document option.
9733 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9735 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
9736 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
9737 Use a single Dn alternative instead of separate Dz and Dm
9738 alternatives. Use aarch64_output_sve_move_immediate.
9739 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
9741 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
9743 (aarch64_output_sve_mov_immediate): Handle predicate modes.
9744 (aarch64_output_ptrue): Delete.
9746 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9748 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
9750 (simd_immediate_info::value, simd_immediate_info::step)
9751 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
9753 (simd_immediate_info::u): ...this new union.
9754 (simd_immediate_info::simd_immediate_info): Update accordingly.
9755 (aarch64_output_simd_mov_immediate): Likewise.
9756 (aarch64_output_sve_mov_immediate): Likewise.
9758 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9760 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
9762 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
9763 (msp430_select_cpu): New spec function.
9764 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
9766 * config/msp430/msp430-devices.c: New file.
9767 * config/msp430/msp430-devices.h: New file.
9768 * config/msp430/msp430.c: Remove msp430_mcu_data.
9769 (msp430_option_override): Use msp430_extract_mcu_data to extract
9771 (msp430_use_f5_series_hwmult): Likewise.
9772 (use_32bit_hwmult): Likewise.
9773 (msp430_no_hwmult): Likewise.
9774 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
9776 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
9778 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
9779 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
9780 Remove hard-coded MCU multilib data.
9782 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9784 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
9785 based on the mode instead of testing properties of it.
9787 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9789 * doc/md.texi: Document the x and y constraints for AArch64.
9790 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
9791 (FP_LO8_REGS): New reg_class.
9792 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
9793 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
9794 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
9795 * config/aarch64/predicates.md (aarch64_simd_register): Use
9796 FP_REGNUM_P instead of checking the classes manually.
9797 * config/aarch64/constraints.md (y): New constraint.
9799 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9801 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
9802 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
9803 * config/aarch64/aarch64-simd.md
9804 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
9805 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
9806 from the asm template.
9807 * config/aarch64/aarch64-sve.md
9808 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
9809 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
9810 from the asm template.
9811 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
9812 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
9813 from the asm template.
9814 * config/aarch64/aarch64-simd-builtins.def: Update comment.
9816 2019-08-13 Martin Liska <mliska@suse.cz>
9818 * value-prof.c (gimple_ic_transform): Add new line.
9819 Print details with MSG_NOTE.
9821 2019-08-13 Martin Liska <mliska@suse.cz>
9823 * doc/invoke.texi: Document automatic detection of jobserver.
9824 * lto-wrapper.c (run_gcc): Detect jobserver always.
9826 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9828 * config/i386/i386-expand.c (ix86_expand_vector_set)
9829 <case E_V2SImode>: Use vec_merge path for
9830 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9831 <case E_V8QImode>: Ditto.
9832 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
9833 (*mmx_pinsrb): Ditto.
9835 2019-08-12 Jakub Jelinek <jakub@redhat.com>
9839 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
9840 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
9841 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
9842 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
9843 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
9845 2019-08-12 Richard Biener <rguenther@suse.de>
9848 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
9851 2019-08-12 Richard Biener <rguenther@suse.de>
9854 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
9855 lang_mask option, always use CL_DRIVER.
9856 (get_options_from_collect_gcc_options): Adjust.
9857 (find_and_merge_options): Likewise.
9858 (run_gcc): Likewise.
9860 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9862 * ipa-predicate.c (add_condition): Restore inverted test.
9864 2019-08-10 Jakub Jelinek <jakub@redhat.com>
9866 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
9867 (enum omp_clause_device_type_kind): New enum.
9868 (struct tree_omp_clause): Add subcode.device_type_kind.
9869 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
9870 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9871 for device_type clause.
9872 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
9873 * tree-pretty-print.c (dump_omp_clause): Likewise.
9876 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
9879 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
9881 * reload1.c (finish_spills): Do not check ira_conflicts_p when
9882 handling spilled pseudos.
9884 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9887 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
9888 to preserve the contents of the original insns.
9890 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9892 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
9893 (addsi3_compare_op2): Likewise.
9895 2019-08-09 Martin Liska <mliska@suse.cz>
9897 * alias.c (alias_ptr_types_compatible_p): Strengten
9898 type comparison in LTO mode.
9900 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
9903 * tree-tailcall.c (find_tail_calls): Reject calls that might
9904 read from an escaped RESULT_DECL.
9906 2019-08-09 Martin Liska <mliska@suse.cz>
9908 * doc/invoke.texi: Document the option value.
9909 * lto-wrapper.c (run_gcc): Set auto_parallel
9910 only with -flto=auto.
9912 2019-08-09 Martin Liska <mliska@suse.cz>
9914 * opts.c (common_handle_option): Error for an invalid argument
9917 2019-08-09 Martin Liska <mliska@suse.cz>
9919 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9920 use dump_printf to report optimization.
9921 (sem_variable::merge): Likwise.
9922 (sem_item_optimizer::merge_classes): Use dump_printf to report
9925 2019-08-09 Martin Liska <mliska@suse.cz>
9927 * value-prof.c (gimple_divmod_fixed_value_transform):
9928 Use dump_printf_loc.
9929 (gimple_mod_pow2_value_transform): Likewise.
9930 (gimple_mod_subtract_transform): Likewise.
9931 (init_node_map): Likewise.
9932 (gimple_ic_transform): Likewise.
9933 (gimple_stringops_transform): Likewise.
9935 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9937 * doc/extend.texi: Add const qualifier to ld intrinsics.
9939 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9941 * config/rs6000/dfp.md (D64_D128): Rename to ...
9942 (DDTD): ... this, throughout.
9943 (dfp_suffix): Rename to ...
9944 (q): ... this, throughout.
9946 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9948 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9949 (dfp_suffix): Ditto.
9950 (adddd3, addtd3): Merge to ...
9951 (add<mode>3 for D64_D128): ... this.
9952 (subdd3, subtd3): Merge to ...
9953 (sub<mode>3 for D64_D128): ... this.
9954 (muldd3, multd3): Merge to ...
9955 (mul<mode>3 for D64_D128): ... this.
9956 (divdd3, divtd3): Merge to ...
9957 (div<mode>3 for D64_D128): ... this.
9958 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9959 (*cmp<mode>_internal1 for D64_D128): ... this.
9960 (ftruncdd2, ftrunctd2): Merge to ...
9961 (ftrunc<mode>2 for D64_D128): ... this.
9962 (fixdddi2, fixtddi2): Merge to ...
9963 (fix<mode>di2 for D64_D128): ... this.
9965 2019-08-08 Jim Wilson <jimw@sifive.com>
9968 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9969 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9970 Pass into recursive call.
9971 (riscv_flatten_aggregate_argument): New arg. Pass to
9972 riscv_flatten_aggregate_field.
9973 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9974 riscv_flatten_aggregate_argument twice, with false and true as last
9975 arg. Process result twice. Compare results and warn if different.
9976 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9978 2019-08-08 Martin Liska <mliska@suse.cz>
9981 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9982 * lto-wrapper.c (jobserver_active_p): Likewise.
9984 2019-08-08 Martin Liska <mliska@suse.cz>
9986 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9987 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9988 (create_version_clone_with_body): Likewise.
9990 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9992 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9993 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9994 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9995 GOVD_EXPLICIT flags.
9996 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9997 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9998 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9999 call install_var_field with mask 11 instead of 3.
10000 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
10001 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
10003 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10005 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
10006 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
10008 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10010 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
10011 MOVPRFX alternatives. Make the GPR alternatives more expensive
10014 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10016 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
10017 Disparage the GPR alternative relative to the FPR one.
10018 Fix handling of 8-bit and 16-bit FPR values.
10020 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10022 * config/aarch64/iterators.md (BITWISEV): Delete.
10023 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
10024 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
10025 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
10026 UNSPEC_FMINNMV, UNSPEC_FMINV.
10027 (bit_reduc_op): Delete.
10028 (sve_int_op): New int attribute.
10029 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
10030 UNSPEC_FMINNMV, UNSPEC_FMINV.
10031 * config/aarch64/aarch64-sve.md
10032 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
10033 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
10034 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
10035 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
10036 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
10037 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
10039 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
10040 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
10041 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
10042 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
10043 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
10046 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10048 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
10049 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
10050 (fms<mode>4, *fms<mode>4): Replace with...
10051 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
10052 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
10053 Use unspecs instead of rtx codes.
10054 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
10055 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
10057 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10059 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
10061 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
10062 * config/aarch64/aarch64-sve.md
10063 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
10064 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
10065 use a single unspec for the rhs.
10066 (*<su><maxmin><mode>3): Delete.
10067 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
10069 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10071 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
10072 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
10073 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
10074 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
10075 (optab, sve_fp_op): Handle them.
10076 (SVE_FP_UNARY): Delete.
10077 (optab): Remove sqrt entry.
10078 (sve_fp_op): Remove neg, abs and sqrt entries.
10079 (SVE_COND_FP_UNARY): New int iterator.
10080 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
10081 (*<frint_pattern><mode>2): Delete.
10082 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
10083 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
10084 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
10085 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
10087 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10089 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
10091 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10093 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
10094 (UNSPEC_COND_FADD): ...this.
10095 (UNSPEC_COND_SUB): Rename to...
10096 (UNSPEC_COND_FSUB): ...this.
10097 (UNSPEC_COND_MUL): Rename to...
10098 (UNSPEC_COND_FMUL): ...this.
10099 (UNSPEC_COND_DIV): Rename to...
10100 (UNSPEC_COND_FDIV): ...this.
10101 (UNSPEC_COND_MAX): Rename to...
10102 (UNSPEC_COND_FMAXNM): ...this.
10103 (UNSPEC_COND_MIN): Rename to...
10104 (UNSPEC_COND_FMINNM): ...this.
10105 (UNSPEC_COND_LT): Rename to...
10106 (UNSPEC_COND_FCMLT): ...this.
10107 (UNSPEC_COND_LE): Rename to...
10108 (UNSPEC_COND_FCMLE): ...this.
10109 (UNSPEC_COND_EQ): Rename to...
10110 (UNSPEC_COND_FCMEQ): ...this.
10111 (UNSPEC_COND_NE): Rename to...
10112 (UNSPEC_COND_FCMNE): ...this.
10113 (UNSPEC_COND_GE): Rename to...
10114 (UNSPEC_COND_FCMGE): ...this.
10115 (UNSPEC_COND_GT): Rename to...
10116 (UNSPEC_COND_FCMGT): ...this.
10117 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
10118 (sve_fp_op_rev): Update accordingly.
10119 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
10121 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10123 * config/aarch64/aarch64-sve.md: Reorganize contents and add
10125 * config/aarch64/check-sve-md.awk: New file.
10126 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
10127 (insn-conditions.md): Depend on it.
10129 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
10132 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
10133 (*negsi2_cmpz_zext): Ditto.
10135 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10137 * config/aarch64/iterators.md (commutative): Remove.
10139 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
10142 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
10143 processing COLLECT_GCC_OPTIONS.
10144 (run_gcc): Likewise.
10146 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10148 PR tree-optimization/91109
10149 * lra-remat.c (update_scratch_ops): Remove assignment of the
10152 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10154 * data-streamer.h (streamer_write_poly_uint64): Declare.
10155 (streamer_read_poly_uint64): Likewise.
10156 * data-streamer-in.c (streamer_read_poly_uint64): New function.
10157 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
10158 * ipa-predicate.h (condition::size): Turn into a poly_int64.
10159 (add_condition): Take a poly_int64 size.
10160 * ipa-predicate.c (add_condition): Likewise.
10161 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
10162 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
10163 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
10164 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
10165 condition::size as a poly_int64.
10166 (unmodified_parm_1): Take a poly_int64 size pointer.
10167 (unmodified_parm): Likewise.
10168 (unmodified_parm_or_parm_agg_item): Likewise.
10169 (set_cond_stmt_execution_predicate): Update accordingly.
10170 (set_switch_stmt_execution_predicate): Likewise.
10171 (will_be_nonconstant_expr_predicate): Likewise.
10172 (will_be_nonconstant_predicate): Likewise.
10173 (inline_read_section): Stream condition::size as a poly_int.
10174 (ipa_fn_summary_write): Likewise.
10176 2019-08-07 Martin Liska <mliska@suse.cz>
10178 * fold-const.c (twoval_comparison_p): Replace int
10179 with bool as a return type.
10180 (simple_operand_p): Likewise.
10181 (operand_equal_p): Replace int with bool as a return type.
10182 * fold-const.h (operand_equal_p): Likewise.
10184 2019-08-07 Jakub Jelinek <jakub@redhat.com>
10186 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
10187 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
10188 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
10189 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
10190 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
10191 * tree-pretty-print.c (dump_omp_clause): Likewise.
10192 * tree-nested.c (convert_nonlocal_omp_clauses,
10193 convert_local_omp_clauses): Likewise.
10194 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10196 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
10197 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
10198 clause with array or reference to array types, no matter what type
10199 except for reference it has.
10201 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
10203 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
10205 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
10207 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
10208 (arch_canonicalize): Support rv32g and rv64g and fix error
10211 2019-08-06 Martin Liska <mliska@suse.cz>
10213 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
10214 and DECL_IS_OPERATOR_DELETE_P.
10216 2019-08-06 Jakub Jelinek <jakub@redhat.com>
10218 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
10219 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
10220 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
10221 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
10222 (gimplify_omp_for): Don't do C++ random access iterator clause
10223 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
10224 don't predetermine the artificial iterator in case of C++ random
10225 access iterators as lastprivate, but private. For OMP_LOOP, force
10226 bind expr around simd body and force for_pre_body before the
10227 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
10228 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
10229 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
10230 diff var of C++ random access iterators. Handle
10231 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
10232 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
10233 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
10234 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
10235 * omp-low.c (lower_rec_input_clauses): For
10236 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
10237 variables instead of default constructing them.
10238 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
10239 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
10240 is_taskloop_ctx check from the assert to the guarding condition.
10242 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
10244 * config/riscv/multilib-generator: (canonical_order): New.
10245 (arch_canonicalize): Dito.
10246 Apply arch_canonicalize for alts.
10248 2019-08-05 Martin Sebor <msebor@redhat.com>
10250 * doc/extend.texi (Common Variable Attributes): Document alias
10253 2019-08-05 Marek Polacek <polacek@redhat.com>
10255 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
10256 * doc/invoke.texi: Document -Wcomma-subscript.
10258 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10260 * tree-core.h (tree_function_decl): Make function_code an
10261 independent field. Group the remaining bitfields into bytes
10262 and move decl_type so that it contines to be at a byte boundary.
10263 Leave 12 bits for future expansion.
10265 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10267 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
10268 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
10269 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
10272 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10274 * gimple.h (gimple_move_vops): Declare.
10275 * gimple.c (gimple_move_vops): New function
10276 * gimple-fold.c (replace_call_with_call_and_fold)
10277 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
10278 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
10279 (gimple_fold_call): Use it.
10280 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
10281 * tree-call-cdce.c (use_internal_fn): Likewise.
10282 * tree-if-conv.c (predicate_load_or_store): Likewise.
10283 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10284 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10285 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
10286 (update_call_from_tree): Likewise.
10287 * tree-vect-stmts.c (vectorizable_load): Likewise.
10288 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
10290 2019-08-05 Martin Liska <mliska@suse.cz>
10293 * tree-ssa-dce.c (propagate_necessity): Handle new operators
10294 with not arguments.
10295 (eliminate_unnecessary_stmts): Likewise.
10297 2019-08-05 Richard Biener <rguenther@suse.de>
10299 PR middle-end/91169
10300 * fold-const.c (get_array_ctor_element_at_index): Create
10301 offset_ints according to the sign of the index type and treat
10302 that as signed if it is obviously so.
10304 2019-08-05 Jakub Jelinek <jakub@redhat.com>
10307 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
10308 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
10309 _mm256_storeu2_m128i): New function.
10311 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
10313 * config/riscv/riscv.c (riscv_promote_function_mode): New.
10314 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
10316 2019-08-05 Alan Modra <amodra@gmail.com>
10319 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
10320 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
10322 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
10324 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
10325 bug that was fixed in Tcl 8.6.1.
10327 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
10329 * config/rs6000/future.md: New file.
10330 * config/rs6000/rs6000.md: Include future.md.
10331 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
10333 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10335 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
10336 check to use targetm.slow_unaligned_access instead.
10338 * function.c (assign_param_data_one): Remove unused data members.
10340 2019-08-02 Steve Ellcey <sellcey@marvell.com>
10342 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
10343 build_distinct_type_copy.
10344 (simd_clone_adjust_argument_types): Ditto.
10345 (simd_clone_adjust): Call build_distinct_type_copy here.
10346 (expand_simd_clones): Ditto.
10348 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
10351 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
10353 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
10355 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
10356 from 'const void *'.
10357 (sort_locs_in_loop_postorder_cmp): Likewise.
10359 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
10361 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
10362 (hot-bb-count-ws-permille): Likewise.
10363 (hot-bb-frequency-fraction): Likewise.
10364 (unlikely-bb-count-fraction): Likewise.
10365 * params.def (hot-bb-count-fraction): Rework description.
10366 (hot-bb-count-ws-permille): Likewise.
10367 (hot-bb-frequency-fraction): Likewise.
10368 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
10369 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
10371 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
10374 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
10377 2019-08-02 Richard Biener <rguenther@suse.de>
10379 * vec.h (vec::sort): Add gcc_qsort_r support.
10380 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
10381 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
10382 to gcc_qsort_r style callback.
10383 (sort_locs_in_loop_postorder_cmp): Likewise.
10384 (analyze_memory_references): Use gcc_sort_r interfaces.
10385 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
10387 2019-08-02 Martin Liska <mliska@suse.cz>
10390 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
10391 to detect working job server.
10392 (driver::detect_jobserver): Test whether jobserver
10393 is active from GCC driver. That will prevent situation where
10394 GCC is invoked from a LD plugin and the linker already uses
10395 file descriptors suggested by make. That leads to a wrong
10397 * gcc.h (driver): Add detect_jobserver.
10398 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
10399 not scanning for --jobserver-auth prefix.
10401 2019-08-02 Jakub Jelinek <jakub@redhat.com>
10403 PR tree-optimization/91201
10404 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
10405 V16QImode extraction without sse4.1 try to use V4SImode lowpart
10408 2019-08-01 Martin Sebor <msebor@redhat.com>
10411 * tree.c (type_initializer_zero_p): Define.
10412 * tree.h (type_initializer_zero_p): New function.
10414 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
10416 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
10418 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
10420 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
10421 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
10422 * predict.c (maybe_hot_count_p): Likewise.
10423 (maybe_hot_bb_p): Tweak comment.
10424 (maybe_hot_edge_p): Likewise.
10425 (probably_never_executed): Likewise. Minor tweak.
10426 (probably_never_executed_bb_p): Likewise.
10427 (unlikely_executed_edge_p): Likewise.
10428 (probably_never_executed_edge_p): Likewise.
10429 (optimize_function_for_size_p): Likewise.
10430 (optimize_function_for_speed_p): Likewise.
10431 (function_optimization_type): Likewise.
10432 (optimize_bb_for_size_p): Likewise.
10433 (optimize_bb_for_speed_p): Likewise.
10434 (bb_optimization_type): Likewise.
10435 (optimize_edge_for_size_p): Likewise.
10436 (optimize_edge_for_speed_p): Likewise.
10437 (optimize_insn_for_size_p): Likewise.
10438 (optimize_insn_for_speed_p): Likewise.
10439 (optimize_loop_for_size_p): Likewise.
10440 (optimize_loop_for_speed_p): Likewise.
10441 (optimize_loop_nest_for_speed_p): Likewise.
10442 (optimize_loop_nest_for_size_p): Likewise.
10443 (predictable_edge_p): Likewise.
10444 (handle_missing_profiles): Minor tweak.
10446 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
10448 * config/rs6000/predicates.md (pcrel_external_address): Update
10451 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
10454 * config/i386/mmx.md (usadv8qi): New expander.
10456 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
10459 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
10460 with reserved names that are in a system header.
10462 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
10464 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
10465 (*vec_extractv2si_0_zext_sse4): New insn pattern.
10466 (*vec_extractv2si_0_zext): Ditto.
10467 (*vec_extractv2si_1): Add (rm,x) alternative.
10468 (*vec_extractv2si_1_zext): New insn pattern.
10469 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
10472 2019-08-01 Richard Biener <rguenther@suse.de>
10474 * domwalk.c (bb_postorder): Remove static variable.
10475 (cmp_bb_postorder): Adjust.
10476 (sort_bbs_postorder): Adjust and use gcc_sort_r.
10477 (dom_walker::walk): Adjust.
10479 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
10481 * sort.cc (sort_r_ctx): New struct.
10482 (reorder23): Make templated on context type.
10483 (reorder45): Ditto.
10484 (cmp1): Ditto. Adjust signature.
10486 (mergesort): Ditto.
10487 [CHECKING_P] (cmp2to3): New static function. Use it...
10488 (gcc_qsort) [CHECKING_P]: ...here.
10489 (gcc_sort_r): New function.
10490 * system.h (sort_r_cmp_fn): New function typedef.
10491 (qsort_chk): Adjust signature.
10492 (gcc_sort_r): Declare.
10493 * vec.c (qsort_chk_error): Adjust.
10494 (qsort_chk): Adjust.
10496 2019-08-01 Richard Biener <rguenther@suse.de>
10498 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
10499 (compute_antic): Localize it here.
10501 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
10503 * common/config/riscv/riscv-common.c: Check -march string ends
10506 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
10508 * ipa-devirt.c (type_warning_cmp): Make static.
10509 (decl_warning_cmp): Ditto.
10511 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
10514 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
10515 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
10516 use of deleted rs6000_dejagnu_cpu_index variable.
10517 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
10518 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
10519 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
10520 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
10521 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
10522 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
10524 2019-07-31 Richard Biener <rguenther@suse.de>
10526 PR tree-optimization/91280
10527 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10528 Decompose MEM_REF manually for offset handling.
10530 2019-07-31 Richard Biener <rguenther@suse.de>
10532 PR tree-optimization/91293
10533 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
10534 of reduction stmts.
10536 2019-07-31 Matt Thomas <matt@3am-software.com>
10537 Nick Hudson <nick@nthcliff.demon.co.uk>
10538 Matthew Green <mrg@eterna.com.au>
10539 Maya Rashish <coypu@sdf.org>
10541 * config.gcc (hppa*-*-netbsd*): New target.
10542 * config/pa/pa-netbsd.h: New file.
10543 * config/pa/pa32-netbsd.h: New file.
10545 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10547 PR tree-optimization/91201
10548 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
10550 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
10552 * config/gcn/gcn-valu.md
10553 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
10554 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
10555 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
10556 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
10557 struct ilist. Add nops for delayeduse insns.
10558 * config/gcn/gcn.md (delayeduse): New attribute.
10559 (*movbi): Remove s_waitcnt from stores.
10560 (*mov<mode>_insn): Likewise.
10561 (*movti_insn): Likewise. Add delayeduse attribute.
10562 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
10563 (atomic_store<mode>): Remove or adjust s_waitcnt.
10565 2019-07-31 Richard Biener <rguenther@suse.de>
10567 * vr-values.h (vr_values::swap_vr_value): New.
10568 (vr_values::free_value_range): likewise.
10569 * vr-values.c (vr_values::swap_vr_value): Implement.
10570 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
10571 Do not return a range or take a var.
10572 (evrp_range_analyzer::stack): Change back to recording a non-const
10574 * gimple-ssa-evrp-analyze.c
10575 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
10577 (evrp_range_analyzer::pop_to_marker): Adjust.
10578 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
10579 (evrp_range_analyzer::pop_value_range): Likewise. Free the
10580 no longer needed value-range.
10582 2019-07-31 Martin Liska <mliska@suse.cz>
10584 * tree-ssa-dce.c (propagate_necessity): Delete operator can
10585 have size and (or) alignment as 2nd and later arguments.
10586 Mark all of them as necessary.
10588 2019-07-31 Richard Biener <rguenther@suse.de>
10590 PR tree-optimization/91178
10591 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10592 Use tail-recursion.
10594 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10596 PR tree-optimization/91201
10597 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
10598 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
10600 (reduc_plus_scal_<mode>): Improve formatting by introducing
10603 2019-07-31 Sudakshina Das <sudi.das@arm.com>
10605 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
10606 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
10607 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
10608 (aarch64_init_tme_builtins): New.
10609 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
10610 (aarch64_expand_builtin_tme): New.
10611 (aarch64_expand_builtin): Handle TME builtins.
10612 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10613 __ARM_FEATURE_TME when enabled.
10614 * config/aarch64/aarch64-option-extensions.def: Add "tme".
10615 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
10617 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
10618 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
10620 (tstart, ttest, tcommit, tcancel): New instructions.
10621 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
10622 (__tcancel, __ttest): New.
10623 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
10624 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
10625 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
10626 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
10627 * config/arm/types.md: Add new tme type attr.
10628 * doc/invoke.texi: Document "tme".
10630 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
10632 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
10633 warn_unused_result attribute.
10634 (cmse_check_address_range): Add warn_unused_result attribute.
10636 2019-07-31 Richard Biener <rguenther@suse.de>
10638 PR tree-optimization/91257
10639 * tree-vrp.c (union_ranges): Unify equality and less tests
10640 by using compare_values. Re-order cheap tests first.
10642 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10644 PR middle-end/91301
10645 * gimplify.c (gimplify_omp_for): If for class iterator on
10646 distribute parallel for there is no data sharing clause
10647 on inner_for_stmt, look for private clause on combined
10648 parallel too and if found, move it to inner_for_stmt.
10650 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
10652 * lra-int.h (lra_operand_data): Remove early_clobber field.
10653 (lra_insn_reg): Likewise.
10654 * lra.c (debug_operand_data): Update accordingly.
10655 (setup_operand_alternative): Likewise.
10656 (new_insn_reg): Likewise. Remove early_clobber parameter.
10657 (collect_non_operand_hard_regs): Update call accordingly.
10658 Don't assign to lra_insn_reg::early_clobber.
10659 (add_regs_to_insn_regno_info): Remove early_clobber parameter
10660 and update calls to new_insn_reg.
10661 (lra_update_insn_regno_info): Update calls accordingly.
10662 * lra-constraints.c (update_and_check_small_class_inputs): Take the
10663 alternative number as a parameter and test whether the operand
10664 is earlyclobbered in that particular alternative.
10665 (process_alt_operands): Update call accordingly. Use per-alternative
10666 checks for earyclobber here too.
10667 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
10668 against zero for IRA_UNKNOWN_ALT.
10670 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
10672 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
10674 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
10676 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
10677 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10679 2019-07-30 Martin Liska <mliska@suse.cz>
10682 * cgraph.c (cgraph_edge::make_direct): Use
10683 edge->indirect_unknown_callee as edge->resolve_speculation can
10684 deallocate edge which is this pointer.
10686 2019-07-30 Richard Biener <rguenther@suse.de>
10688 PR tree-optimization/91257
10689 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
10691 2019-07-30 Martin Liska <mliska@suse.cz>
10693 * doc/invoke.texi: Document new behavior.
10694 * lto-wrapper.c (cpuset_popcount): New function
10695 is a copy of libgomp/config/linux/proc.c.
10696 (init_num_threads): Likewise.
10697 (run_gcc): Automatically detect core count for -flto.
10698 (jobserver_active_p): New function.
10700 2019-07-30 Richard Biener <rguenther@suse.de>
10702 PR tree-optimization/91257
10703 * bitmap.h (bitmap_ior_into_and_free): Declare.
10704 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
10705 whether to add the unliked element to the freelist.
10706 (bitmap_list_insert_element_after): Add defaulted param for
10707 an already allocated element.
10708 (bitmap_ior_into_and_free): New function.
10709 * tree-ssa-structalias.c (condense_visit): Reduce the
10710 ponts-to and edge bitmaps of the SCC members in a
10711 logarithmic fashion rather than all to one.
10713 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
10715 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
10716 parameter. When nonnull, make sure that the addition or subtraction
10717 has the same condition.
10718 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
10719 for CFN_COND_MUL too.
10721 2019-07-30 Richard Biener <rguenther@suse.de>
10723 PR tree-optimization/91291
10724 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
10727 2019-07-30 Jakub Jelinek <jakub@redhat.com>
10729 PR middle-end/91216
10730 * omp-low.c (global_nonaddressable_vars): New variable.
10731 (use_pointer_for_field): For global decls, if they are non-addressable,
10732 remember it in the global_nonaddressable_vars bitmap, if they are
10733 addressable and in the global_nonaddressable_vars bitmap, ignore their
10734 TREE_ADDRESSABLE bit.
10735 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
10736 vars in global_nonaddressable_vars bitmap.
10737 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
10740 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
10741 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
10742 comparison to unsigned HOST_WIDE_INT before shifting it left.
10744 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
10746 * config/i386/i386.md (movstrict<mode>): Use register_operand
10747 predicate for operand 0. Add expander condition. Assert that
10748 operand 0 is a SUBREG RTX.
10749 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
10750 Update operand constraints and insn condition.
10751 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
10752 (zero_extendqihi2_and): Do not call gen_movstrictqi.
10753 (*setcc_qi_slp): Use register_operand predicate for operand 0.
10754 Update operand 0 constraints.
10755 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
10757 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10759 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
10760 when -m{code,data}-region are used without -mlarge.
10761 * config/msp430/msp430.c (msp430_option_override): Error when a
10762 non-default code or data region is used without -mlarge.
10763 (msp430_section_attr): Emit a warning and do not add upper/lower/either
10764 attributes when they are used without -mlarge.
10766 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10769 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
10771 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10773 PR middle-end/91242
10774 * wide-int.h (generic_wide_int::sext_elt): New function.
10775 * inchash.h (hash::add_wide_int): Use it instead of elt.
10777 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10779 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
10781 * config/arm/arm.md (<crc_variant>): Rename to...
10782 (arm_<crc_variant>): ... This.
10783 (<cdp>): Rename to...
10784 (arm_<cdp>): ... This.
10785 (<ldc>): Rename to...
10786 (arm_<ldc>): ... This.
10787 (<stc>): Rename to...
10788 (arm_<stc>): ... This.
10789 (<mcr>): Rename to...
10790 (arm_<mcr>): ... This.
10791 (<mrc>): Rename to...
10792 (arm_<mrc>): ... This.
10793 (<mcrr>): Rename to...
10794 (arm_<mcrr>): ... This.
10795 (<mrrc>): Rename to...
10796 (arm_<mrrc>): ... This.
10798 2019-07-29 Richard Biener <rguenther@suse.de>
10800 PR tree-optimization/91257
10801 * tree-ssa-sccvn.h (struct vn_avail): New.
10802 (struct vn_ssa_aux): Add avail member.
10803 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
10804 member, add m_avail_freelist one.
10805 (rpo_elim::~rpo_elim): Remove.
10806 (rpo_elim::eliminate_avail): Adjust to new avail tracking
10808 (rpo_elim::eliminate_push_avail): Likewise.
10809 (do_unwind): Likewise.
10810 (do_rpo_vn): Likewise.
10812 2019-07-29 Richard Biener <rguenther@suse.de>
10814 PR tree-optimization/91257
10815 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
10816 most cases, instead call compare_values which handles the
10817 symbolic ranges we handle specially.
10818 (compare_values_warnv): Do not call operand_less_p but open-code
10819 the effective fold calls. Avoid converting so much.
10821 2019-07-29 Martin Liska <mliska@suse.cz>
10823 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
10824 remove LHS of operator new call. It's handled latter.
10826 2019-07-29 Richard Biener <rguenther@suse.de>
10828 PR tree-optimization/91267
10829 * vr-values.c (vr_values::update_value_range): Add early return
10830 for effectively VARYING lattice entry.
10832 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10835 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
10836 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
10837 necessary if keep_all_vdefs_p is true.
10838 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
10839 that keep_all_vdefs_p is false.
10840 (mark_all_reaching_defs_necessary): Likewise.
10841 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
10843 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10845 * common.opt (Og): Change the initial value of flag_dse to 0.
10846 * opts.c (default_options_table): Move OPT_ftree_dse from
10847 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
10848 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
10849 entry before the OPT_ftree_sra entry.
10850 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
10851 of flags disabled by Og.
10853 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10855 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
10858 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10860 * doc/sourcebuild.texi (check-function-bodies): Document.
10862 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10864 * simplify-rtx.c (simplify_const_unary_operation): Fold a
10865 VEC_DUPLICATE of a fixed-length vector even if the result
10866 is variable-length. Likewise fold a duplicate of a
10867 variable-length vector if the variable-length vector is
10868 itself a duplicate of a fixed-length sequence.
10869 (test_vector_ops_duplicate): Test more cases.
10871 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10873 * vector-builder.h (vector_builder): Add a shape template parameter.
10874 (vector_builder::new_unary_operation): New function, generalizing
10875 the old tree_vector_builder function.
10876 (vector_builder::new_binary_operation): Likewise.
10877 (vector_builder::binary_encoded_nelts): Likewise.
10878 * int-vector-builder.h (int_vector_builder): Update template
10879 parameters to vector_builder.
10880 (int_vector_builder::shape_nelts): New function.
10881 * rtx-vector-builder.h (rtx_vector_builder): Update template
10882 parameters to vector_builder.
10883 (rtx_vector_builder::shape_nelts): New function.
10884 (rtx_vector_builder::nelts_of): Likewise.
10885 (rtx_vector_builder::npatterns_of): Likewise.
10886 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
10887 * tree-vector-builder.h (tree_vector_builder): Update template
10888 parameters to vector_builder.
10889 (tree_vector_builder::shape_nelts): New function.
10890 (tree_vector_builder::nelts_of): Likewise.
10891 (tree_vector_builder::npatterns_of): Likewise.
10892 (tree_vector_builder::nelts_per_pattern_of): Likewise.
10893 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
10894 (tree_vector_builder::new_binary_operation): Delete.
10895 (tree_vector_builder::binary_encoded_nelts): Likewise.
10896 * simplify-rtx.c: Include rtx-vector-builder.h.
10897 (distributes_over_addition_p): New function.
10898 (simplify_const_unary_operation)
10899 (simplify_const_binary_operation): Generalize handling of vector
10900 constants to include variable-length vectors.
10901 (test_vector_ops_series): Add more tests.
10903 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
10906 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10907 than INDENTIFIER_POINTER.
10909 2019-07-28 Martin Liska <mliska@suse.cz>
10912 * cgraph.c (symbol_table::create_edge): Always allocate
10914 (symbol_table::free_edge): Store summary_id to
10915 edge_released_summary_ids if != -1;
10916 * cgraph.h (NEXT_FREE_NODE): Remove.
10917 (SET_NEXT_FREE_NODE): Likewise.
10918 (NEXT_FREE_EDGE): Likewise.
10919 (symbol_table::release_symbol): Store summary_id to
10920 cgraph_released_summary_ids if != -1;
10921 (symbol_table::allocate_cgraph_symbol): Always allocate
10924 2019-07-28 Alan Modra <amodra@gmail.com>
10926 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10929 2019-07-28 Alan Modra <amodra@gmail.com>
10932 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10934 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10935 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10936 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10938 2019-07-28 Alan Modra <amodra@gmail.com>
10941 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10942 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10943 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10944 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10945 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10946 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10947 in asm_default spec.
10948 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10949 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10951 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10953 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10955 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10958 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10959 * config/aarch64/aarch64-option-extensions.def: Add new comments
10960 and restore easier to read options.
10962 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10964 * convert.c (convert_to_real_1): Move part of conversion code...
10965 * match.pd: ...To here.
10967 2019-07-26 Martin Jambor <mjambor@suse.cz>
10970 * ipa-inline-transform.c (check_speculations_1): New function.
10971 (push_all_edges_in_set_to_vec): Likewise.
10972 (check_speculations): Use check_speculations_1, new parameter
10974 (inline_call): Pass new_edges to check_speculations.
10975 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10977 (speculation_useful_p): Early return true if edge is inlined, remove
10978 later checks for inline_failed.
10980 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10982 PR rtl-optimization/91223
10983 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10984 matching with INOUT operand.
10986 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10988 * stmt.c (expand_case): Try to narrow the index type if it's larger
10989 than a word. Tidy up.
10991 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10993 * cif-code.def (NEVER_CALL): New code.
10994 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10995 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10997 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10999 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
11000 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11002 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11004 * ipa-devirt.c (add_type_duplicate): Fix return value.
11006 2019-07-25 Richard Biener <rguenther@suse.de>
11008 * tree-vrp.c (extract_range_from_multiplicative_op): Add
11009 type parameter and use it instead of guessing expression
11010 type from the first operand.
11011 (extract_range_from_binary_expr): Pass expr_type down.
11013 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11015 * config/arm/arm.md (SATrev): Change to code attribute.
11016 (*satsi_<SAT:code>): Adjust for the above.
11017 (*satsi_<SAT:code>_shift): Likewise.
11019 2019-07-25 Richard Biener <rguenther@suse.de>
11021 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
11022 Make value_range * temporary const.
11023 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
11025 (evrp_range_analyzer::record_ranges_from_): Likewise.
11026 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
11027 deal with having recorded a const one.
11028 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
11029 Return a const value_range *.
11030 (evrp_range_analyzer::pop_value_range): Likewise.
11031 (evrp_range_analyzer::stack): Record const value_range *s.
11032 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
11034 * gimple-ssa-sprintf.c (get_int_range): Likewise.
11035 (format_integer): Likewise.
11036 (sprintf_dom_walker::handle_gimple_call): Likewise.
11037 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
11038 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
11039 (vrp_prop::get_value_range): Adjust.
11040 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
11041 modifying the lattice in-place.
11042 (vrp_prop::visit_stmt): Likewise.
11043 * vr-values.c (vr_values::get_lattice_entry): New private method.
11044 (vr_values::get_value_range): Wrap it and return a const
11046 (vr_values::set_def_to_varying): New.
11047 (vr_values::set_defs_to_varying): Use it.
11048 (vr_values::update_value_range): Likewise.
11049 (vr_values::vrp_stmt_computes_nonzero): Adjust.
11050 (values::op_with_constant_singleton_va): Likewise.
11051 (vr_values::extract_range_for_var_from_co): Likewise.
11052 (vr_values::extract_range_from_ssa_name): Likewise.
11053 (vr_values::extract_range_from_cond_expr): Likewise.
11054 (vr_values::extract_range_basic): Likewise.
11055 (compare_ranges): Take const value_range *, adjust.
11056 (compare_range_with_value): Likewise.
11057 (vrp_valueize): Adjust.
11058 (vrp_valueize_1): Likewise.
11059 (vr_values::get_vr_for_comparison): Return a const value_range *.
11060 (vr_values::compare_name_with_value): Adjust.
11061 (vr_values::compare_names): Likewise.
11062 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
11064 (vr_values::vrp_evaluate_conditional): Likewise.
11065 (find_case_label_ranges): Take a const value_range *.
11066 (vr_values::vrp_visit_switch_stmt): Adjust.
11067 (vr_values::extract_range_from_phi_node): Likewise.
11068 (vr_values::simplify_div_or_mod_using_ran): Likewise.
11069 (vr_values::simplify_abs_using_ranges): Likewise.
11070 (test_for_singularity): Take a const value_range *.
11071 (range_fits_type_p): Likewise.
11072 (vr_values::simplify_cond_using_ranges_1): Adjust.
11073 (vr_values::simplify_cond_using_ranges_2): Likewise.
11074 (vr_values::simplify_switch_using_ranges): Likewise.
11075 (vr_values::simplify_float_conversion_usi): Likewise.
11076 (vr_values::two_valued_val_range_p): Likewise.
11077 * vr-values.h (vr_values::get_value_range): Return a const
11079 (vr_values::set_def_to_varying): New.
11080 (vr_values::get_lattice_entry): New private method.
11081 (vr_values::get_vr_for_comparison): Return a const value_range *.
11083 2019-07-25 Martin Liska <mliska@suse.cz>
11084 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
11087 * common.opt: Add -fallocation-dce
11088 * gimple.c (gimple_call_operator_delete_p): New.
11089 * gimple.h (gimple_call_operator_delete_p): Likewise.
11090 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
11091 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
11092 DECL_IS_OPERATOR_DELETE_P.
11093 (mark_all_reaching_defs_necessary_1): Likewise.
11094 (propagate_necessity): Likewise.
11095 (eliminate_unnecessary_stmts): Handle
11096 gimple_call_operator_delete_p.
11097 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
11098 Add packing of OPERATOR_DELETE.
11099 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
11101 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
11102 (DECL_SET_IS_OPERATOR_DELETE): New.
11103 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
11105 2019-07-25 Martin Liska <mliska@suse.cz>
11107 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
11108 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
11109 * coverage.c (coverage_begin_function): Likewise.
11110 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
11111 * gimple.c (gimple_call_nonnull_result_p): Likewise.
11112 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
11113 (sem_item::hash_referenced_symbol_properties): Likewise.
11114 * lto-streamer-out.c (hash_tree): Likewise.
11115 * predict.c (expr_expected_value_1): Likewise.
11116 * tree-inline.c (expand_call_inline): Likewise.
11117 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
11118 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
11119 * tree-core.h (enum function_decl_type): New enum.
11120 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
11121 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
11122 (set_function_decl_type): Likewise.
11123 (DECL_IS_OPERATOR_NEW_P): New.
11124 (DECL_SET_IS_OPERATOR_NEW): Likewise.
11125 (DECL_LAMBDA_FUNCTION): Likewise.
11126 (DECL_LAMBDA_FUNCTION_P): Likewise.
11127 (DECL_IS_OPERATOR_NEW): Remove.
11128 (DECL_SET_LAMBDA_FUNCTION): Likewise.
11130 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
11132 * ipa-profile.c (get_most_common_single_value): Use
11133 get_nth_most_common_value.
11134 * profile.c (sort_hist_value): New function.
11135 (compute_value_histograms): Call sort_hist_value to sort the
11136 values after loading from disk.
11137 * value-prof.c (get_most_common_single_value): Rename to ...
11138 get_nth_most_common_value. Add input params n, return
11139 the n_th value and count.
11140 (gimple_divmod_fixed_value_transform): Use
11141 get_nth_most_common_value.
11142 (gimple_ic_transform): Likewise.
11143 (gimple_stringops_transform): Likewise.
11144 * value-prof.h (get_most_common_single_value): Add input params
11147 2019-07-25 Richard Biener <rguenther@suse.de>
11149 PR tree-optimization/91236
11150 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
11151 size of CONSTRUCTOR write. Fix buffer size we pass to
11152 native_encode_expr.
11154 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11156 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
11157 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
11160 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11162 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
11163 explicitly disabled with --disable-initfini-array.
11165 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11167 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
11170 2019-07-24 Martin Sebor <msebor@redhat.com>
11172 PR tree-optimization/91183
11173 PR tree-optimization/86688
11174 * builtins.c (compute_objsize): Handle MEM_REF.
11175 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
11176 (get_min_string_length): Remove.
11177 (count_nonzero_bytes): New function.
11178 (handle_char_store): Rename...
11179 (handle_store): to this. Handle multibyte stores via integer types.
11180 (strlen_check_and_optimize_stmt): Adjust conditional and the called
11183 2019-07-24 Martin Sebor <msebor@redhat.com>
11186 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
11187 (diagnostic_report_diagnostic): Same.
11188 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
11189 (diagnostic_context::lang_mask): New data member.
11190 * ipa-pure-const.c (suggest_attribute): Use
11191 lang_hooks.option_lang_mask ().
11192 * opts-common.c (option_enabled): Handle new argument.
11193 (get_option_state): Pass an additional argument.
11194 * opts.c (print_filtered_help): Print supported languages for
11195 unsupported options. Adjust printing of current state.
11196 * opts.h (option_enabled): Add argument.
11197 * toplev.c (print_switch_values): Use lang_mask.
11198 (general_init): Set global_dc->lang_mask.
11200 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
11203 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
11205 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
11207 * cgraphunit.c (symbol_table::compile): Start and stop
11208 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
11209 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
11211 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
11213 * gimplify.c (flag_instrument_functions_exclude_p): Include
11214 namespace/class information in the printable name.
11215 * opts.c (add_comma_separated_to_vector): Add NUL terminator
11216 to tokens entered into the vector.
11218 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
11220 * tree-nested.c (build_simple_mem_ref_notrap): New function.
11221 (get_static_chain): Call it instead of build_simple_mem_ref.
11222 (get_frame_field): Likewise.
11223 (get_nonlocal_debug_decl): Likewise.
11224 (convert_nonlocal_reference_op): Likewise.
11226 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
11228 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
11230 (arc_compute_frame_size): Millicode is disabled when compiling
11232 (arc_return_address_register): Likewise.
11233 (arc_compute_function_type): Likewise.
11234 (arc_compute_frame_size): Likewise.
11235 (secondary_reload_info): Likewise.
11236 (arc_get_unalign): Likewise.
11237 (arc_can_use_return_insn): Declare.
11238 * config/arc/arc.c (AUX_LP_START): Define
11239 (AUX_LP_END): Likewise.
11240 (arc_frame_info): Update gmask member to 64-bit datum.
11241 (GMASK_LEN): Update.
11242 (arc_compute_function_type): Make it static, move it forward.
11243 (arc_must_save_register): Update, consider the extra regs.
11244 (arc_compute_millicode_save_restore_regs): Update to use the 64
11246 (arc_compute_frame_size): Likewise.
11247 (arc_enter_leave_p): Likewise.
11248 (arc_save_callee_saves): Likewise.
11249 (arc_restore_callee_saves): Likewise.
11250 (arc_save_callee_enter): Likewise.
11251 (arc_restore_callee_leave): Likewise.
11252 (arc_save_callee_milli): Likewise.
11253 (arc_restore_callee_milli): Likewise.
11254 (arc_expand_prologue): Add new interrupt handling.
11255 (arc_return_address_register): Make it static, move it forward.
11256 (arc_expand_epilogue): Add new interrupt handling.
11257 (arc_get_unalign): Delete.
11258 (arc_epilogue_uses): Make sure we do not remove the extra
11259 saved/restored registers when interrupt.
11260 (arc_can_use_return_insn): New function.
11261 (push_reg): Likewise.
11262 (pop_reg): Likewise.
11263 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
11265 (arc_restore_callee_saves): Likewise, but restoring.
11266 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
11267 (R33_REG): Likewise.
11268 (R34_REG): Likewise.
11269 (R35_REG): Likewise.
11270 (R36_REG): Likewise.
11271 (R37_REG): Likewise.
11272 (R38_REG): Likewise.
11273 (R39_REG): Likewise.
11274 (R45_REG): Likewise.
11275 (R46_REG): Likewise.
11276 (R47_REG): Likewise.
11277 (R48_REG): Likewise.
11278 (R49_REG): Likewise.
11279 (R50_REG): Likewise.
11280 (R51_REG): Likewise.
11281 (R52_REG): Likewise.
11282 (R53_REG): Likewise.
11283 (R54_REG): Likewise.
11284 (R55_REG): Likewise.
11285 (R56_REG): Likewise.
11286 (R58_REG): Likewise.
11287 (type): Add rtie attribute.
11288 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
11289 (movsi_insn): Accept moves to lp_count.
11290 (rtie): Update pattern.
11291 (simple_return): Simplify it, don't use this pattern as a return
11293 (arc600_rtie): New pattern.
11294 (p_return_i): Clean up.
11295 (return): Likewise.
11296 * config/arc/builtins.def (rtie): Only available for non ARC6xx
11298 * config/arc/predicates.md (move_src_operand): Consider lp_count
11301 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
11303 * config/s390/predicates.md (addv_const_operand): New predicate.
11304 * config/s390/s390-modes.def (CCO): New condition code mode.
11305 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
11306 (s390_branch_condition_mask): Likewise.
11307 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
11308 ("mulv<mode>4"): New expanders.
11309 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
11310 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
11311 pattern definitions.
11313 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11315 PR middle-end/91166
11316 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
11317 (define_predicates): Add entry for uniform_vector_p.
11318 (vec_same_elem_p): New match pattern.
11320 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
11323 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
11324 * config/i386/darwin32-biarch.h .. to here.
11325 * config/i386/darwin64-biarch.h: Adjust comments.
11326 * config/rs6000/darwin32-biarch.h: Likewise.
11327 * config/rs6000/darwin64-biarch.h: Likewise.
11328 * config.gcc: Missed commit from r273746
11329 (*-*-darwin*): Don't include CPU t-darwin here.
11330 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
11331 an error message if i686-darwin configuration is attempted for
11334 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
11337 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
11338 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
11339 an error message if i686-darwin configuration is attempted for
11341 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
11342 (powerpc-*-darwin*): Use biarch files where needed.
11343 (powerpc64-*-darwin*): Likewise.
11344 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
11345 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
11347 * config/i386/darwin32-biarch.h: New.
11348 * config/i386/darwin64.h: Rename.
11349 * config/i386/darwin64-biarch.h: To this.
11350 * config/i386/t-darwin: Rename.
11351 * config/i386/t-darwin32-biarch: To this.
11352 * config/i386/t-darwin64: Rename.
11353 * config/i386/t-darwin64-biarch: To this.
11354 * config/rs6000/darwin32-biarch.h: New.
11355 * config/rs6000/darwin64.h: Rename.
11356 * config/rs6000/darwin64-biarch.h: To this.
11357 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
11359 * config/rs6000/t-darwin8: Rename.
11360 * config/rs6000/t-darwin32-biarch: To this.
11361 * config/rs6000/t-darwin64 Rename.
11362 * config/rs6000/t-darwin64-biarch: To this.
11364 2019-07-23 Martin Sebor <msebor@redhat.com>
11366 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
11368 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
11370 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
11371 (rh): New alias for it.
11373 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
11375 * gdbhooks.py: Pass replace=True to
11376 gdb.printing.register_pretty_printer.
11378 2019-07-23 Richard Biener <rguenther@suse.de>
11381 * lto-streamer-in.c (input_function): Drop inline-entry markers
11382 that ended up with an unknown location block.
11384 2019-07-23 Richard Biener <rguenther@suse.de>
11386 PR tree-optimization/83518
11387 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
11388 init from a constant even when partial defs are already recorded.
11390 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11392 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
11393 * config/i386/znver1.md: Enable patterns for znver2 and add store
11394 variants which use extra AGU unit.
11396 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11398 * config/i386/i386-options.c (ix86_option_override_internal): Default
11399 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
11400 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
11403 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11405 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
11406 (znver2_costs): Update 256 bit SSE costs and multiplication.
11408 2019-07-23 Jan Beulich <jbeulich@suse.com>
11410 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
11411 Require only AVX512F.
11412 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
11413 alternative expanding to vpternlog.
11415 2019-07-23 Martin Liska <mliska@suse.cz>
11417 * dwarf2out.c (gen_producer_string): Canonize -flto=N
11418 to -flto in dwarf producer string.
11420 2019-07-23 Richard Biener <rguenther@suse.de>
11422 * tree-cfg.c (label_for_bb): Remove global var.
11423 (main_block_label): Take label_for_bb as argument.
11424 (cleanup_dead_labels_eh): Likewise, adjust.
11425 (cleanup_dead_labels): Adjust.
11427 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
11429 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
11430 Configurations): Add documentation for __builtin_mtfsf.
11432 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
11434 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
11435 * config/riscv/riscv.c (riscv_constant_alignment): Use
11436 riscv_align_data_type.
11437 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
11438 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
11439 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
11440 * config/riscv/riscv.opt (malign-data): New.
11441 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
11443 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
11445 * cgraph.c (dump_graphviz): New function.
11446 * cgraph.h (dump_graphviz): New function.
11447 * symtab.c (dump_graphviz): New function.
11449 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
11451 * config/aarch64/aarch64-simd.md
11452 (*aarch64_simd_sra<mode>): New.
11453 * config/aarch64/iterators.md
11454 (SHIFTRT): New iterator.
11455 (sra_op): New attribute.
11457 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11459 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
11460 callee-saved regs R4->R10 in an interrupt function that calls another
11463 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
11465 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
11466 (_mm_blendv_epi8): New.
11468 2019-07-22 Richard Biener <rguenther@suse.de>
11470 PR tree-optimization/91221
11471 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
11472 restrict partial-def handling of empty constructors and
11473 memset to refs with known offset.
11475 2019-07-22 Jan Beulich <jbeulich@suse.com>
11477 * config/i386/sse.md (ternlogsuffix): New.
11478 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
11480 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
11482 2019-07-22 Martin Liska <mliska@suse.cz>
11484 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
11486 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
11488 2019-07-22 Martin Liska <mliska@suse.cz>
11490 * lto-section-in.c (lto_get_section_data):
11491 Use new function get_compression.
11492 * lto-streamer-out.c (produce_lto_section): Use
11493 set_compression to encode compression algorithm.
11494 * lto-streamer.h (struct lto_section): Do not
11495 use bitfields in the format.
11497 2019-07-22 Martin Liska <mliska@suse.cz>
11500 * opts-common.c (decode_cmdline_option): Decode
11501 argument of -Werror and check it for a wrong language.
11502 * opts-global.c (complain_wrong_lang): Remove such case.
11504 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
11506 * config/arc/arc.c (prepare_move_operands): Always use an
11507 intermediate register when storing a TLS symbols.
11509 2019-07-22 Stafford Horne <shorne@gmail.com>
11511 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
11514 2019-07-22 Stafford Horne <shorne@gmail.com>
11516 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
11517 and munordered-float validations.
11518 * config/or1k/constraints.md (d): New register constraint.
11519 * config/or1k/predicates.md (fp_comparison_operator): New.
11520 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
11522 (or1k_expand_compare): Normalize unordered comparisons.
11523 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
11524 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
11525 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
11526 * config/or1k/or1k.md (type): Add fpu.
11527 (fpu): New instruction reservation.
11528 (F, f, fr, fi, FI, FOP, fop): New.
11529 (<fop><F:mode>3): New ALU instruction definition.
11530 (float<fi><F:mode>2): New conversion instruction definition.
11531 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
11532 (fpcmpcc): New code iterator.
11533 (*sf_fp_insn): New instruction definition.
11534 (cstore<F:mode>4): New expand definition.
11535 (cbranch<F:mode>4): New expand definition.
11536 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
11537 munordered-float): New options.
11538 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
11541 2019-07-22 Stafford Horne <shorne@gmail.com>
11543 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
11544 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
11545 documenation to be more clear.
11546 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
11548 * config/or1k/or1k.opt (mrori): New option.
11549 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
11550 msfimm, mshftimm): Rewrite documentation to be more clear.
11551 * config/or1k/or1k.md (insn_support): Add ror and rori.
11552 (enabled): Add conditions for ror and rori.
11553 (rotrsi3): Replace condition for shftimm with ror and rori.
11555 2019-07-22 Stafford Horne <shorne@gmail.com>
11558 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
11559 (extend<mode>si2): Update predicate.
11560 * config/or1k/predicates.md (volatile_mem_operand): New.
11561 (reg_or_mem_operand): New.
11563 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
11565 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
11566 * config/rs6000/rs6000-call.c: ... to here.
11568 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11570 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
11573 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11575 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
11577 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11579 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
11581 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11583 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
11584 (any_memory_operand): New predicate.
11585 (reg_or_mem_operand): Use it.
11587 2019-07-20 Jakub Jelinek <jakub@redhat.com>
11590 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
11592 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
11594 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
11595 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
11597 2019-07-20 Jakub Jelinek <jakub@redhat.com>
11599 * tree.def (OMP_LOOP): New tree code.
11600 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
11601 (enum omp_clause_bind_kind): New enum.
11602 (struct tree_omp_clause): Add subcode.bind_kind.
11603 * tree.h (OMP_LOOP_CHECK): Rename to ...
11604 (OMP_LOOPING_CHECK): ... this.
11605 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11606 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
11607 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
11608 (OMP_CLAUSE_BIND_KIND): Define.
11609 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11610 bind clause entries.
11611 (walk_tree_1): Handle OMP_CLAUSE_BIND.
11612 * tree-pretty-print.c (dump_omp_clause): Likewise.
11613 (dump_generic_node): Handle OMP_LOOP.
11614 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
11615 (in_omp_construct): New variable.
11616 (is_gimple_stmt): Handle OMP_LOOP.
11617 (gimplify_scan_omp_clauses): For lastprivate don't set
11618 check_non_private if code == OMP_LOOP. For reduction clause
11619 on OMP_LOOP combined with parallel or teams propagate as shared
11620 on the combined construct. Handle OMP_CLAUSE_BIND.
11621 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
11622 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
11623 for constructs from a loop construct to gimplify_scan_omp_clauses.
11624 Don't predetermine iterator linear on OMP_SIMD from loop construct.
11625 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
11626 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
11627 to match the implicit ORT_TARGET construct around whole body.
11628 Temporarily clear in_omp_construct when processing body.
11629 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
11630 etc. temporarily set in_omp_construct when processing body.
11631 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
11632 * omp-low.c (struct omp_context): Add loop_p.
11633 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
11634 in that the original var might be private.
11635 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
11636 (check_omp_nesting_restrictions): Adjust nesting restrictions for
11637 addition of loop construct.
11638 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
11640 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
11641 lastprivate non-addressable iterator of a collapse(1) simd.
11643 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
11645 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
11648 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
11650 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
11651 refer to default conditions. Warn for the 'y' spec which is ignored
11652 by current linkers.
11654 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
11656 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
11657 cpu_supports_info, builtin_hash_struct, builtin_hasher,
11658 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
11659 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
11660 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
11661 init_cumulative_args, rs6000_promote_function_mode,
11662 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
11663 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
11664 rs6000_function_arg_boundary, rs6000_parm_offset,
11665 rs6000_parm_start, rs6000_arg_size,
11666 rs6000_darwin64_record_arg_advance_flush,
11667 rs6000_darwin64_record_arg_advance_recurse,
11668 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
11669 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
11670 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
11671 rs6000_mixed_function_arg, rs6000_psave_function_arg,
11672 rs6000_finish_function_arg, rs6000_function_arg,
11673 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
11674 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
11675 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
11676 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
11677 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
11678 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
11679 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
11680 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
11681 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
11682 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
11683 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
11684 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
11685 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
11686 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
11687 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
11688 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
11689 get_element_number, altivec_expand_vec_set_builtin,
11690 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
11691 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
11692 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
11693 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
11694 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
11695 rs6000_expand_builtin, rs6000_vector_type,
11696 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
11697 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
11698 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
11700 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
11701 cpu_supports_info, builtin_hash_struct, builtin_hasher,
11702 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
11703 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
11704 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
11705 init_cumulative_args, rs6000_promote_function_mode,
11706 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
11707 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
11708 rs6000_function_arg_boundary, rs6000_parm_offset,
11709 rs6000_parm_start, rs6000_arg_size,
11710 rs6000_darwin64_record_arg_advance_flush,
11711 rs6000_darwin64_record_arg_advance_recurse,
11712 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
11713 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
11714 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
11715 rs6000_mixed_function_arg, rs6000_psave_function_arg,
11716 rs6000_finish_function_arg, rs6000_function_arg,
11717 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
11718 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
11719 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
11720 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
11721 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
11722 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
11723 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
11724 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
11725 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
11726 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
11727 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
11728 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
11729 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
11730 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
11731 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
11732 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
11733 get_element_number, altivec_expand_vec_set_builtin,
11734 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
11735 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
11736 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
11737 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
11738 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
11739 rs6000_expand_builtin, rs6000_vector_type,
11740 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
11741 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
11742 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
11743 to here from rs6000.c.
11744 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
11745 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
11746 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
11747 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
11748 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
11749 rs6000_return_in_memory, rs6000_return_in_msb,
11750 rs6000_pass_by_reference, setup_incoming_varargs,
11751 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
11752 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
11753 rs6000_function_arg_padding, rs6000_function_arg,
11754 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
11755 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
11756 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
11757 rs6000_passes_long_double, rs6000_passes_vector,
11758 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
11759 altivec_builtin_mask_for_load) Add declarations.
11760 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
11761 * config/config.gcc: Add new source file rs6000-call.c to garbage
11762 collector and extra_objs.
11764 2019-07-19 Jeff Law <law@redhat.com>
11766 PR tree-optimization/86061
11767 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
11768 strncpy. Drop some trivial dead code.
11769 (maybe_trim_memstar_call): Handle strncpy.
11771 2019-07-19 Richard Biener <rguenther@suse.de>
11773 PR tree-optimization/91211
11774 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
11775 memset encoding size.
11777 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
11780 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
11782 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
11785 * ipa-inline.c (recursive_inlining): Fix limits check.
11787 2019-07-19 Richard Biener <rguenther@suse.de>
11789 PR tree-optimization/91200
11790 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
11791 no PHI nodes in middle-bb.
11793 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
11795 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
11797 * config/aarch64/aarch64-option-extensions.def: Likewise.
11799 2019-07-19 Jakub Jelinek <jakub@redhat.com>
11801 PR middle-end/91190
11802 * function.c (insert_temp_slot_address): Store into the hash table
11803 a copy of address to avoid RTL sharing issues.
11805 2019-07-19 Richard Biener <rguenther@suse.de>
11807 PR tree-optimization/91207
11809 2019-07-17 Richard Biener <rguenther@suse.de>
11811 PR tree-optimization/91178
11812 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11813 loads with a gap larger than the vector size always use
11815 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11816 avoid loading vectors that are only contained in the gap
11817 and thus are not needed.
11819 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11821 * config/i386/i386.md (*addqi_2_slp): Remove.
11822 (*<code>qi_2_slp): Ditto.
11824 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
11826 * config/rs6000/predicates.md (prefixed_mem_operand): Call
11827 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
11828 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
11829 Rename function from rs6000_prefixed_address.
11830 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11832 (TARGET_TOC): Likewise.
11833 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11835 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11837 (TARGET_TOC): Likewise.
11838 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11840 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11842 (TARGET_TOC): Likewise.
11843 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11844 check to require -mcmodel=medium for pc-relative addressing.
11845 (create_TOC_reference): Add assertion for TARGET_TOC.
11846 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
11848 (rs6000_emit_move): Likewise.
11849 (TOC_alias_set): Rename TOC alias set static variable from 'set'
11850 to 'TOC_alias_set'.
11851 (get_TOC_alias_set): Likewise.
11852 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
11854 (rs6000_can_eliminate): Likewise.
11855 (rs6000_prefixed_address_mode_p): Rename function from
11856 rs6000_prefixed_address.
11857 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
11858 TARGET_HAS_TOC and not pc-relative.
11859 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
11860 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11862 (TARGET_TOC): Likewise.
11863 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11866 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11869 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
11870 for operand 0. Do not use (match_dup) to match operand 1 with
11871 operand 0. Add check in insn constraint that either input operand
11872 matches operand 0. Use SWI12 mode iterator to also handle
11874 (*and<mode>_1_slp): Ditto.
11875 (*<code>qi_1_slp): Ditto.
11876 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
11877 Do not use (match_dup) to match operand 1 with operand 0. Add
11878 check in insn constraint that operand 1 matches operand 0.
11879 Use SWI12 mode iterator to also handle HImode operands.
11880 (*ashl<mode>3_1_slp): Ditto.
11881 (*<shift_insn><mode>3_1_slp): Ditto.
11882 (*<rotate_insn><mode>3_1_slp): Ditto.
11884 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11886 * config/arm/arm-builtins.c
11887 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
11888 (arm_expand_unop_builtin): Likewise.
11889 * config/arm/crypto.md
11890 (crypto_sha1h): Convert from define_insn to define_expand.
11891 (crypto_<crypto_pattern>): Likewise.
11892 (crypto_sha1h_lb): New define_insn.
11893 (crypto_<crypto_pattern>_lb): Likewise.
11895 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11898 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
11899 (vsha1cq_u32): Likewise.
11900 (vsha1pq_u32): Likewise.
11901 (vsha1mq_u32): Likewise.
11902 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
11904 (crypto_sha1c): Correct vec select.
11905 (crypto_sha1m): Likewise.
11906 (crypto_sha1p): Likewise.
11908 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11910 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11911 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11912 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11913 (subdi_zesidi_zesidi): Likewise.
11914 (negdi2_compare, negdi2_insn): Likewise.
11915 (negdi_extensidi): Likewise.
11916 (negdi_zero_extendsidi): Likewise.
11917 (arm_cmpdi_insn): Likewise.
11918 (subsi3_carryin): Use arm_borrow_operation.
11919 (subsi3_carryin_const): Likewise.
11920 (subsi3_carryin_const0): Likewise.
11921 (subsi3_carryin_compare): Likewise.
11922 (subsi3_carryin_compare_const): Likewise.
11923 (subsi3_carryin_compare_const0): Likewise.
11924 (subsi3_carryin_shift): Likewise.
11925 (rsbsi3_carryin_shift): Likewise.
11926 (negsi2_carryin_compare): Likewise.
11928 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11930 PR tree-optimization/91137
11931 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11932 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11933 Init, use and fini the above new field.
11934 (determine_base_object_1): New function.
11935 (determine_base_object): Reimplement using walk_tree.
11937 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11939 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11940 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11941 CLEANUP_FORCE_FAST_DCE is set.
11942 * ifcvt.c (rest_of_handle_if_conversion): Pass
11943 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11944 if-conversion succeeded.
11946 2019-07-18 Richard Biener <rguenther@suse.de>
11948 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11949 branches to make code less indented.
11951 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11953 PR middle-end/81824
11954 * attribs.c (decls_mismatched_attributes): Simplify the logic
11955 that avoids duplicates and false positives.
11957 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11959 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11960 data into data section when generating PIC code.
11961 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11962 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11963 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11964 return 2 for SOM and 0 for other targets.
11966 2019-07-17 Jeff Law <law@redhat.com>
11968 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11969 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11970 avoid unexpected switch statement fallthru.
11972 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11974 * config/i386/i386.md (*add<dwi>3_doubleword):
11975 Remove redundant constraints.
11976 (*add<mode>_1): Ditto.
11979 (*addqi_1_slp): Ditto.
11980 (*add<mode>_2): Ditto.
11981 (*addv<mode>4): Ditto.
11982 (*sub<dwi>3_doubleword): Ditto.
11983 (*sub<mode>_1): Ditto.
11984 (*subqi_1_slp): Ditto.
11985 (*sub<mode>_2): Ditto.
11986 (*subv<mode>4): Ditto.
11987 (*sub<mode>_3): Ditto.
11988 (@add<mode>3_carry): Ditto.
11989 (@sub<mode>3_carry): Ditto.
11990 (*add<mode>3_cc_overflow_1): Ditto.
11991 (*add<mode>3_zext_cc_overflow_2): Ditto.
11993 (*and<mode>_1): Ditto.
11995 (*andqi_1_slp): Ditto.
11997 (*andqi_2_maybe_si): Ditto.
11998 (*and<mode>_2): Ditto.
11999 (*andqi_2_slp): Ditto.
12000 (*<code><mode>_1): Ditto.
12001 (*<code>qi_1): Ditto.
12002 (*<code>qi_1_slp): Ditto.
12003 (*<code><mode>_2): Ditto.
12004 (*<code>qi_2_slp): Ditto.
12006 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
12008 * alias.c (record_component_aliases): Do not simplify pointed-to
12009 types of ODR types.
12011 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
12013 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
12014 partial reg stall on alternative 2.
12016 2019-07-17 Richard Biener <rguenther@suse.de>
12018 PR tree-optimization/91178
12019 * tree-ssa.c (release_defs_bitset): Iterate from higher to
12020 lower SSA names to avoid quadratic behavior in the common case.
12021 * tree-data-ref.c (split_constant_offset): Add limit argument
12022 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
12023 (split_constant_offset_1): Add limit argument and use it to
12024 limit SSA def walking. Optimize the common plus/minus case.
12026 2019-07-17 Richard Biener <rguenther@suse.de>
12028 PR tree-optimization/91178
12029 * tree-vect-stmts.c (get_group_load_store_type): For SLP
12030 loads with a gap larger than the vector size always use
12032 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
12033 avoid loading vectors that are only contained in the gap
12034 and thus are not needed.
12036 2019-07-17 Richard Biener <rguenther@suse.de>
12038 PR tree-optimization/91180
12039 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
12040 computation for memset partial defs.
12042 2019-07-17 Jakub Jelinek <jakub@redhat.com>
12044 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
12045 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
12046 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
12047 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
12048 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
12049 * omp-grid.c (grid_process_grid_body,
12050 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
12051 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
12052 == GF_OMP_FOR_KIND_SIMD.
12053 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
12054 check_omp_nesting_restrictions, scan_omp_1_stmt,
12055 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
12056 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
12057 omp_find_scan): Likewise.
12058 * omp-expand.c (expand_omp_for): Likewise.
12059 * omp-general.c (omp_extract_for_data): Likewise.
12061 PR tree-optimization/91157
12062 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
12063 a vector boolean with scalar mode.
12064 (expand_vector_condition): Handle first operand being a vector boolean
12066 (expand_vector_operations_1): For comparisons, don't bail out early
12067 if the return type is vector boolean with scalar mode, but comparison
12068 operand type is not.
12070 2019-07-17 Richard Biener <rguenther@suse.de>
12072 PR tree-optimization/91181
12073 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
12074 IFN_LOADs as calls.
12076 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
12078 * config/i386/i386.md (*testdi_1): Match CCZmode for
12079 constants that might have the SImode sign bit set.
12080 (*testqi_1_maybe_si): Remove "!" constraint modifier.
12081 Use correct constraints for pentium pairing.
12082 (*test<mode>_1): Ditto.
12084 2019-07-16 Jeff Law <law@redhat.com>
12086 PR rtl-optimization/91173
12087 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
12088 SSA_NAME with a constant value, fold its value into the offset
12089 and clear the base before calling gen_addr_rtx.
12091 2019-07-16 Jakub Jelinek <jakub@redhat.com>
12093 PR rtl-optimization/91164
12094 * dse.c (rest_of_handle_dse): If dead edges have been purged,
12095 invalidate dominance info.
12097 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12099 * read-md.h (md_reader::record_potential_iterator_use): Add a
12100 file_location parameter.
12101 * read-rtl.c (attribute_use::loc): New field.
12102 (map_attr_string): Take a file_location parameter. Report cases
12103 in which attributes map to multiple distinct values.
12104 (apply_attribute_uses): Update call accordingly.
12105 (md_reader::handle_overloaded_name): Likewise.
12106 (md_reader::apply_iterator_to_string): Likewise. Skip empty
12108 (record_attribute_use): Take a file_location parameter.
12109 Initialize attribute_use::loc.
12110 (md_reader::record_potential_iterator_use): Take a file_location
12111 parameter. Update call to record_attribute_use.
12112 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
12113 (rtx_reader::read_rtx_code): Likewise.
12114 (rtx_reader::read_rtx_operand): Likewise. Record a location
12115 for implicitly-expanded empty strings.
12117 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12119 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
12120 Use file_location instead of separate fields.
12121 (md_reader::set_md_ptr_loc): Take a file_location instead of a
12122 separate filename and line number.
12123 * read-md.c (ptr_loc): As above.
12124 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
12125 (md_reader::fprint_md_ptr_loc): Likewise.
12126 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
12127 instead of a separate filename and line number.
12128 (md_reader::read_string): Update call accordingly.
12130 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12132 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
12133 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
12134 leaving the choice between SFDF and P implicit.
12135 (*mov<mode>_update2): Likewise.
12136 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
12137 rather than leaving the choice betweem IBM128 and GPR implicit.
12138 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
12139 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
12141 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
12142 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
12143 * config/rs6000/vsx.md
12144 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
12145 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
12146 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
12147 and VSX_EXTRACT_I implicit.
12149 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12151 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
12152 Explicitly use <MOVEP1:MODE> for the mode attribute.
12154 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
12157 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
12159 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
12162 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
12163 .machine directive.
12165 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
12167 * config/i386/i386.md (@test<mode>_ccno_1):
12168 Rename from test<mode>_ccno_1.
12169 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
12170 (*testqi_1_maybe_si): Remove modrm attribute.
12171 (*test<mode>_1): Ditto.
12172 * config/i386/i386-expand.c (ix86_split_idivmod): Use
12173 gen_test_ccno_1 and gen_extend_insn.
12175 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
12177 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
12180 2019-07-15 Richard Biener <rguenther@suse.de>
12182 PR middle-end/91162
12183 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
12184 node make sure to replace all uses with something valid.
12186 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
12188 PR tree-optimization/88497
12189 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
12190 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
12191 function undistribute_bitref_for_vector.
12192 (undistribute_bitref_for_vector): New function.
12193 (cleanup_vinfo_map): Likewise.
12194 (sort_by_mach_mode): Likewise.
12196 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
12198 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
12199 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
12200 and testdi_ccno_1 using SWI48 mode attribute.
12201 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
12202 x86_64_szext_general_operand.
12203 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
12204 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
12205 instead of genera_operand mode attribute.
12207 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
12209 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
12210 fopen and fclose to their respective types.
12211 (DotFn.invoke): Ditto.
12213 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
12215 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
12216 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
12217 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
12218 (array_index_predicate): Remove.
12219 (analyze_function_body): Account cost for variable ofsetted array
12221 (estimate_node_size_and_time): Do not compute array index hint.
12222 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
12223 (inline_read_section): Do not read array index hint.
12224 (ipa_fn_summary_write): Do not write array index hint.
12225 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
12226 * ipa-cp.c (hint_time_bonus): Remove.
12227 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
12228 (ipa_fnsummary): Remove array_index.
12229 * ipa-inline.c (want_inline_small_function_p): Do not use
12231 (edge_badness): Likewise.
12232 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
12234 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
12237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
12238 superfluous "builtin function" phrasing.
12240 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
12242 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
12244 (aliasing_component_refs_walk): Break out from ...
12245 (aliasing_component_refs_p): ... here.
12247 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
12250 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
12251 "builtin function" phrasing.
12253 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12256 * recog.h (temporary_volatile_ok): New class.
12257 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
12258 volatile_ok temporarily to true using temporary_volatile_ok.
12259 * expr.c (emit_block_move_via_cpymem): Likewise.
12260 * optabs.c (maybe_legitimize_operand): Likewise.
12262 2019-07-13 Jakub Jelinek <jakub@redhat.com>
12264 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
12265 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
12266 uses inside of order(concurrent) constructs.
12267 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
12268 OMP_CLAUSE_ORDER is seen.
12269 * omp-low.c (struct omp_context): Add order_concurrent member.
12270 (scan_sharing_clauses): Set ctx->order_concurrent if
12271 OMP_CLAUSE_ORDER is seen.
12272 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
12273 of simd order(concurrent). Diagnose constructs not allowed inside of
12274 for order(concurrent).
12275 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
12276 complaining about static double setjmp (double); or class static
12277 methods or non-global namespace setjmps.
12278 (omp_runtime_api_call): New function.
12279 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
12280 order(concurrent) loops.
12282 2019-07-12 Martin Sebor <msebor@redhat.com>
12284 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
12285 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
12286 * tree-vrp.c (vrp_prop::check_mem_ref): Use
12287 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
12289 2019-07-12 Jan Hubicka <jh@suse.cz>
12291 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
12292 (indirect_refs_may_alias_p): ... here.
12293 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
12294 mem refs in the access paths.
12296 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
12298 PR tree-optimization/89430
12299 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
12300 store elimination for local variable without address escape.
12302 2019-07-12 Jeff Law <law@redhat.com>
12304 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
12305 for the ".far" section.
12307 2019-07-12 Richard Biener <rguenther@suse.de>
12309 PR tree-optimization/91145
12310 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
12313 2019-07-12 Alexandre Oliva <oliva@adacore.com>
12315 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
12316 rather than this_state as the lowering context for the ELSE
12317 seq in a GIMPLE_EH_ELSE.
12319 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12321 * vector-builder.h (vector_builder::elt): Allow already-supplied
12322 elements to be read back before building is complete.
12324 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
12326 PR rtl-optimization/91136
12327 * df-core.c (ACCESSING REFS): Fix typos in comment.
12328 * resource.c (mark_target_live_reg): Add artificial defs that occur at
12329 the beginning of the block to the initial set of live registers.
12331 2019-07-12 Richard Biener <rguenther@suse.de>
12333 * fold-const.h (get_array_ctor_element_at_index): Adjust.
12334 * fold-const.c (get_array_ctor_element_at_index): Add
12335 ctor_idx output parameter informing the caller where in
12336 the constructor the element was (not) found. Add early exit
12337 for when the ctor is sorted.
12338 * gimple-fold.c (fold_array_ctor_reference): Support constant
12339 folding across multiple array elements.
12341 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
12343 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
12344 doesn't have location, set the current location to the function's end.
12346 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12348 * config/aarch64/aarch64.md (*compare_condjump<mode>)
12349 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
12350 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
12351 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
12352 * config/aarch64/aarch64-simd.md
12353 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12354 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
12355 * config/aarch64/aarch64-sve.md
12356 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
12357 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
12359 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12361 * doc/md.texi: Document that @ patterns can have different
12362 numbers of operands.
12363 * genemit.c (handle_overloaded_gen): Handle this case.
12364 * genopinit.c (handle_overloaded_gen): Likewise.
12365 * gensupport.c (replace_operands_with_dups): Iterate over
12366 the new rtx's format rather than the old one's.
12368 2019-07-12 Jakub Jelinek <jakub@redhat.com>
12370 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
12371 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12372 order clause entries.
12373 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
12374 * tree-pretty-print.c (dump_omp_clause): Likewise.
12375 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
12377 * omp-low.c (scan_sharing_clauses): Likewise.
12378 * tree-nested.c (convert_nonlocal_omp_clauses,
12379 convert_local_omp_clauses): Likewise.
12381 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
12383 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
12384 fallthrough target of current basic block isn't the placed
12387 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
12390 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
12391 (_mm512_storeu_epi64): Likewise.
12392 (_mm512_loadu_epi32): Likewise.
12393 (_mm512_storeu_epi32): Likewise.
12394 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
12395 (_mm_storeu_epi64): Likewise.
12396 (_mm256_storeu_epi32): Likewise.
12397 (_mm_storeu_epi32): Likewise.
12399 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
12401 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
12403 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
12405 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
12408 2019-07-11 Jakub Jelinek <jakub@redhat.com>
12411 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
12412 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
12413 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
12414 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
12415 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
12416 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
12418 (ufix_truncv2dfv2si2<mask_name>): Change into ...
12419 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
12420 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
12422 (sse2_cvttpd2dq<mask_name>): Change into ...
12423 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
12424 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
12425 (*sse2_cvtpd2dq<mask_name>): Change into ...
12426 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
12427 Add "C" constraint to const0_operand.
12428 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
12429 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
12433 * config/i386/i386-builtin-types.def
12434 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
12435 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
12436 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
12437 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
12438 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
12439 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
12440 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
12441 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
12442 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
12443 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
12444 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
12445 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
12446 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
12447 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
12448 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
12449 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
12450 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
12451 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
12452 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
12453 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
12454 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
12455 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
12456 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
12457 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
12458 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
12459 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
12460 __builtin_ia32_vpdpbusd_v4si_maskz,
12461 __builtin_ia32_vpdpbusds_v16si_mask,
12462 __builtin_ia32_vpdpbusds_v16si_maskz,
12463 __builtin_ia32_vpdpbusds_v8si_mask,
12464 __builtin_ia32_vpdpbusds_v8si_maskz,
12465 __builtin_ia32_vpdpbusds_v4si_mask,
12466 __builtin_ia32_vpdpbusds_v4si_maskz,
12467 __builtin_ia32_vpdpwssd_v16si_mask,
12468 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
12469 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
12470 __builtin_ia32_vpdpwssd_v4si_maskz,
12471 __builtin_ia32_vpdpwssds_v16si_mask,
12472 __builtin_ia32_vpdpwssds_v16si_maskz,
12473 __builtin_ia32_vpdpwssds_v8si_mask,
12474 __builtin_ia32_vpdpwssds_v8si_maskz,
12475 __builtin_ia32_vpdpwssds_v4si_mask,
12476 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
12477 suffixed types rather than *_INT.
12478 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
12479 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
12480 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
12481 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
12482 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
12483 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
12485 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
12487 * tree-vrp.c (intersect_ranges): If we know the intersection is
12488 empty, there is no need to conservatively add anything else to
12491 2019-07-11 Richard Biener <rguenther@suse.de>
12493 PR middle-end/91131
12494 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
12495 when the object is volatile and we have not cleared it even though
12496 there are no nonzero elements.
12498 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
12500 * config/rs6000/predicates.md (cint34_operand): Update
12501 SIGNED_34BIT_OFFSET_P call.
12502 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
12503 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
12504 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
12505 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
12506 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
12508 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
12509 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
12510 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
12511 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
12512 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
12514 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
12516 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
12517 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
12518 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
12519 (DEF_MIN_OSX_VERSION): New.
12521 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
12523 * fold-const.c (fold_relational_const): Fix folding of
12524 vector-to-scalar NE_EXPRs.
12525 (test_vector_folding): Add more tests.
12527 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
12530 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
12531 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
12532 (vec_setv2di_internal): Reexpress as...
12533 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
12534 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
12535 rather than gen_neon_vset_lane<mode>.
12537 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
12540 * lra-constraints.c (process_alt_operands): Don't match user
12541 defined regs only if they are early clobbers.
12543 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
12545 * wide-int.h (wi::lshift): Reject negative values for the fast path.
12547 2019-07-10 Richard Biener <rguenther@suse.de>
12549 PR tree-optimization/91126
12550 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
12551 native encoding offset for BYTES_BIG_ENDIAN.
12552 (vn_reference_lookup_3): Likewise.
12554 2019-07-10 Richard Biener <rguenther@suse.de>
12556 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
12557 LHS whenever possible.
12559 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
12561 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
12562 from ...; work also on duplicated types.
12563 (nonoverlapping_component_refs_since_match): ... here
12564 (ncr_type_uid): Break out from ...
12565 (ncr_compar): ... here; look for TYPE_UID of canonical type if
12567 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
12568 the types and nonoverlapping_component_refs_p_1 to disambiguate.
12570 2019-07-09 Martin Sebor <msebor@redhat.com>
12572 PR tree-optimization/90989
12573 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
12574 optimization to just single character stores.
12576 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
12578 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
12579 Swap operands only once.
12581 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12583 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
12584 for both call instructions.
12586 2019-07-09 John Darrington <john@darrington.wattle.id.au>
12588 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
12589 rather than GET_MODE_BITSIZE to better handle partial integer modes.
12591 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
12593 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
12594 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
12595 function from rs6000-logue.c back to rs6000.c.
12596 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
12598 2019-07-09 Martin Sebor <msebor@redhat.com>
12601 * auto-profile.c: Change class-key of PODs to struct and others
12603 * basic-block.h: Same.
12604 * bitmap.c (bitmap_alloc): Same.
12606 * builtins.c (expand_builtin_prefetch): Same.
12607 (expand_builtin_interclass_mathfn): Same.
12608 (expand_builtin_strlen): Same.
12609 (expand_builtin_mempcpy_args): Same.
12610 (expand_cmpstr): Same.
12611 (expand_builtin___clear_cache): Same.
12612 (expand_ifn_atomic_bit_test_and): Same.
12613 (expand_builtin_thread_pointer): Same.
12614 (expand_builtin_set_thread_pointer): Same.
12615 * caller-save.c (setup_save_areas): Same.
12616 (replace_reg_with_saved_mem): Same.
12617 (insert_restore): Same.
12618 (insert_save): Same.
12619 (add_used_regs): Same.
12620 * cfg.c (get_bb_copy): Same.
12621 (set_loop_copy): Same.
12624 * cfgexpand.c (alloc_stack_frame_space): Same.
12625 (add_stack_var): Same.
12626 (add_stack_var_conflict): Same.
12627 (add_scope_conflicts_1): Same.
12628 (update_alias_info_with_stack_vars): Same.
12629 (expand_used_vars): Same.
12630 * cfghooks.c (redirect_edge_and_branch_force): Same.
12631 (delete_basic_block): Same.
12632 (split_edge): Same.
12633 (make_forwarder_block): Same.
12634 (force_nonfallthru): Same.
12635 (duplicate_block): Same.
12636 (lv_flush_pending_stmts): Same.
12637 * cfghooks.h: Same.
12638 * cfgloop.c (flow_loops_cfg_dump): Same.
12639 (flow_loop_nested_p): Same.
12640 (superloop_at_depth): Same.
12641 (get_loop_latch_edges): Same.
12642 (flow_loop_dump): Same.
12643 (flow_loops_dump): Same.
12644 (flow_loops_free): Same.
12645 (flow_loop_nodes_find): Same.
12646 (establish_preds): Same.
12647 (flow_loop_tree_node_add): Same.
12648 (flow_loop_tree_node_remove): Same.
12649 (flow_loops_find): Same.
12650 (find_subloop_latch_edge_by_profile): Same.
12651 (find_subloop_latch_edge_by_ivs): Same.
12652 (mfb_redirect_edges_in_set): Same.
12653 (form_subloop): Same.
12654 (merge_latch_edges): Same.
12655 (disambiguate_multiple_latches): Same.
12656 (disambiguate_loops_with_multiple_latches): Same.
12657 (flow_bb_inside_loop_p): Same.
12658 (glb_enum_p): Same.
12659 (get_loop_body_with_size): Same.
12660 (get_loop_body): Same.
12661 (fill_sons_in_loop): Same.
12662 (get_loop_body_in_dom_order): Same.
12663 (get_loop_body_in_custom_order): Same.
12664 (release_recorded_exits): Same.
12665 (get_loop_exit_edges): Same.
12666 (num_loop_branches): Same.
12667 (remove_bb_from_loops): Same.
12668 (find_common_loop): Same.
12669 (delete_loop): Same.
12670 (cancel_loop): Same.
12671 (verify_loop_structure): Same.
12672 (loop_preheader_edge): Same.
12673 (loop_exit_edge_p): Same.
12674 (single_exit): Same.
12675 (loop_exits_to_bb_p): Same.
12676 (loop_exits_from_bb_p): Same.
12677 (get_loop_location): Same.
12678 (record_niter_bound): Same.
12679 (get_estimated_loop_iterations_int): Same.
12680 (max_stmt_executions_int): Same.
12681 (likely_max_stmt_executions_int): Same.
12682 (get_estimated_loop_iterations): Same.
12683 (get_max_loop_iterations): Same.
12684 (get_max_loop_iterations_int): Same.
12685 (get_likely_max_loop_iterations): Same.
12686 * cfgloop.h (simple_loop_desc): Same.
12688 (loop_depth): Same.
12689 (loop_outer): Same.
12690 (loop_iterator::next): Same.
12691 (loop_outermost): Same.
12692 * cfgloopanal.c (mark_irreducible_loops): Same.
12693 (num_loop_insns): Same.
12694 (average_num_loop_insns): Same.
12695 (expected_loop_iterations_unbounded): Same.
12696 (expected_loop_iterations): Same.
12697 (mark_loop_exit_edges): Same.
12698 (single_likely_exit): Same.
12699 * cfgloopmanip.c (fix_bb_placement): Same.
12700 (fix_bb_placements): Same.
12701 (remove_path): Same.
12702 (place_new_loop): Same.
12704 (scale_loop_frequencies): Same.
12705 (scale_loop_profile): Same.
12706 (create_empty_if_region_on_edge): Same.
12707 (create_empty_loop_on_edge): Same.
12710 (fix_loop_placements): Same.
12711 (copy_loop_info): Same.
12712 (duplicate_loop): Same.
12713 (duplicate_subloops): Same.
12714 (loop_redirect_edge): Same.
12715 (can_duplicate_loop_p): Same.
12716 (duplicate_loop_to_header_edge): Same.
12717 (mfb_keep_just): Same.
12718 (has_preds_from_loop): Same.
12719 (create_preheader): Same.
12720 (create_preheaders): Same.
12721 (lv_adjust_loop_entry_edge): Same.
12722 (loop_version): Same.
12723 * cfgloopmanip.h: Same.
12725 * cgraphbuild.c: Same.
12726 * combine.c (make_extraction): Same.
12727 * config/i386/i386-features.c: Same.
12728 * config/i386/i386-features.h: Same.
12729 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
12730 (ix86_emit_outlined_ms2sysv_restore): Same.
12731 (ix86_noce_conversion_profitable_p): Same.
12732 (ix86_init_cost): Same.
12733 (ix86_simd_clone_usable): Same.
12734 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
12736 * coretypes.h: Same.
12737 * data-streamer-in.c (string_for_index): Change class-key of PODs
12738 to struct and others to class.
12739 (streamer_read_indexed_string): Same.
12740 (streamer_read_string): Same.
12741 (bp_unpack_indexed_string): Same.
12742 (bp_unpack_string): Same.
12743 (streamer_read_uhwi): Same.
12744 (streamer_read_hwi): Same.
12745 (streamer_read_gcov_count): Same.
12746 (streamer_read_wide_int): Same.
12747 * data-streamer.h (streamer_write_bitpack): Same.
12748 (bp_unpack_value): Same.
12749 (streamer_write_char_stream): Same.
12750 (streamer_write_hwi_in_range): Same.
12751 (streamer_write_record_start): Same.
12752 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
12753 (add_cross_iteration_register_deps): Same.
12754 (build_intra_loop_deps): Same.
12755 * df-core.c (df_analyze): Same.
12756 (loop_post_order_compute): Same.
12757 (loop_inverted_post_order_compute): Same.
12758 * df-problems.c (df_rd_alloc): Same.
12759 (df_rd_simulate_one_insn): Same.
12760 (df_rd_local_compute): Same.
12761 (df_rd_init_solution): Same.
12762 (df_rd_confluence_n): Same.
12763 (df_rd_transfer_function): Same.
12764 (df_rd_free): Same.
12765 (df_rd_dump_defs_set): Same.
12766 (df_rd_top_dump): Same.
12767 (df_lr_alloc): Same.
12768 (df_lr_reset): Same.
12769 (df_lr_local_compute): Same.
12770 (df_lr_init): Same.
12771 (df_lr_confluence_n): Same.
12772 (df_lr_free): Same.
12773 (df_lr_top_dump): Same.
12774 (df_lr_verify_transfer_functions): Same.
12775 (df_live_alloc): Same.
12776 (df_live_reset): Same.
12777 (df_live_init): Same.
12778 (df_live_confluence_n): Same.
12779 (df_live_finalize): Same.
12780 (df_live_free): Same.
12781 (df_live_top_dump): Same.
12782 (df_live_verify_transfer_functions): Same.
12783 (df_mir_alloc): Same.
12784 (df_mir_reset): Same.
12785 (df_mir_init): Same.
12786 (df_mir_confluence_n): Same.
12787 (df_mir_free): Same.
12788 (df_mir_top_dump): Same.
12789 (df_word_lr_alloc): Same.
12790 (df_word_lr_reset): Same.
12791 (df_word_lr_init): Same.
12792 (df_word_lr_confluence_n): Same.
12793 (df_word_lr_free): Same.
12794 (df_word_lr_top_dump): Same.
12795 (df_md_alloc): Same.
12796 (df_md_simulate_one_insn): Same.
12797 (df_md_reset): Same.
12798 (df_md_init): Same.
12799 (df_md_free): Same.
12800 (df_md_top_dump): Same.
12801 * df-scan.c (df_insn_delete): Same.
12802 (df_insn_rescan): Same.
12803 (df_notes_rescan): Same.
12804 (df_sort_and_compress_mws): Same.
12805 (df_install_mws): Same.
12806 (df_refs_add_to_chains): Same.
12807 (df_ref_create_structure): Same.
12808 (df_ref_record): Same.
12809 (df_def_record_1): Same.
12810 (df_find_hard_reg_defs): Same.
12811 (df_uses_record): Same.
12812 (df_get_conditional_uses): Same.
12813 (df_get_call_refs): Same.
12814 (df_recompute_luids): Same.
12815 (df_get_entry_block_def_set): Same.
12816 (df_entry_block_defs_collect): Same.
12817 (df_get_exit_block_use_set): Same.
12818 (df_exit_block_uses_collect): Same.
12819 (df_mws_verify): Same.
12820 (df_bb_verify): Same.
12821 * df.h (df_scan_get_bb_info): Same.
12822 * doc/tm.texi: Same.
12823 * dse.c (record_store): Same.
12824 * dumpfile.h: Same.
12825 * emit-rtl.c (const_fixed_hasher::equal): Same.
12826 (set_mem_attributes_minus_bitpos): Same.
12827 (change_address): Same.
12828 (adjust_address_1): Same.
12829 (offset_address): Same.
12830 * emit-rtl.h: Same.
12831 * except.c (dw2_build_landing_pads): Same.
12832 (sjlj_emit_dispatch_table): Same.
12833 * explow.c (allocate_dynamic_stack_space): Same.
12834 (emit_stack_probe): Same.
12835 (probe_stack_range): Same.
12836 * expmed.c (store_bit_field_using_insv): Same.
12837 (store_bit_field_1): Same.
12838 (store_integral_bit_field): Same.
12839 (extract_bit_field_using_extv): Same.
12840 (extract_bit_field_1): Same.
12841 (emit_cstore): Same.
12842 * expr.c (emit_block_move_via_cpymem): Same.
12843 (expand_cmpstrn_or_cmpmem): Same.
12844 (set_storage_via_setmem): Same.
12845 (emit_single_push_insn_1): Same.
12846 (expand_assignment): Same.
12847 (store_constructor): Same.
12848 (expand_expr_real_2): Same.
12849 (expand_expr_real_1): Same.
12850 (try_casesi): Same.
12852 * function.c (try_fit_stack_local): Same.
12853 (assign_stack_local_1): Same.
12854 (assign_stack_local): Same.
12855 (cut_slot_from_list): Same.
12856 (insert_slot_to_list): Same.
12857 (max_slot_level): Same.
12858 (move_slot_to_level): Same.
12859 (temp_address_hasher::equal): Same.
12860 (remove_unused_temp_slot_addresses): Same.
12861 (assign_temp): Same.
12862 (combine_temp_slots): Same.
12863 (update_temp_slot_address): Same.
12864 (preserve_temp_slots): Same.
12865 * function.h: Same.
12867 * gcc-rich-location.h: Same.
12869 * genattrtab.c (check_attr_test): Same.
12870 (check_attr_value): Same.
12871 (convert_set_attr_alternative): Same.
12872 (convert_set_attr): Same.
12873 (check_defs): Same.
12874 (copy_boolean): Same.
12875 (get_attr_value): Same.
12876 (expand_delays): Same.
12877 (make_length_attrs): Same.
12879 (make_alternative_compare): Same.
12880 (simplify_test_exp): Same.
12881 (tests_attr_p): Same.
12882 (get_attr_order): Same.
12883 (clear_struct_flag): Same.
12885 (compares_alternatives_p): Same.
12888 (find_attrs_to_cache): Same.
12889 (write_test_expr): Same.
12890 (walk_attr_value): Same.
12891 (write_attr_get): Same.
12892 (eliminate_known_true): Same.
12893 (write_insn_cases): Same.
12894 (write_attr_case): Same.
12895 (write_attr_valueq): Same.
12896 (write_attr_value): Same.
12897 (write_dummy_eligible_delay): Same.
12898 (next_comma_elt): Same.
12900 (make_internal_attr): Same.
12901 (copy_rtx_unchanging): Same.
12902 (gen_insn_reserv): Same.
12903 (check_tune_attr): Same.
12904 (make_automaton_attrs): Same.
12905 (handle_arg): Same.
12906 * genextract.c (gen_insn): Same.
12907 (VEC_char_to_string): Same.
12908 * genmatch.c (print_operand): Same.
12910 (parser::parse_operation): Same.
12911 (parser::parse_capture): Same.
12912 (parser::parse_c_expr): Same.
12913 (parser::parse_simplify): Same.
12915 * genoutput.c (output_operand_data): Same.
12916 (output_get_insn_name): Same.
12917 (compare_operands): Same.
12918 (place_operands): Same.
12919 (process_template): Same.
12920 (validate_insn_alternatives): Same.
12921 (validate_insn_operands): Same.
12922 (gen_expand): Same.
12923 (note_constraint): Same.
12924 * genpreds.c (write_one_predicate_function): Same.
12925 (add_constraint): Same.
12926 (process_define_register_constraint): Same.
12927 (write_lookup_constraint_1): Same.
12928 (write_lookup_constraint_array): Same.
12929 (write_insn_constraint_len): Same.
12930 (write_reg_class_for_constraint_1): Same.
12931 (write_constraint_satisfied_p_array): Same.
12932 * genrecog.c (optimize_subroutine_group): Same.
12933 * gensupport.c (process_define_predicate): Same.
12934 (queue_pattern): Same.
12935 (remove_from_queue): Same.
12936 (process_rtx): Same.
12937 (is_predicable): Same.
12938 (change_subst_attribute): Same.
12939 (subst_pattern_match): Same.
12940 (alter_constraints): Same.
12941 (alter_attrs_for_insn): Same.
12942 (shift_output_template): Same.
12943 (alter_output_for_subst_insn): Same.
12944 (process_one_cond_exec): Same.
12946 (process_define_cond_exec): Same.
12947 (mnemonic_htab_callback): Same.
12948 (gen_mnemonic_attr): Same.
12949 (read_md_rtx): Same.
12950 * ggc-page.c: Same.
12951 * gimple-loop-interchange.cc (dump_reduction): Same.
12952 (dump_induction): Same.
12953 (loop_cand::~loop_cand): Same.
12954 (free_data_refs_with_aux): Same.
12955 (tree_loop_interchange::interchange_loops): Same.
12956 (tree_loop_interchange::map_inductions_to_loop): Same.
12957 (tree_loop_interchange::move_code_to_inner_loop): Same.
12958 (compute_access_stride): Same.
12959 (compute_access_strides): Same.
12960 (proper_loop_form_for_interchange): Same.
12961 (tree_loop_interchange_compute_ddrs): Same.
12962 (prune_datarefs_not_in_loop): Same.
12963 (prepare_data_references): Same.
12964 (pass_linterchange::execute): Same.
12965 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12966 (unroll_jam_possible_p): Same.
12967 (fuse_loops): Same.
12968 (adjust_unroll_factor): Same.
12969 (tree_loop_unroll_and_jam): Same.
12970 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12971 (loop_versioning::expensive_stmt_p): Same.
12972 (loop_versioning::version_for_unity): Same.
12973 (loop_versioning::dump_inner_likelihood): Same.
12974 (loop_versioning::find_per_loop_multiplication): Same.
12975 (loop_versioning::analyze_term_using_scevs): Same.
12976 (loop_versioning::record_address_fragment): Same.
12977 (loop_versioning::analyze_expr): Same.
12978 (loop_versioning::analyze_blocks): Same.
12979 (loop_versioning::prune_conditions): Same.
12980 (loop_versioning::merge_loop_info): Same.
12981 (loop_versioning::add_loop_to_queue): Same.
12982 (loop_versioning::decide_whether_loop_is_versionable): Same.
12983 (loop_versioning::make_versioning_decisions): Same.
12984 (loop_versioning::implement_versioning_decisions): Same.
12985 * gimple-ssa-evrp-analyze.c
12986 (evrp_range_analyzer::record_ranges_from_phis): Same.
12987 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12988 (count_multiple_uses): Same.
12989 (split_group): Same.
12990 (imm_store_chain_info::output_merged_store): Same.
12991 (pass_store_merging::process_store): Same.
12992 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12993 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12995 (alloca_call_type): Same.
12996 (pass_walloca::execute): Same.
12997 * gimple-streamer-in.c (input_phi): Same.
12998 (input_gimple_stmt): Same.
12999 * gimple-streamer.h: Same.
13000 * godump.c (go_force_record_alignment): Same.
13001 (go_format_type): Same.
13002 (go_output_type): Same.
13003 (go_output_fndecl): Same.
13004 (go_output_typedef): Same.
13005 (keyword_hash_init): Same.
13006 (find_dummy_types): Same.
13007 * graph.c (draw_cfg_nodes_no_loops): Same.
13008 (draw_cfg_nodes_for_loop): Same.
13009 * hard-reg-set.h (hard_reg_set_iter_next): Same.
13010 * hsa-brig.c: Same.
13011 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
13012 * hsa-dump.c (dump_hsa_cfun): Same.
13013 * hsa-gen.c (gen_function_def_parameters): Same.
13014 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
13015 * input.c (dump_line_table_statistics): Same.
13016 (test_lexer): Same.
13018 * internal-fn.c (get_multi_vector_move): Same.
13019 (expand_load_lanes_optab_fn): Same.
13020 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
13021 (expand_GOMP_SIMT_EXIT): Same.
13022 (expand_GOMP_SIMT_LAST_LANE): Same.
13023 (expand_GOMP_SIMT_ORDERED_PRED): Same.
13024 (expand_GOMP_SIMT_VOTE_ANY): Same.
13025 (expand_GOMP_SIMT_XCHG_BFLY): Same.
13026 (expand_GOMP_SIMT_XCHG_IDX): Same.
13027 (expand_addsub_overflow): Same.
13028 (expand_neg_overflow): Same.
13029 (expand_mul_overflow): Same.
13030 (expand_call_mem_ref): Same.
13031 (expand_mask_load_optab_fn): Same.
13032 (expand_scatter_store_optab_fn): Same.
13033 (expand_gather_load_optab_fn): Same.
13034 * ipa-cp.c (ipa_get_parm_lattices): Same.
13035 (print_all_lattices): Same.
13036 (ignore_edge_p): Same.
13037 (build_toporder_info): Same.
13038 (free_toporder_info): Same.
13039 (push_node_to_stack): Same.
13040 (ipcp_lattice<valtype>::set_contains_variable): Same.
13041 (set_agg_lats_to_bottom): Same.
13042 (ipcp_bits_lattice::meet_with): Same.
13043 (set_single_call_flag): Same.
13044 (initialize_node_lattices): Same.
13045 (ipa_get_jf_ancestor_result): Same.
13046 (ipcp_verify_propagated_values): Same.
13047 (propagate_scalar_across_jump_function): Same.
13048 (propagate_context_across_jump_function): Same.
13049 (propagate_bits_across_jump_function): Same.
13050 (ipa_vr_operation_and_type_effects): Same.
13051 (propagate_vr_across_jump_function): Same.
13052 (set_check_aggs_by_ref): Same.
13053 (set_chain_of_aglats_contains_variable): Same.
13054 (merge_aggregate_lattices): Same.
13055 (agg_pass_through_permissible_p): Same.
13056 (propagate_aggs_across_jump_function): Same.
13057 (call_passes_through_thunk_p): Same.
13058 (propagate_constants_across_call): Same.
13059 (devirtualization_time_bonus): Same.
13060 (good_cloning_opportunity_p): Same.
13061 (context_independent_aggregate_values): Same.
13062 (gather_context_independent_values): Same.
13063 (perform_estimation_of_a_value): Same.
13064 (estimate_local_effects): Same.
13065 (value_topo_info<valtype>::add_val): Same.
13066 (add_all_node_vals_to_toposort): Same.
13067 (value_topo_info<valtype>::propagate_effects): Same.
13068 (ipcp_propagate_stage): Same.
13069 (ipcp_discover_new_direct_edges): Same.
13070 (same_node_or_its_all_contexts_clone_p): Same.
13071 (cgraph_edge_brings_value_p): Same.
13072 (gather_edges_for_value): Same.
13073 (create_specialized_node): Same.
13074 (find_more_scalar_values_for_callers_subset): Same.
13075 (find_more_contexts_for_caller_subset): Same.
13076 (copy_plats_to_inter): Same.
13077 (intersect_aggregates_with_edge): Same.
13078 (find_aggregate_values_for_callers_subset): Same.
13079 (cgraph_edge_brings_all_agg_vals_for_node): Same.
13080 (decide_about_value): Same.
13081 (decide_whether_version_node): Same.
13082 (spread_undeadness): Same.
13083 (identify_dead_nodes): Same.
13084 (ipcp_store_vr_results): Same.
13085 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
13086 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
13087 (redirect_to_unreachable): Same.
13088 (edge_set_predicate): Same.
13089 (evaluate_conditions_for_known_args): Same.
13090 (evaluate_properties_for_edge): Same.
13091 (ipa_fn_summary_t::duplicate): Same.
13092 (ipa_call_summary_t::duplicate): Same.
13093 (dump_ipa_call_summary): Same.
13094 (ipa_dump_fn_summary): Same.
13095 (eliminated_by_inlining_prob): Same.
13096 (set_cond_stmt_execution_predicate): Same.
13097 (set_switch_stmt_execution_predicate): Same.
13098 (compute_bb_predicates): Same.
13099 (will_be_nonconstant_expr_predicate): Same.
13100 (phi_result_unknown_predicate): Same.
13101 (analyze_function_body): Same.
13102 (compute_fn_summary): Same.
13103 (estimate_edge_devirt_benefit): Same.
13104 (estimate_edge_size_and_time): Same.
13105 (estimate_calls_size_and_time): Same.
13106 (estimate_node_size_and_time): Same.
13107 (remap_edge_change_prob): Same.
13108 (remap_edge_summaries): Same.
13109 (ipa_merge_fn_summary_after_inlining): Same.
13110 (ipa_fn_summary_generate): Same.
13111 (inline_read_section): Same.
13112 (ipa_fn_summary_read): Same.
13113 (ipa_fn_summary_write): Same.
13114 * ipa-fnsummary.h: Same.
13115 * ipa-hsa.c (ipa_hsa_read_section): Same.
13116 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
13117 * ipa-icf.c (sem_function::param_used_p): Same.
13118 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
13119 * ipa-inline.c (edge_badness): Same.
13120 (inline_small_functions): Same.
13121 * ipa-polymorphic-call.c
13122 (ipa_polymorphic_call_context::stream_out): Same.
13123 * ipa-predicate.c (predicate::remap_after_duplication): Same.
13124 (predicate::remap_after_inlining): Same.
13125 (predicate::stream_out): Same.
13126 * ipa-predicate.h: Same.
13127 * ipa-profile.c (ipa_profile_read_summary): Same.
13128 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
13129 (count_formal_params): Same.
13130 (ipa_dump_param): Same.
13131 (ipa_alloc_node_params): Same.
13132 (ipa_print_node_jump_functions_for_edge): Same.
13133 (ipa_print_node_jump_functions): Same.
13134 (ipa_load_from_parm_agg): Same.
13135 (get_ancestor_addr_info): Same.
13136 (ipa_compute_jump_functions_for_edge): Same.
13137 (ipa_analyze_virtual_call_uses): Same.
13138 (ipa_analyze_stmt_uses): Same.
13139 (ipa_analyze_params_uses_in_bb): Same.
13140 (update_jump_functions_after_inlining): Same.
13141 (try_decrement_rdesc_refcount): Same.
13142 (ipa_impossible_devirt_target): Same.
13143 (update_indirect_edges_after_inlining): Same.
13144 (combine_controlled_uses_counters): Same.
13145 (ipa_edge_args_sum_t::duplicate): Same.
13146 (ipa_write_jump_function): Same.
13147 (ipa_write_indirect_edge_info): Same.
13148 (ipa_write_node_info): Same.
13149 (ipa_read_edge_info): Same.
13150 (ipa_prop_read_section): Same.
13151 (read_replacements_section): Same.
13152 * ipa-prop.h (ipa_get_param_count): Same.
13153 (ipa_get_param): Same.
13154 (ipa_get_type): Same.
13155 (ipa_get_param_move_cost): Same.
13156 (ipa_set_param_used): Same.
13157 (ipa_get_controlled_uses): Same.
13158 (ipa_set_controlled_uses): Same.
13159 (ipa_get_cs_argument_count): Same.
13160 * ipa-pure-const.c (analyze_function): Same.
13161 (pure_const_read_summary): Same.
13163 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
13164 * ipa-split.c (test_nonssa_use): Same.
13165 (dump_split_point): Same.
13166 (dominated_by_forbidden): Same.
13167 (split_part_set_ssa_name_p): Same.
13168 (find_split_points): Same.
13169 * ira-build.c (finish_loop_tree_nodes): Same.
13170 (low_pressure_loop_node_p): Same.
13171 * ira-color.c (ira_reuse_stack_slot): Same.
13173 * ira.c (setup_reg_equiv): Same.
13174 (print_insn_chain): Same.
13176 * loop-doloop.c (doloop_condition_get): Same.
13178 (record_reg_sets): Same.
13179 (doloop_optimize): Same.
13180 * loop-init.c (loop_optimizer_init): Same.
13181 (fix_loop_structure): Same.
13182 * loop-invariant.c (merge_identical_invariants): Same.
13183 (compute_always_reached): Same.
13184 (find_exits): Same.
13185 (may_assign_reg_p): Same.
13186 (find_invariants_bb): Same.
13187 (find_invariants_body): Same.
13188 (replace_uses): Same.
13189 (can_move_invariant_reg): Same.
13190 (free_inv_motion_data): Same.
13191 (move_single_loop_invariants): Same.
13192 (change_pressure): Same.
13193 (mark_ref_regs): Same.
13194 (calculate_loop_reg_pressure): Same.
13195 * loop-iv.c (biv_entry_hasher::equal): Same.
13196 (iv_extend_to_rtx_code): Same.
13197 (check_iv_ref_table_size): Same.
13198 (clear_iv_info): Same.
13199 (latch_dominating_def): Same.
13200 (iv_get_reaching_def): Same.
13201 (iv_constant): Same.
13207 (get_biv_step): Same.
13209 (analyzed_for_bivness_p): Same.
13210 (record_biv): Same.
13211 (iv_analyze_biv): Same.
13212 (iv_analyze_expr): Same.
13213 (iv_analyze_def): Same.
13214 (iv_analyze_op): Same.
13215 (iv_analyze): Same.
13216 (iv_analyze_result): Same.
13218 (eliminate_implied_conditions): Same.
13219 (simplify_using_initial_values): Same.
13220 (shorten_into_mode): Same.
13221 (canonicalize_iv_subregs): Same.
13222 (determine_max_iter): Same.
13223 (check_simple_exit): Same.
13224 (find_simple_exit): Same.
13225 (get_simple_loop_desc): Same.
13226 * loop-unroll.c (report_unroll): Same.
13227 (decide_unrolling): Same.
13228 (unroll_loops): Same.
13229 (loop_exit_at_end_p): Same.
13230 (decide_unroll_constant_iterations): Same.
13231 (unroll_loop_constant_iterations): Same.
13232 (compare_and_jump_seq): Same.
13233 (unroll_loop_runtime_iterations): Same.
13234 (decide_unroll_stupid): Same.
13235 (unroll_loop_stupid): Same.
13236 (referenced_in_one_insn_in_loop_p): Same.
13237 (reset_debug_uses_in_loop): Same.
13238 (analyze_iv_to_split_insn): Same.
13239 * lra-eliminations.c (lra_debug_elim_table): Same.
13240 (setup_can_eliminate): Same.
13242 (lra_get_elimination_hard_regno): Same.
13243 (lra_eliminate_regs_1): Same.
13244 (eliminate_regs_in_insn): Same.
13245 (update_reg_eliminate): Same.
13246 (init_elimination): Same.
13247 (lra_eliminate): Same.
13249 * lra-lives.c (initiate_live_solver): Same.
13250 * lra-remat.c (create_remat_bb_data): Same.
13251 * lra-spills.c (lra_spill): Same.
13252 * lra.c (lra_set_insn_recog_data): Same.
13253 (lra_set_used_insn_alternative_by_uid): Same.
13254 (init_reg_info): Same.
13255 (expand_reg_info): Same.
13256 * lto-cgraph.c (output_symtab): Same.
13257 (read_identifier): Same.
13258 (get_alias_symbol): Same.
13259 (input_node): Same.
13260 (input_varpool_node): Same.
13262 (input_edge): Same.
13263 (input_cgraph_1): Same.
13264 (input_refs): Same.
13265 (input_symtab): Same.
13266 (input_offload_tables): Same.
13267 (output_cgraph_opt_summary): Same.
13268 (input_edge_opt_summary): Same.
13269 (input_cgraph_opt_section): Same.
13270 * lto-section-in.c (lto_free_raw_section_data): Same.
13271 (lto_create_simple_input_block): Same.
13272 (lto_free_function_in_decl_state_for_node): Same.
13273 * lto-streamer-in.c (lto_tag_check_set): Same.
13274 (lto_location_cache::revert_location_cache): Same.
13275 (lto_location_cache::input_location): Same.
13276 (lto_input_location): Same.
13277 (stream_input_location_now): Same.
13278 (lto_input_tree_ref): Same.
13279 (lto_input_eh_catch_list): Same.
13280 (input_eh_region): Same.
13281 (lto_init_eh): Same.
13282 (make_new_block): Same.
13284 (fixup_call_stmt_edges): Same.
13285 (input_struct_function_base): Same.
13286 (input_function): Same.
13287 (lto_read_body_or_constructor): Same.
13288 (lto_read_tree_1): Same.
13289 (lto_read_tree): Same.
13290 (lto_input_scc): Same.
13291 (lto_input_tree_1): Same.
13292 (lto_input_toplevel_asms): Same.
13293 (lto_input_mode_table): Same.
13294 (lto_reader_init): Same.
13295 (lto_data_in_create): Same.
13296 * lto-streamer-out.c (output_cfg): Same.
13297 * lto-streamer.h: Same.
13298 * modulo-sched.c (duplicate_insns_of_cycles): Same.
13299 (generate_prolog_epilog): Same.
13300 (mark_loop_unsched): Same.
13301 (dump_insn_location): Same.
13302 (loop_canon_p): Same.
13303 (sms_schedule): Same.
13304 * omp-expand.c (expand_omp_for_ordered_loops): Same.
13305 (expand_omp_for_generic): Same.
13306 (expand_omp_for_static_nochunk): Same.
13307 (expand_omp_for_static_chunk): Same.
13308 (expand_omp_simd): Same.
13309 (expand_omp_taskloop_for_inner): Same.
13310 (expand_oacc_for): Same.
13311 (expand_omp_atomic_pipeline): Same.
13312 (mark_loops_in_oacc_kernels_region): Same.
13313 * omp-offload.c (oacc_xform_loop): Same.
13314 * omp-simd-clone.c (simd_clone_adjust): Same.
13315 * optabs-query.c (get_traditional_extraction_insn): Same.
13316 * optabs.c (expand_vector_broadcast): Same.
13317 (expand_binop_directly): Same.
13318 (expand_twoval_unop): Same.
13319 (expand_twoval_binop): Same.
13320 (expand_unop_direct): Same.
13321 (emit_indirect_jump): Same.
13322 (emit_conditional_move): Same.
13323 (emit_conditional_neg_or_complement): Same.
13324 (emit_conditional_add): Same.
13325 (vector_compare_rtx): Same.
13326 (expand_vec_perm_1): Same.
13327 (expand_vec_perm_const): Same.
13328 (expand_vec_cond_expr): Same.
13329 (expand_vec_series_expr): Same.
13330 (maybe_emit_atomic_exchange): Same.
13331 (maybe_emit_sync_lock_test_and_set): Same.
13332 (expand_atomic_compare_and_swap): Same.
13333 (expand_atomic_load): Same.
13334 (expand_atomic_store): Same.
13335 (maybe_emit_op): Same.
13336 (valid_multiword_target_p): Same.
13337 (create_integer_operand): Same.
13338 (maybe_legitimize_operand_same_code): Same.
13339 (maybe_legitimize_operand): Same.
13340 (create_convert_operand_from_type): Same.
13341 (can_reuse_operands_p): Same.
13342 (maybe_legitimize_operands): Same.
13343 (maybe_gen_insn): Same.
13344 (maybe_expand_insn): Same.
13345 (maybe_expand_jump_insn): Same.
13346 (expand_insn): Same.
13347 * optabs.h (create_expand_operand): Same.
13348 (create_fixed_operand): Same.
13349 (create_output_operand): Same.
13350 (create_input_operand): Same.
13351 (create_convert_operand_to): Same.
13352 (create_convert_operand_from): Same.
13354 * poly-int.h: Same.
13355 * predict.c (optimize_insn_for_speed_p): Same.
13356 (optimize_loop_for_size_p): Same.
13357 (optimize_loop_for_speed_p): Same.
13358 (optimize_loop_nest_for_speed_p): Same.
13359 (get_base_value): Same.
13360 (predicted_by_loop_heuristics_p): Same.
13361 (predict_extra_loop_exits): Same.
13362 (predict_loops): Same.
13363 (predict_paths_for_bb): Same.
13364 (predict_paths_leading_to): Same.
13365 (propagate_freq): Same.
13366 (pass_profile::execute): Same.
13368 * profile-count.c (profile_count::differs_from_p): Same.
13369 (profile_probability::differs_lot_from_p): Same.
13370 * profile-count.h: Same.
13371 * profile.c (branch_prob): Same.
13372 * regrename.c (free_chain_data): Same.
13373 (mark_conflict): Same.
13374 (create_new_chain): Same.
13375 (merge_overlapping_regs): Same.
13376 (init_rename_info): Same.
13377 (merge_chains): Same.
13378 (regrename_analyze): Same.
13379 (regrename_do_replace): Same.
13380 (scan_rtx_reg): Same.
13381 (record_out_operands): Same.
13382 (build_def_use): Same.
13383 * regrename.h: Same.
13385 * reload1.c (init_reload): Same.
13386 (maybe_fix_stack_asms): Same.
13387 (copy_reloads): Same.
13388 (count_pseudo): Same.
13389 (count_spilled_pseudo): Same.
13391 (find_reload_regs): Same.
13392 (select_reload_regs): Same.
13393 (spill_hard_reg): Same.
13394 (fixup_eh_region_note): Same.
13395 (set_reload_reg): Same.
13396 (allocate_reload_reg): Same.
13397 (compute_reload_subreg_offset): Same.
13398 (reload_adjust_reg_for_icode): Same.
13399 (emit_input_reload_insns): Same.
13400 (emit_output_reload_insns): Same.
13401 (do_input_reload): Same.
13402 (inherit_piecemeal_p): Same.
13404 * sanopt.c (maybe_get_dominating_check): Same.
13405 (maybe_optimize_ubsan_ptr_ifn): Same.
13406 (can_remove_asan_check): Same.
13407 (maybe_optimize_asan_check_ifn): Same.
13408 (sanopt_optimize_walker): Same.
13409 * sched-deps.c (add_dependence_list): Same.
13410 (chain_to_prev_insn): Same.
13411 (add_insn_mem_dependence): Same.
13412 (create_insn_reg_set): Same.
13413 (maybe_extend_reg_info_p): Same.
13414 (sched_analyze_reg): Same.
13415 (sched_analyze_1): Same.
13416 (get_implicit_reg_pending_clobbers): Same.
13417 (chain_to_prev_insn_p): Same.
13418 (deps_analyze_insn): Same.
13419 (deps_start_bb): Same.
13420 (sched_free_deps): Same.
13422 (init_deps_reg_last): Same.
13424 * sched-ebb.c: Same.
13425 * sched-int.h: Same.
13426 * sched-rgn.c (add_branch_dependences): Same.
13427 (concat_insn_mem_list): Same.
13429 (sched_rgn_compute_dependencies): Same.
13430 * sel-sched-ir.c (reset_target_context): Same.
13431 (copy_deps_context): Same.
13432 (init_id_from_df): Same.
13433 (has_dependence_p): Same.
13434 (change_loops_latches): Same.
13435 (bb_top_order_comparator): Same.
13436 (make_region_from_loop_preheader): Same.
13437 (sel_init_pipelining): Same.
13438 (get_loop_nest_for_rgn): Same.
13439 (make_regions_from_the_rest): Same.
13440 (sel_is_loop_preheader_p): Same.
13441 * sel-sched-ir.h (inner_loop_header_p): Same.
13442 (get_all_loop_exits): Same.
13443 * selftest.h: Same.
13444 * sese.c (sese_build_liveouts): Same.
13445 (sese_insert_phis_for_liveouts): Same.
13446 * sese.h (defined_in_sese_p): Same.
13447 * sreal.c (sreal::stream_out): Same.
13449 * streamer-hooks.h: Same.
13450 * target-globals.c (save_target_globals): Same.
13451 * target-globals.h: Same.
13452 * target.def: Same.
13454 * targhooks.c (default_has_ifunc_p): Same.
13455 (default_empty_mask_is_expensive): Same.
13456 (default_init_cost): Same.
13457 * targhooks.h: Same.
13459 * tree-affine.c (aff_combination_mult): Same.
13460 (aff_combination_expand): Same.
13461 (aff_combination_constant_multiple_p): Same.
13462 * tree-affine.h: Same.
13463 * tree-cfg.c (build_gimple_cfg): Same.
13464 (replace_loop_annotate_in_block): Same.
13465 (replace_uses_by): Same.
13467 (dump_cfg_stats): Same.
13468 (gimple_duplicate_sese_region): Same.
13469 (gimple_duplicate_sese_tail): Same.
13470 (move_block_to_fn): Same.
13471 (replace_block_vars_by_duplicates): Same.
13472 (move_sese_region_to_fn): Same.
13473 (print_loops_bb): Same.
13474 (print_loop): Same.
13475 (print_loops): Same.
13477 (debug_loops): Same.
13478 * tree-cfg.h: Same.
13479 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
13480 (chrec_fold_multiply_poly_poly): Same.
13481 (chrec_evaluate): Same.
13482 (chrec_component_in_loop_num): Same.
13483 (reset_evolution_in_loop): Same.
13484 (is_multivariate_chrec): Same.
13485 (chrec_contains_symbols): Same.
13486 (nb_vars_in_chrec): Same.
13487 (chrec_convert_1): Same.
13488 (chrec_convert_aggressive): Same.
13489 * tree-chrec.h: Same.
13490 * tree-core.h: Same.
13491 * tree-data-ref.c (dump_data_dependence_relation): Same.
13492 (canonicalize_base_object_address): Same.
13493 (data_ref_compare_tree): Same.
13494 (prune_runtime_alias_test_list): Same.
13495 (get_segment_min_max): Same.
13496 (create_intersect_range_checks): Same.
13497 (conflict_fn_no_dependence): Same.
13498 (object_address_invariant_in_loop_p): Same.
13499 (analyze_ziv_subscript): Same.
13500 (analyze_siv_subscript_cst_affine): Same.
13501 (analyze_miv_subscript): Same.
13502 (analyze_overlapping_iterations): Same.
13503 (build_classic_dist_vector_1): Same.
13504 (add_other_self_distances): Same.
13505 (same_access_functions): Same.
13506 (build_classic_dir_vector): Same.
13507 (subscript_dependence_tester_1): Same.
13508 (subscript_dependence_tester): Same.
13509 (access_functions_are_affine_or_constant_p): Same.
13510 (get_references_in_stmt): Same.
13511 (loop_nest_has_data_refs): Same.
13512 (graphite_find_data_references_in_stmt): Same.
13513 (find_data_references_in_bb): Same.
13514 (get_base_for_alignment): Same.
13515 (find_loop_nest_1): Same.
13516 (find_loop_nest): Same.
13517 * tree-data-ref.h (dr_alignment): Same.
13518 (ddr_dependence_level): Same.
13519 * tree-if-conv.c (fold_build_cond_expr): Same.
13520 (add_to_predicate_list): Same.
13521 (add_to_dst_predicate_list): Same.
13522 (phi_convertible_by_degenerating_args): Same.
13523 (idx_within_array_bound): Same.
13524 (all_preds_critical_p): Same.
13525 (pred_blocks_visited_p): Same.
13526 (predicate_bbs): Same.
13527 (build_region): Same.
13528 (if_convertible_loop_p_1): Same.
13529 (is_cond_scalar_reduction): Same.
13530 (predicate_scalar_phi): Same.
13531 (remove_conditions_and_labels): Same.
13532 (combine_blocks): Same.
13533 (version_loop_for_if_conversion): Same.
13534 (versionable_outer_loop_p): Same.
13535 (ifcvt_local_dce): Same.
13536 (tree_if_conversion): Same.
13537 (pass_if_conversion::gate): Same.
13538 * tree-if-conv.h: Same.
13539 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
13540 * tree-loop-distribution.c (bb_top_order_cmp): Same.
13542 (stmt_has_scalar_dependences_outside_loop): Same.
13543 (copy_loop_before): Same.
13544 (create_bb_after_loop): Same.
13545 (const_with_all_bytes_same): Same.
13546 (generate_memset_builtin): Same.
13547 (generate_memcpy_builtin): Same.
13548 (destroy_loop): Same.
13549 (build_rdg_partition_for_vertex): Same.
13550 (compute_access_range): Same.
13551 (data_ref_segment_size): Same.
13552 (latch_dominated_by_data_ref): Same.
13553 (compute_alias_check_pairs): Same.
13554 (fuse_memset_builtins): Same.
13555 (finalize_partitions): Same.
13556 (find_seed_stmts_for_distribution): Same.
13557 (prepare_perfect_loop_nest): Same.
13558 * tree-parloops.c (lambda_transform_legal_p): Same.
13559 (loop_parallel_p): Same.
13560 (reduc_stmt_res): Same.
13561 (add_field_for_name): Same.
13562 (create_call_for_reduction_1): Same.
13563 (replace_uses_in_bb_by): Same.
13564 (transform_to_exit_first_loop_alt): Same.
13565 (try_transform_to_exit_first_loop_alt): Same.
13566 (transform_to_exit_first_loop): Same.
13568 (gen_parallel_loop): Same.
13569 (gather_scalar_reductions): Same.
13570 (get_omp_data_i_param): Same.
13571 (try_create_reduction_list): Same.
13572 (oacc_entry_exit_single_gang): Same.
13573 (parallelize_loops): Same.
13574 * tree-pass.h: Same.
13575 * tree-predcom.c (determine_offset): Same.
13576 (last_always_executed_block): Same.
13577 (split_data_refs_to_components): Same.
13578 (suitable_component_p): Same.
13579 (valid_initializer_p): Same.
13580 (find_looparound_phi): Same.
13581 (insert_looparound_copy): Same.
13582 (add_looparound_copies): Same.
13583 (determine_roots_comp): Same.
13584 (predcom_tmp_var): Same.
13585 (initialize_root_vars): Same.
13586 (initialize_root_vars_store_elim_1): Same.
13587 (initialize_root_vars_store_elim_2): Same.
13588 (finalize_eliminated_stores): Same.
13589 (initialize_root_vars_lm): Same.
13590 (remove_stmt): Same.
13591 (determine_unroll_factor): Same.
13592 (execute_pred_commoning_cbck): Same.
13593 (base_names_in_chain_on): Same.
13594 (combine_chains): Same.
13595 (pcom_stmt_dominates_stmt_p): Same.
13596 (try_combine_chains): Same.
13597 (prepare_initializers_chain_store_elim): Same.
13598 (prepare_initializers_chain): Same.
13599 (prepare_initializers): Same.
13600 (prepare_finalizers_chain): Same.
13601 (prepare_finalizers): Same.
13602 (insert_init_seqs): Same.
13603 * tree-scalar-evolution.c (loop_phi_node_p): Same.
13604 (compute_overall_effect_of_inner_loop): Same.
13605 (add_to_evolution_1): Same.
13606 (add_to_evolution): Same.
13607 (follow_ssa_edge_binary): Same.
13608 (follow_ssa_edge_expr): Same.
13609 (backedge_phi_arg_p): Same.
13610 (follow_ssa_edge_in_condition_phi_branch): Same.
13611 (follow_ssa_edge_in_condition_phi): Same.
13612 (follow_ssa_edge_inner_loop_phi): Same.
13613 (follow_ssa_edge): Same.
13614 (analyze_evolution_in_loop): Same.
13615 (analyze_initial_condition): Same.
13616 (interpret_loop_phi): Same.
13617 (interpret_condition_phi): Same.
13618 (interpret_rhs_expr): Same.
13619 (interpret_expr): Same.
13620 (interpret_gimple_assign): Same.
13621 (analyze_scalar_evolution_1): Same.
13622 (analyze_scalar_evolution): Same.
13623 (analyze_scalar_evolution_for_address_of): Same.
13624 (get_instantiated_value_entry): Same.
13625 (loop_closed_phi_def): Same.
13626 (instantiate_scev_name): Same.
13627 (instantiate_scev_poly): Same.
13628 (instantiate_scev_binary): Same.
13629 (instantiate_scev_convert): Same.
13630 (instantiate_scev_not): Same.
13631 (instantiate_scev_r): Same.
13632 (instantiate_scev): Same.
13633 (resolve_mixers): Same.
13634 (initialize_scalar_evolutions_analyzer): Same.
13635 (scev_reset_htab): Same.
13636 (scev_reset): Same.
13637 (derive_simple_iv_with_niters): Same.
13638 (simple_iv_with_niters): Same.
13639 (expression_expensive_p): Same.
13640 (final_value_replacement_loop): Same.
13641 * tree-scalar-evolution.h (block_before_loop): Same.
13642 * tree-ssa-address.h: Same.
13643 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
13644 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
13645 (record_edge_info): Same.
13646 * tree-ssa-live.c (var_map_base_fini): Same.
13647 (remove_unused_locals): Same.
13648 * tree-ssa-live.h: Same.
13649 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
13650 (pass_ch_vect::execute): Same.
13651 (pass_ch::process_loop_p): Same.
13652 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
13653 (movement_possibility): Same.
13654 (outermost_invariant_loop): Same.
13656 (determine_max_movement): Same.
13657 (invariantness_dom_walker::before_dom_children): Same.
13658 (move_computations): Same.
13659 (may_move_till): Same.
13660 (force_move_till_op): Same.
13661 (force_move_till): Same.
13662 (memref_free): Same.
13663 (record_mem_ref_loc): Same.
13664 (set_ref_stored_in_loop): Same.
13665 (mark_ref_stored): Same.
13666 (sort_bbs_in_loop_postorder_cmp): Same.
13667 (sort_locs_in_loop_postorder_cmp): Same.
13668 (analyze_memory_references): Same.
13669 (mem_refs_may_alias_p): Same.
13670 (find_ref_loc_in_loop_cmp): Same.
13671 (rewrite_mem_ref_loc::operator): Same.
13672 (first_mem_ref_loc_1::operator): Same.
13673 (sm_set_flag_if_changed::operator): Same.
13674 (execute_sm_if_changed_flag_set): Same.
13675 (execute_sm): Same.
13676 (hoist_memory_references): Same.
13677 (ref_always_accessed::operator): Same.
13678 (refs_independent_p): Same.
13679 (record_dep_loop): Same.
13680 (ref_indep_loop_p_1): Same.
13681 (ref_indep_loop_p): Same.
13682 (can_sm_ref_p): Same.
13683 (find_refs_for_sm): Same.
13684 (loop_suitable_for_sm): Same.
13685 (store_motion_loop): Same.
13686 (store_motion): Same.
13687 (fill_always_executed_in): Same.
13688 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
13689 (estimated_unrolled_size): Same.
13690 (loop_edge_to_cancel): Same.
13691 (remove_exits_and_undefined_stmts): Same.
13692 (remove_redundant_iv_tests): Same.
13693 (unloop_loops): Same.
13694 (estimated_peeled_sequence_size): Same.
13695 (try_peel_loop): Same.
13696 (canonicalize_loop_induction_variables): Same.
13697 (canonicalize_induction_variables): Same.
13698 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
13700 (stmt_after_inc_pos): Same.
13701 (contains_abnormal_ssa_name_p): Same.
13702 (niter_for_exit): Same.
13705 (find_givs_in_bb): Same.
13706 (find_induction_variables): Same.
13707 (find_interesting_uses_cond): Same.
13708 (outermost_invariant_loop_for_expr): Same.
13709 (idx_find_step): Same.
13710 (add_candidate_1): Same.
13711 (add_iv_candidate_derived_from_uses): Same.
13712 (alloc_use_cost_map): Same.
13713 (prepare_decl_rtl): Same.
13714 (generic_predict_doloop_p): Same.
13715 (computation_cost): Same.
13716 (determine_common_wider_type): Same.
13717 (get_computation_aff_1): Same.
13718 (get_use_type): Same.
13719 (determine_group_iv_cost_address): Same.
13721 (difference_cannot_overflow_p): Same.
13722 (may_eliminate_iv): Same.
13723 (determine_set_costs): Same.
13724 (cheaper_cost_pair): Same.
13725 (compare_cost_pair): Same.
13726 (iv_ca_cand_for_group): Same.
13727 (iv_ca_recount_cost): Same.
13728 (iv_ca_set_remove_invs): Same.
13729 (iv_ca_set_no_cp): Same.
13730 (iv_ca_set_add_invs): Same.
13731 (iv_ca_set_cp): Same.
13732 (iv_ca_add_group): Same.
13733 (iv_ca_cost): Same.
13734 (iv_ca_compare_deps): Same.
13735 (iv_ca_delta_reverse): Same.
13736 (iv_ca_delta_commit): Same.
13737 (iv_ca_cand_used_p): Same.
13738 (iv_ca_delta_free): Same.
13740 (iv_ca_free): Same.
13741 (iv_ca_dump): Same.
13742 (iv_ca_extend): Same.
13743 (iv_ca_narrow): Same.
13744 (iv_ca_prune): Same.
13745 (cheaper_cost_with_cand): Same.
13746 (iv_ca_replace): Same.
13747 (try_add_cand_for): Same.
13748 (get_initial_solution): Same.
13749 (try_improve_iv_set): Same.
13750 (find_optimal_iv_set_1): Same.
13751 (create_new_iv): Same.
13752 (rewrite_use_compare): Same.
13753 (remove_unused_ivs): Same.
13754 (determine_scaling_factor): Same.
13755 * tree-ssa-loop-ivopts.h: Same.
13756 * tree-ssa-loop-manip.c (create_iv): Same.
13757 (compute_live_loop_exits): Same.
13758 (add_exit_phi): Same.
13759 (add_exit_phis): Same.
13760 (find_uses_to_rename_use): Same.
13761 (find_uses_to_rename_def): Same.
13762 (find_uses_to_rename_in_loop): Same.
13763 (rewrite_into_loop_closed_ssa): Same.
13764 (check_loop_closed_ssa_bb): Same.
13765 (split_loop_exit_edge): Same.
13766 (ip_end_pos): Same.
13767 (ip_normal_pos): Same.
13768 (copy_phi_node_args): Same.
13769 (gimple_duplicate_loop_to_header_edge): Same.
13770 (can_unroll_loop_p): Same.
13771 (determine_exit_conditions): Same.
13772 (scale_dominated_blocks_in_loop): Same.
13773 (niter_for_unrolled_loop): Same.
13774 (tree_transform_and_unroll_loop): Same.
13775 (rewrite_all_phi_nodes_with_iv): Same.
13776 * tree-ssa-loop-manip.h: Same.
13777 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
13778 (number_of_iterations_ne): Same.
13779 (assert_no_overflow_lt): Same.
13780 (assert_loop_rolls_lt): Same.
13781 (number_of_iterations_lt): Same.
13782 (adjust_cond_for_loop_until_wrap): Same.
13783 (tree_simplify_using_condition): Same.
13784 (simplify_using_initial_conditions): Same.
13785 (simplify_using_outer_evolutions): Same.
13786 (loop_only_exit_p): Same.
13787 (ssa_defined_by_minus_one_stmt_p): Same.
13788 (number_of_iterations_popcount): Same.
13789 (number_of_iterations_exit): Same.
13790 (find_loop_niter): Same.
13791 (finite_loop_p): Same.
13792 (chain_of_csts_start): Same.
13793 (get_val_for): Same.
13794 (loop_niter_by_eval): Same.
13795 (derive_constant_upper_bound_ops): Same.
13796 (do_warn_aggressive_loop_optimizations): Same.
13797 (record_estimate): Same.
13798 (get_cst_init_from_scev): Same.
13799 (record_nonwrapping_iv): Same.
13800 (idx_infer_loop_bounds): Same.
13801 (infer_loop_bounds_from_ref): Same.
13802 (infer_loop_bounds_from_array): Same.
13803 (infer_loop_bounds_from_pointer_arith): Same.
13804 (infer_loop_bounds_from_signedness): Same.
13805 (bound_index): Same.
13806 (discover_iteration_bound_by_body_walk): Same.
13807 (maybe_lower_iteration_bound): Same.
13808 (estimate_numbers_of_iterations): Same.
13809 (estimated_loop_iterations): Same.
13810 (estimated_loop_iterations_int): Same.
13811 (max_loop_iterations): Same.
13812 (max_loop_iterations_int): Same.
13813 (likely_max_loop_iterations): Same.
13814 (likely_max_loop_iterations_int): Same.
13815 (estimated_stmt_executions_int): Same.
13816 (max_stmt_executions): Same.
13817 (likely_max_stmt_executions): Same.
13818 (estimated_stmt_executions): Same.
13819 (stmt_dominates_stmt_p): Same.
13820 (nowrap_type_p): Same.
13821 (loop_exits_before_overflow): Same.
13822 (scev_var_range_cant_overflow): Same.
13823 (scev_probably_wraps_p): Same.
13824 (free_numbers_of_iterations_estimates): Same.
13825 * tree-ssa-loop-niter.h: Same.
13826 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
13827 (idx_analyze_ref): Same.
13828 (analyze_ref): Same.
13829 (gather_memory_references_ref): Same.
13830 (mark_nontemporal_store): Same.
13831 (emit_mfence_after_loop): Same.
13832 (may_use_storent_in_loop_p): Same.
13833 (mark_nontemporal_stores): Same.
13834 (should_unroll_loop_p): Same.
13835 (volume_of_dist_vector): Same.
13836 (add_subscript_strides): Same.
13837 (self_reuse_distance): Same.
13838 (insn_to_prefetch_ratio_too_small_p): Same.
13839 * tree-ssa-loop-split.c (split_at_bb_p): Same.
13840 (patch_loop_exit): Same.
13841 (find_or_create_guard_phi): Same.
13842 (easy_exit_values): Same.
13843 (connect_loop_phis): Same.
13844 (connect_loops): Same.
13845 (compute_new_first_bound): Same.
13846 (split_loop): Same.
13847 (tree_ssa_split_loops): Same.
13848 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
13849 (is_maybe_undefined): Same.
13850 (tree_may_unswitch_on): Same.
13851 (simplify_using_entry_checks): Same.
13852 (tree_unswitch_single_loop): Same.
13853 (tree_unswitch_loop): Same.
13854 (tree_unswitch_outer_loop): Same.
13855 (empty_bb_without_guard_p): Same.
13856 (used_outside_loop_p): Same.
13857 (get_vop_from_header): Same.
13858 (hoist_guard): Same.
13859 * tree-ssa-loop.c (gate_oacc_kernels): Same.
13860 (get_lsm_tmp_name): Same.
13861 * tree-ssa-loop.h: Same.
13862 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
13863 (build_and_add_sum): Same.
13864 (no_side_effect_bb): Same.
13866 (linearize_expr): Same.
13867 (should_break_up_subtract): Same.
13868 (linearize_expr_tree): Same.
13869 * tree-ssa-scopedtables.c: Same.
13870 * tree-ssa-scopedtables.h: Same.
13871 * tree-ssa-structalias.c (condense_visit): Same.
13872 (label_visit): Same.
13873 (dump_pred_graph): Same.
13874 (perform_var_substitution): Same.
13875 (move_complex_constraints): Same.
13876 (remove_preds_and_fake_succs): Same.
13877 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
13878 (determine_bb_domination_status): Same.
13879 (duplicate_thread_path): Same.
13880 (thread_through_all_blocks): Same.
13881 * tree-ssa-threadupdate.h: Same.
13882 * tree-streamer-in.c (streamer_read_string_cst): Same.
13883 (input_identifier): Same.
13884 (unpack_ts_type_common_value_fields): Same.
13885 (unpack_ts_block_value_fields): Same.
13886 (unpack_ts_translation_unit_decl_value_fields): Same.
13887 (unpack_ts_omp_clause_value_fields): Same.
13888 (streamer_read_tree_bitfields): Same.
13889 (streamer_alloc_tree): Same.
13890 (lto_input_ts_common_tree_pointers): Same.
13891 (lto_input_ts_vector_tree_pointers): Same.
13892 (lto_input_ts_poly_tree_pointers): Same.
13893 (lto_input_ts_complex_tree_pointers): Same.
13894 (lto_input_ts_decl_minimal_tree_pointers): Same.
13895 (lto_input_ts_decl_common_tree_pointers): Same.
13896 (lto_input_ts_decl_non_common_tree_pointers): Same.
13897 (lto_input_ts_decl_with_vis_tree_pointers): Same.
13898 (lto_input_ts_field_decl_tree_pointers): Same.
13899 (lto_input_ts_function_decl_tree_pointers): Same.
13900 (lto_input_ts_type_common_tree_pointers): Same.
13901 (lto_input_ts_type_non_common_tree_pointers): Same.
13902 (lto_input_ts_list_tree_pointers): Same.
13903 (lto_input_ts_vec_tree_pointers): Same.
13904 (lto_input_ts_exp_tree_pointers): Same.
13905 (lto_input_ts_block_tree_pointers): Same.
13906 (lto_input_ts_binfo_tree_pointers): Same.
13907 (lto_input_ts_constructor_tree_pointers): Same.
13908 (lto_input_ts_omp_clause_tree_pointers): Same.
13909 (streamer_read_tree_body): Same.
13910 * tree-streamer.h: Same.
13911 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13912 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13913 (vect_analyze_possibly_independent_ddr): Same.
13914 (vect_analyze_data_ref_dependence): Same.
13915 (vect_compute_data_ref_alignment): Same.
13916 (vect_enhance_data_refs_alignment): Same.
13917 (vect_analyze_data_ref_access): Same.
13918 (vect_check_gather_scatter): Same.
13919 (vect_find_stmt_data_reference): Same.
13920 (vect_create_addr_base_for_vector_ref): Same.
13921 (vect_setup_realignment): Same.
13922 (vect_supportable_dr_alignment): Same.
13923 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13924 (adjust_phi_and_debug_stmts): Same.
13925 (vect_set_loop_mask): Same.
13926 (add_preheader_seq): Same.
13927 (vect_maybe_permute_loop_masks): Same.
13928 (vect_set_loop_masks_directly): Same.
13929 (vect_set_loop_condition_masked): Same.
13930 (vect_set_loop_condition_unmasked): Same.
13931 (slpeel_duplicate_current_defs_from_edges): Same.
13932 (slpeel_add_loop_guard): Same.
13933 (slpeel_can_duplicate_loop_p): Same.
13934 (create_lcssa_for_virtual_phi): Same.
13936 (vect_update_ivs_after_vectorizer): Same.
13937 (vect_gen_vector_loop_niters_mult_vf): Same.
13938 (slpeel_update_phi_nodes_for_loops): Same.
13939 (slpeel_update_phi_nodes_for_guard1): Same.
13940 (find_guard_arg): Same.
13941 (slpeel_update_phi_nodes_for_guard2): Same.
13942 (slpeel_update_phi_nodes_for_lcssa): Same.
13943 (vect_do_peeling): Same.
13944 (vect_create_cond_for_alias_checks): Same.
13945 (vect_loop_versioning): Same.
13946 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13947 (vect_inner_phi_in_double_reduction_p): Same.
13948 (vect_analyze_scalar_cycles_1): Same.
13949 (vect_fixup_scalar_cycles_with_patterns): Same.
13950 (vect_get_loop_niters): Same.
13951 (bb_in_loop_p): Same.
13952 (vect_get_max_nscalars_per_iter): Same.
13953 (vect_verify_full_masking): Same.
13954 (vect_compute_single_scalar_iteration_cost): Same.
13955 (vect_analyze_loop_form_1): Same.
13956 (vect_analyze_loop_form): Same.
13957 (vect_active_double_reduction_p): Same.
13958 (vect_analyze_loop_operations): Same.
13959 (neutral_op_for_slp_reduction): Same.
13960 (vect_is_simple_reduction): Same.
13961 (vect_model_reduction_cost): Same.
13962 (get_initial_def_for_reduction): Same.
13963 (get_initial_defs_for_reduction): Same.
13964 (vect_create_epilog_for_reduction): Same.
13965 (vectorize_fold_left_reduction): Same.
13966 (vectorizable_reduction): Same.
13967 (vectorizable_induction): Same.
13968 (vectorizable_live_operation): Same.
13969 (loop_niters_no_overflow): Same.
13970 (vect_get_loop_mask): Same.
13971 (vect_transform_loop_stmt): Same.
13972 (vect_transform_loop): Same.
13973 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13974 (vect_determine_precisions): Same.
13975 (vect_pattern_recog_1): Same.
13976 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13977 * tree-vect-stmts.c (stmt_vectype): Same.
13978 (process_use): Same.
13979 (vect_init_vector_1): Same.
13980 (vect_truncate_gather_scatter_offset): Same.
13981 (get_group_load_store_type): Same.
13982 (vect_build_gather_load_calls): Same.
13983 (vect_get_strided_load_store_ops): Same.
13984 (vectorizable_simd_clone_call): Same.
13985 (vectorizable_store): Same.
13986 (permute_vec_elements): Same.
13987 (vectorizable_load): Same.
13988 (vect_transform_stmt): Same.
13989 (supportable_widening_operation): Same.
13990 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13991 (vec_info::free_stmt_vec_info): Same.
13992 (vect_free_loop_info_assumptions): Same.
13993 (vect_loop_vectorized_call): Same.
13994 (set_uid_loop_bbs): Same.
13995 (vectorize_loops): Same.
13996 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13997 * tree.c (add_tree_to_fld_list): Same.
13998 (fld_type_variant_equal_p): Same.
13999 (fld_decl_context): Same.
14000 (fld_incomplete_type_of): Same.
14001 (free_lang_data_in_binfo): Same.
14002 (need_assembler_name_p): Same.
14003 (find_decls_types_r): Same.
14004 (get_eh_types_for_runtime): Same.
14005 (find_decls_types_in_eh_region): Same.
14006 (find_decls_types_in_node): Same.
14007 (assign_assembler_name_if_needed): Same.
14008 * value-prof.c (stream_out_histogram_value): Same.
14009 * value-prof.h: Same.
14010 * var-tracking.c (use_narrower_mode): Same.
14011 (prepare_call_arguments): Same.
14012 (vt_expand_loc_callback): Same.
14013 (resolve_expansions_pending_recursion): Same.
14014 (vt_expand_loc): Same.
14015 * varasm.c (const_hash_1): Same.
14016 (compare_constant): Same.
14017 (tree_output_constant_def): Same.
14018 (simplify_subtraction): Same.
14019 (get_pool_constant): Same.
14020 (output_constant_pool_2): Same.
14021 (output_constant_pool_1): Same.
14022 (mark_constants_in_pattern): Same.
14023 (mark_constant_pool): Same.
14024 (get_section_anchor): Same.
14025 * vr-values.c (compare_range_with_value): Same.
14026 (vr_values::extract_range_from_phi_node): Same.
14027 * vr-values.h: Same.
14028 * web.c (unionfind_union): Same.
14029 * wide-int.h: Same.
14031 2019-07-09 Martin Sebor <msebor@redhat.com>
14034 * align.h: Change class-key from class to struct and vice versa
14035 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
14036 * alloc-pool.h: Same.
14037 * asan.c (shadow_mem_size): Same.
14038 * auto-profile.c: Same.
14039 * basic-block.h: Same.
14041 * cfgexpand.c (set_rtl): Same.
14042 (expand_one_stack_var_at): Same.
14043 * cfghooks.h: Same.
14046 * config/i386/i386.h: Same.
14047 * df-problems.c (df_print_bb_index): Same.
14049 * df.h (df_single_use): Same.
14050 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
14051 (layout::annotation_line_showed_range_p): Same.
14052 (get_printed_columns): Same.
14053 (correction::ensure_terminated): Same.
14054 (line_corrections::~line_corrections): Same.
14057 * dump-context.h: Same.
14058 * dumpfile.h: Same.
14059 * dwarf2out.c: Same.
14060 * edit-context.c: Same.
14061 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
14063 * function.c (assign_stack_local): Same.
14064 * function.h: Same.
14066 * gcov.c (block_info::block_info): Same.
14067 * genattrtab.c: Same.
14068 * genextract.c: Same.
14069 * genmatch.c (comparison_code_p): Same.
14070 (id_base::id_base): Same.
14071 (decision_tree::print): Same.
14072 * genoutput.c: Same.
14073 * genpreds.c (write_one_predicate_function): Same.
14074 * genrecog.c (validate_pattern): Same.
14075 (find_operand_positions): Same.
14076 (optimize_subroutine_group): Same.
14077 (merge_pattern_transition::merge_pattern_transition): Same.
14078 (merge_pattern_info::merge_pattern_info): Same.
14079 (merge_state_result::merge_state_result): Same.
14080 (merge_into_state): Same.
14081 * gensupport.c: Same.
14082 * gensupport.h: Same.
14083 * ggc-common.c (init_ggc_heuristics): Same.
14084 * ggc-tests.c (test_union): Same.
14085 * gimple-loop-interchange.cc (dump_induction): Same.
14086 * gimple-loop-versioning.cc: Same.
14087 * gimple-match.h (gimple_match_cond::any_else): Same.
14088 * gimple-ssa-backprop.c: Same.
14089 * gimple-ssa-sprintf.c: Same.
14090 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
14092 (store_immediate_info::store_immediate_info): Same.
14093 (merged_store_group::apply_stores): Same.
14094 (get_location_for_stmts): Same.
14095 * gimple-ssa-strength-reduction.c: Same.
14096 * gimple-ssa-warn-alloca.c: Same.
14097 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
14098 * godump.c (go_type_decl): Same.
14099 * hash-map-tests.c (test_map_of_strings_to_int): Same.
14100 * hash-map.h: Same.
14101 * hash-set-tests.c (test_set_of_strings): Same.
14102 * hsa-brig.c: Same.
14103 * hsa-common.h: Same.
14104 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
14105 * input.c (assert_loceq): Same.
14108 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
14109 * ipa-fnsummary.h: Same.
14110 * ipa-inline.h: Same.
14111 * ipa-prop.h: Same.
14112 * ipa-split.c (visit_bb): Same.
14113 * ira-int.h (minmax_set_iter_next): Same.
14114 * loop-invariant.c: Same.
14116 * lra-eliminations.c: Same.
14118 * lra-lives.c (mark_regno_dead): Same.
14119 * lra-remat.c: Same.
14120 * lra-spills.c: Same.
14121 * lto-streamer.h: Same.
14122 * mem-stats.h: Same.
14123 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
14124 * omp-low.c (omp_clause_aligned_alignment): Same.
14125 * optabs-query.h (get_vcond_eq_icode): Same.
14127 * opts.c (wrap_help): Same.
14128 * poly-int.h: Same.
14129 * predict.c (predict_paths_leading_to_edge): Same.
14130 * pretty-print.h: Same.
14131 * profile-count.h: Same.
14133 * read-rtl-function.c: Same.
14136 * regrename.c: Same.
14137 * regrename.h: Same.
14139 * rtl-iter.h: Same.
14140 * rtl.h (costs_add_n_insns): Same.
14142 * sched-int.h: Same.
14143 * sel-sched-ir.h: Same.
14144 * selftest.h: Same.
14145 * sese.h (vec_find): Same.
14147 * target-globals.h: Same.
14148 * tree-affine.c (aff_combination_find_elt): Same.
14149 * tree-affine.h: Same.
14150 * tree-data-ref.h: Same.
14151 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
14152 * tree-predcom.c: Same.
14153 * tree-scalar-evolution.c (find_var_scev_info): Same.
14154 * tree-ssa-alias.h: Same.
14155 * tree-ssa-ccp.c: Same.
14156 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
14157 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
14158 (rewrite_mem_refs): Same.
14159 (execute_sm_if_changed): Same.
14160 (hoist_memory_references): Same.
14161 * tree-ssa-loop-ivopts.c (operator<=): Same.
14162 * tree-ssa-loop.h: Same.
14163 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
14164 * tree-ssa-structalias.c: Same.
14165 * tree-switch-conversion.h (cluster::cluster): Same.
14166 (simple_cluster::simple_cluster): Same.
14167 * tree-vect-patterns.c (type_conversion_p): Same.
14168 * tree-vectorizer.c (dump_stmt_cost): Same.
14169 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
14170 * tree.c (protected_set_expr_location): Same.
14171 * tree.h (desired_pro_or_demotion_p): Same.
14172 (fndecl_built_in_p): Same.
14173 * unique-ptr-tests.cc: Same.
14174 * var-tracking.c (delete_variable_part): Same.
14175 * varasm.c (assemble_real): Same.
14176 (tree_output_constant_def): Same.
14178 * wide-int-bitmask.h: Same.
14179 * wide-int.h (decompose): Same.
14181 2019-07-09 Richard Biener <rguenther@suse.de>
14183 PR tree-optimization/91114
14184 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
14185 find a vector type isn't fatal.
14187 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
14189 * config/aarch64/aarch64-simd.md
14190 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
14191 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
14192 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
14193 (*aarch64_crypto_aese_fused,
14194 *aarch64_crypto_aesd_fused): Update to new definition.
14195 * config/aarch64/aarch64.c
14196 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
14198 2019-07-09 Richard Biener <rguenther@suse.de>
14200 * gimple-match.h (gimple_match_op::resimplify): New.
14201 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
14202 gimple_resimplify4, gimple_resimplify5): Remove.
14203 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
14204 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
14206 (gimple_match_op::resimplify): New.
14207 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
14208 according to availability. Use gimple_match_op::resimplify.
14210 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
14212 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
14214 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
14216 * config/arm/crypto.md:
14217 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
14218 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
14219 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
14220 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
14222 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
14223 * config/arm/aarch-common-protos.h
14224 (aarch_crypto_can_dual_issue): Remove.
14225 * config/arm/aarch-common.c
14226 (aarch_crypto_can_dual_issue): Likewise.
14227 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
14228 * config/arm/cortex-a53.md: Likewise.
14229 * config/arm/cortex-a57.md: Likewise.
14230 * config/arm/iterators.md:
14231 (CRYPTO_BINARY): Redefine.
14232 (CRYPTO_UNARY): Removed.
14233 (CRYPTO_AES, CRYPTO_AESMC): New.
14235 2019-07-09 Richard Biener <rguenther@suse.de>
14237 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
14238 (vn_reference_lookup_3): If the main ref has no access path recorded
14239 but orig_ref has use it to do access-path based disambiguation.
14240 (vn_reference_lookup_pieces): Adjust.
14241 (vn_reference_lookup): Pass down original ref if we valueized.
14243 2019-07-09 Martin Liska <mliska@suse.cz>
14245 * doc/extend.texi: Document influence on loop
14248 2019-07-09 Martin Liska <mliska@suse.cz>
14250 * lto-compress.c (lto_normalized_zstd_level): Do not use
14251 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
14252 of libzstd. One can use 0 as a default compression level.
14254 2019-07-09 Martin Liska <mliska@suse.cz>
14256 * doc/invoke.texi: Add link from -fprofile-dir option.
14257 Use better wording for 'gcno filename'.
14259 2019-07-08 Martin Sebor <msebor@redhat.com>
14261 PR middle-end/71924
14262 PR middle-end/90549
14263 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
14265 (args_loc_t): New type.
14266 (args_loc_t, locmap_t): same.
14267 (diag_returned_locals): New function.
14268 (is_addr_local): Same.
14269 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
14270 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
14271 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
14273 2019-07-08 Jakub Jelinek <jakub@redhat.com>
14275 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
14276 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
14277 and casts in offset when different, both through gimple stmts
14278 and through trees. Rewritten using loops to minimize code duplication
14281 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
14283 * emit-rtl.c (set_insn_locations): New function moved from...
14284 * function.c (set_insn_locations): ...here.
14285 * ira-emit.c (emit_moves): Propagate location of the first instruction
14286 to the inserted move instructions.
14287 * reg-stack.c (compensate_edge): Set the location if the sequence is
14288 inserted on the edge.
14289 * rtl.h (set_insn_locations): Declare.
14291 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
14293 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
14294 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
14297 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
14299 PR rtl-optimization/88233
14300 * common.opt (fsplit-wide-types-early): New option.
14301 * common/config/rs6000/rs6000-common.c
14302 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
14304 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
14305 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
14306 flag_split_wide_types_early.
14307 (pass_data_lower_subreg3): New.
14308 (pass_lower_subreg3): New.
14309 (make_pass_lower_subreg3): New.
14310 * passes.def (pass_lower_subreg2): Move after the loop passes.
14311 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
14312 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
14313 the pass pipeline; its previous place is taken by ...
14314 (make_pass_lower_subreg3): ... this.
14316 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
14318 * config/s390/s390.c (s390_shift_truncation_mask): Define.
14319 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14321 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
14323 * config/s390/constraints.md: Add new jsc constraint.
14324 * config/s390/predicates.md: New predicates.
14325 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
14326 * config/s390/s390.c (s390_valid_shift_count): New function.
14327 (print_shift_count_operand): Use s390_valid_shift_count.
14328 (print_operand): Likewise.
14329 * config/s390/s390.md: Use new predicate.
14330 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
14331 * config/s390/vector.md: Use new predicate.
14333 2019-07-08 Andrew Waterman <andrew@sifive.com>
14334 Jim Wilson <jimw@sifive.com>
14336 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
14337 bitsize instead of BITS_PER_WORD.
14339 2019-07-08 Martin Liska <mliska@suse.cz>
14341 * collect2.c (defined): Revert to before r254460.
14342 (scan_prog_file): Revert to before r254460.
14344 2019-07-08 Richard Biener <rguenther@suse.de>
14346 PR tree-optimization/83518
14347 * tree-ssa-sccvn.c: Include splay-tree.h.
14348 (struct pd_range, struct pd_data): New.
14349 (struct vn_walk_cb_data): Add data to track partial definitions.
14350 (vn_walk_cb_data::~vn_walk_cb_data): New.
14351 (vn_walk_cb_data::push_partial_def): New.
14352 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
14353 (vn_reference_lookup_2): When partial defs are registered give up.
14354 (vn_reference_lookup_3): Track partial defs for memset and
14355 constructor zeroing and for defs from constants.
14357 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
14359 * doc/install.texi (bootstrap-Og): Document.
14361 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
14363 * config/riscv/pic.md (*local_pic_load_s<mode>)
14364 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
14365 referenced by <mode>, giving...
14366 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
14367 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
14368 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
14369 use <X:MODE> for the mode attribute.
14371 2019-07-07 Jeff Law <law@redhat.com>
14373 PR tree-optimization/91090
14374 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
14375 in handling of ranges to simplify switch statements.
14377 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
14379 * config/darwin.c (darwin_override_options): Make a final check on PIC
14382 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
14384 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
14385 on for kernel code.
14387 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
14390 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
14391 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
14392 instead of matching them to "l" output operands.
14394 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
14396 * config/mips/mips.c (mips_split_move): Zero-initialize addr
14397 and check whether addr.reg is nonnull before using it.
14399 2019-07-06 Jakub Jelinek <jakub@redhat.com>
14401 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
14402 ctx->for_simd_scan_phase simd copy the outer var to the privatized
14403 variable(s). For conditional lastprivate look through outer
14404 GIMPLE_OMP_SCAN context.
14405 (lower_omp_1): For conditional lastprivate look through outer
14406 GIMPLE_OMP_SCAN context.
14408 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
14409 member to combined_into_simd_safelen1.
14410 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
14411 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
14412 clauses if ctx->combined_into_simd_safelen1 put statements after the
14413 predicate conditionalized block rather than into it.
14415 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14417 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
14419 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
14420 Make the choice of <mode> explicit, giving...
14421 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
14423 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14425 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
14426 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
14428 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
14429 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
14430 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
14431 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
14432 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
14433 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
14434 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
14435 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
14436 (*avx512f_scatterdi<mode>): Likewise.
14437 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
14439 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14441 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
14442 specify the mode iterator referenced by <mode>, giving...
14443 (*push1_h8300hs_<QHI:mode>): ...this.
14445 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14447 * config/gcn/gcn-valu.md
14448 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
14449 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
14450 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
14451 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
14452 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
14453 but using the _exec comparison patterns.
14454 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
14455 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
14456 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
14457 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
14458 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
14459 but using the _exec comparison patterns.
14461 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14463 * config/arm/sync.md
14464 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
14465 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
14466 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
14467 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
14468 <SIDI:cas_cmp_str>.
14470 2019-07-06 Jakub Jelinek <jakub@redhat.com>
14472 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
14473 (maybe_lookup_ctx): Add forward declaration.
14474 (omp_find_scan): Likewise. Walk into body of simd if composited
14475 with worksharing loop.
14476 (scan_omp_simd_scan): New function.
14477 (scan_omp_1_stmt): Call it.
14478 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
14479 ctx->for_simd_scan_phase.
14480 (lower_rec_input_clauses): Do much less work for inscan reductions
14481 in ctx->for_simd_scan_phase is_simd regions.
14482 (lower_omp_scan): Set is_simd also on simd constructs composited
14483 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
14484 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
14485 emit their body after in simd constructs composited with worksharing
14487 (lower_omp_for_scan): Handle worksharing loop composited with simd.
14489 * omp-low.c (omp_find_scan): Make static.
14490 (lower_omp_for_scan): Fix order of merge arguments in input phase of
14491 the second loop, var2 represents the first partial sum and so needs
14492 to go before rprivb[ivar].
14494 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
14496 * config/rs6000/rs6000-logue.c: Remove unused code.
14498 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14500 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
14502 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
14505 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
14506 check with a frame laid out check.
14508 2019-07-05 Richard Biener <rguenther@suse.de>
14510 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
14511 when comparing against a store with possibly the same value.
14513 2019-07-05 Richard Biener <rguenther@suse.de>
14515 PR tree-optimization/91091
14516 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
14517 (walk_non_aliased_vuses): Likewise.
14518 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
14519 (get_continuation_for_phi): New tbaa_p parameter and pass
14521 (walk_non_aliased_vuses): Likewise.
14522 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
14523 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
14524 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
14526 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
14527 (adjust_offsets_for_equal_base_address): New function.
14528 (vn_reference_lookup_3): Use it to catch more base equivalences.
14529 Handle and pass down tbaa_p flag.
14530 (vn_reference_lookup_pieces): Adjust.
14531 (vn_reference_lookup): Remove alias-set altering, instead pass
14532 down false as tbaa_p.
14534 2019-07-05 Richard Biener <rguenther@suse.de>
14536 PR tree-optimization/91091
14537 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
14538 accesses can happen with -fno-strict-aliasing.
14540 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
14542 * tree-ssa-alias.c (alias_stats): Add
14543 nonoverlapping_component_refs_since_match_p_must_overlap.
14544 (dump_alias_stats): Print it.
14545 (nonoverlapping_component_refs_since_match_p): Add early exit.
14546 (nonoverlapping_component_refs_p): Do not account early exit.
14548 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14550 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
14551 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
14552 (emit_eh_dispatch): Delete.
14553 (lower_catch): Emit the eh_dispatch manually and set the location of
14554 the first catch statement onto it.
14555 (lower_eh_filter): Emit the eh_dispatch manually and set location.
14556 (lower_eh_dispatch): Propagate location.
14557 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
14558 (eliminate_build): Likewise.
14560 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14562 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
14563 phi nodes if possible.
14564 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
14565 location info on the newly created statement.
14566 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
14567 newly created increment if needed.
14569 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14571 PR middle-end/78884
14572 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
14573 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
14574 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
14575 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
14576 ctx->add_safelen1 is set.
14578 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
14579 GOMP_loop_start at the start of second worksharing loop in a scan.
14580 For nowait, don't emit GOMP_loop_end_nowait at the end of first
14581 worksharing loop in a scan even if there are conditional lastprivates,
14582 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
14584 2019-07-04 Jan Hubicka <jh@suse.cz>
14586 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
14587 Fix check for match in the ref walk.
14589 2019-07-04 Martin Liska <mliska@suse.cz>
14591 * tree-ssa-loop-niter.c
14592 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
14593 (estimate_numbers_of_iterations):
14594 Support __builtin_expect_with_probability for analysis
14595 of # of loop iterations.
14597 2019-07-04 Alexandre Oliva <oliva@adacore.com>
14599 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
14600 * except.c: Likewise.
14601 * expr.c (expand_expr_real_1): Reject it.
14602 * gimplify.c (gimplify_expr): Gimplify it, within
14604 * tree-dump.c (dequeue_and_dump): Dump it.
14605 * tree-pretty-print.c (dump_generic_node): Likewise.
14606 * tree.c (block_may_fallthru): Handle it.
14607 * tree.def (EH_ELSE_EXPR): Introduce it.
14608 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
14609 with GIMPLE_EH_ELSE as try/finally/else.
14611 2019-07-04 Richard Biener <rguenther@suse.de>
14614 * tree-pass.h (execute_all_ipa_transforms): Add a flag
14615 parameter whether to disable GC collection.
14616 * passes.c (execute_one_ipa_transform_pass): Likewise, and
14618 (execute_all_ipa_transforms): Likewise and pass it down.
14619 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
14620 collection from applying IPA transforms.
14621 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
14622 from applying IPA transforms.
14624 2019-07-04 Richard Biener <rguenther@suse.de>
14626 PR tree-optimization/90911
14627 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
14628 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
14629 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14630 scalar_loop_scaling.
14631 (vect_transform_loop): Scale scalar loop profile if needed.
14632 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
14633 the loop copy from if-conversion adjust edge probabilities
14634 and scale the vectorized loop body profile, queue the scalar
14635 profile for updating after peeling.
14637 2019-07-04 Jan Hubicka <jh@suse.cz>
14639 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
14640 parameters; return early for must-alias.
14641 (indirect_ref_may_alias_decl_p): Likewise; when establishing
14642 outer types match, try nonoverlapping_component_refs
14643 if must-alias is not obvious.
14644 (indirect_refs_may_alias_p): Likewise.
14645 (refs_may_alias_p_2): Likewise.
14647 2019-07-04 Richard Biener <rguenther@suse.de>
14649 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
14651 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
14653 (struct vn_walk_cb_data): New callback data struct.
14654 (vn_reference_lookup_2): Adjust.
14655 (vn_reference_lookup_3): Likewise.
14656 (vn_reference_lookup_pieces): Likewise.
14657 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
14658 (visit_reference_op_load): Adjust.
14660 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14662 PR tree-optimization/91063
14663 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
14664 stmt from stmts sequence before calling vect_init_vector_1.
14667 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14670 * fwprop.c (reg_single_def_p): New function.
14671 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
14672 (forward_propagate_into): New parameter reg_prop_only
14673 with default value false.
14674 Propagate def's src into loop only if SET_SRC and SET_DEST
14675 of def_set have single definitions.
14676 Likewise if reg_prop_only is set to true.
14677 (fwprop): New param fwprop_addr_p.
14678 Integrate fwprop_addr into fwprop.
14679 (fwprop_addr): Remove.
14680 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
14682 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
14683 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
14684 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
14686 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14688 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
14689 in worksharing loop scans.
14691 PR tree-optimization/91074
14692 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
14695 PR rtl-optimization/90756
14696 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
14699 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
14701 * config/aarch64/aarch64.md: Remove redundant constraints from
14702 define_expand but keep some patterns untouched if they are
14703 specially selected by TARGET_SECONDARY_RELOAD hook.
14704 * config/aarch64/aarch64-sve.md: Likewise.
14705 * config/aarch64/atomics.md: Remove redundant constraints from
14707 * config/aarch64/aarch64-simd.md: Likewise.
14709 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
14711 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
14712 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
14713 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
14715 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
14718 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
14720 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
14721 (STARTFILE_SPEC): Split crt3 into a separate spec.
14722 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
14723 (DARWIN_CRT2_SPEC): New.
14724 (DARWIN_CRT3_SPEC): New.
14725 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
14726 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
14727 (DARWIN_CRT3_SPEC): New.
14729 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
14731 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
14732 Change the RTL attribute "length" from "4" to "*" to allow the
14733 length attribute to be adjusted automatically for prefixed load,
14734 store, and add immediate instructions.
14735 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
14737 (extendsi<mode>2, EXTSI iterator): Likewise.
14738 (movsi_internal1): Likewise.
14739 (movsi_from_sf): Likewise.
14740 (movdi_from_sf_zero_ext): Likewise.
14741 (mov<mode>_internal): Likewise.
14742 (movcc_internal1, QHI iterator): Likewise.
14743 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
14744 (movsf_from_si): Likewise.
14745 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
14746 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
14747 (mov<mode>, FMOVE128 iterator): Likewise.
14748 (movdi_internal64): Likewise.
14749 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
14751 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
14752 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
14753 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
14754 (vsx_splat_v4sf): Likewise.
14756 2019-07-03 Mark Wielaard <mark@klomp.org>
14759 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
14760 DW_AT_addr_base if there is actually a .debug_addr section with
14762 (output_addr_table): Add DWARF5 table header generation here after
14763 checking there are actually any addresses from...
14764 (dwarf2out_finish): ...here.
14766 2019-07-03 Richard Biener <rguenther@suse.de>
14768 PR middle-end/91069
14769 * match.pd (vec_perm -> bit_insert): Fix element read from
14772 2019-07-03 Martin Liska <mliska@suse.cz>
14774 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
14775 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
14777 * generic-match-head.c: Include dbgcnt.h.
14778 * gimple-match-head.c: Likewise.
14780 2019-07-03 Martin Liska <mliska@suse.cz>
14782 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
14783 (GCOV_COUNTER_V_TOPN): New.
14784 (GCOV_COUNTER_V_INDIR): Use _topn.
14785 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
14786 (GCOV_TOPN_VALUES): New.
14787 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
14788 (GCOV_TOPN_VALUES_COUNTERS): New.
14789 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
14791 (gimple_init_gcov_profiler): Rename variables from one_value
14793 (gimple_gen_one_value_profiler): Remove.
14794 (gimple_gen_topn_values_profiler): New function.
14795 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
14796 names instead of SINGLE_VALUE.
14797 (stream_out_histogram_value): Likewise.
14798 (stream_in_histogram_value): Likewise.
14799 (get_most_common_single_value): Likewise.
14800 (gimple_divmod_fixed_value_transform): Likewise.
14801 (gimple_stringops_transform): Likewise.
14802 (gimple_divmod_values_to_profile): Likewise.
14803 (gimple_stringops_values_to_profile): Likewise.
14804 (gimple_find_values_to_profile): Likewise.
14805 * value-prof.h (enum hist_type): Rename to TOPN.
14806 (gimple_gen_one_value_profiler): Remove.
14807 (gimple_gen_topn_values_profiler): New.
14809 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
14811 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
14812 if it has the DW_AT_data_member_location attribute.
14814 2019-07-03 Richard Biener <rguenther@suse.de>
14816 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
14819 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
14821 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
14822 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
14823 (tlsdesc_small_sve_<mode>): Likewise.
14825 2019-07-03 Martin Liska <mliska@suse.cz>
14827 * Makefile.in: Define ZSTD_LIB.
14828 * common.opt: Adjust compression level
14829 to support also zstd levels.
14830 * config.in: Regenerate.
14831 * configure: Likewise.
14832 * configure.ac: Add --with-zstd and --with-zstd-include options
14834 * doc/install.texi: Mention zstd dependency.
14835 * gcc.c: Print supported LTO compression algorithms.
14836 * lto-compress.c (lto_normalized_zstd_level): Likewise.
14837 (lto_compression_zstd): Likewise.
14838 (lto_uncompression_zstd): Likewise.
14839 (lto_end_compression): Dispatch in between zlib and zstd.
14840 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
14841 (lto_uncompression_zlib): Make it static.
14842 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
14843 * lto-section-in.c (lto_get_section_data): Pass info
14844 about used compression.
14845 * lto-streamer-out.c: By default use zstd when possible.
14846 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
14847 (TV_IPA_LTO_COMPRESS): Likewise for compression.
14849 2019-07-03 Martin Liska <mliska@suse.cz>
14851 * lto-section-in.c (lto_get_section_data): Add "lto" section.
14852 * lto-section-out.c (lto_destroy_simple_output_block): Never
14853 compress LTO_section_lto section.
14854 * lto-streamer-out.c (produce_asm): Do not set major_version
14856 (lto_output_toplevel_asms): Likewise.
14857 (produce_lto_section): New function.
14858 (lto_output): Call produce_lto_section.
14859 (lto_write_mode_table): Do not set major_version and
14861 (produce_asm_for_decls): Likewise.
14862 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
14864 (struct lto_header): Remove.
14865 (struct lto_section): New struct.
14866 (struct lto_simple_header): Do not inherit from lto_header.
14867 (struct lto_file_decl_data): Add lto_section_header field.
14869 2019-07-03 Martin Liska <mliska@suse.cz>
14871 * lra-eliminations.c (eliminate_regs_in_insn): Remove
14873 * reg-stack.c (check_asm_stack_operands): Likewise.
14874 * tree-ssa-structalias.c (create_function_info_for): Likewise.
14875 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14876 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
14877 force_expand_binop.
14879 2019-07-03 Martin Liska <mliska@suse.cz>
14881 PR tree-optimization/90892
14882 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
14883 in string constants.
14885 2019-07-03 Martin Liska <mliska@suse.cz>
14887 PR middle-end/90899
14888 * multiple_target.c (create_dispatcher_calls): Add to comdat
14889 group only if set for ifunc.
14891 2019-07-03 Martin Liska <mliska@suse.cz>
14894 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
14895 Define local_object_name in outer scope in order to handle
14896 use-after-scope issue.
14898 2019-07-03 Martin Liska <mliska@suse.cz>
14900 * common.opt: Add fprofile-note.
14901 * coverage.c (coverage_init): Append the option
14903 * doc/invoke.texi: Document -fprofile-note.
14905 2019-07-03 Jakub Jelinek <jakub@redhat.com>
14907 PR tree-optimization/91033
14908 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14909 vect_analyze_data_refs): Add bool * arguments.
14910 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14911 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14912 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14913 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14914 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14915 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14916 vect_analyze_data_refs caller.
14918 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14920 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14921 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14922 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14923 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14924 OMP_CLAUSE__SCANTEMP_ entry.
14925 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14926 * tree-pretty-print.c (dump_omp_clause): Likewise.
14927 * tree-nested.c (convert_nonlocal_omp_clauses,
14928 convert_local_omp_clauses): Likewise.
14929 * omp-general.h (struct omp_for_data): Add have_scantemp and
14930 have_nonctrl_scantemp members.
14931 * omp-general.c (omp_extract_for_data): Initialize them.
14932 * omp-low.c (struct omp_context): Add scan_exclusive member.
14933 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14934 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14935 ctx->scan_exclusive.
14936 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14937 of !ctx->scan_inclusive.
14938 (lower_rec_input_clauses): Simplify gimplification of dtors using
14939 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14940 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14941 loops. Don't add barrier for reduction_omp_orig_ref if
14942 ctx->scan_??xclusive.
14943 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14944 (lower_omp_scan): Use ctx->scan_exclusive instead
14945 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14946 reductions. Use new_vard != new_var instead of repeated
14947 omp_is_reference calls.
14948 (omp_find_scan, lower_omp_for_scan): New functions.
14949 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14951 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14952 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14953 and fd->have_scantemp.
14955 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14956 on worksharing loop propagate it as shared clause to containing
14959 * omp-expand.c (expand_omp_for_static_nochunk,
14960 expand_omp_for_static_chunk): For nowait worksharing loop with
14961 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14964 2019-07-02 qing zhao <qing.zhao@oracle.com>
14966 PR preprocessor/90581
14967 * doc/cppopts.texi: Add document for -fmax-include-depth.
14968 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14970 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14972 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14973 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14974 (mmx_packssdw): Ditto.
14975 (mmx_punpckhbw): Ditto.
14976 (mmx_punpcklbw): Ditto.
14977 (mmx_punpckhwd): Ditto.
14978 (mmx_punpcklwd): Ditto.
14979 (mmx_punpckhdq): Ditto.
14980 (mmx_punpckldq): Ditto.
14981 (*vec_dupv4hi): Ditto.
14982 (*vec_dupv2si): Ditto.
14983 (mmx_pmovmskb): Ditto.
14984 * config/i386/sse.md (sse_cvtpi2ps): Use
14985 TARGET_SSE2 && SSE_REG_P in split condition.
14986 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14987 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14988 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14989 (ssse3_pshufbv8qi3): Ditto.
14990 (ssse3_palignrdi): Ditto.
14992 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14994 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14995 with inlined save and restore.
14997 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14999 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
15000 to be inserted on single successor edge of the entry block. Then call
15001 commit_edge_insertions instead of inserting the instructions manually.
15002 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
15003 RTL expansion and rebuild jump labels chain.
15005 2019-07-02 Richard Biener <rguenther@suse.de>
15007 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
15009 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
15011 * tree.c (build_common_tree_nodes): Initialize them.
15012 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
15013 Make declarations comments.
15014 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
15015 chrec_known): Remove definitions.
15016 (initialize_scalar_evolutions_analyzer): Remove.
15017 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
15018 * tree-streamer.c (preload_common_nodes): Do not preload
15019 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
15021 2019-07-02 Jan Hubicka <jh@suse.cz>
15023 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
15026 2019-07-02 Jan Hubicka <jh@suse.cz>
15028 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
15030 (nonoverlapping_component_refs_since_match_p): ... this one;
15031 handle also non-decl bases; return -1 if search gave up.
15032 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
15033 nonoverlapping_component_refs_of_decl_p_no_alias to
15034 nonoverlapping_component_refs_since_match_p_may_alias,
15035 nonoverlapping_component_refs_since_match_p_no_alias.
15036 (dump_alias_stats): Update dumping.
15037 (aliasing_matching_component_refs_p): Break out from ...;
15038 dispatch to nonoverlapping_component_refs_for_decl_p
15039 and nonoverlapping_component_refs_since_match_p.
15040 (aliasing_component_refs_p): ... here; call
15041 nonoverlapping_component_refs_p in scenarios where we can not
15042 precisely determine base match.
15043 (decl_refs_may_alias_p): Use
15044 nonoverlapping_component_refs_since_match_p.
15045 (indirect_ref_may_alias_decl_p): Do not call
15046 nonoverlapping_component_refs_p.
15047 (indirect_refs_may_alias_p): Likewise.
15049 2019-07-02 Jan Hubicka <jh@suse.cz>
15051 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
15052 to clobber of return value.
15054 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15056 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
15057 for is_neon_type instructions that have not already been categorized.
15059 2019-07-02 Richard Biener <rguenther@suse.de>
15061 PR tree-optimization/58483
15062 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
15063 for MEM_REF base hashing.
15064 (equal_mem_array_ref_p): Likewise for base comparison.
15066 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15068 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
15069 parameterized name.
15070 (signbit<mode>2): Use that name. Simplify.
15072 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
15074 PR middle-end/66726
15075 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
15076 Tune heuristic from PR71016 to allow MIN / MAX.
15078 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15080 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
15081 parameterized name.
15082 (abs<mode>2): Use that name. Simplify.
15084 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15086 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
15087 parameterized name.
15088 (neg<mode>2): Use that name. Simplify.
15090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15092 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
15094 (abs<mode>2): Use that name. Simplify.
15096 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15098 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
15100 (neg<mode>2): Use that name. Simplify.
15102 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
15104 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
15105 ("enabled" attribute): Handle sse_noavx isa attribute.
15106 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
15107 Use TARGET_SSE && SSE_REGNO_P in split condition.
15108 (*vec_dupv2sf): Ditto.
15110 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15112 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
15114 (floatsi<mode>2): Use that name. Simplify.
15116 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15118 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
15119 parameterized name.
15120 (extenddf<mode>2_vsx): Make this a parameterized name.
15121 (extenddf<mode>2): Use those names. Simplify.
15123 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15125 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
15127 (eh_return): Use that name. Simplify.
15129 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15131 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
15132 (doloop_end): Use that name. Simplify.
15134 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15136 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
15137 parameterized name.
15138 (indirect_jump): Use that name. Simplify.
15140 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15142 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
15143 parameterized name.
15144 (abs<mode>2): Use that name. Simplify.
15146 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15148 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
15149 parameterized name.
15150 (fix_trunc<mode>si2): Use that name. Simplify.
15152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15154 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
15155 (allocate_stack): Use that name. Simplify.
15157 2019-07-01 Martin Sebor <msebor@redhat.com>
15159 PR middle-end/90923
15160 * hash-map.h (hash_map::put): On insertion invoke element ctor.
15161 (hash_map::get_or_insert): Same. Reformat comment.
15162 * hash-set.h (hash_set::add): On insertion invoke element ctor.
15163 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
15164 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
15165 * hash-table.h (hash_table::operator=): Prevent copy assignment.
15166 (hash_table::hash_table (const hash_table&)): Use copy ctor
15167 instead of assignment to copy elements.
15169 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
15170 John David Anglin <danglin@gcc.gnu.org>
15173 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
15174 using saved frame pointer.
15176 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
15178 PR middle-end/64242
15179 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
15180 Add frame clobber and schedule blockage.
15182 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
15184 * doc/invoke.texi (Link Options): Further editorial changes to
15185 -flinker-output docs.
15187 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15189 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
15190 Load both operands of a PLUS into registers separately.
15192 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
15194 * config/s390/vector.md: Fix shift count operand printing.
15196 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15198 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
15200 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15202 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
15203 Use recog_data to test for an output operand.
15205 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15207 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
15208 exclude any others that are disparaged or that are bound to need
15210 (ira_get_dup_out_num): Expand comment.
15212 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15214 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
15215 constraint string for each operand/alternative combo. Only handle
15216 '%' at the start of constraint strings, and look for it outside
15219 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15221 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
15222 alternative_mask instead of HARD_REG_SET to represent a
15223 bitmask of alternatives.
15224 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15225 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
15227 2019-07-01 Martin Liska <mliska@suse.cz>
15229 * edit-context.c (test_applying_fixits_unreadable_file): Do not
15230 use () for a constructor call.
15231 (test_applying_fixits_line_out_of_range): Likewise.
15232 * ggc-page.c (alloc_page): Use (void *) for %p printf format
15234 (free_page): Likewise.
15236 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
15238 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
15239 parameter names to match usage (no functional change).
15240 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
15242 2019-07-01 Richard Biener <rguenther@suse.de>
15244 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
15246 (pass_fre::execute): Honor it.
15247 * passes.def: Adjust pass_fre invocations to allow iterating,
15248 add non-iterating pass_fre before late threading/dom.
15250 2019-07-01 Richard Biener <rguenther@suse.de>
15252 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
15253 TARGET_MEM_REF handling to also handle address-taken ones.
15255 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
15257 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15258 hardware attributes): Document avx512vp2intersect.
15260 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15262 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
15263 (abs<mode>2): New expander.
15264 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
15265 Use CODE_FOR_ssse3_absv8qi2.
15266 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
15267 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
15269 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15271 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
15272 to sse, sse_noavx and avx. Update all uses.
15274 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15276 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
15277 (*mmx_<plusminus_insn><mode>3): Ditto.
15278 (*mmx_mulv4hi3"): Ditto.
15279 (*mmx_smulv4hi3_highpart): Ditto.
15280 (*mmx_umulv4hi3_highpart): Ditto.
15281 (*mmx_pmaddwd): Ditto.
15282 (*sse2_umulv1siv1di3): Ditto.
15283 (*mmx_<code>v4hi3): Ditto.
15284 (*mmx_<code>v8qi3): Ditto.
15285 (mmx_ashr<mode>3): Ditto.
15286 ("mmx_<shift_insn><mode>3): Ditto.
15287 (*mmx_eq<mode>3): Ditto.
15288 (mmx_gt<mode>3): Ditto.
15289 (mmx_andnot<mode>3): Ditto.
15290 (*mmx_<code><mode>3): Ditto.
15291 (*mmx_pinsrw): Ditto.
15292 (*mmx_pextrw): Ditto.
15293 (mmx_pshufw_1): Ditto.
15294 (*mmx_uavgv8qi3): Ditto.
15295 (*mmx_uavgv4hi3): Ditto.
15296 ("mmx_psadbw): Ditto.
15297 * config/i386/sse.md (sse_cvtps2pi): Ditto.
15298 (sse_cvttps2pi): Ditto.
15299 (ssse3_pmaddubsw): Ditto.
15300 (*ssse3_pmulhrswv4hi3): Ditto.
15301 (ssse3_psign<mode>3): Ditto.
15303 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
15305 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
15306 adjustment for bit-fields to all aggregate types.
15308 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
15310 * config/rs6000/predicates.md (pcrel_address): Use
15311 SYMBOL_REF_LOCAL_P to determine if a label is local.
15312 (pcrel_external_address): New predicate.
15313 (non_prefixed_mem_operand): Delete, predicate not used.
15314 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
15315 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
15317 (SYMBOL_REF_PCREL_P): Likewise.
15320 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
15322 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
15323 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
15324 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
15326 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
15328 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
15329 override on extra_headers.
15331 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
15333 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
15334 * config/darwin-driver.c (darwin_default_min_version): Remove newline
15336 (darwin_driver_init): Likewise.
15338 2019-06-28 Jan Beulich <jbeulich@suse.com>
15340 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
15341 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
15342 Eliminate redundant alternative.
15344 2019-06-28 Jan Beulich <jbeulich@suse.com>
15346 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
15347 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
15348 Use vector_operand.
15350 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
15352 * config/arc/arc.c (arc_rtx_costs): All short instructions are
15353 having a lower cost regardless of the speed option.
15355 2019-06-28 Jan Beulich <jbeulich@suse.com>
15357 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
15358 vector_operand plus, on both alternatives, "Bm" constraint.
15360 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
15362 * config/arm/arm.md: Remove redundant constraints from
15363 define_expand but leave reload_inm and reload_outm patterns
15364 untouched since they need special constraints to work.
15365 * config/arm/arm-fixed.md: Remove redundant constraints from
15367 * config/arm/iwmmxt.md: Likewise.
15368 * config/arm/neon.md: Likewise.
15369 * config/arm/sync.md: Likewise.
15370 * config/arm/thumb1.md: Likewise.
15371 * config/arm/vec-common.md: Likewise.
15373 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
15375 * doc/install.texi: Document --disable-tm-clone-registry.
15377 2019-06-27 Jakub Jelinek <jakub@redhat.com>
15380 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
15383 PR tree-optimization/91010
15384 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
15385 return true. Otherwise, don't call operand_equal_p if offset1 or
15386 offset2 is NULL and just return false.
15388 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15390 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
15391 user-specified float mode choice for kernel mode code.
15393 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15395 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
15398 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15400 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
15401 use longcall for 64b code.
15403 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
15405 * builtins.c (get_memory_rtx): Fix comment.
15406 * optabs.def (movmem_optab): Change to cpymem_optab.
15407 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
15408 (emit_block_move_hints): Change movmem to cpymem.
15409 * defaults.h: Change movmem to cpymem.
15410 * targhooks.c (get_move_ratio): Change movmem to cpymem.
15411 (default_use_by_pieces_infrastructure_p): Ditto.
15412 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
15413 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
15415 * config/aarch64/aarch64.h: Change movmem to cpymem.
15416 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
15417 * config/alpha/alpha.h: Change movmem to cpymem in comment.
15418 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
15420 * config/arc/arc-protos.h: Change movmem to cpymem.
15421 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
15422 * config/arc/arc.h: Change movmem to cpymem in comment.
15423 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
15424 * config/arm/arm-protos.h: Change movmem to cpymem in names.
15425 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
15426 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
15427 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
15428 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
15429 * config/avr/avr-protos.h: Change movmem to cpymem.
15430 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
15431 avr_out_movmem): Change movmem to cpymem.
15432 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
15433 Change movmem to cpymem.
15434 * config/bfin/bfin-protos.h: Change movmem to cpymem.
15435 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
15436 Change movmem to cpymem.
15437 * config/bfin/bfin.h: Change movmem to cpymem in comment.
15438 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
15439 * config/c6x/c6x-protos.h: Change movmem to cpymem.
15440 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
15441 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
15442 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
15443 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
15444 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
15445 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
15446 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
15447 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
15448 expand_small_cpymem_or_setmem,
15449 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
15450 expand_set_or_cpymem_constant_prologue,
15451 ix86_expand_set_or_cpymem): Change movmem to cpymem.
15452 * config/i386/i386-protos.h: Change movmem to cpymem.
15453 * config/i386/i386.h: Change movmem to cpymem in comment.
15454 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
15455 (setmem<mode>): Change expansion function name.
15456 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
15457 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
15458 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
15459 * config/m32c/m32c-protos.h: Change movmem to cpymem.
15460 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
15461 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
15462 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
15464 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
15465 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
15466 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
15467 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
15468 Change movmem to cpymem.
15469 * config/mips/mips.h: Change movmem to cpymem.
15470 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
15471 * config/nds32/nds32-memory-manipulation.c
15472 (nds32_expand_movmemsi_loop_unknown_size,
15473 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
15474 nds32_expand_movmemsi_unroll,
15475 nds32_expand_movmemsi): Change movmem to cpymem.
15476 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
15477 * config/nds32/nds32-protos.h: Change movmem to cpymem.
15478 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
15479 (pa_adjust_insn_length): Change call to compute_movmem_length.
15480 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
15481 movmemdi, movmemdi_prereload,
15482 movmemdi_postreload): Change movmem to cpymem.
15483 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
15484 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
15485 * config/riscv/riscv.c: Change movmem to cpymem in comment.
15486 * config/riscv/riscv.h: Change movmem to cpymem.
15487 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
15488 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
15489 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
15491 * config/s390/s390-protos.h: Change movmem to cpymem.
15492 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
15493 s390_expand_insv): Change movmem to cpymem.
15494 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
15495 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
15496 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
15497 * config/sparc/sparc.h: Change movmem to cpymem in comment.
15498 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
15499 for nonexistent function.
15500 * config/vax/vax.h: Change movmem to cpymem in comment.
15501 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
15502 * config/visium/visium.h: Change movmem to cpymem in comment.
15503 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
15504 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
15505 * doc/md.texi: Change movmem to cpymem and update description to match.
15506 * doc/rtl.texi: Change movmem to cpymem.
15507 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
15508 * doc/tm.texi: Regenerate.
15510 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
15512 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
15513 -fvariable-expansion-in-unroller by default.
15514 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
15517 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
15520 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15521 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
15523 * config.gcc(rs6000-*-*): Define target_gtfiles.
15525 2019-06-27 Jan Hubicka <jh@suse.cz>
15527 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
15528 (add_type_duplicate): When odr hash is not allocated, to nothing.
15529 (odr_based_tbaa_p): New function.
15530 (set_type_canonical_for_odr_type): New function.
15531 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
15532 set_type_canonical_for_odr_type): New.
15533 * tree.c (gimple_canonical_types_compatible_p): ODR types with
15534 ODR based TBAA are not equivalent to non-ODR types.
15536 2019-06-27 Martin Liska <mliska@suse.cz>
15538 PR tree-optimization/90974
15539 PR rtl-optimization/90975
15540 PR rtl-optimization/90976
15542 PR tree-optimization/91017
15543 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
15545 * lra.c (lra_set_insn_recog_data): Remove a leftover from
15546 initial commit of IRA.
15547 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
15549 * tree-vect-loop.c (vect_create_epilog_for_reduction):
15550 Remove unused mode1.
15551 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
15554 2019-06-27 Jakub Jelinek <jakub@redhat.com>
15557 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
15558 instead of register_operand for operands[1], add m to its constraints
15559 if operands[2] uses "C" constraint. Ensure in condition that if
15560 operands[2] is not 0, then operands[1] is not a MEM. For last two
15561 alternatives, use unaligned loads instead of aligned if operands[1] is
15562 misaligned_operand.
15564 2019-06-27 Martin Liska <mliska@suse.cz>
15566 * asan.c (asan_emit_allocas_unpoison): Remove obviously
15568 * bt-load.c (move_btr_def): Likewise.
15569 * builtins.c (expand_builtin_apply_args_1): Likewise.
15570 (expand_builtin_apply): Likewise.
15571 * cfgexpand.c (expand_asm_stmt): Likewise.
15572 (construct_init_block): Likewise.
15573 * cfghooks.c (verify_flow_info): Likewise.
15574 * cfgloopmanip.c (remove_path): Likewise.
15575 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
15576 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
15577 * combine.c (simplify_if_then_else): Likewise.
15578 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15579 (choose_basereg): Likewise.
15580 (ix86_expand_prologue): Likewise.
15581 (ix86_preferred_output_reload_class): Likewise.
15582 * cselib.c (cselib_record_sets): Likewise.
15583 * df-scan.c (df_scan_alloc): Likewise.
15584 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
15585 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
15586 * emit-rtl.c (try_split): Likewise.
15587 * graphite-scop-detection.c (assign_parameter_index_in_region):
15589 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
15590 * ira-color.c (setup_profitable_hard_regs): Likewise.
15591 * ira.c (rtx_moveable_p): Likewise.
15592 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
15593 * read-rtl.c (read_subst_mapping): Likewise.
15594 * regrename.c (scan_rtx): Likewise.
15595 * reorg.c (fill_slots_from_thread): Likewise.
15596 * tree-inline.c (tree_function_versioning): Likewise.
15597 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
15598 * tree-ssa-sink.c (statement_sink_location): Likewise.
15599 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
15600 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
15601 (vect_create_epilog_for_reduction): Likewise.
15602 * tree.c (build_nonstandard_integer_type): Likewise.
15604 2019-06-27 Richard Biener <rguenther@suse.de>
15606 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
15608 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
15610 PR tree-optimization/89772
15611 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
15612 out-of-bound accesses checking.
15614 2019-06-27 Martin Liska <mliska@suse.cz>
15616 PR tree-optimization/91014
15617 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
15618 when LHS is NULL_TREE.
15620 2019-06-27 Martin Liska <mliska@suse.cz>
15622 * symbol-summary.h (traverse): Pass
15623 argument a to the call of callback.
15624 (gt_ggc_mx): Mark arguments as unused.
15625 (gt_pch_nx): Likewise.
15627 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
15630 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
15633 2019-06-26 Jeff Law <law@redhat.com>
15635 PR tree-optimization/90883
15636 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
15637 (delete_dead_or_redundant_assignment): Likewise.
15639 PR tree-optimization/90883
15640 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
15641 * tree-ssa-dse.c: Update various comments to distinguish between
15642 dead and redundant stores.
15643 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
15644 (dse_optimize_redundant_stores): New function.
15645 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
15646 Distinguish between dead and redundant calls in dump output. All
15648 (delete_dead_or_redundant_assignment): Similarly for assignments.
15649 (dse_optimize_stmt): Handle _CHK variants. For statements which
15650 store 0 into multiple memory locations, try to prove a subsequent
15651 store is redundant.
15653 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
15656 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
15657 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
15659 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
15661 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
15662 (branch_islands): New extern.
15663 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
15664 * config/rs6000/rs6000.c: .. here.
15666 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
15668 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
15669 (powerpc*-*-*) ... to here.
15671 2019-06-26 Jeff Law <law@redhat.com>
15673 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
15674 memcpy, memmove and memset builtins.
15675 (maybe_trim_memstar_call): Likewise.
15677 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15679 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
15681 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15683 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
15685 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15687 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
15689 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
15691 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
15694 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15696 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
15698 2019-06-26 Richard Biener <rguenther@suse.de>
15701 * tree-inline.c (remap_ssa_name): Copy SSA range info.
15703 2019-06-26 Richard Biener <rguenther@suse.de>
15705 * lto-streamer.h (lto_bitmap_alloc): Remove.
15706 (lto_bitmap_free): Likewise.
15707 * lto-streamer.c (lto_bitmap_alloc): Remove.
15708 (lto_bitmap_free): Likewise.
15709 (lto_obstack): Likewise.
15710 (lto_obstack_initialized): Likewise.
15711 * lto-streamer-out.c (lto_output): Use own obstack for local
15712 bitmap, free it consistently.
15714 2019-06-26 Jakub Jelinek <jakub@redhat.com>
15717 * config/i386/sse.md
15718 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
15719 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
15720 insns if operands[2] is misaligned_operand.
15722 2019-06-26 Li Jia He <helijia@linux.ibm.com>
15724 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
15726 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
15729 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15731 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
15733 2019-06-26 Martin Liska <mliska@suse.cz>
15735 PR tree-optimization/90973
15736 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
15737 epilogue_cost_vec instead of prologue_cost_vec for
15740 2019-06-26 Martin Liska <mliska@suse.cz>
15742 * bb-reorder.c (connect_better_edge_p): Add missing else
15743 statement in the middle of if-else statements.
15745 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
15746 H.J. Lu <hongjiu.lu@intel.com>
15747 Olga Makhotina <olga.makhotina@intel.com>
15749 * common/config/i386/i386-common.c
15750 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
15751 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
15752 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
15753 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
15754 (ix86_handle_option): Handle -mavx512vp2intersect.
15755 * config/i386/avx512vp2intersectintrin.h: New.
15756 * config/i386/avx512vp2intersectvlintrin.h: New.
15757 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
15758 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15759 AVX512VP2INTERSECT.
15760 * config/i386/i386-builtin-types.def: Add new types.
15761 * config/i386/i386-builtin.def: Add new builtins.
15762 * config/i386/i386-builtins.c: (enum processor_features): Add
15763 F_AVX512VP2INTERSECT.
15764 (static const _isa_names_table isa_names_table): Ditto.
15765 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15766 __AVX512VP2INTERSECT__.
15767 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
15768 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
15769 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
15770 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
15771 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
15772 * config/i386/i386-options.c (ix86_target_string): Add
15773 -mavx512vp2intersect.
15774 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
15775 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
15776 P2HImode and P2QImode.
15777 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
15778 number for P2QImode and P2HImode.
15779 (ix86_regmode_natural_size): New function.
15780 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
15781 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
15782 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
15783 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
15784 * config/i386/i386.opt: Add -mavx512vp2intersect.
15785 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
15786 avx512vp2intersectvlintrin.h.
15787 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
15788 (define_mode_iterator VI48_AVX512VP2VL): New.
15789 (avx512vp2intersect_2intersect<mode>,
15790 avx512vp2intersect_2intersectv16si): New define_insn patterns.
15791 * config.gcc: Add avx512vp2intersectvlintrin.h and
15792 avx512vp2intersectintrin.h to extra_headers.
15793 * doc/invoke.texi: Document -mavx512vp2intersect.
15795 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
15797 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
15799 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15801 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
15802 savres_routine_syms, savres_routine_name, morestack_ref,
15803 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15804 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15805 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15806 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15807 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15808 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15809 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15810 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15811 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15812 get_stack_clash_protection_probe_interval,
15813 get_stack_clash_protection_guard_size,
15814 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15815 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15816 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15817 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15818 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15819 gen_frame_mem_offset, rs6000_savres_routine_name,
15820 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15821 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15822 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15823 rs6000_global_entry_point_prologue_needed_p,
15824 rs6000_get_separate_components, rs6000_components_for_bb,
15825 rs6000_disqualify_components, rs6000_emit_prologue_components,
15826 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15827 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15828 rs6000_output_savres_externs, rs6000_output_function_prologue,
15829 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15830 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15831 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15832 rs6000_output_function_epilogue, gen_add3_const,
15833 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15834 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15836 (machine_function): Moved to rs6000.h.
15837 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
15839 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
15840 savres_routine_syms, savres_routine_name, morestack_ref,
15841 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15842 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15843 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15844 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15845 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15846 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15847 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15848 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15849 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15850 get_stack_clash_protection_probe_interval,
15851 get_stack_clash_protection_guard_size,
15852 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15853 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15854 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15855 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15856 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15857 gen_frame_mem_offset, rs6000_savres_routine_name,
15858 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15859 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15860 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15861 rs6000_global_entry_point_prologue_needed_p,
15862 rs6000_get_separate_components, rs6000_components_for_bb,
15863 rs6000_disqualify_components, rs6000_emit_prologue_components,
15864 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15865 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15866 rs6000_output_savres_externs, rs6000_output_function_prologue,
15867 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15868 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15869 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15870 rs6000_output_function_epilogue, gen_add3_const,
15871 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15872 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15873 to here from rs6000.c.
15874 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
15875 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
15876 quad_address_offset_p) Moved to here from rs6000.c.
15877 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
15878 * config/config.gcc: Add new source file rs6000-logue.c to garbage
15881 2019-06-25 Martin Liska <mliska@suse.cz>
15883 * hash-table.c (hashtab_chk_error): Move here from ...
15884 * hash-table.h (hashtab_chk_error): ... here.
15886 2019-06-25 Martin Liska <mliska@suse.cz>
15888 PR tree-optimization/90978
15889 * df-scan.c (df_update_entry_block_defs): Remove dead else
15891 (df_update_exit_block_uses): Likewise.
15893 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
15894 Andrew Stubbs <ams@codesourcery.com>
15896 * config.gcc (thread_file): Set to gcn for AMD GCN.
15897 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
15898 (TARGET_EMUTLS_VAR_INIT): New hook.
15900 2019-06-25 Martin Jambor <mjambor@suse.cz>
15903 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
15905 2019-06-25 Richard Biener <rguenther@suse.de>
15907 PR tree-optimization/90930
15908 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15909 into parallel form in the last pass instance.
15911 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15913 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15914 (arc_legitimize_pic_address): Simplify and cleanup the function.
15915 (SYMBOLIC_CONST): Remove.
15916 (prepare_pic_move): Likewise.
15917 (prepare_move_operands): Handle complex mov cases here.
15918 (arc_legitimize_address_0): Remove call to
15919 arc_legitimize_pic_address.
15920 (arc_legitimize_address): Remove call to
15921 arc_legitimize_tls_address.
15922 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15923 (movhi_insn): Likewise.
15925 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15927 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15929 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15930 format of "__intN" types for UINTMAX_TYPE.
15931 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15932 format of "__intN" types for SIZETYPE.
15933 * tree.c (build_common_tree_nodes): Accept "__intN__"
15934 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15935 * doc/invoke.texi: Document that __intN__ disables pedantic
15938 2019-06-25 Jan Hubicka <jh@suse.cz>
15940 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15941 base2_alias_set is non-zero before doing TBAA based disambiguation.
15943 2019-06-25 Martin Liska <mliska@suse.cz>
15945 PR tree-optimization/90973
15946 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15947 of prologue and epilogue.
15949 2019-06-24 Jan Hubicka <jh@suse.cz>
15951 * ipa-utils.h (type_with_linkage_p): Verify that type is
15953 (odr_type_p): Remove extra return.
15954 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15955 hash STRING_FLAG only for arrays and integers.
15956 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15957 Update analogously.
15958 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15960 * print-tree.c (print_node): Print cxx-odr-p
15962 * tree.c (need_assembler_name_p): Also check that type
15964 (verify_type_variant): Update verification of SRING_FLAG;
15965 also check CXX_ODR_P.
15966 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15967 (TYPE_STRING_FLAG): Use it.
15968 (TYPE_CXX_ODR_P): New macro.
15969 * dwarf2out.c (gen_array_type_die): First check that type
15970 is an array and then test string flag.
15972 2019-06-24 Richard Biener <rguenther@suse.de>
15974 PR tree-optimization/90972
15975 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15976 in common code, dealing with STRING_CST properly.
15978 2019-06-24 Richard Biener <rguenther@suse.de>
15980 PR tree-optimization/90930
15981 PR tree-optimization/90316
15982 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15983 decrement of limit.
15985 2019-06-24 Martin Sebor <msebor@redhat.com>
15987 * tree-pretty-print.h: Remove unnecessary punctuation characters
15989 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15991 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15993 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15994 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15995 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15997 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15999 * config/rs6000/darwin.h: Handle GCC target pragma.
16001 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
16003 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
16005 2019-06-22 Jeff Law <law@redhat.com>
16007 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16009 2019-06-22 Jan Hubicka <jh@suse.cz>
16011 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
16012 give up on bitfields; continue searching for different refs
16015 2019-06-21 Jakub Jelinek <jakub@redhat.com>
16017 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
16018 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
16019 containing the offset as possible simd lane access. Look through
16020 widening conversion. Move the
16021 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
16023 2019-06-21 Richard Biener <rguenther@suse.de>
16025 PR tree-optimization/90930
16026 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
16027 flag on new stmts to avoid re-processing them.
16029 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
16031 PR c++/90875 - added -Wswitch-outside-range option
16032 * doc/invoke.texi (Wswitch-outside-range): Document.
16034 2019-06-21 Jeff Law <law@redhat.com>
16036 PR tree-optimization/90949
16037 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
16038 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
16040 2019-06-21 Richard Biener <rguenther@suse.de>
16043 * dwarf2out.c (prune_unused_types_walk): Always consider
16044 function-local extern declarations as used.
16046 2019-06-21 Richard Biener <rguenther@suse.de>
16048 PR tree-optimization/90913
16049 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
16050 the scalar variant of if-conversion versioning.
16052 2019-06-21 Jakub Jelinek <jakub@redhat.com>
16054 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
16055 create another "omp scan inscan exclusive" array if
16056 !ctx->scan_inclusive.
16057 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
16058 (lower_omp_scan): Likewise.
16059 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
16060 2-bit bitfield for simd_lane_access_p member.
16061 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
16062 aux == (void *)-4 as simd lane access.
16063 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
16064 comment with permutations to show the canonical permutation order.
16065 (vectorizable_scan_store): Handle exclusive scan.
16066 (vectorizable_store): Call vectorizable_scan_store even for
16067 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
16069 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
16070 "omp simd array" arrays with one byte elements.
16072 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
16074 * config/alpha/alpha.md (@unaligned_store<mode>):
16075 Rename from unaligned_store<mode>.
16076 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
16077 * config/alpha/sync.md (@load_locked_<mode>): Rename
16078 from load_locked_<mode>.
16079 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
16080 (@atomic_compare_and_swap<mode>_1): Rename
16081 from atomic_compare_and_swap<mode>_1.
16082 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
16083 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
16084 Use gen_reload_in_aligned and gen_unaligned_store.
16085 (emit_load_locked): Remove.
16086 (emit_store_conditional): Ditto.
16087 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
16088 (alpha_split_compare_and_swap): Ditto.
16089 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
16090 (alpha_split_compare_and_swap_12): Use gen_load_locked
16091 and gen_store_conditional.
16092 (alpha_split_atomic_exchange): Ditto.
16093 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
16094 (alpha_split_atomic_exchange_12): Use gen_load_locked
16095 and gen_store_conditional.
16097 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
16099 * config/aarch64/aarch64-errata.h: New file.
16100 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
16101 (CA53_ERR_843419_SPEC): Delete.
16102 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
16103 * config/aarch64/aarch64-linux.h: Likewise.
16104 * config/aarch64/aarch64-netbsd.h: Likewise.
16105 * config/aarch64/aarch64-freebsd.h: Likewise.
16107 2019-06-20 Marek Polacek <polacek@redhat.com>
16109 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
16111 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
16113 * config/rs6000/rs6000.md (isa attribute): Add support for
16114 for a future processor.
16116 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
16119 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
16120 standard scalar operation pattern for V2DF.
16121 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
16122 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
16123 (*ieee_<ieee_maxmin><mode>3): Likewise.
16124 (vec_setv2df_0): Likewise.
16126 2019-06-20 Jan Hubicka <jh@suse.cz>
16128 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
16129 parameter; it has no use in gimple memory model.
16130 (indirect_ref_may_alias_decl_p): Update.
16132 2019-06-20 Martin Liska <mliska@suse.cz>
16134 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
16137 2019-06-20 Jakub Jelinek <jakub@redhat.com>
16139 * tree-vect-stmts.c (enum scan_store_kind): New type.
16140 (scan_store_can_perm_p): Change last argument from int * to
16141 vec<enum scan_store_kind> *, record precisely which permutations
16142 need whole vector left shift or that plus VEC_COND_EXPR.
16143 (vectorizable_scan_store): Adjust caller, use whole vector left shift
16144 and additional VEC_COND_EXPR only for those iterations that need it.
16146 2019-06-20 Alexandre Oliva <oliva@adacore.com>
16148 * config.gcc: Fix ARM --with-fpu checking and error message.
16150 2019-06-19 Marek Polacek <polacek@redhat.com>
16152 PR c++/60364 - noreturn after first decl not diagnosed.
16153 * attribs.c (get_attribute_namespace): No longer static.
16154 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
16156 (attr_noreturn_exclusions): Make it extern.
16157 * attribs.h (get_attribute_namespace): Declare.
16158 * tree-inline.c (function_attribute_inlinable_p): Use
16159 get_attribute_name.
16161 2019-06-19 Martin Sebor <msebor@redhat.com>
16163 PR tree-optimization/90626
16164 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
16166 PR tree-optimization/90626
16167 * tree-ssa-strlen.c (strxcmp_unequal): New function.
16168 (handle_builtin_string_cmp): Call it.
16170 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
16172 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
16173 and DARWIN_NOPIE_SPEC.
16174 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
16175 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
16176 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
16177 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
16178 (DARWIN_EXPORT_DYNAMIC): Delete.
16179 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
16180 and pie options processing to darwin.h.
16181 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
16183 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
16185 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
16186 in computing the number of options to be moved.
16188 2019-06-19 Maya Rashish <coypu@sdf.org>
16190 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
16191 (CLEAR_INSN_CACHE) Use it.
16193 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
16195 * config/i386/i386.md (cmpstrnsi): Remove dead code.
16197 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
16199 PR middle-end/84521
16200 * builtins.c (expand_builtin_setjmp_setup): Save
16201 hard_frame_pointer_rtx.
16202 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
16204 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
16206 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
16208 (remove_reg_equal_offset_note): Remove unused function.
16209 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
16211 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16212 (arc_builtin_setjmp_frame_value): Remove function.
16213 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16214 (avr_builtin_setjmp_frame_value): Remove function.
16215 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16216 (ix86_builtin_setjmp_frame_value): Remove function.
16217 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
16218 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16219 (sparc_builtin_setjmp_frame_value): Remove function.
16220 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16221 (vax_builtin_setjmp_frame_value): Remove function.
16222 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
16223 pointer if has_nonlocal_label.
16225 2019-06-19 Jakub Jelinek <jakub@redhat.com>
16227 * doc/md.texi: Document vec_shl_<mode> pattern.
16228 * optabs.def (vec_shl_optab): New optab.
16229 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
16230 argument, if == vec_shl_optab, check for left whole vector shift
16231 pattern rather than right shift.
16232 (expand_vec_perm_const): Add vec_shl_optab support.
16233 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
16235 * tree-vect-generic.c (lower_vec_perm): Support permutations which
16236 can be handled by vec_shl_optab.
16237 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
16238 (check_scan_store): Use it.
16239 (vectorizable_scan_store): If target can't do normal permutations,
16240 try to use whole vector left shifts and if needed a VEC_COND_EXPR
16242 * config/i386/sse.md (vec_shl_<mode>): New expander.
16244 * omp-low.c (lower_rec_input_clauses): Handle references properly
16246 (lower_omp_scan): Likewise.
16248 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16250 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
16251 mem_mode is BLKmode.
16253 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
16256 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
16257 pointer adjustment for the case of no callee-saved registers and
16258 stack frame bigger than 128 bytes.
16260 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
16262 PR middle-end/90862
16263 * omp-low.c (check_omp_nesting_restrictions): Handle
16264 GF_OMP_TARGET_KIND_OACC_DECLARE.
16266 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
16268 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
16269 (@add<mode>3_carry): Rename from add<mode>3_carry.
16270 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
16271 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
16272 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
16273 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
16274 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
16275 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
16276 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
16277 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
16278 (cmpstrnsi): Use gen_cmp_1.
16279 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
16280 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
16281 (@umonitor_<mode>): Rename from umonitor_<mode>.
16282 * config/i386/i386-expand.c (ix86_expand_copysign):
16283 Use gen_copysign3_const and gen_copysign3_var.
16284 (ix86_expand_xorsign): Use gen_xorsign3_1.
16285 (ix86_expand_branch): Use gen_sub3_carry_ccc,
16286 gen_sub3_carry_ccgz and gen_cmp1.
16287 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
16288 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
16289 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
16290 (ix86_split_lshr): Ditto.
16291 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
16293 2019-06-18 Jason Merrill <jason@redhat.com>
16295 * tree.c (build_constructor): Add MEM_STAT_DECL.
16297 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16299 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
16300 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
16301 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
16302 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
16303 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
16304 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
16305 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
16306 Use CC_NZC instead of CC.
16307 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
16308 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
16309 (aarch64_print_operand): Handle E_CC_NZCmode.
16310 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
16311 of gen_set_clobber_cc.
16313 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16315 * config/aarch64/aarch64-sve.md: Tabify file.
16317 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16319 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
16320 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
16321 * config/aarch64/aarch64-sve.md: Use it.
16323 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16325 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
16326 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
16327 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
16328 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
16329 (aarch64_expand_sve_vec_cmp_int): Use it.
16330 (aarch64_expand_sve_vec_cmp_float): Likewise.
16331 * config/aarch64/aarch64-sve.md: Likewise throughout.
16333 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16334 Kugan Vivekanandarajah <kuganv@linaro.org>
16336 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
16337 (*cond_<optab><mode>_z): Fold into...
16338 (*cond_<optab><mode>_any): ...here. Also handle cases in which
16339 operand 4 can be tied to operand 0 (either inherently or via RA).
16341 2019-06-18 Richard Biener <rguenther@suse.de>
16344 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
16345 as if optimized away.
16347 2019-06-18 Tom de Vries <tdevries@suse.de>
16349 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
16350 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
16351 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
16353 (define_insn "@set_softstack_<mode>"): ... this.
16354 (define_insn "omp_simt_enter_<mode>"): Rename to ...
16355 (define_insn "@omp_simt_enter_<mode>"): ... this.
16356 (define_insn "omp_simt_exit_<mode>"): Rename to ...
16357 (define_insn "@omp_simt_exit_<mode>"): ... this.
16359 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16361 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
16362 vf parameter. Restore the previous iv step of nscalars_step,
16363 but give it iv_type rather than compare_type. Tweak code order
16364 to match the comments.
16365 (vect_set_loop_condition_masked): Update accordingly.
16366 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
16367 for iv_precision. Tweak comment formatting.
16369 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
16371 * config/darwin.c: Strip trailing whitespace.
16373 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
16375 * config/darwin.c (darwin_emit_unwind_label): New default to false.
16376 (darwin_override_options): Set darwin_emit_unwind_label as needed.
16378 2019-06-18 Martin Jambor <mjambor@suse.cz>
16381 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
16382 caller does not have flag_ipa_cp set.
16384 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16386 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
16387 from "*fold_left_plus_<mode>", updated operands order.
16388 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
16389 * internal-fn.c (mask_fold_left_direct): New define.
16390 (expand_mask_fold_left_optab_fn): Likewise.
16391 (direct_mask_fold_left_optab_supported_p): Likewise.
16392 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
16393 * optabs.def (mask_fold_left_plus_optab): New optab.
16394 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
16395 masked internal_fn for a reduction ifn.
16396 (vectorize_fold_left_reduction): Add support for masking reductions.
16398 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
16400 PR middle-end/80791
16401 * target.def (predict_doloop_p): New hook.
16402 * targhooks.h (default_predict_doloop_p): New declaration.
16403 * targhooks.c (default_predict_doloop_p): New function.
16404 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
16405 * doc/tm.texi: Regenerate.
16406 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
16407 (TARGET_PREDICT_DOLOOP_P): New macro.
16408 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
16410 2019-06-17 Jakub Jelinek <jakub@redhat.com>
16412 * omp-low.c (struct omp_context): Add scan_inclusive field.
16413 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
16415 (struct omplow_simd_context): Add lastlane member.
16416 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
16417 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
16419 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
16420 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
16421 (lower_omp_scan): New function.
16422 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
16423 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
16424 check 3rd argument if present rather than 2nd.
16425 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
16426 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
16428 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16429 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
16431 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
16432 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
16433 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
16435 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
16436 IFN_GOMP_SIMD_LANE argument.
16437 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
16438 encoded ->aux value.
16439 * tree-vect-stmts.c: Include attribs.h.
16440 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
16441 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
16443 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
16444 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
16446 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
16449 * config/i386/i386.md (*nabstf2_1): New insn pattern.
16450 (*nabs<mode>2_1): Ditto.
16451 (nabs sse-reg splitter): New splitter.
16452 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
16454 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16456 PR bootstrap/90873.
16457 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16460 2019-06-17 Tom de Vries <tdevries@suse.de>
16462 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
16463 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
16464 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
16466 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
16468 (define_insn "omp_simt_enter_insn"): Rename to ...
16469 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
16470 match_operand 0, 1 and 2, as well as the unspec_volatile result.
16471 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
16472 gen_omp_simt_enter_si.
16473 (define_expand "omp_simt_exit"): New.
16474 (define_insn "omp_simt_exit"): Rename to ...
16475 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
16478 2019-06-17 Matthew Green <mrg@eterna.com.au>
16479 Maya Rashish <coypu@sdf.org>
16481 * config.gcc (aarch64*-*-netbsd*): New target.
16482 * config/aarch64/aarch64-netbsd.h: New file.
16483 * config/aarch64/t-aarch64-netbsd: Likewise.
16485 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16487 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
16488 the access path from base to first VIEW_CONVERT_EXPR or
16491 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16493 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
16494 access path on BIT_FIELD_REFs.
16496 2019-06-17 Martin Liska <mliska@suse.cz>
16499 * ipa-utils.h (odr_type_p): Remove dead code.
16501 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16503 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
16504 alternative Solaris 11.4 format.
16505 * configure: Regenerate.
16507 2019-06-17 Tom de Vries <tdevries@suse.de>
16509 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
16510 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
16512 (define_insn "call_value_insn"): Rename to ...
16513 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
16515 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
16518 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
16520 PR middle-end/64242
16521 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
16522 frame clobbers and schedule block.
16523 (builtin_longjmp): Likewise.
16525 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16527 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
16528 describe how to perform MSPABI compliant 64-bit shift.
16529 * config/msp430/msp430.md (ashldi3): New define_expand.
16530 (ashrdi3): New define_expand.
16531 (lshrdi3): New define_expand.
16533 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16535 * doc/sourcebuild.texi: Document new effective target keyword
16538 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
16540 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
16541 indirect_refs_may_alias_p): Revert accidental commits.
16543 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
16544 at the end of structures.
16546 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
16548 * config/darwin.c (machopic_indirect_call_target): Use renamed
16549 darwin_picsymbol_stubs to decide on output.
16550 (darwin_override_options): Handle darwin_picsymbol_stubs.
16551 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
16552 (LD64_VERSION): Revise default.
16553 * config/darwin.opt: (mpic-symbol-stubs): New option.
16554 (darwin_picsymbol_stubs): New variable.
16555 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
16556 rename to TARGET_MACHO_PICSYM_STUBS.
16557 * config/i386/i386.c (output_pic_addr_const): Likewise.
16558 * config/i386/i386.h Likewise.
16559 * config/rs6000/darwin.h: Likewise.
16560 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
16561 darwin_picsymbol_stubs.
16563 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
16565 * config/darwin.opt (prebind, noprebind, seglinkedit,
16566 noseglinkedit): Add RejectNegative.
16568 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
16570 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
16571 in my previous patch.
16573 2019-06-16 Tom de Vries <tdevries@suse.de>
16575 PR tree-optimization/89376
16576 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
16578 2019-06-15 Maya Rashish <coypu@sdf.org>
16580 * doc/invoke.texi (Spec Files): Update location of the
16583 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
16585 * doc/extend.texi (Common Function Attributes): Clarify
16586 no_sanitize. Fix grammar.
16588 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
16590 * tree-ssa-alias.c (alias_stats): Add
16591 nonoverlapping_component_refs_p_may_alias,
16592 nonoverlapping_component_refs_p_no_alias,
16593 nonoverlapping_component_refs_of_decl_p_may_alias,
16594 nonoverlapping_component_refs_of_decl_p_no_alias.
16595 (dump_alias_stats): Dump them.
16596 (nonoverlapping_component_refs_of_decl_p): Add stats.
16597 (nonoverlapping_component_refs_p): Add stats; do not stop on first
16600 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
16602 * config/i386/i386.md (and<mode>3): Generate zero-extends for
16603 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
16605 (*anddi3_doubleword): Split before reload. Merge with
16606 anddi->zext pre-reload splitter.
16607 (*andndi3_doubleword): Split before reload.
16608 (*<code>di3_doubleword): Ditto.
16609 (*one_cmpldi2_doubleword): Ditto.
16611 2019-06-15 Jakub Jelinek <jakub@redhat.com>
16613 PR middle-end/90779
16614 * gimplify.c: Include omp-offload.h and context.h.
16615 (gimplify_bind_expr): Add "omp declare target" attributes
16616 to static block scope variables inside of target region or target
16619 2019-06-15 Tom de Vries <tdevries@suse.de>
16621 PR tree-optimization/90009
16622 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
16623 Return NULL if bb contains IFN_UNIQUE.
16625 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
16627 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
16628 (un): New define_mode_attr.
16629 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
16630 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
16631 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
16633 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
16635 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
16637 * config/darwin.opt: Add RejectNegative where needed, reorder
16638 and add minimal functional descriptions.
16640 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
16642 PR rtl-optimization/90765
16643 * calls.c (update_stack_alignment_for_call): New function.
16644 (expand_call): Call update_stack_alignment_for_call when
16645 outgoing parameter is passed in the stack.
16646 (emit_library_call_value_1): Likewise.
16647 * function.c (locate_and_pad_parm): Don't update
16648 stack_alignment_needed and preferred_stack_boundary.
16650 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
16653 * config/i386/i386-features.c
16654 (dimode_scalar_chain::compute_convert_gain): Replace
16655 mmxsse_to_integer with sse_to_integer.
16656 * config/i386/i386.c (ix86_register_move_cost): Verify that
16657 moves between MMX and non-MMX units require secondary memory.
16658 Correct costs of moves between SSE and integer units.
16659 * config/i386/i386.h (processor_costs): Rename cost of moving
16660 SSE register to integer to sse_to_integer. Rename cost of
16662 2019-06-14 Matt Thomas <matt@3am-software.com>
16663 Matthew Green <mrg@eterna.com.au>
16664 Nick Hudson <skrll@netbsd.org>
16665 Maya Rashish <coypu@sdf.org>
16666 Richard Earnshaw <rearnsha@arm.com>
16668 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
16669 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
16670 * config/arm/netbsd-eabi.h: New file.
16671 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
16673 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
16674 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
16675 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
16676 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
16678 2019-06-14 Richard Biener <rguenther@suse.de>
16680 * tree-loop-distribution.c (classify_partition): Return
16681 whether a reduction appeared in all partitions and do not
16682 stop builtin detection because of this.
16683 (distribute_loop): Sort a non-builtin partition last if
16684 there's a reduction in all partitions and make sure the
16685 partition prevailing as last is not a builtin.
16687 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
16690 * ipa-prop.c (add_to_agg_contents_list): New function.
16691 (clobber_by_agg_contents_list_p): Likewise.
16692 (extract_mem_content): Likewise.
16693 (get_place_in_agg_contents_list): Delete.
16694 (determine_known_aggregate_parts): Renamed from
16695 determine_locally_known_aggregate_parts. New parameter
16698 2019-06-13 Martin Sebor <msebor@redhat.com>
16700 PR tree-optimization/90662
16701 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
16704 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
16707 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
16708 dbase is not TARGET_MEM_REF.
16710 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
16712 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
16714 (and<mode>3): Use gen_extend_insn instead of indirect functions.
16715 Do not generate DImode extends for 32bit targets.
16716 (and->zext post-reload splitter): Use gen_extend_insn
16717 instead of indirect functions.
16718 (anddi->zext pre-reload splitter): New.
16719 (*zext<mode>_doubleword_and): Remove.
16720 (*zext<mode>_doubleword): Ditto.
16721 (*zextsi_doubleword): Dittto.
16723 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
16725 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16726 Use gen_sub3_insn instead of indirect function.
16727 (ix86_expand_ashl_const): Use gen_add2_insn instead of
16729 (ix86_adjust_counter): Ditto.
16731 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
16732 Lijia He <helijia@linux.ibm.com>
16734 PR tree-optimization/77820
16735 * tree-ssa-threadedge.c
16736 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
16738 (thread_across_edge): Add call to
16739 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
16741 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
16743 * config/darwin-driver.c (validate_macosx_version_min): New.
16744 (darwin_default_min_version): Cleanup and validate supplied version.
16745 (darwin_driver_init): Likewise and push cleaned version into opts.
16747 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
16749 PR tree-optimization/90869
16750 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
16751 converts in MEM_REF referencing decl rather than view converts
16752 from decl type to MEM_REF type.
16754 2019-06-13 Richard Biener <rguenther@suse.de>
16756 PR tree-optimization/90856
16757 * tree-sra.c (build_ref_for_model): Only use
16758 build_reconstructed_reference when address-spaces are the same.
16760 2019-06-13 Jakub Jelinek <jakub@redhat.com>
16762 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
16763 wrap ei variable name in the declaration in ()s.
16764 (nvptx_single): Actually use mode_label variable. Formatting fix.
16766 2019-06-13 Richard Biener <rguenther@suse.de>
16768 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
16769 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
16770 also return the condition stmt.
16771 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
16772 loop we can version and version that, reusing the loop version
16773 created by if-conversion instead of versioning again.
16775 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
16777 * gimple-loop-versioning.cc (prune_loop_conditions): Use
16779 * tree-vrp (value_range_base::may_contain_p): Call into
16780 value_inside_range.
16781 (value_inside_range): Make private inside value_range_base class.
16782 Take min/max from *this.
16783 (range_includes_p): Remove.
16784 * tree-vrp.h (value_range_base): Add value_inside_range.
16785 (range_includes_p): Remove.
16786 (range_includes_zero_p): Call may_contain_p.
16787 * vr-values.c (compare_range_with_value): Same.
16789 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
16791 * doc/extend.texi (ARC Function Attributes): Update info.
16793 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
16795 PR tree-optimization/89713
16796 * doc/invoke.texi (-ffinite-loops): Document new option.
16797 * common.opt (-ffinite-loops): New option.
16798 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
16799 IFN_GOACC_LOOP calls as necessary.
16800 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
16802 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
16803 IFN_GOACC_LOOP call is not used.
16804 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
16806 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16809 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
16810 compare_type is not with Pmode size, we will create an IV with
16811 Pmode size with truncated use (i.e. converted to the correct type).
16812 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
16813 (vect_iv_limit_for_full_masking): New. Factored out of
16814 vect_set_loop_condition_masked.
16815 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
16816 (vect_iv_limit_for_full_masking): Declare.
16818 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16821 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
16822 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
16823 (get_alias_ptr_type_for_ptr_address): Likewise.
16824 (add_iv_candidate_for_use): Add scaled index candidate if useful.
16825 * tree-ssa-address.c (preferred_mem_scale_factor): New.
16826 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
16829 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16831 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
16833 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
16835 * common/config/pru/pru-common.c: New file.
16836 * config.gcc: Add PRU target.
16837 * config/pru/alu-zext.md: New file.
16838 * config/pru/constraints.md: New file.
16839 * config/pru/predicates.md: New file.
16840 * config/pru/pru-opts.h: New file.
16841 * config/pru/pru-passes.c: New file.
16842 * config/pru/pru-pragma.c: New file.
16843 * config/pru/pru-protos.h: New file.
16844 * config/pru/pru.c: New file.
16845 * config/pru/pru.h: New file.
16846 * config/pru/pru.md: New file.
16847 * config/pru/pru.opt: New file.
16848 * config/pru/t-pru: New file.
16849 * doc/extend.texi: Document PRU pragmas.
16850 * doc/invoke.texi: Document PRU-specific options.
16851 * doc/md.texi: Document PRU asm constraints.
16853 2019-06-12 Martin Sebor <msebor@redhat.com>
16855 PR middle-end/90676
16856 * tree-pretty-print.c (dump_mem_ref): New function. Include
16857 MEM_REF type in output when different size than operand.
16858 (dump_generic_node): Move code to dump_mem_ref and call it.
16860 2019-06-12 Martin Sebor <msebor@redhat.com>
16862 PR tree-optimization/90662
16863 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
16866 2019-06-12 Tom de Vries <tdevries@suse.de>
16868 PR tree-optimization/90009
16869 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
16871 2019-06-12 Martin Liska <mliska@suse.cz>
16873 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
16875 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
16876 * mem-stats.h (mem_alloc_description::mem_alloc_description):
16877 Do not sanitize created maps.
16879 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
16881 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
16882 value_range::singleton_p.
16883 * tree-vrp.c (value_range_constant_singleton): Remove.
16884 * tree-vrp.h (value_range_constant_singleton): Remove.
16885 * vr-values.c (vr_values::singleton): Use
16886 value_range::singleton_p.
16888 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16891 * cfgexpand.c (align_local_variable): Add really_expand argument,
16892 don't SET_DECL_ALIGN if it is false.
16893 (add_stack_var): Add really_expand argument, pass it through to
16894 align_local_variable.
16895 (expand_one_stack_var_1): Pass true as really_expand to
16896 align_local_variable.
16897 (expand_one_ssa_partition): Pass true as really_expand to
16899 (expand_one_var): Pass really_expand through to add_stack_var.
16901 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16903 * config/arm/iterators.md (VABAL): New int iterator.
16904 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
16905 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
16906 UNSPEC_VABAL_U values.
16908 2019-06-12 Martin Liska <mliska@suse.cz>
16910 * value-prof.c (stream_out_histogram_value): Only first value
16913 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16916 * symtab.c (symtab_node::set_section): Allow being called on aliases
16917 as long as they aren't analyzed yet.
16919 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16921 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16922 to `mips_set_text_contents_type' to indicate whether a
16923 non-debug insn follows.
16925 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16927 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16928 enabling -mpcrel by default.
16929 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16930 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16931 that the test against -mcpu=future is done first. Then test if
16932 -mprefixed-addr is on for -mpcrel.
16933 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16935 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16938 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16939 instead of and.u%d.
16941 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16943 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16945 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16947 PR c++/90449 - add -Winaccessible-base option.
16948 * doc/invoke.texi (Winaccessible-base): Document.
16950 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16952 PR tree-optimization/62041
16953 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16955 2019-06-11 Jason Merrill <jason@redhat.com>
16957 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16958 * tree.c (get_tree_code_name): Likewise.
16959 * print-tree.c (print_node): Only briefly print a node with an
16962 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16965 * trans-mem.c (tm_memopt_compute_available): Add assertion
16966 that blocks is not empty. Formatting fix.
16968 2019-06-11 Martin Liska <mliska@suse.cz>
16971 * hash-table.h: Extend create_gcc, add one parameter
16972 that is passed into hash_table::hash_table.
16974 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16976 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16978 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16979 Emit clobber also for non-sse operations.
16980 (ix86_split_fp_absneg_operator): New function.
16981 * config/i386/i386.md (SSEMODEF): New mode iterator.
16982 (ssevecmodef): New mode attribute.
16983 (<code>tf2): Use absneg code iterator.
16984 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16985 Add three-operand AVX alternatives.
16986 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16987 Use absneg code iterator and X87MODEF mode iterator.
16988 (absneg fp_reg non-sse splitter): Call absneg code iterator
16989 and X87MODEF mode iterator.
16990 (absneg general_reg non-sse splitter): Use absneg code iterator
16991 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16992 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16993 code iterator. Add three-operand AVX alternative.
16994 (absneg sse_reg splitter): Use absneg code iterator
16995 and SSEMODEF mode iterator. Handle AVX operands.
16996 (absneg fp_reg splitter): Use absneg code iterator
16997 and MODEF mode iterator.
16998 (absneg general_reg splitter): Merge splitters using MODEF mode
16999 iterator. Use absneg code iterator. Call
17000 ix86_split_fp_absneg_operator.
17001 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
17002 Do not enable for non-sse modes before reload.
17003 (CSGNMODE): Remove.
17004 (CSGNVMODE): Ditto.
17005 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
17006 ssevecmodef mode attribute instaed of CSGNVMODE.
17007 (copysign<mode>3_const): Ditto.
17008 (copysign<mode>3_var): Ditto.
17009 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
17010 Use absneg code iterator. Simplify code using std::swap.
17011 * config/i386/predicates.md (absneg_operator): Remove.
17013 2019-06-10 Martin Sebor <msebor@redhat.com>
17015 * gimple-fold.c (get_range_strlen): Update comment that didn't
17016 make it into r267503 or related commits.
17018 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
17020 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
17021 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
17023 2019-06-10 Jakub Jelinek <jakub@redhat.com>
17025 * tree.def (OMP_SCAN): New tree code.
17026 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
17027 OMP_CLAUSE_EXCLUSIVE.
17028 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
17029 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
17030 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
17031 OMP_CLAUSE_{IN,EX}CLUSIVE.
17032 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
17033 * tree-nested.c (convert_nonlocal_reference_stmt,
17034 convert_local_reference_stmt, convert_gimple_call): Handle
17036 * tree-pretty-print.c (dump_omp_clause): Handle
17037 OMP_CLAUSE_{IN,EX}CLUSIVE.
17038 (dump_generic_node): Handle OMP_SCAN.
17039 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
17040 * gimple.h (gomp_scan): New type.
17041 (is_a_helper <gomp_scan *>::test,
17042 is_a_helper <const gomp_scan *>::test): New templates.
17043 (gimple_build_omp_scan): Declare.
17044 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
17045 gimple_omp_scan_set_clauses): New inline functions.
17046 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
17047 * gimple.c (gimple_build_omp_scan): New function.
17048 (gimple_copy): Handle GIMPLE_OMP_SCAN.
17049 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
17050 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
17051 GIMPLE_OMP_TASKGROUP.
17052 (dump_gimple_omp_scan): New function.
17053 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
17054 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
17055 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
17056 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
17057 (is_gimple_stmt): Handle OMP_SCAN.
17058 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
17059 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
17060 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
17061 mentioned in nested #pragma omp scan. Handle
17062 OMP_CLAUSE_{IN,EX}CLUSIVE.
17063 (gimplify_expr): Handle OMP_SCAN.
17064 * omp-low.c (check_omp_nesting_restrictions): For parent context,
17065 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
17067 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
17070 2019-06-10 Martin Liska <mliska@suse.cz>
17072 * ipa-cp.c (ignore_edge_p): New function.
17073 (build_toporder_info): Use it.
17074 * ipa-inline.c (ignore_edge_p): New function.
17075 (inline_small_functions): Use it.
17076 * ipa-pure-const.c (ignore_edge_for_nothrow):
17077 Verify opt_for_fn for caller and callee.
17078 (ignore_edge_for_pure_const): Likewise.
17079 * ipa-reference.c (ignore_edge_p): Extend to check
17081 * ipa-utils.c (searchc): Refactor.
17082 * ipa-utils.h: Fix coding style.
17084 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
17086 * config/arc/arc.c (arc_rtx_costs): Update costs.
17088 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
17090 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
17091 (arc_split_ior): Likewise.
17092 (arc_check_mov_const): Likewise.
17093 (arc_split_mov_const): Likewise.
17094 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
17095 (arc_rtx_costs): Replace check Crr with Cax constraint.
17096 (prepare_move_operands): Cleanup, remove unused code.
17097 (arc_split_ior): New function.
17098 (arc_check_ior_const): Likewise.
17099 (arc_split_mov_const): Likewise.
17100 (arc_check_mov_const): Likewise.
17101 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
17102 in define_insn_and_split pattern.
17103 (iorsi3): Likewise.
17104 (mulsi3_v2): Add new matching variant.
17105 (andsi3_i): Cleanup pattern.
17106 (rotrsi3_cnt1): Update pattern.
17107 (rotrsi3_cnt8): New pattern.
17108 (ashlsi2_cnt8): Likewise.
17109 (ashlsi2_cnt16): Likewise.
17110 * config/arc/constraints.md (C0p): Update constraint.
17112 (C0x): New pattern.
17113 (Cax): New pattern.
17115 2019-06-10 Martin Liska <mliska@suse.cz>
17117 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
17118 Update coding style.
17119 (sem_item_optimizer::dump_cong_classes):
17120 Print how many items are in a non-singular class. Improve
17123 2019-06-10 Martin Liska <mliska@suse.cz>
17125 * value-prof.c (dump_histogram_value): Change dump format.
17126 (gimple_mod_subtract_transform): Remove legacy comment.
17128 2019-06-10 Martin Liska <mliska@suse.cz>
17130 * value-prof.c (dump_histogram_value): Print histogram values
17133 2019-06-10 Martin Liska <mliska@suse.cz>
17135 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
17136 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
17137 * ipa-profile.c (ipa_profile_generate_summary):
17138 Use get_most_common_single_value.
17139 * tree-profile.c (gimple_init_gcov_profiler):
17140 Instrument with __gcov_one_value_profiler_v2
17141 and __gcov_indirect_call_profiler_v4.
17142 * value-prof.c (dump_histogram_value):
17143 Print all values for HIST_TYPE_SINGLE_VALUE.
17144 (stream_out_histogram_value): Update assert for
17146 (stream_in_histogram_value): Set number of
17147 counters for HIST_TYPE_SINGLE_VALUE.
17148 (get_most_common_single_value): New.
17149 (gimple_divmod_fixed_value_transform):
17150 Use get_most_common_single_value.
17151 (gimple_ic_transform): Likewise.
17152 (gimple_stringops_transform): Likewise.
17153 (gimple_find_values_to_profile): Set number
17154 of counters for HIST_TYPE_SINGLE_VALUE.
17155 * value-prof.h (get_most_common_single_value): New.
17157 2019-06-10 Martin Liska <mliska@suse.cz>
17159 * hash-map.h: Pass default value to hash_table ctor.
17160 * hash-table.h: Add default value to call of a ctor.
17162 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
17164 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
17165 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
17167 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
17170 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
17171 Call pa_output_function_label.
17172 (TARGET_ASM_FUNCTION_PROLOGUE): define.
17173 * config/pa/pa-protos.h (pa_output_function_label): Declare.
17174 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
17176 (pa_linux_output_function_prologue): Declare.
17177 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
17178 (pa_output_function_label): New.
17179 (pa_output_function_prologue): Revise to use pa_output_function_label.
17180 (pa_linux_output_function_prologue): New.
17181 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
17183 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
17185 * tree-vrp.h (value_range_base::intersect): New.
17186 (value_range::intersect_helper): Move from here...
17187 (value_range_base::intersect_helper): ...to here.
17188 * tree-vrp.c (value_range::intersect_helper): Rename to...
17189 (value_range_base::intersect_helper): ...this, and rewrite to
17190 return a value instead of modifying THIS in place.
17191 Also, move equivalence handling...
17192 (value_range::intersect): ...here, while calling intersect_helper.
17193 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
17195 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
17197 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
17199 2019-06-07 Jakub Jelinek <jakub@redhat.com>
17201 * Makefile.in (genprogerr): Add condmd.
17202 (genprog): Remove it here.
17204 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
17206 * doc/invoke.texi (AMD GCN Options): Add gfx906.
17208 2019-06-07 Richard Biener <rguenther@suse.de>
17211 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
17212 that appear after user labels.
17214 2019-06-07 Martin Liska <mliska@suse.cz>
17216 * cselib.c (cselib_init): Disable hash table
17218 * hash-set.h: Pass new default argument to m_table.
17219 * hash-table.c: Add global variable with hash table
17220 sanitization limit.
17221 * hash-table.h (Allocator>::hash_table): Add new argument
17223 (hashtab_chk_error): New.
17224 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
17225 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
17226 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
17228 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
17230 * common.opt (flto-odr-type-merging): Ignore.
17231 * invoke.texi (-flto-odr-type-merging): Remove.
17232 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
17233 (can_be_vtable_hashed_p): Remove.
17234 (hash_odr_vtable): Remove.
17235 (odr_vtable_hasher::hash): Remove.
17236 (types_same_for_odr): Remove.
17237 (types_odr_comparable): Remove.
17238 (odr_vtable_hasher::equal): Remove.
17239 (odr_vtable_hash_type, odr_vtable_hash): Remove.
17240 (add_type_duplicate): Do not synchronize vtable and name hashtables.
17241 (get_odr_type): Do not use vtable hash.
17242 (dump_odr_type): Remove commented out code.
17243 (build_type_inheritance_graph): Do not allocate vtable hash.
17244 (rebuild_type_inheritance_graph): Do not delete vtable hash.
17245 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
17246 (odr_type_p): Likewise.
17247 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
17250 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
17252 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
17253 immediately after same_types_for_tbaa_p returns -1 and continue
17254 looking for possible exact match; if matching types are arrays
17255 watch for partial overlaps.
17256 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
17257 (indirect_refs_may_alias_p): Do type based disambiguation first;
17260 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
17262 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
17264 2019-06-07 Martin Liska <mliska@suse.cz>
17266 * doc/invoke.texi: Remove param.
17267 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
17269 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
17270 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
17271 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
17272 * profile.c (instrument_values): Remove
17273 HIST_TYPE_INDIR_CALL_TOPN.
17274 * tree-profile.c (init_ic_make_global_vars):
17275 Always build __gcov_indirect_call only.
17276 (gimple_init_gcov_profiler): Remove usage
17277 of PARAM_INDIR_CALL_TOPN_PROFILE.
17278 (gimple_gen_ic_profiler): Likewise.
17279 * value-prof.c (dump_histogram_value): Likewise.
17280 (stream_in_histogram_value): Likewise.
17281 (gimple_indirect_call_to_profile): Likewise.
17282 (gimple_find_values_to_profile): Likewise.
17283 * value-prof.h (enum hist_type): Likewise.
17285 2019-06-07 Martin Liska <mliska@suse.cz>
17287 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
17290 2019-06-07 Martin Liska <mliska@suse.cz>
17292 PR tree-optimization/78902
17293 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
17294 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
17295 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
17296 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
17297 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
17298 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
17299 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
17300 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
17301 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
17302 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
17303 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
17304 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
17305 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
17307 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
17308 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
17309 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
17310 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
17311 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
17312 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
17313 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
17314 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
17315 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
17316 warn_unused_result attribute.
17317 (BUILT_IN_STRDUP): Likewise.
17318 (BUILT_IN_STRNDUP): Likewise.
17319 (BUILT_IN_ALLOCA): Likewise.
17320 (BUILT_IN_CALLOC): Likewise.
17321 (BUILT_IN_MALLOC): Likewise.
17322 (BUILT_IN_REALLOC): Likewise.
17324 2019-06-06 Jim Wilson <jimw@sifive.com>
17327 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
17328 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
17329 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
17331 2019-06-06 Martin Sebor <msebor@redhat.com>
17333 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
17334 (handle_builtin_malloc): Remove trailing spaces.
17335 (handle_builtin_memset): Same.
17336 (handle_builtin_memcmp): Same.
17337 (compute_string_length): Same.
17338 (determine_min_objsize): Same.
17339 (handle_builtin_string_cmp): Same.
17340 (handle_char_store): Same. Break up excessively long line.
17342 2019-06-06 Martin Jambor <mjambor@suse.cz>
17344 * tree-sra.c (build_reconstructed_reference): Drop the alignment
17347 2019-06-06 Martin Jambor <mjambor@suse.cz>
17349 * tree-sra.c (struct access): New field grp_same_access_path.
17350 (dump_access): Dump it.
17351 (build_reconstructed_reference): New function.
17352 (build_ref_for_model): Use it if possible.
17353 (path_comparable_for_same_access): New function.
17354 (same_access_path_p): Likewise.
17355 (sort_and_splice_var_accesses): Set the new flag.
17356 (analyze_access_subtree): Likewise.
17357 (propagate_subaccesses_across_link): Propagate zero value of the new
17358 flag down the access tree.
17360 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
17362 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
17363 * config/gcn/gcn.opt (gpu_type): Add gfx906.
17364 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
17365 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
17368 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17370 PR tree-optimization/90332
17371 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
17372 Handle VALS containing two vectors.
17373 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
17375 (@aarch64_combinez<mode>): ... This.
17376 (*aarch64_combinez_be<mode>): Rename to...
17377 (@aarch64_combinez_be<mode>): ... This.
17378 (vec_init<mode><Vhalf>): New define_expand.
17379 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
17381 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17383 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
17384 library functions only when not optimizing for size.
17385 (ashlsi3): Likewise.
17386 (ashrhi3): Likewise.
17387 (ashrsi3): Likewise.
17388 (lshrhi3): Likewise.
17389 (lshrsi3): Likewise.
17391 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
17393 PR rtl-optimization/88751
17394 * ira.c (ira): Use the number of the actually referenced registers
17395 when calculating the threshold.
17397 2019-06-06 Jakub Jelinek <jakub@redhat.com>
17399 * configure: Regenerate.
17401 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17403 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
17404 register if it is in memory, so the shift can be emulated with a rotate
17406 (ashrhi3): Likewise.
17407 (lshrhi3): Likewise.
17409 2019-06-06 Martin Liska <mliska@suse.cz>
17411 PR tree-optimization/87954
17412 * match.pd: Simplify mult where both arguments are 0 or 1.
17414 2019-06-06 Richard Biener <rguenther@suse.de>
17416 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
17417 put equivalences on UNDEFINED ranges.
17418 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17419 Make sure to drop defs of stmts added during simplification
17422 2019-06-06 Richard Biener <rguenther@suse.de>
17424 * tree-ssa-structalias.c: Include tree-cfg.h.
17425 (make_heapvar): Do not make heap vars artificial.
17426 (find_func_aliases_for_builtin_call): Handle stack allocation
17428 (find_func_aliases): Delay processing of simple enough returns
17430 (set_uids_in_ptset): Adjust.
17431 (find_what_var_points_to): Likewise.
17432 (solve_constraints): Do not dump points-to sets here.
17433 (compute_points_to_sets): Post-process return statements,
17434 amending the escaped solution. Dump points-to sets afterwards.
17435 (ipa_pta_execute): Dump points-to sets.
17437 2019-06-06 Martin Liska <mliska@suse.cz>
17440 * doc/install.texi: Fix HTML headers and
17441 titles for 'Installing GCC' pages.
17443 2019-06-06 Martin Liska <mliska@suse.cz>
17445 * ipa-icf-gimple.h (dump_message_1): Remove.
17446 (dump_message): Likewise.
17447 (return_false_with_message_1): Print also file.
17448 (return_false_with_msg): Likewise.
17449 (return_with_result): Likewise.
17450 (return_with_debug): Likewise.
17451 * ipa-icf.c (sem_function::equals_private): Remove call
17454 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
17456 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
17457 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
17458 memory operand for it.
17459 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
17461 2019-06-05 Martin Sebor <msebor@redhat.com>
17463 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
17464 Adjust quoting and hyphenation.
17465 * convert.c (convert_to_real_1): Same.
17466 * gcc.c (driver_wrong_lang_callback): Same.
17467 (driver::handle_unrecognized_options): Same.
17468 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
17469 * opts-common.c (cmdline_handle_error): Same.
17470 (read_cmdline_option): Same.
17471 * opts-global.c (complain_wrong_lang): Same.
17472 (print_ignored_options): Same.
17473 (handle_common_deferred_options): Same.
17474 * pretty-print.h: Same.
17475 * print-rtl.c (debug_bb_n_slim): Same.
17476 * sched-rgn.c (make_pass_sched_fusion): Same.
17477 * tree-cfg.c (verify_gimple_assign_unary): Same.
17478 (verify_gimple_label): Same.
17479 * tree-ssa-operands.c (verify_ssa_operands): Same.
17480 * varasm.c (do_assemble_alias): Same.
17481 (assemble_alias): Same.
17483 2019-06-05 Richard Henderson <rth@twiddle.net>
17485 * config/alpha/alpha.c (direct_return): Move down after
17486 struct machine_function definition; use saved frame_size;
17488 (struct machine_function): Add sa_mask, sa_size, frame_size.
17489 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
17490 (alpha_compute_frame_layout): ... new function.
17491 (TARGET_COMPUTE_FRAME_LAYOUT): New.
17492 (alpha_initial_elimination_offset): Use saved sa_size.
17493 (alpha_vms_initial_elimination_offset): Likewise.
17494 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
17495 (alpha_expand_prologue): Use saved frame data. Merge integer
17496 and fp register save loops.
17497 (alpha_expand_epilogue): Likewise.
17498 (alpha_start_function): Use saved frame data.
17499 * config/alpha/alpha-protos.h (direct_return): Update.
17500 (alpha_sa_size): Remove.
17502 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
17504 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
17505 multiplication by a power-of-two value.
17506 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
17507 and turn the modulo operation into a masking operation.
17509 2019-06-05 Jakub Jelinek <jakub@redhat.com>
17512 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
17513 with VOIDmode inner operands.
17515 2019-06-05 Richard Biener <rguenther@suse.de>
17517 PR middle-end/90726
17518 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
17519 turn an expression graph into a tree.
17521 2019-06-05 Jakub Jelinek <jakub@redhat.com>
17523 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
17525 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
17526 treat it like explicit monotonic schedule modifier.
17527 (expand_omp_for): Initialize has_lastprivate_conditional.
17528 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
17531 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
17532 references, lookup in in hash map MEM_REF operand instead of the
17534 (lower_omp_1): When looking for lastprivate conditional assignments,
17535 handle MEM_REFs with REFERENCE_TYPE operands.
17537 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
17538 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
17539 and references a VLA. Handle references to non-VLAs if is_simd
17540 all privatization clauses like reductions.
17541 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
17542 If omp_is_reference, use always omp simd arrays and set
17543 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
17544 fails, emit reference initialization.
17546 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
17549 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
17550 _mm_mask_fpclass_sd_mask): New intrinsics.
17551 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
17552 * config/i386/i386-builtin.def
17553 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
17555 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
17556 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
17557 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
17558 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
17559 case QI_FTYPE_V2SF_INT): Ditto.
17560 * config/i386/sse.md
17561 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
17562 Extended to insnstructions with mask operands.
17564 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17566 * config/rs6000/constraints.md (define_register_constraint "wp"):
17568 (define_register_constraint "wq"): Delete.
17569 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17570 (rs6000_init_hard_regno_mode_ok): Adjust.
17571 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17572 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
17573 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
17574 (define_mode_attr VSa): Delete.
17575 (define_mode_attr VSisa): New.
17576 (rest of file): Adjust.
17577 * doc/md.texi (Machine Constraints): Adjust.
17579 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17581 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
17582 (define_attr "enabled"): Handle those new isa values.
17584 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17586 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
17587 (define_mode_attr VSr5): Delete.
17588 (define_mode_attr VStype_sqrt): Delete.
17589 (define_mode_iterator VSX_SPDP): Delete.
17590 (define_mode_attr VS_spdp_res): Delete.
17591 (define_mode_attr VS_spdp_insn): Delete.
17592 (define_mode_attr VS_spdp_type): Delete.
17593 (*vsx_sqrt<mode>2): Adjust.
17594 (vsx_<VS_spdp_insn>): Delete, split to...
17595 (vsx_xscvdpsp): ... this. New. And...
17596 (vsx_xvcvspdp): ... this. New. And...
17597 (vsx_xvcvdpsp): ... this. New.
17599 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17601 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
17603 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
17604 (rest of file): Adjust.
17606 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17608 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
17609 (vsx_extract_<mode>_var): Ditto.
17611 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17613 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
17616 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17618 * config/rs6000/constraints.md (define_register_constraint "ww"):
17620 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17621 (rs6000_init_hard_regno_mode_ok): Adjust.
17622 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17623 RS6000_CONSTRAINT_ww.
17624 * config/rs6000/rs6000.md: Adjust.
17625 * config/rs6000/vsx.md: Adjust.
17626 * doc/md.texi (Machine Constraints): Adjust.
17628 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17630 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
17631 (define_mode_attr sd): New.
17632 (define_mode_attr s): New.
17633 (define_mode_attr Ftrad): Delete.
17634 (define_mode_attr Fvsx): Delete.
17635 (define_mode_attr Fs): Delete.
17636 (rest of file): Use the new mode attributes.
17637 * config.rs6000/vsx.md: Use the new mode attributes.
17639 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17641 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
17644 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17646 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
17647 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
17648 used with VSX_B, VSX_D, or VSX_F, with just "wa".
17650 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
17653 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
17654 C++ with strict ANSI requirements.
17656 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
17658 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
17659 computations when step is 1.
17661 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17663 * config/rs6000/constraints.md (define_register_constraint "wf"):
17665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17666 (rs6000_init_hard_regno_mode_ok): Adjust.
17667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17668 RS6000_CONSTRAINT_wf.
17669 * config/rs6000/rs6000.md: Adjust.
17670 * config/rs6000/vsx.md: Adjust.
17671 * doc/md.texi (Machine Constraints): Adjust.
17673 2019-06-04 Andrew Pinski <apinski@marvell.com>
17675 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
17678 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17680 * config/rs6000/constraints.md (define_register_constraint "wd"):
17682 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17683 (rs6000_init_hard_regno_mode_ok): Adjust.
17684 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17685 RS6000_CONSTRAINT_wd.
17686 * config/rs6000/rs6000.md: Adjust.
17687 * config/rs6000/vsx.md: Adjust.
17688 * doc/md.texi (Machine Constraints): Adjust.
17690 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17692 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
17693 (rest of file): Adjust.
17695 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17697 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
17698 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
17699 (vsx_splat_<mode>_reg): Adjust.
17701 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17703 * config/rs6000/constraints.md (define_register_constraint "ws"):
17705 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17706 (rs6000_init_hard_regno_mode_ok): Adjust.
17707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17708 RS6000_CONSTRAINT_ws.
17709 * config/rs6000/rs6000.md: Adjust.
17710 * config/rs6000/vsx.md: Adjust.
17711 * doc/md.texi (Machine Constraints): Adjust.
17713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17715 * config/rs6000/constraints.md (define_register_constraint "wv"):
17717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17718 (rs6000_init_hard_regno_mode_ok): Adjust.
17719 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17720 RS6000_CONSTRAINT_wv.
17721 * config/rs6000/rs6000.md: Adjust.
17722 * config/rs6000/vsx.md: Adjust.
17723 * doc/md.texi (Machine Constraints): Adjust.
17725 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17727 * config/rs6000/constraints.md (define_register_constraint "wi"):
17729 (define_register_constraint "wt"): Delete.
17730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17731 (rs6000_init_hard_regno_mode_ok): Adjust.
17732 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17733 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
17734 * config/rs6000/rs6000.md: Adjust.
17735 * config/rs6000/vsx.md: Adjust.
17736 * doc/md.texi (Machine Constraints): Adjust.
17738 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17740 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
17742 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
17743 default_elf_asm_output_external.
17745 2019-06-04 Martin Liska <mliska@suse.cz>
17747 * ipa-icf.c (INCLUDE_LIST): Remove.
17748 (sem_item_optimizer::execute): Remove call to init_wpa.
17749 * ipa-icf.h (init_wpa): Remove.
17751 2019-06-04 Jakub Jelinek <jakub@redhat.com>
17753 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
17754 conditional on combined for simd.
17755 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
17757 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
17758 constructs, don't remove lastprivate_conditional_map, but instead set
17759 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
17760 to parent construct temporaries.
17761 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
17762 like !ctx->lastprivate_conditional_map.
17763 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
17764 use up->outer context instead of up.
17765 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
17766 gimple_omp_for_combined_p.
17767 (expand_omp_for_static_nochunk): Likewise.
17768 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
17769 probably moved over into expand_omp_for_generic rather than being copied
17772 2019-06-04 Martin Liska <mliska@suse.cz>
17774 * value-prof.c (dump_histogram_value): Fix typo.
17775 (gimple_mod_subtract_transform): Likewise.
17777 2019-06-04 Richard Biener <rguenther@suse.de>
17779 PR middle-end/90726
17780 * tree-chrec.c (chrec_contains_symbols): Add to visited.
17781 (tree_contains_chrecs): Likewise.
17782 (chrec_contains_symbols_defined_in_loop): Move here and avoid
17783 exponential behaivor from ...
17784 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17786 (expression_expensive_p): Avoid exponential behavior and compute
17787 expanded size, rejecting any expansion.
17788 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
17789 (idx_contains_abnormal_ssa_name_p): Likewise.
17790 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
17791 (contains_abnormal_ssa_name_p): Simplify and use
17792 walk_tree_without_duplicates.
17794 2019-06-04 Richard Biener <rguenther@suse.de>
17796 PR tree-optimization/90738
17798 2019-06-03 Richard Biener <rguenther@suse.de>
17800 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17801 full reference tree and record in ref->ref.
17802 (vn_reference_lookup_3): Pass in original ref to
17803 ao_ref_init_from_vn_reference.
17804 (vn_reference_lookup): Likewise.
17805 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17806 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17807 Handle non-decl bases in the original reference.
17809 2019-06-04 Martin Liska <mliska@suse.cz>
17811 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
17812 number of references.
17813 (sem_item_optimizer::do_congruence_step):
17814 (sem_item_optimizer::worklist_push): Dump how references
17816 (sem_item_optimizer::worklist_pop): Use heap.
17817 (sem_item_optimizer::process_cong_reduction): Likewise.
17818 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
17820 2019-06-04 Martin Liska <mliska@suse.cz>
17822 * ipa-icf.h (struct sem_usage_pair_hash): New.
17823 (sem_usage_pair_hash::hash): Likewise.
17824 (sem_usage_pair_hash::equal): Likewise.
17825 (struct sem_usage_hash): Likewise.
17826 * ipa-icf.c (sem_item::sem_item): Initialize
17827 referenced_by_count.
17828 (sem_item::add_reference): Register a reference
17829 in ref_map and not in target->usages.
17830 (sem_item::setup): Remove initialization of
17832 (sem_item::~sem_item): Remove usage of dead vectors.
17833 (sem_item::dump): Remove dump of references.
17834 (sem_item_optimizer::sem_item_optimizer): Initialize
17836 (sem_item_optimizer::read_section): Remove useless
17838 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
17839 (sem_item_optimizer::build_graph): Pass m_references
17840 to ::add_reference.
17841 (sem_item_optimizer::verify_classes): Remove usage of dead
17843 (sem_item_optimizer::traverse_congruence_split): Return true
17844 when a class is split.
17845 (sem_item_optimizer::do_congruence_step_for_index): Use
17846 hash_map for look up of (sem_item *, index). That brings
17847 significant speed up.
17848 (sem_item_optimizer::do_congruence_step): Return true
17849 when a split is done.
17850 (congruence_class::is_class_used): Use referenced_by_count.
17852 2019-06-04 Alan Modra <amodra@gmail.com>
17855 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
17858 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17860 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
17861 * config/rs6000/rs6000.c (direct_move_p): Adjust.
17862 (rs6000_secondary_reload_simple_move): Adjust.
17863 (rs6000_opt_masks): Neuter the "mfpgpr" option.
17864 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
17865 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
17868 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
17869 (floatunssi<mode>2_lfiwzx): Adjust.
17870 (fix_trunc<mode>si2_stfiwx): Adjust.
17871 (fixuns_trunc<mode>si2_stfiwx): Adjust.
17872 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
17873 (mfpgpr): Mark as deprecated.
17874 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
17875 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
17876 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
17878 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17880 * config/rs6000/constraints.md (define_register_constraint "wg"):
17882 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17883 RS6000_CONSTRAINT_wg.
17884 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17885 (rs6000_init_hard_regno_mode_ok): Adjust.
17886 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
17887 Delete "wg" alternatives.
17888 * doc/md.texi (Machine Constraints): Adjust.
17890 2019-06-03 Alan Modra <amodra@gmail.com>
17892 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
17893 (get_uncond_jump_length): Assert length less than INT_MAX and
17896 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17898 PR middle-end/64242
17899 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
17901 (expand_builtin_nonlocal_goto): Likewise.
17903 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17905 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
17906 (aarch64_asm_output_external): Declare.
17907 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17908 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17909 (aarch64_asm_output_alias): New.
17910 (aarch64_asm_output_external): New.
17911 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17912 (ASM_OUTPUT_EXTERNAL): Define.
17914 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17915 * tree-vrp.h (value_range_base::nonzero_p): New.
17916 (value_range_base::set_nonnull): Rename to...
17917 (value_range_base::set_nonzero): ...this.
17918 (value_range_base::set_null): Rename to...
17919 (value_range_base::set_zero): ...this.
17920 (value_range::set_nonnull): Remove.
17921 (value_range::set_null): Remove.
17922 * tree-vrp.c (range_is_null): Remove.
17923 (range_is_nonnull): Remove.
17924 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17925 instead of range_is_*null.
17926 (extract_range_from_unary_expr): Same.
17927 (value_range_base::set_nonnull): Rename to...
17928 (value_range_base::set_nonzero): ...this.
17929 (value_range::set_nonnull): Remove.
17930 (value_range_base::set_null): Rename to...
17931 (value_range_base::set_zero): ...this.
17932 (value_range::set_null): Remove.
17933 (extract_range_from_binary_expr): Rename set_*null uses to
17935 (extract_range_from_unary_expr): Same.
17936 (union_helper): Same.
17937 * vr-values.c (get_value_range): Use set_*zero instead of
17939 (vr_values::extract_range_from_binary_expr): Same.
17940 (vr_values::extract_range_basic): Same.
17942 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17945 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17947 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17949 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17950 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17952 (aarch64_<su>abd<mode>_3): ... This.
17953 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17955 2019-06-03 Richard Biener <rguenther@suse.de>
17957 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17958 full reference tree and record in ref->ref.
17959 (vn_reference_lookup_3): Pass in original ref to
17960 ao_ref_init_from_vn_reference.
17961 (vn_reference_lookup): Likewise.
17962 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17963 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17964 Handle non-decl bases in the original reference.
17966 2019-06-03 Martin Liska <mliska@suse.cz>
17968 * doc/generic.texi: Remove Java Trees.
17970 2019-06-03 Martin Liska <mliska@suse.cz>
17972 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17973 returns 0 when operands are equal.
17975 2019-06-03 Richard Biener <rguenther@suse.de>
17977 PR tree-optimization/90716
17978 * tree-loop-distribution.c (destroy_loop): Process blocks in
17981 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17984 * vector-builder.h (vector_builder::count_dups): New method.
17985 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17987 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17988 (vec_init<mode><Vel>): New pattern.
17989 * config/aarch64/aarch64.c (emit_insr): New function.
17990 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17991 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17992 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17993 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17995 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17997 PR tree-optimization/90681
17998 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17999 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
18000 special case for SLP, but fail on non-groupped loads.
18002 2019-06-03 Martin Liska <mliska@suse.cz>
18004 * cfg.c (debug): Use TDF_DETAILS for debug and
18005 print edge info only once.
18007 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
18010 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
18012 2019-06-01 Martin Sebor <msebor@redhat.com>
18014 PR middle-end/90694
18015 * tree-pretty-print.c (dump_generic_node): Add parentheses.
18017 2019-05-31 Jan Hubicka <jh@suse.cz>
18019 * alias.c: Include ipa-utils.h.
18020 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
18021 * ipa-devirt.c (prevailing_odr_type): New.
18022 * ipa-utils.h (previaling_odr_type): Declare.
18024 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
18025 Hongtao Liu <hongtao.liu@intel.com>
18028 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
18029 NOTE_INSN_DELETED_LABEL check.
18031 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
18032 Robert Suchanek <robert.suchanek@mips.com>
18034 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
18035 and 3rd operands of the fmadd/fmsub/maddv builtin.
18037 2019-05-31 Jakub Jelinek <jakub@redhat.com>
18039 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
18040 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
18041 on OMP_SIMD if not nested inside of worksharing loop that also has
18042 lastprivate conditional clause for the same decl.
18043 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
18044 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
18046 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
18048 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
18050 (lower_lastprivate_clauses): Likewise.
18051 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
18052 calling lower_rec_input_clauses.
18053 (lower_omp_for): Likewise.
18054 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
18055 clause on simd construct.
18056 * omp-expand.c (expand_omp_simd): Initialize cond_var if
18057 OMP_CLAUSE__CONDTEMP_ clause is present.
18059 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
18062 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
18065 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
18066 TEX_D32, TEX_D64 or TEX_D128.
18068 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
18070 * match.pd (~(vec?cst1:cst2)): New transformation.
18072 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
18074 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
18075 ((size_t)(A /[ex] B) CMP C): New transformation.
18077 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
18079 * doc/md.texi: Document define_insn_and_rewrite.
18080 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
18081 * gensupport.c (queue_elem): Update comment.
18082 (replace_operands_with_dups): New function.
18083 (gen_rewrite_sequence): Likewise.
18084 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
18085 * read-rtl.c (apply_subst_iterator): Likewise.
18086 (add_condition_to_rtx, named_rtx_p): Likewise.
18087 (rtx_reader::read_rtx_operand): Likewise.
18088 * config/aarch64/aarch64-sve.md
18089 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
18090 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
18091 define_insn_and_rewrite.
18092 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
18093 Remove separate define_split.
18095 2019-05-31 Jan Hubicka <jh@suse.cz>
18097 * tree-ssa-alias.c (type_has_components_p): New function.
18098 (aliasing_component_refs_p): Use it.
18100 2019-05-31 Martin Liska <mliska@suse.cz>
18102 * gdbhooks.py: Add const_tree to TreePrinter.
18104 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
18107 * common.opt (feliminate-unused-debug-symbols): Enable by default.
18108 * doc/invoke.texi (Debugging Options): Document new default of
18109 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
18111 2019-05-31 Jakub Jelinek <jakub@redhat.com>
18113 PR tree-optimization/90671
18114 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
18115 template_block used to be empty on the first call, don't use
18116 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
18117 seq with bb_seq and set it with set_bb_seq.
18119 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
18121 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
18123 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18124 Michael Meissner <meissner@linux.ibm.com>
18126 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
18127 (prefixed_mem_operand): Likewise.
18128 (non_prefixed_mem_operand): Likewise.
18129 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
18131 * config/rs6000/rs6000.c (print_operand_address): Handle
18132 PC-relative addresses.
18133 (mode_supports_prefixed_address_p): New function.
18134 (rs6000_prefixed_address): New function.
18135 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
18136 (SYMBOL_REF_PCREL_P): Likewise.
18138 2019-05-30 Jakub Jelinek <jakub@redhat.com>
18140 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
18141 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
18142 (gimplify_omp_for): If worksharing loop with lastprivate conditional
18143 is nested inside of parallel region, add _condtemp_ clause to both.
18144 * tree-nested.c (convert_nonlocal_omp_clauses,
18145 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
18147 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
18149 * omp-general.c (omp_extract_for_data): Compute it.
18150 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
18151 (lower_rec_input_clauses): Likewise.
18152 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
18153 clause is already present, just add one further one after it.
18154 (lower_lastprivate_clauses): Handle cond_ptr with array type.
18155 (lower_send_shared_vars): Clear _condtemp_ vars.
18156 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
18157 or section or taskgroup.
18158 * omp-expand.c (determine_parallel_type): Disallow combining only if
18159 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
18160 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
18161 (expand_omp_for_generic, expand_omp_for_static_nochunk,
18162 expand_omp_for_static_chunk, expand_omp_for): Use
18163 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
18164 determine if a special set of API routines are needed and if condtemp
18165 needs to be initialized, while always initialize cond_var if
18166 fd->lastprivate_conditional is non-zero.
18168 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18169 Michael Meissner <meissner@linux.ibm.com>
18171 * config/rs6000/constraints.md (eI): New constraint.
18172 * config/rs6000/predicates.md (cint34_operand): New predicate.
18173 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
18174 (SIGNED_34BIT_OFFSET_P): Likewise.
18175 * doc/md.texi (eI): Document constraint.
18177 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
18179 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
18181 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18182 Michael Meissner <meissner@linux.ibm.com>
18184 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
18185 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
18186 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
18187 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
18188 (OTHER_FUTURE_MASKS): Likewise.
18189 (POWERPC_MASKS): Likewise.
18190 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
18191 specified without -mprefixed-addr or -mcpu=future. Error if
18192 -mprefixed-addr is specified without -mcpu=future.
18193 (rs6000_opt_masks): Add entry for prefixed-addr.
18194 * rs6000.opt (mprefixed-addr): New option.
18196 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
18198 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
18199 cfun->is_thunk check.
18201 2019-05-30 Jakub Jelinek <jakub@redhat.com>
18203 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
18206 2019-05-30 Martin Liska <mliska@suse.cz>
18208 * gdbinit.in: Fix 'ptc' command. Add trt
18209 that prints TREE_TYPE($).
18211 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
18212 Alan Modra <amodra@gmail.com>
18214 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
18216 (rs6000_indirect_call_template_1): ...and here.
18217 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
18218 plt16_ha, plt16_lo, mtctr indirect calls. Use
18219 rs6000_pltseq_enum.
18220 (rs6000_decl_ok_for_sibcall): New function.
18221 (rs6000_function_ok_for_sibcall): Refactor.
18222 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
18223 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
18224 when pcrel. Reorganize.
18225 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
18226 * rs6000.h (rs6000_pltseq_enum): New enum.
18227 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
18228 (*pltseq_tocsave): Use rs6000_pltseq_enum.
18229 (*pltseq_plt16_ha): Likewise.
18230 (*pltseq_plt16_lo): Likewise.
18231 (*pltseq_mtctr): Likewise.
18232 (*pltseq_plt_pcrel): New insn.
18233 (*call_local_aix): Handle @notoc calls.
18234 (*call_value_local_aix): Likewise.
18235 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
18236 (*call_value_nonlocal_aix): Likewise.
18237 (*call_indirect_pcrel): New insn.
18238 (*call_value_indirect_pcrel): Likewise.
18240 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
18242 * config/i386/sse.md (*save_multiple<mode>): Rename from
18243 save_multiple<mode>.
18244 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
18245 (*restore_multiple_and_return<mode>): Rename from
18246 restore_multiple_and_return<mode>.
18247 (*restore_multiple_leave_return<mode>): Rename from
18248 restore_multiple_leave_return<mode>.
18250 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
18252 * config.gcc (rx-*-linux*): New target.
18253 * config/rx/elf.opt: New file.
18254 * config/rx/linux.h: Likewise.
18255 * config/rx/t-linux: Likewise.
18256 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
18258 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
18259 (ASM_APP_OFF): Likewise.
18260 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
18263 2019-05-29 Jan Hubicka <jh@suse.cz>
18265 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
18266 variants are pointer equivalent.
18268 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18270 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
18271 * config/aarch64/aarch64-sve2.md: New file.
18272 (<u>avg<mode>3_floor): New pattern.
18273 (<u>avg<mode>3_ceil): Likewise.
18274 (*<sur>h<addsub><mode>): Likewise.
18275 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
18276 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
18278 2019-05-29 Jakub Jelinek <jakub@redhat.com>
18281 * optc-save-gen.awk: In cl_optimization_print, use correct condition
18282 for var_opt_string printing. In cl_optimization_print_diff, print
18283 (null) instead of invoking undefined behavior if one of the
18284 var_opt_string pointers is NULL and use && instead of first || in the
18285 guarding condition. For var_target_other options, handle const char *
18286 target variables similarly to const char * optimize node variables.
18288 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
18290 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
18291 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
18292 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
18293 Add autib1716 and pacib1716 initialisation.
18294 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
18295 for autib1716 and pacib1716.
18296 * config/aarch64/aarch64-protos.h (aarch64_key_type,
18297 aarch64_post_cfi_startproc): Define.
18298 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
18299 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
18300 aarch64_handle_pac_ret_protection): Set default sign key to A.
18301 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
18302 aarch64_expand_prologue): Add check for b-key.
18303 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
18304 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
18305 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
18306 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
18307 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
18308 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
18309 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18310 * config/aarch64/aarch64.md (do_return): Add check for b-key.
18311 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
18312 pauth_hint_num_a with pauth_hint_num.
18313 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
18314 pauth_hint_num_a with pauth_hint_num.
18315 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
18316 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
18317 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18318 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
18319 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
18320 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
18321 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
18322 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18323 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
18324 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
18325 UNSPEC_AUTIA1716 respectively.
18326 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
18327 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
18328 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
18329 * doc/invoke.texi (-mbranch-protection): Add b-key type.
18330 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
18331 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
18333 2019-05-29 Jakub Jelinek <jakub@redhat.com>
18335 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
18336 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
18337 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
18338 explicit clause on combined parallel into implicit shared clause.
18339 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
18340 and firstprivate if the decl has one too from combined parallel to
18341 the worksharing construct.
18343 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
18344 Michael Meissner <meissner@linux.ibm.com>
18346 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
18348 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
18350 * rtl.h (LABEL_REF_P): New #define.
18352 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
18354 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
18356 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18358 * internal-fn.c: Marked mask_load_direct as vectorizable.
18359 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
18360 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
18361 combined even if masks different with allow_slp_p param.
18362 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
18363 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
18364 dissolve SLP-only vectorizable groups when SLP has been discarded.
18365 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
18366 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
18368 (vect_build_slp_tree_1): Fixed comment typo.
18369 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
18370 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
18371 loads for SLP only.
18372 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
18374 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
18376 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18378 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
18379 Remove obsolete use_thunk reference.
18380 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18381 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18382 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18383 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18384 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18385 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18386 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18387 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18388 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18390 2019-05-28 Nathan Sidwell <nathan@acm.org>
18392 * tree.h (IDENTIFIER_ANON_P): New.
18393 (anon_aggrname_format, anon_aggname_p): Don't declare.
18394 (make_anon_name): Declare.
18395 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
18396 (hash_tree): Likewise.
18397 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
18398 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
18399 (anon_cnt, make_anon_name): New.
18401 2019-05-28 Martin Liska <mliska@suse.cz>
18404 * opts-global.c (decode_options): Print help for all
18405 help_option_arguments.
18406 * opts.c (print_help): Add new argument.
18407 (common_handle_option): Remember all values into
18408 help_option_arguments.
18409 * opts.h (print_help): Add new argument.
18411 2019-05-28 Martin Liska <mliska@suse.cz>
18414 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
18415 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
18416 (func_checker::compare_bb): Call compare_loops.
18418 2019-05-27 Jakub Jelinek <jakub@redhat.com>
18420 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
18421 on sections construct.
18422 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
18424 (lower_omp_sections): Handle lastprivate conditional.
18425 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
18426 lastprivate_conditional_map.
18427 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
18429 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
18430 critical, taskgroup and section regions when looking for a region
18431 with non-NULL lastprivate_conditional_map.
18433 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
18435 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
18436 (*ix86_gen_sub3): Ditto.
18437 (*ix86_gen_sub3_carry): Ditto.
18438 (*ix86_gen_one_cmpl2): Ditto.
18439 (*ix86_gen_andsp): Ditto.
18440 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
18441 (gen_and2_insn): New static function.
18442 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
18443 Use gen_add3_insn instead of ix86_gen_add3.
18444 (ix86_expand_split_stack_prologue): Use gen_add2_insn
18445 instead of ix86_gen_add3.
18446 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
18447 Use gen_sub3_insn instead of ix86_gen_sub3.
18448 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
18449 instead of ix86_gen_add3.
18450 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
18451 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
18452 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
18453 * config/i386/i386-options.c (ix86_option_override_internal):
18454 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
18455 ix86_gen_one_cmpl2 and ix86_gen_andsp.
18457 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
18459 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
18460 and DW_OP_GNU_const_index opcodes.
18462 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
18464 * config/i386/i386.h (STACK_SIZE_MODE): Define.
18466 2019-05-27 Richard Biener <rguenther@suse.de>
18468 PR tree-optimization/90637
18469 * tree-ssa-sink.c (statement_sink_location): Honor the
18470 computed sink location for single-uses.
18472 2019-05-27 Richard Biener <rguenther@suse.de>
18474 PR middle-end/90610
18475 * match.pd (vec_perm): Avoid clobbering op0 when not generating
18478 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18480 * config/i386/i386.md (@sub<mode>3_carry): Rename
18481 from sub<mode>3_carry.
18482 (@leave_<mode>): New expander.
18483 (*leave): Rename from leave.
18484 (*leave_rex64): Rename from leave_rex64.
18485 (@monitorx_<mode>): Rename from monitorx_<mode>.
18486 (@clzero_<mode>): Rename from clzero_<mode>.
18487 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
18488 from sse3_monitor_<mode>.
18489 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
18490 (*ix86_gen_leave): Ditto.
18491 (*ix86_gen_monitor): Ditto.
18492 (*ix86_gen_monitorx): Ditto.
18493 (*ix86_gen_clzero): Ditto.
18494 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
18495 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
18496 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
18497 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
18498 Use gen_sse3_monitor instead of ix86_gen_monitor.
18499 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
18500 instead of ix86_gen_monitorx.
18501 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
18502 instead of ix86_gen_clzero.
18503 * config/i386/i386-options.c (ix86_option_override_internal):
18504 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
18505 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
18507 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18509 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
18510 Rename from tls_global_dynamic_64_<mode>.
18511 (@tls_local_dynamic_base_64_<mode>): Rename from
18512 tls_local_dynamic_base_64_<mode>.
18513 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
18514 Remove indirect function.
18515 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
18516 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
18517 instead of ix86_gen_tls_global_dynamic_64.
18518 Use gen_tls_local_dynamic_base_64 instead of
18519 ix86_gen_tls_local_dynamic_base_64.
18520 * config/i386/i386-options.c (ix86_option_override_internal):
18521 Do not initialize ix86_gen_tls_global_dynamic_64 and
18522 ix86_gen_tls_local_dynamic_base_64.
18524 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18526 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
18527 Rename from pro_epilogue_adjust_stack_<mode>_add.
18528 (@pro_epilogue_adjust_stack_sub_<mode>)
18529 Rename from pro_epilogue_adjust_stack_<mode>_sub.
18530 (@allocate_stack_worker_probe_<mode>):
18531 Rename from allocate_stack_worker_probe_<mode>.
18532 (allocate_stack): Use gen_allocate_stack_worker_probe.
18533 (probe_stack): Use gen_probe_stack_1.
18534 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
18535 (@adjust_stack_and_probe_<mode>): Rename from
18536 adjust_stack_and_probe<mode>.
18537 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
18538 (stack_protect_set): Use gen_stack_protect_set_1.
18539 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
18540 (stack_protect_test): Use gen_stack_protect_test_1.
18541 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
18542 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
18543 Remove indirect function.
18544 (*ix86_gen_adjust_stack_and_probe): Ditto.
18545 (*ix86_gen_probe_stack_range): Ditto.
18546 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
18547 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
18548 (ix86_adjust_stack_and_probe_stack_clash): Use
18549 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
18550 (ix86_adjust_stack_and_probe): Ditto.
18551 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
18552 of ix86_gen_probe_stack_range.
18553 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
18554 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
18555 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
18556 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
18557 CODE_FOR_stack_protect_test_{si,di}.
18558 * config/i386/i386-options.c (ix86_option_override_internal):
18559 Do not initialize ix86_gen_allocate_stack_worker,
18560 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
18562 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
18564 * doc/invoke.texi (Link Options): Many editorial changes around
18567 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18569 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
18570 pre-Solaris 11 referene and most Studio compiler details.
18572 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
18575 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
18576 DImode to SImode in floating-point registers on 64-bit target.
18577 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
18578 register_operand in xmpyu patterns.
18580 2019-05-24 Jakub Jelinek <jakub@redhat.com>
18582 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
18583 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
18584 OMP_CLAUSE__REDUCTEMP_.
18585 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18586 OMP_CLAUSE__CONDTEMP_.
18587 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
18588 * tree-pretty-print.c (dump_omp_clause): Likewise.
18589 * tree-nested.c (convert_nonlocal_omp_clauses,
18590 convert_local_omp_clauses): Likewise.
18591 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
18592 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
18593 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
18595 (gimplify_omp_for): Warn and disable conditional modifier from
18596 lastprivate on loop iterators.
18597 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
18599 * omp-general.c (omp_extract_for_data): Initialize it.
18600 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
18602 (delete_omp_context): Delete it.
18603 (lower_lastprivate_conditional_clauses): New function.
18604 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
18605 handle lastprivate conditional clauses.
18606 (lower_reduction_clauses): Add CLIST argument, emit it into
18607 the critical section if any.
18608 (lower_omp_sections): Adjust lower_lastprivate_clauses and
18609 lower_reduction_clauses callers.
18610 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
18611 to lower_lastprivate_clauses.
18612 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
18613 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
18614 clist into a critical section if not emitted there already by
18615 lower_reduction_clauses.
18616 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
18618 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
18619 conditional variables.
18620 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
18622 (expand_omp_for_generic, expand_omp_for_static_nochunk,
18623 expand_omp_for_static_chunk): Handle lastprivate conditional.
18624 (expand_omp_for): Handle fd.lastprivate_conditional like
18627 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
18629 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
18630 kernel does not exit cleanly.
18631 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
18633 2019-05-24 Jason Merrill <jason@redhat.com>
18636 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18638 2019-05-24 Richard Biener <rguenther@suse.de>
18641 * tree-loop-distribution.c (struct partition): Add location
18643 (partition_alloc): Initialize all fields.
18644 (generate_memset_builtin): Use the location recorded in the
18645 partition for the generated call.
18646 (generate_memcpy_builtin): Likewise.
18647 (classify_partition): Record the location of a single store
18648 as location for the partition.
18650 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
18652 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
18655 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
18658 * common/config/aarch64/aarch64-common.c
18659 (aarch64_rewrite_selected_cpu): Change local temporary variable
18660 type from unsigned long to uint64_t.
18661 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
18662 aarch64_get_extension_string_for_isa_flags): Change declaration to
18663 match new definition by replacing unsigned long with uint64_t.
18665 2019-05-24 Jakub Jelinek <jakub@redhat.com>
18668 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
18669 gen_attr_type just once instead of 4-7 times. Formatting fixes.
18670 Handle stack_protect_test_<mode> codegen similarly to corresponding
18673 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
18675 * config/i386/darwin.h: Reject -mfentry*.
18676 * doc/sourcebuild.texi: Document mfentry target support.
18678 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18680 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
18681 Rename to rs6000_global_entry_point_prologue_needed_p. Return
18682 false for PC-relative functions.
18683 (rs6000_output_function_prologue): Change called function name to
18684 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
18685 name,1" for PC-relative functions.
18686 (rs6000_elf_declare_function_name): Change called function name to
18687 rs6000_global_entry_point_prologue_needed_p.
18689 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
18692 * config/i386/i386.c (gen_rtx_cost):
18693 Use ix86_tune_cost instead of ix86_cost.
18695 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18696 Michael Meissner <meissner@linux.ibm.com>
18697 Segher Boessenkool <segher@kernel.crashing.org>
18699 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
18701 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
18702 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
18703 (rs6000_fndecl_pcrel_p): Likewise.
18704 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
18705 error if -mpcrel is requested without -mcpu=future.
18706 (rs6000_opt_masks): Add entry for pcrel.
18707 (rs6000_fndecl_pcrel_p): New function.
18708 (rs6000_pcrel_p): Likewise.
18709 * config/rs6000/rs6000.opt (mpcrel): New option.
18710 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
18712 2019-05-23 Jan Hubicka <jh@suse.cz>
18713 Martin Liska <mliska@suse.cz>
18715 PR tree-optimization/90576
18716 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
18718 (aliasing_component_refs_p): Fix three way size compare conditional;
18719 give up earlier in case we can not decide on equivalence.
18721 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18722 Michael Meissner <meissner@linux.ibm.com>
18723 Segher Boessenkool <segher@kernel.crashing.org>
18725 * config.gcc: Add future cpu.
18726 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
18727 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
18729 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
18730 (RS6000_CPU): New instantiation for future cpu.
18731 * config/rs6000/rs6000-opts.h (enum processor_type): Add
18733 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
18734 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
18735 * config/rs6000/rs6000-tables.opt: Regenerate.
18736 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
18737 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
18738 (rs6000_machine_from_flags): Handle future cpu.
18739 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
18740 PROCESSOR_POWER9 for now.
18741 (rs6000_adjust_cost): Likewise.
18742 (rs6000_issue_rate): Likewise.
18743 (rs6000_register_move_cost): Likewise.
18744 (rs6000_opt_masks): Add entry for future.
18745 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
18746 (MASK_FUTURE): New #define.
18747 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
18748 * config/rs6000/rs6000.opt (mfuture): New target option.
18749 * doc/invoke.texi (mcpu): Add future cpu.
18751 2019-05-23 Martin Liska <mliska@suse.cz>
18754 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
18755 operation points to a temporary (pointed via tree_to_wide_ref)
18756 that is out of scope after the &.
18758 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
18761 * doc/extend.texi (Function Names): Add missing word.
18763 2019-05-23 Richard Biener <rguenther@suse.de>
18765 PR tree-optimization/88440
18766 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
18768 * tree-loop-distribution.c (generate_memset_builtin): Fold the
18770 (generate_memcpy_builtin): Likewise.
18771 (distribute_loop): Pass in whether to only distribute patterns.
18772 (prepare_perfect_loop_nest): Also allow size optimization.
18773 (pass_loop_distribution::execute): When optimizing a loop
18774 nest for size allow pattern replacement.
18776 2019-05-23 Jakub Jelinek <jakub@redhat.com>
18779 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
18782 2019-05-23 Martin Liska <mliska@suse.cz>
18785 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
18786 expression similarly to gimplify_decl_expr.
18788 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18790 * cse.c (cse_dump_path): s/dump_file/f.
18792 2019-05-22 David Malcolm <dmalcolm@redhat.com>
18795 * diagnostic-format-json.cc: Include "selftest.h".
18796 (json_from_expanded_location): Only add "file" key for non-NULL
18798 (json_from_location_range): Don't add "start" and "finish"
18799 children if they are UNKNOWN_LOCATION.
18800 (selftest::test_unknown_location): New selftest.
18801 (selftest::test_bad_endpoints): New selftest.
18802 (selftest::diagnostic_format_json_cc_tests): New function.
18803 * json.cc (json::object::get): New function.
18804 (selftest::test_object_get): New selftest.
18805 (selftest::json_cc_tests): Call it.
18806 * json.h (json::object::get): New decl.
18807 * selftest-run-tests.c (selftest::run_tests): Call
18808 selftest::diagnostic_format_json_cc_tests.
18809 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
18812 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
18813 Andrew Stubbs <amd@codesourcery.com>
18815 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
18816 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
18817 (kernel): Rename to...
18818 (main_kernel): ... this.
18819 (load_image): Load _init_array and _fini_array kernels.
18820 (run): Add argument for kernel to run.
18821 (main): Run init_array_kernel before main_kernel, and
18822 fini_array_kernel after.
18823 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
18824 amdgpu_hsa_kernel attribute on functions.
18825 (gcn_disable_constructors): Delete.
18826 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
18827 * config/gcn/crt0.c (size_t): Define.
18828 (_init_array, _fini_array): New.
18829 (__preinit_array_start, __preinit_array_end,
18830 __init_array_start, __init_array_end,
18831 __fini_array_start, __fini_array_end): Declare weak references.
18833 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
18835 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
18837 2019-05-22 Jason Merrill <jason@redhat.com>
18839 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18841 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
18844 * config/i386/i386-options.c (ix86_init_machine_status): Set
18845 stack_frame_required to true.
18846 * config/i386/i386.c (ix86_get_frame_size): New function.
18847 (ix86_frame_pointer_required): Replace get_frame_size with
18848 ix86_get_frame_size.
18849 (ix86_compute_frame_layout): Likewise.
18850 (ix86_find_max_used_stack_alignment): Changed to void. Set
18851 stack_frame_required.
18852 (ix86_finalize_stack_frame_flags): Always call
18853 ix86_find_max_used_stack_alignment. Replace get_frame_size with
18854 ix86_get_frame_size.
18855 * config/i386/i386.h (machine_function): Add stack_frame_required.
18857 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
18859 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
18861 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
18863 * common/config/aarch64/aarch64-common.c
18864 (struct aarch64_option_extension, struct processor_name_to_arch,
18865 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
18866 aarch64_contains_opt,
18867 aarch64_get_extension_string_for_isa_flags): Change type of
18868 variables storing flags to uint64_t.
18869 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
18870 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
18871 * config/aarch64/aarch64.c (struct processor,
18872 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
18873 aarch64_validate_march, aarch64_override_options,
18874 aarch64_option_print, aarch64_handle_attr_isa_flags,
18875 aarch64_declare_function_name, aarch64_start_file): Make flag
18876 variables uint64_t.
18877 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
18878 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
18879 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
18880 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
18881 * config/aarch64/driver-aarch64.c
18882 (struct aarch64_arch_extension, struct aarch64_core_data,
18883 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
18884 flag variables uint64_t.
18885 * doc/invoke.texi: Add documentation for new arguments.
18887 2019-05-22 Richard Biener <rguenther@suse.de>
18889 * alias.c (ao_ref_from_mem): Move stack-slot sharing
18891 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
18893 2019-05-22 Martin Liska <mliska@suse.cz>
18896 * doc/extend.texi: Document the change.
18898 2019-05-22 Richard Biener <rguenther@suse.de>
18900 PR tree-optimization/90450
18901 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
18902 (mem_ref_hasher::equal): Check it.
18903 (mem_ref_alloc): Initialize it.
18904 (gather_mem_refs_stmt): Set it.
18906 2019-05-22 Richard Biener <rguenther@suse.de>
18908 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18910 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18913 2019-05-22 Alan Modra <amodra@gmail.com>
18915 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18916 (ASM_CPU_SPEC): Conditionally add -many.
18917 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18918 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18919 (rs6000_file_start): ..extracted from here, and modified to
18921 (rs6000_output_function_prologue): Emit .machine as necessary.
18923 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18925 PR middle-end/90553
18926 * ira-lives.c (process_bb_node_lives): Consider defs
18927 for a call insn to be die before the call, not after.
18929 * function.c (assign_parm_setup_block): Raise alignment of
18930 stacked parameter only for STRICT_ALIGNMENT targets.
18932 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18934 * config/rs6000/constraints.md (define_register_constraint "wz"):
18936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18937 RS6000_CONSTRAINT_wz.
18938 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18939 (rs6000_init_hard_regno_mode_ok): Adjust.
18940 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18941 * doc/md.texi (Machine Constraints): Adjust.
18943 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18945 * config/rs6000/constraints.md (define_register_constraint "wl"):
18947 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18948 RS6000_CONSTRAINT_wl.
18949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18950 (rs6000_init_hard_regno_mode_ok): Adjust.
18951 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18952 * doc/md.texi (Machine Constraints): Adjust.
18954 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18956 * config/rs6000/constraints.md (define_register_constraint "wm"):
18958 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18959 RS6000_CONSTRAINT_wm.
18960 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18961 (rs6000_init_hard_regno_mode_ok): Adjust.
18962 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18963 * doc/md.texi (Machine Constraints): Adjust.
18965 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18967 * config/rs6000/constraints.md (define_register_constraint "wk"):
18969 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18970 RS6000_CONSTRAINT_wk.
18971 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18972 (rs6000_init_hard_regno_mode_ok): Adjust.
18973 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18974 * doc/md.texi (Machine Constraints): Adjust.
18976 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18978 * config/rs6000/constraints.md (define_register_constraint "wj"):
18980 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18981 RS6000_CONSTRAINT_wj.
18982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18983 (rs6000_init_hard_regno_mode_ok): Adjust.
18984 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18986 * config/rs6000/vsx.md: Ditto.
18987 * doc/md.texi (Machine Constraints): Adjust.
18989 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18991 * config/rs6000/constraints.md (define_register_constraint "wh"):
18993 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18994 RS6000_CONSTRAINT_wh.
18995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18996 (rs6000_init_hard_regno_mode_ok): Adjust.
18997 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18998 * doc/md.texi (Machine Constraints): Adjust.
19000 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
19003 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
19004 Avoid calling gen_lowpart with CONST operand.
19006 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
19008 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
19009 field template_last_to_copy.
19010 (ssa_create_duplicates): Set it, and use it. Attempt to
19011 preserve more debug stmts.
19013 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
19015 * config/i386/sse.md (VF1_AVX2): New mode iterator.
19016 (signbit<mode>2): New expander
19018 2019-05-21 James Clarke <jrtc27@jrtc27.com>
19021 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
19022 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
19024 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
19026 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
19027 %ebx and %ecx bafore calling cpuid with leaf 1 or
19028 non-constant leaf argument.
19030 2019-05-21 Alan Modra <amodra@gmail.com>
19033 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
19034 power9 direct move cost.
19036 2019-05-21 Richard Biener <rguenther@suse.de>
19038 PR middle-end/90510
19039 * fold-const.c (fold_read_from_vector): New function.
19040 * fold-const.h (fold_read_from_vector): Declare.
19041 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
19042 single-element insert permutations. Canonicalize selector
19043 further and fix issue with last commit.
19045 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
19047 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
19048 parameter with default value false to declaration.
19049 (split_edges_for_insertion): New inline function. Wrapper for
19050 split_critical_edges with for_edge_insertion_p = true.
19051 * tree-cfg.c (split_critical_edges): Don't split non-critical
19052 edges if for_edge_insertion_p is false. Fix whitespace.
19053 * tree-ssa-pre.c (pass_pre::execute): Call
19054 split_edges_for_insertion instead of split_critical_edges.
19055 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
19056 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
19057 (pass_data_sink_code): Update function name in the comment.
19059 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
19061 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
19062 around is_value_included_in that knows how to handle BIT_AND_EXPR.
19063 (is_pred_expr_subset_of): Use the new function. Handle more cases where
19064 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
19067 2019-05-21 Martin Liska <mliska@suse.cz>
19069 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
19071 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
19072 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
19074 * config/rs6000/rs6000.c (rs6000_option_override_internal):
19076 (rs6000_function_arg): Likewise.
19077 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
19078 (rs6000_expand_ternop_builtin): Use interval syntax.
19079 (get_element_number): Likewise.
19080 (altivec_expand_builtin): Likewise.
19081 (rs6000_get_function_versions_dispatcher): Quote target_clones.
19083 2019-05-20 Jakub Jelinek <jakub@redhat.com>
19087 * function.h (struct function): Add calls_eh_return member.
19088 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
19089 gimplifying __builtin_eh_return call.
19090 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
19092 (expand_call_inline): Or in src_cfun->calls_eh_return into
19093 dst_cfun->calls_eh_return.
19094 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
19095 cfun->calls_eh_return.
19096 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
19097 * lto-streamer-out.c (output_struct_function_base): Write
19100 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
19102 PR rtl-optimization/43147
19103 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
19104 IX86_BUILTIN_SHUFPD.
19106 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
19108 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
19109 (refs_may_alias_p_1): ... here; update stats.
19110 (refs_may_alias_p): Do not update stats here.
19112 2019-05-20 Richard Biener <rguenther@suse.de>
19114 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
19115 doesn't produce pointers.
19116 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
19117 the first operand points to.
19119 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
19121 * tree-ssa-alias.c (compare_sizes): New function.
19122 (sompare_type_sizes): New function
19123 (aliasing_component_refs_p): Use it.
19124 (indirect_ref_may_alias_decl_p): Likewise.
19126 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19128 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
19130 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19132 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
19133 (LIBLSAN_EARLY_SPEC): Likewise.
19134 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
19136 2019-05-20 Martin Liska <mliska@suse.cz>
19138 * config/i386/i386.c (ix86_libc_has_fast_function):
19139 Add ATTRIBUTE_UNUSED for the argument.
19141 2019-05-20 Richard Biener <rguenther@suse.de>
19143 * gimple-match-head.c: Include vec-perm-indices.h.
19144 * generic-match-head.c: Likewise.
19145 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
19147 * fold-const.c (fold_vec_perm): Export.
19148 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
19149 (match.pd): ...here.
19151 2019-05-20 Jakub Jelinek <jakub@redhat.com>
19153 * cfgloop.h (struct loop): Add simdlen member.
19154 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
19155 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
19156 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
19157 as new argument to autovectorize_vector_sizes target hook. If
19158 loop->simdlen, pick up vector size where the vectorization factor
19159 is equal to loop->simd, and if there is none, fall back to the first
19161 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
19163 * omp-low.c (omp_clause_aligned_alignment): Likewise.
19164 * omp-general.c (omp_max_vf): Likewise.
19165 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
19166 * tree-vect-slp.c (vect_slp_bb): Likewise.
19167 * target.def (autovectorize_vector_sizes): Add ALL argument and
19169 * doc/tm.texi: Adjust documentation.
19170 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
19171 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
19172 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
19174 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
19175 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
19176 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
19177 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
19178 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
19179 preferred vector size is not 512-bit or 256-bit, just put those
19180 unpreferred ones last.
19182 2019-05-20 Martin Liska <mliska@suse.cz>
19184 * targhooks.c (default_libc_has_fast_function): New function.
19185 * targhooks.h (default_libc_has_fast_function): Likewise.
19187 2019-05-20 Martin Liska <mliska@suse.cz>
19189 PR middle-end/90263
19190 * builtins.c (expand_builtin_memory_copy_args): When having a
19191 target with fast mempcpy implementation do now use memcpy.
19192 * config/i386/i386.c (ix86_libc_has_fast_function): New.
19193 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
19194 * doc/tm.texi: Likewise.
19195 * doc/tm.texi.in: Likewise.
19197 * expr.c (emit_block_move_hints): Add 2 new arguments.
19198 * expr.h (emit_block_move_hints): Bail out when libcall
19199 to memcpy would be used.
19201 2019-05-20 Martin Liska <mliska@suse.cz>
19203 * profile-count.c: Add vertical spacing in order
19204 to separate functions.
19205 * profile-count.h: Likewise.
19207 2019-05-20 Martin Liska <mliska@suse.cz>
19209 * profile-count.h: Do not use full qualified
19211 * profile-count.c (profile_count::to_frequency): Likewise.
19213 2019-05-20 Martin Liska <mliska@suse.cz>
19215 * profile-count.h (enum profile_quality): Use capital letters
19216 for enum value names. Use the adjusted names.
19217 * profile-count.c: Use the adjusted names.
19219 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19221 * config/rs6000/constraints.md (define_register_constraint "wH"):
19223 (define_register_constraint "wI"): Delete.
19224 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19225 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
19226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19227 (rs6000_init_hard_regno_mode_ok): Adjust.
19228 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
19229 resp. "d", or with "wa" as appropriate, all with "p8v".
19230 * config/rs6000/vsx.md: Ditto.
19231 * doc/md.texi (Machine Constraints): Adjust.
19233 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19235 * config/rs6000/constraints.md (define_register_constraint "wy"):
19237 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19238 RS6000_CONSTRAINT_wy.
19239 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19240 (rs6000_init_hard_regno_mode_ok): Adjust.
19241 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
19242 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
19243 (define_mode_attr Fisa): New.
19244 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
19245 * doc/md.texi (Machine Constraints): Adjust.
19247 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19249 * config/rs6000/constraints.md (define_register_constraint "wu"):
19251 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19252 RS6000_CONSTRAINT_wu.
19253 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19254 (rs6000_init_hard_regno_mode_ok): Adjust.
19255 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
19257 (define_mode_attr Fa): Delete.
19258 * config/rs6000/vsx.md: Ditto.
19259 * doc/md.texi (Machine Constraints): Adjust.
19261 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19263 * config/rs6000/constraints.md (define_register_constraint "wJ"):
19265 (define_register_constraint "wK"): Delete.
19266 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19267 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
19268 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19269 (rs6000_init_hard_regno_mode_ok): Adjust.
19270 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
19271 Replace "wK" constraint by "wH" with "p9v".
19272 * config/rs6000/vsx.md: Ditto.
19273 * doc/md.texi (Machine Constraints): Adjust.
19275 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19277 * config/rs6000/constraints.md (define_register_constraint "wb"):
19279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19280 RS6000_CONSTRAINT_wb.
19281 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19282 (rs6000_init_hard_regno_mode_ok): Adjust.
19283 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
19284 * config/rs6000/vsx.md: Ditto.
19285 * doc/md.texi (Machine Constraints): Adjust.
19287 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19289 * config/rs6000/constraints.md (define_register_constraint "wo"):
19291 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19292 RS6000_CONSTRAINT_wo.
19293 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19294 (rs6000_init_hard_regno_mode_ok): Adjust.
19295 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
19296 * config/rs6000/altivec.md: Ditto.
19297 * doc/md.texi (Machine Constraints): Adjust.
19299 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
19301 * config/darwin-c.c (darwin_register_objc_includes): Do not
19302 prepend the sysroot when building gnu-runtime header search
19305 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
19307 * config/darwin.c (darwin_file_end): Use switch_to_section ()
19308 instead of direct output of the asm.
19310 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
19312 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
19313 argument to be type bool (was int before).
19314 (rs6000_emit_epilogue): Simplify some code. Declare some variables
19315 at first use. Use type bool for some variables. Fix a theoretical
19316 eh_return bug for svr4.
19318 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
19320 * config/rs6000/rs6000.md (isa): New attribute.
19321 (enabled): New attribute.
19323 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
19325 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
19326 assemble_start_function and assemble_end_function.
19328 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
19330 PR middle-end/89433
19331 * omp-general.c (oacc_verify_routine_clauses): Change formal
19332 parameters. Add checking if already marked with an OpenACC
19333 'routine' directive. Adjust all users.
19335 PR middle-end/89433
19336 * omp-general.c (oacc_build_routine_dims): Move some of its
19338 (oacc_verify_routine_clauses): ... this new function.
19339 * omp-general.h (oacc_verify_routine_clauses): New prototype.
19341 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
19343 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
19344 formating of picbase labels to match other ports.
19346 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
19348 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
19349 in the generated code.
19351 2019-05-16 Martin Sebor <msebor@redhat.com>
19353 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
19354 identifiers, keywords, operators, and types in diagnostics. Correct
19355 quoting, spelling, and sentence capitalization issues.
19356 (expand_builtin_atomic_is_lock_free): Same.
19357 (fold_builtin_next_arg): Same.
19358 * cfgexpand.c (expand_one_var): Same.
19359 (tree_conflicts_with_clobbers_p): Same.
19360 (expand_asm_stmt): Same.
19361 (verify_loop_structure): Same.
19362 * cgraphunit.c (process_function_and_variable_attributes): Same.
19363 * collect-utils.c (collect_execute): Same.
19364 * collect2.c (maybe_run_lto_and_relink): Same.
19365 (is_lto_object_file): Same.
19366 (scan_prog_file): Same.
19367 * convert.c (convert_to_real_1): Same.
19368 * dwarf2out.c (dwarf2out_begin_prologue): Same.
19369 * except.c (verify_eh_tree): Same.
19370 * gcc.c (execute): Same.
19371 (eval_spec_function): Same.
19372 (run_attempt): Same.
19373 (driver::set_up_specs): Same.
19374 (compare_debug_auxbase_opt_spec_function): Same.
19375 * gcov-tool.c (unlink_gcda_file): Same.
19377 (do_rewrite): Same.
19378 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
19379 * gimplify.c (gimplify_asm_expr): Same.
19380 (gimplify_adjust_omp_clauses): Same.
19381 * hsa-gen.c (gen_hsa_addr_insns): Same.
19382 (gen_hsa_insns_for_load): Same.
19383 (gen_hsa_cmp_insn_from_gimple): Same.
19384 (gen_hsa_insns_for_operation_assignment): Same.
19385 (gen_get_level): Same.
19386 (gen_hsa_alloca): Same.
19387 (omp_simple_builtin::generate): Same.
19388 (gen_hsa_atomic_for_builtin): Same.
19389 (gen_hsa_insns_for_call): Same.
19390 * input.c (dump_location_info): Same.
19391 * ipa-devirt.c (compare_virtual_tables): Same.
19392 * ira.c (ira_setup_eliminable_regset): Same.
19393 * lra-assigns.c (lra_assign): Same.
19394 * lra-constraints.c (lra_constraints): Same.
19395 * lto-streamer-in.c (lto_input_mode_table): Same.
19396 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
19397 (merge_and_complain): Same.
19398 (compile_offload_image): Same.
19399 (compile_images_for_offload_targets): Same.
19400 (debug_objcopy): Same.
19403 * opts.c (print_specific_help): Same.
19404 (parse_no_sanitize_attribute): Same.
19405 (print_help): Same.
19406 (handle_param): Same.
19407 * plugin.c (add_new_plugin): Same.
19408 (parse_plugin_arg_opt): Same.
19409 (try_init_one_plugin): Same.
19410 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
19411 operators, and types in diagnostics. Correct quoting and spelling
19413 * read-rtl-function.c (parse_edge_flag_token): Same.
19414 (function_reader::parse_enum_value): Same.
19415 * reg-stack.c (check_asm_stack_operands): Same.
19416 * regcprop.c (validate_value_data): Same.
19417 * sched-rgn.c (make_pass_sched_fusion): Same.
19418 * stmt.c (check_unique_operand_names): Same.
19419 * targhooks.c (default_target_option_pragma_parse): Same.
19420 * tlink.c (recompile_files): Same.
19421 * toplev.c (process_options): Same.
19422 (do_compile): Same.
19423 * trans-mem.c (diagnose_tm_1): Same.
19424 (ipa_tm_scan_irr_block): Same.
19425 (ipa_tm_diagnose_transaction): Same.
19426 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
19427 format a tree code name in a diagnostic.
19428 (verify_types_in_gimple_min_lval): Same.
19429 (verify_types_in_gimple_reference): Same.
19430 (verify_gimple_call): Same.
19431 (verify_gimple_assign_unary): Same.
19432 (verify_gimple_assign_binary): Same.
19433 (verify_gimple_assign_ternary): Same.
19434 (verify_gimple_assign_single): Same.
19435 (verify_gimple_switch): Same.
19436 (verify_gimple_label): Same.
19437 (verify_gimple_phi): Same.
19438 (verify_gimple_in_seq): Same.
19439 (verify_eh_throw_stmt_node): Same.
19440 (collect_subblocks): Same.
19441 (gimple_verify_flow_info): Same.
19442 (do_warn_unused_result): Same.
19443 * tree-inline.c (expand_call_inline): Same.
19444 * tree-into-ssa.c (update_ssa): Same.
19445 * tree.c (tree_int_cst_elt_check_failed): Same.
19446 (tree_vec_elt_check_failed): Same.
19447 (omp_clause_operand_check_failed): Same.
19448 (verify_type_variant): Same.
19449 (verify_type): Same.
19450 * value-prof.c (verify_histograms): Same.
19451 * varasm.c (assemble_start_function): Same.
19453 2019-05-16 Martin Sebor <msebor@redhat.com>
19455 * config/i386/i386-expand.c (get_element_number): Quote keywords
19456 and other internal names in diagnostics. Adjust other diagnostic
19457 formatting issues noted by -Wformat-diag.
19458 * config/i386/i386-features.c
19459 (ix86_mangle_function_version_assembler_name): Same.
19460 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
19461 * config/i386/i386.c (ix86_function_type_abi): Same.
19462 (ix86_function_ms_hook_prologue): Same.
19463 (classify_argument): Same.
19464 (ix86_expand_prologue): Same.
19465 (ix86_md_asm_adjust): Same.
19466 (ix86_memmodel_check): Same.
19468 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19470 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
19471 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
19474 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
19477 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
19478 intrinsics without SSE/SSE2/SSSE3.
19479 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
19481 (*mmx_uavgv8qi3): Likewise.
19483 2019-05-17 Richard Biener <rguenther@suse.de>
19485 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
19486 VEC_PERM_EXPR as __VEC_PERM with -gimple.
19488 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
19490 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
19491 vec_sldw insn pattern.
19493 2019-05-17 Richard Biener <rguenther@suse.de>
19495 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
19497 2019-05-17 Martin Liska <mliska@suse.cz>
19500 * toplev.c (output_stack_usage): With LTO and sanitizer it
19501 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
19502 has no file location.
19504 2019-05-16 Jakub Jelinek <jakub@redhat.com>
19507 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
19508 sz0 is equal to sz1, instead return false in that case.
19510 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
19511 has non-constant expression, force sctx.lane and use two
19512 argument IFN_GOMP_SIMD_LANE instead of single argument.
19513 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
19514 two argument IFN_GOMP_SIMD_LANE without lhs.
19515 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
19517 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
19519 (LOOP_REQUIRES_VERSIONING): Or in
19520 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
19521 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19523 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
19524 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
19525 from simd if clause if needed.
19527 2019-05-16 Richard Biener <rguenther@suse.de>
19529 * tree-affine.c (expr_to_aff_combination): New function split
19531 (tree_to_aff_combination): ... here.
19532 (aff_combination_expand): Avoid building a GENERIC tree.
19534 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
19536 * cgraphunit.c (cgraph_node::expand_thunk): Remove
19537 assemble_start_function and assemble_end_function calls.
19538 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
19539 assemble_start_function and assemble_end_function.
19540 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
19541 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
19542 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
19543 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
19544 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
19545 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
19546 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
19547 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
19548 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
19549 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19550 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19551 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
19553 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
19554 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
19555 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
19556 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
19557 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
19558 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
19559 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
19560 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
19561 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
19562 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19563 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
19564 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19565 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
19566 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
19568 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
19569 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
19570 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
19572 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
19574 * tree-ssa-alias.c (alias_stats): Add
19575 aliasing_component_refs_p_may_alias and
19576 aliasing_component_refs_p_no_alias.
19577 (dump_alias_stats): Print aliasing_component_refs_p stats.
19578 (aliasing_component_refs_p): Update stats.
19580 2019-05-16 Martin Liska <mliska@suse.cz>
19583 * multiple_target.c (expand_target_clones): Do not allow
19584 target_clones being used with a symbol that is an alias.
19586 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
19588 PR tree-optimization/90394
19589 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
19590 positives rather than ICE for cases where (code2 == NE_EXPR
19591 && code1 == BIT_AND_EXPR).
19593 2019-05-16 Jakub Jelinek <jakub@redhat.com>
19596 * tree-core.h (struct tree_decl_common): Document
19597 decl_nonshareable_flag for PARM_DECLs.
19598 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
19599 * calls.c (expand_call): Don't try tail call if caller
19600 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
19601 passed on the stack and callee needs to pass any arguments on the
19603 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19604 else if instead of series of mutually exclusive ifs. Handle
19605 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
19606 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19608 * lto-streamer.h (LTO_major_version): Bump to 9.
19610 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
19612 PR tree-optimization/90106
19613 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
19614 new parameter as new internal function call, also move it to new
19616 (use_internal_fn): Pass internal function call to
19617 shrink_wrap_one_built_in_call_with_conds.
19619 2019-05-15 Jakub Jelinek <jakub@redhat.com>
19621 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
19623 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
19624 safelen_int and set loop->dont_vectorize.
19626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19629 * config/i386/i386-builtin.def: Enable MMX intrinsics with
19631 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
19633 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
19634 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
19635 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
19638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19641 * config/i386/mmx.md (*vec_dupv2sf): Changed to
19642 define_insn_and_split to support SSE emulation.
19643 (*vec_extractv2sf_0): Likewise.
19644 (*vec_extractv2sf_1): Likewise.
19645 (*vec_extractv2si_0): Likewise.
19646 (*vec_extractv2si_1): Likewise.
19647 (*vec_extractv2si_zext_mem): Likewise.
19648 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
19649 (vec_extractv2sf_1 splitter): Likewise.
19650 (vec_extractv2sfsf): Likewise.
19651 (vec_setv2si): Likewise.
19652 (vec_extractv2si_1 splitter): Likewise.
19653 (vec_extractv2sisi): Likewise.
19654 (vec_setv4hi): Likewise.
19655 (vec_extractv4hihi): Likewise.
19656 (vec_setv8qi): Likewise.
19657 (vec_extractv8qiqi): Likewise.
19658 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
19659 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
19660 (vec_extractv2sisi): Likewise.
19661 (vec_extractv4hihi): Likewise.
19662 (vec_extractv8qiqi): Likewise.
19663 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
19664 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
19665 (vec_initv2sisi): Likewise.
19666 (vec_initv4hihi): Likewise.
19667 (vec_initv8qiqi): Likewise.
19668 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
19669 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
19670 (vec_setv4hi): Likewise.
19671 (vec_setv8qi): Likewise.
19673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19676 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
19677 TARGET_MMX_WITH_SSE.
19678 (MMXMODE:*mov<mode>_internal): Likewise.
19679 (MMXMODE:movmisalign<mode>): Likewise.
19681 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
19684 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
19685 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
19686 (sse2_cvtpd2pi): Ditto.
19687 (sse2_cvttpd2pi): Ditto.
19688 (*vec_concatv2sf_sse4_1): Ditto.
19689 (*vec_concatv2sf_sse): Ditto.
19690 (*vec_concatv2si_sse4_1): Ditto.
19691 (*vec_concatv2si): Ditto.
19692 (*vec_concatv4si_0): Ditto.
19693 (*vec_concatv2di_0): Ditto.
19695 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19698 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
19700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19703 * config/i386/sse.md (ssse3_palignrdi): Changed to
19704 define_insn_and_split to support SSE emulation.
19706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19709 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
19711 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19714 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
19715 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19721 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
19722 or TARGET_MMX_WITH_SSE.
19723 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
19725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19728 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
19730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19733 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
19734 Changed to define_insn_and_split to support SSE emulation.
19736 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19739 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
19740 Changed to define_insn_and_split to support SSE emulation.
19742 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19745 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
19746 (*mmx_<emms>): This.
19747 (mmx_<emms>): New expander.
19749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19752 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
19754 (*sse2_umulv1siv1di3): Add SSE2 emulation.
19756 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19759 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
19761 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19764 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
19766 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19769 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
19770 TARGET_MMX_WITH_SSE.
19771 (*mmx_uavgv4hi3): Add SSE emulation.
19773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19776 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
19777 and TARGET_MMX_WITH_SSE.
19778 (*mmx_uavgv8qi3): Add SSE emulation.
19780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19783 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
19784 maskmovdqu for __MMX_WITH_SSE__.
19786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19789 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
19790 TARGET_MMX and TARGET_MMX_WITH_SSE.
19791 (*mmx_umulv4hi3_highpart): Add SSE emulation.
19793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19796 * config/i386/mmx.md (mmx_pmovmskb): Changed to
19797 define_insn_and_split to support SSE emulation.
19799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19802 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
19803 and TARGET_MMX_WITH_SSE.
19804 (mmx_<code>v8qi3): Likewise.
19805 (smaxmin:<code>v4hi3): New.
19806 (umaxmin:<code>v8qi3): Likewise.
19807 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
19808 (umaxmin:*mmx_<code>v8qi3): Likewise.
19810 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19813 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
19814 TARGET_MMX_WITH_SSE.
19815 (*mmx_pinsrw): Add SSE emulation.
19817 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19820 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
19822 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19825 * config/i386/sse.md (sse_cvtpi2ps): Changed to
19826 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19832 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
19833 (sse_cvttps2pi): Likewise.
19835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19838 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
19839 TARGET_MMX_WITH_SSE.
19840 (mmx_pshufw_1): Add SSE emulation.
19841 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
19842 TARGET_MMX_WITH_SSE to support SSE emulation.
19844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19847 * config/i386/constraints.md (Yw): New constraint.
19848 * config/i386/mmx.md (*vec_dupv2si): Changed to
19849 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
19850 support SSE emulation.
19852 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19855 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
19856 TARGET_MMX_WITH_SSE.
19857 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19859 (mmx_gt<mode>3): Likewise.
19861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19864 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
19865 TARGET_MMX_WITH_SSE. Add SSE support.
19867 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19870 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
19871 TARGET_MMX_WITH_SSE.
19872 (any_logic:<code><mode>3): New.
19873 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
19876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19879 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
19880 TARGET_MMX_WITH_SSE. Add SSE emulation.
19881 (mmx_<shift_insn><mode>3): Likewise.
19882 (ashr<mode>3): New.
19883 (<shift_insn><mode>3): Likewise.
19885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19888 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
19889 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
19891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19894 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
19895 TARGET_MMX_WITH_SSE.
19896 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
19899 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19902 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
19903 TARGET_MMX_WITH_SSE.
19905 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19911 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19912 (plusminus:mmx_<plusminus_insn><mode>3): Check
19913 TARGET_MMX_WITH_SSE.
19914 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19915 (<plusminus_insn><mode>3): New.
19916 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19917 (*mmx_<plusminus_insn><mode>3): Likewise.
19919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19922 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19923 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19925 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19926 define_insn_and_split to support SSE emulation.
19927 (mmx_punpcklbw): Likewise.
19928 (mmx_punpckhwd): Likewise.
19929 (mmx_punpcklwd): Likewise.
19930 (mmx_punpckhdq): Likewise.
19931 (mmx_punpckldq): Likewise.
19933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19934 Uros Bizjak <ubizjak@gmail.com>
19937 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19939 (ix86_split_mmx_pack): Likewise.
19940 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19942 (ix86_split_mmx_pack): Likewise.
19943 * config/i386/i386.md (mmx_isa): New.
19944 (enabled): Also check mmx_isa.
19945 * config/i386/mmx.md (any_s_truncate): New code iterator.
19946 (s_trunsuffix): New code attr.
19947 (mmx_packsswb): Removed.
19948 (mmx_packssdw): Likewise.
19949 (mmx_packuswb): Likewise.
19950 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19951 MMX packsswb/packuswb with SSE2.
19952 (mmx_packssdw): Likewise.
19953 * config/i386/predicates.md (register_mmxmem_operand): New.
19955 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19958 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19959 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19960 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19961 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19962 (ix86_vector_mode_supported_p): Likewise.
19963 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19965 2019-05-15 Martin Liska <mliska@suse.cz>
19967 PR middle-end/90478
19968 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19969 Check for overflow.
19971 2019-05-15 Richard Biener <rguenther@suse.de>
19973 * tree-into-ssa.c (pass_build_ssa::execute): Run
19974 update_address_taken before going into SSA.
19976 2019-05-15 Richard Biener <rguenther@suse.de>
19978 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19979 as __BIT_FIELD_REF with type with -gimple.
19981 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19983 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19984 semantically equivalent branches (left over after prior refactorings).
19986 2019-05-15 Richard Biener <rguenther@suse.de>
19988 PR tree-optimization/88828
19989 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19992 2019-05-14 Richard Biener <rguenther@suse.de>
19994 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19995 as __VIEW_CONVERT with -gimple.
19997 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
20000 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
20003 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
20005 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
20006 define_split to become a define_insn_and_split.
20008 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
20010 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
20012 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
20013 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
20014 (sibcall_epilogue): Adjust.
20015 (epilogue): Adjust.
20017 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20019 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
20020 to unsupported ones.
20021 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
20022 * config.host: Likewise.
20023 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
20024 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
20025 __svr4__]: Remove "brand" fallback.
20026 [!KSTAT_DATA_STRING]: Remove.
20027 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
20029 (comdat_group): Likewise.
20030 (set_have_as_tls): Likewise.
20031 (gcc_cv_target_dl_iterate_phdr): Likewise.
20032 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
20033 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
20034 * configure: Regenerate.
20035 * doc/install.texi: Simplify Solaris target triplets.
20036 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
20037 (Specific, *-*-solaris2*): Document Solaris 10 removal.
20038 Remove Solaris 10 references.
20039 Remove obsolete Solaris bug reference.
20040 (Specific, sparc-sun-solaris2.10): Remove.
20042 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
20044 * config/i386/i386.md (any_div): New code iterator.
20045 (paired_mod): New code attribute.
20046 (sgnprefix): Handle DIV and UDIV RTXes.
20048 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
20049 and udivmod<mode>4 patterns using any_div code iterator.
20050 (divmod splitters): Macroize splitters using any_div code iterator.
20051 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
20052 (*udivmodsi4_pow2_zext_2): Ditto.
20053 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
20054 and *udivmod<mode>4_noext patterns using any_div code iterator.
20055 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
20056 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
20057 patterns using any_div code iterator.
20058 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
20059 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
20060 patterns using any_div code iterator.
20061 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
20062 udivmodhiqi3 patterns using any_extend code iterator.
20064 2019-05-14 Richard Biener <rguenther@suse.de>
20065 H.J. Lu <hongjiu.lu@intel.com>
20067 PR tree-optimization/88828
20068 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
20069 permuting in a single non-constant element not extracted
20072 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
20074 * internal-fn.def (SIGNBIT): New.
20075 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
20077 (signbitv4sf2): Likewise.
20079 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
20082 * config/mips/mips.c (mips_split_move): Skip forward SRC into
20083 next insn when the SRC reg is dead.
20085 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
20087 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
20088 (alloc_cand_and_find_basis): Ditto.
20089 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
20090 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
20091 (create_add_imm_cand, slsr_process_cast): Ditto.
20092 (slsr_process_copy, replace_mult_candidate): Ditto.
20093 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
20094 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
20095 (pass_strength_reduction::execute): Init the first NULL element.
20097 2019-05-13 Nathan Sidwell <nathan@acm.org>
20099 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
20100 (run_attempt): Reformat line break.
20102 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
20105 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
20106 data registers in sibcall epilogues.
20107 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
20109 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
20112 * configure.ac (--enable-frame-pointer):
20113 Disable by default for cygwin and mingw.
20114 * configure: Regenerate.
20116 2019-05-13 Nathan Sidwell <nathan@acm.org>
20118 * dwarf2out.c (breakout_comdat_types): Move comment to correct
20120 (const_ok_for_output_1): Balance parens around #if/#else/#endif
20121 (gen_member_die): Move abstract origin check earlier. Only VARs
20122 can be static_inline_p. Simplify splicing control flow.
20124 2019-05-13 Richard Biener <rguenther@suse.de>
20126 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
20128 (vect_build_slp_tree_1): Likewise.
20130 2019-05-13 Richard Biener <rguenther@suse.de>
20132 PR tree-optimization/90402
20133 * tree-if-conv.c (tree_if_conversion): Value number only
20134 the loop body by making the latch an exit of the region
20136 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
20138 (do_rpo_vn): Deal with multiple edges into the entry block
20139 that are not backedges inside the region by skipping PHIs
20140 of the entry block.
20142 2019-05-13 Richard Biener <rguenther@suse.de>
20144 PR tree-optimization/90316
20145 * tree-ssa-pre.c (insert_aux): Fold into ...
20146 (insert): ... this function. Use a RPO walk to reduce the
20147 number of required iterations.
20149 2019-05-13 Martin Liska <mliska@suse.cz>
20151 PR tree-optimization/90416
20152 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
20153 string instead of passing the second part as va_arg argument.
20155 2019-05-13 Martin Liska <mliska@suse.cz>
20157 PR gcov-profile/90380
20158 * gcov.c (handle_cycle): Do not support zero cycle count,
20159 it should not be possible.
20160 (path_contains_zero_cycle_arc): New function.
20161 (circuit): Ignore zero cycle arc counts.
20163 2019-05-13 Martin Liska <mliska@suse.cz>
20165 PR gcov-profile/90380
20166 * gcov.c (enum loop_type): Remove the enum and
20168 (handle_cycle): Assert that we should not reach
20170 (circuit): Use loop_found instead of a tri-state loop_type.
20171 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
20174 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
20177 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
20178 (ix86_output_indirect_branch_via_reg): Use output mechanism
20179 accounting for __USER_LABEL_PREFIX__.
20180 (ix86_output_indirect_branch_via_push): Likewise.
20181 (ix86_output_function_return): Likewise.
20182 (ix86_output_indirect_function_return): Likewise.
20184 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
20186 * doc/md.texi: Document use of code attributes in rtx patterns.
20187 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
20188 * read-rtl.c (find_code): Split out search loops into...
20189 (maybe_find_code): ...this new function.
20190 (check_code_iterator): Make the error message more informative.
20191 (check_code_attribute): New function.
20192 (rtx_reader::rtx_alloc_for_name): Likewise.
20193 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
20194 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
20195 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
20196 <max_opp> directly as an rtx code instead of via a match_operator.
20197 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
20198 (<su>abd<mode>_3): Update accordingly.
20200 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
20202 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
20203 is given, print the state of the EH "save world" computation for
20206 2019-05-11 Jakub Jelinek <jakub@redhat.com>
20209 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
20210 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
20212 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
20214 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
20215 Use pinsrd for TARGET_SSE4_1.
20216 * config/i386/sse.md (movdi_to_sse): Ditto.
20218 2019-05-10 Richard Biener <rguenther@suse.de>
20220 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
20221 (do_rpo_vn): Initialize next_value_id.
20223 2019-05-10 Martin Liska <mliska@suse.cz>
20225 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
20228 2019-05-10 Jakub Jelinek <jakub@redhat.com>
20230 PR tree-optimization/90385
20231 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
20232 arguments of the exit phis.
20235 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
20236 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
20238 (copy_tree_body_r): Likewise.
20239 (copy_fn): Set id.do_not_fold to true.
20241 2019-05-10 Martin Liska <mliska@suse.cz>
20243 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
20244 Reapply changes from r269790.
20246 2019-05-10 Martin Liska <mliska@suse.cz>
20248 PR middle-end/90340
20249 * doc/invoke.texi: New params.
20250 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
20251 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
20252 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
20254 * tree-switch-conversion.h (struct jump_table_cluster):
20257 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
20259 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
20261 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
20263 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
20265 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
20267 PR rtl-optimization/88879
20268 * sel-sched.c (sel_target_adjust_priority): Remove assert.
20270 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
20273 * config/arm/arm.c (callee_saved_reg_p): Move before
20274 thumb_find_work_register.
20275 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
20276 thumb_find_work_register. Only call df_get_live_out once.
20277 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
20278 (thumb_find_work_register): Use
20279 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
20280 algorithms to locate a spare call clobbered reg.
20282 2019-05-09 Martin Liska <mliska@suse.cz>
20284 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
20285 and MAX_EXPR in GIMPLE FE format.
20287 2019-05-09 Martin Liska <mliska@suse.cz>
20289 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
20290 * gimple-pretty-print.c (dump_gimple_bb_header):
20292 (pp_cfg_jump): Dump edge probability.
20293 * profile-count.c (profile_quality_as_string): Simplify
20294 with a static array.
20295 (parse_profile_quality): New function.
20296 (profile_count::dump): Simplify with a static array.
20297 (profile_count::from_gcov_type): Add new argument.
20298 * profile-count.h (parse_profile_quality): Likewise.
20299 * predict.h (set_hot_bb_threshold): New.
20300 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
20302 * predict.c (get_hot_bb_threshold): Set from the new param.
20303 (set_hot_bb_threshold): New.
20305 2019-05-09 Richard Biener <rguenther@suse.de>
20307 PR tree-optimization/90395
20308 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
20309 rewrite vector stores that throw internally.
20311 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
20313 * cif-code.def (CHKP): Remove.
20316 * configure.ac (--enable-frame-pointer): Disable by default for
20318 * configure: Regenerate.
20320 2019-05-09 Alan Modra <amodra@gmail.com>
20323 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
20324 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
20325 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
20326 cost for general <-> vsx when direct moves are available.
20327 Cost union classes at minimal cost for any reg in the class.
20328 Correct calculation for moves between vsx, float, and altivec.
20329 Don't return a low cost for moves between special regs. Don't
20330 use hard coded register numbers.
20331 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
20332 (rs6000_ira_change_pseudo_allocno_class): New function.
20333 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
20334 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
20336 (movsi_internal1): Don't disparage vector alternatives.
20337 (mov<mode>_internal): Likewise, excepting alternative that
20339 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
20340 we <- b alternative.
20342 2019-05-08 Jakub Jelinek <jakub@redhat.com>
20345 PR tree-optimization/89060
20346 * tree-ssa-live.h (live_vars_map): New typedef.
20347 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
20348 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
20349 (struct compute_live_vars_data): New type.
20350 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
20351 live_vars_at_stmt, destroy_live_vars): New functions.
20352 * tree-tailcall.c: Include tree-ssa-live.h.
20353 (live_vars, live_vars_vec): New global variables.
20354 (find_tail_calls): Perform variable life analysis before punting.
20355 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
20356 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
20358 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
20359 Perform variable life analysis to select variables that really need
20361 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
20362 instead set id->eh_landing_pad_dest and assert it is the same.
20363 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
20365 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
20366 Richard Earnshaw <rearnsha@arm.com>
20369 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
20371 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
20372 (thumb1_compute_save_core_reg_mask): Don't force a spare work
20373 register if both the epilogue and prologue can use call-clobbered
20375 (thumb1_unexpanded_epilogue): Use
20376 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
20377 picking temporaries for restoring high regs to match that of the
20378 prologue where possible.
20379 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
20380 the list of work registers. Detect if the return address is still live
20381 at the end of the prologue and avoid using it for a work register if so.
20382 If the return address is not live, add LR to the list of pushable regs
20383 after the first pass.
20385 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
20387 PR tree-optimization/90078
20388 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
20389 (INFTY): Increase the value for infinite cost.
20390 (struct comp_cost): Promote type of members to int64_t.
20391 (infinite_cost): Don't set complexity in initialization.
20392 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
20393 overflows to infinite_cost.
20394 (adjust_setup_cost): Promote type of parameter and cost computation
20396 (struct ainc_cost_data, struct iv_ca): Promote type of member to
20398 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
20399 cost computation to int64_t.
20400 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
20401 int64_t's format specifier in dump.
20403 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
20405 PR tree-optimization/90240
20406 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
20407 with respect to scaling factor pre-computed for each basic block.
20408 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
20409 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
20410 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
20411 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
20412 live range for array of loop's basic blocks. Cleanup aux field of
20413 loop's basic blocks.
20415 2019-05-08 Jakub Jelinek <jakub@redhat.com>
20417 PR tree-optimization/90356
20418 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
20420 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
20422 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
20423 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
20424 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
20425 (ix86_handle_option): Handle -mavx512bf16.
20426 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
20428 * config/i386/avx512bf16vlintrin.h: New.
20429 * config/i386/avx512bf16intrin.h: New.
20430 * config/i386/cpuid.h (bit_AVX512BF16): New.
20431 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
20432 * config/i386/i386-builtin-types.def: Add new types.
20433 * config/i386/i386-builtin.def: Add new builtins.
20434 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20436 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
20437 (ix86_option_override_internal): Handle BF16.
20438 (ix86_valid_target_attribute_inner_p): Ditto.
20439 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
20440 * config/i386/i386-builtin.c (enum processor_features): Add
20442 (static const _isa_names_table isa_names_table): Ditto.
20443 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
20444 (PTA_AVX512BF16): Ditto.
20445 * config/i386/i386.opt: Add -mavx512bf16.
20446 * config/i386/immintrin.h: Include avx512bf16intrin.h
20447 and avx512bf16vlintrin.h.
20448 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
20449 avx512f_cvtneps2bf16_<mode><mask_name>,
20450 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
20451 * config/i386/subst.md (mask_half): Add new subst.
20452 * doc/invoke.texi: Document -mavx512bf16.
20454 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20456 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
20457 Delete declaration.
20458 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
20459 (rs6000_debug_legitimize_reload_address): Delete.
20460 (rs6000_legitimize_reload_address_ptr): Delete.
20461 (rs6000_option_override_internal): Adjust.
20462 (mem_operand_gpr): Adjust comment.
20463 (legitimate_lo_sum_address_p): Ditto.
20464 (rs6000_legitimize_reload_address): Delete.
20465 (rs6000_debug_legitimize_reload_address): Delete.
20466 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
20468 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
20471 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20472 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
20473 to compute vector element selector for both constant and variable
20476 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
20478 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
20479 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
20480 ashrdi3_cvt using SWI48 mode iterator.
20482 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20484 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
20485 (aarch64_<su>abd<mode>_3): Likewise.
20486 (*aarch64_<su>abd<mode>_3): New define_insn.
20487 (<sur>sad<vsi2qi>): New define_expand.
20488 * config/aarch64/iterators.md: Added MAX_OPP attribute.
20489 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
20490 (build_vect_cond_expr): Likewise.
20492 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
20494 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
20495 clobbers outside of accessible_reg_set.
20496 * config/i386/i386.c (ix86_conditional_register_usage):
20497 Disable register sets by clearing corresponding bits in
20498 accessible_reg_set. Do not set corresponding bits in fixed_regs,
20499 call_used_regs and don't clear corresponding reg_names array members.
20501 2019-05-07 Richard Biener <rguenther@suse.de>
20503 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
20504 not specified still compute a comp_vectype for invariant
20507 2019-05-07 Richard Biener <rguenther@suse.de>
20509 PR tree-optimization/90316
20510 * tree-ssa-pre.c (translate_vuse_through_block): When
20511 same_valid is NULL do not bother to search for a virtual
20513 (phi_translate_1): When operands changed we cannot keep
20514 the same value-number so do not bother to ask whether
20515 that's possible from translate_vuse_through_block.
20517 2019-05-07 Martin Liska <mliska@suse.cz>
20519 * bitmap.c (bitmap_register): Come up with
20520 alloc_descriptor_max_uid and assign it for
20522 (register_overhead): Use get_descriptor as
20524 (release_overhead): New.
20525 (bitmap_elem_to_freelist): Call it.
20526 (bitmap_elt_clear_from): Likewise.
20527 (bitmap_obstack_free): Likewise.
20528 (bitmap_move): Sensitively release memory.
20529 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
20530 (bitmap_initialize): Initialize alloc_descriptor to zero.
20531 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
20533 2019-05-07 Richard Biener <rguenther@suse.de>
20535 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
20536 we build a SLP node. Remove max_size and limiting.
20537 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
20539 2019-05-07 Richard Biener <rguenther@suse.de>
20541 PR tree-optimization/90316
20542 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
20543 limit by reference.
20544 (walk_non_aliased_vuses): Take walking limit argument.
20545 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
20546 walking if it is reached instead of just counting.
20547 (get_continuation_for_phi): Likewise.
20548 (walk_non_aliased_vuses): Likewise, instead of leaving counter
20549 limiting to the callback.
20550 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
20551 (vn_reference_lookup_3): Likewise.
20552 (vn_reference_lookup_pieces): Likewise.
20553 (vn_reference_lookup): Likewise.
20554 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
20555 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
20556 (avail_exprs_stack::lookup_avail_expr): Likewise.
20558 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
20560 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
20561 for comparaible types in the second direction even if first one
20562 hits incomparable type.
20564 2019-05-07 Richard Biener <rguenther@suse.de>
20567 * lto-wrapper.c (debug_objcopy): Use the original filename
20568 including archive offset for the filename used for -save-temps.
20570 2019-05-07 Li Jia He <helijia@linux.ibm.com>
20572 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
20575 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
20576 Hongtao Liu <hongtao.liu@intel.com>
20580 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
20581 Modified, original implementation isn't correct.
20583 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20585 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
20586 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
20587 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
20588 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
20589 (FRAME_POINTER_REGNUM): Change numbering.
20590 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
20591 (alt_reg_names): Adjust.
20592 (rs6000_conditional_register_usage): Don't mark hard register 64 as
20594 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
20595 (DWARF_FRAME_REGISTERS): Delete.
20596 (DWARF2_FRAME_REG_OUT): Fix whitespace.
20597 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
20599 (REG_ALLOC_ORDER): Adjust.
20600 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
20601 (REG_CLASS_CONTENTS): Adjust.
20602 (RETURN_ADDR_RTX): Change comment.
20603 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
20605 (REGISTER_NAMES): Adjust.
20606 (ADDITIONAL_REGISTER_NAMES): Adjust.
20607 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
20609 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20611 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
20613 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
20614 (DWARF_FRAME_REGISTERS): Adjust.
20615 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
20617 (REG_ALLOC_ORDER): Adjust.
20618 (enum reg_class): Delete SPR_REGS.
20619 (REG_CLASS_NAMES): Delete SPR_REGS.
20620 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
20621 (REGISTER_NAMES): Adjust.
20622 (ADDITIONAL_REGISTER_NAMES): Adjust.
20623 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
20624 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
20625 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
20626 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
20627 (htm_spr_regno): Delete.
20628 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
20630 (rs6000_dbx_register_number): Adjust.
20632 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20634 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
20636 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20638 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
20639 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
20641 2019-05-06 Jakub Jelinek <jakub@redhat.com>
20643 PR tree-optimization/88709
20644 PR tree-optimization/90271
20645 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
20646 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
20647 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
20649 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
20650 of the store merging group is larger than
20651 PARAM_STORE_MERGING_MAX_SIZE parameter.
20652 (split_group): Add bzero_first argument. If set, always emit first
20653 the first store which must be = {} of the whole area and then for the
20654 rest of the stores consider all zero bytes as paddings.
20655 (imm_store_chain_info::output_merged_store): Check if first store
20656 is = {} of the whole area and if yes, determine which setting of
20657 bzero_first for split_group gives smaller number of stores. Adjust
20658 split_group callers.
20659 (lhs_valid_for_store_merging_p): Allow decls.
20660 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
20662 (pass_store_merging::process_store): Likewise.
20664 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
20667 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20668 handling of V1TImode.
20670 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
20673 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
20674 and enable_frame_pointer ...
20675 * configure.ac: ... here. Update help strings for
20676 --enable-frame-pointer.
20677 * configure: Regenerate.
20678 * config/i386/i386-options.c (ix86_option_override_internal): Remove
20679 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
20680 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
20681 (USE_X86_64_FRAME_POINTER): Ditto.
20683 2019-05-06 Martin Liska <mliska@suse.cz>
20685 * config.gcc: Append to target_gtfiles and fix indentation.
20687 2019-05-06 Richard Biener <rguenther@suse.de>
20689 PR tree-optimization/90358
20690 * tree-vect-stmts.c (get_group_load_store_type): Properly
20691 detect unused upper half of load.
20692 (vectorizable_load): Likewise.
20694 2019-05-06 Richard Biener <rguenther@suse.de>
20696 PR tree-optimization/88828
20697 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
20698 (simplify_vector_constructor): ...here. Handle constants in
20701 2019-05-06 Richard Biener <rguenther@suse.de>
20703 PR tree-optimization/90328
20704 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
20705 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
20706 is valid in the loop nest before using it.
20707 (initialize_data_dependence_relation): Adjust.
20708 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
20709 loop as loop-nest to dr_may_alias_p.
20711 2019-05-06 Richard Biener <rguenther@suse.de>
20713 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
20715 2019-05-06 Richard Biener <rguenther@suse.de>
20717 PR tree-optimization/90316
20718 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
20719 compute target on demand.
20720 (get_continuation_for_phi): Remove code walking stmts to
20721 get to a target virtual operand which could end up being
20724 2019-05-06 Martin Liska <mliska@suse.cz>
20727 * config/i386/i386-options.c (ix86_option_override_internal): Error only
20728 when -mabi is selected to a non-default version.
20730 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
20731 Martin Liska <mliska@suse.cz>
20733 * Makefile.in: Add lto-dump.texi.
20734 * cgraph.h: Add new functions get_visibility_string and
20735 get_symtab_type_string.
20736 * doc/gcc.texi: Include lto-dump section.
20737 * doc/lto-dump.texi: New file.
20738 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
20739 (parse_dump_option): Factor out this function.
20740 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
20741 (parse_dump_option): Export the function.
20742 * symtab.c (symtab_node::get_visibility_string): New function.
20743 (symtab_node::get_symtab_type_string): Likewise.
20745 2019-05-06 Martin Liska <mliska@suse.cz>
20747 * config/i386/i386-builtins.c: New file.
20748 * config/i386/i386-builtins.h: New file.
20749 * config/i386/i386-expand.c: New file.
20750 * config/i386/i386-expand.h: New file.
20751 * config/i386/i386-features.c: New file.
20752 * config/i386/i386-features.h: New file.
20753 * config/i386/i386-options.c: New file.
20754 * config/i386/i386-options.h: New file.
20755 * config.gcc: Add new files into extra_objs and
20757 * config/i386/i386.c: Split content of the file
20758 into newly introduced files.
20759 * config/i386/i386.h: Declare common variables
20761 * config/i386/t-i386: Define dependencies for new files.
20763 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
20766 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
20767 Restrict 'all' variant to 32-bit configurations.
20768 (unaligned_loadhiu): Likewise.
20769 (unaligned_storehi): Likewise.
20770 (unaligned_storesi): Likewise.
20771 (unaligned_loadhis): Disable when compiling for thumb1.
20773 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
20775 PR tree-optimization/90269
20776 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
20779 2019-05-03 Martin Liska <mliska@suse.cz>
20781 * hash-map.h: Add is_empty function.
20782 * hash-set.h: Likewise.
20783 * hash-table.h: Likewise.
20784 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
20785 elements () == 0 (and similar usages).
20786 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
20787 * gimplify.c (gimplify_bind_expr): Likewise.
20788 (gimplify_switch_expr): Likewise.
20789 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
20790 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
20791 * postreload-gcse.c (dump_hash_table): Likewise.
20792 (gcse_after_reload_main): Likewise.
20793 * predict.c (combine_predictions_for_bb): Likewise.
20794 * tree-parloops.c (reduction_phi): Likewise.
20795 (separate_decls_in_region): Likewise.
20796 (transform_to_exit_first_loop): Likewise.
20797 (gen_parallel_loop): Likewise.
20798 (gather_scalar_reductions): Likewise.
20799 (try_create_reduction_list): Likewise.
20800 * var-tracking.c (dump_vars): Likewise.
20801 (emit_notes_for_changes): Likewise.
20802 (vt_emit_notes): Likewise.
20804 2019-05-03 Richard Biener <rguenther@suse.de>
20806 PR tree-optimization/90316
20807 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
20810 2019-05-03 Richard Biener <rguenther@suse.de>
20812 * tree-vect-stmts.c (get_group_load_store_type): Avoid
20813 peeling for gaps by loading only lower halves of vectors
20815 (vectorizable_load): Likewise.
20817 2019-05-03 Richard Biener <rguenther@suse.de>
20819 PR middle-end/89518
20820 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
20822 2019-05-03 Richard Biener <rguenther@suse.de>
20824 PR middle-end/87314
20825 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
20826 Handle STRING_CST vs DECL or STRING_CST.
20828 2019-05-03 Richard Biener <rguenther@suse.de>
20830 PR tree-optimization/88963
20831 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
20832 vector loads feeding only BIT_FIELD_REFs to component
20833 loads. Rewrite stores fed by CONSTRUCTORs to component
20836 2019-05-03 Jakub Jelinek <jakub@redhat.com>
20838 * opts.h (finish_options): Remove lang_mask argument.
20839 (print_help, help_option_argument): Declare.
20840 * opts.c (print_help): Remove forward declaration, no longer static.
20841 (finish_options): Remove lang_mask argument, don't call print_help
20843 * opts-global.c (decode_options): Adjust finish_option caller, call
20846 PR tree-optimization/90303
20847 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
20848 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
20850 2019-05-03 Richard Biener <rguenther@suse.de>
20852 PR tree-optimization/89698
20853 * gimple-fold.c (canonicalize_constructor_val): Early out
20854 for constants, handle unfolded INTEGER_CSTs as they appear in
20855 C++ virtual table ctors.
20857 2019-05-03 Richard Biener <rguenther@suse.de>
20859 * passes.c (execute_function_todo): Remove dead code.
20861 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20863 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
20864 the internal register number, for any "real" register.
20866 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20868 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
20869 correct numbers for TFHAR, TFIAR, TEXASR.
20871 2019-05-02 Richard Biener <rguenther@suse.de>
20873 PR tree-optimization/89653
20874 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
20875 update-address-taken before the pass.
20876 * passes.def (pass_tree_loop_init): Put comment before it.
20878 2019-05-02 Richard Biener <rguenther@suse.de>
20880 PR tree-optimization/89509
20881 * tree-ssa-structalias.c (compute_dependence_clique): Look
20882 at the first subvar when determining whether it is restrict.
20884 2019-05-02 Richard Biener <rguenther@suse.de>
20886 PR tree-optimization/90273
20887 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
20888 useless debug stmts.
20890 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20892 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
20894 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
20896 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
20897 VEC_COND_EXPR be inserted to emulate a conditional internal function.
20898 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
20899 (vectorizable_reduction): Use the functions above to vectorize in a
20900 fully masked loop codes that don't have a conditional internal
20903 2019-05-02 Martin Liska <mliska@suse.cz>
20905 * cgraphclones.c: Call valid_attribute_p with 1 for
20907 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20908 it's for target attribute.
20909 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20910 Add new boolean argument.
20911 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20913 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20914 to ix86_valid_target_attribute_inner_p.
20915 (ix86_valid_target_attribute_p): Pass flags argument to
20916 ix86_valid_target_attribute_inner_p.
20917 (get_builtin_code_for_version): Use 0 as it's target attribute.
20919 2019-05-02 Martin Liska <mliska@suse.cz>
20921 * gcc.c (process_command): Add dummy file only
20923 * opts-global.c (decode_options): Pass lang_mask.
20924 * opts.c (print_help): New function.
20925 (finish_options): Print --help if help_option_argument
20927 (common_handle_option): Factor out content of OPT__help_
20929 * opts.h (finish_options): Add new argument.
20931 2019-05-02 Martin Liska <mliska@suse.cz>
20934 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20935 With -minline-all-stringops use inline expansion using 4B loop.
20936 * doc/invoke.texi: Document the change of
20937 -minline-all-stringops.
20939 2019-05-01 Jeff Law <law@redhat.com>
20941 PR tree-optimization/88797
20942 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20943 PHI feeds a conditional on the RHS of an assignment.
20945 2019-04-30 Andrew Waterman <andrew@sifive.com>
20946 Jim Wilson <jimw@sifive.com>
20948 * config/riscv/constraints.md (L): New.
20949 * config/riscv/predicates.md (lui_operand): New.
20950 (sfb_alu_operand): New.
20951 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20952 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20953 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20954 * config/riscv/risc.md (type): Add sfb_alu.
20955 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20956 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20957 (branch_zero<mode>): Delete.
20958 (mov<mode>cc): New.
20959 (mov<GPR:mode><X:mode>cc): Likewise.
20960 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20962 2019-04-30 Nathan Sidwell <nathan@acm.org>
20964 * tree.h (MARK_TS_EXP): New.
20966 2019-04-30 Martin Liska <mliska@suse.cz>
20968 * opts.c (enable_warning_as_error): Provide hints
20969 for unknown options.
20971 2019-04-30 Martin Liska <mliska@suse.cz>
20974 * doc/invoke.texi: Add missing dash for gas-locview-support
20975 and gno-as-locview-support.
20977 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20980 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20981 whitespace at the start of target attribute string.
20983 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20986 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20987 Define __ARM_FEATURE_ATOMICS.
20989 2019-04-30 Martin Liska <mliska@suse.cz>
20991 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20992 into built_in_function enum. Remove code for endp == 2 and
20993 use BUILT_IN_* constants.
20994 (gimple_fold_builtin): Call the function with fcode.
20996 2019-04-30 Martin Liska <mliska@suse.cz>
20998 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20999 DECL_FUNCTION_CODE into ix86_builtins enum before
21000 the switch statement.
21002 2019-04-30 Jakub Jelinek <jakub@redhat.com>
21004 PR tree-optimization/89475
21005 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
21008 2019-04-30 Martin Liska <mliska@suse.cz>
21010 PR translation/90274
21011 * opts.c (print_filtered_help): Wrap string in _(...).
21013 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
21015 PR tree-optimization/90240
21017 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
21019 PR tree-optimization/90078
21020 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
21021 checks for infinite_cost overflow.
21023 2019-04-29 Jeff Law <law@redhat.com>
21025 * passes.def: Move -Wrestrict pass after copy propagation.
21027 2019-04-29 Maya Rashish <coypu@sdf.org>
21029 * config.gcc (default_gnu_indirect_function): Default to yes
21030 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
21031 sparc*-*-netbsd*, x86_64-*-netbsd*.
21033 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
21035 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
21036 where cond2 is NE_EXPR.
21037 (is_value_included_in): Update comment.
21039 2019-04-29 Richard Biener <rguenther@suse.de>
21041 PR tree-optimization/90278
21042 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
21043 EH on comparison simplification.
21045 2019-04-29 Jason Merrill <jason@redhat.com>
21047 PR c++/82081 - tail call optimization breaks noexcept
21048 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
21049 nothrow function to a might-throw function into a tail call.
21051 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
21053 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
21054 (DDR_INNER_LOOP): Likewise.
21055 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
21056 (initialize_data_dependence_relation): Likewise.
21057 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
21059 2019-04-29 Jakub Jelinek <jakub@redhat.com>
21061 PR rtl-optimization/90257
21062 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
21066 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
21070 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
21073 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
21076 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
21078 * lra-spills.c (lra_final_code_change): Remove useless move insns.
21080 2019-04-29 Richard Biener <rguenther@suse.de>
21082 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
21085 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
21087 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
21088 varasm.h, and netbsd-protos.h.
21090 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
21093 * config/i386/i386-protos.h (ix86_data_alignment): Change
21094 the second argument type to unsigned int.
21095 * config/i386/i386.c (ix86_data_alignment): Change "align"
21096 argument type to unsigned int.
21098 2019-04-27 Martin Liska <mliska@suse.cz>
21100 PR middle-end/90258
21101 * opt-suggestions.c (option_proposer::build_option_suggestions):
21102 When get_valid_option_values returns empty values, add the
21103 misspelling candidate.
21105 2019-04-26 Jim Wilson <jimw@sifive.com>
21107 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
21109 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
21110 Pass orig_mode to riscv_build_integer.
21111 (riscv_split_integer): Pass mode to riscv_move_integer.
21112 (riscv_legitimize_const_move): Likewise.
21113 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
21114 promoted_mode. Replace force_reg call with code to load constant into
21115 promoted reg and then subreg it for the store.
21116 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
21117 riscv_move_integer.
21119 2018-04-26 Eugene Sharygin <eush@ispras.ru>
21121 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
21124 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
21126 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
21127 commentary about the encoding of precision.
21129 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
21131 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
21132 * config/i386/t-freebsd64: New file.
21133 * config.gcc: Add the t-freebsd64 for multilib support.
21135 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
21137 * doc/extend.texi (vector_size): Add missing comma after @xref.
21139 2019-04-25 Jakub Jelinek <jakub@redhat.com>
21141 * BASE-VER: Set to 10.0.0.
21143 2019-04-25 Richard Biener <rguenther@suse.de>
21145 PR middle-end/89765
21146 * gimplify.c (gimplify_expr): Avoid turning a lvalue
21147 VIEW_CONVERT_EXPR into one operating on an rvalue.
21149 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
21152 * config/i386/i386.c (feature_priority): Moved to file scope.
21153 (processor_features): Likewise.
21154 (processor_model): Likewise.
21155 (_arch_names_table): Likewise.
21156 (arch_names_table): Likewise.
21157 (_feature_list): Removed.
21158 (feature_list): Likewise.
21159 (_isa_names_table): Moved to file scope. Add priority.
21160 (isa_names_table): Likewise.
21161 (get_builtin_code_for_version): Replace feature_list with
21162 isa_names_table. Update error message for P_ZERO priority.
21164 2019-04-25 Richard Biener <rguenther@suse.de>
21166 * tree-pass.h (make_pass_phi_only_cprop): Remove.
21167 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
21169 2019-04-24 Jeff Law <law@redhat.com>
21171 PR tree-optimization/90037
21172 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
21173 * passes.def: Replace all instance of phi-only cprop with the
21174 lattice propagator. Move propagation pass from after erroneous
21175 path isolation to before erroneous path isolation.
21176 * tree-ssa-phionlycprop.c: Remove.
21178 2019-04-24 Richard Biener <rguenther@suse.de>
21180 PR middle-end/90213
21181 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
21182 by size and BITS_PER_UNIT on poly-wide-ints.
21184 2019-04-25 Richard Biener <rguenther@suse.de>
21186 PR middle-end/90194
21187 * match.pd: Add pattern to simplify view-conversion of an
21190 2019-04-24 Clement Chigot <clement.chigot@atos.net>
21192 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
21193 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
21194 for Go on 32 bit AIX.
21195 * config/rs6000/aix72.h: Likewise.
21197 2019-04-24 Jakub Jelinek <jakub@redhat.com>
21200 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
21201 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
21203 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
21206 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
21207 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
21208 for restored hard frame pointer.
21209 (s390_sched_dependencies_evaluation): Implement new target hook.
21210 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
21212 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
21214 * config/arc/arc-options.def: Fix typos and spelling mistakes.
21215 * config/arc/arc.c (arc_init): Cleanup warning message.
21216 (arc_override_options): Likewise.
21218 2019-04-24 Jakub Jelinek <jakub@redhat.com>
21221 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
21222 a register if both if_true and if_false are MEMs.
21224 PR tree-optimization/90208
21225 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
21226 after labels of new_bb, not before them.
21228 PR tree-optimization/90211
21229 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
21230 which are not SSA_NAMEs.
21232 2018-04-23 Sudakshina Das <sudi.das@arm.com>
21234 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
21236 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
21238 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
21240 PR rtl-optimization/87979
21241 * modulo-sched.c (sms_schedule): Start ii value "mii" should
21244 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
21246 PR rtl-optimization/84032
21247 * modulo-sched.c (ps_insn_find_column): Change condition so that
21248 branch will always be the last insn in a row inside partial
21251 2019-04-23 Richard Biener <rguenther@suse.de>
21254 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
21255 dest_single_pred_p argument.
21256 (remove_forwarder_block): Adjust.
21257 (remove_forwarder_block_with_phi): Likewise.
21259 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21260 Bernd Edlinger <bernd.edlinger@hotmail.de>
21261 Jakub Jelinek <jakub@redhat.com>
21264 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
21265 if used with general-regs-only.
21266 (arm_conditional_register_usage): Don't add non-general regs if
21268 (arm_valid_target_attribute_rec): Handle general-regs-only.
21269 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
21271 (TARGET_HARD_FLOAT_SUB): Define.
21272 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
21273 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
21274 (TARGET_REALLY_IWMMXT2): Likewise.
21275 * config/arm/arm.opt: Add -mgeneral-regs-only.
21276 * doc/extend.texi: Document ARM general-regs-only target.
21277 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
21279 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
21281 PR tree-optimization/90078
21282 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
21283 checks for infinite_cost overflow.
21285 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
21287 PR tree-optimization/90021
21288 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
21289 and check univariate against it.
21290 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
21291 * tree-data-ref.c (add_other_self_distances): Pass new argument.
21293 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
21297 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
21300 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
21303 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
21305 * lra-spills.c (lra_final_code_change): Remove useless move insns.
21307 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
21309 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
21310 names using operand format, rather than hard-wired.
21311 (speculation_barrier): Likewise.
21313 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
21315 PR tree-optimization/88055
21316 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
21317 (gen_one_condition): Use it if !HONOR_NANS.
21319 2019-04-19 Jakub Jelinek <jakub@redhat.com>
21321 PR middle-end/90139
21322 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
21323 assign_temp instead of gen_reg_rtx.
21325 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
21327 PR translation/90118
21328 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21329 Add missing space before %<.
21331 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
21333 PR rtl-optimization/87871
21334 * ira-lives.c (make_object_dead): Don't add conflicts to
21335 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
21337 2019-04-18 Martin Sebor <msebor@redhat.com>
21339 PR middle-end/89797
21340 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
21341 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
21342 assuming type size fits in SHWI.
21344 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
21347 * ipa-inline.c (flatten_function): New parameter UPDATE.
21348 (ipa_inline, early_inliner): Use it.
21350 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
21352 * fold-const.c (int_const_binop): Return early on failure.
21354 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
21356 PR middle-end/85164
21357 * combine.c (force_int_to_mode): Cast the argument rather than
21358 the result of known_alignment.
21359 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
21361 2019-04-18 Richard Biener <rguenther@suse.de>
21364 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
21366 (remove_forwarder_block): ... here.
21367 (remove_forwarder_block_with_phi): Also move debug stmts here.
21369 2019-04-18 Jakub Jelinek <jakub@redhat.com>
21371 PR translation/79183
21372 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
21373 inform where appropriate.
21375 2019-04-18 Richard Biener <rguenther@suse.de>
21377 * tree.c (get_qualified_type): Put found type variants at the
21378 head of the variant list.
21380 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21382 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
21384 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
21387 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
21388 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
21389 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
21390 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
21391 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
21393 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
21395 * ira-conflicts.c (print_allocno_conflicts): Always print something,
21396 even for allocno's with no conflicts.
21397 (print_conflicts): Print an extra newline.
21399 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21401 * auto-inc-dec.c (attempt_change): Set the alignment of the
21402 temporary memory to that of the original.
21404 2019-04-17 Joao Moreira <jmoreira@suse.de>
21406 * targhooks.c (default_print_patchable_function_entry): Emit
21407 __patchable_function_entries section with writable flags to allow
21408 relocation resolution.
21410 2019-04-17 Jonny Grant <jg@jguk.org>
21412 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
21414 2019-04-17 Jakub Jelinek <jakub@redhat.com>
21416 PR middle-end/90095
21417 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
21418 on lowpart SUBREGs.
21420 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
21422 * config/arc/arc.c (arc_init): Format diagnostic string.
21423 (arc_override_options): Likewise.
21424 (check_if_valid_regno_const): Likewise.
21425 (arc_reorg): Likewise.
21427 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21430 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
21432 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
21434 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
21435 (*movdi_update1): Use Pmode.
21436 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
21437 (movdi_<mode>_update_stack): Rename to ...
21438 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
21440 (*movsi_update1): Use Pmode.
21441 (*movsi_update2): Use Pmode.
21442 (movsi_update): Rename to ...
21443 (movsi_<mode>_update): ... this. Use Pmode.
21444 (movsi_update_stack): Fix condition.
21445 (*movhi_update1): Use Pmode. Fix argument to
21446 avoiding_indexed_address_p.
21447 (*movhi_update2): Ditto.
21448 (*movhi_update3): Ditto.
21449 (*movhi_update4): Ditto.
21450 (*movqi_update1): Ditto.
21451 (*movqi_update2): Ditto.
21452 (*movqi_update3): Ditto.
21453 (*movsf_update1, *movdf_update1): Merge, rename to...
21454 (*mov<mode>_update1): This. Use Pmode. Fix argument to
21455 avoiding_indexed_address_p. Add "size" attribute.
21456 (*movsf_update2, *movdf_update2): Merge, rename to...
21457 (*mov<mode>_update2): This. Ditto.
21458 (*movsf_update3): Use Pmode. Fix argument to
21459 avoiding_indexed_address_p.
21460 (*movsf_update4): Ditto.
21461 (allocate_stack): Simplify condition. Adjust pattern names.
21463 2019-04-17 Jakub Jelinek <jakub@redhat.com>
21466 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
21467 whitespace at the start of target attribute string.
21469 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
21472 * config/rs6000/power9.md: Add store forwarding bypass.
21474 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
21477 * valtrack.c (dead_debug_insert_temp): Reset debug references
21478 to the return value of a call being removed.
21480 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21482 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
21483 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
21484 implement target hook.
21485 (arc_memory_move_cost): New function.
21486 (TARGET_REGISTER_MOVE_COST): Define.
21487 (TARGET_MEMORY_MOVE_COST): Likewise.
21488 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
21489 (MEMORY_MOVE_COST): Likewise.
21491 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21493 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
21494 (sibcall_value_insn): Likewise.
21495 * config/arc/constraints.md (Rs5): Remove.
21497 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21499 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
21500 for last two fake registers.
21501 (arc_conditional_register_usage): Make sure fake frame and arg
21502 pointer regs are in general regs class.
21503 (FRAME_POINTER_MASK): Remove.
21504 (RETURN_ADDR_MASK): Remove.
21505 (arc_must_save_register): Use hard frame regnum.
21506 (frame_restore_reg): Use hard_frame_pointer_rtx.
21507 (arc_save_callee_saves): Likewise.
21508 (arc_restore_callee_saves): Likewise.
21509 (arc_save_callee_enter): Likewise.
21510 (arc_restore_callee_leave): Likewise.
21511 (arc_save_callee_milli): Likewise.
21512 (arc_eh_return_address_location): Likewise.
21513 (arc_check_multi): Use hard frame regnum.
21514 (arc_can_eliminate): Likewise.
21515 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
21516 for register allocator.
21517 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
21518 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
21519 (FRAME_POINTER_REGNUM): Change it to a fake register.
21520 (HARD_FRAME_POINTER_REGNUM): Defined.
21521 (ARG_POINTER_REGNUM): Change it to a new fake register.
21522 (ELIMINABLE_REGS): Update.
21523 (REGISTER_NAMES): Update names.
21524 * config/arc/arc.md (LP_START): Remove.
21525 (LP_END): Likewise.
21526 (shift_si3_loop): Update pattern.
21528 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21530 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
21531 to avoid delay slot scheduling.
21532 (arc_must_save_register): Don't save SP.
21533 * config/arc/arc.md (stack_tie): Remove.
21534 (UNSPEC_ARC_STKTIE): Likewise.
21536 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
21537 Shiva Chen <shiva0217@gmail.com>
21539 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
21540 code gen with large shift amount.
21542 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
21544 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
21547 2019-04-16 Jakub Jelinek <jakub@redhat.com>
21550 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
21551 print -m64/-mx32/-m32 if it is true.
21552 (ix86_debug_options, ix86_function_specific_print): Pass true as
21553 ADD_ABI_P to ix86_target_string.
21554 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
21555 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
21556 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
21558 PR rtl-optimization/90082
21559 * dce.c (can_delete_call): New function.
21560 (deletable_insn_p, mark_insn): Use it.
21562 PR tree-optimization/90090
21563 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
21565 (is_division_by_square): Likewise. Formatting fix.
21567 2019-04-16 Richard Biener <rguenther@suse.de>
21569 PR tree-optimization/56049
21570 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
21571 equality check if alias-set zero will prevail.
21573 2019-04-15 Jeff Law <law@redhat.com>
21575 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
21576 size and alignment as unsigned.
21578 2019-04-15 Richard Biener <rguenther@suse.de>
21581 * tree-loop-distribution.c (destroy_loop): Preserve correct
21584 2019-04-15 Richard Biener <rguenther@suse.de>
21586 PR tree-optimization/90071
21587 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
21588 abnormal operands from def stmts.
21590 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
21592 PR rtl-optimization/89794
21593 * combine.c (count_auto_inc): New function.
21594 (try_combine): Count how many auto_inc expressions there were in the
21595 original instructions. Ensure we have the same number in the new
21596 instructions. Remove the code that tried to ensure auto_inc side
21597 effects on i1 and i0 are not lost.
21599 2019-04-15 Richard Biener <rguenther@suse.de>
21602 * tree.h (auto_var_p): Declare.
21603 * tree.c (auto_var_p): New function, split out from ...
21604 (auto_var_in_fn_p): ... here.
21605 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
21607 (new_var_info): Initialize it.
21608 (set_uids_in_ptset): Also set the shadow variable uid if required.
21609 (ipa_pta_execute): Postprocess points-to solutions assigning
21610 shadow variable uids for locals that may reach their containing
21611 function recursively.
21612 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
21613 assert but instead check whether the points-to solution is
21616 2019-04-15 Martin Jambor <mjambor@suse.cz>
21619 * cgraph.c (clone_of_p): Loop over clone chain for each step in
21622 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
21624 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
21626 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
21627 Kito Cheng <kito.cheng@gmail.com>
21628 Shiva Chen <shiva0217@gmail.com>
21630 * config/nds32/nds32-md-auxiliary.c
21631 (nds32_legitimize_pic_address): Use new PIC pattern.
21632 (nds32_legitimize_tls_address): Use new TLS pattern.
21633 (nds32_output_symrel): New.
21634 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
21635 (nds32_alloc_relax_group_id): Ditto.
21636 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
21637 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
21639 (nds32_group_tls_insn): Ditto.
21640 (nds32_group_float_insns): Ditto.
21641 * config/nds32/nds32.md (tls_le): New.
21644 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
21646 * configure: Add nds32 target for dwarf2 debug_line checking.
21647 * configure.ac: Regenerated.
21649 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
21652 * ipa-devirt.c (skip_in_fields_list_p): New.
21653 (odr_types_equivalent_p): Use it.
21655 2019-04-13 Jakub Jelinek <jakub@redhat.com>
21658 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
21659 instead of strncmp when checking for thumb and arm. Formatting fixes.
21661 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
21663 * doc/install.texi: Document --with-target-system-zlib.
21665 2019-04-12 Martin Sebor <msebor@redhat.com>
21671 * targhooks.c (default_vector_alignment): Avoid assuming
21672 argument fits in SHWI.
21673 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
21674 a shift expression.
21675 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
21677 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21679 PR rtl-optimization/89965
21680 * dce.c: Include rtl-iter.h.
21681 (struct check_argument_load_data): New type.
21682 (check_argument_load): New function.
21683 (find_call_stack_args): Check for loads from stack slots still tracked
21684 in sp_bytes and punt if any is found.
21686 * config/mips/loongson-mmiintrin.h: Fix up #error message.
21688 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
21690 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
21691 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
21693 2019-04-12 Martin Liska <mliska@suse.cz>
21695 PR middle-end/89970
21696 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
21698 (separate_attrs): Handle multiple 'default's.
21699 (expand_target_clones): Rework error handling code.
21701 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
21704 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
21705 mode of vector rather than mode of destination for move instruction.
21706 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
21707 Use QI inner mode with V16QI vector mode.
21709 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21712 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
21713 "invalid %%t operand" in output_operand_lossage message.
21715 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
21717 * config/s390/predicates.md (permute_pattern_operand): New
21719 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
21720 operand for the permute pattern.
21721 ("*vec_perm<mode>"): New insn definition.
21722 ("bswap<mode>"): Generate the permute pattern operand in the
21723 expander and perform the operand reloads for pre arch13 level
21725 ("*bswap<mode>_emu"): Rename to ...
21726 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
21727 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
21728 Add the USE operand for the permute pattern.
21729 ("*vec_set_bswap_vec<mode>"): Likewise.
21731 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21734 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
21735 and gcc_unreachable if it fails, just call tree_to_uhwi which
21736 verifies that too. Test TREE_CHAIN instead of list_length > 1.
21737 Start warning message with a lower-case letter. Formatting fixes.
21739 PR rtl-optimization/90026
21740 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
21741 successors, look for BARRIERs inside of the whole BB_FOOTER chain
21742 rather than just at the start of it. If e->src BB_FOOTER is not NULL
21743 in cfglayout mode, use emit_barrier_after_bb.
21745 2018-04-11 Steve Ellcey <sellcey@marvell.com>
21747 PR rtl-optimization/87763
21748 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
21751 2019-04-11 Tom de Vries <tdevries@suse.de>
21753 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
21754 max macro using statement expression.
21756 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
21758 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
21759 * xcoffout.c (xcoff_private_rodata_section_name): Define.
21760 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
21761 read_only_private_data_section using xcoff_private_rodata_section_name.
21762 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
21764 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
21767 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
21769 2019-04-11 Jakub Jelinek <jakub@redhat.com>
21771 PR rtl-optimization/89965
21772 * dce.c (sp_based_mem_offset): New function.
21773 (find_call_stack_args): Use sp_based_mem_offset.
21775 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
21777 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
21779 2019-04-11 Richard Biener <rguenther@suse.de>
21781 PR tree-optimization/90020
21782 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
21783 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
21784 * tree-ssa-pre.c (compute_avail): Use it to not put
21785 possibly trapping references after a call that might not
21786 return into EXP_GEN.
21787 * gcse.c (compute_hash_table_work): Do not elide
21788 marking a block containing a call if the call might not
21791 2019-04-11 Richard Biener <rguenther@suse.de>
21793 PR tree-optimization/90018
21794 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
21795 Test both SLP and interleaving variants.
21797 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
21799 * config/s390/8561.md: New file.
21800 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21801 Add arch13 cpu model.
21802 * config/s390/s390-opts.h (enum processor_type): Likewise.
21803 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
21804 (s390_get_unit_mask): Likewise.
21805 (s390_is_fpd): Likewise.
21806 (s390_is_fxd): Likewise.
21807 * config/s390/s390.h (s390_tune_attr): Likewise.
21808 * config/s390/s390.md: Include arch13 pipeline description.
21809 * config/s390/s390.opt: Add arch13.
21811 2018-04-10 Steve Ellcey <sellcey@marvell.com>
21813 PR rtl-optimization/87763
21814 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
21816 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
21818 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
21820 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
21821 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
21822 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
21823 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
21825 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
21827 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
21828 "Although" in -fipa-icf documentation.
21830 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
21831 of using multiple -g options.
21833 2019-04-10 Martin Liska <mliska@suse.cz>
21835 PR gcov-profile/89959
21836 * doc/gcov.texi: Make documentation of -x option
21839 2019-04-10 Richard Biener <rguenther@suse.de>
21841 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
21843 (DR_GROUP_SAME_DR_STMT): Remove.
21844 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
21845 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
21846 replace with assert.
21847 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
21848 (vect_record_grouped_load_vectors): Remove unreachable code.
21850 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
21853 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
21854 obsolete reference to N.
21856 2019-04-10 Jakub Jelinek <jakub@redhat.com>
21858 PR middle-end/90025
21859 * expr.c (store_expr): Set properly size on the MEM passed to
21863 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
21864 with strlen in between hostsz-3 and hostsz-1 inclusive when no
21865 translation is needed, and when translation is needed, only append
21866 ... if the string length is hostsz or more bytes long. Avoid using
21869 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
21872 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
21873 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
21875 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
21876 differences directly.
21877 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
21879 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21881 PR translation/90011
21882 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21884 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
21886 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21887 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
21888 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
21889 trailing space from -gsplit-dwarf diagnostics.
21891 PR tree-optimization/89998
21892 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
21893 instead of integer_type_node if possible, don't add ranges if return
21894 type is not compatible with int.
21895 * gimple-fold.c (gimple_fold_builtin_sprintf,
21896 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
21899 2019-04-09 Martin Liska <mliska@suse.cz>
21901 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
21902 * doc/install.texi: Document the new config.
21904 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
21906 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21907 use gimple_expr_type for load and store calls. Skip over the
21908 condition argument in a conditional internal function.
21909 Protect use of TREE_INT_CST_LOW.
21911 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21914 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21915 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21916 trailing period from it too.
21918 2019-04-08 wu yuan <wuyuan5@huawei.com>
21920 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21921 * config/aarch64/aarch64.md : Add "tsv110.md"
21922 * config/aarch64/tsv110.md: New file.
21924 2019-04-08 Richard Biener <rguenther@suse.de>
21926 PR tree-optimization/90006
21927 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21930 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21933 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21935 (fma_root_node): Likewise.
21936 (func_fma_steering): Likewise.
21938 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21940 PR rtl-optimization/89865
21941 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21943 PR rtl-optimization/89865
21944 * config/i386/i386.md
21945 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21946 numbers not to clash with the additional operands[4].
21947 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21948 with extra register copy in the middle.
21950 2019-04-08 Martin Liska <mliska@suse.cz>
21952 PR gcov-profile/89961
21953 * doc/gcov.texi: Document data_file.
21954 * gcov.c (generate_results): Add data_info into JSON output.
21956 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21958 PR tree-optimization/89725
21959 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21960 loop's chrec as invariant symbol.
21961 * tree-chrec.h (chrec_contains_symbols): New parameter.
21962 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21963 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21964 function of loops not in DDR's loop_nest.
21965 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21967 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21970 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21973 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21976 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21977 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21979 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21981 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21982 targetm.fixed_condition_code_regs.
21984 2019-04-05 Richard Biener <rguenther@suse.de>
21988 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21989 debug bind stmts but reset them if they are not valid at the
21992 2019-04-05 Martin Liska <mliska@suse.cz>
21994 PR translation/89936
21995 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21996 order to wrap keywords or arguments.
21997 * collect2.c (main): Likewise.
21998 (scan_prog_file): Likewise.
21999 (scan_libraries): Likewise.
22000 * common/config/riscv/riscv-common.c
22001 (riscv_subset_list::parsing_subset_version): Likewise.
22002 (riscv_subset_list::parse_std_ext): Likewise.
22003 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22005 * config/arm/arm.c (arm_option_override): Likewise.
22006 * config/cris/cris.c (cris_print_operand): Likewise.
22007 * config/darwin-c.c (darwin_pragma_options): Likewise.
22008 (darwin_pragma_unused): Likewise.
22009 (darwin_pragma_ms_struct): Likewise.
22010 * config/ft32/ft32.c (ft32_print_operand): Likewise.
22011 * config/i386/i386.c (print_reg): Likewise.
22012 (ix86_print_operand): Likewise.
22013 * config/i386/xm-djgpp.h: Likewise.
22014 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
22015 * config/m32c/m32c.c (m32c_option_override): Likewise.
22016 * config/msp430/msp430.c (msp430_option_override): Likewise.
22017 * config/nds32/nds32.c (nds32_option_override): Likewise.
22018 * config/nvptx/mkoffload.c (main): Likewise.
22019 * config/rx/rx.c (rx_print_operand): Likewise.
22020 (valid_psw_flag): Likewise.
22021 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
22022 (vms_pragma_nomember_alignment): Likewise.
22023 (vms_pragma_extern_model): Likewise.
22024 * lto-wrapper.c (compile_offload_image): Likewise.
22025 * omp-offload.c (oacc_parse_default_dims): Likewise.
22026 * symtab.c (symtab_node::verify_base): Likewise.
22027 * tlink.c (recompile_files): Likewise.
22028 (start_tweaking): Likewise.
22029 * tree-profile.c (parse_profile_filter): Likewise.
22031 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
22033 PR tree-optimization/89956
22034 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
22035 multiple negates of the same value.
22037 2019-04-04 Martin Sebor <msebor@redhat.com>
22039 PR middle-end/89957
22040 PR middle-end/89911
22041 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
22042 have the same precision since the function crashes otherwise.
22043 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
22044 has non-zero arguments.
22046 2019-04-04 Martin Sebor <msebor@redhat.com>
22048 PR middle-end/89934
22049 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
22050 out if the number of arguments is less than expected.
22052 2019-04-04 Jeff Law <law@redhat.com>
22054 PR rtl-optimization/89399
22055 * ree.c (combine_set_extension): Use single_set rather than
22056 digging into PATTERN for items on the candidate list.
22057 (combine_reaching_defs): Likewise.
22059 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
22061 PR rtl-optimization/46590
22062 * loop-invariant.c (find_defs): Move df_remove_problem and
22063 df_process_deferred_rescans to move_invariants.
22064 Move df_live_add_problem and df_live_set_all_dirty calls
22065 to move_invariants.
22066 (move_invariants): Likewise.
22067 (move_loop_invariants): Likewise, making the df_live calls
22068 conditional on -O. Remove the problem again if we added it
22071 2019-04-03 qing zhao <qing.zhao@oracle.com>
22073 PR tree-optimization/89730
22074 * ipa-inline.c (can_inline_edge_p): Delete the checking for
22075 -flive-patching=inline-only-static.
22076 (can_inline_edge_by_limits_p): Add the checking for
22077 -flive-patching=inline-only-static and grant always_inline
22078 even when -flive-patching=inline-only-static is specified.
22080 2019-04-03 Jeff Law <law@redhat.com>
22082 PR rtl-optimization/81025
22083 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
22085 2019-04-03 Richard Biener <rguenther@suse.de>
22087 PR tree-optimization/84101
22088 * tree-vect-stmts.c: Include explow.h for hard_function_value,
22089 regs.h for hard_regno_nregs.
22090 (cfun_returns): New helper.
22091 (vect_model_store_cost): When vectorizing a store to a decl
22092 we return and the function ABI returns in a multi-reg location
22093 account for the possible spilling that will happen.
22095 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
22097 * config/s390/s390.c (s390_legitimate_address_p): Reject long
22098 displacement addresses for vector mode operands.
22100 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
22102 * config/arc/arc.c (GMASK_LEN): Define.
22103 (arc_restore_callee_saves): Restore first blink when
22106 2019-04-03 Sudakshina Das <sudi.das@arm.com>
22108 * doc/extend.texi: Add deprecated comment on sign-return-address
22109 function attribute and add mbranch-protection.
22110 * doc/invoke.texi: Add bti to the options for mbranch-protection.
22112 2019-04-03 Richard Biener <rguenther@suse.de>
22115 * lto-wrapper.c (run_gcc): Avoid implicit rules making
22116 the all target phony.
22118 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
22122 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
22123 Return false for variable DImode shifts.
22124 (dimode_scalar_chain::compute_convert_gain): Do not handle
22125 register count operand in variable DImode shifts.
22126 (dimode_scalar_chain::make_vector_copies): Remove support to copy
22127 count argument of a variable shift instruction to a vector register.
22128 (dimode_scalar_chain::convert_reg): Remove support to convert
22129 count argument of a variable shift instruction.
22131 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
22133 PR rtl-optimization/84206
22134 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
22135 iterating over loop headers.
22137 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
22139 PR rtl-optimization/85876
22140 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
22141 beyond the original fence.
22143 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
22145 * config.gcc: Mark spu* targets as deprecated/obsolete.
22147 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22149 * config/s390/s390-builtin-types.def: New builtin function type
22150 definitions. Remove unused types.
22151 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
22152 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
22153 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
22154 overloaded builtins.
22155 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
22156 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
22157 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
22158 (vec_double, vec_signed, vec_unsigned): Define to use the new
22159 overloaded builtins.
22160 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
22163 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22165 * config/s390/s390-builtin-types.def: New builtin function type
22167 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
22168 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
22169 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
22170 (s390_vstrszh, s390_vstrszf): New low-level builtins.
22171 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
22172 constant definitions.
22173 * config/s390/vecintrin.h (vec_search_string_cc)
22174 (vec_search_string_until_zero_cc): New builtin name definitions.
22175 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
22177 ("vec_vstrs<mode>"): New insn definition.
22179 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22181 * config/s390/s390-builtin-types.def: Add new builtin function
22183 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
22184 New overloaded builtins.
22185 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
22187 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
22188 (UNSPEC_VEC_SLDBYTE): ... this.
22189 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
22190 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
22192 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
22193 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
22194 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
22196 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22198 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
22199 New insn definition.
22200 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
22201 * config/s390/vector.md (V_HW_HSD): ... here.
22203 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22205 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
22206 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
22207 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
22208 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
22209 New insn definitions.
22211 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22213 * config/s390/s390-builtin-types.def: Add new builtin function type.
22214 * config/s390/s390-builtins.def: Add overloaded builtin
22215 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
22216 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
22217 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
22218 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
22219 ("eltswap<mode>"): New expander.
22220 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
22223 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22225 * config/s390/s390-builtin-types.def: Add new builtin function types.
22226 * config/s390/s390-builtins.def: Add overloaded builtin
22227 s390_vec_revb. Add low-level builtins for vlbr and vstbr
22229 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
22230 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
22231 ("bswap<mode>"): New expander.
22232 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
22234 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22236 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
22237 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
22238 vector builtin version number in __VEC__.
22240 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22242 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
22244 (SFSI): New mode attribute.
22245 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
22246 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
22248 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
22249 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
22250 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
22251 ("floatsi<mode>2"): Add wcefb instruction.
22253 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22255 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
22256 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
22258 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
22259 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
22260 support 32 bit fp-int conversions. Rename to ...
22261 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
22262 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
22263 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
22264 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
22267 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22269 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
22270 if-then-else constructs if we can use the select instruction.
22271 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
22273 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22275 * config/s390/s390.md ("*popcountdi_arch13_cc")
22276 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
22278 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
22279 Append _z196 to make it ...
22280 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
22281 ("popcounthi2_z196"): ... this.
22282 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
22283 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
22285 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22287 * config/s390/s390.c (s390_canonicalize_comparison): Convert
22288 certain compares for arch13 in order to make use of the condition
22289 code result produced by the new instructions.
22290 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
22291 nxrk, and nxgrk instruction patterns.
22292 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
22293 (inv_no): Add new code iterator together with some attributes.
22294 ("*andc_split_<mode>"): Disable splitter for arch13.
22295 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
22296 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
22297 ("*<ANDOR:bitops_name>c<GPR:mode>")
22298 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
22299 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
22300 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
22301 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
22303 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22305 * common/config/s390/s390-common.c (processor_flags_table): New
22307 * config.gcc: Support arch13 with the --with-arch= configure flag.
22308 * config/s390/driver-native.c (s390_host_detect_local_cpu):
22309 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
22310 * config/s390/s390.c (s390_get_sched_attrmask)
22311 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
22312 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
22313 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
22314 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
22315 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
22317 * config/s390/s390.opt: Support arch13 as processor type in
22318 command line options.
22320 2019-04-02 Martin Liska <mliska@suse.cz>
22322 PR translation/89912
22323 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
22324 Fix param description of graphite-max-arrays-per-scop.
22326 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
22328 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
22329 (ASAN_CC1_SPEC): Use it in 64-bit mode.
22330 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
22332 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22334 PR rtl-optimization/85412
22335 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
22336 sel_sched_region_1, not after.
22338 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22340 PR rtl-optimization/86928
22341 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
22342 compute_live if necessary.
22343 (sel_redirect_edge_and_branch): Likewise.
22345 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
22347 PR rtl-optimization/89865
22348 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
22349 register if it is a part of small class.
22351 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22353 PR rtl-optimization/87273
22354 * sel-sched-ir.c (merge_fences): Remove assert.
22356 2019-04-01 Richard Biener <rguenther@suse.de>
22358 PR tree-optimization/46590
22359 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
22360 (dom_walker::m_reachability): Add in place of...
22361 (dom_walker::m_skip_unreachable_blocks): ...this.
22362 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
22363 Move complex initialization ...
22364 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
22365 lazily and initialize edge flags on each invocation.
22366 (dom_walker::bb_reachable): Use m_reachability.
22368 2019-04-01 Martin Liska <mliska@suse.cz>
22371 * opt-suggestions.c (option_proposer::build_option_suggestions):
22372 Add variant without any argument in order to provide better
22375 2019-04-01 Richard Biener <rguenther@suse.de>
22378 * gimple.c: Include langhooks.h.
22379 (gimple_get_alias_set): Treat enumeral types as the underlying
22382 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22383 Eric Botcazou <ebotcazou@adacore.com>
22385 PR rtl-optimization/89862
22386 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
22387 that operates on the full registers for WORD_REGISTER_OPERATIONS
22390 2019-03-29 Jim Wilson <jimw@sifive.com>
22392 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
22393 Clear MASK_RVC and then set if C subset supported.
22395 2019-03-29 Jakub Jelinek <jakub@redhat.com>
22398 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
22399 non-addressable complit into its initializer if it is volatile.
22401 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
22403 * opts-common.c (integral_argument): Set errno properly in one case.
22405 2019-03-29 Martin Liska <mliska@suse.cz>
22407 * doc/invoke.texi: Remove -Wchkp from documentation.
22409 2019-03-29 Martin Liska <mliska@suse.cz>
22411 * dbgcnt.c (print_limit_reach): New function.
22414 2019-03-29 Martin Liska <mliska@suse.cz>
22416 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
22417 (dbg_cnt_process_opt): Parse first tokens aas
22418 dbg_cnt_process_single_pair is also using strtok.
22420 2019-03-29 Jakub Jelinek <jakub@redhat.com>
22422 PR rtl-optimization/87485
22423 * function.c (expand_function_end): Move stack_protect_epilogue
22424 before loading of return value into hard register(s).
22426 2019-03-28 Jakub Jelinek <jakub@redhat.com>
22428 PR middle-end/89621
22429 * tree-inline.h (struct copy_body_data): Add
22430 dont_remap_vla_if_no_change flag.
22431 * tree-inline.c (remap_type_3, remap_type_2): New functions.
22432 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
22433 and remap_type_2 returns false.
22434 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
22435 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
22436 only from where it is copied to nested contexts.
22438 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
22441 * config/i386/i386.md (RMW operation with LEA peephole):
22442 Use LEAMODE mode attribute instead of SWI mode iterator for
22445 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
22448 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
22449 Also process XEXP (src, 0) of a shift insn.
22451 2019-03-28 David Malcolm <dmalcolm@redhat.com>
22453 PR middle-end/89725
22454 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
22455 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
22457 2019-03-28 Jakub Jelinek <jakub@redhat.com>
22459 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
22461 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
22462 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
22463 immediately after first one with df_analyze in between, but rather
22464 process all bbs, queueing ones that need second pass in a worklist,
22465 df_analyze, process queued debug insn changes and if second pass is
22466 needed, process bbs from worklist, df_analyze, process queued debug
22469 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
22470 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
22471 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
22473 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
22476 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
22479 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
22482 * config/i386/i386.c (ix86_function_value_1): Call the newly added
22483 function for 32-bit MS_ABI.
22484 (function_value_ms_32): New function.
22486 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
22488 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
22489 (movdi): Call gen_movdi_symbol_save_scc.
22490 (gen_movdi_symbol_save_scc): New insn and split.
22492 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
22494 PR rtl-optimization/89313
22495 * function.c (matching_constraint_num): New static function.
22496 (match_asm_constraints_1): Use it. Fixup white space and comment.
22497 Don't replace inputs with non-matching constraints which conflict
22498 with early clobber outputs.
22500 2019-03-27 Jeff Law <law@redhat.com>
22502 PR rtl-optimization/87761
22503 PR rtl-optimization/89826
22504 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
22506 (pass_cprop_hardreg::execute): Call df_analyze after adding the
22507 note problem to get REG_DEAD/REG_UNUSED notes updated.
22509 2019-03-27 Richard Biener <rguenther@suse.de>
22511 PR tree-optimization/89463
22512 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
22513 queue edges to remove.
22514 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
22515 dead stmts. Delay edge removal until PHIs are removed to
22516 make debug-stmt creation not confused by seemingly degenerate
22519 2019-03-27 Alan Modra <amodra@gmail.com>
22521 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
22523 * config/rs6000/darwin.h: Likewise.
22524 * config/rs6000/rs6000.c: Likewise.
22526 2019-03-27 Alan Modra <amodra@gmail.com>
22528 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
22529 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
22531 2019-03-26 Andrew Waterman <andrew@sifive.com>
22532 Jim Wilson <jimw@sifive.com>
22534 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
22535 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
22536 (generic_idivdi, generic_fmul_single, generic_fmul_double)
22537 (generic_fdiv, generic_fsqrt): Add check for generic tune.
22538 (generic_alu): Add auipc to type list.
22539 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
22540 (riscv_microarchitecture): Declare.
22541 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
22542 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
22544 (riscv_microarchitecture): New.
22545 (sifive_7_tune_info): New.
22546 (riscv_cpu_info_table): Add microarchitecture value for rocket and
22547 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
22549 (riscv_store_data_bypass_p): New.
22550 (riscv_option_override): Set riscv_microarchitecture from
22551 cpu->microarchitecture.
22552 * config/riscv/riscv.md: Include sifive-7.md.
22555 (auipc<mode>): Change type to auipc.
22556 (restore_stack_nonlocal): New.
22557 * config/riscv/sifive-7.md: New.
22558 * doc/invoke.texi (RISC-V Options): Update mtune docs.
22560 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
22563 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
22564 Also process XEXP (src, 0) of a shift insn.
22566 2019-03-26 Richard Biener <rguenther@suse.de>
22568 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
22569 (copy_debug_stmt): Likewise.
22570 (expand_call_inline): Likewise.
22571 (copy_bb): Avoid redundant lookup & set of gimple_block.
22572 * gimple-low.c (lower_gimple_return): Likewise.
22573 (lower_builtin_setjmp): Likewise.
22575 2019-03-26 Jakub Jelinek <jakub@redhat.com>
22577 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
22578 is constant 0, turn into static const data member initialized to false.
22579 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
22580 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
22582 2019-03-26 Jason Merrill <jason@redhat.com>
22583 Jakub Jelinek <jakub@redhat.com>
22585 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
22587 (mem_alloc_description::release_object_overhead): Fix comment typos.
22588 * hash-table.h (hash_table::~hash_table): Call
22589 release_instance_overhead only if m_entries is non-NULL, otherwise
22590 call unregister_descriptor.
22592 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
22594 PR tree-optimization/81740
22595 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22596 In case of outer loop vectorization, check for backward dependence
22597 at the inner loop if outer loop dependence is reversed.
22599 2019-03-26 Alan Modra <amodra@gmail.com>
22601 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
22602 rs6000_vector_mem init. Correct wI and wJ comment.
22604 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
22606 PR rtl-optimization/88347
22607 PR rtl-optimization/88423
22608 * sched-deps.c (sched_analyze_insn): Take into account that for
22609 tablejumps the barrier appears after a label and a jump_table_data.
22611 2019-03-25 Martin Sebor <msebor@redhat.com>
22614 * c-common.c (check_user_alignment): Rename local. Correct maximum
22615 alignment in diagnostic. Avoid assuming argument fits in SHWI,
22616 convert it to UHWI when it fits.
22618 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
22621 * dwarf2out.c (premark_used_variables): New function.
22622 (prune_unused_types_walk): Do not mark not premarked external
22624 (prune_unused_types): Call premark_used_variables.
22626 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
22628 PR rtl-optimization/89676
22629 * lra-constraints.c (curr_insn_transform): Do match reload for
22630 early clobbers when the match was successful only for different
22633 2019-03-25 Martin Sebor <msebor@redhat.com>
22635 * doc/extend.texi (Common Type Attributes): Document vector_size.
22636 (Common Variable Attributes): Mention size constraint. Correct
22638 (Vector Extensions): Use @dfn when defining bas type. Clarify
22639 base type and size constraints.
22641 2019-03-25 Richard Biener <rguenther@suse.de>
22643 PR tree-optimization/89789
22644 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
22645 changes from non-undefined back to undefined.
22647 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
22649 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
22650 heap string and a gc string, but since this variable is unknown to
22651 ggc the gc string might get reused and corrupted. Fixed by always
22652 using a heap string.
22654 2019-03-25 Richard Biener <rguenther@suse.de>
22656 PR tree-optimization/89779
22657 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
22658 to remove IV defs, delay actual removal.
22659 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
22660 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
22661 very end, properly also reset loop control IV information.
22663 2019-03-25 Richard Biener <rguenther@suse.de>
22665 PR tree-optimization/89802
22666 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
22667 move EH data to folded stmt.
22669 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
22671 * config/s390/s390-builtin-types.def: Remove few unused types and
22672 fix sort order for others.
22674 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
22676 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
22677 expected and found types with -mdebug during builtin matching.
22679 2019-03-25 Richard Biener <rguenther@suse.de>
22681 PR middle-end/89790
22682 * fold-const.c (operand_equal_p): Revert last change with
22685 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
22687 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
22688 notes for the result of the __tls_get_addr calls.
22689 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
22691 2019-03-24 Jeff Law <law@redhat.com>
22693 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
22695 PR rtl-optimization/87761
22696 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
22697 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
22699 (pass_cprop_hardreg::execute): Add df note problem and defer insn
22700 rescans. Reprocess blocks as needed, calling df_analyze before
22701 reprocessing. Always call df_analyze before fixing up debug bind
22704 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
22706 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
22709 2019-03-22 Andrew Pinski <apinski@marvell.com>
22711 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
22712 attrribute for uxtw.
22714 2019-03-26 Jeff Law <law@redhat.com>
22716 PR rtl-optimization/87761
22717 * config/mips/mips-protos.h (mips_split_move): Add new argument.
22718 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
22719 (mips_split_move): Accept new INSN argument. Try to forward SRC
22720 into the next instruction.
22721 (mips_split_move_insn): Pass INSN through to mips_split_move.
22723 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
22725 PR rtl-optimization/89676
22726 * lra-constraints.c (curr_insn_transform): Do match reload for
22727 early clobbers even if the match was successful.
22729 2019-03-22 Jakub Jelinek <jakub@redhat.com>
22732 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
22734 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
22736 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
22738 2019-03-22 Jakub Jelinek <jakub@redhat.com>
22740 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
22741 <avx512>_fmsub_<mode>_mask3<round_name>,
22742 <avx512>_fnmadd_<mode>_mask3<round_name>,
22743 <avx512>_fnmsub_<mode>_mask3<round_name>,
22744 avx512f_vmfmadd_<mode>_mask3<round_name>,
22745 avx512f_vmfmsub_<mode>_mask3<round_name>,
22746 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
22747 instead of register_operand and %v instead of v for match_operand 1.
22748 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
22749 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
22750 <round_nimm_predicate> instead of register_operand and %v instead of v
22751 for match_operand 1.
22753 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
22754 <avx512>_fmadd_<mode>_mask3<round_name>,
22755 <avx512>_fmsub_<mode>_mask<round_name>,
22756 <avx512>_fmsub_<mode>_mask3<round_name>,
22757 <avx512>_fnmadd_<mode>_mask<round_name>,
22758 <avx512>_fnmadd_<mode>_mask3<round_name>,
22759 <avx512>_fnmsub_<mode>_mask<round_name>,
22760 <avx512>_fnmsub_<mode>_mask3<round_name>,
22761 <avx512>_fmaddsub_<mode>_mask<round_name>,
22762 <avx512>_fmaddsub_<mode>_mask3<round_name>,
22763 <avx512>_fmsubadd_<mode>_mask<round_name>,
22764 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
22765 <round_nimm_predicate> instead of nonimmediate_operand.
22766 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
22767 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
22768 Use register_operand instead of <round_nimm_predicate> for the
22769 operand that needs to match output.
22770 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
22771 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
22772 Likewise. Formatting fixes.
22775 * config/i386/i386.c (enum ix86_builtins): Remove
22776 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
22777 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
22778 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
22779 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
22780 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
22781 __builtin_ia32_vfmsubss3_mask3): New builtins.
22782 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
22783 avx512f_vmfmadd_<mode>_mask3<round_name>,
22784 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
22785 *avx512f_vmfmsub_<mode>_mask<round_name>,
22786 avx512f_vmfmsub_<mode>_mask3<round_name>,
22787 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
22788 *avx512f_vmfnmadd_<mode>_mask<round_name>,
22789 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
22790 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
22791 *avx512f_vmfnmsub_<mode>_mask<round_name>,
22792 avx512f_vmfnmsub_<mode>_mask3<round_name>,
22793 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
22794 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
22795 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
22796 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
22797 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
22798 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
22799 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
22800 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
22801 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
22802 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
22803 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
22804 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
22805 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
22806 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
22807 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
22808 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
22809 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
22810 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
22811 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
22812 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
22813 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
22814 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
22816 2019-03-21 Martin Sebor <msebor@redhat.com>
22818 PR tree-optimization/89350
22819 * builtins.c (compute_objsize): Also ignore offsets whose upper
22821 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
22822 (builtin_memref::builtin_memref): Initialize new member.
22823 Allow EXPR to be null.
22824 (builtin_memref::extend_offset_range): Replace local with a member.
22825 Avoid assuming pointer offsets are unsigned.
22826 (builtin_memref::set_base_and_offset): Determine base object
22827 before computing offset range.
22828 (builtin_access::builtin_access): Handle memset.
22829 (builtin_access::generic_overlap): Replace local with a member.
22830 (builtin_access::strcat_overlap): Same.
22831 (builtin_access::overlap): Same.
22832 (maybe_diag_overlap): Same.
22833 (maybe_diag_access_bounds): Same.
22834 (wrestrict_dom_walker::check_call): Handle memset.
22835 (check_bounds_or_overlap): Same.
22837 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
22838 Jakub Jelinek <jakub@redhat.com>
22841 * tree.c (fld_type_variant, fld_incomplete_type_of,
22842 fld_process_array_type): Call fld->pset.add and don't call
22843 add_tree_to_fld_list if it returns true.
22844 (free_lang_data_in_type): Similarly with self-recursive call. Purge
22845 non-marked types from TYPE_NEXT_VARIANT list.
22846 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
22848 2019-03-21 Jakub Jelinek <jakub@redhat.com>
22850 * hash-table.h (hash_table): Add Lazy template parameter defaulted
22851 to false, if true, don't alloc_entries during construction, but defer
22852 it to the first method that needs m_entries allocated.
22853 (hash_table::hash_table, hash_table::~hash_table,
22854 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
22855 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
22856 hash_table::clear_slot, hash_table::traverse_noresize,
22857 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
22858 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
22860 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
22861 NO_INSERT instead of find_with_hash.
22862 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
22863 hash_set::m_table): Add Lazy to template params of hash_table.
22864 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
22865 * attribs.c (test_attribute_exclusions): Likewise.
22866 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
22867 hash_set. Add tests for hash_set with Lazy = true.
22869 2019-03-21 Richard Biener <rguenther@suse.de>
22871 PR tree-optimization/89779
22872 * tree.c (tree_nop_conversion): Consolidate and fix defensive
22873 checks with respect to released SSA names now having error_mark_node
22875 * fold-const.c (operand_equal_p): Likewise.
22877 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
22880 * config/s390/s390.c (global_not_special_regno_p): Move to make it
22882 (s390_optimize_register_info): Use global_not_special_regno_p to
22883 check for global regs.
22885 2019-03-20 Jakub Jelinek <jakub@redhat.com>
22888 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
22889 update this_alternative nor this_alternative_set.
22891 2019-03-19 Jim Wilson <jimw@sifive.com>
22894 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
22895 align, size, offset. Use them to handle a BLKmode reference. Update
22897 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
22899 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22901 PR rtl-optimization/89768
22902 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
22903 instead of GEN_INT.
22904 (unroll_loop_runtime_iterations): Likewise.
22906 2019-03-19 Martin Sebor <msebor@redhat.com>
22908 PR tree-optimization/89644
22909 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22910 rather than endptr as an indicator of nul-termination.
22912 PR tree-optimization/89644
22913 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22914 arrays in determining sequence sizes in strncpy and stpncpy.
22916 2019-03-19 Martin Liska <mliska@suse.cz>
22918 PR middle-end/89737
22919 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22920 unlikely_edges if there's an edge that belongs to both these sets.
22922 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22925 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22926 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22927 go via a stack temporary.
22929 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22932 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22933 instead of gen_rtx_SUBREG.
22934 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22936 2019-03-19 Richard Biener <rguenther@suse.de>
22939 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22941 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22945 * tree.c (free_lang_data_in_decl): Do not free context of C++
22948 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22951 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22952 subs for the first alternative except when operands[3] is 1.
22955 * gimplify.c (gimplify_asm_expr): For output argument with
22956 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22959 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22961 PR rtl-optimization/89753
22962 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22963 explicit unrolling factor even more robust.
22965 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22968 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22969 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22970 signed zeros, do another copysign after the compensation.
22972 2019-03-18 Martin Sebor <msebor@redhat.com>
22974 PR tree-optimization/89720
22975 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22976 more conservatively, the same as anti-range.
22978 2019-03-18 Richard Biener <rguenther@suse.de>
22980 PR middle-end/88945
22981 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22982 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22983 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22984 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22986 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22988 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22989 Extend queue to 1024 entries.
22990 Add "consumed" field.
22991 (gomp_print_output): Remove print_index parameter.
22992 Add final parameter.
22993 Change limit to unsigned.
22994 Use consumed field to implement circular buffer.
22995 Detect interrupted print in final pass.
22996 Flush output at the end.
22997 (run): Update gomp_print_output usage.
22998 (main): Initialize kernargs->output_data.consumed.
23000 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
23002 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
23003 calculation of the minimum number of scalar iterations for
23004 fully-predicated loops.
23006 2019-03-18 Martin Jambor <mjambor@suse.cz>
23008 PR tree-optimization/89546
23009 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
23010 any propagation to its children took place.
23012 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
23015 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
23016 parameter, and make use of it.
23017 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
23019 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
23021 * config/arc/arc.opt (mcode-density-frame): Get the inital value
23022 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
23023 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
23024 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
23025 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
23026 match what the ops is doing.
23027 (push_multi_fp_blink): Likewise.
23028 * config/arc/arc.c (arc_override_options): Enable enter/leave when
23029 compiling for size and elf target.
23030 (arc_save_callee_enter): Adjust note to match what enter/leave
23033 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
23035 * config/arc/arc.md (tst_movb): Fix constraint.
23037 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
23039 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
23041 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
23043 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
23044 * config/arc/arc.c (arc_conditional_register_usage): Remove all
23045 reg_alloc_order references.
23046 (size_alloc_order): Define.
23047 (arc_adjust_reg_alloc_order): New function.
23048 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
23050 (ADJUST_REG_ALLOC_ORDER): Define.
23051 (HONOR_REG_ALLOC_ORDER): Likewise.
23053 2019-03-18 Richard Biener <rguenther@suse.de>
23056 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
23057 loads and stores a bit more.
23059 2019-03-18 Richard Biener <rguenther@suse.de>
23062 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
23063 load pessimization to stores as well.
23065 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
23067 PR middle-end/86979
23068 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
23069 successor, use NULL as its av set.
23071 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
23073 PR rtl-optimization/89721
23074 * lra-constraints (invariant_p): Return false if side_effects_p holds.
23076 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
23079 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23080 When handling vec_extract, use modular arithmetic to allow
23081 constant selectors greater than vector length.
23082 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
23083 V1TImode vectors to have constant selector values greater than 0.
23084 Use modular arithmetic to compute vector index.
23085 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
23086 index for in-memory vectors. Correct code generation for
23087 in-register vectors.
23088 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
23091 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
23095 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
23098 2019-03-15 Jakub Jelinek <jakub@redhat.com>
23101 * tree.c (inchash::add_expr): Strip any location wrappers.
23102 * fold-const.c (operand_equal_p): Move stripping of location wrapper
23103 after hash verification.
23106 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
23107 SIGN_EXTEND and ZERO_EXTEND.
23109 2019-03-14 Jason Merrill <jason@redhat.com>
23110 Jakub Jelinek <jakub@redhat.com>
23112 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
23113 than if is_empty (*slot).
23114 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
23115 existing elt and for elt removal.
23116 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
23117 of already removed elt.
23119 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
23122 * config/i386/i386.c (remove_partial_avx_dependency): Handle
23123 REG_EH_REGION note.
23125 2019-03-14 Martin Liska <mliska@suse.cz>
23128 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
23130 2019-03-14 Richard Biener <rguenther@suse.de>
23133 * config/i386/i386.c (make_resolver_func): Properly set
23134 DECL_CONTEXT on the RESULT_DECL.
23135 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
23137 2019-03-14 Richard Biener <rguenther@suse.de>
23139 * gimple-pretty-print.c: Include cfgloop.h.
23140 (dump_gimple_phi): Adjust.
23141 (dump_gimple_bb_header): Dump loop header for GIMPLE.
23142 (pp_cfg_jump): Adjust.
23143 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
23144 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
23145 (lower_phi_internal_fn): Remove.
23146 (verify_gimple_call): Remove IFN_PHI special-casing.
23147 (dump_function_to_file): Dump IL state.
23148 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
23149 done to deal with PHI nodes being present in non-SSA state.
23151 2019-03-14 Jakub Jelinek <jakub@redhat.com>
23154 * multiple_target.c (create_dispatcher_calls): Change
23155 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
23156 In the node->iterate_referring loop, push *ref rather than ref, call
23157 ref->remove_reference () and always pass 0 to iterate_referring.
23159 PR rtl-optimization/89679
23160 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
23161 would contain a paradoxical SUBREG.
23163 2019-03-14 Richard Biener <rguenther@suse.de>
23165 PR tree-optimization/89710
23166 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
23169 2019-03-14 Martin Liska <mliska@suse.cz>
23171 * coverage.c (coverage_begin_function): Stream also
23173 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
23174 documentation about function declaration location.
23175 * gcov-dump.c (tag_function): Print whole range
23176 of function declaration.
23177 * gcov.c (struct function_info): Add end_column field.
23178 (function_info::function_info): Initialize it.
23179 (output_json_intermediate_file): Output {start,end}_column
23181 (read_graph_file): Read end_column.
23183 2019-03-14 Richard Biener <rguenther@suse.de>
23185 PR middle-end/89698
23186 * fold-const.c (operand_equal_p): For INDIRECT_REF check
23187 that the access types are similar.
23189 2019-03-14 Jakub Jelinek <jakub@redhat.com>
23191 PR tree-optimization/89703
23192 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
23193 aren't compatible also with builtin_decl_explicit. Check pure
23194 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
23195 and BUILT_IN_STPNCPY{,_CHK}.
23197 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
23200 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
23201 addr32 prefix to VSIB address for X32.
23202 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
23204 (*avx512pf_gatherpf<mode>df_mask): Likewise.
23205 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
23206 (*avx512pf_scatterpf<mode>df_mask): Likewise.
23207 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
23208 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
23209 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
23210 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
23211 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
23212 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
23213 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
23214 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
23215 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
23216 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
23217 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
23218 (*avx512f_scatterdi<mode>): Likewise.
23220 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
23223 * lra-constraints.c (inherit_in_ebb): Update
23224 potential_reload_hard_regs along with live_hard_regs.
23226 2019-03-13 Jakub Jelinek <jakub@redhat.com>
23229 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
23231 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
23233 2019-03-13 Martin Sebor <msebor@redhat.com>
23235 PR tree-optimization/89662
23236 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
23239 2019-03-13 Richard Biener <rguenther@suse.de>
23241 PR middle-end/89677
23242 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
23243 throw FP expressions at tree-affine.
23245 2019-03-14 Richard Biener <rguenther@suse.de>
23247 * tree-pretty-print.c (dump_generic_node): For -gimple properly
23248 dump negative integer constants using _Literal (type) -num.
23250 2019-03-13 Jakub Jelinek <jakub@redhat.com>
23252 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
23253 nonlocal_value member.
23255 PR middle-end/88588
23256 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
23257 (ipa_simd_modify_function_body): Handle PHIs.
23259 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23261 * config/s390/s390.c (s390_option_override_internal): Use more
23262 aggressive inlining parameters.
23264 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23266 * config/s390/3906.md: New file.
23267 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
23268 (LONGRUNNING_THRESHOLD): Remove.
23269 (MAX_SCHED_MIX_SCORE): Decrease.
23270 (MAX_SCHED_MIX_DISTANCE): Decrease.
23271 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
23272 (struct s390_sched_state): New struct to hold scheduling state.
23273 (S390_SCHED_STATE_NORMAL): Remove.
23274 (S390_SCHED_STATE_CRACKED): Remove.
23275 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
23276 (s390_get_sched_attrmask): Use new attribute.
23277 (s390_get_unit_mask): Use new units.
23278 (s390_is_fpd): New function.
23279 (s390_is_fxd): New function.
23280 (s390_is_longrunning): New function.
23281 (s390_sched_score): Use new functions.
23282 (s390_sched_reorder): Likewise.
23283 (s390_sched_variable_issue): Rework and use new functions.
23284 (s390_sched_init): Use new functions.
23285 * config/s390/s390.h (s390_tune_attr): Add z14.
23286 * config/s390/s390.md: Add z14.
23288 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23290 * config/s390/2964.md: Update pipeline description.
23291 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
23292 (LONGRUNNING_THRESHOLD): Remove.
23293 (LATENCY_FACTOR): Remove.
23294 (s390_get_unit_mask): Add unit.
23295 (s390_sched_score): Use fxd/fpd.
23296 (s390_sched_variable_issue): Use fxd/fpd.
23298 2019-03-12 Martin Liska <mliska@suse.cz>
23300 * config/i386/i386.c: Reword an error message.
23302 2019-03-12 Martin Jambor <mjambor@suse.cz>
23304 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
23305 terminate with newline.
23307 2019-03-12 Jakub Jelinek <jakub@redhat.com>
23310 * config/s390/s390.md (tabort): Use %wd instead of
23311 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
23312 letters and periods.
23313 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
23314 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
23317 PR middle-end/89663
23318 * builtins.c (expand_builtin_int_roundingfn,
23319 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
23320 gcc_unreachable if validate_arglist fails.
23322 2019-03-12 Richard Biener <rguenther@suse.de>
23324 PR tree-optimization/89664
23325 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
23326 free the occurance tree after the early out.
23328 2019-03-11 Jakub Jelinek <jakub@redhat.com>
23330 PR middle-end/89655
23332 * vr-values.c (vr_values::update_value_range): If
23333 old_vr->varying_p (), don't update it, make new_vr also VARYING
23336 2019-03-11 Martin Liska <mliska@suse.cz>
23338 * config/aarch64/aarch64.c (aarch64_override_options_internal):
23339 Fix double string quoting.
23341 2019-03-11 Martin Liska <mliska@suse.cz>
23343 * collect-utils.c (collect_wait): Wrap apostrophes
23344 in gcc internal format with %'.
23345 * collect2.c (main): Likewise.
23346 (scan_prog_file): Likewise.
23347 (scan_libraries): Likewise.
23348 * config/i386/i386.c (ix86_expand_call): Likewise.
23349 (ix86_handle_interrupt_attribute): Likewise.
23350 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
23351 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23352 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
23353 * lto-wrapper.c (find_crtoffloadtable): Likewise.
23354 * symtab.c (symtab_node::verify_base): Likewise.
23355 * tree-cfg.c (verify_gimple_label): Likewise.
23356 * tree.c (verify_type_variant): Likewise.
23358 2019-03-11 Martin Liska <mliska@suse.cz>
23360 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
23361 in a string format message and fix GNU coding style.
23362 (expand_builtin_set_thread_pointer): Likewise.
23363 * common/config/aarch64/aarch64-common.c
23364 (aarch64_rewrite_selected_cpu): Likewise.
23365 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
23366 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
23367 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
23368 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
23369 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
23370 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
23371 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
23372 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
23373 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
23374 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
23376 * common/config/riscv/riscv-common.c
23377 (riscv_subset_list::parsing_subset_version): Likewise.
23378 (riscv_subset_list::parse_std_ext): Likewise.
23379 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23380 (riscv_subset_list::parse): Likewise.
23381 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
23382 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
23383 (aarch64_override_options_internal): Likewise.
23384 (aarch64_validate_mcpu): Likewise.
23385 (aarch64_validate_march): Likewise.
23386 (aarch64_validate_mtune): Likewise.
23387 (aarch64_override_options): Likewise.
23388 * config/alpha/alpha.c (alpha_option_override): Likewise.
23389 * config/arc/arc.c (arc_init): Likewise.
23390 (parse_mrgf_banked_regs_option): Likewise.
23391 (arc_override_options): Likewise.
23392 (arc_expand_builtin_aligned): Likewise.
23393 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
23394 (arm_expand_builtin): Likewise.
23395 * config/arm/arm.c (arm_option_check_internal): Likewise.
23396 (arm_configure_build_target): Likewise.
23397 (arm_option_override): Likewise.
23398 (arm_options_perform_arch_sanity_checks): Likewise.
23399 (arm_handle_cmse_nonsecure_entry): Likewise.
23400 (arm_handle_cmse_nonsecure_call): Likewise.
23401 (arm_tls_referenced_p): Likewise.
23402 (thumb1_expand_prologue): Likewise.
23403 * config/avr/avr.c (avr_option_override): Likewise.
23404 * config/bfin/bfin.c (bfin_option_override): Likewise.
23405 * config/c6x/c6x.c (c6x_option_override): Likewise.
23406 * config/cr16/cr16.c (cr16_override_options): Likewise.
23407 * config/cris/cris.c (cris_option_override): Likewise.
23408 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
23409 * config/darwin-c.c (macosx_version_as_macro): Likewise.
23410 * config/darwin.c (darwin_override_options): Likewise.
23411 * config/frv/frv.c (frv_expand_builtin): Likewise.
23412 * config/h8300/h8300.c (h8300_option_override): Likewise.
23413 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
23414 (ix86_option_override_internal): Likewise.
23415 (warn_once_call_ms2sysv_xlogues): Likewise.
23416 (ix86_expand_prologue): Likewise.
23417 (split_stack_prologue_scratch_regno): Likewise.
23418 (ix86_warn_parameter_passing_abi): Likewise.
23419 * config/ia64/ia64.c (fix_range): Likewise.
23420 * config/m68k/m68k.c (m68k_option_override): Likewise.
23421 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
23422 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
23423 (mips_set_compression_mode): Likewise.
23424 * config/mmix/mmix.c (mmix_option_override): Likewise.
23425 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
23426 * config/msp430/msp430.c (msp430_option_override): Likewise.
23427 * config/nds32/nds32.c (nds32_option_override): Likewise.
23428 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
23429 (nios2_option_override): Likewise.
23430 (nios2_expand_custom_builtin): Likewise.
23431 * config/nvptx/mkoffload.c (main): Likewise.
23432 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
23433 * config/pa/pa.c (fix_range): Likewise.
23434 (pa_option_override): Likewise.
23435 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
23436 (riscv_option_override): Likewise.
23437 * config/rl78/rl78.c (rl78_option_override): Likewise.
23438 * config/rs6000/aix61.h: Likewise.
23439 * config/rs6000/aix71.h: Likewise.
23440 * config/rs6000/aix72.h: Likewise.
23441 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
23442 * config/rs6000/freebsd64.h: Likewise.
23443 * config/rs6000/linux64.h: Likewise.
23444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
23445 (rs6000_expand_zeroop_builtin): Likewise.
23446 (rs6000_expand_mtfsb_builtin): Likewise.
23447 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
23448 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
23449 (rs6000_invalid_builtin): Likewise.
23450 (rs6000_expand_split_stack_prologue): Likewise.
23451 * config/rs6000/rtems.h: Likewise.
23452 * config/rx/rx.c (valid_psw_flag): Likewise.
23453 (rx_expand_builtin): Likewise.
23454 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
23455 * config/s390/s390.c (s390_expand_builtin): Likewise.
23456 (s390_function_profiler): Likewise.
23457 (s390_option_override_internal): Likewise.
23458 (s390_option_override): Likewise.
23459 * config/sh/sh.c (sh_option_override): Likewise.
23460 (sh_builtin_saveregs): Likewise.
23461 (sh_fix_range): Likewise.
23462 * config/sh/vxworks.h: Likewise.
23463 * config/sparc/sparc.c (sparc_option_override): Likewise.
23464 * config/spu/spu.c (spu_option_override): Likewise.
23465 (fix_range): Likewise.
23466 * config/visium/visium.c (visium_option_override): Likewise.
23467 (visium_handle_interrupt_attr): Likewise.
23468 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
23469 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
23470 (dbg_cnt_process_opt): Likewise.
23471 * dwarf2out.c (output_dwarf_version): Likewise.
23472 * except.c (expand_eh_return): Likewise.
23473 * gcc.c (defined): Likewise.
23474 (driver_handle_option): Likewise.
23475 (process_command): Likewise.
23476 (compare_files): Likewise.
23477 (driver::prepare_infiles): Likewise.
23478 (driver::do_spec_on_infiles): Likewise.
23479 (driver::maybe_run_linker): Likewise.
23480 * omp-offload.c (oacc_parse_default_dims): Likewise.
23481 * opts-global.c (handle_common_deferred_options): Likewise.
23482 * opts.c (parse_sanitizer_options): Likewise.
23483 (common_handle_option): Likewise.
23484 (enable_warning_as_error): Likewise.
23485 * passes.c (enable_disable_pass): Likewise.
23486 * plugin.c (parse_plugin_arg_opt): Likewise.
23487 (default_plugin_dir_name): Likewise.
23488 * targhooks.c (default_expand_builtin_saveregs): Likewise.
23489 (default_pch_valid_p): Likewise.
23490 * toplev.c (init_asm_output): Likewise.
23491 (process_options): Likewise.
23492 (toplev::run_self_tests): Likewise.
23493 * tree-cfg.c (verify_gimple_call): Likewise.
23494 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
23495 (tree_inlinable_function_p): Likewise.
23496 * var-tracking.c (vt_find_locations): Likewise.
23498 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
23500 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
23501 only on the else branch.
23503 2019-03-11 Martin Liska <mliska@suse.cz>
23505 * gcov.c (output_intermediate_json_line): Print function
23507 (output_json_intermediate_file): Add new argument.
23508 * doc/gcov.texi: Document the change.
23510 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
23512 PR rtl-optimization/89588
23513 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
23514 explicit unrolling factor more robust.
23516 2019-03-11 Richard Biener <rguenther@suse.de>
23518 PR tree-optimization/89649
23519 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
23520 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
23521 on the prolog and epilog loops.
23522 (vect_loop_versioning): Return copy of loop.
23523 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
23524 on the non-vectorized version of the loop.
23526 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
23529 * config/i386/sse.md (*vec_extractv2di_0_sse):
23530 Add (=r,x) alternative and corresponding splitter.
23532 2019-03-10 Martin Jambor <mjambor@suse.cz>
23534 PR tree-optimization/85762
23535 PR tree-optimization/87008
23536 PR tree-optimization/85459
23537 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
23538 it points to if there is a type changing MEM_REF. Adjust all callers.
23539 (build_accesses_from_assign): Disable total scalarization if
23540 contains_vce_or_bfcref_p returns true through the new parameter, for
23543 2019-03-09 Jakub Jelinek <jakub@redhat.com>
23546 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
23547 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
23550 * common.opt (fdiagnostics-show-labels,
23551 fdiagnostics-show-line-numbers, fdiagnostics-format=,
23552 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
23553 gas-locview-support, ginline-points, ginternal-reset-location-views):
23554 Terminate description text with a dot.
23555 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
23556 * config/mcore/mcore.opt (m210, m340): Likewise.
23557 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
23558 mnops=): Start description text with a capital letter.
23559 * config/arc/arc.opt (msize-level=): Likewise.
23560 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
23561 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
23562 mnewlib): Likewise.
23563 * config/ft32/ft32.opt (msim): Likewise.
23564 (mft32b, mcompress): Likewise. Terminate description text with a dot.
23565 (mnodiv, mnopm): Terminate description text with a dot.
23566 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
23568 * config/i386/i386.opt (prefer_vector_width, instrument_return):
23570 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
23573 PR rtl-optimization/89634
23574 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
23575 are modified in BB_END (e->src) instruction.
23577 2019-03-08 David Malcolm <dmalcolm@redhat.com>
23580 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
23581 messages more amenable to translation, and improve wording.
23583 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
23585 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
23586 ud- and du-chains between phases.
23588 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
23591 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
23592 instead of POLY_INT_CST.
23594 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
23596 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
23599 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
23604 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
23605 (_mm_storeu_si64): Ditto.
23607 2019-03-08 Martin Liska <mliska@suse.cz>
23610 * config/i386/i386.c (ix86_option_override_internal): Disable
23611 jump tables when retpolines are used.
23613 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
23616 * ipa-split.c (execute_split_functions): Do not split
23617 'noinline' or 'section' function.
23619 2019-03-08 Jakub Jelinek <jakub@redhat.com>
23622 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
23623 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
23624 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
23627 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
23628 from diagnostics. Formatting fixes.
23631 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
23632 warn_odr diagnostics.
23635 * lra-constraints.c (process_alt_operands): Avoid one space before
23636 " at the end of line and another after " on another line in a string
23638 * attribs.c (handle_dll_attribute): Likewise.
23639 * config/avr/avr-devices.c (avr_texinfo): Likewise.
23641 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
23642 warning_at or inform messages in G_() if there is no ?:.
23644 PR tree-optimization/89550
23645 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
23646 returned true. Formatting fixes.
23647 (expand_builtin_strnlen): Formatting fixes.
23648 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
23649 if warning_at returned true.
23650 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
23652 2019-03-08 Richard Biener <rguenther@suse.de>
23654 PR middle-end/89578
23655 * cfgloop.h (struct loop): Add owned_clique field.
23656 * cfgloopmanip.c (copy_loop_info): Copy it.
23657 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
23659 * tree-inline.c (copy_loops): Remap owned_clique.
23660 * lto-streamer-in.c (input_cfg): Stream owned_clique.
23661 * lto-streamer-out.c (output_cfg): Likewise.
23663 2019-03-08 Jakub Jelinek <jakub@redhat.com>
23666 * config/darwin.c: Include intl.h.
23667 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
23668 composing the message out of two separate parts.
23670 2019-03-07 Jakub Jelinek <jakub@redhat.com>
23673 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
23674 doesn't start with a capital letter and doesn't end with a dot.
23675 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
23676 with a capital letter.
23677 (ix86_mangle_function_version_assembler_name): Likewise.
23678 (ix86_generate_version_dispatcher_body): Likewise.
23679 (fold_builtin_cpu): Likewise.
23680 (get_builtin_code_for_version): Likewise. Remove extraneous space.
23681 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
23682 translators, wrap full type name in %qs.
23684 PR translation/79999
23685 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
23686 depend clause with source (or sink) modifier.
23687 * omp-expand.c (expand_omp_ordered_sink): Likewise.
23690 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
23691 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
23692 (avx512f_load<mode>_mask): New define_expand.
23693 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
23694 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
23695 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
23696 __builtin_ia32_movess_mask): New builtins.
23697 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
23698 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
23699 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
23700 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
23702 2019-03-07 Martin Jambor <mjambor@suse.cz>
23705 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
23706 for extern inline functions.
23708 2019-03-07 Martin Jambor <mjambor@suse.cz>
23711 * cgraph.h (cgraph_node): New inline method former_thunk_p.
23712 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
23713 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
23714 have multiple callees. At the end check if declarations match as
23715 opposed to cgraph_nodes.
23717 2019-03-07 Martin Liska <mliska@suse.cz>
23719 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
23720 which is equivalent to searching for this in clones chain.
23721 * symtab.c (symtab_node::verify_base): Similarly compare ASM
23722 names with a neighbour and special case first node in a chain.
23724 2019-01-25 Jason Merrill <jason@redhat.com>
23726 PR c++/80916 - spurious "static but not defined" warning.
23727 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
23728 for an internal symbol with DECL_EXTERNAL.
23730 2019-04-07 Richard Biener <rguenther@suse.de>
23732 PR middle-end/89618
23733 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
23734 * tree-inline.c (copy_loops): Simplify.
23736 2019-03-07 Martin Liska <mliska@suse.cz>
23738 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
23740 2019-03-07 Richard Biener <rguenther@suse.de>
23742 PR tree-optimization/89595
23743 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
23744 stmt iterator as reference, take boolean output parameter to
23745 indicate whether the stmt was removed and thus the iterator
23747 (dom_opt_dom_walker::before_dom_children): Re-iterate over
23748 stmts created by folding.
23750 2019-03-07 Jakub Jelinek <jakub@redhat.com>
23753 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
23756 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
23758 PR rtl-optimization/88845
23759 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
23761 * lra.c (remove_scratches_1): New function.
23762 (remove_scratches): Use it.
23763 (lra_emit_move): Likewise.
23765 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
23767 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
23768 unaligned_access variable.
23769 * config/arc/arc.c (arc_override_options): Set unaligned access
23770 default on for HS CPUs.
23771 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
23773 2019-03-06 Martin Liska <mliska@suse.cz>
23775 PR gcov-profile/89577
23776 * doc/gcov.texi: Prefer to use --coverage.
23777 * doc/sourcebuild.texi: Likewise.
23779 2019-03-02 Jason Merrill <jason@redhat.com>
23781 PR c++/86485 - -Wmaybe-unused with empty class ?:
23782 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
23784 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23787 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
23790 PR middle-end/89590
23791 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
23792 exactly one argument.
23794 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23795 Richard Sandiford <richard.sandiford@arm.com>
23797 PR tree-optimization/89570
23798 * match.pd (vec_cond into cond_op simplification): Don't use
23799 get_conditional_internal_fn, use as_internal_fn (cond_op).
23801 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
23804 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
23805 to decide when to split off a non-zero offset from a symbol.
23806 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
23807 in function symbols.
23809 2019-03-05 Richard Biener <rguenther@suse.de>
23811 PR tree-optimization/89594
23812 * tree-if-conv.c (pass_if_conversion::execute): Handle
23813 case where .LOOP_VECTORIZED_FUNCTION was removed.
23815 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23818 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
23819 instead alloca it only when needed with the needed size.
23821 PR tree-optimization/89570
23822 * match.pd (vec_cond into cond_op simplification): Guard with
23823 vectorized_internal_fn_supported_p test and #if GIMPLE.
23825 PR tree-optimization/89566
23826 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
23827 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
23828 Punt if get_user_idx_format succeeds, but idx_format argument is
23829 not provided or doesn't have pointer type, or if idx_args is above
23830 number of provided arguments.
23832 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
23834 PR tree-optimization/89437
23835 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
23837 2019-03-04 Richard Biener <rguenther@suse.de>
23839 PR middle-end/89572
23840 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
23843 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
23845 PR tree-optimization/89487
23846 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
23847 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
23848 (distribute_loop): Don't do runtime alias check if there is non-
23849 addressable data reference.
23850 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
23851 is a register variable.
23853 2019-03-02 Jakub Jelinek <jakub@redhat.com>
23856 * config/arm/arm.md (cmpsi2_addneg): Use
23857 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
23858 If operands[2] is 0 or INT_MIN, force use of subs.
23859 (*compare_scc splitter): Use gen_int_mode.
23860 (*negscc): Likewise.
23861 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
23863 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
23864 Monk Chiang <sh.chiang04@gmail.com>
23866 * common/config/riscv/riscv-common.c: Include sstream.
23867 (riscv_subset_list::to_string): New.
23868 (riscv_arch_str): Likewise.
23869 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
23870 * config.in: Regen.
23871 * config/riscv/riscv-protos.h (riscv_arch_str): New.
23872 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
23873 (riscv_emit_attribute): New.
23874 (riscv_file_start): Emit attribute if needed.
23875 (riscv_option_override): Init riscv_emit_attribute_p.
23876 * config/riscv/riscv.opt (mriscv-attribute): New option.
23877 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
23878 * configure: Regen.
23879 * doc/install.texi: Document --with-riscv-attribute.
23880 * doc/invoke.texi: Document -mriscv-attribute.
23882 * common/config/riscv/riscv-common.c:
23883 Include config/riscv/riscv-protos.h.
23884 (INCLUDE_STRING): Defined.
23885 (RISCV_DONT_CARE_VERSION): Defined.
23886 (riscv_subset_t): Declare.
23887 (riscv_subset_t::riscv_subset_t): New.
23888 (riscv_subset_list): Declare.
23889 (riscv_subset_list::riscv_subset_list): New.
23890 (riscv_subset_list::~riscv_subset_list): Likewise.
23891 (riscv_subset_list::parsing_subset_version): Likewise.
23892 (riscv_subset_list::parse_std_ext): Likewise.
23893 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23894 (riscv_subset_list::add): Likewise.
23895 (riscv_subset_list::lookup): Likewise.
23896 (riscv_subset_list::xlen): Likewise.
23897 (riscv_subset_list::parse): Likewise.
23898 (riscv_supported_std_ext): Likewise.
23899 (current_subset_list): Likewise.
23900 (riscv_parse_arch_string): Using riscv_subset_list::parse to
23903 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
23905 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23906 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23907 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23909 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23911 PR rtl-optimization/85899
23912 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23913 fallthru edges leading to the exit block.
23915 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23918 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23919 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23921 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23923 PR tree-optimization/89535
23924 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23925 for each operand. Calculate the fallback choice for mask operands
23926 and pass it to vect_get_vec_def_for_operand.
23928 2019-03-01 Richard Biener <rguenther@suse.de>
23930 PR middle-end/89541
23931 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23932 get virtual operands.
23933 (get_expr_operands): Handle CONST_DECL like other decls.
23935 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23937 PR middle-end/89503
23938 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23939 on DECL_P and EXPR_P.
23941 2019-03-01 Richard Biener <rguenther@suse.de>
23943 PR middle-end/89497
23944 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23945 argument, defaulted to zero.
23946 * passes.c (execute_function_todo): Pass down SSA update flags
23947 to cleanup_tree_cfg.
23948 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23949 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23951 (cleanup_tree_cfg): Get and pass down SSA update flags.
23953 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23956 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23957 early_lto_debug argument.
23959 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23961 PR tree-optimization/89536
23962 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23963 only whether bit #0 of the value is 0 instead of the entire value.
23965 2019-02-28 Marek Polacek <polacek@redhat.com>
23967 PR c++/87068 - missing diagnostic with fallthrough statement.
23968 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23969 at the end of a seq, save its location to walk_stmt_info.
23970 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23973 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23976 * tree.c (find_atomic_core_type): Move ahead in file.
23977 (check_base_type): Correctly compare alignments of atomic types.
23979 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23982 * config/i386/i386.c (get_builtin_code_for_version): Identify
23983 Westmere from PCLMUL, instead of AES.
23985 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23988 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23989 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23992 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23995 * config/aarch64/aarch64-option-extensions.def: Document it.
23996 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23999 2019-02-28 Jakub Jelinek <jakub@redhat.com>
24002 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
24003 builtins if they don't have a single scalar floating point argument.
24006 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
24008 PR rtl-optimization/89490
24009 * varasm.c (get_block_for_section): Bail out for mergeable sections.
24010 (default_use_anchors_for_symbol_p, output_object_block): Assert the
24011 block section is not mergeable.
24013 2019-02-27 Jakub Jelinek <jakub@redhat.com>
24016 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
24017 old define_insn to ...
24018 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
24019 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
24020 Rename old define_insn to ...
24021 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
24022 (thumb2_casesi_internal_pic): New define_expand. Rename old
24024 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
24025 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
24026 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
24028 2019-02-27 Richard Biener <rguenther@suse.de>
24031 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
24033 2019-02-27 Richard Biener <rguenther@suse.de>
24035 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
24038 2019-02-27 Richard Biener <rguenther@suse.de>
24041 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
24042 parameter, prefix section name with .gnu.debuglto_ if true.
24043 (dwarf2out_finish): Pass false to output_comdat_type_unit.
24044 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
24046 2019-02-27 Richard Biener <rguenther@suse.de>
24049 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
24050 rather than on use_debug_types, doing what output_die does.
24051 (value_format): Likewise.
24053 2019-02-27 Martin Jambor <mjambor@suse.cz>
24054 Martin Sebor <msebor@redhat.com>
24056 * doc/invoke.texi (Warning Options): Reword description of
24057 -Wno-absolute-value.
24059 2019-02-27 Jakub Jelinek <jakub@redhat.com>
24061 PR tree-optimization/89280
24062 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
24063 builtin_setjmp_setup_bb): New functions.
24064 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
24065 When visiting __builtin_setjmp_setup block, queue in special
24066 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
24067 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
24068 from visited after the loop if they don't have any visited successor
24071 2018-02-26 Steve Ellcey <sellcey@marvell.com>
24073 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
24075 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
24077 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24080 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
24081 with types other than sizetype/ssizetype.
24083 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
24085 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
24086 (enum sparc_processor_type): ...this.
24087 (enum sparc_code_model_type): New enumeration type.
24088 (enum sparc_memory_model_type): Tweak comments.
24089 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
24091 (mcmodel): Use sparc_code_model enumeration and variable.
24092 (sparc_code_model): New enumeration.
24093 (mdebug): Add Undocumented marker.
24094 * config/sparc/sparc.h (enum cmodel): Delete.
24095 (sparc_cmodel): Likewise.
24096 (TARGET_CM_MEDLOW): Adjust to above renaming.
24097 (TARGET_CM_MEDMID): Likewise.
24098 (TARGET_CM_MEDANY): Likewise.
24099 (TARGET_CM_EMBMEDANY): Likewise.
24100 * config/sparc/sparc.c (sparc_cmodel): Delete.
24101 (sparc_option_override): Remove string/value mapping support for the
24102 code model. Move code and memory model support to after the handling
24103 of target flags. Do private machine setup last.
24104 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
24105 (sparc_legitimize_reload_address): Likewise.
24106 (sparc_output_mi_thunk): Likewise.
24107 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
24109 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24111 PR tree-optimization/89500
24112 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
24113 (handle_builtin_strlen): Remove noncst_bound variable. Always
24114 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
24115 cst if the first cst bytes starting at x are known to be non-zero,
24116 even if the string is not zero terminated. Don't try to modify
24117 *si for strnlen. Update strlen_to_stridx only for strlen or if
24118 we can prove strnlen returns the same value as strlen would.
24120 2019-02-26 Martin Liska <mliska@suse.cz>
24122 * alloc-pool.h (struct pool_usage): Remove extra
24124 * bitmap.h (struct bitmap_usage): Likewise.
24125 * ggc-common.c (struct ggc_usage): Likewise.
24126 * mem-stats.h (struct mem_usage): Likewise.
24127 (mem_alloc_description::dump): Print dash lines
24128 here and repeat header at the end of a table report.
24129 It's then more readable.
24130 * tree-phinodes.c (phinodes_print_statistics): Make
24131 horizontal alignment.
24132 * tree-ssanames.c (ssanames_print_statistics): Likewise.
24133 * vec.c (struct vec_usage): Remove extra print_dash_line.
24134 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
24136 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
24138 * doc/extend.texi (__builtin_object_size):
24139 Use @pxref instead of @xref inside parenthesis.
24140 (__builtin_has_attribute): Add missing comma after @xref.
24141 (__builtin_object_size): Ditto.
24142 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
24144 2019-02-26 Jeff Law <law@redhat.com>
24146 PR rtl-optimization/87761
24147 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
24148 detect obviously dead insns and delete them.
24150 2019-02-26 Richard Biener <rguenther@suse.de>
24152 PR tree-optimization/89505
24153 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
24154 to handle restrict pointed-to vars with multiple subvars
24157 2019-02-26 Richard Biener <rguenther@suse.de>
24159 PR tree-optimization/89489
24160 * tree-parloops.c (create_loop_fn): Copy over last_clique.
24162 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
24164 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
24165 and move around comment.
24166 <BIT_AND_EXPR>: Likewise.
24167 <BIT_NOT_EXPR>: Add specific handling for boolean types.
24169 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24172 * config/i386/i386.c (remove_partial_avx_dependency): Call
24173 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
24174 after changing possibly many instructions to use that pseudo. Fix up
24175 insertion of v4sf_const0 setter at the start of bb.
24177 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
24180 * doc/extend.texi (Variadic Pointer Args): New section.
24182 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
24183 Martin Sebor <msebor@gmail.com>
24185 * common.opt (Wattribute-alias): Likewise.
24186 * doc/invoke.texi (Option Summary): List general form of
24187 -Wattribute-alias=. List positive form of -Wmissing-attributes.
24188 (-Wmissing-attributes): Invert entry, rewrite and correct default.
24189 Add cross-references.
24190 (-Wattribute-alias): Rewrite and correct default. Mention
24191 considered attributes (same as for -Wmissing-attributes).
24193 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
24195 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
24196 (_mm_cvtpd_ps): Likewise.
24197 (_mm_cvttpd_epi32): Likewise.
24200 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
24201 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
24204 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
24206 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24209 * common/config/aarch64/aarch64-common.c
24210 (struct aarch64_option_extension): Add is_synthetic.
24211 (all_extensions): Use it.
24212 (TARGET_OPTION_INIT_STRUCT): Define hook.
24213 (struct gcc_targetm_common): Moved to end.
24214 (all_extensions_by_on): New.
24215 (opt_ext_cmp, typedef opt_ext): New.
24216 (aarch64_option_init_struct): New.
24217 (aarch64_contains_opt): New.
24218 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
24219 * config/aarch64/aarch64-option-extensions.def
24220 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
24221 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
24222 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
24223 Set is_synthetic to false.
24224 (crypto): Set is_synthetic to true.
24225 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
24228 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24230 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
24231 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
24232 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
24233 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
24234 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
24235 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
24236 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
24237 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
24239 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
24240 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
24241 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
24242 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
24243 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
24244 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
24245 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
24246 vfmlsl_laneq_high_f16): ... To this.
24247 * config/arm/neon.md: Update comments.
24249 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24251 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
24252 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
24253 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
24254 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
24255 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
24256 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
24257 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
24258 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
24260 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
24261 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
24262 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
24263 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
24264 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
24265 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
24266 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
24267 vfmlslq_laneq_high_f16): ... To this.
24269 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
24271 PR rtl-optimization/86096
24272 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
24273 comparing mw_order values.
24275 2019-02-25 Jakub Jelinek <jakub@redhat.com>
24278 * config/arm/arm.md (*subsi3_carryin_const): Use
24279 arm_neg_immediate_operand predicate instead of
24280 arm_not_immediate_operand, "L" constraint instead of "K" and
24281 print it using %n2 instead of %B2.
24282 (*subsi3_carryin_const0): New define_insn.
24283 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
24284 instead of arm_not_operand and "I" constraint instead of "K" and
24285 print it using %n3 instead of %B2. Instead of using match_dup 2 add
24286 another match_operand and in the condition check that it is negation
24288 (*subsi3_carryin_compare_const0): New define_ins.
24289 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
24290 *subsi3_carryin_const.
24291 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
24292 split into *subsi3_carryin_compare_const0 if the highpart is zero.
24295 * config/arm.vfp.md (*negdf2_vfp): Use
24296 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
24297 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
24299 2019-02-24 Jakub Jelinek <jakub@redhat.com>
24301 PR rtl-optimization/89445
24302 * simplify-rtx.c (simplify_ternary_operation): Don't use
24303 simplify_merge_mask on operands that may trap.
24304 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
24305 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
24306 second operand is CONST_VECTOR, check if any element could be zero.
24307 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
24308 their operands can trap.
24310 2019-02-23 Martin Sebor <msebor@redhat.com>
24312 * gimple-ssa-sprintf.c (target_strtol): Rename...
24313 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
24314 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
24315 check for range error.
24317 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
24320 * opts-common.c (prune_options): Also prune joined switches
24321 with Negative and RejectNegative.
24322 * config/i386/i386.opt (march=): Add Negative(march=).
24323 (mtune=): Add Negative(mtune=).
24324 * doc/options.texi: Document Negative used together with Joined
24325 and RejectNegative.
24327 2019-02-22 Martin Sebor <msebor@redhat.com>
24329 * doc/extend.texi (Other Builtins): Add
24330 __builtin_is_constant_evaluated.
24332 2019-02-22 Richard Biener <rguenther@suse.de>
24334 PR tree-optimization/87609
24335 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
24337 2019-02-22 Jeff Law <law@redhat.com>
24339 PR rtl-optimization/87761
24340 * config/mips/mips.md: Add new combiner pattern to recognize
24341 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
24343 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
24346 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
24347 destination register in peepholes generating patterns for ADDS/SUBS.
24348 (add<mode>3_compare0,
24349 *addsi3_compare0_uxtw, add<mode>3_compareC,
24350 add<mode>3_compareV_imm, add<mode>3_compareV,
24351 *adds_<optab><ALLX:mode>_<GPI:mode>,
24352 *subs_<optab><ALLX:mode>_<GPI:mode>,
24353 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
24354 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
24355 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
24356 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
24357 sub<mode>3_compare1): Allow stack pointer for source register.
24358 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
24360 2019-02-22 Martin Sebor <msebor@redhat.com>
24362 PR tree-optimization/88993
24363 PR tree-optimization/88853
24364 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
24366 (sprintf_dom_walker::call_info::is_string_func): New helper.
24367 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
24368 for formatted string functions.
24369 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
24371 2019-02-22 Martin Sebor <msebor@redhat.com>
24374 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
24375 unreachable subexpressions.
24377 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
24378 Hongtao Liu <hongtao.liu@intel.com>
24379 Sunil K Pandey <sunil.k.pandey@intel.com>
24382 * config/i386/i386-passes.def: Add
24383 pass_remove_partial_avx_dependency.
24384 * config/i386/i386-protos.h
24385 (make_pass_remove_partial_avx_dependency): New.
24386 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
24388 (pass_data_remove_partial_avx_dependency): New.
24389 (pass_remove_partial_avx_dependency): Likewise.
24390 (make_pass_remove_partial_avx_dependency): Likewise.
24391 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
24392 (*extendsfdf2): Add avx_partial_xmm_update.
24393 (truncdfsf2): Likewise.
24394 (*float<SWI48:mode><MODEF:mode>2): Likewise.
24395 (SF/DF conversion splitters): Disabled for TARGET_AVX.
24397 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
24399 PR middle-end/85598
24400 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
24403 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
24406 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
24407 (PTA_SKYLAKE): Add PTA_AES.
24408 (PTA_GOLDMONT): Likewise.
24410 2019-02-22 Sudakshina Das <sudi.das@arm.com>
24412 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
24413 instruction if enabled.
24414 (aarch64_override_options): Remove reference to return address key.
24416 2019-02-22 Richard Biener <rguenther@suse.de>
24418 PR tree-optimization/89440
24419 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
24420 not necessary assert.
24422 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
24425 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
24426 (oacc_replace_fn_attrib_attr): ... this new function.
24427 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
24428 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
24430 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24432 * config/arm/arm-cpus.in (ares): Rename to...
24433 (neoverse-n1): ... This. Add ares as alias.
24434 * config/arm/arm-tables.opt: Regenerate.
24435 * config/arm/arm-tune.md: Likewise.
24436 * doc/invoke.txt (ARM Options): Document neoverse-n1.
24438 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24440 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
24441 * config/aarch64/aarch64-tune.md: Regenerate.
24442 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
24444 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24446 * config/aarch64/aarch64.c (ares_tunings): Rename to...
24447 (neoversen1_tunings): ... This.
24448 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
24449 (neoverse-n1): New CPU.
24450 * config/aarch64/aarch64-tune.md: Regenerate.
24451 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
24453 2019-02-22 Richard Biener <rguenther@suse.de>
24455 PR middle-end/87609
24456 * cfghooks.h (dependence_hash): New typedef.
24457 (struct copy_bb_data): New type.
24458 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
24459 (duplicate_block): Likewise.
24460 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
24461 (copy_bbs): Create and pass down copy_bb_data.
24462 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
24463 (rtl_duplicate_bb): Likewise.
24464 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
24465 remap dependence info.
24467 2019-02-22 Richard Biener <rguenther@suse.de>
24469 PR tree-optimization/87609
24470 * tree-core.h (tree_base): Document special clique values.
24471 * tree-inline.c (remap_dependence_clique): Do not use the
24472 special clique value of one.
24473 (maybe_set_dependence_info): Use clique one.
24474 (clear_dependence_clique): New callback.
24475 (compute_dependence_clique): Clear clique one from all refs
24476 before assigning it (again).
24478 2019-02-21 Martin Sebor <msebor@redhat.com>
24480 * doc/extend.texi (__clear_cache): Correct signature.
24482 2019-02-21 Ian Lance Taylor <iant@golang.org>
24485 * varasm.c (decode_addr_const): Call lookup_constant_def rather
24486 than output_constant_def.
24487 (add_constant_to_table): New static function.
24488 (output_constant_def): Call add_constant_to_table.
24489 (tree_output_constant_def): Likewise.
24491 2019-02-21 Jakub Jelinek <jakub@redhat.com>
24494 * builtins.c (fold_builtin_arith_overflow): If first two args are
24495 INTEGER_CSTs, set intres and ovfres to constants rather than calls
24498 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
24501 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
24502 error for -mindirect-branch/-mfunction-return with incompatible
24505 2019-02-21 Jakub Jelinek <jakub@redhat.com>
24508 * constraints.md (q): Remove.
24509 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
24512 2019-02-21 Martin Jambor <mjambor@suse.cz>
24515 * omp-general.c (omp_extract_for_data): Removed a duplicate call
24516 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
24517 (omp_adjust_for_condition): ...here. Added necessary parameters.
24518 * omp-general.h (omp_adjust_for_condition): Updated declaration.
24519 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
24520 proper values to new parameters of omp_adjust_for_condition.
24522 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24524 PR middle-end/89412
24525 * expr.c (expand_assignment): If result is a MEM, use change_address
24526 instead of simplify_gen_subreg.
24528 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24529 David Malcolm <dmalcolm@redhat.com>
24531 PR middle-end/89091
24532 * fold-const.c (decode_field_reference): Return NULL_TREE if
24533 lang_hooks.types.type_for_size returns NULL. Check it before
24534 overwriting *exp_. Use return NULL_TREE instead of return 0.
24536 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24538 PR middle-end/88074
24539 PR middle-end/89415
24540 * toplev.c (do_compile): Double the emin/emax exponents to workaround
24543 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
24546 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
24547 TARGET_SSE in addition to TARGET_SSE_MATH.
24549 (ix86_excess_precision): Ditto.
24550 (ix86_float_exceptions_rounding_supported_p): Ditto.
24551 (use_rsqrt_p): Ditto.
24552 * config/i386/sse.md (rsqrt<mode>2): Ditto.
24554 2019-02-20 David Malcolm <dmalcolm@redhat.com>
24557 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
24558 linenum_arith_t when determining if two adjacent line spans are
24559 close enough to merge.
24560 (diagnostic_show_locus): Use linenum_arith_t when iterating over
24561 lines within each line_span.
24563 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
24566 * lra-constraints.c(uses_hard_regs_p): Fix handling of
24567 paradoxical SUBREGS.
24569 2019-02-20 Li Jia He <helijia@linux.ibm.com>
24572 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
24573 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
24574 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
24577 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
24579 * config/gcn/gcn.c (print_operand): Fix typo.
24581 2019-02-19 Richard Biener <rguenther@suse.de>
24583 PR middle-end/88074
24584 * toplev.c (do_compile): Initialize mpfr's exponent range
24585 based on available float modes.
24587 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
24589 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
24590 as long as the epilogue isn't completed.
24592 2019-02-18 Martin Sebor <msebor@redhat.com>
24594 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
24595 __has_cpp_attribute, and __has_include.
24597 2019-02-18 Martin Sebor <msebor@redhat.com>
24599 * doc/invoke.texi (-Wreturn-type): Correct and expand.
24601 2019-02-18 Martin Sebor <msebor@redhat.com>
24603 PR middle-end/89294
24604 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
24606 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
24608 2019-02-18 Richard Biener <rguenther@suse.de>
24610 PR tree-optimization/89296
24611 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
24612 of no-warning flag to cases that might emit the bogus warning.
24614 2019-02-18 Jakub Jelinek <jakub@redhat.com>
24617 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
24619 * config/arm/vfp.md (*movdi_vfp): Likewise.
24620 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
24621 "q" constraint for operands[0].
24624 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
24625 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
24626 pattern in a temporary buffer.
24627 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
24628 than 64-operands[2].
24631 * config/s390/s390.c (s390_indirect_branch_attrvalue,
24632 s390_indirect_branch_settings): Define unconditionally.
24633 (s390_set_current_function): Likewise, but guard the whole body except
24634 the s390_indirect_branch_settings call with
24635 #if S390_USE_TARGET_ATTRIBUTE.
24636 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
24638 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
24639 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
24640 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
24641 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
24642 HOST_WIDE_INT_1U instead of 1ULL.
24643 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
24644 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
24645 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
24646 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
24648 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
24651 2019-02-18 Martin Jambor <mjambor@suse.cz>
24653 PR tree-optimization/89209
24654 * tree-sra.c (create_access_replacement): New optional parameter
24655 reg_tree. Use it as a type if non-NULL and access type is not of
24657 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
24658 to create_access_replacement.
24659 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
24660 Check lacc is non-NULL before attempting to re-create it on the RHS.
24662 2019-02-18 Martin Liska <mliska@suse.cz>
24665 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
24667 (symbol_table::free_edge): Recycle m_summary_id.
24668 * cgraph.h (get_summary_id): New.
24669 (symbol_table::release_symbol): Set m_summary_id to -1
24671 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
24672 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
24673 function_summary to fast_function_summary.
24674 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
24675 * ipa-pure-const.c (class funct_state_summary_t):
24676 Switch from function_summary to fast_function_summary.
24677 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
24678 (class ipa_ref_opt_summary_t): Switch from function_summary
24679 to fast_function_summary.
24680 * symbol-summary.h (class function_summary_base): New class
24681 that is created from base of former function_summary.
24682 (function_summary_base::unregister_hooks): New.
24683 (class function_summary): Inherit from function_summary_base.
24684 (class call_summary_base): New class
24685 that is created from base of former call_summary.
24686 (class call_summary): Inherit from call_summary_base.
24687 (struct is_same): New.
24688 (class fast_function_summary): New summary class.
24689 (class fast_call_summary): New summary class.
24690 * vec.h (vec_safe_grow_cleared): New function.
24692 2019-02-18 Martin Liska <mliska@suse.cz>
24694 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
24695 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
24696 * doc/tm.texi: Document new target hook.
24697 * doc/tm.texi.in: Likewise.
24698 * target.def: Add new target macro.
24699 * gcc.c (find_fortran_preinclude_file): Do not search multilib
24702 2019-02-17 Alan Modra <amodra@gmail.com>
24705 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
24706 output reg on add insn.
24707 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
24709 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
24712 * config/i386/sse.md (ssedoublemode): Remove V4HI.
24713 (PMULHRSW): Likewise.
24714 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
24716 (ssse3_pmulhrswv4hi3): New expander.
24718 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
24720 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
24721 MMX. Add isa attribute.
24723 2019-02-16 Jakub Jelinek <jakub@redhat.com>
24725 PR rtl-optimization/66152
24726 * builtins.h (c_readstr): Declare.
24727 * builtins.c (c_readstr): Remove forward declaration. Add
24728 null_terminated_p argument, if false, read all bytes from the
24729 string instead of stopping after '\0'.
24730 * expr.c (string_cst_read_str): New function.
24731 (store_expr): Use string_cst_read_str instead of
24732 builtin_strncpy_read_str. Try to store by pieces the whole
24733 exp_len first, and only if that fails, split it up into
24734 store by pieces followed by clear_storage. Formatting fix.
24736 * config/i386/i386.md (*movqi_internal): Remove static from
24737 buf variable. Use output_asm_insn (buf, operands); return "";
24738 instead of return buf;.
24739 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
24740 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
24741 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
24743 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24745 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
24746 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
24747 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
24748 (CC1_SPEC): Likewise.
24749 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
24751 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24753 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
24754 the base address on 64-bit strict-alignment platforms.
24756 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
24758 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
24760 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24762 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
24764 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
24766 PR rtl-optimization/88308
24767 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
24768 on copied instruction.
24770 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24772 * final.c (insn_current_reference_address): Replace test on JUMP_P
24773 with test on jump_to_label_p.
24774 * config/visium/visium-passes.def: New file.
24775 * config/visium/t-visium (PASSES_EXTRA): Define.
24776 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
24777 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
24778 (TRAMPOLINE_ALIGNMENT): Define.
24779 * config/visium/visium.c (visium_option_override): Do not register
24780 the machine-specific reorg pass here.
24781 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
24783 (output_branch): Adjust threshold for long branch instruction.
24784 * config/visium/visium.md (cpu): Move around.
24785 (length): Adjust for the GR6.
24787 2019-02-15 Richard Biener <rguenther@suse.de>
24788 Jakub Jelinek <jakub@redhat.com>
24790 PR tree-optimization/89278
24791 * tree-loop-distribution.c: Include tree-eh.h.
24792 (generate_memset_builtin, generate_memcpy_builtin): Call
24793 rewrite_to_non_trapping_overflow on builtin->size before passing it
24794 to force_gimple_operand_gsi.
24796 2019-02-15 Jakub Jelinek <jakub@redhat.com>
24799 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
24801 * opth-gen.awk: Likewise.
24803 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24805 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
24806 Enable MMX, SSE and SSE2 by default.
24807 * config/i386/i386.c (ix86_option_override_internal): Do not
24808 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
24810 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24812 PR rtl-optimization/89354
24813 * combine.c (make_extraction): Punt if extraction_mode is narrower
24816 2019-02-14 Maya Rashish <coypu@sdf.org>
24818 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
24819 * config/netbsd-d.c: New file.
24820 * config/t-netbsd: Add netbsd-d.o
24822 2018-02-14 Steve Ellcey <sellcey@marvell.com>
24824 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
24825 affects_type_identity to true for aarch64_vector_pcs.
24826 (aarch64_comp_type_attributes): New function.
24827 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
24829 2019-02-14 Tamar Christina <tamar.christina@arm.com>
24832 * config/arm/iterators.md (ANY64): Add V4HF.
24834 2019-02-14 Martin Liska <mliska@suse.cz>
24836 PR rtl-optimization/89242
24837 * dce.c (delete_unmarked_insns): Call free_dominance_info we
24838 process a transformation.
24840 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24842 PR tree-optimization/89314
24843 * fold-const.c (fold_binary_loc): Cast strlen argument to
24844 const char * before dereferencing it. Formatting fixes.
24846 PR middle-end/89284
24847 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
24849 2019-02-13 Ian Lance Taylor <iant@golang.org>
24851 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
24852 and set current index for other optimizations.
24854 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
24856 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
24857 nonimmediate_operand as operand 2 predicate.
24858 (vec_set<VF2_512_256:mode>_0): Ditto.
24859 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
24860 (*vec_concatv2si): Remove alternative 2.
24861 (*vec_concatv4si_0): Use vm constraint for alternative 0.
24862 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
24863 (vec_concatv2di): Split alternatives 4,5,6 to ...
24864 (*vec_concatv2di_0) ... new pattern.
24866 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
24869 * config/arm/arm.c (ldm_stm_operation_p) Set
24870 addr_reg_in_reglist correctly for first register.
24871 (load_multiple_sequence): Remove dead base check.
24872 (gen_ldm_seq): Correctly set write_back for Thumb-1.
24874 2019-02-13 Tamar Christina <tamar.christina@arm.com>
24877 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
24878 Expose as @aarch64_pred_mov.
24879 * config/aarch64/aarch64.c (aarch64_classify_address):
24880 Use expand_insn which legitimizes operands.
24882 2019-02-13 Martin Liska <mliska@suse.cz>
24884 * builtins.h (expand_builtin_with_bounds): Remove declaration.
24885 * calls.c (struct arg_data): Remove special_slot, pointer_arg
24886 and pointer_offset fields.
24887 (initialize_argument_information): Remove usage of dead
24889 * cgraph.h (struct cgraph_thunk_info): Remove
24890 add_pointer_bounds_args.
24891 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
24893 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
24895 * config/i386/i386.c (ix86_function_arg_advance): Remove
24897 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
24898 (def_builtin): Remove usage of dead fields.
24899 (ix86_add_new_builtins): Likewise.
24900 * ipa-fnsummary.c (compute_fn_summary): Likewise.
24901 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24902 (sem_function::init): Likewise.
24903 (sem_variable::merge): Likewise.
24904 * ipa-visibility.c (function_and_variable_visibility): Likewise.
24905 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
24906 * lto-cgraph.c (lto_output_node): Likewise.
24907 (lto_output_varpool_node): Likewise.
24908 (input_node): Likewise.
24909 (input_varpool_node): Likewise.
24910 * lto-streamer-out.c (lto_output): Likewise.
24911 * tree-inline.c (expand_call_inline): Remove usage of
24913 * tree-inline.h (struct copy_body_data): Likewise.
24914 * varpool.c (varpool_node::dump): Likewise.
24916 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24918 PR middle-end/89303
24919 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24920 into pt->vars_contains_escaped_heap instead of setting
24921 pt->vars_contains_escaped_heap to it.
24923 PR middle-end/89281
24924 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24925 INTVAL (size), compare it to GET_MODE_MASK instead of
24926 1 << GET_MODE_BITSIZE.
24929 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24930 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24933 2019-02-13 Martin Liska <mliska@suse.cz>
24936 * cfgrtl.c (remove_barriers_from_footer): New function.
24937 (try_redirect_by_replacing_jump): Use it.
24938 (cfg_layout_redirect_edge_and_branch): Likewise.
24940 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24942 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24943 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24944 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24945 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24946 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24947 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24949 * config/rs6000/rs6000.c (builtin_function_type)
24950 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24951 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24952 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24953 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24954 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24956 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24958 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24959 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24961 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24964 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24965 268678 and revision 268657.
24966 (*movti_internal): Likewise.
24968 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24971 * config/s390/s390.c (s390_decompose_address): Update comment.
24972 (s390_check_qrst_address): Reject invalid address forms after
24975 2019-02-12 Martin Liska <mliska@suse.cz>
24978 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24979 we need default values of funct_state for a function that
24982 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24984 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24985 the object to pick the size of stores on strict-alignment platforms.
24987 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24988 (*movdi_insn_sp32): Likewise.
24989 (*movdi_insn_sp64): Likewise.
24991 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24994 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24995 types that needs constructiong.
24996 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24998 2019-02-12 Richard Biener <rguenther@suse.de>
25000 PR tree-optimization/89253
25001 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
25002 duplicate the loop.
25004 2019-02-11 David Malcolm <dmalcolm@redhat.com>
25007 * input.c (selftest::test_line_offset_overflow): New selftest.
25008 (selftest::input_c_tests): Call it.
25010 2019-02-11 Martin Sebor <msebor@redhat.com>
25012 PR tree-optimization/88771
25013 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
25014 when -Wstringop-overflow is set.
25015 (builtin_memref::builtin_memref): Adjust excessive upper bound
25016 only when lower bound is not excessive.
25017 (maybe_diag_overlap): Detect and diagnose excessive bounds via
25018 -Wstringop-ovefflow.
25019 (maybe_diag_offset_bounds): Rename...
25020 (maybe_diag_access_bounds): ...to this.
25021 (check_bounds_or_overlap): Adjust for name change above.
25023 2019-02-11 Martin Sebor <msebor@redhat.com>
25026 * builtins.c (max_object_size): Move from here...
25027 * builtins.h (max_object_size): ...and here...
25028 * tree.c (max_object_size): ...to here...
25029 * tree.h (max_object_size): ...and here.
25031 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
25033 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
25034 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
25035 for correct semantics.
25037 2019-02-11 Alan Modra <amodra@gmail.com>
25039 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
25040 -mlongcall and -mpltseq.
25041 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
25042 (RS/6000 and PowerPC Options <-mpltseq>): Document.
25043 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
25044 * config/rs6000/sysv4.opt (mpltseq): New option.
25045 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
25046 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
25047 support is lacking. Don't allow -mpltseq with -mbss-plt.
25048 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
25049 -mpltseq given for ELFv1.
25050 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
25051 Only use UNSPEC_PLTSEQ for inline PLT calls.
25052 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
25053 use UNSPEC_PLTSEQ for inline PLT calls.
25054 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
25055 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
25056 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
25057 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
25058 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
25059 (pltseq_mtctr_<mode>): Likewise.
25061 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25063 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
25065 * configure: Regenerate.
25067 2019-02-11 Jakub Jelinek <jakub@redhat.com>
25070 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
25073 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
25075 * function.c (assign_parm_setup_block): Use the stored
25076 size, not the passed size, when allocating stack-space,
25077 also for a parameter with alignment larger than
25078 MAX_SUPPORTED_STACK_ALIGNMENT.
25080 2019-02-11 Martin Liska <mliska@suse.cz>
25083 * ipa-cp.c (build_toporder_info): Remove usage of a param.
25084 * ipa-inline.c (inline_small_functions): Likewise.
25085 * ipa-pure-const.c (propagate_pure_const): Likewise.
25086 (propagate_nothrow): Likewise.
25087 * ipa-reference.c (propagate): Likewise.
25088 * ipa-utils.c (struct searchc_env): Remove unused field.
25089 (searchc): Always search across AVAIL_INTERPOSABLE.
25090 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
25091 the only called IPA pure const can properly not propagate
25092 across interposable boundary.
25093 * ipa-utils.h (ipa_reduced_postorder): Remove param.
25095 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
25097 * config/nds32/nds32.md (call_internal, call_value_internal,
25098 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
25100 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
25102 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
25105 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
25107 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
25110 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
25112 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
25114 2019-02-10 Jakub Jelinek <jakub@redhat.com>
25116 PR tree-optimization/89268
25117 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
25118 if preds is non-NULL.
25120 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25123 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
25126 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
25128 * config/nds32/nds32.md (trap): New pattern.
25130 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
25132 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
25135 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
25137 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
25140 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25142 * ipa-visibility.c (localize_node): Also do not localize
25143 LDPR_PREVAILING_DEF_IRONLY_EXP.
25145 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25148 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
25149 instead of type_with_linkage.
25151 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25154 * params.def (uninlined-function-insns, uninlined-function-time,
25155 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
25156 bound so we don't get overflows.
25158 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
25160 * config/rs6000/rs6000-string.c (expand_compare_loop,
25161 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
25164 2019-02-09 Jakub Jelinek <jakub@redhat.com>
25166 PR middle-end/89246
25167 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25168 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
25169 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
25171 2019-02-09 Alan Modra <amodra@gmail.com>
25174 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
25175 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
25178 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
25180 PR middle-end/88560
25181 * lra-constraints.c (process_alt_operands): Don't increase reject
25182 for memory when offset memory is required.
25184 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
25186 * config/s390/vector.md: Implement vector copysign.
25188 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
25190 * expr.c (expand_constructor): Correct indentations.
25192 2019-02-08 Richard Biener <rguenther@suse.de>
25194 PR tree-optimization/89247
25195 * tree-if-conv.c: Include tree-cfgcleanup.h.
25196 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
25197 (tree_if_conversion): Pass through predicate vector.
25198 (pass_if_conversion::execute): Do CFG cleanup and SSA update
25199 inline, see if any if-converted loops we refrece in
25200 LOOP_VECTORIZED calls vanished and fixup.
25201 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
25203 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
25205 * config/s390/constraints.md (jdd): New constraint.
25207 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
25210 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
25211 upper 16 vector registers without TARGET_AVX512VL.
25212 (*movti_internal): Likewise.
25214 2019-02-08 Jakub Jelinek <jakub@redhat.com>
25216 PR rtl-optimization/89234
25217 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
25218 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
25219 (copy_reg_eh_region_note_backward): Likewise.
25221 2019-02-08 Richard Biener <rguenther@suse.de>
25223 PR middle-end/89223
25224 * tree-data-ref.c (initialize_matrix_A): Fail if constant
25225 doesn't fit in HWI.
25226 (analyze_subscript_affine_affine): Handle failure from
25227 initialize_matrix_A.
25229 2019-02-08 Jakub Jelinek <jakub@redhat.com>
25231 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
25234 2019-02-07 David Malcolm <dmalcolm@redhat.com>
25236 PR tree-optimization/86637
25237 PR tree-optimization/89235
25238 * tree-vect-loop.c (optimize_mask_stores): Add an
25239 auto_purge_vect_location sentinel to ensure that vect_location is
25241 * tree-vectorizer.c
25242 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
25243 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
25244 to ensure that vect_location is purged on exit.
25245 (pass_slp_vectorize::execute): Likewise, replacing the manual
25247 * tree-vectorizer.h (class auto_purge_vect_location): New class.
25249 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25251 * config/aarch64/iterators.md (max_opp): New code_attr.
25252 (USMAX): New code iterator.
25253 * config/aarch64/predicates.md (aarch64_smin): New predicate.
25254 (aarch64_smax): Likewise.
25255 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
25256 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
25259 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
25262 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
25263 for TARGET_AVX512VL.
25264 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
25266 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
25268 * config/s390/s390-builtin-types.def: Add new types.
25269 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
25270 (s390_vec_xlw4): Make the memory operand into a const pointer.
25271 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
25273 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
25274 a new vector type with the alignment of the scalar memory operand.
25276 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
25277 Jakub Jelinek <jakub@redhat.com>
25280 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
25281 arm_count_ldrdstrd_insns): New declarations.
25282 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
25284 (valid_operands_ldrd_strd): New function.
25285 (arm_count_ldrdstrd_insns): New function.
25286 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
25287 sets instead of single DImode set and define new insns to match this.
25289 2019-02-07 Tamar Christina <tamar.christina@arm.com>
25291 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
25292 Make it a C initializer.
25294 2019-02-07 Tamar Christina <tamar.christina@arm.com>
25297 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
25299 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25301 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
25302 Use neon_dot<q> for type.
25303 (neon_<sup>dot_lane<vsi2qi>): Likewise.
25305 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25307 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
25308 Use neon_dot<q> for type.
25309 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
25310 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
25312 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
25314 PR rtl-optimization/89225
25315 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
25318 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
25320 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
25321 after restoring registers saved to allocate the frame on Windows.
25323 2019-02-06 Richard Biener <rguenther@suse.de>
25325 PR tree-optimization/89182
25326 * graphite.h (cached_scalar_evolution_in_region): Declare.
25327 * graphite.c (struct seir_cache_key): New.
25328 (struct sese_scev_hash): Likewise.
25329 (seir_cache): New global.
25330 (cached_scalar_evolution_in_region): New function.
25331 (graphite_transform_loops): Allocate and release seir_cache.
25332 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
25333 cached_scalar_evolution_in_region.
25334 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25336 (scop_detection::graphite_can_represent_expr: Use
25337 cached_scalar_evolution_in_region.
25338 (scop_detection::stmt_simple_for_scop_p): Likewise.
25339 (find_params_in_bb): Likewise.
25340 (gather_bbs::before_dom_children): Likewise.
25341 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
25342 (add_loop_constraints): Likewise.
25344 2019-02-06 Jakub Jelinek <jakub@redhat.com>
25346 PR middle-end/89210
25347 * fold-const-call.c (fold_const_vec_convert): Pass true as last
25348 operand to new_unary_operation only if both element types are integral
25349 and it isn't a widening conversion. Return NULL_TREE if
25350 new_unary_operation failed.
25352 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
25355 * config/s390/s390.md: Remove load and test FP splitter.
25357 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
25360 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
25361 expand_compare_loop, expand_block_compare_gpr,
25362 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
25363 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
25364 #include "profile-count.h" and "predict.h" for types and functions
25365 needed to work with REG_BR_PROB notes.
25367 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
25370 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
25371 for the long branch case.
25373 2019-02-05 Jakub Jelinek <jakub@redhat.com>
25376 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
25377 can throw, non-call exceptions are enabled and we can't delete
25378 dead exceptions or alter cfg. Set must_clean if
25379 delete_insn_and_edges returns true, don't set it blindly for calls.
25380 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
25382 PR rtl-optimization/89195
25383 * combine.c (make_extraction): For MEMs, don't extract bytes outside
25384 of the original MEM.
25386 2019-02-05 Martin Liska <mliska@suse.cz>
25388 PR gcov-profile/89000
25389 * gcov.c (function_summary): Remove argument.
25390 (file_summary): New function.
25391 (print_usage): Replace tabs with spaces.
25392 (generate_results): Use new function file_summary.
25394 2019-02-05 Jakub Jelinek <jakub@redhat.com>
25397 * optabs.c (prepare_cmp_insn): Pass x and y to
25398 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
25400 2019-02-05 Richard Biener <rguenther@suse.de>
25402 PR middle-end/89150
25403 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
25404 (struct bitmap_element): Drop chain_prev so we properly recurse on
25405 the prev member, supporting tree views.
25406 (struct bitmap_head): GTY skip the obstack member.
25408 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
25411 * doc/extend.texi (Vector Extensions): Add an example of using vector
25412 types together with x86 intrinsics.
25414 2019-02-04 Alan Modra <amodra@gmail.com>
25416 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
25417 str[] size to 160, and comment.
25419 2019-02-04 Alan Modra <amodra@gmail.com>
25421 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
25422 (rs6000_pltseq_template): Guard output of TLS markers with
25423 TARGET_TLS_MARKERS.
25424 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
25425 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
25426 to use inline PLT sequences.
25427 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
25428 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
25429 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
25431 2019-02-04 Martin Liska <mliska@suse.cz>
25434 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
25435 out when ipa_fn_summaries does not contain entry for callee.
25437 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
25439 * config/sparc/sparc.h: Remove superfluous blank lines.
25440 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
25441 (got_register_rtx): ...this.
25442 (sparc_got): Adjust to above renaming.
25443 (sparc_tls_got): Likewise.
25444 (sparc_delegitimize_address): Likewise.
25445 (sparc_output_mi_thunk): Likewise.
25446 (sparc_init_pic_reg): Likewise.
25447 (save_local_or_in_reg_p): Fix test on the GOT register.
25448 (USE_HIDDEN_LINKONCE): Move around.
25449 (get_pc_thunk_name): Likewise.
25450 (gen_load_pcrel_sym): Likewise.
25451 (load_got_register): Likewise.
25453 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
25455 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
25456 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
25458 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
25460 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
25461 into consideration.
25463 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
25465 * config.gcc (with_nds32_lib, glibc):
25466 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
25467 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
25468 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
25470 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
25473 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
25474 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
25475 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
25476 (*rcpsf2_sse): Ditto.
25477 (*rsqrtsf2_sse): Ditto.
25478 (sse4_1_round<mode<2): Ditto.
25480 2019-02-03 Richard Biener <rguenther@suse.de>
25483 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
25486 2019-02-02 Jakub Jelinek <jakub@redhat.com>
25488 PR middle-end/87887
25489 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25490 Punt with warning on aggregate return or argument types. Ignore
25491 type/mode checking for uniform arguments.
25493 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
25495 * combine.c (try_combine): Do not print "Can't combine" messages unless
25496 printing failed combination attempts.
25498 2019-02-01 Martin Jambor <mjambor@suse.cz>
25501 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
25502 segment and global segment variables before making them static.
25504 2019-02-01 Martin Jambor <mjambor@suse.cz>
25506 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
25507 missed optimization dump with dump_enabled_p.
25509 2019-02-01 Richard Biener <rguenther@suse.de>
25511 PR middle-end/88597
25512 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
25513 the instantiate cache.
25514 (instantiate_scev_binary): Elide second operand procesing
25515 if equal to the first.
25516 * tree-chrec.c (chrec_contains_symbols): Add visited set.
25517 (chrec_contains_undetermined): Likewise.
25518 (tree_contains_chrecs): Likewise.
25520 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
25522 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
25524 2019-02-01 Jakub Jelinek <jakub@redhat.com>
25526 PR tree-optimization/89143
25527 * wide-int-range.h (wide_int_range_absu): Declare.
25528 * wide-int-range.cc (wide_int_range_absu): New function.
25529 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
25531 PR tree-optimization/88107
25532 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
25533 instead of assertion that eh_region_outermost is non-NULL, if it
25534 is NULL, set *ALL to true and return NULL.
25535 (move_sese_region_to_fn): Adjust caller, if all is set, call
25536 duplicate_eh_regions with NULL region.
25538 2019-02-01 Richard Biener <rguenth@suse.de>
25540 PR rtl-optimization/88593
25541 * mode-switching.c (optimize_mode_switching): Free dominators before
25542 calling cleanup_cfg.
25544 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
25546 PR tree-optimization/88932
25547 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
25549 2019-01-31 Jakub Jelinek <jakub@redhat.com>
25551 PR middle-end/89137
25552 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
25553 bogus clang warning.
25555 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
25558 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
25559 alternative to avoid partial SSE register stall for TARGET_AVX.
25560 (truncdfsf2): Ditto.
25561 (sse4_1_round<mode>2): Ditto.
25563 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
25565 PR tree-optimization/89008
25566 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
25567 process anything of the form X * 0.
25569 2019-01-31 Richard Biener <rguenther@suse.de>
25571 PR tree-optimization/89135
25572 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
25573 with abnormal preds.
25575 2019-01-31 Jakub Jelinek <jakub@redhat.com>
25578 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
25579 always_inline callees into no_sanitize_address callers.
25581 2019-01-31 Richard Biener <rguenther@suse.de>
25583 PR rtl-optimization/89115
25584 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
25586 2019-01-30 Martin Sebor <msebor@redhat.com>
25589 * doc/extend.texi (cast to a union): Correct and expand.
25591 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
25593 PR rtl-optimization/87246
25594 * lra-constraints.c (simplify_operand_subreg): Reload memory
25595 in subreg if the address became invalid.
25597 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
25600 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
25601 Disable for little-endian.
25603 2019-01-30 Richard Biener <rguenther@suse.de>
25605 PR rtl-optimization/89115
25606 * opts.c (default_options_optimization): Reduce
25607 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
25608 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
25611 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
25613 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
25614 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
25615 type of vector element when vec_extract is implemented by direct
25618 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
25620 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
25622 2019-01-30 Richard Biener <rguenther@suse.de>
25624 PR tree-optimization/89111
25625 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
25626 canonicalization to appropriately sized access types.
25628 2019-01-30 Jakub Jelinek <jakub@redhat.com>
25631 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
25632 for arguments to functions that are TU-local and shouldn't be
25633 referenced by assembly.
25635 2019-01-30 Ulrich Drepper <drepper@redhat.com>
25637 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
25640 2019-01-29 Martin Sebor <msebor@redhat.com>
25643 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
25645 2019-01-29 Jakub Jelinek <jakub@redhat.com>
25649 * omp-simd-clone.c (simd_clone_clauses_extract)
25650 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
25651 OMP_CLAUSE_ALIGNED_ALIGNMENT.
25653 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
25655 * config.gcc: Force .init_array for ARC.
25657 2019-01-29 Richard Biener <rguenther@suse.de>
25660 * dwarf2out.c (collect_skeleton_dies): New helper.
25661 (copy_decls_for_unworthy_types): Call it.
25662 (build_abbrev_table): Assert we do not try to replace
25663 DW_AT_signature refs with local refs.
25665 2019-01-28 Jakub Jelinek <jakub@redhat.com>
25667 PR middle-end/89002
25668 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
25669 for lastprivate/linear IV, push gimplify context around gimplify_assign
25670 and, if it needed any temporaries, pop it into a gimple bind around the
25673 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
25675 * common.opt (-Wattribute-alias): Remove "no-" from name.
25676 Make -Wattribute-alias command line option and
25677 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
25679 2019-01-28 Jakub Jelinek <jakub@redhat.com>
25682 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
25683 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
25685 (bmi2): Add missing @opindex.
25686 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
25687 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
25688 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
25689 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
25690 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
25691 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
25692 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
25693 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
25694 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
25695 xsavec, xsaveopt and xsaves options.
25697 2019-01-28 Richard Biener <rguenther@suse.de>
25700 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
25703 2019-01-28 Richard Biener <rguenther@suse.de>
25705 PR tree-optimization/88739
25706 * tree-cfg.c (verify_types_in_gimple_reference): Verify
25707 BIT_FIELD_REFs only are applied to mode-precision operands
25708 when they are integral.
25709 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
25710 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
25711 BIT_FIELD_REFs of non-mode-precision integral operands.
25713 2019-01-27 Jakub Jelinek <jakub@redhat.com>
25716 * config/i386/sse.md
25717 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
25718 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
25719 first constants in pairs are multiples of 2. Formatting fixes.
25720 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
25721 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
25722 first constants in each quadruple are multiples of 4. Formatting fixes.
25724 2019-01-26 Martin Jambor <mjambor@suse.cz>
25727 * tree-inline.c: Include tree-cfgcleanup.h.
25728 (delete_unreachable_blocks_update_callgraph): Move...
25729 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
25730 ...here, make externally visible, make second argument bool, adjust
25732 * tree-cfgcleanup.c: Include cgraph.h.
25733 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
25735 * ipa-prop.c: Include tree-cfgcleanup.h.
25736 (ipcp_transform_function): Call
25737 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
25739 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
25741 PR rtl-optimization/88846
25742 * ira.c (process_set_for_memref_referenced_p): New.
25743 (memref_referenced_p): Add new param. Use
25744 process_set_for_memref_referenced_p. Add new switch cases.
25745 (memref_used_between_p): Pass new arg to memref_referenced_p.
25747 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
25750 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
25751 argument ABI_BREAK. Set to true if the calculated alignment has
25752 changed in gcc-9. Check bit-fields for their base type alignment.
25753 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
25754 (aarch64_function_arg_boundary): Likewise.
25755 (aarch64_gimplify_va_arg_expr): Likewise.
25757 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25759 PR middle-end/89037
25760 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
25761 instead of accessing TREE_INT_CST_ELT directly.
25763 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
25765 * doc/sourcebuild.texi (Environment attributes): Add fenv and
25766 fenv_exceptions description.
25768 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
25770 PR rtl-optimization/87763
25771 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
25772 Allow SUBREG when matching CC_NZmode compare.
25774 2019-01-25 Richard Biener <rguenther@suse.de>
25776 PR tree-optimization/89049
25777 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
25778 Look at the pattern stmt to determine if the stmt is vectorized.
25780 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25782 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
25783 (pred_mov<mode>): Handle all-register forms using both a new
25784 alternative and a split.
25786 2019-01-25 Richard Biener <rguenther@suse.de>
25788 PR tree-optimization/86865
25789 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25790 Reject non-do-while loops.
25792 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
25794 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
25795 * config/rs6000/constraints.md (Q constraint): Use REG_P.
25796 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
25797 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25798 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
25799 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25800 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
25801 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
25802 vlogical_operand, gpc_reg_operand, int_reg_operand,
25803 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
25804 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
25805 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
25806 (save_world_operation, restore_world_operation, lmw_operation,
25807 stmw_operation): Use MEM_P and REG_P.
25808 (tie_operand): Use MEM_P.
25809 (vrsave_operation, crsave_operation): Use REG_P.
25810 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
25811 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
25812 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
25813 (call_operand): Use HARD_REGISTER_P.
25814 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
25816 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
25817 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
25818 quad_aligned_load_p, replace_swapped_aligned_store,
25819 recombine_lvx_pattern, replace_swapped_aligned_load,
25820 recombine_stvx_pattern): Use MEM_P.
25821 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
25822 Use MEM_P and SYMBOL_REF_P.
25823 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
25824 (insn_is_swappable_p): Use REG_P and MEM_P.
25825 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
25826 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
25828 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
25829 Use CONST_DOUBLE_P.
25830 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
25832 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
25833 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
25834 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
25835 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
25837 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25838 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
25839 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
25840 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
25841 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
25842 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
25843 rs6000_split_logical_di): Use CONST_INT_P.
25844 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
25845 REG_P and SYMBOL_REF_P.
25846 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
25847 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
25848 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
25849 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
25850 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
25851 (small_data_operand, print_operand_address): Use CONST_INT_P and
25853 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
25854 (rs6000_init_hard_regno_mode_ok, direct_move_p):
25855 Use HARD_REGISTER_NUM_P.
25856 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
25857 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
25858 SUBREG_P and SYMBOL_REF_P.
25859 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
25860 and HARD_REGISTER_NUM_P.
25861 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
25863 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
25864 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
25866 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
25867 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
25868 find_addr_reg): Use REG_P.
25869 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
25870 (rs6000_emit_le_vsx_move): Use SUBREG_P.
25871 (offsettable_ok_by_alignment, constant_pool_expr_p,
25872 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
25873 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
25874 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
25875 rs6000_assemble_integer, create_TOC_reference,
25876 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
25877 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
25878 (rs6000_split_vec_extract_var): Use reg_or_subregno.
25879 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25880 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25881 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25882 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25883 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
25884 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
25885 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
25886 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
25887 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
25888 and cbranch<mode>4): Use CONST_INT_P.
25889 (multiple define_splits): Use REG_P and SUBREG_P.
25890 (define_expands call, call_value): Use MEM_P.
25891 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
25892 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
25893 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
25894 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
25895 and HARD_REGISTER_NUM_P.
25896 (multiple define_splits): Use HARD_REGISTER_NUM_P.
25898 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
25900 PR rtl-optimization/88948
25901 * rtl.h (prepare_copy_insn): New prototype.
25902 * gcse.c (prepare_copy_insn): New function, split out from
25903 process_insert_insn.
25904 (process_insert_insn): Use prepare_copy_insn.
25905 * store-motion.c (replace_store_insn): Use prepare_copy_insn
25906 instead of gen_move_insn.
25908 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25911 * config/i386/i386.c (ix86_pic_register_p): Return true for
25912 UNSPEC_SET_GOT too.
25914 PR tree-optimization/88964
25915 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25916 punt if HONOR_SNANS (chrec).
25918 PR middle-end/89015
25919 * tree-nested.c (convert_nonlocal_reference_stmt,
25920 convert_local_reference_stmt, convert_tramp_reference_stmt,
25921 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25922 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25923 or GIMPLE_OMP_TASK.
25925 PR tree-optimization/89027
25926 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25927 for "omp simd array" variables.
25929 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25932 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25933 force the alignment of m_val.
25935 2019-01-24 Richard Biener <rguenther@suse.de>
25938 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25939 When in "legacy" debug mode make sure to reset self-origins.
25941 2019-01-24 Martin Liska <mliska@suse.cz>
25943 PR gcov-profile/88994
25944 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25945 result will be always smaller or equal to the original.
25946 * gcov.c (mangle_name): Fix else branch where we should
25947 also copy to PTR and shift the pointer.
25949 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25951 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25952 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25954 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25956 * common/config/i386/i386-common.c
25957 (OPTION_MASK_ISA_ENQCMD_SET,
25958 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25959 (ix86_handle_option): Handle -menqcmd.
25960 * config.gcc (enqcmdintrin.h): New header file.
25961 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25962 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25964 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25966 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25967 __builtin_ia32_enqcmds): New builtins.
25968 * config/i386/i386-c.c (__ENQCMD__): New macro.
25969 * config/i386/i386-option.c (ix86_target_string): Add
25971 (ix86_valid_target_attribute_inner_p): Likewise.
25972 * config/i386/i386-expand.c
25973 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25974 IX86_BUILTIN_ENQCMDS.
25975 * config/i386/i386.h (TARGET_ENQCMD): New.
25976 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25977 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25978 (movdir64b_<mode>): Parameterize to enable share expansion code
25979 with ENQCMD in function ix86_expand_builtin.
25980 * config/i386/i386.opt: Add -menqcmd.
25981 * config/i386/immintrin.h: Include enqcmdintrin.h.
25982 * config/i386/enqcmdintrin.h: New intrinsic file.
25983 * doc/invoke.texi: Add -menqcmd.
25985 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25986 Steve Ellcey <sellcey@marvell.com>
25989 * recog.c (address_operand): Return false on wrong mode for address.
25990 (constrain_operands): Check for mode with 'p' constraint.
25992 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25995 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25996 Disparage MMX alternative.
25997 (sse2_cvtpd2pi): Ditto.
25998 (sse2_cvttpd2pi): Ditto.
26000 2019-01-23 David Malcolm <dmalcolm@redhat.com>
26003 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
26004 use-after-free of the result of
26005 aarch64_get_extension_string_for_isa_flags.
26007 2019-01-23 Jakub Jelinek <jakub@redhat.com>
26010 * doc/extend.texi: Document break and continue behavior in
26011 statement expressions.
26013 2019-01-23 Richard Biener <rguenther@suse.de>
26015 PR tree-optimization/89008
26016 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
26017 not leave another stray operand.
26019 2019-01-23 Jakub Jelinek <jakub@redhat.com>
26021 * BASE-VER: Bump to 9.0.1.
26023 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
26025 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
26026 thunk that returns by reference, use the type of the return object
26027 of the thunk instead of that of the alias to build the dereference.
26029 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
26031 * config/arc/atomic.md: Add operand to DMB instruction.
26033 2019-01-23 Jakub Jelinek <jakub@redhat.com>
26035 PR tree-optimization/88964
26036 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
26037 build_zero_cst instead of build_int_cst. Return false for loop
26038 invariants which honor signed zeros.
26040 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
26042 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
26044 2019-01-22 Jakub Jelinek <jakub@redhat.com>
26047 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
26048 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
26049 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
26051 PR middle-end/88968
26052 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
26053 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
26056 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
26057 Disable for little endian.
26059 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
26062 * config/arm/arm.c (arm_needs_double_word_align): Check
26063 DECL_BIT_FIELD_TYPE.
26065 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
26066 H.J. Lu <hongjiu.lu@intel.com>
26069 * config/i386/i386-builtin.def: Add mask2 to all builtin
26070 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
26072 * config/i386/i386.c (BDESC): Add mask2 to the definition.
26073 (BDESC_FIRST): Likewise.
26074 (define_builtin): Add an argument for mask2. Updated to handle
26075 both ix86_isa_flags and ix86_isa_flags2.
26076 (define_builtin_const): Likewise.
26077 (define_builtin_pure): Likewise.
26078 (define_builtin2): Deleted.
26079 (define_builtin_const2): Likewise.
26080 (builtin_description): Add a member, mask2.
26081 (bdesc_*): Add mask2 to builtin initializations.
26082 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
26083 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
26085 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
26087 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
26090 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
26093 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
26096 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
26097 alignment is dominated by a bitfield with 64-bit aligned base type.
26098 (arm_function_arg): Emit a warning if the alignment has changed since
26099 earlier GCC releases.
26100 (arm_function_arg_boundary): Likewise.
26101 (arm_setup_incoming_varargs): Likewise.
26103 2019-01-22 Richard Biener <rguenther@suse.de>
26105 PR tree-optimization/88862
26106 * graphite-scop-detection.c
26107 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
26109 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
26111 * doc/extend.tex (AMD GCN Function Attributes): New section.
26112 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
26113 * doc/invoke.texi (AMD GCN Options): New section.
26114 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
26116 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
26118 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
26119 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
26121 2019-01-22 Jakub Jelinek <jakub@redhat.com>
26123 PR tree-optimization/88044
26124 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
26125 is false in the first iteration, but !every_iteration, return false
26126 instead of true with niter->niter zero.
26128 PR rtl-optimization/88904
26129 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
26130 any nonequal registers before processing BB_END (b).
26133 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
26135 (expand_binop_directly, expand_doubleword_clz,
26136 expand_doubleword_popcount, expand_ctz, expand_ffs,
26137 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
26139 PR rtl-optimization/49429
26141 PR rtl-optimization/86334
26143 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
26144 addressable from here...
26145 (emit_block_op_via_libcall): ... to here.
26147 2019-01-22 Richard Biener <rguenther@suse.de>
26149 * tree-vect-loop.c (vect_analyze_loop_operations): Use
26150 auto_vec for cost vector to fix memleak.
26151 (vectorize_fold_left_reduction): Properly gather SLP defs.
26152 (vectorizable_comparison): Do not swap operands to properly
26155 2019-01-22 Alan Modra <amodra@gmail.com>
26158 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
26159 stays a reg. Allow a const_int.
26160 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
26161 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
26162 (IS_NOMARK_TLSGETADDR): Define.
26163 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
26164 (rs6000_output_tlsargs): New function.
26165 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
26166 __tls_get_addr call takes an arg.
26167 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
26168 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
26170 (call_value_nonlocal_sysv): ..or here, delete split.
26171 (tls_gdld_nomark): Delete.
26172 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
26173 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
26174 (call_value_nonlocal_sysv): Likewise.
26175 (call_value_nonlocal_sysv_secure): Likewise.
26176 (call_value_nonlocal_aix): Likewise.
26177 (call_value_indirect_aix): Likewise.
26178 (call_value_indirect_elfv2): Likewise.
26179 (call_value_local32, call_value_local64): Disable for no-mark tls.
26180 (call_value_local_aix): Likewise.
26182 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
26185 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
26186 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
26188 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
26190 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
26191 string contents as hash_map keys.
26193 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26196 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
26197 for rvalue context. Handle rvalues correctly. Use min_align_of_type
26198 instead of TYPE_ALIGN.
26199 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
26200 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
26201 pointer from TYPE_STUB_DECL.
26203 2019-01-21 Richard Biener <rguenther@suse.de>
26205 PR tree-optimization/88934
26206 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
26207 at the possibly non-constant operand.
26208 (vect_get_constant_vectors): Adjust.
26210 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
26213 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
26214 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
26215 instead of _X86INTRIN_H_INCLUDED.
26216 * onfig/i386/clwbintrin.h: Likewise.
26217 * config/i386/pkuintrin.h: Likewise.
26218 * config/i386/prfchwintrin.h: Likewise.
26219 * config/i386/rdseedintrin.h: Likewise.
26220 * config/i386/wbnoinvdintrin.h: Likewise.
26221 * config/i386/xsavecintrin.h: Likewise.
26222 * config/i386/xsavesintrin.h: Likewise.
26223 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
26224 * config/i386/xsaveintrin.h: Likewise.
26225 * config/i386/xsaveoptintrin.h: Likewise.
26226 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
26227 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
26228 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
26229 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
26230 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
26231 * config/i386/immintrin.h: Here.
26233 2019-01-20 Martin Jambor <mjambor@suse.cz>
26236 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
26237 with aa_walk_budget.
26238 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
26239 aa_walk_budget_p parameter.
26240 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
26241 walk. Updated all callers.
26242 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
26243 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
26245 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
26246 parameter info. Extract info from fbi. Pass fbi to recursive calls
26247 and to unmodified_parm.
26248 (phi_result_unknown_predicate): New parameter fbi, removed parameter
26249 info, updated call to will_be_nonconstant_expr_predicate.
26250 (param_change_prob): New parameter fbi, limit AA walking.
26251 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
26252 calls to various above functions.
26253 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
26254 parameter. Use it to limit AA walking.
26255 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
26256 fbi, limit AA walk.
26257 (detect_type_change): New parameter fbi, pass it on to
26258 detect_type_change_from_memory_writes.
26259 (detect_type_change_ssa): Likewise.
26260 (aa_overwalked): Removed.
26261 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
26262 accordingly, adjust to the neew AA limiting scheme.
26263 (parm_ref_data_preserved_p): Likewise.
26264 (ipa_compute_jump_functions_for_edge): Adjust call to
26266 (ipa_analyze_call_uses): Likewise.
26267 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
26268 (ipa_analyze_node): Initialize aa_walk_budget.
26269 (ipcp_transform_function): Likewise.
26270 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
26271 to get_dynamic_type.
26273 2019-01-19 Jakub Jelinek <jakub@redhat.com>
26275 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
26276 outside of #if CHECKING_P code.
26278 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
26280 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
26281 New function, split out from...
26282 (loop_versioning::analyze_stride): ...here.
26283 (loop_versioning::find_per_loop_multiplication): Use gassign.
26284 (loop_versioning::analyze_term_using_scevs): Return a success code.
26285 (loop_versioning::analyze_arbitrary_term): New function.
26286 (loop_versioning::analyze_address_fragment): Use
26287 analyze_arbitrary_term if all else fails.
26289 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
26292 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
26295 2019-01-18 Richard Biener <rguenther@suse.de>
26297 PR tree-optimization/88903
26298 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
26299 scalar stmts a SLP shift amount is composed of when detecting
26302 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
26305 * config/arm/arm-cpus.in (mp): New feature.
26306 (sec): New feature.
26307 (fgroup ARMv7ve): Add mp and sec features.
26308 (arch armv7-a): Add options to allow mp and sec extensions.
26309 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
26310 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
26311 extenstions to the base architecture.
26312 (cpu cortex-a8): Add sec extension to the base architecture.
26313 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
26314 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
26315 variants down to the base v7-a varaint.
26316 * config/arm/t-multilib (v7_a_arch_variants): New variable.
26317 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
26318 of permitted extensions for -march=armv7-a and for
26319 -mcpu=generic-armv7-a.
26321 2019-01-18 Martin Liska <mliska@suse.cz>
26323 * params.def: Fix comment.
26324 * tree-profile.c (gimple_init_gcov_profiler): Bump function
26326 (gimple_gen_ic_func_profiler): Likewise.
26328 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26330 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
26331 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
26332 and put in error checks for stack protector guard options.
26333 (aarch64_stack_protect_guard): New.
26334 (TARGET_STACK_PROTECT_GUARD): Define.
26335 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
26336 (reg_stack_protect_address<mode>): New.
26337 (stack_protect_set): Adjust for SSP_GLOBAL.
26338 (stack_protect_test): Likewise.
26339 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
26340 (-mstack-protector-guard): Likewise.
26341 (-mstack-protector-guard-offset): Likewise.
26343 2019-01-18 Jakub Jelinek <jakub@redhat.com>
26345 PR tree-optimization/86214
26346 * tree-inline.h (struct copy_body_data): Add
26347 add_clobbers_to_eh_landing_pads member.
26348 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
26349 (copy_edges_for_bb): Call it if EH edge destination is <
26350 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
26351 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
26352 if flag_stack_reuse != SR_NONE and clear it afterwards.
26354 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
26357 * doc/install.texi (with-multilib-list): Document for aarch64.
26359 2019-01-18 Jakub Jelinek <jakub@redhat.com>
26362 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
26363 (("..."))) with ("...").
26365 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
26367 * doc/extend.texi (Built-in Functions for Memory Model Aware
26368 Atomic Operations): Document atomic fetch and nand.
26370 2019-01-18 Martin Liska <mliska@suse.cz>
26371 Richard Biener <rguenther@suse.de>
26373 PR middle-end/88587
26374 * cgraph.h (create_version_clone_with_body): Add new argument
26376 * cgraphclones.c (cgraph_node::create_version_clone): Add
26377 DECL_ATTRIBUTES to a newly created decl. And call
26378 valid_attribute_p so that proper cl_target_optimization_node
26379 is set for the newly created declaration.
26380 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
26382 (expand_target_clones): Do not call valid_attribute_p, it must
26384 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
26387 2019-01-17 Jakub Jelinek <jakub@redhat.com>
26390 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
26391 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
26392 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
26394 2019-01-17 Martin Sebor <msebor@redhat.com>
26396 PR middle-end/88273
26397 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
26398 Handle anti-ranges the same as no range at all.
26400 2018-01-17 Steve Ellcey <sellcey@cavium.com>
26402 * config/aarch64/aarch64.c (cgraph.h): New include.
26403 (intl.h): New include.
26404 (supported_simd_type): New function.
26405 (currently_supported_simd_type): Ditto.
26406 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
26407 (aarch64_simd_clone_adjust): Ditto.
26408 (aarch64_simd_clone_usable): Ditto.
26409 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
26410 (TARGET_SIMD_CLONE_ADJUST): Ditto.
26411 (TARGET_SIMD_CLONE_USABLE): Ditto.
26412 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
26413 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
26416 2019-01-17 Martin Sebor <msebor@redhat.com>
26418 PR tree-optimization/88800
26419 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
26420 NO_WARNING bit here. Avoid folding out-of-bounds calls.
26421 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
26422 redundant argument. Add new argument and issue diagnostics under
26423 its control. Detect out-of-bounds access even with warnings
26425 (check_bounds_or_overlap): Change return type. Add argument.
26426 (wrestrict_dom_walker::check_call): Adjust.
26427 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
26428 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
26429 check_bounds_or_overlap's return value.
26430 (handle_builtin_stxncpy): Same.
26431 (handle_builtin_strcat): Same.
26433 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26434 Kwok Cheung Yeung <kcy@codesourcery.com>
26435 Julian Brown <julian@codesourcery.com>
26436 Tom de Vries <tom@codesourcery.com>
26438 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
26440 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26442 * doc/sourcebuild.texi: Document dg-require-effective-target
26443 llvm_binutils and offload_gcn.
26445 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26446 Kwok Cheung Yeung <kcy@codesourcery.com>
26447 Julian Brown <julian@codesourcery.com>
26448 Tom de Vries <tom@codesourcery.com>
26450 * doc/sourcebuild.texi: Document dg-required-effective-target
26453 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26454 Kwok Cheung Yeung <kcy@codesourcery.com>
26455 Julian Brown <julian@codesourcery.com>
26456 Tom de Vries <tom@codesourcery.com>
26457 Jan Hubicka <hubicka@ucw.cz>
26458 Martin Jambor <mjambor@suse.cz>
26460 * config.gcc: Add amdgcn*-*-amdhsa configuration.
26461 * configure.ac: Check for dlopen.
26462 * configure: Regenerate.
26464 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26465 Kwok Cheung Yeung <kcy@codesourcery.com>
26466 Julian Brown <julian@codesourcery.com>
26467 Tom de Vries <tom@codesourcery.com>
26468 Jan Hubicka <hubicka@ucw.cz>
26469 Martin Jambor <mjambor@suse.cz>
26471 * common/config/gcn/gcn-common.c: New file.
26472 * config/gcn/driver-gcn.c: New file.
26473 * config/gcn/gcn-builtins.def: New file.
26474 * config/gcn/gcn-hsa.h: New file.
26475 * config/gcn/gcn-modes.def: New file.
26476 * config/gcn/gcn-opts.h: New file.
26477 * config/gcn/gcn-passes.def: New file.
26478 * config/gcn/gcn-protos.h: New file.
26479 * config/gcn/gcn-run.c: New file.
26480 * config/gcn/gcn-tree.c: New file.
26481 * config/gcn/gcn.c: New file.
26482 * config/gcn/gcn.h: New file.
26483 * config/gcn/gcn.opt: New file.
26484 * config/gcn/t-gcn-hsa: New file.
26486 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26487 Kwok Cheung Yeung <kcy@codesourcery.com>
26488 Julian Brown <julian@codesourcery.com>
26489 Tom de Vries <tom@codesourcery.com>
26490 Jan Hubicka <hubicka@ucw.cz>
26491 Martin Jambor <mjambor@suse.cz>
26493 * config/gcn/constraints.md: New file.
26494 * config/gcn/gcn-valu.md: New file.
26495 * config/gcn/gcn.md: New file.
26496 * config/gcn/predicates.md: New file.
26498 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
26500 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
26501 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
26502 (stmt_uses_0_or_null_in_undefined_way): Likewise.
26503 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
26505 2019-01-17 Tamar Christina <tamar.christina@arm.com>
26508 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
26509 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
26510 it and document registers.
26512 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26514 * config/aarch64/aarch64.c (ares_tunings): Define.
26515 * config/aarch64/aarch64-cores.def (ares): Use the above.
26517 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26521 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
26523 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
26524 (_mm512_fixupimm_round_pd): Update parameters and builtin.
26525 (_mm512_maskz_fixupimm_round_pd): Ditto.
26526 (_mm512_fixupimm_round_ps): Ditto.
26527 (_mm512_maskz_fixupimm_round_ps): Ditto.
26528 (_mm_fixupimm_round_sd): Ditto.
26529 (_mm_maskz_fixupimm_round_sd): Ditto.
26530 (_mm_fixupimm_round_ss): Ditto.
26531 (_mm_maskz_fixupimm_round_ss): Ditto.
26532 (_mm512_fixupimm_pd): Ditto.
26533 (_mm512_maskz_fixupimm_pd): Ditto.
26534 (_mm512_fixupimm_ps): Ditto.
26535 (_mm512_maskz_fixupimm_ps): Ditto.
26536 (_mm_fixupimm_sd): Ditto.
26537 (_mm_maskz_fixupimm_sd): Ditto.
26538 (_mm_fixupimm_ss): Ditto.
26539 (_mm_maskz_fixupimm_ss): Ditto.
26540 (_mm512_mask_fixupimm_round_pd): Update builtin.
26541 (_mm512_mask_fixupimm_round_ps): Ditto.
26542 (_mm_mask_fixupimm_round_sd): Ditto.
26543 (_mm_mask_fixupimm_round_ss): Ditto.
26544 (_mm512_mask_fixupimm_pd): Ditto.
26545 (_mm512_mask_fixupimm_ps): Ditto.
26546 (_mm_mask_fixupimm_sd): Ditto.
26547 (_mm_mask_fixupimm_ss): Ditto.
26548 * config/i386/avx512vlintrin.h:
26549 (_mm256_fixupimm_pd): Update parameters and builtin.
26550 (_mm256_maskz_fixupimm_pd): Ditto.
26551 (_mm256_fixupimm_ps): Ditto.
26552 (_mm256_maskz_fixupimm_ps): Ditto.
26553 (_mm_fixupimm_pd): Ditto.
26554 (_mm_maskz_fixupimm_pd): Ditto.
26555 (_mm_fixupimm_ps): Ditto.
26556 (_mm_maskz_fixupimm_ps): Ditto.
26557 (_mm256_mask_fixupimm_pd): Update builtin.
26558 (_mm256_mask_fixupimm_ps): Ditto.
26559 (_mm_mask_fixupimm_pd): Ditto.
26560 (_mm_mask_fixupimm_ps): Ditto.
26561 * config/i386/i386-builtin-types.def: Add new types and remove
26563 * config/i386/i386-builtin.def: Update builtin definitions.
26564 * config/i386/i386.c: Handle new builtin types and remove useless ones.
26565 * config/i386/sse.md: Update VFIXUPIMM* patterns.
26566 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26567 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26568 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
26569 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26570 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26571 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
26572 * config/i386/subst.md:
26573 (round_saeonly_sd_mask_operand4): Add new subst_attr.
26574 (round_saeonly_sd_mask_op4): Ditto.
26575 (round_saeonly_expand_operand5): Ditto.
26576 (round_saeonly_expand): Update.
26578 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26582 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
26584 * config/i386/sse.md: Combine VFIXUPIMM* patterns
26585 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26586 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26587 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
26588 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26589 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26590 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
26592 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26596 2018-12-15 Jakub Jelinek <jakub@redhat.com>
26599 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
26600 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
26601 instead of UNSPEC_FIXUPIMM.
26603 2019-01-17 Richard Biener <rguenther@suse.de>
26606 * dwarf2out.c (want_pubnames): Never generate pubnames sections
26607 and friends for the LTO part of debug info.
26609 2019-01-17 Jakub Jelinek <jakub@redhat.com>
26611 PR tree-optimization/86214
26612 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
26615 PR rtl-optimization/88870
26616 * dce.c (deletable_insn_p): Never delete const/pure calls that can
26617 throw if we can't alter the cfg or delete dead exceptions.
26618 (mark_insn): Don't call find_call_stack_args for such calls.
26620 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
26622 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
26623 prototypes for vec_st.
26624 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
26625 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
26626 mainly on signed/unsigned long long and double.
26628 2019-01-16 David Malcolm <dmalcolm@redhat.com>
26631 * combine.c (delete_noop_moves): Convert to "bool" return,
26632 returning true if any edges are eliminated.
26633 (combine_instructions): Also return true if delete_noop_moves
26636 2019-01-16 Tamar Christina <tamar.christina@arm.com>
26638 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
26639 correct max nunits for endian swap.
26640 (aarch64_expand_fcmla_builtin): Correct subreg code.
26641 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26642 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
26645 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
26647 * config/alpha/alpha.c (alpha_gimplify_va_arg):
26648 Handle split indirect COMPLEX_TYPE arguments.
26650 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
26653 * config/aarch64/aarch64-modes.def: Add comment about how the carry
26654 bit is set by add and compare.
26655 (CC_ADC): New CC_MODE.
26656 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
26657 to cache the code and mode of X. Adjust the shape of a CC_Cmode
26658 comparison. Add detection for CC_ADCmode.
26659 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
26661 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
26662 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
26663 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
26664 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
26665 to eliminate the need for zero-extending the operands.
26666 (add<mode>3_compareC_imm): Delete. Merge into ...
26667 (add<mode>3_compareC): ... this. Restructure the comparison to
26668 eliminate the need for zero-extending the operands.
26669 (add<mode>3_carryin): Use LTU for the overflow detection.
26670 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
26671 Reexpress comparison for overflow.
26672 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
26673 (add<mode>3_carryinC): Likewise.
26674 (add<mode>3_carryinV): Use LTU for carry between partials.
26675 * config/aarch64/predicates.md (aarch64_carry_operation): Update
26676 handling of CC_Cmode and add CC_ADCmode.
26677 (aarch64_borrow_operation): Likewise.
26679 2019-01-16 Tamar Christina <tamar.christina@arm.com>
26681 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
26682 Remove patternmode.
26683 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
26684 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26685 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
26686 Remove endianness conversion.
26688 2019-01-16 Martin Liska <mliska@suse.cz>
26690 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
26692 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
26694 * gcc.c (add_sysrooted_hdrs_prefix): New function.
26695 (path_prefix_reset): Move up in the source file.
26696 (find_fortran_preinclude_file): Make complex search for the
26697 fortran header files.
26699 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
26701 * godump.c (go_output_typedef): When outputting a typedef, refer
26702 to the underlying type by its name and not its structure.
26704 2019-01-15 David Malcolm <dmalcolm@redhat.com>
26707 * tree.c (build_function_type): Assert that arg_types is not
26710 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
26712 PR inline-asm/52813
26713 * doc/extend.texi: Document that listing the stack pointer in the
26714 clobber list of an asm is a deprecated feature.
26715 * common.opt (Wdeprecated): Moved from c-family/c.opt.
26716 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
26717 warning instead of an error for clobbers of the stack pointer.
26718 Add a note explaining why.
26720 2019-01-15 Richard Biener <rguenther@suse.de>
26723 * dwarf2out.c (gen_member_die): Do not generate inheritance
26726 2019-01-15 Richard Biener <rguenther@suse.de>
26728 PR tree-optimization/88855
26729 * tree-if-conv.c (combine_blocks): Collect
26730 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
26732 2019-01-15 Tom de Vries <tdevries@suse.de>
26735 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
26736 lhs == NULL_TREE for gang-level reduction.
26738 2019-01-15 Richard Biener <rguenther@suse.de>
26739 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26742 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
26743 return true if SSA_NAME is already marked in visited bitmap.
26744 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
26746 2019-01-15 Jakub Jelinek <jakub@redhat.com>
26748 PR tree-optimization/88775
26749 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
26750 equal == 0 equality pointer comparisons some more if compared in
26751 integral types and either one points to an automatic var and the
26752 other to a global, or we can prove at least one points to the middle
26753 or both point to start or both point to end.
26755 2019-01-14 Andi Kleen <ak@linux.intel.com>
26757 * Makefile.in: Lower autofdo sampling rate by 10x.
26758 * Makefile.tpl: Dito.
26760 2019-01-14 Tom Honermann <tom@honermann.net>
26762 * defaults.h: Define CHAR8_TYPE.
26764 2019-01-14 Martin Sebor <msebor@redhat.com>
26767 * doc/extend.texi (Darwin Format Checks): Clarify.
26769 2019-01-14 Richard Biener <rguenther@suse.de>
26771 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
26772 whether we are in (simplify ...) or (match ...) context.
26774 2019-01-14 Jakub Jelinek <jakub@redhat.com>
26776 PR rtl-optimization/88796
26777 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
26778 * cfgexpand.c (stack_protect_prologue): Initialize
26779 crtl->stack_protect_guard_decl.
26780 * function.c (stack_protect_epilogue): Use it instead of calling
26781 targetm.stack_protect_guard again.
26782 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
26783 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
26784 crtl->stack_protect_guard_decl.
26785 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
26786 on the returned MEM_EXPR.
26788 2019-01-12 Tom de Vries <tdevries@suse.de>
26790 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
26791 vector length using -fopenacc-dim.
26793 2019-01-12 Tom de Vries <tdevries@suse.de>
26795 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
26796 lengths into account.
26798 2019-01-12 Svante Signell <svante.signell@gmail.com>
26800 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
26801 (TARGET_CAN_SPLIT_STACK): Define.
26802 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
26804 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26806 * params.def (inline-unit-growth): Set to 40.
26808 2019-01-12 Jakub Jelinek <jakub@redhat.com>
26810 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
26812 2019-01-12 Tom de Vries <tdevries@suse.de>
26814 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
26815 region calling vector-partitionable routine, set default_vector_length
26818 2019-01-12 Tom de Vries <tdevries@suse.de>
26820 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
26821 variable default_vector_length.
26823 2019-01-12 Tom de Vries <tdevries@suse.de>
26825 PR middle-end/88703
26826 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
26827 from oacc_default_dims, as oacc_validate_dims would do it, and apply
26830 2019-01-12 Tom de Vries <tdevries@suse.de>
26832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
26833 (nvptx_goacc_validate_dims): Add used parameter.
26834 * doc/tm.texi: Regenerate.
26835 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
26836 argument to call to targetm.goacc.validate_dims.
26837 (default_goacc_validate_dims): Add used
26839 * target.def (validate_dims): Add used parameter in DEFHOOK.
26840 * targhooks.h (default_goacc_validate_dims): Add used parameter.
26842 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26844 PR middle-end/85956
26846 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
26848 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
26849 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
26850 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
26851 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
26853 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
26855 PR rtl-optimization/87305
26857 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
26858 for little endian pseudos used as paradoxical subreg.
26860 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26862 PR tree-optimization/88693
26863 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
26864 for STRING_CSTs that don't contain any NUL characters in the first
26865 TREE_STRING_LENGTH bytes.
26867 2019-01-11 Alan Modra <amodra@gmail.com>
26871 * genattrtab.c (min_fn): Don't translate values.
26872 (min_attr_value): Return INT_MAX when the value can't be calculated.
26873 Return minimum among any values that can be calculated.
26874 (max_attr_value): Adjust.
26876 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26878 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
26880 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26882 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26883 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
26884 (aarch64_return_call_with_max_clobbers): New function.
26885 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
26886 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
26888 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
26889 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
26890 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
26891 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
26892 * cselib.c (cselib_process_insn): Add argument to
26893 targetm.hard_regno_call_part_clobbered call.
26894 * ira-conflicts.c (ira_build_conflicts): Ditto.
26895 * ira-costs.c (ira_tune_allocno_costs): Ditto.
26896 * lra-constraints.c (inherit_reload_reg): Ditto.
26897 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
26898 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
26899 argument. Call targetm.return_call_with_max_clobbers.
26900 Add argument to targetm.hard_regno_call_part_clobbered call.
26901 (calls_have_same_clobbers_p): New function.
26902 (process_bb_lives): Add call_insn and last_call_insn variables.
26903 Pass call_insn to check_pseudos_live_through_calls.
26904 Modify if stmt to check targetm.return_call_with_max_clobbers.
26905 Update setting of flush variable.
26906 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26908 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26909 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26910 targetm.hard_regno_call_part_clobbered call.
26911 * reginfo.c (choose_hard_reg_mode): Ditto.
26912 * regrename.c (check_new_reg_p): Ditto.
26913 * reload.c (find_equiv_reg): Ditto.
26914 * reload1.c (emit_reload_insns): Ditto.
26915 * sched-deps.c (deps_analyze_insn): Ditto.
26916 * sel-sched.c (init_regs_for_mode): Ditto.
26917 (mark_unavailable_hard_regs): Ditto.
26918 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26919 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26920 (return_call_with_max_clobbers): New target function.
26921 * doc/tm.texi: Regenerate.
26922 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26923 * hooks.c (hook_bool_uint_mode_false): Change to
26924 hook_bool_insn_uint_mode_false.
26925 * hooks.h (hook_bool_uint_mode_false): Ditto.
26927 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26929 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26930 (aarch64_remove_extra_call_preserved_regs): New function.
26931 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26932 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26933 * doc/tm.texi: Regenerate.
26934 * final.c (get_call_reg_set_usage): Call new hook.
26935 * target.def (remove_extra_call_preserved_regs): New hook.
26936 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26937 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26939 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26942 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26943 inside of pass_combine_1 dump rather than pass_profile_1.
26945 2019-01-11 Tom de Vries <tdevries@suse.de>
26947 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26948 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26949 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26950 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26953 2019-01-11 Tom de Vries <tdevries@suse.de>
26955 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26957 2019-01-11 Jan Beulich <jbeulich@suse.com>
26959 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26960 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26961 sse2_cvtsi2sd): Add {l}.
26962 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26965 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26968 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26970 (*float<floatunssuffix>v2div2sf2): New define_insn.
26971 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26972 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26973 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26974 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26975 match_operands with "const0_operand" "C".
26977 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26979 * config/aarch64/aarch64-builtins.c
26980 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26981 (aarch64_init_simd_builtins): ...Here
26983 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26985 PR rtl-optimization/87305
26987 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26988 allocation for big endian pseudos used as paradoxical subregs and
26989 spill them if it is wrong.
26990 * lra-constraints.c (lra_constraints): Add a comment.
26992 2019-01-10 Richard Biener <rguenther@suse.de>
26994 PR tree-optimization/88792
26995 * tree-ssa-pre.c (get_representative_for): Do not return a
26998 2019-01-10 Jakub Jelinek <jakub@redhat.com>
27000 PR middle-end/84877
27002 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
27003 (assign_parm_setup_block): Do the argument slot realignment here
27006 2019-01-10 Stefan Agner <stefan@agner.ch>
27009 * config/arm/arm.c (arm_option_override_internal): Force
27010 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
27012 2019-01-10 Jakub Jelinek <jakub@redhat.com>
27015 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
27018 2019-01-10 Tamar Christina <tamar.christina@arm.com>
27020 * config/arm/arm-builtins.c
27021 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
27022 (MAC_LANE_PAIR_QUALIFIERS): New.
27023 (arm_expand_builtin_args): Use it.
27024 (arm_expand_builtin_1): Likewise.
27025 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
27026 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
27027 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
27028 * config/arm/arm_neon.h:
27029 (vcadd_rot90_f16): New.
27030 (vcaddq_rot90_f16): New.
27031 (vcadd_rot270_f16): New.
27032 (vcaddq_rot270_f16): New.
27035 (vcmla_lane_f16): New.
27036 (vcmla_laneq_f16): New.
27037 (vcmlaq_lane_f16): New.
27038 (vcmlaq_laneq_f16): New.
27039 (vcmla_rot90_f16): New.
27040 (vcmlaq_rot90_f16): New.
27041 (vcmla_rot90_lane_f16): New.
27042 (vcmla_rot90_laneq_f16): New.
27043 (vcmlaq_rot90_lane_f16): New.
27044 (vcmlaq_rot90_laneq_f16): New.
27045 (vcmla_rot180_f16): New.
27046 (vcmlaq_rot180_f16): New.
27047 (vcmla_rot180_lane_f16): New.
27048 (vcmla_rot180_laneq_f16): New.
27049 (vcmlaq_rot180_lane_f16): New.
27050 (vcmlaq_rot180_laneq_f16): New.
27051 (vcmla_rot270_f16): New.
27052 (vcmlaq_rot270_f16): New.
27053 (vcmla_rot270_lane_f16): New.
27054 (vcmla_rot270_laneq_f16): New.
27055 (vcmlaq_rot270_lane_f16): New.
27056 (vcmlaq_rot270_laneq_f16): New.
27057 (vcadd_rot90_f32): New.
27058 (vcaddq_rot90_f32): New.
27059 (vcadd_rot270_f32): New.
27060 (vcaddq_rot270_f32): New.
27063 (vcmla_lane_f32): New.
27064 (vcmla_laneq_f32): New.
27065 (vcmlaq_lane_f32): New.
27066 (vcmlaq_laneq_f32): New.
27067 (vcmla_rot90_f32): New.
27068 (vcmlaq_rot90_f32): New.
27069 (vcmla_rot90_lane_f32): New.
27070 (vcmla_rot90_laneq_f32): New.
27071 (vcmlaq_rot90_lane_f32): New.
27072 (vcmlaq_rot90_laneq_f32): New.
27073 (vcmla_rot180_f32): New.
27074 (vcmlaq_rot180_f32): New.
27075 (vcmla_rot180_lane_f32): New.
27076 (vcmla_rot180_laneq_f32): New.
27077 (vcmlaq_rot180_lane_f32): New.
27078 (vcmlaq_rot180_laneq_f32): New.
27079 (vcmla_rot270_f32): New.
27080 (vcmlaq_rot270_f32): New.
27081 (vcmla_rot270_lane_f32): New.
27082 (vcmla_rot270_laneq_f32): New.
27083 (vcmlaq_rot270_lane_f32): New.
27084 (vcmlaq_rot270_laneq_f32): New.
27085 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
27086 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
27087 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
27088 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
27089 vcmlaq_lane270): New.
27090 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
27091 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
27092 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
27093 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
27094 (arm_option_reconfigure_globals): Use them.
27095 * config/arm/iterators.md (VDF, VQ_HSF): New.
27096 (VCADD, VCMLA): New.
27097 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
27098 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
27100 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
27101 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
27103 2019-01-10 Tamar Christina <tamar.christina@arm.com>
27105 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
27106 Add qualifier_lane_pair_index.
27107 (emit-rtl.h): Include.
27108 (TYPES_QUADOP_LANE_PAIR): New.
27109 (aarch64_simd_expand_args): Use it.
27110 (aarch64_simd_expand_builtin): Likewise.
27111 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
27113 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
27114 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
27115 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
27116 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
27117 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
27118 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
27119 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
27120 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
27121 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
27122 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
27123 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
27124 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
27125 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
27126 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27127 Add __ARM_FEATURE_COMPLEX.
27128 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
27129 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
27130 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
27131 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
27132 fcmlaq_lane270): New.
27133 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
27134 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
27135 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
27136 * config/aarch64/arm_neon.h:
27137 (vcadd_rot90_f16): New.
27138 (vcaddq_rot90_f16): New.
27139 (vcadd_rot270_f16): New.
27140 (vcaddq_rot270_f16): New.
27143 (vcmla_lane_f16): New.
27144 (vcmla_laneq_f16): New.
27145 (vcmlaq_lane_f16): New.
27146 (vcmlaq_rot90_lane_f16): New.
27147 (vcmla_rot90_laneq_f16): New.
27148 (vcmla_rot90_lane_f16): New.
27149 (vcmlaq_rot90_f16): New.
27150 (vcmla_rot90_f16): New.
27151 (vcmlaq_laneq_f16): New.
27152 (vcmla_rot180_laneq_f16): New.
27153 (vcmla_rot180_lane_f16): New.
27154 (vcmlaq_rot180_f16): New.
27155 (vcmla_rot180_f16): New.
27156 (vcmlaq_rot90_laneq_f16): New.
27157 (vcmlaq_rot270_laneq_f16): New.
27158 (vcmlaq_rot270_lane_f16): New.
27159 (vcmla_rot270_laneq_f16): New.
27160 (vcmlaq_rot270_f16): New.
27161 (vcmla_rot270_f16): New.
27162 (vcmlaq_rot180_laneq_f16): New.
27163 (vcmlaq_rot180_lane_f16): New.
27164 (vcmla_rot270_lane_f16): New.
27165 (vcadd_rot90_f32): New.
27166 (vcaddq_rot90_f32): New.
27167 (vcaddq_rot90_f64): New.
27168 (vcadd_rot270_f32): New.
27169 (vcaddq_rot270_f32): New.
27170 (vcaddq_rot270_f64): New.
27174 (vcmla_lane_f32): New.
27175 (vcmla_laneq_f32): New.
27176 (vcmlaq_lane_f32): New.
27177 (vcmlaq_laneq_f32): New.
27178 (vcmla_rot90_f32): New.
27179 (vcmlaq_rot90_f32): New.
27180 (vcmlaq_rot90_f64): New.
27181 (vcmla_rot90_lane_f32): New.
27182 (vcmla_rot90_laneq_f32): New.
27183 (vcmlaq_rot90_lane_f32): New.
27184 (vcmlaq_rot90_laneq_f32): New.
27185 (vcmla_rot180_f32): New.
27186 (vcmlaq_rot180_f32): New.
27187 (vcmlaq_rot180_f64): New.
27188 (vcmla_rot180_lane_f32): New.
27189 (vcmla_rot180_laneq_f32): New.
27190 (vcmlaq_rot180_lane_f32): New.
27191 (vcmlaq_rot180_laneq_f32): New.
27192 (vcmla_rot270_f32): New.
27193 (vcmlaq_rot270_f32): New.
27194 (vcmlaq_rot270_f64): New.
27195 (vcmla_rot270_lane_f32): New.
27196 (vcmla_rot270_laneq_f32): New.
27197 (vcmlaq_rot270_lane_f32): New.
27198 (vcmlaq_rot270_laneq_f32): New.
27199 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
27200 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
27201 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
27202 (FCADD, FCMLA): New.
27204 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
27206 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
27210 * config/pa/pa.c: Change "can not" to "cannot".
27211 * gimple-ssa-evrp-analyze.c: Likewise.
27212 * ipa-icf.c: Likewise.
27213 * ipa-polymorphic-call.c: Likewise.
27214 * ipa-pure-const.c: Likewise.
27215 * lra-constraints.c: Likewise.
27216 * lra-remat.c: Likewise.
27217 * reload1.c: Likewise.
27218 * reorg.c: Likewise.
27219 * tree-ssa-uninit.c: Likewise.
27221 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
27225 * Makefile.in: Mechanically replace "can not" with "cannot".
27226 * alias.c: Likewise.
27227 * builtins.c: Likewise.
27228 * calls.c: Likewise.
27229 * cgraph.c: Likewise.
27230 * cgraph.h: Likewise.
27231 * cgraphclones.c: Likewise.
27232 * cgraphunit.c: Likewise.
27233 * combine-stack-adj.c: Likewise.
27234 * combine.c: Likewise.
27235 * common/config/i386/i386-common.c: Likewise.
27236 * config/aarch64/aarch64.c: Likewise.
27237 * config/alpha/sync.md: Likewise.
27238 * config/arc/arc.c: Likewise.
27239 * config/arc/predicates.md: Likewise.
27240 * config/arm/arm-c.c: Likewise.
27241 * config/arm/arm.c: Likewise.
27242 * config/arm/arm.h: Likewise.
27243 * config/arm/arm.md: Likewise.
27244 * config/arm/cortex-r4f.md: Likewise.
27245 * config/csky/csky.c: Likewise.
27246 * config/csky/csky.h: Likewise.
27247 * config/darwin-f.c: Likewise.
27248 * config/epiphany/epiphany.md: Likewise.
27249 * config/i386/i386.c: Likewise.
27250 * config/i386/sol2.h: Likewise.
27251 * config/m68k/m68k.c: Likewise.
27252 * config/mcore/mcore.h: Likewise.
27253 * config/microblaze/microblaze.md: Likewise.
27254 * config/mips/20kc.md: Likewise.
27255 * config/mips/sb1.md: Likewise.
27256 * config/nds32/nds32.c: Likewise.
27257 * config/nds32/predicates.md: Likewise.
27258 * config/pa/pa.c: Likewise.
27259 * config/rs6000/e300c2c3.md: Likewise.
27260 * config/rs6000/rs6000.c: Likewise.
27261 * config/s390/s390.h: Likewise.
27262 * config/sh/sh.c: Likewise.
27263 * config/sh/sh.md: Likewise.
27264 * config/spu/vmx2spu.h: Likewise.
27265 * cprop.c: Likewise.
27266 * dbxout.c: Likewise.
27267 * df-scan.c: Likewise.
27268 * doc/cfg.texi: Likewise.
27269 * doc/extend.texi: Likewise.
27270 * doc/fragments.texi: Likewise.
27271 * doc/gty.texi: Likewise.
27272 * doc/invoke.texi: Likewise.
27273 * doc/lto.texi: Likewise.
27274 * doc/md.texi: Likewise.
27275 * doc/objc.texi: Likewise.
27276 * doc/rtl.texi: Likewise.
27277 * doc/tm.texi: Likewise.
27279 * emit-rtl.c: Likewise.
27280 * emit-rtl.h: Likewise.
27281 * except.c: Likewise.
27282 * expmed.c: Likewise.
27283 * expr.c: Likewise.
27284 * fold-const.c: Likewise.
27285 * genautomata.c: Likewise.
27286 * gimple-fold.c: Likewise.
27287 * hard-reg-set.h: Likewise.
27288 * ifcvt.c: Likewise.
27289 * ipa-comdats.c: Likewise.
27290 * ipa-cp.c: Likewise.
27291 * ipa-devirt.c: Likewise.
27292 * ipa-fnsummary.c: Likewise.
27293 * ipa-icf.c: Likewise.
27294 * ipa-inline-transform.c: Likewise.
27295 * ipa-inline.c: Likewise.
27296 * ipa-polymorphic-call.c: Likewise.
27297 * ipa-profile.c: Likewise.
27298 * ipa-prop.c: Likewise.
27299 * ipa-pure-const.c: Likewise.
27300 * ipa-reference.c: Likewise.
27301 * ipa-split.c: Likewise.
27302 * ipa-visibility.c: Likewise.
27304 * ira-build.c: Likewise.
27305 * ira-color.c: Likewise.
27306 * ira-conflicts.c: Likewise.
27307 * ira-costs.c: Likewise.
27308 * ira-int.h: Likewise.
27309 * ira-lives.c: Likewise.
27312 * loop-invariant.c: Likewise.
27313 * loop-unroll.c: Likewise.
27314 * lower-subreg.c: Likewise.
27315 * lra-assigns.c: Likewise.
27316 * lra-constraints.c: Likewise.
27317 * lra-eliminations.c: Likewise.
27318 * lra-lives.c: Likewise.
27319 * lra-remat.c: Likewise.
27320 * lra-spills.c: Likewise.
27322 * lto-cgraph.c: Likewise.
27323 * lto-streamer-out.c: Likewise.
27324 * postreload-gcse.c: Likewise.
27325 * predict.c: Likewise.
27326 * profile-count.h: Likewise.
27327 * profile.c: Likewise.
27328 * recog.c: Likewise.
27330 * reload.c: Likewise.
27331 * reload1.c: Likewise.
27332 * reorg.c: Likewise.
27333 * resource.c: Likewise.
27334 * rtl.def: Likewise.
27336 * rtlanal.c: Likewise.
27337 * sched-deps.c: Likewise.
27338 * sched-ebb.c: Likewise.
27339 * sched-rgn.c: Likewise.
27340 * sel-sched-ir.c: Likewise.
27341 * sel-sched.c: Likewise.
27342 * shrink-wrap.c: Likewise.
27343 * simplify-rtx.c: Likewise.
27344 * symtab.c: Likewise.
27345 * target.def: Likewise.
27346 * toplev.c: Likewise.
27347 * tree-call-cdce.c: Likewise.
27348 * tree-cfg.c: Likewise.
27349 * tree-complex.c: Likewise.
27350 * tree-core.h: Likewise.
27351 * tree-eh.c: Likewise.
27352 * tree-inline.c: Likewise.
27353 * tree-loop-distribution.c: Likewise.
27354 * tree-nrv.c: Likewise.
27355 * tree-profile.c: Likewise.
27356 * tree-sra.c: Likewise.
27357 * tree-ssa-alias.c: Likewise.
27358 * tree-ssa-dce.c: Likewise.
27359 * tree-ssa-dom.c: Likewise.
27360 * tree-ssa-forwprop.c: Likewise.
27361 * tree-ssa-loop-im.c: Likewise.
27362 * tree-ssa-loop-ivcanon.c: Likewise.
27363 * tree-ssa-loop-ivopts.c: Likewise.
27364 * tree-ssa-loop-niter.c: Likewise.
27365 * tree-ssa-phionlycprop.c: Likewise.
27366 * tree-ssa-phiopt.c: Likewise.
27367 * tree-ssa-propagate.c: Likewise.
27368 * tree-ssa-threadedge.c: Likewise.
27369 * tree-ssa-threadupdate.c: Likewise.
27370 * tree-ssa-uninit.c: Likewise.
27371 * tree-ssanames.c: Likewise.
27372 * tree-streamer-out.c: Likewise.
27373 * tree.c: Likewise.
27374 * tree.h: Likewise.
27375 * vr-values.c: Likewise.
27377 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
27379 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
27380 (ix86_split_xorsign): Ditto.
27381 * config/i386/i386.c (ix86_expand_xorsign): New function.
27382 (ix86_split_xorsign): Ditto.
27383 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
27384 (xorsign<mode>3): New expander.
27385 (xorsign<mode>3_1): New insn_and_split pattern.
27386 * config/i386/sse.md (xorsign<mode>3): New expander.
27388 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27390 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
27391 (*tablejump_sp64): Likewise.
27392 (*tablejump<P:mode>): ...this.
27393 (*call_address_sp32): Merge into...
27394 (*call_address_sp64): Likewise.
27395 (*call_address<P:mode>): ...this.
27396 (*call_symbolic_sp32): Merge into...
27397 (*call_symbolic_sp64): Likewise.
27398 (*call_symbolic<P:mode>): ...this.
27399 (call_value): Remove constraint and add predicate.
27400 (*call_value_address_sp32): Merge into...
27401 (*call_value_address_sp64): Likewise.
27402 (*call_value_address<P:mode>): ...this.
27403 (*call_value_symbolic_sp32): Merge into...
27404 (*call_value_symbolic_sp64): Likewise.
27405 (*call_value_symbolic<P:mode>): ...this.
27406 (*sibcall_symbolic_sp32): Merge into...
27407 (*sibcall_symbolic_sp64): Likewise.
27408 (*sibcall_symbolic<P:mode>): ...this.
27409 (sibcall_value): Remove constraint and add predicate.
27410 (*sibcall_value_symbolic_sp32): Merge into...
27411 (*sibcall_value_symbolic_sp64): Likewise.
27412 (*sibcall_value_symbolic<P:mode>): ...this.
27413 (window_save): Minor tweak.
27414 (*branch_sp32): Merge into...
27415 (*branch_sp64): Likewise.
27416 (*branch<P:mode>): ...this.
27418 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27419 James Clarke <jrtc27@jrtc27.com>
27422 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
27423 consistently in TLS address generation and adjust code to the renaming
27424 of patterns. Mark calls to __tls_get_addr as const.
27425 * config/sparc/sparc.md (tgd_hi22): Turn into...
27426 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
27427 (tgd_lo10): Turn into...
27428 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
27429 (tgd_add32): Merge into...
27430 (tgd_add64): Likewise.
27431 (tgd_add<P:mode>): ...this and use Pmode throughout.
27432 (tldm_hi22): Turn into...
27433 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
27434 (tldm_lo10): Turn into...
27435 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
27436 (tldm_add32): Merge into...
27437 (tldm_add64): Likewise.
27438 (tldm_add<P:mode>): ...this and use Pmode throughout.
27439 (tldm_call32): Merge into...
27440 (tldm_call64): Likewise.
27441 (tldm_call<P:mode>): ...this and use Pmode throughout.
27442 (tldo_hix22): Turn into...
27443 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
27444 (tldo_lox10): Turn into...
27445 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
27446 (tldo_add32): Merge into...
27447 (tldo_add64): Likewise.
27448 (tldo_add<P:mode>): ...this and use Pmode throughout.
27449 (tie_hi22): Turn into...
27450 (tie_hi22<P:mode>): ...this and use Pmode throughout.
27451 (tie_lo10): Turn into...
27452 (tie_lo10<P:mode>): ...this and use Pmode throughout.
27453 (tie_ld64): Use DImode throughout.
27454 (tie_add32): Merge into...
27455 (tie_add64): Likewise.
27456 (tie_add<P:mode>): ...this and use Pmode throughout.
27457 (tle_hix22_sp32): Merge into...
27458 (tle_hix22_sp64): Likewise.
27459 (tle_hix22<P:mode>): ...this and use Pmode throughout.
27460 (tle_lox22_sp32): Merge into...
27461 (tle_lox22_sp64): Likewise.
27462 (tle_lox22<P:mode>): ...this and use Pmode throughout.
27463 (*tldo_ldub_sp32): Merge into...
27464 (*tldo_ldub_sp64): Likewise.
27465 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
27466 (*tldo_ldub1_sp32): Merge into...
27467 (*tldo_ldub1_sp64): Likewise.
27468 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
27469 (*tldo_ldub2_sp32): Merge into...
27470 (*tldo_ldub2_sp64): Likewise.
27471 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
27472 (*tldo_ldsb1_sp32): Merge into...
27473 (*tldo_ldsb1_sp64): Likewise.
27474 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
27475 (*tldo_ldsb2_sp32): Merge into...
27476 (*tldo_ldsb2_sp64): Likewise.
27477 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
27478 (*tldo_ldub3_sp64): Use DImode throughout.
27479 (*tldo_ldsb3_sp64): Likewise.
27480 (*tldo_lduh_sp32): Merge into...
27481 (*tldo_lduh_sp64): Likewise.
27482 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
27483 (*tldo_lduh1_sp32): Merge into...
27484 (*tldo_lduh1_sp64): Likewise.
27485 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
27486 (*tldo_ldsh1_sp32): Merge into...
27487 (*tldo_ldsh1_sp64): Likewise.
27488 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
27489 (*tldo_lduh2_sp64): Use DImode throughout.
27490 (*tldo_ldsh2_sp64): Likewise.
27491 (*tldo_lduw_sp32): Merge into...
27492 (*tldo_lduw_sp64): Likewise.
27493 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
27494 (*tldo_lduw1_sp64): Use DImode throughout.
27495 (*tldo_ldsw1_sp64): Likewise.
27496 (*tldo_ldx_sp64): Likewise.
27497 (*tldo_stb_sp32): Merge into...
27498 (*tldo_stb_sp64): Likewise.
27499 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
27500 (*tldo_sth_sp32): Merge into...
27501 (*tldo_sth_sp64): Likewise.
27502 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
27503 (*tldo_stw_sp32): Merge into...
27504 (*tldo_stw_sp64): Likewise.
27505 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
27506 (*tldo_stx_sp64): Use DImode throughout.
27508 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27510 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
27511 check configure option to set BTI and Return Address Signing.
27512 * configure.ac: Add --enable-standard-branch-protection and
27513 --disable-standard-branch-protection.
27514 * configure: Regenerated.
27515 * doc/install.texi: Document the same.
27517 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27518 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27520 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
27521 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
27522 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
27524 * config/aarch64/aarch64-bti-insert.c: New file.
27525 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
27527 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
27529 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
27530 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
27531 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
27532 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
27534 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27536 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
27537 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
27538 Disable bti for -mbranch-protection=none.
27539 (aarch64_handle_standard_branch_protection): Enable bti for
27540 -mbranch-protection=standard.
27541 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
27542 -mbranch-protection.
27543 (aarch64_bti_enabled): Check if bti is enabled.
27544 * config/aarch64/aarch64.opt: Declare target variable.
27545 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
27547 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27549 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
27550 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
27551 (aarch64_expand_epilogue): Likewise.
27552 (aarch64_output_mi_thunk): Likewise.
27553 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
27554 TAILCALL_ADDR_REGS to x16 and x17.
27555 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
27557 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27559 * config/aarch64/aarch64-option-extensions.def: Define
27560 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
27561 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
27562 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
27563 (AARCH64_FL_PREDRES): New.
27564 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
27565 AARCH64_FL_PREDRES by default.
27566 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
27568 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27570 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
27572 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
27573 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
27574 * doc/invoke.texi: Document ARMv8.5-A.
27576 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27578 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
27579 (xorsign<mode>3): Likewise.
27581 2019-01-09 Jelinek <jakub@redhat.com>
27583 PR middle-end/88758
27584 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
27585 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
27587 PR rtl-optimization/88331
27588 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
27589 not currently_expanding_to_rtl.
27591 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27593 * doc/invoke.texi (-Os): Remove trailing spaces.
27594 (-finline-functions): Remove reference to -O2.
27596 2019-01-08 Jakub Jelinek <jakub@redhat.com>
27598 PR rtl-optimization/79593
27599 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
27601 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
27602 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
27604 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
27607 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
27611 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
27612 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
27614 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
27617 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
27618 ix86_avx_u128_mode_entry.
27620 2019-01-08 Martin Liska <mliska@suse.cz>
27622 PR tree-optimization/88753
27623 * tree-switch-conversion.c (switch_conversion::build_one_array):
27624 Come up with local variable constructor. Convert first to
27625 type of constructor values.
27627 2019-01-08 Richard Biener <rguenther@suse.de>
27629 PR tree-optimization/86554
27630 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
27631 rpo_avail): Move earlier.
27632 (visit_nary_op): When value-numbering to expressions
27633 with different overflow behavior make sure there's an
27634 available expression on the path.
27636 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
27638 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
27639 aarch64_parse_branch_protection,
27640 struct aarch64_branch_protect_type,
27641 aarch64_handle_no_branch_protection,
27642 aarch64_handle_standard_branch_protection,
27643 aarch64_validate_mbranch_protection,
27644 aarch64_handle_pac_ret_protection,
27645 aarch64_handle_attr_branch_protection,
27646 accepted_branch_protection_string,
27647 aarch64_pac_ret_subtypes,
27648 aarch64_branch_protect_types,
27649 aarch64_handle_pac_ret_leaf): Define.
27650 (aarch64_override_options_after_change_1, aarch64_override_options):
27651 Add check for accepted_branch_protection_string.
27652 (aarch64_option_save): Save accepted_branch_protection_string.
27653 (aarch64_option_restore): Save accepted_branch_protection_string.
27654 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
27655 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
27656 msign-return-address.
27657 * doc/invoke.texi: Add mbranch-protection.
27659 2019-01-08 Alan Modra <amodra@gmail.com>
27662 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
27663 Delete "unknownp" parameter. Adjust callers. Handle
27664 CONST_INT, PLUS, MINUS, and MULT.
27665 (attr_value_aligned): Renamed from or_attr_value.
27666 (min_attr_value): Return INT_MIN for unhandled rtl case..
27667 (min_fn): ..and translate to INT_MAX here.
27668 (write_length_unit_log): Modify to cope without "unknown".
27669 (write_attr_value): Handle IF_THEN_ELSE.
27671 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27673 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
27674 optimization for masked stores.
27676 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27678 PR middle-end/88567
27679 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
27680 output vector directly to duplicate_and_interleave instead of
27681 going through a temporary. Postpone insertion of ctor_seq to
27682 the end of the loop.
27684 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
27687 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
27688 unsigned_p. Handle signed and unsigned overflow correction as
27690 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
27692 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
27694 (add<mode>3_compareV_imm): Make this callable for expanding.
27695 (subv<GPI:mode>4): Use register_operand for operand 1. Use
27696 aarch64_plus_operand for operand 2.
27697 (subv<GPI:mode>_insn): New insn pattern.
27698 (subv<GPI:mode>_imm): Likewise.
27699 (negv<GPI:mode>3): New expand pattern.
27700 (negv<GPI:mode>_insn): New insn pattern.
27701 (negv<GPI:mode>_cmp_only): Likewise.
27702 (cmpv<GPI:mode>_insn): Likewise.
27703 (subvti4): Use register_operand for operand 1. Update call to
27704 aarch64_expand_subvti.
27705 (usubvti4): Likewise.
27706 (negvti3): New expand pattern.
27707 (negdi_carryout): New insn pattern.
27708 (negvdi_carryinV): New insn pattern.
27709 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
27710 version the named version.
27711 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
27713 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
27715 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
27717 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
27718 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
27719 (sub<mode>3_carryinCV): Delete.
27720 (sub<GPI:mode>3_carryinV): New expand pattern.
27721 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
27723 2019-01-07 Richard Biener <rguenther@suse.de>
27725 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
27726 of tree_operand_hash.
27728 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27730 PR tree-optimization/88598
27731 * tree.h (single_nonzero_element): Declare.
27732 * tree.c (single_nonzero_element): New function.
27733 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
27734 if I is the only nonzero element of CST.
27736 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27738 PR tree-optimization/88598
27739 * tree.h (initializer_each_zero_or_onep): Declare.
27740 * tree.c (initializer_each_zero_or_onep): New function.
27741 (signed_or_unsigned_type_for): Handle float types too.
27742 (unsigned_type_for, signed_type_for): Update comments accordingly.
27743 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
27744 x & { 0 or -1, 0 or -1, ... }.
27746 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
27748 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
27749 with x86_64-pc-linux-gnu.
27751 2019-01-07 Tom de Vries <tdevries@suse.de>
27754 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
27756 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
27759 2019-01-07 Jakub Jelinek <jakub@redhat.com>
27761 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
27762 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
27763 TARGET_AVX512F as condition.
27766 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
27767 const_not_ok_for_debug_p target hook.
27768 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
27769 on UNSPEC and subexpressions thereof if all subexpressions of the
27770 UNSPEC are CONSTANT_P.
27772 PR tree-optimization/88676
27773 * tree-ssa-phiopt.c (two_value_replacement): New function.
27774 (tree_ssa_phiopt_worker): Call it.
27777 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
27778 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
27781 * tree-vect-generic.c: Include insn-config.h and recog.h.
27782 (expand_vector_piecewise): Add defaulted ret_type argument,
27783 if non-NULL, use that in preference to type for the result type.
27784 (expand_vector_parallel): Formatting fix.
27785 (do_vec_conversion, do_vec_narrowing_conversion,
27786 expand_vector_conversion): New functions.
27787 (expand_vector_operations_1): Call expand_vector_conversion
27788 for VEC_CONVERT ifn calls.
27789 * internal-fn.def (VEC_CONVERT): New internal function.
27790 * internal-fn.c (expand_VEC_CONVERT): New function.
27791 * fold-const-call.c (fold_const_vec_convert): New function.
27792 (fold_const_call): Use it for CFN_VEC_CONVERT.
27793 * doc/extend.texi (__builtin_convertvector): Document.
27795 2019-01-07 Tom de Vries <tdevries@suse.de>
27797 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
27798 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
27799 vector_red_partition, vector_red_sym): New global variables.
27800 (nvptx_option_override): Initialize vector_red_sym.
27801 (nvptx_declare_function_name): Restore red_partition register.
27802 (nvptx_file_end): Emit code to declare the vector reduction variables.
27803 (nvptx_output_red_partition): New function.
27804 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
27805 large vector reductions.
27806 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
27807 (nvptx_init_builtins): Add VECTOR_ADDR.
27808 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
27809 Handle nvptx_expand_shared_addr.
27810 (nvptx_get_shared_red_addr): Add vector argument and handle large
27812 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
27814 (nvptx_goacc_reduction_init): Likewise.
27815 (nvptx_goacc_reduction_fini): Likewise.
27816 (nvptx_goacc_reduction_teardown): Likewise.
27817 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
27818 init,fini,teardown}.
27819 (nvptx_init_axis_predicate): Initialize vector_red_partition.
27820 (nvptx_set_current_function): Init vector_red_partition.
27821 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
27822 (nvptx_red_partition): New insn.
27823 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
27825 2019-01-07 Tom de Vries <tdevries@suse.de>
27828 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
27831 2019-01-07 Tom de Vries <tdevries@suse.de>
27833 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
27834 (nvptx_option_override): Init oacc_bcast_partition.
27835 (nvptx_init_oacc_workers): New function.
27836 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
27837 (nvptx_needs_shared_bcast): New function.
27838 (nvptx_find_par): Generalize to enable vectors to use shared-memory
27839 to propagate state.
27840 (nvptx_shared_propagate): Initialize vector bcast partition and
27841 synchronization state.
27842 (nvptx_single): Generalize to enable vectors to use shared-memory
27843 to propagate state.
27844 (nvptx_process_pars): Likewise.
27845 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
27846 * config/nvptx/nvptx.h (struct machine_function): Add
27847 bcast_partition and sync_bar members.
27849 2019-01-07 Tom de Vries <tdevries@suse.de>
27851 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
27852 (nvptx_apply_dim_limits): New function.
27853 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
27856 2019-01-07 Tom de Vries <tdevries@suse.de>
27858 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
27859 as late as possible.
27861 2019-01-07 Tom de Vries <tdevries@suse.de>
27863 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
27864 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
27865 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
27866 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
27867 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
27869 2019-01-07 Tom de Vries <tdevries@suse.de>
27871 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
27873 2019-01-07 Tom de Vries <tdevries@suse.de>
27875 * omp-offload.c (oacc_get_min_dim): New function.
27876 * omp-offload.h (oacc_get_min_dim): Declare.
27878 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
27881 * config/i386/i386.c (function_value_ms_64): Return small sturct in
27882 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
27884 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27888 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
27890 * ipa-inline.c (edge_badness): Use inlined_time instead of
27891 inline_summaries->get.
27893 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27895 * opts.c (enable_fdo_optimizations): Enable
27896 version-loops-for-strides, loop-interchange, unrol-and-jam
27897 and tree-loop-distribution.
27898 * invoke.texi: Document newly enabled options.
27900 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27902 * doc/invoke.texi (max-inline-insns-small): New parameters.
27903 * ipa-inline.c (want_early_inline_function_p): simplify.
27904 (want_inline_small_function_p): Fix pasto from previous patch;
27905 use max-inline-insns-small bound.
27906 * params.def (max-inline-insns-small): New param.
27907 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27908 variables correctly.
27910 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27912 * doc/invoke.texi: Document max-inline-insns-size,
27913 uninlined-function-insns, uninlined-function-time,
27914 uninlined-thunk-insns and uninlined-thunk-time.
27915 * params.def: Add max-inline-insns-size,
27916 uninlined-function-insns, uninlined-function-time,
27917 uninlined-thunk-insns and uninlined-thunk-time.
27918 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27920 * ipa-inline.c (can_inline_edge_by_limits_p,
27921 want_inline_small_function_p): Use new parameters.
27923 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27925 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27927 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27929 PR middle-end/82564
27931 * expr.c (expand_assignment): For calls returning VLA structures
27932 if to_rtx is not a MEM, force it into a stack temporary.
27935 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27936 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27937 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27938 subexpressions of both operands.
27939 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27940 subrtxes are CONSTANT_P.
27941 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27942 2018-11-09 changes.
27944 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27946 * params.def (hot-bb-count-ws-permille): Set to 990.
27948 2019-01-04 Martin Sebor <msebor@redhat.com>
27951 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27954 2019-01-04 Martin Sebor <msebor@redhat.com>
27957 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27959 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27961 * gdbinit.in: Turn off pagination for the skip commands, restore
27962 it to previous state afterwards.
27964 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27967 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27968 of GET_MODE (opN) as modes of the libcall arguments.
27970 2019-01-04 Jan Beulich <jbeulich@suse.com>
27972 * config/i386/sse.md
27973 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27974 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27975 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27976 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27977 avx512f_vmcmp<mode>3<round_saeonly_name>,
27978 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27979 avx512f_maskcmp<mode>3,
27980 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27981 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27982 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27983 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27984 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27985 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27986 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27987 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27988 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27989 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27990 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27991 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27992 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27993 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27994 avx512cd_maskb_vec_dup<mode>,
27995 avx512cd_maskw_vec_dup<mode>,
27996 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27997 avx512dq_vmfpclass<mode>,
27998 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
28001 2019-01-03 Martin Sebor <msebor@redhat.com>
28003 PR tree-optimization/88659
28004 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
28006 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
28008 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
28009 unaligned vsx and avoid lxvd2x/stxvd2x.
28010 (gen_lvx_v4si_move): New function.
28012 2019-01-03 Tom de Vries <tdevries@suse.de>
28014 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
28015 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
28017 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
28019 2019-01-03 Tom de Vries <tdevries@suse.de>
28021 * config/nvptx/nvptx.c (struct offload_attrs): New.
28022 (populate_offload_attrs): New function. Factor mask extraction out of
28023 nvptx_reorg. Add extraction of dimensions.
28024 (nvptx_reorg): Use populate_offload_attrs.
28026 2019-01-03 Tom de Vries <tdevries@suse.de>
28028 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
28029 cases for oacc_min_dims_p and routine_p. Add asserts for
28030 oacc_default_dims_p and offload_region_p.
28032 2019-01-03 Tom de Vries <tdevries@suse.de>
28034 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
28035 factored out of ...
28036 (nvptx_goacc_validate_dims): ... here.
28038 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
28040 PR tree-optimization/85574
28041 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
28043 (struct ssa_equip_hash_traits): Declare.
28044 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
28046 2019-01-03 Jakub Jelinek <jakub@redhat.com>
28049 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
28050 change it to qualified_type.
28052 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
28054 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
28055 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
28057 2019-01-02 Martin Sebor <msebor@redhat.com>
28058 Jeff Law <law@redhat.com>
28060 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
28061 (get_range_strlen_tree): Update appropriately.
28063 * gimple-fold.h (get_range_strlen): Drop unused last argument.
28065 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
28066 rather than set_range_info.
28067 * tree-ssa-strlen.c (set_strlen_range): Extracted from
28068 maybe_set_strlen_range. Handle potentially boundary crossing
28069 cases more conservatively.
28070 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
28071 Call set_strlen_range.
28072 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
28074 PR middle-end/88663
28075 * gimple-fold.c (get_range_strlen): Update prototype to no longer
28076 need the flexp argument.
28077 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
28078 from calls to get_range_strlen. Update comments. Just update
28079 VAL for an unterminated const char array and let the reset of the
28080 code handle it normally. No longer try to set *flexp. Adjust
28082 (get_range_strlen): Update for the new get_range_strlen API.
28083 (get_maxval_strlen): Similarly.
28084 (gimple_fold_builtin_strlen): Handle update meaning of return value
28085 from get_range_strlen.
28086 * gimple-ssa-sprintf.c (get_string_length): Update for the new
28087 get_range_strlen API.
28089 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
28092 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
28093 false at WPA time when body was removed.
28095 2019-01-02 Martin Liska <mliska@suse.cz>
28097 PR tree-optimization/88650
28098 * predict.c (set_even_probabilities): Calculate probability
28099 remainer only when really used.
28101 2019-01-02 Richard Biener <rguenther@suse.de>
28103 PR middle-end/88651
28104 * tree-data-ref.c (analyze_subscript_affine_affine): Use
28105 widest_ints when mangling max_stmt_execution results.
28107 2019-01-02 Richard Biener <rguenther@suse.de>
28109 PR tree-optimization/88621
28110 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
28111 bitfields when canoncalizing.
28113 2019-01-02 Richard Biener <rguenther@suse.de>
28116 * config/i386/x86-tune-costs.h (intel_cost): Adjust
28117 cost of cheap SSE instruction.
28119 2019-01-02 Richard Biener <rguenther@suse.de>
28122 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
28123 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
28125 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
28126 set after UIDs before splitting them.
28128 2019-01-01 Martin Sebor <msebor@redhat.com>
28129 Jeff Law <law@redhat.com>
28131 * gimple-fold.c (get_range_strlen_tree): Record if the computed
28132 length is optimistic. If it is, then arrange to compute the
28133 conservative length as well.
28135 * gimple-fold.h (get_range_strlen): Update prototype.
28136 * builtins.c (check_access): Update call to get_range_strlen to use
28137 c_strlen_data pointer. Change various variable accesses to instead
28138 pull data from the c_strlen_data structure.
28139 (check_strncat_sizes, expand_builtin_strncat): Likewise.
28140 * calls.c (maybe_warn_nonstring_arg): Likewise.
28141 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
28142 minimum length if maximum lengh is unknown.
28143 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
28144 that used c_strlen, it's no longer needed. Restructure slightly.
28145 (format_string): Set unlikely range appropriately.
28146 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
28148 (get_range_strlen): Accept c_strlen_data pointer for external
28149 call sites as well. Pass through to call to internal get_range_strlen.
28150 Adjust minlen, maxlen and maxbound as needed.
28151 (get_maxval_strlen): Update comments.
28152 (gimple_fold_builtin_strlen): Update call to get_range_strlen
28153 to use c_strlen_data pointer. Change variable accesses to instead
28154 use c_strlen_data data members.
28156 * gimple-fold.c (get_range_strlen): Update prototype.
28157 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
28158 local variables. Use pdata to return information to caller.
28159 Update calls to get_range_strlen. Update pdata->maxbound.
28160 (get_range_strlen -- static version): Similarly.
28161 (get_range_strlen -- extern version): Update for internal
28162 get_range_strlen API change. Convert to external data format.
28163 (get_maxval_strlen): Similarly.
28165 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
28167 * coverage.c (get_coverage_counts): Use current_function_decl.
28168 * profile.c (read_thunk_profile): New function.
28169 (branch_prob): Add THUNK parameter.
28170 * tree-profile.c (tree_profiling): Handle thunks.
28171 * value-prof.c (init_node_map): Handle thunks.
28172 * value-prof.h (branch_prob): Upate prototype.
28173 (read_thunk_profile): Declare.
28175 2019-01-01 Jakub Jelinek <jakub@redhat.com>
28177 Update copyright years.
28179 * gcc.c (process_command): Update copyright notice dates.
28180 * gcov-dump.c (print_version): Ditto.
28181 * gcov.c (print_version): Ditto.
28182 * gcov-tool.c (print_version): Ditto.
28183 * gengtype.c (create_file): Ditto.
28184 * doc/cpp.texi: Bump @copying's copyright year.
28185 * doc/cppinternals.texi: Ditto.
28186 * doc/gcc.texi: Ditto.
28187 * doc/gccint.texi: Ditto.
28188 * doc/gcov.texi: Ditto.
28189 * doc/install.texi: Ditto.
28190 * doc/invoke.texi: Ditto.
28192 Copyright (C) 2019 Free Software Foundation, Inc.
28194 Copying and distribution of this file, with or without modification,
28195 are permitted in any medium without royalty provided the copyright
28196 notice and this notice are preserved.